Applied patch #9058 (add Hildon 2.0 support)
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 61971 2009-09-19 08:51:11Z JMS .
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 HILDON2_CFLAGS
713 HILDON2_LIBS
714 PYTHON
715 COND_PYTHON
716 CAIRO_CFLAGS
717 CAIRO_LIBS
718 GST_CFLAGS
719 GST_LIBS
720 ALL_WX_LIBS
721 BUILT_WX_LIBS
722 STD_BASE_LIBS
723 STD_GUI_LIBS
724 wxUSE_ZLIB
725 wxUSE_REGEX
726 wxUSE_EXPAT
727 wxUSE_LIBJPEG
728 wxUSE_LIBPNG
729 wxUSE_LIBTIFF
730 VENDOR
731 OFFICIAL_BUILD
732 WX_FLAVOUR
733 WX_LIB_FLAVOUR
734 WXUNIV
735 MONOLITHIC
736 USE_PLUGINS
737 CXXWARNINGS
738 EXTRALIBS
739 EXTRALIBS_XML
740 EXTRALIBS_HTML
741 EXTRALIBS_MEDIA
742 EXTRALIBS_GUI
743 EXTRALIBS_OPENGL
744 EXTRALIBS_SDL
745 EXTRALIBS_STC
746 WITH_PLUGIN_SDL
747 EXTRALIBS_GTKPRINT
748 EXTRALIBS_GNOMEPRINT
749 EXTRALIBS_GNOMEVFS
750 EXTRALIBS_HILDON
751 UNICODE
752 DEBUG_INFO
753 DEBUG_FLAG
754 TOOLKIT_LOWERCASE
755 TOOLKIT_VERSION
756 DYLIB_RPATH_INSTALL
757 DYLIB_RPATH_POSTLINK
758 SAMPLES_RPATH_FLAG
759 HEADER_PAD_OPTION
760 HOST_SUFFIX
761 CPPUNIT_CFLAGS
762 CPPUNIT_LIBS
763 RANLIB
764 INSTALL_PROGRAM
765 INSTALL_SCRIPT
766 INSTALL_DATA
767 LN_S
768 SET_MAKE
769 MAKE_SET
770 AROPTIONS
771 STRIP
772 NM
773 INSTALL_DIR
774 LDFLAGS_GUI
775 IF_GNU_MAKE
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 WINDRES
809 REZ
810 SETFILE
811 OBJCXXFLAGS
812 GCC_PCH
813 ICC_PCH
814 ICC_PCH_CREATE_SWITCH
815 ICC_PCH_USE_SWITCH
816 BK_MAKE_PCH
817 COND_BUILD_DEBUG
818 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
819 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
820 COND_BUILD_DEBUG_UNICODE_0
821 COND_BUILD_DEBUG_UNICODE_1
822 COND_BUILD_RELEASE
823 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
824 COND_BUILD_RELEASE_UNICODE_0
825 COND_BUILD_RELEASE_UNICODE_1
826 COND_BUILD_debug
827 COND_BUILD_debug_DEBUG_FLAG_default
828 COND_BUILD_debug_DEBUG_INFO_default
829 COND_BUILD_debug_UNICODE_0
830 COND_BUILD_debug_UNICODE_1
831 COND_BUILD_release
832 COND_BUILD_release_DEBUG_INFO_default
833 COND_BUILD_release_UNICODE_0
834 COND_BUILD_release_UNICODE_1
835 COND_DEBUG_FLAG_0
836 COND_DEBUG_FLAG_1
837 COND_DEBUG_INFO_0
838 COND_DEBUG_INFO_1
839 COND_DEPS_TRACKING_0
840 COND_DEPS_TRACKING_1
841 COND_GCC_PCH_1
842 COND_ICC_PCH_1
843 COND_MONOLITHIC_0
844 COND_MONOLITHIC_0_SHARED_0
845 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
846 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
850 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
851 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
852 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
853 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
854 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
855 COND_MONOLITHIC_0_SHARED_1
856 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
857 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
858 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
861 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
862 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
863 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
864 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
865 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
866 COND_MONOLITHIC_0_USE_AUI_1
867 COND_MONOLITHIC_0_USE_GUI_1
868 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
869 COND_MONOLITHIC_0_USE_HTML_1
870 COND_MONOLITHIC_0_USE_MEDIA_1
871 COND_MONOLITHIC_0_USE_PROPGRID_1
872 COND_MONOLITHIC_0_USE_QA_1
873 COND_MONOLITHIC_0_USE_RIBBON_1
874 COND_MONOLITHIC_0_USE_RICHTEXT_1
875 COND_MONOLITHIC_0_USE_STC_1
876 COND_MONOLITHIC_0_USE_XRC_1
877 COND_MONOLITHIC_1
878 COND_MONOLITHIC_1_SHARED_0
879 COND_MONOLITHIC_1_SHARED_1
880 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
881 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
882 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
883 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
884 COND_PLATFORM_MACOSX_1
885 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
886 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
887 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
888 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
890 COND_PLATFORM_MACOSX_1_USE_GUI_1
891 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
892 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
893 COND_PLATFORM_MACOS_1
894 COND_PLATFORM_MAC_0
895 COND_PLATFORM_MAC_1
896 COND_PLATFORM_MSDOS_0
897 COND_PLATFORM_MSDOS_1
898 COND_PLATFORM_OS2_1
899 COND_PLATFORM_UNIX_0
900 COND_PLATFORM_UNIX_1
901 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
902 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
903 COND_PLATFORM_UNIX_1_USE_GUI_1
904 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
905 COND_PLATFORM_WIN32_0
906 COND_PLATFORM_WIN32_1
907 COND_SHARED_0
908 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
909 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
910 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
911 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
912 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
913 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
914 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
915 COND_SHARED_0_USE_STC_1
916 COND_SHARED_0_wxUSE_EXPAT_builtin
917 COND_SHARED_0_wxUSE_REGEX_builtin
918 COND_SHARED_0_wxUSE_ZLIB_builtin
919 COND_SHARED_1
920 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
921 COND_TOOLKIT_
922 COND_TOOLKIT_COCOA
923 COND_TOOLKIT_COCOA_USE_GUI_1
924 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_DFB
926 COND_TOOLKIT_DFB_USE_GUI_1
927 COND_TOOLKIT_GTK
928 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
929 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
930 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
931 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
932 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
933 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_GTK_USE_GUI_1
935 COND_TOOLKIT_MAC
936 COND_TOOLKIT_MGL
937 COND_TOOLKIT_MGL_USE_GUI_1
938 COND_TOOLKIT_MOTIF
939 COND_TOOLKIT_MOTIF_USE_GUI_1
940 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_MSW
942 COND_TOOLKIT_MSW_USE_GUI_1
943 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
944 COND_TOOLKIT_MSW_WXUNIV_0
945 COND_TOOLKIT_OSX_CARBON
946 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
947 COND_TOOLKIT_OSX_COCOA
948 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
949 COND_TOOLKIT_OSX_IPHONE
950 COND_TOOLKIT_PM
951 COND_TOOLKIT_PM_USE_GUI_1
952 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_WINCE
954 COND_TOOLKIT_WINCE_USE_GUI_1
955 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
956 COND_TOOLKIT_WINCE_WXUNIV_0
957 COND_TOOLKIT_X11
958 COND_TOOLKIT_X11_USE_GUI_1
959 COND_UNICODE_1
960 COND_USE_EXCEPTIONS_0
961 COND_USE_EXCEPTIONS_1
962 COND_USE_GUI_0
963 COND_USE_GUI_1
964 COND_USE_GUI_1_USE_OPENGL_1
965 COND_USE_GUI_1_WXUNIV_0
966 COND_USE_GUI_1_WXUNIV_1
967 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
968 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
969 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
970 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
971 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
972 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
973 COND_USE_OPENGL_1
974 COND_USE_PCH_1
975 COND_USE_PLUGINS_0
976 COND_USE_RTTI_0
977 COND_USE_RTTI_1
978 COND_USE_SOSYMLINKS_1
979 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
980 COND_USE_SOVERLINUX_1
981 COND_USE_SOVERSION_0
982 COND_USE_SOVERSOLARIS_1
983 COND_USE_STC_1
984 COND_USE_THREADS_0
985 COND_USE_THREADS_1
986 COND_USE_XRC_1
987 COND_WINDOWS_IMPLIB_1
988 COND_WITH_PLUGIN_SDL_1
989 COND_WXUNIV_0
990 COND_WXUNIV_1
991 COND_WXUSE_EXPAT_BUILTIN
992 COND_WXUSE_LIBJPEG_BUILTIN
993 COND_WXUSE_LIBPNG_BUILTIN
994 COND_WXUSE_LIBTIFF_BUILTIN
995 COND_WXUSE_REGEX_BUILTIN
996 COND_WXUSE_ZLIB_BUILTIN
997 COND_wxUSE_EXPAT_builtin
998 COND_wxUSE_LIBJPEG_builtin
999 COND_wxUSE_LIBPNG_builtin
1000 COND_wxUSE_LIBTIFF_builtin
1001 COND_wxUSE_REGEX_builtin
1002 COND_wxUSE_ZLIB_builtin
1003 DEREZ
1004 SHARED
1005 WX_LIBRARY_BASENAME_NOGUI
1006 WX_LIBRARY_BASENAME_GUI
1007 USE_GUI
1008 AFMINSTALL
1009 WIN32INSTALL
1010 TOOLKIT
1011 TOOLKIT_DIR
1012 TOOLCHAIN_NAME
1013 TOOLCHAIN_FULLNAME
1014 cross_compiling
1015 WIDGET_SET
1016 WX_RELEASE
1017 WX_VERSION
1018 WX_SUBVERSION
1019 WX_CHARTYPE
1020 WXCONFIG_CPPFLAGS
1021 WXCONFIG_CFLAGS
1022 WXCONFIG_CXXFLAGS
1023 WXCONFIG_LIBS
1024 WXCONFIG_RPATH
1025 WXCONFIG_LDFLAGS_GUI
1026 WXCONFIG_RESFLAGS
1027 GUIDIST
1028 DISTDIR
1029 SAMPLES_SUBDIRS
1030 LDFLAGS_GL
1031 OPENGL_LIBS
1032 DMALLOC_LIBS
1033 WX_VERSION_TAG
1034 RESCOMP
1035 RESFLAGS
1036 RESPROGRAMOBJ
1037 WX_RESOURCES_MACOSX_ASCII
1038 WX_RESOURCES_MACOSX_DATA
1039 LIBWXMACRES
1040 POSTLINK_COMMAND
1041 MACSETFILE
1042 GCC
1043 DLLTOOL
1044 CPPUNIT_CONFIG
1045 LIBOBJS
1046 LTLIBOBJS'
1047 ac_subst_files=''
1048       ac_precious_vars='build_alias
1049 host_alias
1050 target_alias
1051 CC
1052 CFLAGS
1053 LDFLAGS
1054 LIBS
1055 CPPFLAGS
1056 CPP
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 PKG_CONFIG
1061 DIRECTFB_CFLAGS
1062 DIRECTFB_LIBS
1063 XMKMF
1064 PANGOX_CFLAGS
1065 PANGOX_LIBS
1066 PANGOFT2_CFLAGS
1067 PANGOFT2_LIBS
1068 PANGOXFT_CFLAGS
1069 PANGOXFT_LIBS
1070 GTKPRINT_CFLAGS
1071 GTKPRINT_LIBS
1072 LIBGNOMEPRINTUI_CFLAGS
1073 LIBGNOMEPRINTUI_LIBS
1074 GNOMEVFS_CFLAGS
1075 GNOMEVFS_LIBS
1076 HILDON_CFLAGS
1077 HILDON_LIBS
1078 HILDON2_CFLAGS
1079 HILDON2_LIBS
1080 CAIRO_CFLAGS
1081 CAIRO_LIBS
1082 GST_CFLAGS
1083 GST_LIBS'
1084 ac_subdirs_all='src/tiff
1085 src/expat'
1086
1087 # Initialize some variables set by options.
1088 ac_init_help=
1089 ac_init_version=false
1090 # The variables have the same names as the options, with
1091 # dashes changed to underlines.
1092 cache_file=/dev/null
1093 exec_prefix=NONE
1094 no_create=
1095 no_recursion=
1096 prefix=NONE
1097 program_prefix=NONE
1098 program_suffix=NONE
1099 program_transform_name=s,x,x,
1100 silent=
1101 site=
1102 srcdir=
1103 verbose=
1104 x_includes=NONE
1105 x_libraries=NONE
1106
1107 # Installation directory options.
1108 # These are left unexpanded so users can "make install exec_prefix=/foo"
1109 # and all the variables that are supposed to be based on exec_prefix
1110 # by default will actually change.
1111 # Use braces instead of parens because sh, perl, etc. also accept them.
1112 # (The list follows the same order as the GNU Coding Standards.)
1113 bindir='${exec_prefix}/bin'
1114 sbindir='${exec_prefix}/sbin'
1115 libexecdir='${exec_prefix}/libexec'
1116 datarootdir='${prefix}/share'
1117 datadir='${datarootdir}'
1118 sysconfdir='${prefix}/etc'
1119 sharedstatedir='${prefix}/com'
1120 localstatedir='${prefix}/var'
1121 includedir='${prefix}/include'
1122 oldincludedir='/usr/include'
1123 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1124 infodir='${datarootdir}/info'
1125 htmldir='${docdir}'
1126 dvidir='${docdir}'
1127 pdfdir='${docdir}'
1128 psdir='${docdir}'
1129 libdir='${exec_prefix}/lib'
1130 localedir='${datarootdir}/locale'
1131 mandir='${datarootdir}/man'
1132
1133 ac_prev=
1134 ac_dashdash=
1135 for ac_option
1136 do
1137   # If the previous option needs an argument, assign it.
1138   if test -n "$ac_prev"; then
1139     eval $ac_prev=\$ac_option
1140     ac_prev=
1141     continue
1142   fi
1143
1144   case $ac_option in
1145   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1146   *)    ac_optarg=yes ;;
1147   esac
1148
1149   # Accept the important Cygnus configure options, so we can diagnose typos.
1150
1151   case $ac_dashdash$ac_option in
1152   --)
1153     ac_dashdash=yes ;;
1154
1155   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156     ac_prev=bindir ;;
1157   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1158     bindir=$ac_optarg ;;
1159
1160   -build | --build | --buil | --bui | --bu)
1161     ac_prev=build_alias ;;
1162   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1163     build_alias=$ac_optarg ;;
1164
1165   -cache-file | --cache-file | --cache-fil | --cache-fi \
1166   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1167     ac_prev=cache_file ;;
1168   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1169   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1170     cache_file=$ac_optarg ;;
1171
1172   --config-cache | -C)
1173     cache_file=config.cache ;;
1174
1175   -datadir | --datadir | --datadi | --datad)
1176     ac_prev=datadir ;;
1177   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1178     datadir=$ac_optarg ;;
1179
1180   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1181   | --dataroo | --dataro | --datar)
1182     ac_prev=datarootdir ;;
1183   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1184   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1185     datarootdir=$ac_optarg ;;
1186
1187   -disable-* | --disable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=no ;;
1195
1196   -docdir | --docdir | --docdi | --doc | --do)
1197     ac_prev=docdir ;;
1198   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1199     docdir=$ac_optarg ;;
1200
1201   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1202     ac_prev=dvidir ;;
1203   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1204     dvidir=$ac_optarg ;;
1205
1206   -enable-* | --enable-*)
1207     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1211    { (exit 1); exit 1; }; }
1212     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1213     eval enable_$ac_feature=\$ac_optarg ;;
1214
1215   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1216   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1217   | --exec | --exe | --ex)
1218     ac_prev=exec_prefix ;;
1219   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1220   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1221   | --exec=* | --exe=* | --ex=*)
1222     exec_prefix=$ac_optarg ;;
1223
1224   -gas | --gas | --ga | --g)
1225     # Obsolete; use --with-gas.
1226     with_gas=yes ;;
1227
1228   -help | --help | --hel | --he | -h)
1229     ac_init_help=long ;;
1230   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1231     ac_init_help=recursive ;;
1232   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1233     ac_init_help=short ;;
1234
1235   -host | --host | --hos | --ho)
1236     ac_prev=host_alias ;;
1237   -host=* | --host=* | --hos=* | --ho=*)
1238     host_alias=$ac_optarg ;;
1239
1240   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1241     ac_prev=htmldir ;;
1242   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1243   | --ht=*)
1244     htmldir=$ac_optarg ;;
1245
1246   -includedir | --includedir | --includedi | --included | --include \
1247   | --includ | --inclu | --incl | --inc)
1248     ac_prev=includedir ;;
1249   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1250   | --includ=* | --inclu=* | --incl=* | --inc=*)
1251     includedir=$ac_optarg ;;
1252
1253   -infodir | --infodir | --infodi | --infod | --info | --inf)
1254     ac_prev=infodir ;;
1255   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1256     infodir=$ac_optarg ;;
1257
1258   -libdir | --libdir | --libdi | --libd)
1259     ac_prev=libdir ;;
1260   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1261     libdir=$ac_optarg ;;
1262
1263   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1264   | --libexe | --libex | --libe)
1265     ac_prev=libexecdir ;;
1266   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1267   | --libexe=* | --libex=* | --libe=*)
1268     libexecdir=$ac_optarg ;;
1269
1270   -localedir | --localedir | --localedi | --localed | --locale)
1271     ac_prev=localedir ;;
1272   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1273     localedir=$ac_optarg ;;
1274
1275   -localstatedir | --localstatedir | --localstatedi | --localstated \
1276   | --localstate | --localstat | --localsta | --localst | --locals)
1277     ac_prev=localstatedir ;;
1278   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1279   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1280     localstatedir=$ac_optarg ;;
1281
1282   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1283     ac_prev=mandir ;;
1284   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1285     mandir=$ac_optarg ;;
1286
1287   -nfp | --nfp | --nf)
1288     # Obsolete; use --without-fp.
1289     with_fp=no ;;
1290
1291   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1292   | --no-cr | --no-c | -n)
1293     no_create=yes ;;
1294
1295   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1296   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1297     no_recursion=yes ;;
1298
1299   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1300   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1301   | --oldin | --oldi | --old | --ol | --o)
1302     ac_prev=oldincludedir ;;
1303   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1304   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1305   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1306     oldincludedir=$ac_optarg ;;
1307
1308   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1309     ac_prev=prefix ;;
1310   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1311     prefix=$ac_optarg ;;
1312
1313   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1314   | --program-pre | --program-pr | --program-p)
1315     ac_prev=program_prefix ;;
1316   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1317   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1318     program_prefix=$ac_optarg ;;
1319
1320   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1321   | --program-suf | --program-su | --program-s)
1322     ac_prev=program_suffix ;;
1323   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1324   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1325     program_suffix=$ac_optarg ;;
1326
1327   -program-transform-name | --program-transform-name \
1328   | --program-transform-nam | --program-transform-na \
1329   | --program-transform-n | --program-transform- \
1330   | --program-transform | --program-transfor \
1331   | --program-transfo | --program-transf \
1332   | --program-trans | --program-tran \
1333   | --progr-tra | --program-tr | --program-t)
1334     ac_prev=program_transform_name ;;
1335   -program-transform-name=* | --program-transform-name=* \
1336   | --program-transform-nam=* | --program-transform-na=* \
1337   | --program-transform-n=* | --program-transform-=* \
1338   | --program-transform=* | --program-transfor=* \
1339   | --program-transfo=* | --program-transf=* \
1340   | --program-trans=* | --program-tran=* \
1341   | --progr-tra=* | --program-tr=* | --program-t=*)
1342     program_transform_name=$ac_optarg ;;
1343
1344   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1345     ac_prev=pdfdir ;;
1346   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1347     pdfdir=$ac_optarg ;;
1348
1349   -psdir | --psdir | --psdi | --psd | --ps)
1350     ac_prev=psdir ;;
1351   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1352     psdir=$ac_optarg ;;
1353
1354   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355   | -silent | --silent | --silen | --sile | --sil)
1356     silent=yes ;;
1357
1358   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1359     ac_prev=sbindir ;;
1360   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1361   | --sbi=* | --sb=*)
1362     sbindir=$ac_optarg ;;
1363
1364   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1365   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1366   | --sharedst | --shareds | --shared | --share | --shar \
1367   | --sha | --sh)
1368     ac_prev=sharedstatedir ;;
1369   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1370   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1371   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1372   | --sha=* | --sh=*)
1373     sharedstatedir=$ac_optarg ;;
1374
1375   -site | --site | --sit)
1376     ac_prev=site ;;
1377   -site=* | --site=* | --sit=*)
1378     site=$ac_optarg ;;
1379
1380   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1381     ac_prev=srcdir ;;
1382   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1383     srcdir=$ac_optarg ;;
1384
1385   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1386   | --syscon | --sysco | --sysc | --sys | --sy)
1387     ac_prev=sysconfdir ;;
1388   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1389   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1390     sysconfdir=$ac_optarg ;;
1391
1392   -target | --target | --targe | --targ | --tar | --ta | --t)
1393     ac_prev=target_alias ;;
1394   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1395     target_alias=$ac_optarg ;;
1396
1397   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1398     verbose=yes ;;
1399
1400   -version | --version | --versio | --versi | --vers | -V)
1401     ac_init_version=: ;;
1402
1403   -with-* | --with-*)
1404     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1405     # Reject names that are not valid shell variable names.
1406     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407       { echo "$as_me: error: invalid package name: $ac_package" >&2
1408    { (exit 1); exit 1; }; }
1409     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1410     eval with_$ac_package=\$ac_optarg ;;
1411
1412   -without-* | --without-*)
1413     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1414     # Reject names that are not valid shell variable names.
1415     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416       { echo "$as_me: error: invalid package name: $ac_package" >&2
1417    { (exit 1); exit 1; }; }
1418     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1419     eval with_$ac_package=no ;;
1420
1421   --x)
1422     # Obsolete; use --with-x.
1423     with_x=yes ;;
1424
1425   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1426   | --x-incl | --x-inc | --x-in | --x-i)
1427     ac_prev=x_includes ;;
1428   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1429   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1430     x_includes=$ac_optarg ;;
1431
1432   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1433   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1434     ac_prev=x_libraries ;;
1435   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1436   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1437     x_libraries=$ac_optarg ;;
1438
1439   -*) { echo "$as_me: error: unrecognized option: $ac_option
1440 Try \`$0 --help' for more information." >&2
1441    { (exit 1); exit 1; }; }
1442     ;;
1443
1444   *=*)
1445     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1446     # Reject names that are not valid shell variable names.
1447     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1448       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1449    { (exit 1); exit 1; }; }
1450     eval $ac_envvar=\$ac_optarg
1451     export $ac_envvar ;;
1452
1453   *)
1454     # FIXME: should be removed in autoconf 3.0.
1455     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1456     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1457       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1458     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1459     ;;
1460
1461   esac
1462 done
1463
1464 if test -n "$ac_prev"; then
1465   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1466   { echo "$as_me: error: missing argument to $ac_option" >&2
1467    { (exit 1); exit 1; }; }
1468 fi
1469
1470 # Be sure to have absolute directory names.
1471 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472                 datadir sysconfdir sharedstatedir localstatedir includedir \
1473                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474                 libdir localedir mandir
1475 do
1476   eval ac_val=\$$ac_var
1477   case $ac_val in
1478     [\\/$]* | ?:[\\/]* )  continue;;
1479     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480   esac
1481   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1482    { (exit 1); exit 1; }; }
1483 done
1484
1485 # There might be people who depend on the old broken behavior: `$host'
1486 # used to hold the argument of --host etc.
1487 # FIXME: To remove some day.
1488 build=$build_alias
1489 host=$host_alias
1490 target=$target_alias
1491
1492 # FIXME: To remove some day.
1493 if test "x$host_alias" != x; then
1494   if test "x$build_alias" = x; then
1495     cross_compiling=maybe
1496     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1497     If a cross compiler is detected then cross compile mode will be used." >&2
1498   elif test "x$build_alias" != "x$host_alias"; then
1499     cross_compiling=yes
1500   fi
1501 fi
1502
1503 ac_tool_prefix=
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506 test "$silent" = yes && exec 6>/dev/null
1507
1508
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512   { echo "$as_me: error: Working directory cannot be determined" >&2
1513    { (exit 1); exit 1; }; }
1514 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1515   { echo "$as_me: error: pwd does not report name of working directory" >&2
1516    { (exit 1); exit 1; }; }
1517
1518
1519 # Find the source files, if location was not specified.
1520 if test -z "$srcdir"; then
1521   ac_srcdir_defaulted=yes
1522   # Try the directory containing this script, then the parent directory.
1523   ac_confdir=`$as_dirname -- "$0" ||
1524 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1525          X"$0" : 'X\(//\)[^/]' \| \
1526          X"$0" : 'X\(//\)$' \| \
1527          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1528 echo X"$0" |
1529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1530             s//\1/
1531             q
1532           }
1533           /^X\(\/\/\)[^/].*/{
1534             s//\1/
1535             q
1536           }
1537           /^X\(\/\/\)$/{
1538             s//\1/
1539             q
1540           }
1541           /^X\(\/\).*/{
1542             s//\1/
1543             q
1544           }
1545           s/.*/./; q'`
1546   srcdir=$ac_confdir
1547   if test ! -r "$srcdir/$ac_unique_file"; then
1548     srcdir=..
1549   fi
1550 else
1551   ac_srcdir_defaulted=no
1552 fi
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1554   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1555   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1556    { (exit 1); exit 1; }; }
1557 fi
1558 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1559 ac_abs_confdir=`(
1560         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1561    { (exit 1); exit 1; }; }
1562         pwd)`
1563 # When building in place, set srcdir=.
1564 if test "$ac_abs_confdir" = "$ac_pwd"; then
1565   srcdir=.
1566 fi
1567 # Remove unnecessary trailing slashes from srcdir.
1568 # Double slashes in file names in object file debugging info
1569 # mess up M-x gdb in Emacs.
1570 case $srcdir in
1571 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1572 esac
1573 for ac_var in $ac_precious_vars; do
1574   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1575   eval ac_env_${ac_var}_value=\$${ac_var}
1576   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1577   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1578 done
1579
1580 #
1581 # Report the --help message.
1582 #
1583 if test "$ac_init_help" = "long"; then
1584   # Omit some internal or obsolete options to make the list less imposing.
1585   # This message is too long to be a string in the A/UX 3.1 sh.
1586   cat <<_ACEOF
1587 \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
1588
1589 Usage: $0 [OPTION]... [VAR=VALUE]...
1590
1591 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1592 VAR=VALUE.  See below for descriptions of some of the useful variables.
1593
1594 Defaults for the options are specified in brackets.
1595
1596 Configuration:
1597   -h, --help              display this help and exit
1598       --help=short        display options specific to this package
1599       --help=recursive    display the short help of all the included packages
1600   -V, --version           display version information and exit
1601   -q, --quiet, --silent   do not print \`checking...' messages
1602       --cache-file=FILE   cache test results in FILE [disabled]
1603   -C, --config-cache      alias for \`--cache-file=config.cache'
1604   -n, --no-create         do not create output files
1605       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1606
1607 Installation directories:
1608   --prefix=PREFIX         install architecture-independent files in PREFIX
1609                           [$ac_default_prefix]
1610   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1611                           [PREFIX]
1612
1613 By default, \`make install' will install all the files in
1614 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1615 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1616 for instance \`--prefix=\$HOME'.
1617
1618 For better control, use the options below.
1619
1620 Fine tuning of the installation directories:
1621   --bindir=DIR           user executables [EPREFIX/bin]
1622   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1623   --libexecdir=DIR       program executables [EPREFIX/libexec]
1624   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1625   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1626   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1627   --libdir=DIR           object code libraries [EPREFIX/lib]
1628   --includedir=DIR       C header files [PREFIX/include]
1629   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1630   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1631   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1632   --infodir=DIR          info documentation [DATAROOTDIR/info]
1633   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1634   --mandir=DIR           man documentation [DATAROOTDIR/man]
1635   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1636   --htmldir=DIR          html documentation [DOCDIR]
1637   --dvidir=DIR           dvi documentation [DOCDIR]
1638   --pdfdir=DIR           pdf documentation [DOCDIR]
1639   --psdir=DIR            ps documentation [DOCDIR]
1640 _ACEOF
1641
1642   cat <<\_ACEOF
1643
1644 X features:
1645   --x-includes=DIR    X include files are in DIR
1646   --x-libraries=DIR   X library files are in DIR
1647
1648 System types:
1649   --build=BUILD     configure for building on BUILD [guessed]
1650   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1651 _ACEOF
1652 fi
1653
1654 if test -n "$ac_init_help"; then
1655   case $ac_init_help in
1656      short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
1657    esac
1658   cat <<\_ACEOF
1659
1660 Optional Features:
1661   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1662   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1663   --disable-gui           don't build GUI parts of the library
1664   --enable-monolithic     build wxWidgets as single library
1665   --enable-plugins        build parts of wxWidgets as loadable components
1666   --enable-official_build official build of wxWidgets (win32 DLL only)
1667   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1668   --disable-all-features  disable all optional features to build minimal library
1669   --enable-universal      use wxWidgets GUI controls instead of native ones
1670   --enable-nanox          use NanoX
1671   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1672   --enable-gpe            use GNOME PDA Environment features if possible
1673   --enable-debug          build library for debugging
1674   --disable-debug_flag    disable all debugging support
1675   --enable-debug_info     generate debug information
1676   --enable-debug_gdb      create code with extra GDB debugging information
1677   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1678   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1679   --disable-shared        create static library instead of shared
1680   --enable-stl            use STL for containers
1681   --enable-std_iostreams  use standard C++ stream classes
1682   --enable-std_string     use standard C++ string classes
1683   --disable-unicode       compile without Unicode support
1684   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1685   --enable-utf8           use UTF-8 representation for strings (Unix only)
1686   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1687   --enable-extended_rtti  use extended RTTI (XTI)
1688   --enable-omf            use OMF object format
1689   --disable-optimise      compile without optimisations
1690   --enable-profile        create code with profiling information
1691   --enable-no_rtti        create code without RTTI information
1692   --enable-no_exceptions  create code without C++ exceptions handling
1693   --enable-permissive     compile code disregarding strict ANSI
1694   --enable-no_deps        create code without dependency information
1695   --disable-vararg_macros don't use vararg macros, even if they are supported
1696   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1697   --enable-compat26       enable wxWidgets 2.6 compatibility
1698   --disable-compat28      disable wxWidgets 2.8 compatibility
1699   --disable-rpath         disable use of rpath for uninstalled builds
1700   --enable-objc_uniquifying enable Objective-C class name uniquifying
1701   --disable-visibility    disable use of ELF symbols visibility even if supported
1702   --disable-tls           disable use of compiler TLS support
1703   --enable-intl           use internationalization system
1704   --enable-xlocale        use x-locale support (requires wxLocale)
1705   --enable-config         use wxConfig (and derived) classes
1706   --enable-protocols      use wxProtocol and derived classes
1707   --enable-ftp            use wxFTP (requires wxProtocol
1708   --enable-http           use wxHTTP (requires wxProtocol
1709   --enable-fileproto      use wxFileProto class (requires wxProtocol
1710   --enable-sockets        use socket/network classes
1711   --enable-ipv6           enable IPv6 support in wxSocket
1712   --enable-ole            use OLE classes (Win32 only)
1713   --enable-dataobj        use data object classes
1714   --enable-ipc            use interprocess communication (wxSocket etc.)
1715   --enable-baseevtloop    use event loop in console programs too
1716   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1717   --enable-selectloop     use wxSelectDispatcher class
1718   --enable-any            use wxAny class
1719   --enable-apple_ieee     use the Apple IEEE codec
1720   --enable-arcstream      use wxArchive streams
1721   --enable-base64         use base64 encoding/decoding functions
1722   --enable-backtrace      use wxStackWalker class for getting backtraces
1723   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1724   --enable-cmdline        use wxCmdLineParser class
1725   --enable-datetime       use wxDateTime class
1726   --enable-debugreport    use wxDebugReport class
1727   --enable-dialupman      use dialup network classes
1728   --enable-dynlib         use wxLibrary class for DLL loading
1729   --enable-dynamicloader  use (new) wxDynamicLibrary class
1730   --enable-exceptions     build exception-safe library
1731   --enable-ffile          use wxFFile class
1732   --enable-file           use wxFile class
1733   --enable-filesystem     use virtual file systems classes
1734   --enable-fontenum       use wxFontEnumerator class
1735   --enable-fontmap        use font encodings conversion classes
1736   --enable-fs_archive     use virtual archive filesystems
1737   --enable-fs_inet        use virtual HTTP/FTP filesystems
1738   --enable-fs_zip         now replaced by fs_archive
1739   --enable-geometry       use geometry class
1740   --enable-log            use logging system
1741   --enable-longlong       use wxLongLong class
1742   --enable-mimetype       use wxMimeTypesManager
1743   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1744   --enable-snglinst       use wxSingleInstanceChecker class
1745   --enable-sound          use wxSound class
1746   --enable-stdpaths       use wxStandardPaths class
1747   --enable-stopwatch      use wxStopWatch class
1748   --enable-streams        use wxStream etc classes
1749   --enable-sysoptions     use wxSystemOptions
1750   --enable-tarstream      use wxTar streams
1751   --enable-textbuf        use wxTextBuffer class
1752   --enable-textfile       use wxTextFile class
1753   --enable-timer          use wxTimer class
1754   --enable-variant        use wxVariant class
1755   --enable-zipstream      use wxZip streams
1756   --enable-url            use wxURL class
1757   --enable-protocol       use wxProtocol class
1758   --enable-protocol-http  HTTP support in wxProtocol
1759   --enable-protocol-ftp   FTP support in wxProtocol
1760   --enable-protocol-file  FILE support in wxProtocol
1761   --enable-threads        use threads
1762   --enable-iniconf        use wxIniConfig (Win32 only)
1763   --enable-regkey         use wxRegKey class (Win32 only)
1764   --enable-docview        use document view architecture
1765   --enable-help           use help subsystem
1766   --enable-mshtmlhelp     use MS HTML Help (win32)
1767   --enable-html           use wxHTML sub-library
1768   --enable-htmlhelp       use wxHTML-based help
1769   --enable-xrc            use XRC resources sub-library
1770   --enable-aui            use AUI docking library
1771   --enable-propgrid       use wxPropertyGrid library
1772   --enable-ribbon         use wxRibbon library
1773   --enable-stc            use wxStyledTextCtrl library
1774   --enable-constraints    use layout-constraints system
1775   --enable-loggui         use standard GUI logger
1776   --enable-logwin         use wxLogWindow
1777   --enable-logdialog      use wxLogDialog
1778   --enable-mdi            use multiple document interface architecture
1779   --enable-mdidoc         use docview architecture with MDI
1780   --enable-mediactrl      use wxMediaCtrl class
1781   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1782   --enable-webkit         use wxWebKitCtrl (Mac)
1783   --enable-richtext       use wxRichTextCtrl
1784   --enable-graphics_ctx   use graphics context 2D drawing API
1785   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1786   --enable-printarch      use printing architecture
1787   --enable-svg            use wxSVGFileDC device context
1788   --enable-clipboard      use wxClipboard class
1789   --enable-dnd            use Drag'n'Drop classes
1790   --enable-metafile       use win32 metafiles
1791   --disable-controls      disable compilation of all standard controls
1792   --enable-accel          use accelerators
1793   --enable-animatectrl    use wxAnimationCtrl class
1794   --enable-bmpbutton      use wxBitmapButton class
1795   --enable-bmpcombobox    use wxBitmapComboBox class
1796   --enable-button         use wxButton class
1797   --enable-calendar       use wxCalendarCtrl class
1798   --enable-caret          use wxCaret class
1799   --enable-checkbox       use wxCheckBox class
1800   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1801   --enable-choice         use wxChoice class
1802   --enable-choicebook     use wxChoicebook class
1803   --enable-collpane       use wxCollapsiblePane class
1804   --enable-colourpicker   use wxColourPickerCtrl class
1805   --enable-combobox       use wxComboBox class
1806   --enable-comboctrl      use wxComboCtrl class
1807   --enable-dataviewctrl   use wxDataViewCtrl class
1808   --enable-datepick       use wxDatePickerCtrl class
1809   --enable-detect_sm      use code to detect X11 session manager
1810   --enable-dirpicker      use wxDirPickerCtrl class
1811   --enable-display        use wxDisplay class
1812   --enable-editablebox    use wxEditableListBox class
1813   --enable-filectrl       use wxFileCtrl class
1814   --enable-filepicker     use wxFilePickerCtrl class
1815   --enable-fontpicker     use wxFontPickerCtrl class
1816   --enable-gauge          use wxGauge class
1817   --enable-grid           use wxGrid class
1818   --enable-headerctrl     use wxHeaderCtrl class
1819   --enable-hyperlink      use wxHyperlinkCtrl class
1820   --enable-imaglist       use wxImageList class
1821   --enable-listbook       use wxListbook class
1822   --enable-listbox        use wxListBox class
1823   --enable-listctrl       use wxListCtrl class
1824   --enable-notebook       use wxNotebook class
1825   --enable-notifmsg       use wxNotificationMessage class
1826   --enable-odcombobox     use wxOwnerDrawnComboBox class
1827   --enable-popupwin       use wxPopUpWindow class
1828   --enable-radiobox       use wxRadioBox class
1829   --enable-radiobtn       use wxRadioButton class
1830   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1831   --enable-sash           use wxSashWindow class
1832   --enable-scrollbar      use wxScrollBar class and scrollable windows
1833   --enable-searchctrl     use wxSearchCtrl class
1834   --enable-slider         use wxSlider class
1835   --enable-spinbtn        use wxSpinButton class
1836   --enable-spinctrl       use wxSpinCtrl class
1837   --enable-splitter       use wxSplitterWindow class
1838   --enable-statbmp        use wxStaticBitmap class
1839   --enable-statbox        use wxStaticBox class
1840   --enable-statline       use wxStaticLine class
1841   --enable-stattext       use wxStaticText class
1842   --enable-statusbar      use wxStatusBar class
1843   --enable-taskbaricon    use wxTaskBarIcon class
1844   --enable-tbarnative     use native wxToolBar class
1845   --enable-textctrl       use wxTextCtrl class
1846   --enable-tipwindow      use wxTipWindow class
1847   --enable-togglebtn      use wxToggleButton class
1848   --enable-toolbar        use wxToolBar class
1849   --enable-toolbook       use wxToolbook class
1850   --enable-treebook       use wxTreebook class
1851   --enable-treectrl       use wxTreeCtrl class
1852   --enable-commondlg      use all common dialogs
1853   --enable-aboutdlg       use wxAboutBox
1854   --enable-choicedlg      use wxChoiceDialog
1855   --enable-coldlg         use wxColourDialog
1856   --enable-filedlg        use wxFileDialog
1857   --enable-finddlg        use wxFindReplaceDialog
1858   --enable-fontdlg        use wxFontDialog
1859   --enable-dirdlg         use wxDirDialog
1860   --enable-msgdlg         use wxMessageDialog
1861   --enable-numberdlg      use wxNumberEntryDialog
1862   --enable-splash         use wxSplashScreen
1863   --enable-textdlg        use wxTextDialog
1864   --enable-tipdlg         use startup tips
1865   --enable-progressdlg    use wxProgressDialog
1866   --enable-wizarddlg      use wxWizard
1867   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1868   --enable-miniframe      use wxMiniFrame class
1869   --enable-tooltips       use wxToolTip class
1870   --enable-splines        use spline drawing code
1871   --enable-mousewheel     use mousewheel
1872   --enable-validators     use wxValidator and derived classes
1873   --enable-busyinfo       use wxBusyInfo
1874   --enable-joystick       use wxJoystick
1875   --enable-metafiles      use wxMetaFile (Win32 only)
1876   --enable-dragimage      use wxDragImage
1877   --enable-accessibility  enable accessibility support
1878   --enable-palette        use wxPalette class
1879   --enable-image          use wxImage class
1880   --enable-gif            use gif images (GIF file format)
1881   --enable-pcx            use pcx images (PCX file format)
1882   --enable-tga            use tga images (TGA file format)
1883   --enable-iff            use iff images (IFF file format)
1884   --enable-pnm            use pnm images (PNM file format)
1885   --enable-xpm            use xpm images (XPM file format)
1886   --enable-ico_cur        use Windows ICO and CUR formats
1887   --enable-dccache        cache temporary wxDC objects (Win32 only)
1888   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1889   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1890   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1891   --enable-wxdib          use wxDIB class (Win32 only)
1892   --enable-autoidman      use automatic ids management
1893   --disable-largefile     omit support for large files
1894   --disable-gtktest       do not try to compile and run a test GTK+ program
1895   --disable-gtktest       Do not try to compile and run a test GTK program
1896   --disable-sdltest       Do not try to compile and run a test SDL program
1897   --enable-omf            use OMF object format (OS/2)
1898   --disable-dependency-tracking
1899                           don't use dependency tracking even if the compiler
1900                           can
1901   --disable-precomp-headers
1902                           don't use precompiled headers even if compiler can
1903
1904 Optional Packages:
1905   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1906   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1907   --without-subdirs       don't generate makefiles for samples/demos/...
1908   --with-flavour=NAME     specify a name to identify this build
1909   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1910   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1911   --with-motif            use Motif/Lesstif
1912   --with-osx_carbon       use Mac OS X (Carbon)
1913   --with-osx_cocoa        use Mac OS X (Cocoa)
1914   --with-mac              use Mac OS X (Default)
1915   --with-cocoa            use Cocoa
1916   --with-wine             use Wine
1917   --with-msw              use MS-Windows
1918   --with-pm               use OS/2 Presentation Manager
1919   --with-mgl              use SciTech MGL
1920   --with-directfb         use DirectFB
1921   --with-microwin         use MicroWindows
1922   --with-x11              use X11
1923   --with-libpng           use libpng (PNG image format)
1924   --with-libjpeg          use libjpeg (JPEG file format)
1925   --with-libtiff          use libtiff (TIFF file format)
1926   --with-libxpm           use libxpm (XPM file format)
1927   --with-libiconv         use libiconv (character conversion)
1928   --with-libmspack        use libmspack (CHM help files loading)
1929   --without-gtkprint      don't use GTK printing support
1930   --without-gnomeprint    don't use GNOME printing libraries
1931   --with-gnomevfs         use GNOME VFS for associating MIME types
1932   --with-hildon           use Hildon framework for Nokia 770/800/810
1933   --with-opengl           use OpenGL (or Mesa)
1934   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1935   --with-sdl              use SDL for audio on Unix
1936   --with-regex            enable support for wxRegEx class
1937   --with-zlib             use zlib for LZW compression
1938   --with-expat            enable XML support using expat parser
1939   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1940   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1941   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1942   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1943   --with-x                use the X Window System
1944   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1945   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1946   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1947   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1948   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1949
1950 Some influential environment variables:
1951   CC          C compiler command
1952   CFLAGS      C compiler flags
1953   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1954               nonstandard directory <lib dir>
1955   LIBS        libraries to pass to the linker, e.g. -l<library>
1956   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1957               you have headers in a nonstandard directory <include dir>
1958   CPP         C preprocessor
1959   CXX         C++ compiler command
1960   CXXFLAGS    C++ compiler flags
1961   PKG_CONFIG  path to pkg-config utility
1962   DIRECTFB_CFLAGS
1963               C compiler flags for DIRECTFB, overriding pkg-config
1964   DIRECTFB_LIBS
1965               linker flags for DIRECTFB, overriding pkg-config
1966   XMKMF       Path to xmkmf, Makefile generator for X Window System
1967   PANGOX_CFLAGS
1968               C compiler flags for PANGOX, overriding pkg-config
1969   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1970   PANGOFT2_CFLAGS
1971               C compiler flags for PANGOFT2, overriding pkg-config
1972   PANGOFT2_LIBS
1973               linker flags for PANGOFT2, overriding pkg-config
1974   PANGOXFT_CFLAGS
1975               C compiler flags for PANGOXFT, overriding pkg-config
1976   PANGOXFT_LIBS
1977               linker flags for PANGOXFT, overriding pkg-config
1978   GTKPRINT_CFLAGS
1979               C compiler flags for GTKPRINT, overriding pkg-config
1980   GTKPRINT_LIBS
1981               linker flags for GTKPRINT, overriding pkg-config
1982   LIBGNOMEPRINTUI_CFLAGS
1983               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1984   LIBGNOMEPRINTUI_LIBS
1985               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1986   GNOMEVFS_CFLAGS
1987               C compiler flags for GNOMEVFS, overriding pkg-config
1988   GNOMEVFS_LIBS
1989               linker flags for GNOMEVFS, overriding pkg-config
1990   HILDON_CFLAGS
1991               C compiler flags for HILDON, overriding pkg-config
1992   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1993   HILDON2_CFLAGS
1994               C compiler flags for HILDON2, overriding pkg-config
1995   HILDON2_LIBS
1996               linker flags for HILDON2, overriding pkg-config
1997   CAIRO_CFLAGS
1998               C compiler flags for CAIRO, overriding pkg-config
1999   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2000   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2001   GST_LIBS    linker flags for GST, overriding pkg-config
2002
2003 Use these variables to override the choices made by `configure' or to help
2004 it to find libraries and programs with nonstandard names/locations.
2005
2006 Report bugs to <wx-dev@lists.wxwidgets.org>.
2007 _ACEOF
2008 ac_status=$?
2009 fi
2010
2011 if test "$ac_init_help" = "recursive"; then
2012   # If there are subdirs, report their specific --help.
2013   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2014     test -d "$ac_dir" || continue
2015     ac_builddir=.
2016
2017 case "$ac_dir" in
2018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2019 *)
2020   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2021   # A ".." for each directory in $ac_dir_suffix.
2022   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2023   case $ac_top_builddir_sub in
2024   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2025   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2026   esac ;;
2027 esac
2028 ac_abs_top_builddir=$ac_pwd
2029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2030 # for backward compatibility:
2031 ac_top_builddir=$ac_top_build_prefix
2032
2033 case $srcdir in
2034   .)  # We are building in place.
2035     ac_srcdir=.
2036     ac_top_srcdir=$ac_top_builddir_sub
2037     ac_abs_top_srcdir=$ac_pwd ;;
2038   [\\/]* | ?:[\\/]* )  # Absolute name.
2039     ac_srcdir=$srcdir$ac_dir_suffix;
2040     ac_top_srcdir=$srcdir
2041     ac_abs_top_srcdir=$srcdir ;;
2042   *) # Relative name.
2043     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2044     ac_top_srcdir=$ac_top_build_prefix$srcdir
2045     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2046 esac
2047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2048
2049     cd "$ac_dir" || { ac_status=$?; continue; }
2050     # Check for guested configure.
2051     if test -f "$ac_srcdir/configure.gnu"; then
2052       echo &&
2053       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2054     elif test -f "$ac_srcdir/configure"; then
2055       echo &&
2056       $SHELL "$ac_srcdir/configure" --help=recursive
2057     else
2058       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2059     fi || ac_status=$?
2060     cd "$ac_pwd" || { ac_status=$?; break; }
2061   done
2062 fi
2063
2064 test -n "$ac_init_help" && exit $ac_status
2065 if $ac_init_version; then
2066   cat <<\_ACEOF
2067 wxWidgets configure 2.9.1
2068 generated by GNU Autoconf 2.61
2069
2070 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2071 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2072 This configure script is free software; the Free Software Foundation
2073 gives unlimited permission to copy, distribute and modify it.
2074 _ACEOF
2075   exit
2076 fi
2077 cat >config.log <<_ACEOF
2078 This file contains any messages produced by compilers while
2079 running configure, to aid debugging if configure makes a mistake.
2080
2081 It was created by wxWidgets $as_me 2.9.1, which was
2082 generated by GNU Autoconf 2.61.  Invocation command line was
2083
2084   $ $0 $@
2085
2086 _ACEOF
2087 exec 5>>config.log
2088 {
2089 cat <<_ASUNAME
2090 ## --------- ##
2091 ## Platform. ##
2092 ## --------- ##
2093
2094 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2099
2100 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2102
2103 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2104 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2105 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2106 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2107 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2108 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2109 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2110
2111 _ASUNAME
2112
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116   IFS=$as_save_IFS
2117   test -z "$as_dir" && as_dir=.
2118   echo "PATH: $as_dir"
2119 done
2120 IFS=$as_save_IFS
2121
2122 } >&5
2123
2124 cat >&5 <<_ACEOF
2125
2126
2127 ## ----------- ##
2128 ## Core tests. ##
2129 ## ----------- ##
2130
2131 _ACEOF
2132
2133
2134 # Keep a trace of the command line.
2135 # Strip out --no-create and --no-recursion so they do not pile up.
2136 # Strip out --silent because we don't want to record it for future runs.
2137 # Also quote any args containing shell meta-characters.
2138 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_configure_args=
2140 ac_configure_args0=
2141 ac_configure_args1=
2142 ac_must_keep_next=false
2143 for ac_pass in 1 2
2144 do
2145   for ac_arg
2146   do
2147     case $ac_arg in
2148     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150     | -silent | --silent | --silen | --sile | --sil)
2151       continue ;;
2152     *\'*)
2153       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154     esac
2155     case $ac_pass in
2156     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2157     2)
2158       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2159       if test $ac_must_keep_next = true; then
2160         ac_must_keep_next=false # Got value, back to normal.
2161       else
2162         case $ac_arg in
2163           *=* | --config-cache | -C | -disable-* | --disable-* \
2164           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166           | -with-* | --with-* | -without-* | --without-* | --x)
2167             case "$ac_configure_args0 " in
2168               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169             esac
2170             ;;
2171           -* ) ac_must_keep_next=true ;;
2172         esac
2173       fi
2174       ac_configure_args="$ac_configure_args '$ac_arg'"
2175       ;;
2176     esac
2177   done
2178 done
2179 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2180 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2181
2182 # When interrupted or exit'd, cleanup temporary files, and complete
2183 # config.log.  We remove comments because anyway the quotes in there
2184 # would cause problems or look ugly.
2185 # WARNING: Use '\'' to represent an apostrophe within the trap.
2186 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2187 trap 'exit_status=$?
2188   # Save into config.log some information that might help in debugging.
2189   {
2190     echo
2191
2192     cat <<\_ASBOX
2193 ## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##
2196 _ASBOX
2197     echo
2198     # The following way of writing the cache mishandles newlines in values,
2199 (
2200   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201     eval ac_val=\$$ac_var
2202     case $ac_val in #(
2203     *${as_nl}*)
2204       case $ac_var in #(
2205       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2206 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2207       esac
2208       case $ac_var in #(
2209       _ | IFS | as_nl) ;; #(
2210       *) $as_unset $ac_var ;;
2211       esac ;;
2212     esac
2213   done
2214   (set) 2>&1 |
2215     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216     *${as_nl}ac_space=\ *)
2217       sed -n \
2218         "s/'\''/'\''\\\\'\'''\''/g;
2219           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220       ;; #(
2221     *)
2222       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223       ;;
2224     esac |
2225     sort
2226 )
2227     echo
2228
2229     cat <<\_ASBOX
2230 ## ----------------- ##
2231 ## Output variables. ##
2232 ## ----------------- ##
2233 _ASBOX
2234     echo
2235     for ac_var in $ac_subst_vars
2236     do
2237       eval ac_val=\$$ac_var
2238       case $ac_val in
2239       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240       esac
2241       echo "$ac_var='\''$ac_val'\''"
2242     done | sort
2243     echo
2244
2245     if test -n "$ac_subst_files"; then
2246       cat <<\_ASBOX
2247 ## ------------------- ##
2248 ## File substitutions. ##
2249 ## ------------------- ##
2250 _ASBOX
2251       echo
2252       for ac_var in $ac_subst_files
2253       do
2254         eval ac_val=\$$ac_var
2255         case $ac_val in
2256         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257         esac
2258         echo "$ac_var='\''$ac_val'\''"
2259       done | sort
2260       echo
2261     fi
2262
2263     if test -s confdefs.h; then
2264       cat <<\_ASBOX
2265 ## ----------- ##
2266 ## confdefs.h. ##
2267 ## ----------- ##
2268 _ASBOX
2269       echo
2270       cat confdefs.h
2271       echo
2272     fi
2273     test "$ac_signal" != 0 &&
2274       echo "$as_me: caught signal $ac_signal"
2275     echo "$as_me: exit $exit_status"
2276   } >&5
2277   rm -f core *.core core.conftest.* &&
2278     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2279     exit $exit_status
2280 ' 0
2281 for ac_signal in 1 2 13 15; do
2282   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2283 done
2284 ac_signal=0
2285
2286 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2287 rm -f -r conftest* confdefs.h
2288
2289 # Predefined preprocessor variables.
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_NAME "$PACKAGE_NAME"
2293 _ACEOF
2294
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF
2299
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2303 _ACEOF
2304
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 _ACEOF
2309
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2314
2315
2316 # Let the site file select an alternate cache file if it wants to.
2317 # Prefer explicitly selected file to automatically selected ones.
2318 if test -n "$CONFIG_SITE"; then
2319   set x "$CONFIG_SITE"
2320 elif test "x$prefix" != xNONE; then
2321   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2322 else
2323   set x "$ac_default_prefix/share/config.site" \
2324         "$ac_default_prefix/etc/config.site"
2325 fi
2326 shift
2327 for ac_site_file
2328 do
2329   if test -r "$ac_site_file"; then
2330     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2331 echo "$as_me: loading site script $ac_site_file" >&6;}
2332     sed 's/^/| /' "$ac_site_file" >&5
2333     . "$ac_site_file"
2334   fi
2335 done
2336
2337 if test -r "$cache_file"; then
2338   # Some versions of bash will fail to source /dev/null (special
2339   # files actually), so we avoid doing that.
2340   if test -f "$cache_file"; then
2341     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2342 echo "$as_me: loading cache $cache_file" >&6;}
2343     case $cache_file in
2344       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345       *)                      . "./$cache_file";;
2346     esac
2347   fi
2348 else
2349   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2350 echo "$as_me: creating cache $cache_file" >&6;}
2351   >$cache_file
2352 fi
2353
2354 # Check that the precious variables saved in the cache have kept the same
2355 # value.
2356 ac_cache_corrupted=false
2357 for ac_var in $ac_precious_vars; do
2358   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2359   eval ac_new_set=\$ac_env_${ac_var}_set
2360   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2361   eval ac_new_val=\$ac_env_${ac_var}_value
2362   case $ac_old_set,$ac_new_set in
2363     set,)
2364       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2365 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2366       ac_cache_corrupted=: ;;
2367     ,set)
2368       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2369 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2370       ac_cache_corrupted=: ;;
2371     ,);;
2372     *)
2373       if test "x$ac_old_val" != "x$ac_new_val"; then
2374         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2375 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2377 echo "$as_me:   former value:  $ac_old_val" >&2;}
2378         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2379 echo "$as_me:   current value: $ac_new_val" >&2;}
2380         ac_cache_corrupted=:
2381       fi;;
2382   esac
2383   # Pass precious variables to config.status.
2384   if test "$ac_new_set" = set; then
2385     case $ac_new_val in
2386     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387     *) ac_arg=$ac_var=$ac_new_val ;;
2388     esac
2389     case " $ac_configure_args " in
2390       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2391       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2392     esac
2393   fi
2394 done
2395 if $ac_cache_corrupted; then
2396   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2397 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2399 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2400    { (exit 1); exit 1; }; }
2401 fi
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433
2434
2435
2436
2437 ac_aux_dir=
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439   if test -f "$ac_dir/install-sh"; then
2440     ac_aux_dir=$ac_dir
2441     ac_install_sh="$ac_aux_dir/install-sh -c"
2442     break
2443   elif test -f "$ac_dir/install.sh"; then
2444     ac_aux_dir=$ac_dir
2445     ac_install_sh="$ac_aux_dir/install.sh -c"
2446     break
2447   elif test -f "$ac_dir/shtool"; then
2448     ac_aux_dir=$ac_dir
2449     ac_install_sh="$ac_aux_dir/shtool install -c"
2450     break
2451   fi
2452 done
2453 if test -z "$ac_aux_dir"; then
2454   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2455 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2456    { (exit 1); exit 1; }; }
2457 fi
2458
2459 # These three variables are undocumented and unsupported,
2460 # and are intended to be withdrawn in a future Autoconf release.
2461 # They can cause serious problems if a builder's source tree is in a directory
2462 # whose full name contains unusual characters.
2463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2465 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2466
2467
2468 # Make sure we can run config.sub.
2469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2470   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2471 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2472    { (exit 1); exit 1; }; }
2473
2474 { echo "$as_me:$LINENO: checking build system type" >&5
2475 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2476 if test "${ac_cv_build+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_build_alias=$build_alias
2480 test "x$ac_build_alias" = x &&
2481   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2482 test "x$ac_build_alias" = x &&
2483   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2484 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2485    { (exit 1); exit 1; }; }
2486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2488 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2489    { (exit 1); exit 1; }; }
2490
2491 fi
2492 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2493 echo "${ECHO_T}$ac_cv_build" >&6; }
2494 case $ac_cv_build in
2495 *-*-*) ;;
2496 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2497 echo "$as_me: error: invalid value of canonical build" >&2;}
2498    { (exit 1); exit 1; }; };;
2499 esac
2500 build=$ac_cv_build
2501 ac_save_IFS=$IFS; IFS='-'
2502 set x $ac_cv_build
2503 shift
2504 build_cpu=$1
2505 build_vendor=$2
2506 shift; shift
2507 # Remember, the first character of IFS is used to create $*,
2508 # except with old shells:
2509 build_os=$*
2510 IFS=$ac_save_IFS
2511 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2512
2513
2514 { echo "$as_me:$LINENO: checking host system type" >&5
2515 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2516 if test "${ac_cv_host+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test "x$host_alias" = x; then
2520   ac_cv_host=$ac_cv_build
2521 else
2522   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2523     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2524 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2525    { (exit 1); exit 1; }; }
2526 fi
2527
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2530 echo "${ECHO_T}$ac_cv_host" >&6; }
2531 case $ac_cv_host in
2532 *-*-*) ;;
2533 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2534 echo "$as_me: error: invalid value of canonical host" >&2;}
2535    { (exit 1); exit 1; }; };;
2536 esac
2537 host=$ac_cv_host
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_host
2540 shift
2541 host_cpu=$1
2542 host_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 host_os=$*
2547 IFS=$ac_save_IFS
2548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2549
2550
2551
2552 if test "$cross_compiling" != "no"; then
2553     HOST_PREFIX="${host_alias}-"
2554     HOST_SUFFIX="-$host_alias"
2555 else
2556     HOST_PREFIX=
2557     HOST_SUFFIX=
2558 fi
2559
2560
2561 wx_major_version_number=2
2562 wx_minor_version_number=9
2563 wx_release_number=1
2564 wx_subrelease_number=0
2565
2566 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2567 WX_VERSION=$WX_RELEASE.$wx_release_number
2568 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2569
2570 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2571
2572
2573 wx_top_builddir="`pwd`"
2574
2575
2576
2577
2578 USE_UNIX=1
2579 USE_OS2=0
2580 USE_WIN32=0
2581 USE_DOS=0
2582 USE_BEOS=0
2583 USE_MAC=0
2584
2585 USE_AIX=
2586 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2587 USE_GNU=                            USE_HPUX=
2588 USE_LINUX=
2589 USE_NETBSD=
2590 USE_OPENBSD=
2591 USE_OSF=                            USE_SGI=
2592 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2593 USE_ULTRIX=
2594 USE_UNIXWARE=
2595
2596 USE_ALPHA=
2597
2598 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2599
2600 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2601
2602 DEFAULT_wxUSE_COCOA=0
2603 DEFAULT_wxUSE_GTK=0
2604 DEFAULT_wxUSE_OSX_CARBON=0
2605 DEFAULT_wxUSE_OSX_COCOA=0
2606 DEFAULT_wxUSE_MGL=0
2607 DEFAULT_wxUSE_MICROWIN=0
2608 DEFAULT_wxUSE_MOTIF=0
2609 DEFAULT_wxUSE_MSW=0
2610 DEFAULT_wxUSE_PM=0
2611 DEFAULT_wxUSE_X11=0
2612 DEFAULT_wxUSE_DFB=0
2613
2614 DEFAULT_DEFAULT_wxUSE_COCOA=0
2615 DEFAULT_DEFAULT_wxUSE_GTK=0
2616 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2617 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2618 DEFAULT_DEFAULT_wxUSE_MGL=0
2619 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2620 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2621 DEFAULT_DEFAULT_wxUSE_MSW=0
2622 DEFAULT_DEFAULT_wxUSE_PM=0
2623 DEFAULT_DEFAULT_wxUSE_X11=0
2624 DEFAULT_DEFAULT_wxUSE_DFB=0
2625
2626 PROGRAM_EXT=
2627 SAMPLES_RPATH_FLAG=
2628 DYLIB_RPATH_INSTALL=
2629 DYLIB_RPATH_POSTLINK=
2630
2631 DEFAULT_STD_FLAG=yes
2632
2633 case "${host}" in
2634   *-hp-hpux* )
2635     USE_HPUX=1
2636     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2637     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2638     cat >>confdefs.h <<\_ACEOF
2639 #define __HPUX__ 1
2640 _ACEOF
2641
2642
2643             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2644   ;;
2645   *-*-linux* )
2646     USE_LINUX=1
2647     cat >>confdefs.h <<\_ACEOF
2648 #define __LINUX__ 1
2649 _ACEOF
2650
2651     TMP=`uname -m`
2652     if test "x$TMP" = "xalpha"; then
2653       USE_ALPHA=1
2654       cat >>confdefs.h <<\_ACEOF
2655 #define __ALPHA__ 1
2656 _ACEOF
2657
2658     fi
2659     DEFAULT_DEFAULT_wxUSE_GTK=1
2660   ;;
2661   *-*-gnu* | *-*-k*bsd*-gnu )
2662     USE_GNU=1
2663     TMP=`uname -m`
2664     if test "x$TMP" = "xalpha"; then
2665       USE_ALPHA=1
2666       cat >>confdefs.h <<\_ACEOF
2667 #define __ALPHA__ 1
2668 _ACEOF
2669
2670     fi
2671     DEFAULT_DEFAULT_wxUSE_GTK=1
2672   ;;
2673   *-*-irix5* | *-*-irix6* )
2674     USE_SGI=1
2675     USE_SVR4=1
2676     cat >>confdefs.h <<\_ACEOF
2677 #define __SGI__ 1
2678 _ACEOF
2679
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __SVR4__ 1
2682 _ACEOF
2683
2684     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2685   ;;
2686   *-*-solaris2* )
2687     USE_SUN=1
2688     USE_SOLARIS=1
2689     USE_SVR4=1
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __SUN__ 1
2692 _ACEOF
2693
2694     cat >>confdefs.h <<\_ACEOF
2695 #define __SOLARIS__ 1
2696 _ACEOF
2697
2698     cat >>confdefs.h <<\_ACEOF
2699 #define __SVR4__ 1
2700 _ACEOF
2701
2702     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2703     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2704   ;;
2705   *-*-sunos4* )
2706     USE_SUN=1
2707     USE_SUNOS=1
2708     USE_BSD=1
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __SUN__ 1
2711 _ACEOF
2712
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __SUNOS__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2722   ;;
2723   *-*-freebsd*)
2724     USE_BSD=1
2725     USE_FREEBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __FREEBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-openbsd*|*-*-mirbsd*)
2737     USE_BSD=1
2738     USE_OPENBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __OPENBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748   ;;
2749   *-*-netbsd*)
2750     USE_BSD=1
2751     USE_NETBSD=1
2752     cat >>confdefs.h <<\_ACEOF
2753 #define __NETBSD__ 1
2754 _ACEOF
2755
2756     cat >>confdefs.h <<\_ACEOF
2757 #define __BSD__ 1
2758 _ACEOF
2759
2760     DEFAULT_DEFAULT_wxUSE_GTK=1
2761     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2762
2763             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2764   ;;
2765   *-*-osf* )
2766     USE_ALPHA=1
2767     USE_OSF=1
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __ALPHA__ 1
2770 _ACEOF
2771
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __OSF__ 1
2774 _ACEOF
2775
2776     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2777     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2778   ;;
2779   *-*-dgux5* )
2780     USE_ALPHA=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __ALPHA__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-sysv5* )
2793     USE_SYSV=1
2794     USE_SVR4=1
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __SYSV__ 1
2797 _ACEOF
2798
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __SVR4__ 1
2801 _ACEOF
2802
2803     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2804   ;;
2805   *-*-aix* )
2806     USE_AIX=1
2807     USE_SYSV=1
2808     USE_SVR4=1
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __AIX__ 1
2811 _ACEOF
2812
2813     cat >>confdefs.h <<\_ACEOF
2814 #define __SYSV__ 1
2815 _ACEOF
2816
2817     cat >>confdefs.h <<\_ACEOF
2818 #define __SVR4__ 1
2819 _ACEOF
2820
2821     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2822   ;;
2823
2824   *-*-*UnixWare*)
2825     USE_SYSV=1
2826     USE_SVR4=1
2827     USE_UNIXWARE=1
2828     cat >>confdefs.h <<\_ACEOF
2829 #define __UNIXWARE__ 1
2830 _ACEOF
2831
2832   ;;
2833
2834   *-*-cygwin* | *-*-mingw32* )
2835                 PROGRAM_EXT=".exe"
2836     DEFAULT_DEFAULT_wxUSE_MSW=1
2837   ;;
2838
2839   *-pc-msdosdjgpp )
2840     USE_UNIX=0
2841     USE_DOS=1
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __DOS__ 1
2844 _ACEOF
2845
2846     PROGRAM_EXT=".exe"
2847     DEFAULT_DEFAULT_wxUSE_MGL=1
2848   ;;
2849
2850   *-pc-os2_emx | *-pc-os2-emx )
2851     cat >>confdefs.h <<\_ACEOF
2852 #define __EMX__ 1
2853 _ACEOF
2854
2855     USE_OS2=1
2856     cat >>confdefs.h <<\_ACEOF
2857 #define __OS2__ 1
2858 _ACEOF
2859
2860     PROGRAM_EXT=".exe"
2861     DEFAULT_DEFAULT_wxUSE_PM=1
2862         CXX=gcc
2863     LDFLAGS="$LDFLAGS -Zcrtdll"
2864                         ac_executable_extensions=".exe"
2865     export ac_executable_extensions
2866             ac_save_IFS="$IFS"
2867     IFS='\\'
2868     ac_TEMP_PATH=
2869     for ac_dir in $PATH; do
2870       IFS=$ac_save_IFS
2871       if test -z "$ac_TEMP_PATH"; then
2872         ac_TEMP_PATH="$ac_dir"
2873       else
2874         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2875       fi
2876     done
2877     export PATH="$ac_TEMP_PATH"
2878     unset ac_TEMP_PATH
2879     DEFAULT_STD_FLAG=no
2880   ;;
2881
2882   *-*-darwin* )
2883         USE_BSD=1
2884     USE_DARWIN=1
2885     cat >>confdefs.h <<\_ACEOF
2886 #define __BSD__ 1
2887 _ACEOF
2888
2889     cat >>confdefs.h <<\_ACEOF
2890 #define __DARWIN__ 1
2891 _ACEOF
2892
2893     cat >>confdefs.h <<\_ACEOF
2894 #define TARGET_CARBON 1
2895 _ACEOF
2896
2897     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2898   ;;
2899
2900   *-*-beos* )
2901         USE_BEOS=1
2902     cat >>confdefs.h <<\_ACEOF
2903 #define __BEOS__ 1
2904 _ACEOF
2905
2906   ;;
2907
2908   *)
2909     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2910 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2911     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2912 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2913
2914     DEFAULT_DEFAULT_wxUSE_X11=1
2915     DEFAULT_wxUSE_SHARED=no
2916 esac
2917
2918
2919
2920 DEFAULT_wxUSE_ALL_FEATURES=yes
2921
2922 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2923 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2924
2925 DEFAULT_wxUSE_DMALLOC=no
2926 DEFAULT_wxUSE_LIBGNOMEVFS=no
2927 DEFAULT_wxUSE_LIBHILDON=no
2928 DEFAULT_wxUSE_LIBHILDON2=no
2929 DEFAULT_wxUSE_LIBMSPACK=no
2930 DEFAULT_wxUSE_LIBSDL=no
2931
2932 DEFAULT_wxUSE_ACCESSIBILITY=no
2933 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2934 DEFAULT_wxUSE_IPV6=no
2935 DEFAULT_wxUSE_GSTREAMER8=no
2936
2937 DEFAULT_wxUSE_UNICODE_UTF8=auto
2938 DEFAULT_wxUSE_OPENGL=auto
2939 DEFAULT_wxUSE_MEDIACTRL=auto
2940 DEFAULT_wxUSE_COMPILER_TLS=auto
2941
2942 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2943
2944 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2945
2946 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2947
2948 DEFAULT_wxUSE_GTK2=yes
2949
2950 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2951
2952
2953
2954
2955
2956           enablestring=disable
2957           defaultval=
2958           if test -z "$defaultval"; then
2959               if test x"$enablestring" = xdisable; then
2960                   defaultval=yes
2961               else
2962                   defaultval=no
2963               fi
2964           fi
2965
2966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2967 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2968           # Check whether --enable-gui was given.
2969 if test "${enable_gui+set}" = set; then
2970   enableval=$enable_gui;
2971                           if test "$enableval" = yes; then
2972                             wx_cv_use_gui='wxUSE_GUI=yes'
2973                           else
2974                             wx_cv_use_gui='wxUSE_GUI=no'
2975                           fi
2976
2977 else
2978
2979                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2980
2981 fi
2982
2983
2984           eval "$wx_cv_use_gui"
2985
2986           if test x"$enablestring" = xdisable; then
2987             if test $wxUSE_GUI = no; then
2988               result=yes
2989             else
2990               result=no
2991             fi
2992           else
2993             result=$wxUSE_GUI
2994           fi
2995
2996           { echo "$as_me:$LINENO: result: $result" >&5
2997 echo "${ECHO_T}$result" >&6; }
2998
2999
3000           enablestring=
3001           defaultval=
3002           if test -z "$defaultval"; then
3003               if test x"$enablestring" = xdisable; then
3004                   defaultval=yes
3005               else
3006                   defaultval=no
3007               fi
3008           fi
3009
3010           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3011 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3012           # Check whether --enable-monolithic was given.
3013 if test "${enable_monolithic+set}" = set; then
3014   enableval=$enable_monolithic;
3015                           if test "$enableval" = yes; then
3016                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3017                           else
3018                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3019                           fi
3020
3021 else
3022
3023                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3024
3025 fi
3026
3027
3028           eval "$wx_cv_use_monolithic"
3029
3030           if test x"$enablestring" = xdisable; then
3031             if test $wxUSE_MONOLITHIC = no; then
3032               result=yes
3033             else
3034               result=no
3035             fi
3036           else
3037             result=$wxUSE_MONOLITHIC
3038           fi
3039
3040           { echo "$as_me:$LINENO: result: $result" >&5
3041 echo "${ECHO_T}$result" >&6; }
3042
3043
3044           enablestring=
3045           defaultval=
3046           if test -z "$defaultval"; then
3047               if test x"$enablestring" = xdisable; then
3048                   defaultval=yes
3049               else
3050                   defaultval=no
3051               fi
3052           fi
3053
3054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3055 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3056           # Check whether --enable-plugins was given.
3057 if test "${enable_plugins+set}" = set; then
3058   enableval=$enable_plugins;
3059                           if test "$enableval" = yes; then
3060                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3061                           else
3062                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3063                           fi
3064
3065 else
3066
3067                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3068
3069 fi
3070
3071
3072           eval "$wx_cv_use_plugins"
3073
3074           if test x"$enablestring" = xdisable; then
3075             if test $wxUSE_PLUGINS = no; then
3076               result=yes
3077             else
3078               result=no
3079             fi
3080           else
3081             result=$wxUSE_PLUGINS
3082           fi
3083
3084           { echo "$as_me:$LINENO: result: $result" >&5
3085 echo "${ECHO_T}$result" >&6; }
3086
3087
3088           withstring=without
3089           defaultval=$wxUSE_ALL_FEATURES
3090           if test -z "$defaultval"; then
3091               if test x"$withstring" = xwithout; then
3092                   defaultval=yes
3093               else
3094                   defaultval=no
3095               fi
3096           fi
3097           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3098 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3099
3100 # Check whether --with-subdirs was given.
3101 if test "${with_subdirs+set}" = set; then
3102   withval=$with_subdirs;
3103                         if test "$withval" = yes; then
3104                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3105                         else
3106                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3107                         fi
3108
3109 else
3110
3111                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3112
3113 fi
3114
3115
3116           eval "$wx_cv_use_subdirs"
3117
3118           if test x"$withstring" = xwithout; then
3119             if test $wxWITH_SUBDIRS = yes; then
3120               result=no
3121             else
3122               result=yes
3123             fi
3124           else
3125             result=$wxWITH_SUBDIRS
3126           fi
3127
3128           { echo "$as_me:$LINENO: result: $result" >&5
3129 echo "${ECHO_T}$result" >&6; }
3130
3131
3132 # Check whether --with-flavour was given.
3133 if test "${with_flavour+set}" = set; then
3134   withval=$with_flavour; WX_FLAVOUR="$withval"
3135 fi
3136
3137
3138           enablestring=
3139           defaultval=
3140           if test -z "$defaultval"; then
3141               if test x"$enablestring" = xdisable; then
3142                   defaultval=yes
3143               else
3144                   defaultval=no
3145               fi
3146           fi
3147
3148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3149 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3150           # Check whether --enable-official_build was given.
3151 if test "${enable_official_build+set}" = set; then
3152   enableval=$enable_official_build;
3153                           if test "$enableval" = yes; then
3154                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3155                           else
3156                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3157                           fi
3158
3159 else
3160
3161                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3162
3163 fi
3164
3165
3166           eval "$wx_cv_use_official_build"
3167
3168           if test x"$enablestring" = xdisable; then
3169             if test $wxUSE_OFFICIAL_BUILD = no; then
3170               result=yes
3171             else
3172               result=no
3173             fi
3174           else
3175             result=$wxUSE_OFFICIAL_BUILD
3176           fi
3177
3178           { echo "$as_me:$LINENO: result: $result" >&5
3179 echo "${ECHO_T}$result" >&6; }
3180
3181 # Check whether --enable-vendor was given.
3182 if test "${enable_vendor+set}" = set; then
3183   enableval=$enable_vendor; VENDOR="$enableval"
3184 fi
3185
3186 if test "x$VENDOR" = "x"; then
3187     VENDOR="custom"
3188 fi
3189
3190
3191           enablestring=disable
3192           defaultval=
3193           if test -z "$defaultval"; then
3194               if test x"$enablestring" = xdisable; then
3195                   defaultval=yes
3196               else
3197                   defaultval=no
3198               fi
3199           fi
3200
3201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3202 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3203           # Check whether --enable-all-features was given.
3204 if test "${enable_all_features+set}" = set; then
3205   enableval=$enable_all_features;
3206                           if test "$enableval" = yes; then
3207                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3208                           else
3209                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3210                           fi
3211
3212 else
3213
3214                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3215
3216 fi
3217
3218
3219           eval "$wx_cv_use_all_features"
3220
3221           if test x"$enablestring" = xdisable; then
3222             if test $wxUSE_ALL_FEATURES = no; then
3223               result=yes
3224             else
3225               result=no
3226             fi
3227           else
3228             result=$wxUSE_ALL_FEATURES
3229           fi
3230
3231           { echo "$as_me:$LINENO: result: $result" >&5
3232 echo "${ECHO_T}$result" >&6; }
3233
3234
3235 if test "$wxUSE_ALL_FEATURES" = "no"; then
3236                     DEFAULT_wxUSE_MEDIACTRL=no
3237 fi
3238
3239
3240 if test "$wxUSE_GUI" = "yes"; then
3241
3242
3243           enablestring=
3244           defaultval=
3245           if test -z "$defaultval"; then
3246               if test x"$enablestring" = xdisable; then
3247                   defaultval=yes
3248               else
3249                   defaultval=no
3250               fi
3251           fi
3252
3253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3254 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3255           # Check whether --enable-universal was given.
3256 if test "${enable_universal+set}" = set; then
3257   enableval=$enable_universal;
3258                           if test "$enableval" = yes; then
3259                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3260                           else
3261                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3262                           fi
3263
3264 else
3265
3266                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3267
3268 fi
3269
3270
3271           eval "$wx_cv_use_universal"
3272
3273           if test x"$enablestring" = xdisable; then
3274             if test $wxUSE_UNIVERSAL = no; then
3275               result=yes
3276             else
3277               result=no
3278             fi
3279           else
3280             result=$wxUSE_UNIVERSAL
3281           fi
3282
3283           { echo "$as_me:$LINENO: result: $result" >&5
3284 echo "${ECHO_T}$result" >&6; }
3285
3286 if test "$wxUSE_UNIVERSAL" = "yes"; then
3287
3288 # Check whether --with-themes was given.
3289 if test "${with_themes+set}" = set; then
3290   withval=$with_themes; wxUNIV_THEMES="$withval"
3291 fi
3292
3293 fi
3294
3295
3296 # Check whether --with-gtk was given.
3297 if test "${with_gtk+set}" = set; then
3298   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3299 fi
3300
3301
3302 # Check whether --with-motif was given.
3303 if test "${with_motif+set}" = set; then
3304   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3305 fi
3306
3307
3308 # Check whether --with-osx_carbon was given.
3309 if test "${with_osx_carbon+set}" = set; then
3310   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3311 fi
3312
3313
3314 # Check whether --with-osx_cocoa was given.
3315 if test "${with_osx_cocoa+set}" = set; then
3316   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3317 fi
3318
3319
3320 # Check whether --with-mac was given.
3321 if test "${with_mac+set}" = set; then
3322   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3323 fi
3324
3325
3326 # Check whether --with-cocoa was given.
3327 if test "${with_cocoa+set}" = set; then
3328   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3329 fi
3330
3331
3332 # Check whether --with-wine was given.
3333 if test "${with_wine+set}" = set; then
3334   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3335 fi
3336
3337
3338 # Check whether --with-msw was given.
3339 if test "${with_msw+set}" = set; then
3340   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3341 fi
3342
3343
3344 # Check whether --with-pm was given.
3345 if test "${with_pm+set}" = set; then
3346   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3347 fi
3348
3349
3350 # Check whether --with-mgl was given.
3351 if test "${with_mgl+set}" = set; then
3352   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3353 fi
3354
3355
3356 # Check whether --with-directfb was given.
3357 if test "${with_directfb+set}" = set; then
3358   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3359 fi
3360
3361
3362 # Check whether --with-microwin was given.
3363 if test "${with_microwin+set}" = set; then
3364   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3365 fi
3366
3367
3368 # Check whether --with-x11 was given.
3369 if test "${with_x11+set}" = set; then
3370   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3371 fi
3372
3373
3374           enablestring=
3375           defaultval=
3376           if test -z "$defaultval"; then
3377               if test x"$enablestring" = xdisable; then
3378                   defaultval=yes
3379               else
3380                   defaultval=no
3381               fi
3382           fi
3383
3384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3385 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3386           # Check whether --enable-nanox was given.
3387 if test "${enable_nanox+set}" = set; then
3388   enableval=$enable_nanox;
3389                           if test "$enableval" = yes; then
3390                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3391                           else
3392                             wx_cv_use_nanox='wxUSE_NANOX=no'
3393                           fi
3394
3395 else
3396
3397                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3398
3399 fi
3400
3401
3402           eval "$wx_cv_use_nanox"
3403
3404           if test x"$enablestring" = xdisable; then
3405             if test $wxUSE_NANOX = no; then
3406               result=yes
3407             else
3408               result=no
3409             fi
3410           else
3411             result=$wxUSE_NANOX
3412           fi
3413
3414           { echo "$as_me:$LINENO: result: $result" >&5
3415 echo "${ECHO_T}$result" >&6; }
3416
3417
3418 # Check whether --enable-gtk2 was given.
3419 if test "${enable_gtk2+set}" = set; then
3420   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3421 fi
3422
3423
3424           enablestring=
3425           defaultval=
3426           if test -z "$defaultval"; then
3427               if test x"$enablestring" = xdisable; then
3428                   defaultval=yes
3429               else
3430                   defaultval=no
3431               fi
3432           fi
3433
3434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3435 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3436           # Check whether --enable-gpe was given.
3437 if test "${enable_gpe+set}" = set; then
3438   enableval=$enable_gpe;
3439                           if test "$enableval" = yes; then
3440                             wx_cv_use_gpe='wxUSE_GPE=yes'
3441                           else
3442                             wx_cv_use_gpe='wxUSE_GPE=no'
3443                           fi
3444
3445 else
3446
3447                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3448
3449 fi
3450
3451
3452           eval "$wx_cv_use_gpe"
3453
3454           if test x"$enablestring" = xdisable; then
3455             if test $wxUSE_GPE = no; then
3456               result=yes
3457             else
3458               result=no
3459             fi
3460           else
3461             result=$wxUSE_GPE
3462           fi
3463
3464           { echo "$as_me:$LINENO: result: $result" >&5
3465 echo "${ECHO_T}$result" >&6; }
3466
3467
3468
3469 { echo "$as_me:$LINENO: checking for toolkit" >&5
3470 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3471
3472
3473
3474 # In Wine, we need to default to MSW, not GTK or MOTIF
3475 if test "$wxUSE_WINE" = "yes"; then
3476     DEFAULT_DEFAULT_wxUSE_GTK=0
3477     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3478     DEFAULT_DEFAULT_wxUSE_MSW=1
3479     wxUSE_SHARED=no
3480     CC=${CC:-winegcc}
3481     CXX=${CXX:-wineg++}
3482 fi
3483
3484
3485 if test "$wxUSE_GUI" = "yes"; then
3486
3487     if test "$USE_BEOS" = 1; then
3488         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3489 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3490    { (exit 1); exit 1; }; }
3491     fi
3492
3493     if test "$TOOLKIT_GIVEN" = 1; then
3494             for toolkit in $ALL_TOOLKITS; do
3495         var=wxUSE_$toolkit
3496         eval "value=\$${var}"
3497         if test "x$value" = "xno"; then
3498           eval "$var=0"
3499         elif test "x$value" != "x"; then
3500           eval "$var=1"
3501         fi
3502
3503         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3504           eval "wx${toolkit}_VERSION=$value"
3505         fi
3506       done
3507     else
3508             for toolkit in $ALL_TOOLKITS; do
3509         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3510         eval "wxUSE_$toolkit=\$${var}"
3511       done
3512     fi
3513
3514             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3515                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3516                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3517
3518         case "${host}" in
3519       *-pc-os2_emx | *-pc-os2-emx )
3520         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3521     esac
3522
3523     case "$NUM_TOOLKITS" in
3524       1)
3525       ;;
3526       0)
3527         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3528 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3529    { (exit 1); exit 1; }; }
3530       ;;
3531       *)
3532         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3533 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3534    { (exit 1); exit 1; }; }
3535     esac
3536
3537     # to be removed when --disable-gtk2 isn't needed
3538     if test "x$wxUSE_GTK2" = "xyes"; then
3539         wxGTK_VERSION=2
3540     elif test "x$wxUSE_GTK2" = "xno"; then
3541         wxGTK_VERSION=1
3542     fi
3543
3544     for toolkit in $ALL_TOOLKITS; do
3545         var=wxUSE_$toolkit
3546         eval "value=\$${var}"
3547         if test "$value" = 1; then
3548           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3549           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3550 echo "${ECHO_T}$toolkit_echo" >&6; }
3551         fi
3552     done
3553 else
3554     if test "x$host_alias" != "x"; then
3555         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3556 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3557     else
3558         { echo "$as_me:$LINENO: result: base only" >&5
3559 echo "${ECHO_T}base only" >&6; }
3560     fi
3561 fi
3562
3563 wxUSE_MAC=0
3564 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3565     wxUSE_MAC=1
3566 fi
3567
3568
3569
3570           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3571 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3572
3573 # Check whether --with-libpng was given.
3574 if test "${with_libpng+set}" = set; then
3575   withval=$with_libpng;
3576                         if test "$withval" = yes; then
3577                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3578                         elif test "$withval" = no; then
3579                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3580                         elif test "$withval" = sys; then
3581                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3582                         elif test "$withval" = builtin; then
3583                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3584                         else
3585                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3586 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3587    { (exit 1); exit 1; }; }
3588                         fi
3589
3590 else
3591
3592                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3593
3594 fi
3595
3596
3597           eval "$wx_cv_use_libpng"
3598
3599           if test "$wxUSE_LIBPNG" = yes; then
3600             { echo "$as_me:$LINENO: result: yes" >&5
3601 echo "${ECHO_T}yes" >&6; }
3602           elif test "$wxUSE_LIBPNG" = no; then
3603             { echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6; }
3605           elif test "$wxUSE_LIBPNG" = sys; then
3606             { echo "$as_me:$LINENO: result: system version" >&5
3607 echo "${ECHO_T}system version" >&6; }
3608           elif test "$wxUSE_LIBPNG" = builtin; then
3609             { echo "$as_me:$LINENO: result: builtin version" >&5
3610 echo "${ECHO_T}builtin version" >&6; }
3611           else
3612             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3613 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3614    { (exit 1); exit 1; }; }
3615           fi
3616
3617
3618           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3619 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3620
3621 # Check whether --with-libjpeg was given.
3622 if test "${with_libjpeg+set}" = set; then
3623   withval=$with_libjpeg;
3624                         if test "$withval" = yes; then
3625                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3626                         elif test "$withval" = no; then
3627                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3628                         elif test "$withval" = sys; then
3629                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3630                         elif test "$withval" = builtin; then
3631                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3632                         else
3633                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3634 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3635    { (exit 1); exit 1; }; }
3636                         fi
3637
3638 else
3639
3640                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3641
3642 fi
3643
3644
3645           eval "$wx_cv_use_libjpeg"
3646
3647           if test "$wxUSE_LIBJPEG" = yes; then
3648             { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3650           elif test "$wxUSE_LIBJPEG" = no; then
3651             { echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6; }
3653           elif test "$wxUSE_LIBJPEG" = sys; then
3654             { echo "$as_me:$LINENO: result: system version" >&5
3655 echo "${ECHO_T}system version" >&6; }
3656           elif test "$wxUSE_LIBJPEG" = builtin; then
3657             { echo "$as_me:$LINENO: result: builtin version" >&5
3658 echo "${ECHO_T}builtin version" >&6; }
3659           else
3660             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3661 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3662    { (exit 1); exit 1; }; }
3663           fi
3664
3665
3666           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3667 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3668
3669 # Check whether --with-libtiff was given.
3670 if test "${with_libtiff+set}" = set; then
3671   withval=$with_libtiff;
3672                         if test "$withval" = yes; then
3673                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3674                         elif test "$withval" = no; then
3675                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3676                         elif test "$withval" = sys; then
3677                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3678                         elif test "$withval" = builtin; then
3679                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3680                         else
3681                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3682 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3683    { (exit 1); exit 1; }; }
3684                         fi
3685
3686 else
3687
3688                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3689
3690 fi
3691
3692
3693           eval "$wx_cv_use_libtiff"
3694
3695           if test "$wxUSE_LIBTIFF" = yes; then
3696             { echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6; }
3698           elif test "$wxUSE_LIBTIFF" = no; then
3699             { echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6; }
3701           elif test "$wxUSE_LIBTIFF" = sys; then
3702             { echo "$as_me:$LINENO: result: system version" >&5
3703 echo "${ECHO_T}system version" >&6; }
3704           elif test "$wxUSE_LIBTIFF" = builtin; then
3705             { echo "$as_me:$LINENO: result: builtin version" >&5
3706 echo "${ECHO_T}builtin version" >&6; }
3707           else
3708             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3709 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3710    { (exit 1); exit 1; }; }
3711           fi
3712
3713
3714           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3715 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3716
3717 # Check whether --with-libxpm was given.
3718 if test "${with_libxpm+set}" = set; then
3719   withval=$with_libxpm;
3720                         if test "$withval" = yes; then
3721                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3722                         elif test "$withval" = no; then
3723                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3724                         elif test "$withval" = sys; then
3725                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3726                         elif test "$withval" = builtin; then
3727                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3728                         else
3729                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3730 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3731    { (exit 1); exit 1; }; }
3732                         fi
3733
3734 else
3735
3736                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3737
3738 fi
3739
3740
3741           eval "$wx_cv_use_libxpm"
3742
3743           if test "$wxUSE_LIBXPM" = yes; then
3744             { echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6; }
3746           elif test "$wxUSE_LIBXPM" = no; then
3747             { echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6; }
3749           elif test "$wxUSE_LIBXPM" = sys; then
3750             { echo "$as_me:$LINENO: result: system version" >&5
3751 echo "${ECHO_T}system version" >&6; }
3752           elif test "$wxUSE_LIBXPM" = builtin; then
3753             { echo "$as_me:$LINENO: result: builtin version" >&5
3754 echo "${ECHO_T}builtin version" >&6; }
3755           else
3756             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3757 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3758    { (exit 1); exit 1; }; }
3759           fi
3760
3761
3762           withstring=
3763           defaultval=$wxUSE_ALL_FEATURES
3764           if test -z "$defaultval"; then
3765               if test x"$withstring" = xwithout; then
3766                   defaultval=yes
3767               else
3768                   defaultval=no
3769               fi
3770           fi
3771           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3772 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3773
3774 # Check whether --with-libiconv was given.
3775 if test "${with_libiconv+set}" = set; then
3776   withval=$with_libiconv;
3777                         if test "$withval" = yes; then
3778                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3779                         else
3780                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3781                         fi
3782
3783 else
3784
3785                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3786
3787 fi
3788
3789
3790           eval "$wx_cv_use_libiconv"
3791
3792           if test x"$withstring" = xwithout; then
3793             if test $wxUSE_LIBICONV = yes; then
3794               result=no
3795             else
3796               result=yes
3797             fi
3798           else
3799             result=$wxUSE_LIBICONV
3800           fi
3801
3802           { echo "$as_me:$LINENO: result: $result" >&5
3803 echo "${ECHO_T}$result" >&6; }
3804
3805
3806           withstring=
3807           defaultval=$wxUSE_ALL_FEATURES
3808           if test -z "$defaultval"; then
3809               if test x"$withstring" = xwithout; then
3810                   defaultval=yes
3811               else
3812                   defaultval=no
3813               fi
3814           fi
3815           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3816 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3817
3818 # Check whether --with-libmspack was given.
3819 if test "${with_libmspack+set}" = set; then
3820   withval=$with_libmspack;
3821                         if test "$withval" = yes; then
3822                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3823                         else
3824                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3825                         fi
3826
3827 else
3828
3829                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3830
3831 fi
3832
3833
3834           eval "$wx_cv_use_libmspack"
3835
3836           if test x"$withstring" = xwithout; then
3837             if test $wxUSE_LIBMSPACK = yes; then
3838               result=no
3839             else
3840               result=yes
3841             fi
3842           else
3843             result=$wxUSE_LIBMSPACK
3844           fi
3845
3846           { echo "$as_me:$LINENO: result: $result" >&5
3847 echo "${ECHO_T}$result" >&6; }
3848
3849
3850           withstring=without
3851           defaultval=$wxUSE_ALL_FEATURES
3852           if test -z "$defaultval"; then
3853               if test x"$withstring" = xwithout; then
3854                   defaultval=yes
3855               else
3856                   defaultval=no
3857               fi
3858           fi
3859           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3860 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3861
3862 # Check whether --with-gtkprint was given.
3863 if test "${with_gtkprint+set}" = set; then
3864   withval=$with_gtkprint;
3865                         if test "$withval" = yes; then
3866                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3867                         else
3868                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3869                         fi
3870
3871 else
3872
3873                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3874
3875 fi
3876
3877
3878           eval "$wx_cv_use_gtkprint"
3879
3880           if test x"$withstring" = xwithout; then
3881             if test $wxUSE_GTKPRINT = yes; then
3882               result=no
3883             else
3884               result=yes
3885             fi
3886           else
3887             result=$wxUSE_GTKPRINT
3888           fi
3889
3890           { echo "$as_me:$LINENO: result: $result" >&5
3891 echo "${ECHO_T}$result" >&6; }
3892
3893
3894           withstring=without
3895           defaultval=$wxUSE_ALL_FEATURES
3896           if test -z "$defaultval"; then
3897               if test x"$withstring" = xwithout; then
3898                   defaultval=yes
3899               else
3900                   defaultval=no
3901               fi
3902           fi
3903           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3904 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3905
3906 # Check whether --with-gnomeprint was given.
3907 if test "${with_gnomeprint+set}" = set; then
3908   withval=$with_gnomeprint;
3909                         if test "$withval" = yes; then
3910                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3911                         else
3912                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3913                         fi
3914
3915 else
3916
3917                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3918
3919 fi
3920
3921
3922           eval "$wx_cv_use_gnomeprint"
3923
3924           if test x"$withstring" = xwithout; then
3925             if test $wxUSE_LIBGNOMEPRINT = yes; then
3926               result=no
3927             else
3928               result=yes
3929             fi
3930           else
3931             result=$wxUSE_LIBGNOMEPRINT
3932           fi
3933
3934           { echo "$as_me:$LINENO: result: $result" >&5
3935 echo "${ECHO_T}$result" >&6; }
3936
3937
3938           withstring=
3939           defaultval=$wxUSE_ALL_FEATURES
3940           if test -z "$defaultval"; then
3941               if test x"$withstring" = xwithout; then
3942                   defaultval=yes
3943               else
3944                   defaultval=no
3945               fi
3946           fi
3947           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3948 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3949
3950 # Check whether --with-gnomevfs was given.
3951 if test "${with_gnomevfs+set}" = set; then
3952   withval=$with_gnomevfs;
3953                         if test "$withval" = yes; then
3954                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3955                         else
3956                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3957                         fi
3958
3959 else
3960
3961                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3962
3963 fi
3964
3965
3966           eval "$wx_cv_use_gnomevfs"
3967
3968           if test x"$withstring" = xwithout; then
3969             if test $wxUSE_LIBGNOMEVFS = yes; then
3970               result=no
3971             else
3972               result=yes
3973             fi
3974           else
3975             result=$wxUSE_LIBGNOMEVFS
3976           fi
3977
3978           { echo "$as_me:$LINENO: result: $result" >&5
3979 echo "${ECHO_T}$result" >&6; }
3980
3981
3982           withstring=
3983           defaultval=$wxUSE_ALL_FEATURES
3984           if test -z "$defaultval"; then
3985               if test x"$withstring" = xwithout; then
3986                   defaultval=yes
3987               else
3988                   defaultval=no
3989               fi
3990           fi
3991           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3992 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3993
3994 # Check whether --with-hildon was given.
3995 if test "${with_hildon+set}" = set; then
3996   withval=$with_hildon;
3997                         if test "$withval" = yes; then
3998                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3999                         else
4000                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4001                         fi
4002
4003 else
4004
4005                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4006
4007 fi
4008
4009
4010           eval "$wx_cv_use_hildon"
4011
4012           if test x"$withstring" = xwithout; then
4013             if test $wxUSE_LIBHILDON = yes; then
4014               result=no
4015             else
4016               result=yes
4017             fi
4018           else
4019             result=$wxUSE_LIBHILDON
4020           fi
4021
4022           { echo "$as_me:$LINENO: result: $result" >&5
4023 echo "${ECHO_T}$result" >&6; }
4024
4025
4026           withstring=
4027           defaultval=$wxUSE_ALL_FEATURES
4028           if test -z "$defaultval"; then
4029               if test x"$withstring" = xwithout; then
4030                   defaultval=yes
4031               else
4032                   defaultval=no
4033               fi
4034           fi
4035           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4036 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4037
4038 # Check whether --with-opengl was given.
4039 if test "${with_opengl+set}" = set; then
4040   withval=$with_opengl;
4041                         if test "$withval" = yes; then
4042                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4043                         else
4044                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4045                         fi
4046
4047 else
4048
4049                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4050
4051 fi
4052
4053
4054           eval "$wx_cv_use_opengl"
4055
4056           if test x"$withstring" = xwithout; then
4057             if test $wxUSE_OPENGL = yes; then
4058               result=no
4059             else
4060               result=yes
4061             fi
4062           else
4063             result=$wxUSE_OPENGL
4064           fi
4065
4066           { echo "$as_me:$LINENO: result: $result" >&5
4067 echo "${ECHO_T}$result" >&6; }
4068
4069
4070 fi
4071
4072
4073           withstring=
4074           defaultval=$wxUSE_ALL_FEATURES
4075           if test -z "$defaultval"; then
4076               if test x"$withstring" = xwithout; then
4077                   defaultval=yes
4078               else
4079                   defaultval=no
4080               fi
4081           fi
4082           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4083 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4084
4085 # Check whether --with-dmalloc was given.
4086 if test "${with_dmalloc+set}" = set; then
4087   withval=$with_dmalloc;
4088                         if test "$withval" = yes; then
4089                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4090                         else
4091                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4092                         fi
4093
4094 else
4095
4096                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4097
4098 fi
4099
4100
4101           eval "$wx_cv_use_dmalloc"
4102
4103           if test x"$withstring" = xwithout; then
4104             if test $wxUSE_DMALLOC = yes; then
4105               result=no
4106             else
4107               result=yes
4108             fi
4109           else
4110             result=$wxUSE_DMALLOC
4111           fi
4112
4113           { echo "$as_me:$LINENO: result: $result" >&5
4114 echo "${ECHO_T}$result" >&6; }
4115
4116
4117           withstring=
4118           defaultval=$wxUSE_ALL_FEATURES
4119           if test -z "$defaultval"; then
4120               if test x"$withstring" = xwithout; then
4121                   defaultval=yes
4122               else
4123                   defaultval=no
4124               fi
4125           fi
4126           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4127 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4128
4129 # Check whether --with-sdl was given.
4130 if test "${with_sdl+set}" = set; then
4131   withval=$with_sdl;
4132                         if test "$withval" = yes; then
4133                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4134                         else
4135                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4136                         fi
4137
4138 else
4139
4140                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4141
4142 fi
4143
4144
4145           eval "$wx_cv_use_sdl"
4146
4147           if test x"$withstring" = xwithout; then
4148             if test $wxUSE_LIBSDL = yes; then
4149               result=no
4150             else
4151               result=yes
4152             fi
4153           else
4154             result=$wxUSE_LIBSDL
4155           fi
4156
4157           { echo "$as_me:$LINENO: result: $result" >&5
4158 echo "${ECHO_T}$result" >&6; }
4159
4160
4161           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4162 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4163
4164 # Check whether --with-regex was given.
4165 if test "${with_regex+set}" = set; then
4166   withval=$with_regex;
4167                         if test "$withval" = yes; then
4168                           wx_cv_use_regex='wxUSE_REGEX=yes'
4169                         elif test "$withval" = no; then
4170                           wx_cv_use_regex='wxUSE_REGEX=no'
4171                         elif test "$withval" = sys; then
4172                           wx_cv_use_regex='wxUSE_REGEX=sys'
4173                         elif test "$withval" = builtin; then
4174                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4175                         else
4176                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4177 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4178    { (exit 1); exit 1; }; }
4179                         fi
4180
4181 else
4182
4183                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4184
4185 fi
4186
4187
4188           eval "$wx_cv_use_regex"
4189
4190           if test "$wxUSE_REGEX" = yes; then
4191             { echo "$as_me:$LINENO: result: yes" >&5
4192 echo "${ECHO_T}yes" >&6; }
4193           elif test "$wxUSE_REGEX" = no; then
4194             { echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6; }
4196           elif test "$wxUSE_REGEX" = sys; then
4197             { echo "$as_me:$LINENO: result: system version" >&5
4198 echo "${ECHO_T}system version" >&6; }
4199           elif test "$wxUSE_REGEX" = builtin; then
4200             { echo "$as_me:$LINENO: result: builtin version" >&5
4201 echo "${ECHO_T}builtin version" >&6; }
4202           else
4203             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4204 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4205    { (exit 1); exit 1; }; }
4206           fi
4207
4208
4209           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4210 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4211
4212 # Check whether --with-zlib was given.
4213 if test "${with_zlib+set}" = set; then
4214   withval=$with_zlib;
4215                         if test "$withval" = yes; then
4216                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4217                         elif test "$withval" = no; then
4218                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4219                         elif test "$withval" = sys; then
4220                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4221                         elif test "$withval" = builtin; then
4222                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4223                         else
4224                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4225 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4226    { (exit 1); exit 1; }; }
4227                         fi
4228
4229 else
4230
4231                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4232
4233 fi
4234
4235
4236           eval "$wx_cv_use_zlib"
4237
4238           if test "$wxUSE_ZLIB" = yes; then
4239             { echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6; }
4241           elif test "$wxUSE_ZLIB" = no; then
4242             { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4244           elif test "$wxUSE_ZLIB" = sys; then
4245             { echo "$as_me:$LINENO: result: system version" >&5
4246 echo "${ECHO_T}system version" >&6; }
4247           elif test "$wxUSE_ZLIB" = builtin; then
4248             { echo "$as_me:$LINENO: result: builtin version" >&5
4249 echo "${ECHO_T}builtin version" >&6; }
4250           else
4251             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4252 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4253    { (exit 1); exit 1; }; }
4254           fi
4255
4256
4257           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4258 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4259
4260 # Check whether --with-expat was given.
4261 if test "${with_expat+set}" = set; then
4262   withval=$with_expat;
4263                         if test "$withval" = yes; then
4264                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4265                         elif test "$withval" = no; then
4266                           wx_cv_use_expat='wxUSE_EXPAT=no'
4267                         elif test "$withval" = sys; then
4268                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4269                         elif test "$withval" = builtin; then
4270                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4271                         else
4272                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4273 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4274    { (exit 1); exit 1; }; }
4275                         fi
4276
4277 else
4278
4279                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4280
4281 fi
4282
4283
4284           eval "$wx_cv_use_expat"
4285
4286           if test "$wxUSE_EXPAT" = yes; then
4287             { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289           elif test "$wxUSE_EXPAT" = no; then
4290             { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4292           elif test "$wxUSE_EXPAT" = sys; then
4293             { echo "$as_me:$LINENO: result: system version" >&5
4294 echo "${ECHO_T}system version" >&6; }
4295           elif test "$wxUSE_EXPAT" = builtin; then
4296             { echo "$as_me:$LINENO: result: builtin version" >&5
4297 echo "${ECHO_T}builtin version" >&6; }
4298           else
4299             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4300 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4301    { (exit 1); exit 1; }; }
4302           fi
4303
4304
4305 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4306 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4307
4308 # Check whether --with-macosx-sdk was given.
4309 if test "${with_macosx_sdk+set}" = set; then
4310   withval=$with_macosx_sdk;
4311         wxUSE_MACOSX_SDK=$withval
4312         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4313
4314 fi
4315
4316 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4317 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4318
4319 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4320 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4321
4322 # Check whether --with-macosx-version-min was given.
4323 if test "${with_macosx_version_min+set}" = set; then
4324   withval=$with_macosx_version_min;
4325         wxUSE_MACOSX_VERSION_MIN=$withval
4326         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4327
4328 fi
4329
4330 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4331 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4332
4333
4334 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4335 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4336 # Check whether --enable-debug was given.
4337 if test "${enable_debug+set}" = set; then
4338   enableval=$enable_debug;
4339         if test "$enableval" = yes; then
4340             wxUSE_DEBUG=yes
4341         elif test "$enableval" = no; then
4342             wxUSE_DEBUG=no
4343         elif test "$enableval" = max; then
4344             wxUSE_DEBUG=yes
4345             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4346         else
4347             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4348 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4349    { (exit 1); exit 1; }; }
4350         fi
4351
4352 else
4353   wxUSE_DEBUG=default
4354
4355 fi
4356
4357
4358 case "$wxUSE_DEBUG" in
4359     yes)
4360                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4361         DEFAULT_wxUSE_DEBUG_INFO=yes
4362
4363                         DEFAULT_wxUSE_OPTIMISE=no
4364         ;;
4365
4366     no)
4367                         DEFAULT_wxUSE_DEBUG_FLAG=no
4368         DEFAULT_wxUSE_DEBUG_INFO=no
4369         ;;
4370
4371     default)
4372                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4373         DEFAULT_wxUSE_DEBUG_INFO=no
4374         ;;
4375 esac
4376
4377
4378           enablestring=disable
4379           defaultval=
4380           if test -z "$defaultval"; then
4381               if test x"$enablestring" = xdisable; then
4382                   defaultval=yes
4383               else
4384                   defaultval=no
4385               fi
4386           fi
4387
4388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4389 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4390           # Check whether --enable-debug_flag was given.
4391 if test "${enable_debug_flag+set}" = set; then
4392   enableval=$enable_debug_flag;
4393                           if test "$enableval" = yes; then
4394                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4395                           else
4396                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4397                           fi
4398
4399 else
4400
4401                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4402
4403 fi
4404
4405
4406           eval "$wx_cv_use_debug_flag"
4407
4408           if test x"$enablestring" = xdisable; then
4409             if test $wxUSE_DEBUG_FLAG = no; then
4410               result=yes
4411             else
4412               result=no
4413             fi
4414           else
4415             result=$wxUSE_DEBUG_FLAG
4416           fi
4417
4418           { echo "$as_me:$LINENO: result: $result" >&5
4419 echo "${ECHO_T}$result" >&6; }
4420
4421
4422           enablestring=
4423           defaultval=
4424           if test -z "$defaultval"; then
4425               if test x"$enablestring" = xdisable; then
4426                   defaultval=yes
4427               else
4428                   defaultval=no
4429               fi
4430           fi
4431
4432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4433 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4434           # Check whether --enable-debug_info was given.
4435 if test "${enable_debug_info+set}" = set; then
4436   enableval=$enable_debug_info;
4437                           if test "$enableval" = yes; then
4438                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4439                           else
4440                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4441                           fi
4442
4443 else
4444
4445                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4446
4447 fi
4448
4449
4450           eval "$wx_cv_use_debug_info"
4451
4452           if test x"$enablestring" = xdisable; then
4453             if test $wxUSE_DEBUG_INFO = no; then
4454               result=yes
4455             else
4456               result=no
4457             fi
4458           else
4459             result=$wxUSE_DEBUG_INFO
4460           fi
4461
4462           { echo "$as_me:$LINENO: result: $result" >&5
4463 echo "${ECHO_T}$result" >&6; }
4464
4465
4466
4467
4468           enablestring=
4469           defaultval=
4470           if test -z "$defaultval"; then
4471               if test x"$enablestring" = xdisable; then
4472                   defaultval=yes
4473               else
4474                   defaultval=no
4475               fi
4476           fi
4477
4478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4479 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4480           # Check whether --enable-debug_gdb was given.
4481 if test "${enable_debug_gdb+set}" = set; then
4482   enableval=$enable_debug_gdb;
4483                           if test "$enableval" = yes; then
4484                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4485                           else
4486                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4487                           fi
4488
4489 else
4490
4491                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4492
4493 fi
4494
4495
4496           eval "$wx_cv_use_debug_gdb"
4497
4498           if test x"$enablestring" = xdisable; then
4499             if test $wxUSE_DEBUG_GDB = no; then
4500               result=yes
4501             else
4502               result=no
4503             fi
4504           else
4505             result=$wxUSE_DEBUG_GDB
4506           fi
4507
4508           { echo "$as_me:$LINENO: result: $result" >&5
4509 echo "${ECHO_T}$result" >&6; }
4510
4511
4512           enablestring=
4513           defaultval=
4514           if test -z "$defaultval"; then
4515               if test x"$enablestring" = xdisable; then
4516                   defaultval=yes
4517               else
4518                   defaultval=no
4519               fi
4520           fi
4521
4522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4523 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4524           # Check whether --enable-debug_cntxt was given.
4525 if test "${enable_debug_cntxt+set}" = set; then
4526   enableval=$enable_debug_cntxt;
4527                           if test "$enableval" = yes; then
4528                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4529                           else
4530                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4531                           fi
4532
4533 else
4534
4535                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4536
4537 fi
4538
4539
4540           eval "$wx_cv_use_debug_cntxt"
4541
4542           if test x"$enablestring" = xdisable; then
4543             if test $wxUSE_DEBUG_CONTEXT = no; then
4544               result=yes
4545             else
4546               result=no
4547             fi
4548           else
4549             result=$wxUSE_DEBUG_CONTEXT
4550           fi
4551
4552           { echo "$as_me:$LINENO: result: $result" >&5
4553 echo "${ECHO_T}$result" >&6; }
4554
4555
4556           enablestring=
4557           defaultval=
4558           if test -z "$defaultval"; then
4559               if test x"$enablestring" = xdisable; then
4560                   defaultval=yes
4561               else
4562                   defaultval=no
4563               fi
4564           fi
4565
4566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4567 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4568           # Check whether --enable-mem_tracing was given.
4569 if test "${enable_mem_tracing+set}" = set; then
4570   enableval=$enable_mem_tracing;
4571                           if test "$enableval" = yes; then
4572                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4573                           else
4574                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4575                           fi
4576
4577 else
4578
4579                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4580
4581 fi
4582
4583
4584           eval "$wx_cv_use_mem_tracing"
4585
4586           if test x"$enablestring" = xdisable; then
4587             if test $wxUSE_MEM_TRACING = no; then
4588               result=yes
4589             else
4590               result=no
4591             fi
4592           else
4593             result=$wxUSE_MEM_TRACING
4594           fi
4595
4596           { echo "$as_me:$LINENO: result: $result" >&5
4597 echo "${ECHO_T}$result" >&6; }
4598
4599
4600
4601
4602           enablestring=disable
4603           defaultval=
4604           if test -z "$defaultval"; then
4605               if test x"$enablestring" = xdisable; then
4606                   defaultval=yes
4607               else
4608                   defaultval=no
4609               fi
4610           fi
4611
4612           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4613 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4614           # Check whether --enable-shared was given.
4615 if test "${enable_shared+set}" = set; then
4616   enableval=$enable_shared;
4617                           if test "$enableval" = yes; then
4618                             wx_cv_use_shared='wxUSE_SHARED=yes'
4619                           else
4620                             wx_cv_use_shared='wxUSE_SHARED=no'
4621                           fi
4622
4623 else
4624
4625                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4626
4627 fi
4628
4629
4630           eval "$wx_cv_use_shared"
4631
4632           if test x"$enablestring" = xdisable; then
4633             if test $wxUSE_SHARED = no; then
4634               result=yes
4635             else
4636               result=no
4637             fi
4638           else
4639             result=$wxUSE_SHARED
4640           fi
4641
4642           { echo "$as_me:$LINENO: result: $result" >&5
4643 echo "${ECHO_T}$result" >&6; }
4644
4645
4646           enablestring=
4647           defaultval=
4648           if test -z "$defaultval"; then
4649               if test x"$enablestring" = xdisable; then
4650                   defaultval=yes
4651               else
4652                   defaultval=no
4653               fi
4654           fi
4655
4656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4657 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4658           # Check whether --enable-stl was given.
4659 if test "${enable_stl+set}" = set; then
4660   enableval=$enable_stl;
4661                           if test "$enableval" = yes; then
4662                             wx_cv_use_stl='wxUSE_STL=yes'
4663                           else
4664                             wx_cv_use_stl='wxUSE_STL=no'
4665                           fi
4666
4667 else
4668
4669                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4670
4671 fi
4672
4673
4674           eval "$wx_cv_use_stl"
4675
4676           if test x"$enablestring" = xdisable; then
4677             if test $wxUSE_STL = no; then
4678               result=yes
4679             else
4680               result=no
4681             fi
4682           else
4683             result=$wxUSE_STL
4684           fi
4685
4686           { echo "$as_me:$LINENO: result: $result" >&5
4687 echo "${ECHO_T}$result" >&6; }
4688
4689
4690           enablestring=
4691           defaultval=
4692           if test -z "$defaultval"; then
4693               if test x"$enablestring" = xdisable; then
4694                   defaultval=yes
4695               else
4696                   defaultval=no
4697               fi
4698           fi
4699
4700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4701 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4702           # Check whether --enable-std_iostreams was given.
4703 if test "${enable_std_iostreams+set}" = set; then
4704   enableval=$enable_std_iostreams;
4705                           if test "$enableval" = yes; then
4706                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4707                           else
4708                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4709                           fi
4710
4711 else
4712
4713                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4714
4715 fi
4716
4717
4718           eval "$wx_cv_use_std_iostreams"
4719
4720           if test x"$enablestring" = xdisable; then
4721             if test $wxUSE_STD_IOSTREAM = no; then
4722               result=yes
4723             else
4724               result=no
4725             fi
4726           else
4727             result=$wxUSE_STD_IOSTREAM
4728           fi
4729
4730           { echo "$as_me:$LINENO: result: $result" >&5
4731 echo "${ECHO_T}$result" >&6; }
4732
4733
4734           enablestring=
4735           defaultval=
4736           if test -z "$defaultval"; then
4737               if test x"$enablestring" = xdisable; then
4738                   defaultval=yes
4739               else
4740                   defaultval=no
4741               fi
4742           fi
4743
4744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4745 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4746           # Check whether --enable-std_string was given.
4747 if test "${enable_std_string+set}" = set; then
4748   enableval=$enable_std_string;
4749                           if test "$enableval" = yes; then
4750                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4751                           else
4752                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4753                           fi
4754
4755 else
4756
4757                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4758
4759 fi
4760
4761
4762           eval "$wx_cv_use_std_string"
4763
4764           if test x"$enablestring" = xdisable; then
4765             if test $wxUSE_STD_STRING = no; then
4766               result=yes
4767             else
4768               result=no
4769             fi
4770           else
4771             result=$wxUSE_STD_STRING
4772           fi
4773
4774           { echo "$as_me:$LINENO: result: $result" >&5
4775 echo "${ECHO_T}$result" >&6; }
4776
4777
4778           enablestring=disable
4779           defaultval=
4780           if test -z "$defaultval"; then
4781               if test x"$enablestring" = xdisable; then
4782                   defaultval=yes
4783               else
4784                   defaultval=no
4785               fi
4786           fi
4787
4788           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4789 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4790           # Check whether --enable-unicode was given.
4791 if test "${enable_unicode+set}" = set; then
4792   enableval=$enable_unicode;
4793                           if test "$enableval" = yes; then
4794                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4795                           else
4796                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4797                           fi
4798
4799 else
4800
4801                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4802
4803 fi
4804
4805
4806           eval "$wx_cv_use_unicode"
4807
4808           if test x"$enablestring" = xdisable; then
4809             if test $wxUSE_UNICODE = no; then
4810               result=yes
4811             else
4812               result=no
4813             fi
4814           else
4815             result=$wxUSE_UNICODE
4816           fi
4817
4818           { echo "$as_me:$LINENO: result: $result" >&5
4819 echo "${ECHO_T}$result" >&6; }
4820
4821
4822           enablestring=
4823           defaultval=
4824           if test -z "$defaultval"; then
4825               if test x"$enablestring" = xdisable; then
4826                   defaultval=yes
4827               else
4828                   defaultval=no
4829               fi
4830           fi
4831
4832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4833 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4834           # Check whether --enable-mslu was given.
4835 if test "${enable_mslu+set}" = set; then
4836   enableval=$enable_mslu;
4837                           if test "$enableval" = yes; then
4838                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4839                           else
4840                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4841                           fi
4842
4843 else
4844
4845                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4846
4847 fi
4848
4849
4850           eval "$wx_cv_use_mslu"
4851
4852           if test x"$enablestring" = xdisable; then
4853             if test $wxUSE_UNICODE_MSLU = no; then
4854               result=yes
4855             else
4856               result=no
4857             fi
4858           else
4859             result=$wxUSE_UNICODE_MSLU
4860           fi
4861
4862           { echo "$as_me:$LINENO: result: $result" >&5
4863 echo "${ECHO_T}$result" >&6; }
4864
4865
4866           enablestring=
4867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4868 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4869           # Check whether --enable-utf8 was given.
4870 if test "${enable_utf8+set}" = set; then
4871   enableval=$enable_utf8;
4872                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4873
4874 else
4875
4876                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4877
4878 fi
4879
4880
4881           eval "$wx_cv_use_utf8"
4882
4883           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4884 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4885
4886
4887           enablestring=
4888           defaultval=
4889           if test -z "$defaultval"; then
4890               if test x"$enablestring" = xdisable; then
4891                   defaultval=yes
4892               else
4893                   defaultval=no
4894               fi
4895           fi
4896
4897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4899           # Check whether --enable-utf8only was given.
4900 if test "${enable_utf8only+set}" = set; then
4901   enableval=$enable_utf8only;
4902                           if test "$enableval" = yes; then
4903                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4904                           else
4905                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4906                           fi
4907
4908 else
4909
4910                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4911
4912 fi
4913
4914
4915           eval "$wx_cv_use_utf8only"
4916
4917           if test x"$enablestring" = xdisable; then
4918             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
4919               result=yes
4920             else
4921               result=no
4922             fi
4923           else
4924             result=$wxUSE_UNICODE_UTF8_LOCALE
4925           fi
4926
4927           { echo "$as_me:$LINENO: result: $result" >&5
4928 echo "${ECHO_T}$result" >&6; }
4929
4930
4931           enablestring=
4932           defaultval=
4933           if test -z "$defaultval"; then
4934               if test x"$enablestring" = xdisable; then
4935                   defaultval=yes
4936               else
4937                   defaultval=no
4938               fi
4939           fi
4940
4941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4942 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4943           # Check whether --enable-extended_rtti was given.
4944 if test "${enable_extended_rtti+set}" = set; then
4945   enableval=$enable_extended_rtti;
4946                           if test "$enableval" = yes; then
4947                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4948                           else
4949                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4950                           fi
4951
4952 else
4953
4954                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4955
4956 fi
4957
4958
4959           eval "$wx_cv_use_extended_rtti"
4960
4961           if test x"$enablestring" = xdisable; then
4962             if test $wxUSE_EXTENDED_RTTI = no; then
4963               result=yes
4964             else
4965               result=no
4966             fi
4967           else
4968             result=$wxUSE_EXTENDED_RTTI
4969           fi
4970
4971           { echo "$as_me:$LINENO: result: $result" >&5
4972 echo "${ECHO_T}$result" >&6; }
4973
4974 if test "$USE_OS2" = 1; then
4975     DEFAULT_wxUSE_OMF=no
4976
4977           enablestring=
4978           defaultval=
4979           if test -z "$defaultval"; then
4980               if test x"$enablestring" = xdisable; then
4981                   defaultval=yes
4982               else
4983                   defaultval=no
4984               fi
4985           fi
4986
4987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4988 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4989           # Check whether --enable-omf was given.
4990 if test "${enable_omf+set}" = set; then
4991   enableval=$enable_omf;
4992                           if test "$enableval" = yes; then
4993                             wx_cv_use_omf='wxUSE_OMF=yes'
4994                           else
4995                             wx_cv_use_omf='wxUSE_OMF=no'
4996                           fi
4997
4998 else
4999
5000                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5001
5002 fi
5003
5004
5005           eval "$wx_cv_use_omf"
5006
5007           if test x"$enablestring" = xdisable; then
5008             if test $wxUSE_OMF = no; then
5009               result=yes
5010             else
5011               result=no
5012             fi
5013           else
5014             result=$wxUSE_OMF
5015           fi
5016
5017           { echo "$as_me:$LINENO: result: $result" >&5
5018 echo "${ECHO_T}$result" >&6; }
5019
5020 fi
5021
5022
5023           enablestring=disable
5024           defaultval=
5025           if test -z "$defaultval"; then
5026               if test x"$enablestring" = xdisable; then
5027                   defaultval=yes
5028               else
5029                   defaultval=no
5030               fi
5031           fi
5032
5033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5034 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5035           # Check whether --enable-optimise was given.
5036 if test "${enable_optimise+set}" = set; then
5037   enableval=$enable_optimise;
5038                           if test "$enableval" = yes; then
5039                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5040                           else
5041                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5042                           fi
5043
5044 else
5045
5046                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5047
5048 fi
5049
5050
5051           eval "$wx_cv_use_optimise"
5052
5053           if test x"$enablestring" = xdisable; then
5054             if test $wxUSE_OPTIMISE = no; then
5055               result=yes
5056             else
5057               result=no
5058             fi
5059           else
5060             result=$wxUSE_OPTIMISE
5061           fi
5062
5063           { echo "$as_me:$LINENO: result: $result" >&5
5064 echo "${ECHO_T}$result" >&6; }
5065
5066
5067
5068           enablestring=
5069           defaultval=
5070           if test -z "$defaultval"; then
5071               if test x"$enablestring" = xdisable; then
5072                   defaultval=yes
5073               else
5074                   defaultval=no
5075               fi
5076           fi
5077
5078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5079 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5080           # Check whether --enable-profile was given.
5081 if test "${enable_profile+set}" = set; then
5082   enableval=$enable_profile;
5083                           if test "$enableval" = yes; then
5084                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5085                           else
5086                             wx_cv_use_profile='wxUSE_PROFILE=no'
5087                           fi
5088
5089 else
5090
5091                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5092
5093 fi
5094
5095
5096           eval "$wx_cv_use_profile"
5097
5098           if test x"$enablestring" = xdisable; then
5099             if test $wxUSE_PROFILE = no; then
5100               result=yes
5101             else
5102               result=no
5103             fi
5104           else
5105             result=$wxUSE_PROFILE
5106           fi
5107
5108           { echo "$as_me:$LINENO: result: $result" >&5
5109 echo "${ECHO_T}$result" >&6; }
5110
5111
5112           enablestring=
5113           defaultval=
5114           if test -z "$defaultval"; then
5115               if test x"$enablestring" = xdisable; then
5116                   defaultval=yes
5117               else
5118                   defaultval=no
5119               fi
5120           fi
5121
5122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5123 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5124           # Check whether --enable-no_rtti was given.
5125 if test "${enable_no_rtti+set}" = set; then
5126   enableval=$enable_no_rtti;
5127                           if test "$enableval" = yes; then
5128                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5129                           else
5130                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5131                           fi
5132
5133 else
5134
5135                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5136
5137 fi
5138
5139
5140           eval "$wx_cv_use_no_rtti"
5141
5142           if test x"$enablestring" = xdisable; then
5143             if test $wxUSE_NO_RTTI = no; then
5144               result=yes
5145             else
5146               result=no
5147             fi
5148           else
5149             result=$wxUSE_NO_RTTI
5150           fi
5151
5152           { echo "$as_me:$LINENO: result: $result" >&5
5153 echo "${ECHO_T}$result" >&6; }
5154
5155
5156           enablestring=
5157           defaultval=
5158           if test -z "$defaultval"; then
5159               if test x"$enablestring" = xdisable; then
5160                   defaultval=yes
5161               else
5162                   defaultval=no
5163               fi
5164           fi
5165
5166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5167 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5168           # Check whether --enable-no_exceptions was given.
5169 if test "${enable_no_exceptions+set}" = set; then
5170   enableval=$enable_no_exceptions;
5171                           if test "$enableval" = yes; then
5172                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5173                           else
5174                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5175                           fi
5176
5177 else
5178
5179                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5180
5181 fi
5182
5183
5184           eval "$wx_cv_use_no_exceptions"
5185
5186           if test x"$enablestring" = xdisable; then
5187             if test $wxUSE_NO_EXCEPTIONS = no; then
5188               result=yes
5189             else
5190               result=no
5191             fi
5192           else
5193             result=$wxUSE_NO_EXCEPTIONS
5194           fi
5195
5196           { echo "$as_me:$LINENO: result: $result" >&5
5197 echo "${ECHO_T}$result" >&6; }
5198
5199
5200           enablestring=
5201           defaultval=
5202           if test -z "$defaultval"; then
5203               if test x"$enablestring" = xdisable; then
5204                   defaultval=yes
5205               else
5206                   defaultval=no
5207               fi
5208           fi
5209
5210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5211 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5212           # Check whether --enable-permissive was given.
5213 if test "${enable_permissive+set}" = set; then
5214   enableval=$enable_permissive;
5215                           if test "$enableval" = yes; then
5216                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5217                           else
5218                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5219                           fi
5220
5221 else
5222
5223                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5224
5225 fi
5226
5227
5228           eval "$wx_cv_use_permissive"
5229
5230           if test x"$enablestring" = xdisable; then
5231             if test $wxUSE_PERMISSIVE = no; then
5232               result=yes
5233             else
5234               result=no
5235             fi
5236           else
5237             result=$wxUSE_PERMISSIVE
5238           fi
5239
5240           { echo "$as_me:$LINENO: result: $result" >&5
5241 echo "${ECHO_T}$result" >&6; }
5242
5243
5244           enablestring=
5245           defaultval=
5246           if test -z "$defaultval"; then
5247               if test x"$enablestring" = xdisable; then
5248                   defaultval=yes
5249               else
5250                   defaultval=no
5251               fi
5252           fi
5253
5254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5255 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5256           # Check whether --enable-no_deps was given.
5257 if test "${enable_no_deps+set}" = set; then
5258   enableval=$enable_no_deps;
5259                           if test "$enableval" = yes; then
5260                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5261                           else
5262                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5263                           fi
5264
5265 else
5266
5267                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5268
5269 fi
5270
5271
5272           eval "$wx_cv_use_no_deps"
5273
5274           if test x"$enablestring" = xdisable; then
5275             if test $wxUSE_NO_DEPS = no; then
5276               result=yes
5277             else
5278               result=no
5279             fi
5280           else
5281             result=$wxUSE_NO_DEPS
5282           fi
5283
5284           { echo "$as_me:$LINENO: result: $result" >&5
5285 echo "${ECHO_T}$result" >&6; }
5286
5287
5288           enablestring=disable
5289           defaultval=
5290           if test -z "$defaultval"; then
5291               if test x"$enablestring" = xdisable; then
5292                   defaultval=yes
5293               else
5294                   defaultval=no
5295               fi
5296           fi
5297
5298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5300           # Check whether --enable-vararg_macros was given.
5301 if test "${enable_vararg_macros+set}" = set; then
5302   enableval=$enable_vararg_macros;
5303                           if test "$enableval" = yes; then
5304                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5305                           else
5306                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5307                           fi
5308
5309 else
5310
5311                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5312
5313 fi
5314
5315
5316           eval "$wx_cv_use_vararg_macros"
5317
5318           if test x"$enablestring" = xdisable; then
5319             if test $wxUSE_VARARG_MACROS = no; then
5320               result=yes
5321             else
5322               result=no
5323             fi
5324           else
5325             result=$wxUSE_VARARG_MACROS
5326           fi
5327
5328           { echo "$as_me:$LINENO: result: $result" >&5
5329 echo "${ECHO_T}$result" >&6; }
5330
5331
5332           enablestring=
5333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5334 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5335           # Check whether --enable-universal_binary was given.
5336 if test "${enable_universal_binary+set}" = set; then
5337   enableval=$enable_universal_binary;
5338                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5339
5340 else
5341
5342                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5343
5344 fi
5345
5346
5347           eval "$wx_cv_use_universal_binary"
5348
5349           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5350 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5351
5352
5353
5354           enablestring=
5355           defaultval=
5356           if test -z "$defaultval"; then
5357               if test x"$enablestring" = xdisable; then
5358                   defaultval=yes
5359               else
5360                   defaultval=no
5361               fi
5362           fi
5363
5364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5365 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5366           # Check whether --enable-compat26 was given.
5367 if test "${enable_compat26+set}" = set; then
5368   enableval=$enable_compat26;
5369                           if test "$enableval" = yes; then
5370                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5371                           else
5372                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5373                           fi
5374
5375 else
5376
5377                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5378
5379 fi
5380
5381
5382           eval "$wx_cv_use_compat26"
5383
5384           if test x"$enablestring" = xdisable; then
5385             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5386               result=yes
5387             else
5388               result=no
5389             fi
5390           else
5391             result=$WXWIN_COMPATIBILITY_2_6
5392           fi
5393
5394           { echo "$as_me:$LINENO: result: $result" >&5
5395 echo "${ECHO_T}$result" >&6; }
5396
5397
5398           enablestring=disable
5399           defaultval=
5400           if test -z "$defaultval"; then
5401               if test x"$enablestring" = xdisable; then
5402                   defaultval=yes
5403               else
5404                   defaultval=no
5405               fi
5406           fi
5407
5408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5409 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5410           # Check whether --enable-compat28 was given.
5411 if test "${enable_compat28+set}" = set; then
5412   enableval=$enable_compat28;
5413                           if test "$enableval" = yes; then
5414                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5415                           else
5416                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5417                           fi
5418
5419 else
5420
5421                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5422
5423 fi
5424
5425
5426           eval "$wx_cv_use_compat28"
5427
5428           if test x"$enablestring" = xdisable; then
5429             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5430               result=yes
5431             else
5432               result=no
5433             fi
5434           else
5435             result=$WXWIN_COMPATIBILITY_2_8
5436           fi
5437
5438           { echo "$as_me:$LINENO: result: $result" >&5
5439 echo "${ECHO_T}$result" >&6; }
5440
5441
5442
5443           enablestring=disable
5444           defaultval=
5445           if test -z "$defaultval"; then
5446               if test x"$enablestring" = xdisable; then
5447                   defaultval=yes
5448               else
5449                   defaultval=no
5450               fi
5451           fi
5452
5453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5454 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5455           # Check whether --enable-rpath was given.
5456 if test "${enable_rpath+set}" = set; then
5457   enableval=$enable_rpath;
5458                           if test "$enableval" = yes; then
5459                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5460                           else
5461                             wx_cv_use_rpath='wxUSE_RPATH=no'
5462                           fi
5463
5464 else
5465
5466                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5467
5468 fi
5469
5470
5471           eval "$wx_cv_use_rpath"
5472
5473           if test x"$enablestring" = xdisable; then
5474             if test $wxUSE_RPATH = no; then
5475               result=yes
5476             else
5477               result=no
5478             fi
5479           else
5480             result=$wxUSE_RPATH
5481           fi
5482
5483           { echo "$as_me:$LINENO: result: $result" >&5
5484 echo "${ECHO_T}$result" >&6; }
5485
5486
5487
5488           enablestring=
5489           defaultval=
5490           if test -z "$defaultval"; then
5491               if test x"$enablestring" = xdisable; then
5492                   defaultval=yes
5493               else
5494                   defaultval=no
5495               fi
5496           fi
5497
5498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5499 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5500           # Check whether --enable-objc_uniquifying was given.
5501 if test "${enable_objc_uniquifying+set}" = set; then
5502   enableval=$enable_objc_uniquifying;
5503                           if test "$enableval" = yes; then
5504                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5505                           else
5506                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5507                           fi
5508
5509 else
5510
5511                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5512
5513 fi
5514
5515
5516           eval "$wx_cv_use_objc_uniquifying"
5517
5518           if test x"$enablestring" = xdisable; then
5519             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5520               result=yes
5521             else
5522               result=no
5523             fi
5524           else
5525             result=$wxUSE_OBJC_UNIQUIFYING
5526           fi
5527
5528           { echo "$as_me:$LINENO: result: $result" >&5
5529 echo "${ECHO_T}$result" >&6; }
5530
5531
5532
5533           enablestring=disable
5534           defaultval=
5535           if test -z "$defaultval"; then
5536               if test x"$enablestring" = xdisable; then
5537                   defaultval=yes
5538               else
5539                   defaultval=no
5540               fi
5541           fi
5542
5543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5544 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5545           # Check whether --enable-visibility was given.
5546 if test "${enable_visibility+set}" = set; then
5547   enableval=$enable_visibility;
5548                           if test "$enableval" = yes; then
5549                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5550                           else
5551                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5552                           fi
5553
5554 else
5555
5556                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5557
5558 fi
5559
5560
5561           eval "$wx_cv_use_visibility"
5562
5563           if test x"$enablestring" = xdisable; then
5564             if test $wxUSE_VISIBILITY = no; then
5565               result=yes
5566             else
5567               result=no
5568             fi
5569           else
5570             result=$wxUSE_VISIBILITY
5571           fi
5572
5573           { echo "$as_me:$LINENO: result: $result" >&5
5574 echo "${ECHO_T}$result" >&6; }
5575
5576
5577           enablestring=disable
5578           defaultval=
5579           if test -z "$defaultval"; then
5580               if test x"$enablestring" = xdisable; then
5581                   defaultval=yes
5582               else
5583                   defaultval=no
5584               fi
5585           fi
5586
5587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5589           # Check whether --enable-tls was given.
5590 if test "${enable_tls+set}" = set; then
5591   enableval=$enable_tls;
5592                           if test "$enableval" = yes; then
5593                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5594                           else
5595                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5596                           fi
5597
5598 else
5599
5600                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5601
5602 fi
5603
5604
5605           eval "$wx_cv_use_tls"
5606
5607           if test x"$enablestring" = xdisable; then
5608             if test $wxUSE_COMPILER_TLS = no; then
5609               result=yes
5610             else
5611               result=no
5612             fi
5613           else
5614             result=$wxUSE_COMPILER_TLS
5615           fi
5616
5617           { echo "$as_me:$LINENO: result: $result" >&5
5618 echo "${ECHO_T}$result" >&6; }
5619
5620
5621
5622
5623           enablestring=
5624           defaultval=$wxUSE_ALL_FEATURES
5625           if test -z "$defaultval"; then
5626               if test x"$enablestring" = xdisable; then
5627                   defaultval=yes
5628               else
5629                   defaultval=no
5630               fi
5631           fi
5632
5633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5634 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5635           # Check whether --enable-intl was given.
5636 if test "${enable_intl+set}" = set; then
5637   enableval=$enable_intl;
5638                           if test "$enableval" = yes; then
5639                             wx_cv_use_intl='wxUSE_INTL=yes'
5640                           else
5641                             wx_cv_use_intl='wxUSE_INTL=no'
5642                           fi
5643
5644 else
5645
5646                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5647
5648 fi
5649
5650
5651           eval "$wx_cv_use_intl"
5652
5653           if test x"$enablestring" = xdisable; then
5654             if test $wxUSE_INTL = no; then
5655               result=yes
5656             else
5657               result=no
5658             fi
5659           else
5660             result=$wxUSE_INTL
5661           fi
5662
5663           { echo "$as_me:$LINENO: result: $result" >&5
5664 echo "${ECHO_T}$result" >&6; }
5665
5666
5667           enablestring=
5668           defaultval=$wxUSE_ALL_FEATURES
5669           if test -z "$defaultval"; then
5670               if test x"$enablestring" = xdisable; then
5671                   defaultval=yes
5672               else
5673                   defaultval=no
5674               fi
5675           fi
5676
5677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5678 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5679           # Check whether --enable-xlocale was given.
5680 if test "${enable_xlocale+set}" = set; then
5681   enableval=$enable_xlocale;
5682                           if test "$enableval" = yes; then
5683                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5684                           else
5685                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5686                           fi
5687
5688 else
5689
5690                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5691
5692 fi
5693
5694
5695           eval "$wx_cv_use_xlocale"
5696
5697           if test x"$enablestring" = xdisable; then
5698             if test $wxUSE_XLOCALE = no; then
5699               result=yes
5700             else
5701               result=no
5702             fi
5703           else
5704             result=$wxUSE_XLOCALE
5705           fi
5706
5707           { echo "$as_me:$LINENO: result: $result" >&5
5708 echo "${ECHO_T}$result" >&6; }
5709
5710
5711           enablestring=
5712           defaultval=$wxUSE_ALL_FEATURES
5713           if test -z "$defaultval"; then
5714               if test x"$enablestring" = xdisable; then
5715                   defaultval=yes
5716               else
5717                   defaultval=no
5718               fi
5719           fi
5720
5721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5722 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5723           # Check whether --enable-config was given.
5724 if test "${enable_config+set}" = set; then
5725   enableval=$enable_config;
5726                           if test "$enableval" = yes; then
5727                             wx_cv_use_config='wxUSE_CONFIG=yes'
5728                           else
5729                             wx_cv_use_config='wxUSE_CONFIG=no'
5730                           fi
5731
5732 else
5733
5734                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5735
5736 fi
5737
5738
5739           eval "$wx_cv_use_config"
5740
5741           if test x"$enablestring" = xdisable; then
5742             if test $wxUSE_CONFIG = no; then
5743               result=yes
5744             else
5745               result=no
5746             fi
5747           else
5748             result=$wxUSE_CONFIG
5749           fi
5750
5751           { echo "$as_me:$LINENO: result: $result" >&5
5752 echo "${ECHO_T}$result" >&6; }
5753
5754
5755
5756           enablestring=
5757           defaultval=$wxUSE_ALL_FEATURES
5758           if test -z "$defaultval"; then
5759               if test x"$enablestring" = xdisable; then
5760                   defaultval=yes
5761               else
5762                   defaultval=no
5763               fi
5764           fi
5765
5766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5767 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5768           # Check whether --enable-protocols was given.
5769 if test "${enable_protocols+set}" = set; then
5770   enableval=$enable_protocols;
5771                           if test "$enableval" = yes; then
5772                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5773                           else
5774                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5775                           fi
5776
5777 else
5778
5779                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5780
5781 fi
5782
5783
5784           eval "$wx_cv_use_protocols"
5785
5786           if test x"$enablestring" = xdisable; then
5787             if test $wxUSE_PROTOCOL = no; then
5788               result=yes
5789             else
5790               result=no
5791             fi
5792           else
5793             result=$wxUSE_PROTOCOL
5794           fi
5795
5796           { echo "$as_me:$LINENO: result: $result" >&5
5797 echo "${ECHO_T}$result" >&6; }
5798
5799
5800           enablestring=
5801           defaultval=$wxUSE_ALL_FEATURES
5802           if test -z "$defaultval"; then
5803               if test x"$enablestring" = xdisable; then
5804                   defaultval=yes
5805               else
5806                   defaultval=no
5807               fi
5808           fi
5809
5810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5811 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5812           # Check whether --enable-ftp was given.
5813 if test "${enable_ftp+set}" = set; then
5814   enableval=$enable_ftp;
5815                           if test "$enableval" = yes; then
5816                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5817                           else
5818                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5819                           fi
5820
5821 else
5822
5823                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5824
5825 fi
5826
5827
5828           eval "$wx_cv_use_ftp"
5829
5830           if test x"$enablestring" = xdisable; then
5831             if test $wxUSE_PROTOCOL_FTP = no; then
5832               result=yes
5833             else
5834               result=no
5835             fi
5836           else
5837             result=$wxUSE_PROTOCOL_FTP
5838           fi
5839
5840           { echo "$as_me:$LINENO: result: $result" >&5
5841 echo "${ECHO_T}$result" >&6; }
5842
5843
5844           enablestring=
5845           defaultval=$wxUSE_ALL_FEATURES
5846           if test -z "$defaultval"; then
5847               if test x"$enablestring" = xdisable; then
5848                   defaultval=yes
5849               else
5850                   defaultval=no
5851               fi
5852           fi
5853
5854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5855 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5856           # Check whether --enable-http was given.
5857 if test "${enable_http+set}" = set; then
5858   enableval=$enable_http;
5859                           if test "$enableval" = yes; then
5860                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5861                           else
5862                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5863                           fi
5864
5865 else
5866
5867                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5868
5869 fi
5870
5871
5872           eval "$wx_cv_use_http"
5873
5874           if test x"$enablestring" = xdisable; then
5875             if test $wxUSE_PROTOCOL_HTTP = no; then
5876               result=yes
5877             else
5878               result=no
5879             fi
5880           else
5881             result=$wxUSE_PROTOCOL_HTTP
5882           fi
5883
5884           { echo "$as_me:$LINENO: result: $result" >&5
5885 echo "${ECHO_T}$result" >&6; }
5886
5887
5888           enablestring=
5889           defaultval=$wxUSE_ALL_FEATURES
5890           if test -z "$defaultval"; then
5891               if test x"$enablestring" = xdisable; then
5892                   defaultval=yes
5893               else
5894                   defaultval=no
5895               fi
5896           fi
5897
5898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5899 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5900           # Check whether --enable-fileproto was given.
5901 if test "${enable_fileproto+set}" = set; then
5902   enableval=$enable_fileproto;
5903                           if test "$enableval" = yes; then
5904                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5905                           else
5906                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5907                           fi
5908
5909 else
5910
5911                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5912
5913 fi
5914
5915
5916           eval "$wx_cv_use_fileproto"
5917
5918           if test x"$enablestring" = xdisable; then
5919             if test $wxUSE_PROTOCOL_FILE = no; then
5920               result=yes
5921             else
5922               result=no
5923             fi
5924           else
5925             result=$wxUSE_PROTOCOL_FILE
5926           fi
5927
5928           { echo "$as_me:$LINENO: result: $result" >&5
5929 echo "${ECHO_T}$result" >&6; }
5930
5931
5932           enablestring=
5933           defaultval=$wxUSE_ALL_FEATURES
5934           if test -z "$defaultval"; then
5935               if test x"$enablestring" = xdisable; then
5936                   defaultval=yes
5937               else
5938                   defaultval=no
5939               fi
5940           fi
5941
5942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5943 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5944           # Check whether --enable-sockets was given.
5945 if test "${enable_sockets+set}" = set; then
5946   enableval=$enable_sockets;
5947                           if test "$enableval" = yes; then
5948                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5949                           else
5950                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5951                           fi
5952
5953 else
5954
5955                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5956
5957 fi
5958
5959
5960           eval "$wx_cv_use_sockets"
5961
5962           if test x"$enablestring" = xdisable; then
5963             if test $wxUSE_SOCKETS = no; then
5964               result=yes
5965             else
5966               result=no
5967             fi
5968           else
5969             result=$wxUSE_SOCKETS
5970           fi
5971
5972           { echo "$as_me:$LINENO: result: $result" >&5
5973 echo "${ECHO_T}$result" >&6; }
5974
5975
5976           enablestring=
5977           defaultval=$wxUSE_ALL_FEATURES
5978           if test -z "$defaultval"; then
5979               if test x"$enablestring" = xdisable; then
5980                   defaultval=yes
5981               else
5982                   defaultval=no
5983               fi
5984           fi
5985
5986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5987 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5988           # Check whether --enable-ipv6 was given.
5989 if test "${enable_ipv6+set}" = set; then
5990   enableval=$enable_ipv6;
5991                           if test "$enableval" = yes; then
5992                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5993                           else
5994                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5995                           fi
5996
5997 else
5998
5999                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6000
6001 fi
6002
6003
6004           eval "$wx_cv_use_ipv6"
6005
6006           if test x"$enablestring" = xdisable; then
6007             if test $wxUSE_IPV6 = no; then
6008               result=yes
6009             else
6010               result=no
6011             fi
6012           else
6013             result=$wxUSE_IPV6
6014           fi
6015
6016           { echo "$as_me:$LINENO: result: $result" >&5
6017 echo "${ECHO_T}$result" >&6; }
6018
6019
6020           enablestring=
6021           defaultval=$wxUSE_ALL_FEATURES
6022           if test -z "$defaultval"; then
6023               if test x"$enablestring" = xdisable; then
6024                   defaultval=yes
6025               else
6026                   defaultval=no
6027               fi
6028           fi
6029
6030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6031 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6032           # Check whether --enable-ole was given.
6033 if test "${enable_ole+set}" = set; then
6034   enableval=$enable_ole;
6035                           if test "$enableval" = yes; then
6036                             wx_cv_use_ole='wxUSE_OLE=yes'
6037                           else
6038                             wx_cv_use_ole='wxUSE_OLE=no'
6039                           fi
6040
6041 else
6042
6043                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6044
6045 fi
6046
6047
6048           eval "$wx_cv_use_ole"
6049
6050           if test x"$enablestring" = xdisable; then
6051             if test $wxUSE_OLE = no; then
6052               result=yes
6053             else
6054               result=no
6055             fi
6056           else
6057             result=$wxUSE_OLE
6058           fi
6059
6060           { echo "$as_me:$LINENO: result: $result" >&5
6061 echo "${ECHO_T}$result" >&6; }
6062
6063
6064           enablestring=
6065           defaultval=$wxUSE_ALL_FEATURES
6066           if test -z "$defaultval"; then
6067               if test x"$enablestring" = xdisable; then
6068                   defaultval=yes
6069               else
6070                   defaultval=no
6071               fi
6072           fi
6073
6074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6075 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6076           # Check whether --enable-dataobj was given.
6077 if test "${enable_dataobj+set}" = set; then
6078   enableval=$enable_dataobj;
6079                           if test "$enableval" = yes; then
6080                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6081                           else
6082                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6083                           fi
6084
6085 else
6086
6087                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6088
6089 fi
6090
6091
6092           eval "$wx_cv_use_dataobj"
6093
6094           if test x"$enablestring" = xdisable; then
6095             if test $wxUSE_DATAOBJ = no; then
6096               result=yes
6097             else
6098               result=no
6099             fi
6100           else
6101             result=$wxUSE_DATAOBJ
6102           fi
6103
6104           { echo "$as_me:$LINENO: result: $result" >&5
6105 echo "${ECHO_T}$result" >&6; }
6106
6107
6108
6109           enablestring=
6110           defaultval=$wxUSE_ALL_FEATURES
6111           if test -z "$defaultval"; then
6112               if test x"$enablestring" = xdisable; then
6113                   defaultval=yes
6114               else
6115                   defaultval=no
6116               fi
6117           fi
6118
6119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6120 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6121           # Check whether --enable-ipc was given.
6122 if test "${enable_ipc+set}" = set; then
6123   enableval=$enable_ipc;
6124                           if test "$enableval" = yes; then
6125                             wx_cv_use_ipc='wxUSE_IPC=yes'
6126                           else
6127                             wx_cv_use_ipc='wxUSE_IPC=no'
6128                           fi
6129
6130 else
6131
6132                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6133
6134 fi
6135
6136
6137           eval "$wx_cv_use_ipc"
6138
6139           if test x"$enablestring" = xdisable; then
6140             if test $wxUSE_IPC = no; then
6141               result=yes
6142             else
6143               result=no
6144             fi
6145           else
6146             result=$wxUSE_IPC
6147           fi
6148
6149           { echo "$as_me:$LINENO: result: $result" >&5
6150 echo "${ECHO_T}$result" >&6; }
6151
6152
6153
6154           enablestring=
6155           defaultval=$wxUSE_ALL_FEATURES
6156           if test -z "$defaultval"; then
6157               if test x"$enablestring" = xdisable; then
6158                   defaultval=yes
6159               else
6160                   defaultval=no
6161               fi
6162           fi
6163
6164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6165 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6166           # Check whether --enable-baseevtloop was given.
6167 if test "${enable_baseevtloop+set}" = set; then
6168   enableval=$enable_baseevtloop;
6169                           if test "$enableval" = yes; then
6170                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6171                           else
6172                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6173                           fi
6174
6175 else
6176
6177                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6178
6179 fi
6180
6181
6182           eval "$wx_cv_use_baseevtloop"
6183
6184           if test x"$enablestring" = xdisable; then
6185             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6186               result=yes
6187             else
6188               result=no
6189             fi
6190           else
6191             result=$wxUSE_CONSOLE_EVENTLOOP
6192           fi
6193
6194           { echo "$as_me:$LINENO: result: $result" >&5
6195 echo "${ECHO_T}$result" >&6; }
6196
6197
6198           enablestring=
6199           defaultval=$wxUSE_ALL_FEATURES
6200           if test -z "$defaultval"; then
6201               if test x"$enablestring" = xdisable; then
6202                   defaultval=yes
6203               else
6204                   defaultval=no
6205               fi
6206           fi
6207
6208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6209 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6210           # Check whether --enable-epollloop was given.
6211 if test "${enable_epollloop+set}" = set; then
6212   enableval=$enable_epollloop;
6213                           if test "$enableval" = yes; then
6214                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6215                           else
6216                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6217                           fi
6218
6219 else
6220
6221                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6222
6223 fi
6224
6225
6226           eval "$wx_cv_use_epollloop"
6227
6228           if test x"$enablestring" = xdisable; then
6229             if test $wxUSE_EPOLL_DISPATCHER = no; then
6230               result=yes
6231             else
6232               result=no
6233             fi
6234           else
6235             result=$wxUSE_EPOLL_DISPATCHER
6236           fi
6237
6238           { echo "$as_me:$LINENO: result: $result" >&5
6239 echo "${ECHO_T}$result" >&6; }
6240
6241
6242           enablestring=
6243           defaultval=$wxUSE_ALL_FEATURES
6244           if test -z "$defaultval"; then
6245               if test x"$enablestring" = xdisable; then
6246                   defaultval=yes
6247               else
6248                   defaultval=no
6249               fi
6250           fi
6251
6252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6253 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6254           # Check whether --enable-selectloop was given.
6255 if test "${enable_selectloop+set}" = set; then
6256   enableval=$enable_selectloop;
6257                           if test "$enableval" = yes; then
6258                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6259                           else
6260                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6261                           fi
6262
6263 else
6264
6265                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6266
6267 fi
6268
6269
6270           eval "$wx_cv_use_selectloop"
6271
6272           if test x"$enablestring" = xdisable; then
6273             if test $wxUSE_SELECT_DISPATCHER = no; then
6274               result=yes
6275             else
6276               result=no
6277             fi
6278           else
6279             result=$wxUSE_SELECT_DISPATCHER
6280           fi
6281
6282           { echo "$as_me:$LINENO: result: $result" >&5
6283 echo "${ECHO_T}$result" >&6; }
6284
6285
6286
6287           enablestring=
6288           defaultval=$wxUSE_ALL_FEATURES
6289           if test -z "$defaultval"; then
6290               if test x"$enablestring" = xdisable; then
6291                   defaultval=yes
6292               else
6293                   defaultval=no
6294               fi
6295           fi
6296
6297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6298 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6299           # Check whether --enable-any was given.
6300 if test "${enable_any+set}" = set; then
6301   enableval=$enable_any;
6302                           if test "$enableval" = yes; then
6303                             wx_cv_use_any='wxUSE_ANY=yes'
6304                           else
6305                             wx_cv_use_any='wxUSE_ANY=no'
6306                           fi
6307
6308 else
6309
6310                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6311
6312 fi
6313
6314
6315           eval "$wx_cv_use_any"
6316
6317           if test x"$enablestring" = xdisable; then
6318             if test $wxUSE_ANY = no; then
6319               result=yes
6320             else
6321               result=no
6322             fi
6323           else
6324             result=$wxUSE_ANY
6325           fi
6326
6327           { echo "$as_me:$LINENO: result: $result" >&5
6328 echo "${ECHO_T}$result" >&6; }
6329
6330
6331           enablestring=
6332           defaultval=$wxUSE_ALL_FEATURES
6333           if test -z "$defaultval"; then
6334               if test x"$enablestring" = xdisable; then
6335                   defaultval=yes
6336               else
6337                   defaultval=no
6338               fi
6339           fi
6340
6341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6342 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6343           # Check whether --enable-apple_ieee was given.
6344 if test "${enable_apple_ieee+set}" = set; then
6345   enableval=$enable_apple_ieee;
6346                           if test "$enableval" = yes; then
6347                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6348                           else
6349                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6350                           fi
6351
6352 else
6353
6354                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6355
6356 fi
6357
6358
6359           eval "$wx_cv_use_apple_ieee"
6360
6361           if test x"$enablestring" = xdisable; then
6362             if test $wxUSE_APPLE_IEEE = no; then
6363               result=yes
6364             else
6365               result=no
6366             fi
6367           else
6368             result=$wxUSE_APPLE_IEEE
6369           fi
6370
6371           { echo "$as_me:$LINENO: result: $result" >&5
6372 echo "${ECHO_T}$result" >&6; }
6373
6374
6375           enablestring=
6376           defaultval=$wxUSE_ALL_FEATURES
6377           if test -z "$defaultval"; then
6378               if test x"$enablestring" = xdisable; then
6379                   defaultval=yes
6380               else
6381                   defaultval=no
6382               fi
6383           fi
6384
6385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6386 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6387           # Check whether --enable-arcstream was given.
6388 if test "${enable_arcstream+set}" = set; then
6389   enableval=$enable_arcstream;
6390                           if test "$enableval" = yes; then
6391                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6392                           else
6393                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6394                           fi
6395
6396 else
6397
6398                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6399
6400 fi
6401
6402
6403           eval "$wx_cv_use_arcstream"
6404
6405           if test x"$enablestring" = xdisable; then
6406             if test $wxUSE_ARCHIVE_STREAMS = no; then
6407               result=yes
6408             else
6409               result=no
6410             fi
6411           else
6412             result=$wxUSE_ARCHIVE_STREAMS
6413           fi
6414
6415           { echo "$as_me:$LINENO: result: $result" >&5
6416 echo "${ECHO_T}$result" >&6; }
6417
6418
6419           enablestring=
6420           defaultval=$wxUSE_ALL_FEATURES
6421           if test -z "$defaultval"; then
6422               if test x"$enablestring" = xdisable; then
6423                   defaultval=yes
6424               else
6425                   defaultval=no
6426               fi
6427           fi
6428
6429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6430 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6431           # Check whether --enable-base64 was given.
6432 if test "${enable_base64+set}" = set; then
6433   enableval=$enable_base64;
6434                           if test "$enableval" = yes; then
6435                             wx_cv_use_base64='wxUSE_BASE64=yes'
6436                           else
6437                             wx_cv_use_base64='wxUSE_BASE64=no'
6438                           fi
6439
6440 else
6441
6442                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6443
6444 fi
6445
6446
6447           eval "$wx_cv_use_base64"
6448
6449           if test x"$enablestring" = xdisable; then
6450             if test $wxUSE_BASE64 = no; then
6451               result=yes
6452             else
6453               result=no
6454             fi
6455           else
6456             result=$wxUSE_BASE64
6457           fi
6458
6459           { echo "$as_me:$LINENO: result: $result" >&5
6460 echo "${ECHO_T}$result" >&6; }
6461
6462
6463           enablestring=
6464           defaultval=$wxUSE_ALL_FEATURES
6465           if test -z "$defaultval"; then
6466               if test x"$enablestring" = xdisable; then
6467                   defaultval=yes
6468               else
6469                   defaultval=no
6470               fi
6471           fi
6472
6473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6474 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6475           # Check whether --enable-backtrace was given.
6476 if test "${enable_backtrace+set}" = set; then
6477   enableval=$enable_backtrace;
6478                           if test "$enableval" = yes; then
6479                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6480                           else
6481                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6482                           fi
6483
6484 else
6485
6486                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6487
6488 fi
6489
6490
6491           eval "$wx_cv_use_backtrace"
6492
6493           if test x"$enablestring" = xdisable; then
6494             if test $wxUSE_STACKWALKER = no; then
6495               result=yes
6496             else
6497               result=no
6498             fi
6499           else
6500             result=$wxUSE_STACKWALKER
6501           fi
6502
6503           { echo "$as_me:$LINENO: result: $result" >&5
6504 echo "${ECHO_T}$result" >&6; }
6505
6506
6507           enablestring=
6508           defaultval=$wxUSE_ALL_FEATURES
6509           if test -z "$defaultval"; then
6510               if test x"$enablestring" = xdisable; then
6511                   defaultval=yes
6512               else
6513                   defaultval=no
6514               fi
6515           fi
6516
6517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6518 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6519           # Check whether --enable-catch_segvs was given.
6520 if test "${enable_catch_segvs+set}" = set; then
6521   enableval=$enable_catch_segvs;
6522                           if test "$enableval" = yes; then
6523                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6524                           else
6525                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6526                           fi
6527
6528 else
6529
6530                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6531
6532 fi
6533
6534
6535           eval "$wx_cv_use_catch_segvs"
6536
6537           if test x"$enablestring" = xdisable; then
6538             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6539               result=yes
6540             else
6541               result=no
6542             fi
6543           else
6544             result=$wxUSE_ON_FATAL_EXCEPTION
6545           fi
6546
6547           { echo "$as_me:$LINENO: result: $result" >&5
6548 echo "${ECHO_T}$result" >&6; }
6549
6550
6551           enablestring=
6552           defaultval=$wxUSE_ALL_FEATURES
6553           if test -z "$defaultval"; then
6554               if test x"$enablestring" = xdisable; then
6555                   defaultval=yes
6556               else
6557                   defaultval=no
6558               fi
6559           fi
6560
6561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6562 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6563           # Check whether --enable-cmdline was given.
6564 if test "${enable_cmdline+set}" = set; then
6565   enableval=$enable_cmdline;
6566                           if test "$enableval" = yes; then
6567                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6568                           else
6569                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6570                           fi
6571
6572 else
6573
6574                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6575
6576 fi
6577
6578
6579           eval "$wx_cv_use_cmdline"
6580
6581           if test x"$enablestring" = xdisable; then
6582             if test $wxUSE_CMDLINE_PARSER = no; then
6583               result=yes
6584             else
6585               result=no
6586             fi
6587           else
6588             result=$wxUSE_CMDLINE_PARSER
6589           fi
6590
6591           { echo "$as_me:$LINENO: result: $result" >&5
6592 echo "${ECHO_T}$result" >&6; }
6593
6594
6595           enablestring=
6596           defaultval=$wxUSE_ALL_FEATURES
6597           if test -z "$defaultval"; then
6598               if test x"$enablestring" = xdisable; then
6599                   defaultval=yes
6600               else
6601                   defaultval=no
6602               fi
6603           fi
6604
6605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6606 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6607           # Check whether --enable-datetime was given.
6608 if test "${enable_datetime+set}" = set; then
6609   enableval=$enable_datetime;
6610                           if test "$enableval" = yes; then
6611                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6612                           else
6613                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6614                           fi
6615
6616 else
6617
6618                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6619
6620 fi
6621
6622
6623           eval "$wx_cv_use_datetime"
6624
6625           if test x"$enablestring" = xdisable; then
6626             if test $wxUSE_DATETIME = no; then
6627               result=yes
6628             else
6629               result=no
6630             fi
6631           else
6632             result=$wxUSE_DATETIME
6633           fi
6634
6635           { echo "$as_me:$LINENO: result: $result" >&5
6636 echo "${ECHO_T}$result" >&6; }
6637
6638
6639           enablestring=
6640           defaultval=$wxUSE_ALL_FEATURES
6641           if test -z "$defaultval"; then
6642               if test x"$enablestring" = xdisable; then
6643                   defaultval=yes
6644               else
6645                   defaultval=no
6646               fi
6647           fi
6648
6649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6650 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6651           # Check whether --enable-debugreport was given.
6652 if test "${enable_debugreport+set}" = set; then
6653   enableval=$enable_debugreport;
6654                           if test "$enableval" = yes; then
6655                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6656                           else
6657                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6658                           fi
6659
6660 else
6661
6662                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6663
6664 fi
6665
6666
6667           eval "$wx_cv_use_debugreport"
6668
6669           if test x"$enablestring" = xdisable; then
6670             if test $wxUSE_DEBUGREPORT = no; then
6671               result=yes
6672             else
6673               result=no
6674             fi
6675           else
6676             result=$wxUSE_DEBUGREPORT
6677           fi
6678
6679           { echo "$as_me:$LINENO: result: $result" >&5
6680 echo "${ECHO_T}$result" >&6; }
6681
6682
6683           enablestring=
6684           defaultval=$wxUSE_ALL_FEATURES
6685           if test -z "$defaultval"; then
6686               if test x"$enablestring" = xdisable; then
6687                   defaultval=yes
6688               else
6689                   defaultval=no
6690               fi
6691           fi
6692
6693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6694 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6695           # Check whether --enable-dialupman was given.
6696 if test "${enable_dialupman+set}" = set; then
6697   enableval=$enable_dialupman;
6698                           if test "$enableval" = yes; then
6699                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6700                           else
6701                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6702                           fi
6703
6704 else
6705
6706                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6707
6708 fi
6709
6710
6711           eval "$wx_cv_use_dialupman"
6712
6713           if test x"$enablestring" = xdisable; then
6714             if test $wxUSE_DIALUP_MANAGER = no; then
6715               result=yes
6716             else
6717               result=no
6718             fi
6719           else
6720             result=$wxUSE_DIALUP_MANAGER
6721           fi
6722
6723           { echo "$as_me:$LINENO: result: $result" >&5
6724 echo "${ECHO_T}$result" >&6; }
6725
6726
6727           enablestring=
6728           defaultval=$wxUSE_ALL_FEATURES
6729           if test -z "$defaultval"; then
6730               if test x"$enablestring" = xdisable; then
6731                   defaultval=yes
6732               else
6733                   defaultval=no
6734               fi
6735           fi
6736
6737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6738 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6739           # Check whether --enable-dynlib was given.
6740 if test "${enable_dynlib+set}" = set; then
6741   enableval=$enable_dynlib;
6742                           if test "$enableval" = yes; then
6743                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6744                           else
6745                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6746                           fi
6747
6748 else
6749
6750                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6751
6752 fi
6753
6754
6755           eval "$wx_cv_use_dynlib"
6756
6757           if test x"$enablestring" = xdisable; then
6758             if test $wxUSE_DYNLIB_CLASS = no; then
6759               result=yes
6760             else
6761               result=no
6762             fi
6763           else
6764             result=$wxUSE_DYNLIB_CLASS
6765           fi
6766
6767           { echo "$as_me:$LINENO: result: $result" >&5
6768 echo "${ECHO_T}$result" >&6; }
6769
6770
6771           enablestring=
6772           defaultval=$wxUSE_ALL_FEATURES
6773           if test -z "$defaultval"; then
6774               if test x"$enablestring" = xdisable; then
6775                   defaultval=yes
6776               else
6777                   defaultval=no
6778               fi
6779           fi
6780
6781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6782 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6783           # Check whether --enable-dynamicloader was given.
6784 if test "${enable_dynamicloader+set}" = set; then
6785   enableval=$enable_dynamicloader;
6786                           if test "$enableval" = yes; then
6787                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6788                           else
6789                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6790                           fi
6791
6792 else
6793
6794                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6795
6796 fi
6797
6798
6799           eval "$wx_cv_use_dynamicloader"
6800
6801           if test x"$enablestring" = xdisable; then
6802             if test $wxUSE_DYNAMIC_LOADER = no; then
6803               result=yes
6804             else
6805               result=no
6806             fi
6807           else
6808             result=$wxUSE_DYNAMIC_LOADER
6809           fi
6810
6811           { echo "$as_me:$LINENO: result: $result" >&5
6812 echo "${ECHO_T}$result" >&6; }
6813
6814
6815           enablestring=
6816           defaultval=$wxUSE_ALL_FEATURES
6817           if test -z "$defaultval"; then
6818               if test x"$enablestring" = xdisable; then
6819                   defaultval=yes
6820               else
6821                   defaultval=no
6822               fi
6823           fi
6824
6825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6826 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6827           # Check whether --enable-exceptions was given.
6828 if test "${enable_exceptions+set}" = set; then
6829   enableval=$enable_exceptions;
6830                           if test "$enableval" = yes; then
6831                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6832                           else
6833                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6834                           fi
6835
6836 else
6837
6838                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6839
6840 fi
6841
6842
6843           eval "$wx_cv_use_exceptions"
6844
6845           if test x"$enablestring" = xdisable; then
6846             if test $wxUSE_EXCEPTIONS = no; then
6847               result=yes
6848             else
6849               result=no
6850             fi
6851           else
6852             result=$wxUSE_EXCEPTIONS
6853           fi
6854
6855           { echo "$as_me:$LINENO: result: $result" >&5
6856 echo "${ECHO_T}$result" >&6; }
6857
6858
6859           enablestring=
6860           defaultval=$wxUSE_ALL_FEATURES
6861           if test -z "$defaultval"; then
6862               if test x"$enablestring" = xdisable; then
6863                   defaultval=yes
6864               else
6865                   defaultval=no
6866               fi
6867           fi
6868
6869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6870 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6871           # Check whether --enable-ffile was given.
6872 if test "${enable_ffile+set}" = set; then
6873   enableval=$enable_ffile;
6874                           if test "$enableval" = yes; then
6875                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6876                           else
6877                             wx_cv_use_ffile='wxUSE_FFILE=no'
6878                           fi
6879
6880 else
6881
6882                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6883
6884 fi
6885
6886
6887           eval "$wx_cv_use_ffile"
6888
6889           if test x"$enablestring" = xdisable; then
6890             if test $wxUSE_FFILE = no; then
6891               result=yes
6892             else
6893               result=no
6894             fi
6895           else
6896             result=$wxUSE_FFILE
6897           fi
6898
6899           { echo "$as_me:$LINENO: result: $result" >&5
6900 echo "${ECHO_T}$result" >&6; }
6901
6902
6903           enablestring=
6904           defaultval=$wxUSE_ALL_FEATURES
6905           if test -z "$defaultval"; then
6906               if test x"$enablestring" = xdisable; then
6907                   defaultval=yes
6908               else
6909                   defaultval=no
6910               fi
6911           fi
6912
6913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6914 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6915           # Check whether --enable-file was given.
6916 if test "${enable_file+set}" = set; then
6917   enableval=$enable_file;
6918                           if test "$enableval" = yes; then
6919                             wx_cv_use_file='wxUSE_FILE=yes'
6920                           else
6921                             wx_cv_use_file='wxUSE_FILE=no'
6922                           fi
6923
6924 else
6925
6926                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6927
6928 fi
6929
6930
6931           eval "$wx_cv_use_file"
6932
6933           if test x"$enablestring" = xdisable; then
6934             if test $wxUSE_FILE = no; then
6935               result=yes
6936             else
6937               result=no
6938             fi
6939           else
6940             result=$wxUSE_FILE
6941           fi
6942
6943           { echo "$as_me:$LINENO: result: $result" >&5
6944 echo "${ECHO_T}$result" >&6; }
6945
6946
6947           enablestring=
6948           defaultval=$wxUSE_ALL_FEATURES
6949           if test -z "$defaultval"; then
6950               if test x"$enablestring" = xdisable; then
6951                   defaultval=yes
6952               else
6953                   defaultval=no
6954               fi
6955           fi
6956
6957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6958 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6959           # Check whether --enable-filesystem was given.
6960 if test "${enable_filesystem+set}" = set; then
6961   enableval=$enable_filesystem;
6962                           if test "$enableval" = yes; then
6963                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6964                           else
6965                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6966                           fi
6967
6968 else
6969
6970                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6971
6972 fi
6973
6974
6975           eval "$wx_cv_use_filesystem"
6976
6977           if test x"$enablestring" = xdisable; then
6978             if test $wxUSE_FILESYSTEM = no; then
6979               result=yes
6980             else
6981               result=no
6982             fi
6983           else
6984             result=$wxUSE_FILESYSTEM
6985           fi
6986
6987           { echo "$as_me:$LINENO: result: $result" >&5
6988 echo "${ECHO_T}$result" >&6; }
6989
6990
6991           enablestring=
6992           defaultval=$wxUSE_ALL_FEATURES
6993           if test -z "$defaultval"; then
6994               if test x"$enablestring" = xdisable; then
6995                   defaultval=yes
6996               else
6997                   defaultval=no
6998               fi
6999           fi
7000
7001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7002 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7003           # Check whether --enable-fontenum was given.
7004 if test "${enable_fontenum+set}" = set; then
7005   enableval=$enable_fontenum;
7006                           if test "$enableval" = yes; then
7007                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7008                           else
7009                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7010                           fi
7011
7012 else
7013
7014                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7015
7016 fi
7017
7018
7019           eval "$wx_cv_use_fontenum"
7020
7021           if test x"$enablestring" = xdisable; then
7022             if test $wxUSE_FONTENUM = no; then
7023               result=yes
7024             else
7025               result=no
7026             fi
7027           else
7028             result=$wxUSE_FONTENUM
7029           fi
7030
7031           { echo "$as_me:$LINENO: result: $result" >&5
7032 echo "${ECHO_T}$result" >&6; }
7033
7034
7035           enablestring=
7036           defaultval=$wxUSE_ALL_FEATURES
7037           if test -z "$defaultval"; then
7038               if test x"$enablestring" = xdisable; then
7039                   defaultval=yes
7040               else
7041                   defaultval=no
7042               fi
7043           fi
7044
7045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7046 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7047           # Check whether --enable-fontmap was given.
7048 if test "${enable_fontmap+set}" = set; then
7049   enableval=$enable_fontmap;
7050                           if test "$enableval" = yes; then
7051                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7052                           else
7053                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7054                           fi
7055
7056 else
7057
7058                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7059
7060 fi
7061
7062
7063           eval "$wx_cv_use_fontmap"
7064
7065           if test x"$enablestring" = xdisable; then
7066             if test $wxUSE_FONTMAP = no; then
7067               result=yes
7068             else
7069               result=no
7070             fi
7071           else
7072             result=$wxUSE_FONTMAP
7073           fi
7074
7075           { echo "$as_me:$LINENO: result: $result" >&5
7076 echo "${ECHO_T}$result" >&6; }
7077
7078
7079           enablestring=
7080           defaultval=$wxUSE_ALL_FEATURES
7081           if test -z "$defaultval"; then
7082               if test x"$enablestring" = xdisable; then
7083                   defaultval=yes
7084               else
7085                   defaultval=no
7086               fi
7087           fi
7088
7089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7090 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7091           # Check whether --enable-fs_archive was given.
7092 if test "${enable_fs_archive+set}" = set; then
7093   enableval=$enable_fs_archive;
7094                           if test "$enableval" = yes; then
7095                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7096                           else
7097                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7098                           fi
7099
7100 else
7101
7102                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7103
7104 fi
7105
7106
7107           eval "$wx_cv_use_fs_archive"
7108
7109           if test x"$enablestring" = xdisable; then
7110             if test $wxUSE_FS_ARCHIVE = no; then
7111               result=yes
7112             else
7113               result=no
7114             fi
7115           else
7116             result=$wxUSE_FS_ARCHIVE
7117           fi
7118
7119           { echo "$as_me:$LINENO: result: $result" >&5
7120 echo "${ECHO_T}$result" >&6; }
7121
7122
7123           enablestring=
7124           defaultval=$wxUSE_ALL_FEATURES
7125           if test -z "$defaultval"; then
7126               if test x"$enablestring" = xdisable; then
7127                   defaultval=yes
7128               else
7129                   defaultval=no
7130               fi
7131           fi
7132
7133           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7134 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7135           # Check whether --enable-fs_inet was given.
7136 if test "${enable_fs_inet+set}" = set; then
7137   enableval=$enable_fs_inet;
7138                           if test "$enableval" = yes; then
7139                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7140                           else
7141                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7142                           fi
7143
7144 else
7145
7146                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7147
7148 fi
7149
7150
7151           eval "$wx_cv_use_fs_inet"
7152
7153           if test x"$enablestring" = xdisable; then
7154             if test $wxUSE_FS_INET = no; then
7155               result=yes
7156             else
7157               result=no
7158             fi
7159           else
7160             result=$wxUSE_FS_INET
7161           fi
7162
7163           { echo "$as_me:$LINENO: result: $result" >&5
7164 echo "${ECHO_T}$result" >&6; }
7165
7166
7167           enablestring=
7168           defaultval=$wxUSE_ALL_FEATURES
7169           if test -z "$defaultval"; then
7170               if test x"$enablestring" = xdisable; then
7171                   defaultval=yes
7172               else
7173                   defaultval=no
7174               fi
7175           fi
7176
7177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7178 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7179           # Check whether --enable-fs_zip was given.
7180 if test "${enable_fs_zip+set}" = set; then
7181   enableval=$enable_fs_zip;
7182                           if test "$enableval" = yes; then
7183                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7184                           else
7185                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7186                           fi
7187
7188 else
7189
7190                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7191
7192 fi
7193
7194
7195           eval "$wx_cv_use_fs_zip"
7196
7197           if test x"$enablestring" = xdisable; then
7198             if test $wxUSE_FS_ZIP = no; then
7199               result=yes
7200             else
7201               result=no
7202             fi
7203           else
7204             result=$wxUSE_FS_ZIP
7205           fi
7206
7207           { echo "$as_me:$LINENO: result: $result" >&5
7208 echo "${ECHO_T}$result" >&6; }
7209
7210
7211           enablestring=
7212           defaultval=$wxUSE_ALL_FEATURES
7213           if test -z "$defaultval"; then
7214               if test x"$enablestring" = xdisable; then
7215                   defaultval=yes
7216               else
7217                   defaultval=no
7218               fi
7219           fi
7220
7221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7222 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7223           # Check whether --enable-geometry was given.
7224 if test "${enable_geometry+set}" = set; then
7225   enableval=$enable_geometry;
7226                           if test "$enableval" = yes; then
7227                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7228                           else
7229                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7230                           fi
7231
7232 else
7233
7234                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7235
7236 fi
7237
7238
7239           eval "$wx_cv_use_geometry"
7240
7241           if test x"$enablestring" = xdisable; then
7242             if test $wxUSE_GEOMETRY = no; then
7243               result=yes
7244             else
7245               result=no
7246             fi
7247           else
7248             result=$wxUSE_GEOMETRY
7249           fi
7250
7251           { echo "$as_me:$LINENO: result: $result" >&5
7252 echo "${ECHO_T}$result" >&6; }
7253
7254
7255           enablestring=
7256           defaultval=$wxUSE_ALL_FEATURES
7257           if test -z "$defaultval"; then
7258               if test x"$enablestring" = xdisable; then
7259                   defaultval=yes
7260               else
7261                   defaultval=no
7262               fi
7263           fi
7264
7265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7266 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7267           # Check whether --enable-log was given.
7268 if test "${enable_log+set}" = set; then
7269   enableval=$enable_log;
7270                           if test "$enableval" = yes; then
7271                             wx_cv_use_log='wxUSE_LOG=yes'
7272                           else
7273                             wx_cv_use_log='wxUSE_LOG=no'
7274                           fi
7275
7276 else
7277
7278                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7279
7280 fi
7281
7282
7283           eval "$wx_cv_use_log"
7284
7285           if test x"$enablestring" = xdisable; then
7286             if test $wxUSE_LOG = no; then
7287               result=yes
7288             else
7289               result=no
7290             fi
7291           else
7292             result=$wxUSE_LOG
7293           fi
7294
7295           { echo "$as_me:$LINENO: result: $result" >&5
7296 echo "${ECHO_T}$result" >&6; }
7297
7298
7299           enablestring=
7300           defaultval=$wxUSE_ALL_FEATURES
7301           if test -z "$defaultval"; then
7302               if test x"$enablestring" = xdisable; then
7303                   defaultval=yes
7304               else
7305                   defaultval=no
7306               fi
7307           fi
7308
7309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7310 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7311           # Check whether --enable-longlong was given.
7312 if test "${enable_longlong+set}" = set; then
7313   enableval=$enable_longlong;
7314                           if test "$enableval" = yes; then
7315                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7316                           else
7317                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7318                           fi
7319
7320 else
7321
7322                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7323
7324 fi
7325
7326
7327           eval "$wx_cv_use_longlong"
7328
7329           if test x"$enablestring" = xdisable; then
7330             if test $wxUSE_LONGLONG = no; then
7331               result=yes
7332             else
7333               result=no
7334             fi
7335           else
7336             result=$wxUSE_LONGLONG
7337           fi
7338
7339           { echo "$as_me:$LINENO: result: $result" >&5
7340 echo "${ECHO_T}$result" >&6; }
7341
7342
7343           enablestring=
7344           defaultval=$wxUSE_ALL_FEATURES
7345           if test -z "$defaultval"; then
7346               if test x"$enablestring" = xdisable; then
7347                   defaultval=yes
7348               else
7349                   defaultval=no
7350               fi
7351           fi
7352
7353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7354 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7355           # Check whether --enable-mimetype was given.
7356 if test "${enable_mimetype+set}" = set; then
7357   enableval=$enable_mimetype;
7358                           if test "$enableval" = yes; then
7359                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7360                           else
7361                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7362                           fi
7363
7364 else
7365
7366                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7367
7368 fi
7369
7370
7371           eval "$wx_cv_use_mimetype"
7372
7373           if test x"$enablestring" = xdisable; then
7374             if test $wxUSE_MIMETYPE = no; then
7375               result=yes
7376             else
7377               result=no
7378             fi
7379           else
7380             result=$wxUSE_MIMETYPE
7381           fi
7382
7383           { echo "$as_me:$LINENO: result: $result" >&5
7384 echo "${ECHO_T}$result" >&6; }
7385
7386
7387           enablestring=
7388           defaultval=$wxUSE_ALL_FEATURES
7389           if test -z "$defaultval"; then
7390               if test x"$enablestring" = xdisable; then
7391                   defaultval=yes
7392               else
7393                   defaultval=no
7394               fi
7395           fi
7396
7397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7398 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7399           # Check whether --enable-printfposparam was given.
7400 if test "${enable_printfposparam+set}" = set; then
7401   enableval=$enable_printfposparam;
7402                           if test "$enableval" = yes; then
7403                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7404                           else
7405                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7406                           fi
7407
7408 else
7409
7410                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7411
7412 fi
7413
7414
7415           eval "$wx_cv_use_printfposparam"
7416
7417           if test x"$enablestring" = xdisable; then
7418             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7419               result=yes
7420             else
7421               result=no
7422             fi
7423           else
7424             result=$wxUSE_PRINTF_POS_PARAMS
7425           fi
7426
7427           { echo "$as_me:$LINENO: result: $result" >&5
7428 echo "${ECHO_T}$result" >&6; }
7429
7430
7431           enablestring=
7432           defaultval=$wxUSE_ALL_FEATURES
7433           if test -z "$defaultval"; then
7434               if test x"$enablestring" = xdisable; then
7435                   defaultval=yes
7436               else
7437                   defaultval=no
7438               fi
7439           fi
7440
7441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7442 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7443           # Check whether --enable-snglinst was given.
7444 if test "${enable_snglinst+set}" = set; then
7445   enableval=$enable_snglinst;
7446                           if test "$enableval" = yes; then
7447                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7448                           else
7449                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7450                           fi
7451
7452 else
7453
7454                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7455
7456 fi
7457
7458
7459           eval "$wx_cv_use_snglinst"
7460
7461           if test x"$enablestring" = xdisable; then
7462             if test $wxUSE_SNGLINST_CHECKER = no; then
7463               result=yes
7464             else
7465               result=no
7466             fi
7467           else
7468             result=$wxUSE_SNGLINST_CHECKER
7469           fi
7470
7471           { echo "$as_me:$LINENO: result: $result" >&5
7472 echo "${ECHO_T}$result" >&6; }
7473
7474
7475           enablestring=
7476           defaultval=$wxUSE_ALL_FEATURES
7477           if test -z "$defaultval"; then
7478               if test x"$enablestring" = xdisable; then
7479                   defaultval=yes
7480               else
7481                   defaultval=no
7482               fi
7483           fi
7484
7485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7486 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7487           # Check whether --enable-sound was given.
7488 if test "${enable_sound+set}" = set; then
7489   enableval=$enable_sound;
7490                           if test "$enableval" = yes; then
7491                             wx_cv_use_sound='wxUSE_SOUND=yes'
7492                           else
7493                             wx_cv_use_sound='wxUSE_SOUND=no'
7494                           fi
7495
7496 else
7497
7498                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7499
7500 fi
7501
7502
7503           eval "$wx_cv_use_sound"
7504
7505           if test x"$enablestring" = xdisable; then
7506             if test $wxUSE_SOUND = no; then
7507               result=yes
7508             else
7509               result=no
7510             fi
7511           else
7512             result=$wxUSE_SOUND
7513           fi
7514
7515           { echo "$as_me:$LINENO: result: $result" >&5
7516 echo "${ECHO_T}$result" >&6; }
7517
7518
7519           enablestring=
7520           defaultval=$wxUSE_ALL_FEATURES
7521           if test -z "$defaultval"; then
7522               if test x"$enablestring" = xdisable; then
7523                   defaultval=yes
7524               else
7525                   defaultval=no
7526               fi
7527           fi
7528
7529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7530 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7531           # Check whether --enable-stdpaths was given.
7532 if test "${enable_stdpaths+set}" = set; then
7533   enableval=$enable_stdpaths;
7534                           if test "$enableval" = yes; then
7535                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7536                           else
7537                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7538                           fi
7539
7540 else
7541
7542                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7543
7544 fi
7545
7546
7547           eval "$wx_cv_use_stdpaths"
7548
7549           if test x"$enablestring" = xdisable; then
7550             if test $wxUSE_STDPATHS = no; then
7551               result=yes
7552             else
7553               result=no
7554             fi
7555           else
7556             result=$wxUSE_STDPATHS
7557           fi
7558
7559           { echo "$as_me:$LINENO: result: $result" >&5
7560 echo "${ECHO_T}$result" >&6; }
7561
7562
7563           enablestring=
7564           defaultval=$wxUSE_ALL_FEATURES
7565           if test -z "$defaultval"; then
7566               if test x"$enablestring" = xdisable; then
7567                   defaultval=yes
7568               else
7569                   defaultval=no
7570               fi
7571           fi
7572
7573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7574 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7575           # Check whether --enable-stopwatch was given.
7576 if test "${enable_stopwatch+set}" = set; then
7577   enableval=$enable_stopwatch;
7578                           if test "$enableval" = yes; then
7579                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7580                           else
7581                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7582                           fi
7583
7584 else
7585
7586                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7587
7588 fi
7589
7590
7591           eval "$wx_cv_use_stopwatch"
7592
7593           if test x"$enablestring" = xdisable; then
7594             if test $wxUSE_STOPWATCH = no; then
7595               result=yes
7596             else
7597               result=no
7598             fi
7599           else
7600             result=$wxUSE_STOPWATCH
7601           fi
7602
7603           { echo "$as_me:$LINENO: result: $result" >&5
7604 echo "${ECHO_T}$result" >&6; }
7605
7606
7607           enablestring=
7608           defaultval=$wxUSE_ALL_FEATURES
7609           if test -z "$defaultval"; then
7610               if test x"$enablestring" = xdisable; then
7611                   defaultval=yes
7612               else
7613                   defaultval=no
7614               fi
7615           fi
7616
7617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7618 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7619           # Check whether --enable-streams was given.
7620 if test "${enable_streams+set}" = set; then
7621   enableval=$enable_streams;
7622                           if test "$enableval" = yes; then
7623                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7624                           else
7625                             wx_cv_use_streams='wxUSE_STREAMS=no'
7626                           fi
7627
7628 else
7629
7630                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7631
7632 fi
7633
7634
7635           eval "$wx_cv_use_streams"
7636
7637           if test x"$enablestring" = xdisable; then
7638             if test $wxUSE_STREAMS = no; then
7639               result=yes
7640             else
7641               result=no
7642             fi
7643           else
7644             result=$wxUSE_STREAMS
7645           fi
7646
7647           { echo "$as_me:$LINENO: result: $result" >&5
7648 echo "${ECHO_T}$result" >&6; }
7649
7650
7651           enablestring=
7652           defaultval=$wxUSE_ALL_FEATURES
7653           if test -z "$defaultval"; then
7654               if test x"$enablestring" = xdisable; then
7655                   defaultval=yes
7656               else
7657                   defaultval=no
7658               fi
7659           fi
7660
7661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7662 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7663           # Check whether --enable-system_options was given.
7664 if test "${enable_system_options+set}" = set; then
7665   enableval=$enable_system_options;
7666                           if test "$enableval" = yes; then
7667                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7668                           else
7669                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7670                           fi
7671
7672 else
7673
7674                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7675
7676 fi
7677
7678
7679           eval "$wx_cv_use_system_options"
7680
7681           if test x"$enablestring" = xdisable; then
7682             if test $wxUSE_SYSTEM_OPTIONS = no; then
7683               result=yes
7684             else
7685               result=no
7686             fi
7687           else
7688             result=$wxUSE_SYSTEM_OPTIONS
7689           fi
7690
7691           { echo "$as_me:$LINENO: result: $result" >&5
7692 echo "${ECHO_T}$result" >&6; }
7693
7694
7695           enablestring=
7696           defaultval=$wxUSE_ALL_FEATURES
7697           if test -z "$defaultval"; then
7698               if test x"$enablestring" = xdisable; then
7699                   defaultval=yes
7700               else
7701                   defaultval=no
7702               fi
7703           fi
7704
7705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7706 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7707           # Check whether --enable-tarstream was given.
7708 if test "${enable_tarstream+set}" = set; then
7709   enableval=$enable_tarstream;
7710                           if test "$enableval" = yes; then
7711                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7712                           else
7713                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7714                           fi
7715
7716 else
7717
7718                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7719
7720 fi
7721
7722
7723           eval "$wx_cv_use_tarstream"
7724
7725           if test x"$enablestring" = xdisable; then
7726             if test $wxUSE_TARSTREAM = no; then
7727               result=yes
7728             else
7729               result=no
7730             fi
7731           else
7732             result=$wxUSE_TARSTREAM
7733           fi
7734
7735           { echo "$as_me:$LINENO: result: $result" >&5
7736 echo "${ECHO_T}$result" >&6; }
7737
7738
7739           enablestring=
7740           defaultval=$wxUSE_ALL_FEATURES
7741           if test -z "$defaultval"; then
7742               if test x"$enablestring" = xdisable; then
7743                   defaultval=yes
7744               else
7745                   defaultval=no
7746               fi
7747           fi
7748
7749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7750 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7751           # Check whether --enable-textbuf was given.
7752 if test "${enable_textbuf+set}" = set; then
7753   enableval=$enable_textbuf;
7754                           if test "$enableval" = yes; then
7755                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7756                           else
7757                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7758                           fi
7759
7760 else
7761
7762                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7763
7764 fi
7765
7766
7767           eval "$wx_cv_use_textbuf"
7768
7769           if test x"$enablestring" = xdisable; then
7770             if test $wxUSE_TEXTBUFFER = no; then
7771               result=yes
7772             else
7773               result=no
7774             fi
7775           else
7776             result=$wxUSE_TEXTBUFFER
7777           fi
7778
7779           { echo "$as_me:$LINENO: result: $result" >&5
7780 echo "${ECHO_T}$result" >&6; }
7781
7782
7783           enablestring=
7784           defaultval=$wxUSE_ALL_FEATURES
7785           if test -z "$defaultval"; then
7786               if test x"$enablestring" = xdisable; then
7787                   defaultval=yes
7788               else
7789                   defaultval=no
7790               fi
7791           fi
7792
7793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7794 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7795           # Check whether --enable-textfile was given.
7796 if test "${enable_textfile+set}" = set; then
7797   enableval=$enable_textfile;
7798                           if test "$enableval" = yes; then
7799                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7800                           else
7801                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7802                           fi
7803
7804 else
7805
7806                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7807
7808 fi
7809
7810
7811           eval "$wx_cv_use_textfile"
7812
7813           if test x"$enablestring" = xdisable; then
7814             if test $wxUSE_TEXTFILE = no; then
7815               result=yes
7816             else
7817               result=no
7818             fi
7819           else
7820             result=$wxUSE_TEXTFILE
7821           fi
7822
7823           { echo "$as_me:$LINENO: result: $result" >&5
7824 echo "${ECHO_T}$result" >&6; }
7825
7826
7827           enablestring=
7828           defaultval=$wxUSE_ALL_FEATURES
7829           if test -z "$defaultval"; then
7830               if test x"$enablestring" = xdisable; then
7831                   defaultval=yes
7832               else
7833                   defaultval=no
7834               fi
7835           fi
7836
7837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7838 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7839           # Check whether --enable-timer was given.
7840 if test "${enable_timer+set}" = set; then
7841   enableval=$enable_timer;
7842                           if test "$enableval" = yes; then
7843                             wx_cv_use_timer='wxUSE_TIMER=yes'
7844                           else
7845                             wx_cv_use_timer='wxUSE_TIMER=no'
7846                           fi
7847
7848 else
7849
7850                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7851
7852 fi
7853
7854
7855           eval "$wx_cv_use_timer"
7856
7857           if test x"$enablestring" = xdisable; then
7858             if test $wxUSE_TIMER = no; then
7859               result=yes
7860             else
7861               result=no
7862             fi
7863           else
7864             result=$wxUSE_TIMER
7865           fi
7866
7867           { echo "$as_me:$LINENO: result: $result" >&5
7868 echo "${ECHO_T}$result" >&6; }
7869
7870
7871           enablestring=
7872           defaultval=$wxUSE_ALL_FEATURES
7873           if test -z "$defaultval"; then
7874               if test x"$enablestring" = xdisable; then
7875                   defaultval=yes
7876               else
7877                   defaultval=no
7878               fi
7879           fi
7880
7881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7882 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7883           # Check whether --enable-variant was given.
7884 if test "${enable_variant+set}" = set; then
7885   enableval=$enable_variant;
7886                           if test "$enableval" = yes; then
7887                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7888                           else
7889                             wx_cv_use_variant='wxUSE_VARIANT=no'
7890                           fi
7891
7892 else
7893
7894                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7895
7896 fi
7897
7898
7899           eval "$wx_cv_use_variant"
7900
7901           if test x"$enablestring" = xdisable; then
7902             if test $wxUSE_VARIANT = no; then
7903               result=yes
7904             else
7905               result=no
7906             fi
7907           else
7908             result=$wxUSE_VARIANT
7909           fi
7910
7911           { echo "$as_me:$LINENO: result: $result" >&5
7912 echo "${ECHO_T}$result" >&6; }
7913
7914
7915           enablestring=
7916           defaultval=$wxUSE_ALL_FEATURES
7917           if test -z "$defaultval"; then
7918               if test x"$enablestring" = xdisable; then
7919                   defaultval=yes
7920               else
7921                   defaultval=no
7922               fi
7923           fi
7924
7925           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7926 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7927           # Check whether --enable-zipstream was given.
7928 if test "${enable_zipstream+set}" = set; then
7929   enableval=$enable_zipstream;
7930                           if test "$enableval" = yes; then
7931                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7932                           else
7933                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7934                           fi
7935
7936 else
7937
7938                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7939
7940 fi
7941
7942
7943           eval "$wx_cv_use_zipstream"
7944
7945           if test x"$enablestring" = xdisable; then
7946             if test $wxUSE_ZIPSTREAM = no; then
7947               result=yes
7948             else
7949               result=no
7950             fi
7951           else
7952             result=$wxUSE_ZIPSTREAM
7953           fi
7954
7955           { echo "$as_me:$LINENO: result: $result" >&5
7956 echo "${ECHO_T}$result" >&6; }
7957
7958
7959
7960           enablestring=
7961           defaultval=$wxUSE_ALL_FEATURES
7962           if test -z "$defaultval"; then
7963               if test x"$enablestring" = xdisable; then
7964                   defaultval=yes
7965               else
7966                   defaultval=no
7967               fi
7968           fi
7969
7970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7971 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7972           # Check whether --enable-url was given.
7973 if test "${enable_url+set}" = set; then
7974   enableval=$enable_url;
7975                           if test "$enableval" = yes; then
7976                             wx_cv_use_url='wxUSE_URL=yes'
7977                           else
7978                             wx_cv_use_url='wxUSE_URL=no'
7979                           fi
7980
7981 else
7982
7983                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7984
7985 fi
7986
7987
7988           eval "$wx_cv_use_url"
7989
7990           if test x"$enablestring" = xdisable; then
7991             if test $wxUSE_URL = no; then
7992               result=yes
7993             else
7994               result=no
7995             fi
7996           else
7997             result=$wxUSE_URL
7998           fi
7999
8000           { echo "$as_me:$LINENO: result: $result" >&5
8001 echo "${ECHO_T}$result" >&6; }
8002
8003
8004           enablestring=
8005           defaultval=$wxUSE_ALL_FEATURES
8006           if test -z "$defaultval"; then
8007               if test x"$enablestring" = xdisable; then
8008                   defaultval=yes
8009               else
8010                   defaultval=no
8011               fi
8012           fi
8013
8014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8015 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8016           # Check whether --enable-protocol was given.
8017 if test "${enable_protocol+set}" = set; then
8018   enableval=$enable_protocol;
8019                           if test "$enableval" = yes; then
8020                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8021                           else
8022                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8023                           fi
8024
8025 else
8026
8027                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8028
8029 fi
8030
8031
8032           eval "$wx_cv_use_protocol"
8033
8034           if test x"$enablestring" = xdisable; then
8035             if test $wxUSE_PROTOCOL = no; then
8036               result=yes
8037             else
8038               result=no
8039             fi
8040           else
8041             result=$wxUSE_PROTOCOL
8042           fi
8043
8044           { echo "$as_me:$LINENO: result: $result" >&5
8045 echo "${ECHO_T}$result" >&6; }
8046
8047
8048           enablestring=
8049           defaultval=$wxUSE_ALL_FEATURES
8050           if test -z "$defaultval"; then
8051               if test x"$enablestring" = xdisable; then
8052                   defaultval=yes
8053               else
8054                   defaultval=no
8055               fi
8056           fi
8057
8058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8059 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8060           # Check whether --enable-protocol_http was given.
8061 if test "${enable_protocol_http+set}" = set; then
8062   enableval=$enable_protocol_http;
8063                           if test "$enableval" = yes; then
8064                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8065                           else
8066                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8067                           fi
8068
8069 else
8070
8071                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8072
8073 fi
8074
8075
8076           eval "$wx_cv_use_protocol_http"
8077
8078           if test x"$enablestring" = xdisable; then
8079             if test $wxUSE_PROTOCOL_HTTP = no; then
8080               result=yes
8081             else
8082               result=no
8083             fi
8084           else
8085             result=$wxUSE_PROTOCOL_HTTP
8086           fi
8087
8088           { echo "$as_me:$LINENO: result: $result" >&5
8089 echo "${ECHO_T}$result" >&6; }
8090
8091
8092           enablestring=
8093           defaultval=$wxUSE_ALL_FEATURES
8094           if test -z "$defaultval"; then
8095               if test x"$enablestring" = xdisable; then
8096                   defaultval=yes
8097               else
8098                   defaultval=no
8099               fi
8100           fi
8101
8102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8103 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8104           # Check whether --enable-protocol_ftp was given.
8105 if test "${enable_protocol_ftp+set}" = set; then
8106   enableval=$enable_protocol_ftp;
8107                           if test "$enableval" = yes; then
8108                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8109                           else
8110                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8111                           fi
8112
8113 else
8114
8115                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8116
8117 fi
8118
8119
8120           eval "$wx_cv_use_protocol_ftp"
8121
8122           if test x"$enablestring" = xdisable; then
8123             if test $wxUSE_PROTOCOL_FTP = no; then
8124               result=yes
8125             else
8126               result=no
8127             fi
8128           else
8129             result=$wxUSE_PROTOCOL_FTP
8130           fi
8131
8132           { echo "$as_me:$LINENO: result: $result" >&5
8133 echo "${ECHO_T}$result" >&6; }
8134
8135
8136           enablestring=
8137           defaultval=$wxUSE_ALL_FEATURES
8138           if test -z "$defaultval"; then
8139               if test x"$enablestring" = xdisable; then
8140                   defaultval=yes
8141               else
8142                   defaultval=no
8143               fi
8144           fi
8145
8146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8147 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8148           # Check whether --enable-protocol_file was given.
8149 if test "${enable_protocol_file+set}" = set; then
8150   enableval=$enable_protocol_file;
8151                           if test "$enableval" = yes; then
8152                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8153                           else
8154                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8155                           fi
8156
8157 else
8158
8159                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8160
8161 fi
8162
8163
8164           eval "$wx_cv_use_protocol_file"
8165
8166           if test x"$enablestring" = xdisable; then
8167             if test $wxUSE_PROTOCOL_FILE = no; then
8168               result=yes
8169             else
8170               result=no
8171             fi
8172           else
8173             result=$wxUSE_PROTOCOL_FILE
8174           fi
8175
8176           { echo "$as_me:$LINENO: result: $result" >&5
8177 echo "${ECHO_T}$result" >&6; }
8178
8179
8180
8181           enablestring=
8182           defaultval=$wxUSE_ALL_FEATURES
8183           if test -z "$defaultval"; then
8184               if test x"$enablestring" = xdisable; then
8185                   defaultval=yes
8186               else
8187                   defaultval=no
8188               fi
8189           fi
8190
8191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8192 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8193           # Check whether --enable-threads was given.
8194 if test "${enable_threads+set}" = set; then
8195   enableval=$enable_threads;
8196                           if test "$enableval" = yes; then
8197                             wx_cv_use_threads='wxUSE_THREADS=yes'
8198                           else
8199                             wx_cv_use_threads='wxUSE_THREADS=no'
8200                           fi
8201
8202 else
8203
8204                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8205
8206 fi
8207
8208
8209           eval "$wx_cv_use_threads"
8210
8211           if test x"$enablestring" = xdisable; then
8212             if test $wxUSE_THREADS = no; then
8213               result=yes
8214             else
8215               result=no
8216             fi
8217           else
8218             result=$wxUSE_THREADS
8219           fi
8220
8221           { echo "$as_me:$LINENO: result: $result" >&5
8222 echo "${ECHO_T}$result" >&6; }
8223
8224
8225
8226           enablestring=
8227           defaultval=
8228           if test -z "$defaultval"; then
8229               if test x"$enablestring" = xdisable; then
8230                   defaultval=yes
8231               else
8232                   defaultval=no
8233               fi
8234           fi
8235
8236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8237 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8238           # Check whether --enable-iniconf was given.
8239 if test "${enable_iniconf+set}" = set; then
8240   enableval=$enable_iniconf;
8241                           if test "$enableval" = yes; then
8242                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8243                           else
8244                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8245                           fi
8246
8247 else
8248
8249                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8250
8251 fi
8252
8253
8254           eval "$wx_cv_use_iniconf"
8255
8256           if test x"$enablestring" = xdisable; then
8257             if test $wxUSE_INICONF = no; then
8258               result=yes
8259             else
8260               result=no
8261             fi
8262           else
8263             result=$wxUSE_INICONF
8264           fi
8265
8266           { echo "$as_me:$LINENO: result: $result" >&5
8267 echo "${ECHO_T}$result" >&6; }
8268
8269
8270           enablestring=
8271           defaultval=$wxUSE_ALL_FEATURES
8272           if test -z "$defaultval"; then
8273               if test x"$enablestring" = xdisable; then
8274                   defaultval=yes
8275               else
8276                   defaultval=no
8277               fi
8278           fi
8279
8280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8281 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8282           # Check whether --enable-regkey was given.
8283 if test "${enable_regkey+set}" = set; then
8284   enableval=$enable_regkey;
8285                           if test "$enableval" = yes; then
8286                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8287                           else
8288                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8289                           fi
8290
8291 else
8292
8293                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8294
8295 fi
8296
8297
8298           eval "$wx_cv_use_regkey"
8299
8300           if test x"$enablestring" = xdisable; then
8301             if test $wxUSE_REGKEY = no; then
8302               result=yes
8303             else
8304               result=no
8305             fi
8306           else
8307             result=$wxUSE_REGKEY
8308           fi
8309
8310           { echo "$as_me:$LINENO: result: $result" >&5
8311 echo "${ECHO_T}$result" >&6; }
8312
8313
8314 if test "$wxUSE_GUI" = "yes"; then
8315
8316
8317
8318           enablestring=
8319           defaultval=$wxUSE_ALL_FEATURES
8320           if test -z "$defaultval"; then
8321               if test x"$enablestring" = xdisable; then
8322                   defaultval=yes
8323               else
8324                   defaultval=no
8325               fi
8326           fi
8327
8328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8329 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8330           # Check whether --enable-docview was given.
8331 if test "${enable_docview+set}" = set; then
8332   enableval=$enable_docview;
8333                           if test "$enableval" = yes; then
8334                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8335                           else
8336                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8337                           fi
8338
8339 else
8340
8341                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8342
8343 fi
8344
8345
8346           eval "$wx_cv_use_docview"
8347
8348           if test x"$enablestring" = xdisable; then
8349             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8350               result=yes
8351             else
8352               result=no
8353             fi
8354           else
8355             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8356           fi
8357
8358           { echo "$as_me:$LINENO: result: $result" >&5
8359 echo "${ECHO_T}$result" >&6; }
8360
8361
8362           enablestring=
8363           defaultval=$wxUSE_ALL_FEATURES
8364           if test -z "$defaultval"; then
8365               if test x"$enablestring" = xdisable; then
8366                   defaultval=yes
8367               else
8368                   defaultval=no
8369               fi
8370           fi
8371
8372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8373 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8374           # Check whether --enable-help was given.
8375 if test "${enable_help+set}" = set; then
8376   enableval=$enable_help;
8377                           if test "$enableval" = yes; then
8378                             wx_cv_use_help='wxUSE_HELP=yes'
8379                           else
8380                             wx_cv_use_help='wxUSE_HELP=no'
8381                           fi
8382
8383 else
8384
8385                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8386
8387 fi
8388
8389
8390           eval "$wx_cv_use_help"
8391
8392           if test x"$enablestring" = xdisable; then
8393             if test $wxUSE_HELP = no; then
8394               result=yes
8395             else
8396               result=no
8397             fi
8398           else
8399             result=$wxUSE_HELP
8400           fi
8401
8402           { echo "$as_me:$LINENO: result: $result" >&5
8403 echo "${ECHO_T}$result" >&6; }
8404
8405
8406           enablestring=
8407           defaultval=$wxUSE_ALL_FEATURES
8408           if test -z "$defaultval"; then
8409               if test x"$enablestring" = xdisable; then
8410                   defaultval=yes
8411               else
8412                   defaultval=no
8413               fi
8414           fi
8415
8416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8417 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8418           # Check whether --enable-mshtmlhelp was given.
8419 if test "${enable_mshtmlhelp+set}" = set; then
8420   enableval=$enable_mshtmlhelp;
8421                           if test "$enableval" = yes; then
8422                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8423                           else
8424                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8425                           fi
8426
8427 else
8428
8429                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8430
8431 fi
8432
8433
8434           eval "$wx_cv_use_mshtmlhelp"
8435
8436           if test x"$enablestring" = xdisable; then
8437             if test $wxUSE_MS_HTML_HELP = no; then
8438               result=yes
8439             else
8440               result=no
8441             fi
8442           else
8443             result=$wxUSE_MS_HTML_HELP
8444           fi
8445
8446           { echo "$as_me:$LINENO: result: $result" >&5
8447 echo "${ECHO_T}$result" >&6; }
8448
8449
8450           enablestring=
8451           defaultval=$wxUSE_ALL_FEATURES
8452           if test -z "$defaultval"; then
8453               if test x"$enablestring" = xdisable; then
8454                   defaultval=yes
8455               else
8456                   defaultval=no
8457               fi
8458           fi
8459
8460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8461 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8462           # Check whether --enable-html was given.
8463 if test "${enable_html+set}" = set; then
8464   enableval=$enable_html;
8465                           if test "$enableval" = yes; then
8466                             wx_cv_use_html='wxUSE_HTML=yes'
8467                           else
8468                             wx_cv_use_html='wxUSE_HTML=no'
8469                           fi
8470
8471 else
8472
8473                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8474
8475 fi
8476
8477
8478           eval "$wx_cv_use_html"
8479
8480           if test x"$enablestring" = xdisable; then
8481             if test $wxUSE_HTML = no; then
8482               result=yes
8483             else
8484               result=no
8485             fi
8486           else
8487             result=$wxUSE_HTML
8488           fi
8489
8490           { echo "$as_me:$LINENO: result: $result" >&5
8491 echo "${ECHO_T}$result" >&6; }
8492
8493
8494           enablestring=
8495           defaultval=$wxUSE_ALL_FEATURES
8496           if test -z "$defaultval"; then
8497               if test x"$enablestring" = xdisable; then
8498                   defaultval=yes
8499               else
8500                   defaultval=no
8501               fi
8502           fi
8503
8504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8505 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8506           # Check whether --enable-htmlhelp was given.
8507 if test "${enable_htmlhelp+set}" = set; then
8508   enableval=$enable_htmlhelp;
8509                           if test "$enableval" = yes; then
8510                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8511                           else
8512                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8513                           fi
8514
8515 else
8516
8517                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8518
8519 fi
8520
8521
8522           eval "$wx_cv_use_htmlhelp"
8523
8524           if test x"$enablestring" = xdisable; then
8525             if test $wxUSE_WXHTML_HELP = no; then
8526               result=yes
8527             else
8528               result=no
8529             fi
8530           else
8531             result=$wxUSE_WXHTML_HELP
8532           fi
8533
8534           { echo "$as_me:$LINENO: result: $result" >&5
8535 echo "${ECHO_T}$result" >&6; }
8536
8537
8538           enablestring=
8539           defaultval=$wxUSE_ALL_FEATURES
8540           if test -z "$defaultval"; then
8541               if test x"$enablestring" = xdisable; then
8542                   defaultval=yes
8543               else
8544                   defaultval=no
8545               fi
8546           fi
8547
8548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8549 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8550           # Check whether --enable-xrc was given.
8551 if test "${enable_xrc+set}" = set; then
8552   enableval=$enable_xrc;
8553                           if test "$enableval" = yes; then
8554                             wx_cv_use_xrc='wxUSE_XRC=yes'
8555                           else
8556                             wx_cv_use_xrc='wxUSE_XRC=no'
8557                           fi
8558
8559 else
8560
8561                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8562
8563 fi
8564
8565
8566           eval "$wx_cv_use_xrc"
8567
8568           if test x"$enablestring" = xdisable; then
8569             if test $wxUSE_XRC = no; then
8570               result=yes
8571             else
8572               result=no
8573             fi
8574           else
8575             result=$wxUSE_XRC
8576           fi
8577
8578           { echo "$as_me:$LINENO: result: $result" >&5
8579 echo "${ECHO_T}$result" >&6; }
8580
8581
8582           enablestring=
8583           defaultval=$wxUSE_ALL_FEATURES
8584           if test -z "$defaultval"; then
8585               if test x"$enablestring" = xdisable; then
8586                   defaultval=yes
8587               else
8588                   defaultval=no
8589               fi
8590           fi
8591
8592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8593 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8594           # Check whether --enable-aui was given.
8595 if test "${enable_aui+set}" = set; then
8596   enableval=$enable_aui;
8597                           if test "$enableval" = yes; then
8598                             wx_cv_use_aui='wxUSE_AUI=yes'
8599                           else
8600                             wx_cv_use_aui='wxUSE_AUI=no'
8601                           fi
8602
8603 else
8604
8605                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8606
8607 fi
8608
8609
8610           eval "$wx_cv_use_aui"
8611
8612           if test x"$enablestring" = xdisable; then
8613             if test $wxUSE_AUI = no; then
8614               result=yes
8615             else
8616               result=no
8617             fi
8618           else
8619             result=$wxUSE_AUI
8620           fi
8621
8622           { echo "$as_me:$LINENO: result: $result" >&5
8623 echo "${ECHO_T}$result" >&6; }
8624
8625
8626           enablestring=
8627           defaultval=$wxUSE_ALL_FEATURES
8628           if test -z "$defaultval"; then
8629               if test x"$enablestring" = xdisable; then
8630                   defaultval=yes
8631               else
8632                   defaultval=no
8633               fi
8634           fi
8635
8636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8637 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8638           # Check whether --enable-propgrid was given.
8639 if test "${enable_propgrid+set}" = set; then
8640   enableval=$enable_propgrid;
8641                           if test "$enableval" = yes; then
8642                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8643                           else
8644                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8645                           fi
8646
8647 else
8648
8649                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8650
8651 fi
8652
8653
8654           eval "$wx_cv_use_propgrid"
8655
8656           if test x"$enablestring" = xdisable; then
8657             if test $wxUSE_PROPGRID = no; then
8658               result=yes
8659             else
8660               result=no
8661             fi
8662           else
8663             result=$wxUSE_PROPGRID
8664           fi
8665
8666           { echo "$as_me:$LINENO: result: $result" >&5
8667 echo "${ECHO_T}$result" >&6; }
8668
8669
8670           enablestring=
8671           defaultval=$wxUSE_ALL_FEATURES
8672           if test -z "$defaultval"; then
8673               if test x"$enablestring" = xdisable; then
8674                   defaultval=yes
8675               else
8676                   defaultval=no
8677               fi
8678           fi
8679
8680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8681 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8682           # Check whether --enable-ribbon was given.
8683 if test "${enable_ribbon+set}" = set; then
8684   enableval=$enable_ribbon;
8685                           if test "$enableval" = yes; then
8686                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8687                           else
8688                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8689                           fi
8690
8691 else
8692
8693                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8694
8695 fi
8696
8697
8698           eval "$wx_cv_use_ribbon"
8699
8700           if test x"$enablestring" = xdisable; then
8701             if test $wxUSE_RIBBON = no; then
8702               result=yes
8703             else
8704               result=no
8705             fi
8706           else
8707             result=$wxUSE_RIBBON
8708           fi
8709
8710           { echo "$as_me:$LINENO: result: $result" >&5
8711 echo "${ECHO_T}$result" >&6; }
8712
8713
8714           enablestring=
8715           defaultval=$wxUSE_ALL_FEATURES
8716           if test -z "$defaultval"; then
8717               if test x"$enablestring" = xdisable; then
8718                   defaultval=yes
8719               else
8720                   defaultval=no
8721               fi
8722           fi
8723
8724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8725 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8726           # Check whether --enable-stc was given.
8727 if test "${enable_stc+set}" = set; then
8728   enableval=$enable_stc;
8729                           if test "$enableval" = yes; then
8730                             wx_cv_use_stc='wxUSE_STC=yes'
8731                           else
8732                             wx_cv_use_stc='wxUSE_STC=no'
8733                           fi
8734
8735 else
8736
8737                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8738
8739 fi
8740
8741
8742           eval "$wx_cv_use_stc"
8743
8744           if test x"$enablestring" = xdisable; then
8745             if test $wxUSE_STC = no; then
8746               result=yes
8747             else
8748               result=no
8749             fi
8750           else
8751             result=$wxUSE_STC
8752           fi
8753
8754           { echo "$as_me:$LINENO: result: $result" >&5
8755 echo "${ECHO_T}$result" >&6; }
8756
8757
8758           enablestring=
8759           defaultval=$wxUSE_ALL_FEATURES
8760           if test -z "$defaultval"; then
8761               if test x"$enablestring" = xdisable; then
8762                   defaultval=yes
8763               else
8764                   defaultval=no
8765               fi
8766           fi
8767
8768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8769 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8770           # Check whether --enable-constraints was given.
8771 if test "${enable_constraints+set}" = set; then
8772   enableval=$enable_constraints;
8773                           if test "$enableval" = yes; then
8774                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8775                           else
8776                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8777                           fi
8778
8779 else
8780
8781                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8782
8783 fi
8784
8785
8786           eval "$wx_cv_use_constraints"
8787
8788           if test x"$enablestring" = xdisable; then
8789             if test $wxUSE_CONSTRAINTS = no; then
8790               result=yes
8791             else
8792               result=no
8793             fi
8794           else
8795             result=$wxUSE_CONSTRAINTS
8796           fi
8797
8798           { echo "$as_me:$LINENO: result: $result" >&5
8799 echo "${ECHO_T}$result" >&6; }
8800
8801
8802           enablestring=
8803           defaultval=$wxUSE_ALL_FEATURES
8804           if test -z "$defaultval"; then
8805               if test x"$enablestring" = xdisable; then
8806                   defaultval=yes
8807               else
8808                   defaultval=no
8809               fi
8810           fi
8811
8812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8814           # Check whether --enable-loggui was given.
8815 if test "${enable_loggui+set}" = set; then
8816   enableval=$enable_loggui;
8817                           if test "$enableval" = yes; then
8818                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8819                           else
8820                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8821                           fi
8822
8823 else
8824
8825                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8826
8827 fi
8828
8829
8830           eval "$wx_cv_use_loggui"
8831
8832           if test x"$enablestring" = xdisable; then
8833             if test $wxUSE_LOGGUI = no; then
8834               result=yes
8835             else
8836               result=no
8837             fi
8838           else
8839             result=$wxUSE_LOGGUI
8840           fi
8841
8842           { echo "$as_me:$LINENO: result: $result" >&5
8843 echo "${ECHO_T}$result" >&6; }
8844
8845
8846           enablestring=
8847           defaultval=$wxUSE_ALL_FEATURES
8848           if test -z "$defaultval"; then
8849               if test x"$enablestring" = xdisable; then
8850                   defaultval=yes
8851               else
8852                   defaultval=no
8853               fi
8854           fi
8855
8856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8857 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8858           # Check whether --enable-logwin was given.
8859 if test "${enable_logwin+set}" = set; then
8860   enableval=$enable_logwin;
8861                           if test "$enableval" = yes; then
8862                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8863                           else
8864                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8865                           fi
8866
8867 else
8868
8869                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8870
8871 fi
8872
8873
8874           eval "$wx_cv_use_logwin"
8875
8876           if test x"$enablestring" = xdisable; then
8877             if test $wxUSE_LOGWINDOW = no; then
8878               result=yes
8879             else
8880               result=no
8881             fi
8882           else
8883             result=$wxUSE_LOGWINDOW
8884           fi
8885
8886           { echo "$as_me:$LINENO: result: $result" >&5
8887 echo "${ECHO_T}$result" >&6; }
8888
8889
8890           enablestring=
8891           defaultval=$wxUSE_ALL_FEATURES
8892           if test -z "$defaultval"; then
8893               if test x"$enablestring" = xdisable; then
8894                   defaultval=yes
8895               else
8896                   defaultval=no
8897               fi
8898           fi
8899
8900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8901 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8902           # Check whether --enable-logdialog was given.
8903 if test "${enable_logdialog+set}" = set; then
8904   enableval=$enable_logdialog;
8905                           if test "$enableval" = yes; then
8906                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8907                           else
8908                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8909                           fi
8910
8911 else
8912
8913                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8914
8915 fi
8916
8917
8918           eval "$wx_cv_use_logdialog"
8919
8920           if test x"$enablestring" = xdisable; then
8921             if test $wxUSE_LOGDIALOG = no; then
8922               result=yes
8923             else
8924               result=no
8925             fi
8926           else
8927             result=$wxUSE_LOGDIALOG
8928           fi
8929
8930           { echo "$as_me:$LINENO: result: $result" >&5
8931 echo "${ECHO_T}$result" >&6; }
8932
8933
8934           enablestring=
8935           defaultval=$wxUSE_ALL_FEATURES
8936           if test -z "$defaultval"; then
8937               if test x"$enablestring" = xdisable; then
8938                   defaultval=yes
8939               else
8940                   defaultval=no
8941               fi
8942           fi
8943
8944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8945 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8946           # Check whether --enable-mdi was given.
8947 if test "${enable_mdi+set}" = set; then
8948   enableval=$enable_mdi;
8949                           if test "$enableval" = yes; then
8950                             wx_cv_use_mdi='wxUSE_MDI=yes'
8951                           else
8952                             wx_cv_use_mdi='wxUSE_MDI=no'
8953                           fi
8954
8955 else
8956
8957                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8958
8959 fi
8960
8961
8962           eval "$wx_cv_use_mdi"
8963
8964           if test x"$enablestring" = xdisable; then
8965             if test $wxUSE_MDI = no; then
8966               result=yes
8967             else
8968               result=no
8969             fi
8970           else
8971             result=$wxUSE_MDI
8972           fi
8973
8974           { echo "$as_me:$LINENO: result: $result" >&5
8975 echo "${ECHO_T}$result" >&6; }
8976
8977
8978           enablestring=
8979           defaultval=$wxUSE_ALL_FEATURES
8980           if test -z "$defaultval"; then
8981               if test x"$enablestring" = xdisable; then
8982                   defaultval=yes
8983               else
8984                   defaultval=no
8985               fi
8986           fi
8987
8988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8989 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8990           # Check whether --enable-mdidoc was given.
8991 if test "${enable_mdidoc+set}" = set; then
8992   enableval=$enable_mdidoc;
8993                           if test "$enableval" = yes; then
8994                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8995                           else
8996                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8997                           fi
8998
8999 else
9000
9001                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9002
9003 fi
9004
9005
9006           eval "$wx_cv_use_mdidoc"
9007
9008           if test x"$enablestring" = xdisable; then
9009             if test $wxUSE_MDI_ARCHITECTURE = no; then
9010               result=yes
9011             else
9012               result=no
9013             fi
9014           else
9015             result=$wxUSE_MDI_ARCHITECTURE
9016           fi
9017
9018           { echo "$as_me:$LINENO: result: $result" >&5
9019 echo "${ECHO_T}$result" >&6; }
9020
9021
9022           enablestring=
9023           defaultval=$wxUSE_ALL_FEATURES
9024           if test -z "$defaultval"; then
9025               if test x"$enablestring" = xdisable; then
9026                   defaultval=yes
9027               else
9028                   defaultval=no
9029               fi
9030           fi
9031
9032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9033 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9034           # Check whether --enable-mediactrl was given.
9035 if test "${enable_mediactrl+set}" = set; then
9036   enableval=$enable_mediactrl;
9037                           if test "$enableval" = yes; then
9038                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9039                           else
9040                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9041                           fi
9042
9043 else
9044
9045                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9046
9047 fi
9048
9049
9050           eval "$wx_cv_use_mediactrl"
9051
9052           if test x"$enablestring" = xdisable; then
9053             if test $wxUSE_MEDIACTRL = no; then
9054               result=yes
9055             else
9056               result=no
9057             fi
9058           else
9059             result=$wxUSE_MEDIACTRL
9060           fi
9061
9062           { echo "$as_me:$LINENO: result: $result" >&5
9063 echo "${ECHO_T}$result" >&6; }
9064
9065
9066           enablestring=
9067           defaultval=$wxUSE_ALL_FEATURES
9068           if test -z "$defaultval"; then
9069               if test x"$enablestring" = xdisable; then
9070                   defaultval=yes
9071               else
9072                   defaultval=no
9073               fi
9074           fi
9075
9076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9077 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9078           # Check whether --enable-gstreamer8 was given.
9079 if test "${enable_gstreamer8+set}" = set; then
9080   enableval=$enable_gstreamer8;
9081                           if test "$enableval" = yes; then
9082                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9083                           else
9084                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9085                           fi
9086
9087 else
9088
9089                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9090
9091 fi
9092
9093
9094           eval "$wx_cv_use_gstreamer8"
9095
9096           if test x"$enablestring" = xdisable; then
9097             if test $wxUSE_GSTREAMER8 = no; then
9098               result=yes
9099             else
9100               result=no
9101             fi
9102           else
9103             result=$wxUSE_GSTREAMER8
9104           fi
9105
9106           { echo "$as_me:$LINENO: result: $result" >&5
9107 echo "${ECHO_T}$result" >&6; }
9108
9109
9110           enablestring=
9111           defaultval=$wxUSE_ALL_FEATURES
9112           if test -z "$defaultval"; then
9113               if test x"$enablestring" = xdisable; then
9114                   defaultval=yes
9115               else
9116                   defaultval=no
9117               fi
9118           fi
9119
9120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9121 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9122           # Check whether --enable-webkit was given.
9123 if test "${enable_webkit+set}" = set; then
9124   enableval=$enable_webkit;
9125                           if test "$enableval" = yes; then
9126                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9127                           else
9128                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9129                           fi
9130
9131 else
9132
9133                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9134
9135 fi
9136
9137
9138           eval "$wx_cv_use_webkit"
9139
9140           if test x"$enablestring" = xdisable; then
9141             if test $wxUSE_WEBKIT = no; then
9142               result=yes
9143             else
9144               result=no
9145             fi
9146           else
9147             result=$wxUSE_WEBKIT
9148           fi
9149
9150           { echo "$as_me:$LINENO: result: $result" >&5
9151 echo "${ECHO_T}$result" >&6; }
9152
9153
9154           enablestring=
9155           defaultval=$wxUSE_ALL_FEATURES
9156           if test -z "$defaultval"; then
9157               if test x"$enablestring" = xdisable; then
9158                   defaultval=yes
9159               else
9160                   defaultval=no
9161               fi
9162           fi
9163
9164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9165 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9166           # Check whether --enable-richtext was given.
9167 if test "${enable_richtext+set}" = set; then
9168   enableval=$enable_richtext;
9169                           if test "$enableval" = yes; then
9170                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9171                           else
9172                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9173                           fi
9174
9175 else
9176
9177                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9178
9179 fi
9180
9181
9182           eval "$wx_cv_use_richtext"
9183
9184           if test x"$enablestring" = xdisable; then
9185             if test $wxUSE_RICHTEXT = no; then
9186               result=yes
9187             else
9188               result=no
9189             fi
9190           else
9191             result=$wxUSE_RICHTEXT
9192           fi
9193
9194           { echo "$as_me:$LINENO: result: $result" >&5
9195 echo "${ECHO_T}$result" >&6; }
9196
9197
9198           enablestring=
9199           defaultval=$wxUSE_ALL_FEATURES
9200           if test -z "$defaultval"; then
9201               if test x"$enablestring" = xdisable; then
9202                   defaultval=yes
9203               else
9204                   defaultval=no
9205               fi
9206           fi
9207
9208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9209 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9210           # Check whether --enable-graphics_ctx was given.
9211 if test "${enable_graphics_ctx+set}" = set; then
9212   enableval=$enable_graphics_ctx;
9213                           if test "$enableval" = yes; then
9214                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9215                           else
9216                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9217                           fi
9218
9219 else
9220
9221                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9222
9223 fi
9224
9225
9226           eval "$wx_cv_use_graphics_ctx"
9227
9228           if test x"$enablestring" = xdisable; then
9229             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9230               result=yes
9231             else
9232               result=no
9233             fi
9234           else
9235             result=$wxUSE_GRAPHICS_CONTEXT
9236           fi
9237
9238           { echo "$as_me:$LINENO: result: $result" >&5
9239 echo "${ECHO_T}$result" >&6; }
9240
9241
9242           enablestring=
9243           defaultval=$wxUSE_ALL_FEATURES
9244           if test -z "$defaultval"; then
9245               if test x"$enablestring" = xdisable; then
9246                   defaultval=yes
9247               else
9248                   defaultval=no
9249               fi
9250           fi
9251
9252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9253 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9254           # Check whether --enable-postscript was given.
9255 if test "${enable_postscript+set}" = set; then
9256   enableval=$enable_postscript;
9257                           if test "$enableval" = yes; then
9258                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9259                           else
9260                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9261                           fi
9262
9263 else
9264
9265                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9266
9267 fi
9268
9269
9270           eval "$wx_cv_use_postscript"
9271
9272           if test x"$enablestring" = xdisable; then
9273             if test $wxUSE_POSTSCRIPT = no; then
9274               result=yes
9275             else
9276               result=no
9277             fi
9278           else
9279             result=$wxUSE_POSTSCRIPT
9280           fi
9281
9282           { echo "$as_me:$LINENO: result: $result" >&5
9283 echo "${ECHO_T}$result" >&6; }
9284
9285
9286           enablestring=
9287           defaultval=$wxUSE_ALL_FEATURES
9288           if test -z "$defaultval"; then
9289               if test x"$enablestring" = xdisable; then
9290                   defaultval=yes
9291               else
9292                   defaultval=no
9293               fi
9294           fi
9295
9296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9297 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9298           # Check whether --enable-printarch was given.
9299 if test "${enable_printarch+set}" = set; then
9300   enableval=$enable_printarch;
9301                           if test "$enableval" = yes; then
9302                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9303                           else
9304                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9305                           fi
9306
9307 else
9308
9309                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9310
9311 fi
9312
9313
9314           eval "$wx_cv_use_printarch"
9315
9316           if test x"$enablestring" = xdisable; then
9317             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9318               result=yes
9319             else
9320               result=no
9321             fi
9322           else
9323             result=$wxUSE_PRINTING_ARCHITECTURE
9324           fi
9325
9326           { echo "$as_me:$LINENO: result: $result" >&5
9327 echo "${ECHO_T}$result" >&6; }
9328
9329
9330           enablestring=
9331           defaultval=$wxUSE_ALL_FEATURES
9332           if test -z "$defaultval"; then
9333               if test x"$enablestring" = xdisable; then
9334                   defaultval=yes
9335               else
9336                   defaultval=no
9337               fi
9338           fi
9339
9340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9341 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9342           # Check whether --enable-svg was given.
9343 if test "${enable_svg+set}" = set; then
9344   enableval=$enable_svg;
9345                           if test "$enableval" = yes; then
9346                             wx_cv_use_svg='wxUSE_SVG=yes'
9347                           else
9348                             wx_cv_use_svg='wxUSE_SVG=no'
9349                           fi
9350
9351 else
9352
9353                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9354
9355 fi
9356
9357
9358           eval "$wx_cv_use_svg"
9359
9360           if test x"$enablestring" = xdisable; then
9361             if test $wxUSE_SVG = no; then
9362               result=yes
9363             else
9364               result=no
9365             fi
9366           else
9367             result=$wxUSE_SVG
9368           fi
9369
9370           { echo "$as_me:$LINENO: result: $result" >&5
9371 echo "${ECHO_T}$result" >&6; }
9372
9373
9374
9375
9376           enablestring=
9377           defaultval=$wxUSE_ALL_FEATURES
9378           if test -z "$defaultval"; then
9379               if test x"$enablestring" = xdisable; then
9380                   defaultval=yes
9381               else
9382                   defaultval=no
9383               fi
9384           fi
9385
9386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9388           # Check whether --enable-clipboard was given.
9389 if test "${enable_clipboard+set}" = set; then
9390   enableval=$enable_clipboard;
9391                           if test "$enableval" = yes; then
9392                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9393                           else
9394                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9395                           fi
9396
9397 else
9398
9399                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9400
9401 fi
9402
9403
9404           eval "$wx_cv_use_clipboard"
9405
9406           if test x"$enablestring" = xdisable; then
9407             if test $wxUSE_CLIPBOARD = no; then
9408               result=yes
9409             else
9410               result=no
9411             fi
9412           else
9413             result=$wxUSE_CLIPBOARD
9414           fi
9415
9416           { echo "$as_me:$LINENO: result: $result" >&5
9417 echo "${ECHO_T}$result" >&6; }
9418
9419
9420           enablestring=
9421           defaultval=$wxUSE_ALL_FEATURES
9422           if test -z "$defaultval"; then
9423               if test x"$enablestring" = xdisable; then
9424                   defaultval=yes
9425               else
9426                   defaultval=no
9427               fi
9428           fi
9429
9430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9431 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9432           # Check whether --enable-dnd was given.
9433 if test "${enable_dnd+set}" = set; then
9434   enableval=$enable_dnd;
9435                           if test "$enableval" = yes; then
9436                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9437                           else
9438                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9439                           fi
9440
9441 else
9442
9443                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9444
9445 fi
9446
9447
9448           eval "$wx_cv_use_dnd"
9449
9450           if test x"$enablestring" = xdisable; then
9451             if test $wxUSE_DRAG_AND_DROP = no; then
9452               result=yes
9453             else
9454               result=no
9455             fi
9456           else
9457             result=$wxUSE_DRAG_AND_DROP
9458           fi
9459
9460           { echo "$as_me:$LINENO: result: $result" >&5
9461 echo "${ECHO_T}$result" >&6; }
9462
9463
9464           enablestring=
9465           defaultval=$wxUSE_ALL_FEATURES
9466           if test -z "$defaultval"; then
9467               if test x"$enablestring" = xdisable; then
9468                   defaultval=yes
9469               else
9470                   defaultval=no
9471               fi
9472           fi
9473
9474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9475 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9476           # Check whether --enable-metafile was given.
9477 if test "${enable_metafile+set}" = set; then
9478   enableval=$enable_metafile;
9479                           if test "$enableval" = yes; then
9480                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9481                           else
9482                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9483                           fi
9484
9485 else
9486
9487                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9488
9489 fi
9490
9491
9492           eval "$wx_cv_use_metafile"
9493
9494           if test x"$enablestring" = xdisable; then
9495             if test $wxUSE_METAFILE = no; then
9496               result=yes
9497             else
9498               result=no
9499             fi
9500           else
9501             result=$wxUSE_METAFILE
9502           fi
9503
9504           { echo "$as_me:$LINENO: result: $result" >&5
9505 echo "${ECHO_T}$result" >&6; }
9506
9507
9508
9509 DEFAULT_wxUSE_CONTROLS=none
9510
9511           enablestring=disable
9512           defaultval=
9513           if test -z "$defaultval"; then
9514               if test x"$enablestring" = xdisable; then
9515                   defaultval=yes
9516               else
9517                   defaultval=no
9518               fi
9519           fi
9520
9521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9522 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9523           # Check whether --enable-controls was given.
9524 if test "${enable_controls+set}" = set; then
9525   enableval=$enable_controls;
9526                           if test "$enableval" = yes; then
9527                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9528                           else
9529                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9530                           fi
9531
9532 else
9533
9534                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9535
9536 fi
9537
9538
9539           eval "$wx_cv_use_controls"
9540
9541           if test x"$enablestring" = xdisable; then
9542             if test $wxUSE_CONTROLS = no; then
9543               result=yes
9544             else
9545               result=no
9546             fi
9547           else
9548             result=$wxUSE_CONTROLS
9549           fi
9550
9551           { echo "$as_me:$LINENO: result: $result" >&5
9552 echo "${ECHO_T}$result" >&6; }
9553
9554
9555 if test "$wxUSE_CONTROLS" = "no"; then
9556     DEFAULT_wxUSE_ACCEL=no
9557     DEFAULT_wxUSE_ANIMATIONCTRL=no
9558     DEFAULT_wxUSE_BMPBUTTON=no
9559     DEFAULT_wxUSE_BUTTON=no
9560     DEFAULT_wxUSE_CALCTRL=no
9561     DEFAULT_wxUSE_CARET=no
9562     DEFAULT_wxUSE_CHECKBOX=no
9563     DEFAULT_wxUSE_CHECKLISTBOX=no
9564     DEFAULT_wxUSE_CHOICE=no
9565     DEFAULT_wxUSE_CHOICEBOOK=no
9566     DEFAULT_wxUSE_COLLPANE=no
9567     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9568     DEFAULT_wxUSE_COMBOBOX=no
9569     DEFAULT_wxUSE_COMBOBOX=no
9570     DEFAULT_wxUSE_DATAVIEWCTRL=no
9571     DEFAULT_wxUSE_DATEPICKCTRL=no
9572     DEFAULT_wxUSE_DETECT_SM=no
9573     DEFAULT_wxUSE_DIRPICKERCTRL=no
9574     DEFAULT_wxUSE_DISPLAY=no
9575     DEFAULT_wxUSE_FILECTRL=no
9576     DEFAULT_wxUSE_FILEPICKERCTRL=no
9577     DEFAULT_wxUSE_FONTPICKERCTRL=no
9578     DEFAULT_wxUSE_GAUGE=no
9579     DEFAULT_wxUSE_GRID=no
9580     DEFAULT_wxUSE_HEADERCTRL=no
9581     DEFAULT_wxUSE_HYPERLINKCTRL=no
9582     DEFAULT_wxUSE_IMAGLIST=no
9583     DEFAULT_wxUSE_LISTBOOK=no
9584     DEFAULT_wxUSE_LISTBOX=no
9585     DEFAULT_wxUSE_LISTCTRL=no
9586     DEFAULT_wxUSE_NOTEBOOK=no
9587     DEFAULT_wxUSE_POPUPWIN=no
9588     DEFAULT_wxUSE_RADIOBOX=no
9589     DEFAULT_wxUSE_RADIOBTN=no
9590     DEFAULT_wxUSE_REARRANGECTRL=no
9591     DEFAULT_wxUSE_SASH=no
9592     DEFAULT_wxUSE_SCROLLBAR=no
9593     DEFAULT_wxUSE_SEARCHCTRL=no
9594     DEFAULT_wxUSE_SLIDER=no
9595     DEFAULT_wxUSE_SPINBTN=no
9596     DEFAULT_wxUSE_SPINCTRL=no
9597     DEFAULT_wxUSE_SPLITTER=no
9598     DEFAULT_wxUSE_STATBMP=no
9599     DEFAULT_wxUSE_STATBOX=no
9600     DEFAULT_wxUSE_STATLINE=no
9601     DEFAULT_wxUSE_STATUSBAR=no
9602     DEFAULT_wxUSE_TIPWINDOW=no
9603     DEFAULT_wxUSE_TOGGLEBTN=no
9604     DEFAULT_wxUSE_TOOLBAR=no
9605     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9606     DEFAULT_wxUSE_TOOLBOOK=no
9607     DEFAULT_wxUSE_TOOLTIPS=no
9608     DEFAULT_wxUSE_TREEBOOK=no
9609     DEFAULT_wxUSE_TREECTRL=no
9610 fi
9611
9612
9613           enablestring=
9614           defaultval=$wxUSE_ALL_FEATURES
9615           if test -z "$defaultval"; then
9616               if test x"$enablestring" = xdisable; then
9617                   defaultval=yes
9618               else
9619                   defaultval=no
9620               fi
9621           fi
9622
9623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9624 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9625           # Check whether --enable-accel was given.
9626 if test "${enable_accel+set}" = set; then
9627   enableval=$enable_accel;
9628                           if test "$enableval" = yes; then
9629                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9630                           else
9631                             wx_cv_use_accel='wxUSE_ACCEL=no'
9632                           fi
9633
9634 else
9635
9636                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9637
9638 fi
9639
9640
9641           eval "$wx_cv_use_accel"
9642
9643           if test x"$enablestring" = xdisable; then
9644             if test $wxUSE_ACCEL = no; then
9645               result=yes
9646             else
9647               result=no
9648             fi
9649           else
9650             result=$wxUSE_ACCEL
9651           fi
9652
9653           { echo "$as_me:$LINENO: result: $result" >&5
9654 echo "${ECHO_T}$result" >&6; }
9655
9656
9657           enablestring=
9658           defaultval=$wxUSE_ALL_FEATURES
9659           if test -z "$defaultval"; then
9660               if test x"$enablestring" = xdisable; then
9661                   defaultval=yes
9662               else
9663                   defaultval=no
9664               fi
9665           fi
9666
9667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9668 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9669           # Check whether --enable-animatectrl was given.
9670 if test "${enable_animatectrl+set}" = set; then
9671   enableval=$enable_animatectrl;
9672                           if test "$enableval" = yes; then
9673                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9674                           else
9675                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9676                           fi
9677
9678 else
9679
9680                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9681
9682 fi
9683
9684
9685           eval "$wx_cv_use_animatectrl"
9686
9687           if test x"$enablestring" = xdisable; then
9688             if test $wxUSE_ANIMATIONCTRL = no; then
9689               result=yes
9690             else
9691               result=no
9692             fi
9693           else
9694             result=$wxUSE_ANIMATIONCTRL
9695           fi
9696
9697           { echo "$as_me:$LINENO: result: $result" >&5
9698 echo "${ECHO_T}$result" >&6; }
9699
9700
9701           enablestring=
9702           defaultval=$wxUSE_ALL_FEATURES
9703           if test -z "$defaultval"; then
9704               if test x"$enablestring" = xdisable; then
9705                   defaultval=yes
9706               else
9707                   defaultval=no
9708               fi
9709           fi
9710
9711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9712 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9713           # Check whether --enable-bmpbutton was given.
9714 if test "${enable_bmpbutton+set}" = set; then
9715   enableval=$enable_bmpbutton;
9716                           if test "$enableval" = yes; then
9717                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9718                           else
9719                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9720                           fi
9721
9722 else
9723
9724                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9725
9726 fi
9727
9728
9729           eval "$wx_cv_use_bmpbutton"
9730
9731           if test x"$enablestring" = xdisable; then
9732             if test $wxUSE_BMPBUTTON = no; then
9733               result=yes
9734             else
9735               result=no
9736             fi
9737           else
9738             result=$wxUSE_BMPBUTTON
9739           fi
9740
9741           { echo "$as_me:$LINENO: result: $result" >&5
9742 echo "${ECHO_T}$result" >&6; }
9743
9744
9745           enablestring=
9746           defaultval=$wxUSE_ALL_FEATURES
9747           if test -z "$defaultval"; then
9748               if test x"$enablestring" = xdisable; then
9749                   defaultval=yes
9750               else
9751                   defaultval=no
9752               fi
9753           fi
9754
9755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9756 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9757           # Check whether --enable-bmpcombobox was given.
9758 if test "${enable_bmpcombobox+set}" = set; then
9759   enableval=$enable_bmpcombobox;
9760                           if test "$enableval" = yes; then
9761                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9762                           else
9763                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9764                           fi
9765
9766 else
9767
9768                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9769
9770 fi
9771
9772
9773           eval "$wx_cv_use_bmpcombobox"
9774
9775           if test x"$enablestring" = xdisable; then
9776             if test $wxUSE_BITMAPCOMBOBOX = no; then
9777               result=yes
9778             else
9779               result=no
9780             fi
9781           else
9782             result=$wxUSE_BITMAPCOMBOBOX
9783           fi
9784
9785           { echo "$as_me:$LINENO: result: $result" >&5
9786 echo "${ECHO_T}$result" >&6; }
9787
9788
9789           enablestring=
9790           defaultval=$wxUSE_ALL_FEATURES
9791           if test -z "$defaultval"; then
9792               if test x"$enablestring" = xdisable; then
9793                   defaultval=yes
9794               else
9795                   defaultval=no
9796               fi
9797           fi
9798
9799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9800 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9801           # Check whether --enable-button was given.
9802 if test "${enable_button+set}" = set; then
9803   enableval=$enable_button;
9804                           if test "$enableval" = yes; then
9805                             wx_cv_use_button='wxUSE_BUTTON=yes'
9806                           else
9807                             wx_cv_use_button='wxUSE_BUTTON=no'
9808                           fi
9809
9810 else
9811
9812                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9813
9814 fi
9815
9816
9817           eval "$wx_cv_use_button"
9818
9819           if test x"$enablestring" = xdisable; then
9820             if test $wxUSE_BUTTON = no; then
9821               result=yes
9822             else
9823               result=no
9824             fi
9825           else
9826             result=$wxUSE_BUTTON
9827           fi
9828
9829           { echo "$as_me:$LINENO: result: $result" >&5
9830 echo "${ECHO_T}$result" >&6; }
9831
9832
9833           enablestring=
9834           defaultval=$wxUSE_ALL_FEATURES
9835           if test -z "$defaultval"; then
9836               if test x"$enablestring" = xdisable; then
9837                   defaultval=yes
9838               else
9839                   defaultval=no
9840               fi
9841           fi
9842
9843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9844 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9845           # Check whether --enable-calendar was given.
9846 if test "${enable_calendar+set}" = set; then
9847   enableval=$enable_calendar;
9848                           if test "$enableval" = yes; then
9849                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9850                           else
9851                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9852                           fi
9853
9854 else
9855
9856                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9857
9858 fi
9859
9860
9861           eval "$wx_cv_use_calendar"
9862
9863           if test x"$enablestring" = xdisable; then
9864             if test $wxUSE_CALCTRL = no; then
9865               result=yes
9866             else
9867               result=no
9868             fi
9869           else
9870             result=$wxUSE_CALCTRL
9871           fi
9872
9873           { echo "$as_me:$LINENO: result: $result" >&5
9874 echo "${ECHO_T}$result" >&6; }
9875
9876
9877           enablestring=
9878           defaultval=$wxUSE_ALL_FEATURES
9879           if test -z "$defaultval"; then
9880               if test x"$enablestring" = xdisable; then
9881                   defaultval=yes
9882               else
9883                   defaultval=no
9884               fi
9885           fi
9886
9887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9888 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9889           # Check whether --enable-caret was given.
9890 if test "${enable_caret+set}" = set; then
9891   enableval=$enable_caret;
9892                           if test "$enableval" = yes; then
9893                             wx_cv_use_caret='wxUSE_CARET=yes'
9894                           else
9895                             wx_cv_use_caret='wxUSE_CARET=no'
9896                           fi
9897
9898 else
9899
9900                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9901
9902 fi
9903
9904
9905           eval "$wx_cv_use_caret"
9906
9907           if test x"$enablestring" = xdisable; then
9908             if test $wxUSE_CARET = no; then
9909               result=yes
9910             else
9911               result=no
9912             fi
9913           else
9914             result=$wxUSE_CARET
9915           fi
9916
9917           { echo "$as_me:$LINENO: result: $result" >&5
9918 echo "${ECHO_T}$result" >&6; }
9919
9920
9921           enablestring=
9922           defaultval=$wxUSE_ALL_FEATURES
9923           if test -z "$defaultval"; then
9924               if test x"$enablestring" = xdisable; then
9925                   defaultval=yes
9926               else
9927                   defaultval=no
9928               fi
9929           fi
9930
9931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9932 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9933           # Check whether --enable-checkbox was given.
9934 if test "${enable_checkbox+set}" = set; then
9935   enableval=$enable_checkbox;
9936                           if test "$enableval" = yes; then
9937                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9938                           else
9939                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9940                           fi
9941
9942 else
9943
9944                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9945
9946 fi
9947
9948
9949           eval "$wx_cv_use_checkbox"
9950
9951           if test x"$enablestring" = xdisable; then
9952             if test $wxUSE_CHECKBOX = no; then
9953               result=yes
9954             else
9955               result=no
9956             fi
9957           else
9958             result=$wxUSE_CHECKBOX
9959           fi
9960
9961           { echo "$as_me:$LINENO: result: $result" >&5
9962 echo "${ECHO_T}$result" >&6; }
9963
9964
9965           enablestring=
9966           defaultval=$wxUSE_ALL_FEATURES
9967           if test -z "$defaultval"; then
9968               if test x"$enablestring" = xdisable; then
9969                   defaultval=yes
9970               else
9971                   defaultval=no
9972               fi
9973           fi
9974
9975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9976 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9977           # Check whether --enable-checklst was given.
9978 if test "${enable_checklst+set}" = set; then
9979   enableval=$enable_checklst;
9980                           if test "$enableval" = yes; then
9981                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9982                           else
9983                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9984                           fi
9985
9986 else
9987
9988                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9989
9990 fi
9991
9992
9993           eval "$wx_cv_use_checklst"
9994
9995           if test x"$enablestring" = xdisable; then
9996             if test $wxUSE_CHECKLST = no; then
9997               result=yes
9998             else
9999               result=no
10000             fi
10001           else
10002             result=$wxUSE_CHECKLST
10003           fi
10004
10005           { echo "$as_me:$LINENO: result: $result" >&5
10006 echo "${ECHO_T}$result" >&6; }
10007
10008
10009           enablestring=
10010           defaultval=$wxUSE_ALL_FEATURES
10011           if test -z "$defaultval"; then
10012               if test x"$enablestring" = xdisable; then
10013                   defaultval=yes
10014               else
10015                   defaultval=no
10016               fi
10017           fi
10018
10019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10020 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10021           # Check whether --enable-choice was given.
10022 if test "${enable_choice+set}" = set; then
10023   enableval=$enable_choice;
10024                           if test "$enableval" = yes; then
10025                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10026                           else
10027                             wx_cv_use_choice='wxUSE_CHOICE=no'
10028                           fi
10029
10030 else
10031
10032                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10033
10034 fi
10035
10036
10037           eval "$wx_cv_use_choice"
10038
10039           if test x"$enablestring" = xdisable; then
10040             if test $wxUSE_CHOICE = no; then
10041               result=yes
10042             else
10043               result=no
10044             fi
10045           else
10046             result=$wxUSE_CHOICE
10047           fi
10048
10049           { echo "$as_me:$LINENO: result: $result" >&5
10050 echo "${ECHO_T}$result" >&6; }
10051
10052
10053           enablestring=
10054           defaultval=$wxUSE_ALL_FEATURES
10055           if test -z "$defaultval"; then
10056               if test x"$enablestring" = xdisable; then
10057                   defaultval=yes
10058               else
10059                   defaultval=no
10060               fi
10061           fi
10062
10063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10064 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10065           # Check whether --enable-choicebook was given.
10066 if test "${enable_choicebook+set}" = set; then
10067   enableval=$enable_choicebook;
10068                           if test "$enableval" = yes; then
10069                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10070                           else
10071                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10072                           fi
10073
10074 else
10075
10076                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10077
10078 fi
10079
10080
10081           eval "$wx_cv_use_choicebook"
10082
10083           if test x"$enablestring" = xdisable; then
10084             if test $wxUSE_CHOICEBOOK = no; then
10085               result=yes
10086             else
10087               result=no
10088             fi
10089           else
10090             result=$wxUSE_CHOICEBOOK
10091           fi
10092
10093           { echo "$as_me:$LINENO: result: $result" >&5
10094 echo "${ECHO_T}$result" >&6; }
10095
10096
10097           enablestring=
10098           defaultval=$wxUSE_ALL_FEATURES
10099           if test -z "$defaultval"; then
10100               if test x"$enablestring" = xdisable; then
10101                   defaultval=yes
10102               else
10103                   defaultval=no
10104               fi
10105           fi
10106
10107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10108 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10109           # Check whether --enable-collpane was given.
10110 if test "${enable_collpane+set}" = set; then
10111   enableval=$enable_collpane;
10112                           if test "$enableval" = yes; then
10113                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10114                           else
10115                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10116                           fi
10117
10118 else
10119
10120                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10121
10122 fi
10123
10124
10125           eval "$wx_cv_use_collpane"
10126
10127           if test x"$enablestring" = xdisable; then
10128             if test $wxUSE_COLLPANE = no; then
10129               result=yes
10130             else
10131               result=no
10132             fi
10133           else
10134             result=$wxUSE_COLLPANE
10135           fi
10136
10137           { echo "$as_me:$LINENO: result: $result" >&5
10138 echo "${ECHO_T}$result" >&6; }
10139
10140
10141           enablestring=
10142           defaultval=$wxUSE_ALL_FEATURES
10143           if test -z "$defaultval"; then
10144               if test x"$enablestring" = xdisable; then
10145                   defaultval=yes
10146               else
10147                   defaultval=no
10148               fi
10149           fi
10150
10151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10152 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10153           # Check whether --enable-colourpicker was given.
10154 if test "${enable_colourpicker+set}" = set; then
10155   enableval=$enable_colourpicker;
10156                           if test "$enableval" = yes; then
10157                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10158                           else
10159                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10160                           fi
10161
10162 else
10163
10164                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10165
10166 fi
10167
10168
10169           eval "$wx_cv_use_colourpicker"
10170
10171           if test x"$enablestring" = xdisable; then
10172             if test $wxUSE_COLOURPICKERCTRL = no; then
10173               result=yes
10174             else
10175               result=no
10176             fi
10177           else
10178             result=$wxUSE_COLOURPICKERCTRL
10179           fi
10180
10181           { echo "$as_me:$LINENO: result: $result" >&5
10182 echo "${ECHO_T}$result" >&6; }
10183
10184
10185           enablestring=
10186           defaultval=$wxUSE_ALL_FEATURES
10187           if test -z "$defaultval"; then
10188               if test x"$enablestring" = xdisable; then
10189                   defaultval=yes
10190               else
10191                   defaultval=no
10192               fi
10193           fi
10194
10195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10196 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10197           # Check whether --enable-combobox was given.
10198 if test "${enable_combobox+set}" = set; then
10199   enableval=$enable_combobox;
10200                           if test "$enableval" = yes; then
10201                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10202                           else
10203                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10204                           fi
10205
10206 else
10207
10208                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10209
10210 fi
10211
10212
10213           eval "$wx_cv_use_combobox"
10214
10215           if test x"$enablestring" = xdisable; then
10216             if test $wxUSE_COMBOBOX = no; then
10217               result=yes
10218             else
10219               result=no
10220             fi
10221           else
10222             result=$wxUSE_COMBOBOX
10223           fi
10224
10225           { echo "$as_me:$LINENO: result: $result" >&5
10226 echo "${ECHO_T}$result" >&6; }
10227
10228
10229           enablestring=
10230           defaultval=$wxUSE_ALL_FEATURES
10231           if test -z "$defaultval"; then
10232               if test x"$enablestring" = xdisable; then
10233                   defaultval=yes
10234               else
10235                   defaultval=no
10236               fi
10237           fi
10238
10239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10240 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10241           # Check whether --enable-comboctrl was given.
10242 if test "${enable_comboctrl+set}" = set; then
10243   enableval=$enable_comboctrl;
10244                           if test "$enableval" = yes; then
10245                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10246                           else
10247                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10248                           fi
10249
10250 else
10251
10252                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10253
10254 fi
10255
10256
10257           eval "$wx_cv_use_comboctrl"
10258
10259           if test x"$enablestring" = xdisable; then
10260             if test $wxUSE_COMBOCTRL = no; then
10261               result=yes
10262             else
10263               result=no
10264             fi
10265           else
10266             result=$wxUSE_COMBOCTRL
10267           fi
10268
10269           { echo "$as_me:$LINENO: result: $result" >&5
10270 echo "${ECHO_T}$result" >&6; }
10271
10272
10273           enablestring=
10274           defaultval=$wxUSE_ALL_FEATURES
10275           if test -z "$defaultval"; then
10276               if test x"$enablestring" = xdisable; then
10277                   defaultval=yes
10278               else
10279                   defaultval=no
10280               fi
10281           fi
10282
10283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10284 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10285           # Check whether --enable-dataviewctrl was given.
10286 if test "${enable_dataviewctrl+set}" = set; then
10287   enableval=$enable_dataviewctrl;
10288                           if test "$enableval" = yes; then
10289                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10290                           else
10291                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10292                           fi
10293
10294 else
10295
10296                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10297
10298 fi
10299
10300
10301           eval "$wx_cv_use_dataviewctrl"
10302
10303           if test x"$enablestring" = xdisable; then
10304             if test $wxUSE_DATAVIEWCTRL = no; then
10305               result=yes
10306             else
10307               result=no
10308             fi
10309           else
10310             result=$wxUSE_DATAVIEWCTRL
10311           fi
10312
10313           { echo "$as_me:$LINENO: result: $result" >&5
10314 echo "${ECHO_T}$result" >&6; }
10315
10316
10317           enablestring=
10318           defaultval=$wxUSE_ALL_FEATURES
10319           if test -z "$defaultval"; then
10320               if test x"$enablestring" = xdisable; then
10321                   defaultval=yes
10322               else
10323                   defaultval=no
10324               fi
10325           fi
10326
10327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10328 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10329           # Check whether --enable-datepick was given.
10330 if test "${enable_datepick+set}" = set; then
10331   enableval=$enable_datepick;
10332                           if test "$enableval" = yes; then
10333                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10334                           else
10335                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10336                           fi
10337
10338 else
10339
10340                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10341
10342 fi
10343
10344
10345           eval "$wx_cv_use_datepick"
10346
10347           if test x"$enablestring" = xdisable; then
10348             if test $wxUSE_DATEPICKCTRL = no; then
10349               result=yes
10350             else
10351               result=no
10352             fi
10353           else
10354             result=$wxUSE_DATEPICKCTRL
10355           fi
10356
10357           { echo "$as_me:$LINENO: result: $result" >&5
10358 echo "${ECHO_T}$result" >&6; }
10359
10360
10361           enablestring=
10362           defaultval=$wxUSE_ALL_FEATURES
10363           if test -z "$defaultval"; then
10364               if test x"$enablestring" = xdisable; then
10365                   defaultval=yes
10366               else
10367                   defaultval=no
10368               fi
10369           fi
10370
10371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10372 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10373           # Check whether --enable-detect_sm was given.
10374 if test "${enable_detect_sm+set}" = set; then
10375   enableval=$enable_detect_sm;
10376                           if test "$enableval" = yes; then
10377                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10378                           else
10379                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10380                           fi
10381
10382 else
10383
10384                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10385
10386 fi
10387
10388
10389           eval "$wx_cv_use_detect_sm"
10390
10391           if test x"$enablestring" = xdisable; then
10392             if test $wxUSE_DETECT_SM = no; then
10393               result=yes
10394             else
10395               result=no
10396             fi
10397           else
10398             result=$wxUSE_DETECT_SM
10399           fi
10400
10401           { echo "$as_me:$LINENO: result: $result" >&5
10402 echo "${ECHO_T}$result" >&6; }
10403
10404
10405           enablestring=
10406           defaultval=$wxUSE_ALL_FEATURES
10407           if test -z "$defaultval"; then
10408               if test x"$enablestring" = xdisable; then
10409                   defaultval=yes
10410               else
10411                   defaultval=no
10412               fi
10413           fi
10414
10415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10416 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10417           # Check whether --enable-dirpicker was given.
10418 if test "${enable_dirpicker+set}" = set; then
10419   enableval=$enable_dirpicker;
10420                           if test "$enableval" = yes; then
10421                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10422                           else
10423                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10424                           fi
10425
10426 else
10427
10428                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10429
10430 fi
10431
10432
10433           eval "$wx_cv_use_dirpicker"
10434
10435           if test x"$enablestring" = xdisable; then
10436             if test $wxUSE_DIRPICKERCTRL = no; then
10437               result=yes
10438             else
10439               result=no
10440             fi
10441           else
10442             result=$wxUSE_DIRPICKERCTRL
10443           fi
10444
10445           { echo "$as_me:$LINENO: result: $result" >&5
10446 echo "${ECHO_T}$result" >&6; }
10447
10448
10449           enablestring=
10450           defaultval=$wxUSE_ALL_FEATURES
10451           if test -z "$defaultval"; then
10452               if test x"$enablestring" = xdisable; then
10453                   defaultval=yes
10454               else
10455                   defaultval=no
10456               fi
10457           fi
10458
10459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10460 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10461           # Check whether --enable-display was given.
10462 if test "${enable_display+set}" = set; then
10463   enableval=$enable_display;
10464                           if test "$enableval" = yes; then
10465                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10466                           else
10467                             wx_cv_use_display='wxUSE_DISPLAY=no'
10468                           fi
10469
10470 else
10471
10472                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10473
10474 fi
10475
10476
10477           eval "$wx_cv_use_display"
10478
10479           if test x"$enablestring" = xdisable; then
10480             if test $wxUSE_DISPLAY = no; then
10481               result=yes
10482             else
10483               result=no
10484             fi
10485           else
10486             result=$wxUSE_DISPLAY
10487           fi
10488
10489           { echo "$as_me:$LINENO: result: $result" >&5
10490 echo "${ECHO_T}$result" >&6; }
10491
10492
10493           enablestring=
10494           defaultval=$wxUSE_ALL_FEATURES
10495           if test -z "$defaultval"; then
10496               if test x"$enablestring" = xdisable; then
10497                   defaultval=yes
10498               else
10499                   defaultval=no
10500               fi
10501           fi
10502
10503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10504 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10505           # Check whether --enable-editablebox was given.
10506 if test "${enable_editablebox+set}" = set; then
10507   enableval=$enable_editablebox;
10508                           if test "$enableval" = yes; then
10509                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10510                           else
10511                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10512                           fi
10513
10514 else
10515
10516                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10517
10518 fi
10519
10520
10521           eval "$wx_cv_use_editablebox"
10522
10523           if test x"$enablestring" = xdisable; then
10524             if test $wxUSE_EDITABLELISTBOX = no; then
10525               result=yes
10526             else
10527               result=no
10528             fi
10529           else
10530             result=$wxUSE_EDITABLELISTBOX
10531           fi
10532
10533           { echo "$as_me:$LINENO: result: $result" >&5
10534 echo "${ECHO_T}$result" >&6; }
10535
10536
10537           enablestring=
10538           defaultval=$wxUSE_ALL_FEATURES
10539           if test -z "$defaultval"; then
10540               if test x"$enablestring" = xdisable; then
10541                   defaultval=yes
10542               else
10543                   defaultval=no
10544               fi
10545           fi
10546
10547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10548 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10549           # Check whether --enable-filectrl was given.
10550 if test "${enable_filectrl+set}" = set; then
10551   enableval=$enable_filectrl;
10552                           if test "$enableval" = yes; then
10553                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10554                           else
10555                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10556                           fi
10557
10558 else
10559
10560                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10561
10562 fi
10563
10564
10565           eval "$wx_cv_use_filectrl"
10566
10567           if test x"$enablestring" = xdisable; then
10568             if test $wxUSE_FILECTRL = no; then
10569               result=yes
10570             else
10571               result=no
10572             fi
10573           else
10574             result=$wxUSE_FILECTRL
10575           fi
10576
10577           { echo "$as_me:$LINENO: result: $result" >&5
10578 echo "${ECHO_T}$result" >&6; }
10579
10580
10581           enablestring=
10582           defaultval=$wxUSE_ALL_FEATURES
10583           if test -z "$defaultval"; then
10584               if test x"$enablestring" = xdisable; then
10585                   defaultval=yes
10586               else
10587                   defaultval=no
10588               fi
10589           fi
10590
10591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10592 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10593           # Check whether --enable-filepicker was given.
10594 if test "${enable_filepicker+set}" = set; then
10595   enableval=$enable_filepicker;
10596                           if test "$enableval" = yes; then
10597                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10598                           else
10599                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10600                           fi
10601
10602 else
10603
10604                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10605
10606 fi
10607
10608
10609           eval "$wx_cv_use_filepicker"
10610
10611           if test x"$enablestring" = xdisable; then
10612             if test $wxUSE_FILEPICKERCTRL = no; then
10613               result=yes
10614             else
10615               result=no
10616             fi
10617           else
10618             result=$wxUSE_FILEPICKERCTRL
10619           fi
10620
10621           { echo "$as_me:$LINENO: result: $result" >&5
10622 echo "${ECHO_T}$result" >&6; }
10623
10624
10625           enablestring=
10626           defaultval=$wxUSE_ALL_FEATURES
10627           if test -z "$defaultval"; then
10628               if test x"$enablestring" = xdisable; then
10629                   defaultval=yes
10630               else
10631                   defaultval=no
10632               fi
10633           fi
10634
10635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10636 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10637           # Check whether --enable-fontpicker was given.
10638 if test "${enable_fontpicker+set}" = set; then
10639   enableval=$enable_fontpicker;
10640                           if test "$enableval" = yes; then
10641                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10642                           else
10643                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10644                           fi
10645
10646 else
10647
10648                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10649
10650 fi
10651
10652
10653           eval "$wx_cv_use_fontpicker"
10654
10655           if test x"$enablestring" = xdisable; then
10656             if test $wxUSE_FONTPICKERCTRL = no; then
10657               result=yes
10658             else
10659               result=no
10660             fi
10661           else
10662             result=$wxUSE_FONTPICKERCTRL
10663           fi
10664
10665           { echo "$as_me:$LINENO: result: $result" >&5
10666 echo "${ECHO_T}$result" >&6; }
10667
10668
10669           enablestring=
10670           defaultval=$wxUSE_ALL_FEATURES
10671           if test -z "$defaultval"; then
10672               if test x"$enablestring" = xdisable; then
10673                   defaultval=yes
10674               else
10675                   defaultval=no
10676               fi
10677           fi
10678
10679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10680 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10681           # Check whether --enable-gauge was given.
10682 if test "${enable_gauge+set}" = set; then
10683   enableval=$enable_gauge;
10684                           if test "$enableval" = yes; then
10685                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10686                           else
10687                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10688                           fi
10689
10690 else
10691
10692                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10693
10694 fi
10695
10696
10697           eval "$wx_cv_use_gauge"
10698
10699           if test x"$enablestring" = xdisable; then
10700             if test $wxUSE_GAUGE = no; then
10701               result=yes
10702             else
10703               result=no
10704             fi
10705           else
10706             result=$wxUSE_GAUGE
10707           fi
10708
10709           { echo "$as_me:$LINENO: result: $result" >&5
10710 echo "${ECHO_T}$result" >&6; }
10711
10712
10713           enablestring=
10714           defaultval=$wxUSE_ALL_FEATURES
10715           if test -z "$defaultval"; then
10716               if test x"$enablestring" = xdisable; then
10717                   defaultval=yes
10718               else
10719                   defaultval=no
10720               fi
10721           fi
10722
10723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10724 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10725           # Check whether --enable-grid was given.
10726 if test "${enable_grid+set}" = set; then
10727   enableval=$enable_grid;
10728                           if test "$enableval" = yes; then
10729                             wx_cv_use_grid='wxUSE_GRID=yes'
10730                           else
10731                             wx_cv_use_grid='wxUSE_GRID=no'
10732                           fi
10733
10734 else
10735
10736                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10737
10738 fi
10739
10740
10741           eval "$wx_cv_use_grid"
10742
10743           if test x"$enablestring" = xdisable; then
10744             if test $wxUSE_GRID = no; then
10745               result=yes
10746             else
10747               result=no
10748             fi
10749           else
10750             result=$wxUSE_GRID
10751           fi
10752
10753           { echo "$as_me:$LINENO: result: $result" >&5
10754 echo "${ECHO_T}$result" >&6; }
10755
10756
10757           enablestring=
10758           defaultval=$wxUSE_ALL_FEATURES
10759           if test -z "$defaultval"; then
10760               if test x"$enablestring" = xdisable; then
10761                   defaultval=yes
10762               else
10763                   defaultval=no
10764               fi
10765           fi
10766
10767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10768 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10769           # Check whether --enable-headerctrl was given.
10770 if test "${enable_headerctrl+set}" = set; then
10771   enableval=$enable_headerctrl;
10772                           if test "$enableval" = yes; then
10773                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10774                           else
10775                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10776                           fi
10777
10778 else
10779
10780                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10781
10782 fi
10783
10784
10785           eval "$wx_cv_use_headerctrl"
10786
10787           if test x"$enablestring" = xdisable; then
10788             if test $wxUSE_HEADERCTRL = no; then
10789               result=yes
10790             else
10791               result=no
10792             fi
10793           else
10794             result=$wxUSE_HEADERCTRL
10795           fi
10796
10797           { echo "$as_me:$LINENO: result: $result" >&5
10798 echo "${ECHO_T}$result" >&6; }
10799
10800
10801           enablestring=
10802           defaultval=$wxUSE_ALL_FEATURES
10803           if test -z "$defaultval"; then
10804               if test x"$enablestring" = xdisable; then
10805                   defaultval=yes
10806               else
10807                   defaultval=no
10808               fi
10809           fi
10810
10811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10812 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10813           # Check whether --enable-hyperlink was given.
10814 if test "${enable_hyperlink+set}" = set; then
10815   enableval=$enable_hyperlink;
10816                           if test "$enableval" = yes; then
10817                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10818                           else
10819                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10820                           fi
10821
10822 else
10823
10824                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10825
10826 fi
10827
10828
10829           eval "$wx_cv_use_hyperlink"
10830
10831           if test x"$enablestring" = xdisable; then
10832             if test $wxUSE_HYPERLINKCTRL = no; then
10833               result=yes
10834             else
10835               result=no
10836             fi
10837           else
10838             result=$wxUSE_HYPERLINKCTRL
10839           fi
10840
10841           { echo "$as_me:$LINENO: result: $result" >&5
10842 echo "${ECHO_T}$result" >&6; }
10843
10844
10845           enablestring=
10846           defaultval=$wxUSE_ALL_FEATURES
10847           if test -z "$defaultval"; then
10848               if test x"$enablestring" = xdisable; then
10849                   defaultval=yes
10850               else
10851                   defaultval=no
10852               fi
10853           fi
10854
10855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10856 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10857           # Check whether --enable-imaglist was given.
10858 if test "${enable_imaglist+set}" = set; then
10859   enableval=$enable_imaglist;
10860                           if test "$enableval" = yes; then
10861                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10862                           else
10863                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10864                           fi
10865
10866 else
10867
10868                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10869
10870 fi
10871
10872
10873           eval "$wx_cv_use_imaglist"
10874
10875           if test x"$enablestring" = xdisable; then
10876             if test $wxUSE_IMAGLIST = no; then
10877               result=yes
10878             else
10879               result=no
10880             fi
10881           else
10882             result=$wxUSE_IMAGLIST
10883           fi
10884
10885           { echo "$as_me:$LINENO: result: $result" >&5
10886 echo "${ECHO_T}$result" >&6; }
10887
10888
10889           enablestring=
10890           defaultval=$wxUSE_ALL_FEATURES
10891           if test -z "$defaultval"; then
10892               if test x"$enablestring" = xdisable; then
10893                   defaultval=yes
10894               else
10895                   defaultval=no
10896               fi
10897           fi
10898
10899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10900 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10901           # Check whether --enable-listbook was given.
10902 if test "${enable_listbook+set}" = set; then
10903   enableval=$enable_listbook;
10904                           if test "$enableval" = yes; then
10905                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10906                           else
10907                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10908                           fi
10909
10910 else
10911
10912                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10913
10914 fi
10915
10916
10917           eval "$wx_cv_use_listbook"
10918
10919           if test x"$enablestring" = xdisable; then
10920             if test $wxUSE_LISTBOOK = no; then
10921               result=yes
10922             else
10923               result=no
10924             fi
10925           else
10926             result=$wxUSE_LISTBOOK
10927           fi
10928
10929           { echo "$as_me:$LINENO: result: $result" >&5
10930 echo "${ECHO_T}$result" >&6; }
10931
10932
10933           enablestring=
10934           defaultval=$wxUSE_ALL_FEATURES
10935           if test -z "$defaultval"; then
10936               if test x"$enablestring" = xdisable; then
10937                   defaultval=yes
10938               else
10939                   defaultval=no
10940               fi
10941           fi
10942
10943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10944 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10945           # Check whether --enable-listbox was given.
10946 if test "${enable_listbox+set}" = set; then
10947   enableval=$enable_listbox;
10948                           if test "$enableval" = yes; then
10949                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10950                           else
10951                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10952                           fi
10953
10954 else
10955
10956                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10957
10958 fi
10959
10960
10961           eval "$wx_cv_use_listbox"
10962
10963           if test x"$enablestring" = xdisable; then
10964             if test $wxUSE_LISTBOX = no; then
10965               result=yes
10966             else
10967               result=no
10968             fi
10969           else
10970             result=$wxUSE_LISTBOX
10971           fi
10972
10973           { echo "$as_me:$LINENO: result: $result" >&5
10974 echo "${ECHO_T}$result" >&6; }
10975
10976
10977           enablestring=
10978           defaultval=$wxUSE_ALL_FEATURES
10979           if test -z "$defaultval"; then
10980               if test x"$enablestring" = xdisable; then
10981                   defaultval=yes
10982               else
10983                   defaultval=no
10984               fi
10985           fi
10986
10987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10988 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10989           # Check whether --enable-listctrl was given.
10990 if test "${enable_listctrl+set}" = set; then
10991   enableval=$enable_listctrl;
10992                           if test "$enableval" = yes; then
10993                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10994                           else
10995                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10996                           fi
10997
10998 else
10999
11000                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11001
11002 fi
11003
11004
11005           eval "$wx_cv_use_listctrl"
11006
11007           if test x"$enablestring" = xdisable; then
11008             if test $wxUSE_LISTCTRL = no; then
11009               result=yes
11010             else
11011               result=no
11012             fi
11013           else
11014             result=$wxUSE_LISTCTRL
11015           fi
11016
11017           { echo "$as_me:$LINENO: result: $result" >&5
11018 echo "${ECHO_T}$result" >&6; }
11019
11020
11021           enablestring=
11022           defaultval=$wxUSE_ALL_FEATURES
11023           if test -z "$defaultval"; then
11024               if test x"$enablestring" = xdisable; then
11025                   defaultval=yes
11026               else
11027                   defaultval=no
11028               fi
11029           fi
11030
11031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11032 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11033           # Check whether --enable-notebook was given.
11034 if test "${enable_notebook+set}" = set; then
11035   enableval=$enable_notebook;
11036                           if test "$enableval" = yes; then
11037                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11038                           else
11039                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11040                           fi
11041
11042 else
11043
11044                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11045
11046 fi
11047
11048
11049           eval "$wx_cv_use_notebook"
11050
11051           if test x"$enablestring" = xdisable; then
11052             if test $wxUSE_NOTEBOOK = no; then
11053               result=yes
11054             else
11055               result=no
11056             fi
11057           else
11058             result=$wxUSE_NOTEBOOK
11059           fi
11060
11061           { echo "$as_me:$LINENO: result: $result" >&5
11062 echo "${ECHO_T}$result" >&6; }
11063
11064
11065           enablestring=
11066           defaultval=$wxUSE_ALL_FEATURES
11067           if test -z "$defaultval"; then
11068               if test x"$enablestring" = xdisable; then
11069                   defaultval=yes
11070               else
11071                   defaultval=no
11072               fi
11073           fi
11074
11075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11076 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11077           # Check whether --enable-notifmsg was given.
11078 if test "${enable_notifmsg+set}" = set; then
11079   enableval=$enable_notifmsg;
11080                           if test "$enableval" = yes; then
11081                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11082                           else
11083                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11084                           fi
11085
11086 else
11087
11088                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11089
11090 fi
11091
11092
11093           eval "$wx_cv_use_notifmsg"
11094
11095           if test x"$enablestring" = xdisable; then
11096             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11097               result=yes
11098             else
11099               result=no
11100             fi
11101           else
11102             result=$wxUSE_NOTIFICATION_MESSAGE
11103           fi
11104
11105           { echo "$as_me:$LINENO: result: $result" >&5
11106 echo "${ECHO_T}$result" >&6; }
11107
11108
11109           enablestring=
11110           defaultval=$wxUSE_ALL_FEATURES
11111           if test -z "$defaultval"; then
11112               if test x"$enablestring" = xdisable; then
11113                   defaultval=yes
11114               else
11115                   defaultval=no
11116               fi
11117           fi
11118
11119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11120 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11121           # Check whether --enable-odcombobox was given.
11122 if test "${enable_odcombobox+set}" = set; then
11123   enableval=$enable_odcombobox;
11124                           if test "$enableval" = yes; then
11125                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11126                           else
11127                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11128                           fi
11129
11130 else
11131
11132                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11133
11134 fi
11135
11136
11137           eval "$wx_cv_use_odcombobox"
11138
11139           if test x"$enablestring" = xdisable; then
11140             if test $wxUSE_ODCOMBOBOX = no; then
11141               result=yes
11142             else
11143               result=no
11144             fi
11145           else
11146             result=$wxUSE_ODCOMBOBOX
11147           fi
11148
11149           { echo "$as_me:$LINENO: result: $result" >&5
11150 echo "${ECHO_T}$result" >&6; }
11151
11152
11153           enablestring=
11154           defaultval=$wxUSE_ALL_FEATURES
11155           if test -z "$defaultval"; then
11156               if test x"$enablestring" = xdisable; then
11157                   defaultval=yes
11158               else
11159                   defaultval=no
11160               fi
11161           fi
11162
11163           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11164 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11165           # Check whether --enable-popupwin was given.
11166 if test "${enable_popupwin+set}" = set; then
11167   enableval=$enable_popupwin;
11168                           if test "$enableval" = yes; then
11169                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11170                           else
11171                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11172                           fi
11173
11174 else
11175
11176                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11177
11178 fi
11179
11180
11181           eval "$wx_cv_use_popupwin"
11182
11183           if test x"$enablestring" = xdisable; then
11184             if test $wxUSE_POPUPWIN = no; then
11185               result=yes
11186             else
11187               result=no
11188             fi
11189           else
11190             result=$wxUSE_POPUPWIN
11191           fi
11192
11193           { echo "$as_me:$LINENO: result: $result" >&5
11194 echo "${ECHO_T}$result" >&6; }
11195
11196
11197           enablestring=
11198           defaultval=$wxUSE_ALL_FEATURES
11199           if test -z "$defaultval"; then
11200               if test x"$enablestring" = xdisable; then
11201                   defaultval=yes
11202               else
11203                   defaultval=no
11204               fi
11205           fi
11206
11207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11208 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11209           # Check whether --enable-radiobox was given.
11210 if test "${enable_radiobox+set}" = set; then
11211   enableval=$enable_radiobox;
11212                           if test "$enableval" = yes; then
11213                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11214                           else
11215                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11216                           fi
11217
11218 else
11219
11220                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11221
11222 fi
11223
11224
11225           eval "$wx_cv_use_radiobox"
11226
11227           if test x"$enablestring" = xdisable; then
11228             if test $wxUSE_RADIOBOX = no; then
11229               result=yes
11230             else
11231               result=no
11232             fi
11233           else
11234             result=$wxUSE_RADIOBOX
11235           fi
11236
11237           { echo "$as_me:$LINENO: result: $result" >&5
11238 echo "${ECHO_T}$result" >&6; }
11239
11240
11241           enablestring=
11242           defaultval=$wxUSE_ALL_FEATURES
11243           if test -z "$defaultval"; then
11244               if test x"$enablestring" = xdisable; then
11245                   defaultval=yes
11246               else
11247                   defaultval=no
11248               fi
11249           fi
11250
11251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11252 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11253           # Check whether --enable-radiobtn was given.
11254 if test "${enable_radiobtn+set}" = set; then
11255   enableval=$enable_radiobtn;
11256                           if test "$enableval" = yes; then
11257                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11258                           else
11259                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11260                           fi
11261
11262 else
11263
11264                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11265
11266 fi
11267
11268
11269           eval "$wx_cv_use_radiobtn"
11270
11271           if test x"$enablestring" = xdisable; then
11272             if test $wxUSE_RADIOBTN = no; then
11273               result=yes
11274             else
11275               result=no
11276             fi
11277           else
11278             result=$wxUSE_RADIOBTN
11279           fi
11280
11281           { echo "$as_me:$LINENO: result: $result" >&5
11282 echo "${ECHO_T}$result" >&6; }
11283
11284
11285           enablestring=
11286           defaultval=$wxUSE_ALL_FEATURES
11287           if test -z "$defaultval"; then
11288               if test x"$enablestring" = xdisable; then
11289                   defaultval=yes
11290               else
11291                   defaultval=no
11292               fi
11293           fi
11294
11295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11296 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11297           # Check whether --enable-rearrangectrl was given.
11298 if test "${enable_rearrangectrl+set}" = set; then
11299   enableval=$enable_rearrangectrl;
11300                           if test "$enableval" = yes; then
11301                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11302                           else
11303                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11304                           fi
11305
11306 else
11307
11308                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11309
11310 fi
11311
11312
11313           eval "$wx_cv_use_rearrangectrl"
11314
11315           if test x"$enablestring" = xdisable; then
11316             if test $wxUSE_REARRANGECTRL = no; then
11317               result=yes
11318             else
11319               result=no
11320             fi
11321           else
11322             result=$wxUSE_REARRANGECTRL
11323           fi
11324
11325           { echo "$as_me:$LINENO: result: $result" >&5
11326 echo "${ECHO_T}$result" >&6; }
11327
11328
11329           enablestring=
11330           defaultval=$wxUSE_ALL_FEATURES
11331           if test -z "$defaultval"; then
11332               if test x"$enablestring" = xdisable; then
11333                   defaultval=yes
11334               else
11335                   defaultval=no
11336               fi
11337           fi
11338
11339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11340 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11341           # Check whether --enable-sash was given.
11342 if test "${enable_sash+set}" = set; then
11343   enableval=$enable_sash;
11344                           if test "$enableval" = yes; then
11345                             wx_cv_use_sash='wxUSE_SASH=yes'
11346                           else
11347                             wx_cv_use_sash='wxUSE_SASH=no'
11348                           fi
11349
11350 else
11351
11352                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11353
11354 fi
11355
11356
11357           eval "$wx_cv_use_sash"
11358
11359           if test x"$enablestring" = xdisable; then
11360             if test $wxUSE_SASH = no; then
11361               result=yes
11362             else
11363               result=no
11364             fi
11365           else
11366             result=$wxUSE_SASH
11367           fi
11368
11369           { echo "$as_me:$LINENO: result: $result" >&5
11370 echo "${ECHO_T}$result" >&6; }
11371
11372
11373           enablestring=
11374           defaultval=$wxUSE_ALL_FEATURES
11375           if test -z "$defaultval"; then
11376               if test x"$enablestring" = xdisable; then
11377                   defaultval=yes
11378               else
11379                   defaultval=no
11380               fi
11381           fi
11382
11383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11384 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11385           # Check whether --enable-scrollbar was given.
11386 if test "${enable_scrollbar+set}" = set; then
11387   enableval=$enable_scrollbar;
11388                           if test "$enableval" = yes; then
11389                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11390                           else
11391                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11392                           fi
11393
11394 else
11395
11396                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11397
11398 fi
11399
11400
11401           eval "$wx_cv_use_scrollbar"
11402
11403           if test x"$enablestring" = xdisable; then
11404             if test $wxUSE_SCROLLBAR = no; then
11405               result=yes
11406             else
11407               result=no
11408             fi
11409           else
11410             result=$wxUSE_SCROLLBAR
11411           fi
11412
11413           { echo "$as_me:$LINENO: result: $result" >&5
11414 echo "${ECHO_T}$result" >&6; }
11415
11416
11417           enablestring=
11418           defaultval=$wxUSE_ALL_FEATURES
11419           if test -z "$defaultval"; then
11420               if test x"$enablestring" = xdisable; then
11421                   defaultval=yes
11422               else
11423                   defaultval=no
11424               fi
11425           fi
11426
11427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11428 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11429           # Check whether --enable-searchctrl was given.
11430 if test "${enable_searchctrl+set}" = set; then
11431   enableval=$enable_searchctrl;
11432                           if test "$enableval" = yes; then
11433                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11434                           else
11435                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11436                           fi
11437
11438 else
11439
11440                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11441
11442 fi
11443
11444
11445           eval "$wx_cv_use_searchctrl"
11446
11447           if test x"$enablestring" = xdisable; then
11448             if test $wxUSE_SEARCHCTRL = no; then
11449               result=yes
11450             else
11451               result=no
11452             fi
11453           else
11454             result=$wxUSE_SEARCHCTRL
11455           fi
11456
11457           { echo "$as_me:$LINENO: result: $result" >&5
11458 echo "${ECHO_T}$result" >&6; }
11459
11460
11461           enablestring=
11462           defaultval=$wxUSE_ALL_FEATURES
11463           if test -z "$defaultval"; then
11464               if test x"$enablestring" = xdisable; then
11465                   defaultval=yes
11466               else
11467                   defaultval=no
11468               fi
11469           fi
11470
11471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11472 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11473           # Check whether --enable-slider was given.
11474 if test "${enable_slider+set}" = set; then
11475   enableval=$enable_slider;
11476                           if test "$enableval" = yes; then
11477                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11478                           else
11479                             wx_cv_use_slider='wxUSE_SLIDER=no'
11480                           fi
11481
11482 else
11483
11484                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11485
11486 fi
11487
11488
11489           eval "$wx_cv_use_slider"
11490
11491           if test x"$enablestring" = xdisable; then
11492             if test $wxUSE_SLIDER = no; then
11493               result=yes
11494             else
11495               result=no
11496             fi
11497           else
11498             result=$wxUSE_SLIDER
11499           fi
11500
11501           { echo "$as_me:$LINENO: result: $result" >&5
11502 echo "${ECHO_T}$result" >&6; }
11503
11504
11505           enablestring=
11506           defaultval=$wxUSE_ALL_FEATURES
11507           if test -z "$defaultval"; then
11508               if test x"$enablestring" = xdisable; then
11509                   defaultval=yes
11510               else
11511                   defaultval=no
11512               fi
11513           fi
11514
11515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11516 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11517           # Check whether --enable-spinbtn was given.
11518 if test "${enable_spinbtn+set}" = set; then
11519   enableval=$enable_spinbtn;
11520                           if test "$enableval" = yes; then
11521                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11522                           else
11523                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11524                           fi
11525
11526 else
11527
11528                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11529
11530 fi
11531
11532
11533           eval "$wx_cv_use_spinbtn"
11534
11535           if test x"$enablestring" = xdisable; then
11536             if test $wxUSE_SPINBTN = no; then
11537               result=yes
11538             else
11539               result=no
11540             fi
11541           else
11542             result=$wxUSE_SPINBTN
11543           fi
11544
11545           { echo "$as_me:$LINENO: result: $result" >&5
11546 echo "${ECHO_T}$result" >&6; }
11547
11548
11549           enablestring=
11550           defaultval=$wxUSE_ALL_FEATURES
11551           if test -z "$defaultval"; then
11552               if test x"$enablestring" = xdisable; then
11553                   defaultval=yes
11554               else
11555                   defaultval=no
11556               fi
11557           fi
11558
11559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11560 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11561           # Check whether --enable-spinctrl was given.
11562 if test "${enable_spinctrl+set}" = set; then
11563   enableval=$enable_spinctrl;
11564                           if test "$enableval" = yes; then
11565                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11566                           else
11567                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11568                           fi
11569
11570 else
11571
11572                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11573
11574 fi
11575
11576
11577           eval "$wx_cv_use_spinctrl"
11578
11579           if test x"$enablestring" = xdisable; then
11580             if test $wxUSE_SPINCTRL = no; then
11581               result=yes
11582             else
11583               result=no
11584             fi
11585           else
11586             result=$wxUSE_SPINCTRL
11587           fi
11588
11589           { echo "$as_me:$LINENO: result: $result" >&5
11590 echo "${ECHO_T}$result" >&6; }
11591
11592
11593           enablestring=
11594           defaultval=$wxUSE_ALL_FEATURES
11595           if test -z "$defaultval"; then
11596               if test x"$enablestring" = xdisable; then
11597                   defaultval=yes
11598               else
11599                   defaultval=no
11600               fi
11601           fi
11602
11603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11604 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11605           # Check whether --enable-splitter was given.
11606 if test "${enable_splitter+set}" = set; then
11607   enableval=$enable_splitter;
11608                           if test "$enableval" = yes; then
11609                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11610                           else
11611                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11612                           fi
11613
11614 else
11615
11616                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11617
11618 fi
11619
11620
11621           eval "$wx_cv_use_splitter"
11622
11623           if test x"$enablestring" = xdisable; then
11624             if test $wxUSE_SPLITTER = no; then
11625               result=yes
11626             else
11627               result=no
11628             fi
11629           else
11630             result=$wxUSE_SPLITTER
11631           fi
11632
11633           { echo "$as_me:$LINENO: result: $result" >&5
11634 echo "${ECHO_T}$result" >&6; }
11635
11636
11637           enablestring=
11638           defaultval=$wxUSE_ALL_FEATURES
11639           if test -z "$defaultval"; then
11640               if test x"$enablestring" = xdisable; then
11641                   defaultval=yes
11642               else
11643                   defaultval=no
11644               fi
11645           fi
11646
11647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11648 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11649           # Check whether --enable-statbmp was given.
11650 if test "${enable_statbmp+set}" = set; then
11651   enableval=$enable_statbmp;
11652                           if test "$enableval" = yes; then
11653                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11654                           else
11655                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11656                           fi
11657
11658 else
11659
11660                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11661
11662 fi
11663
11664
11665           eval "$wx_cv_use_statbmp"
11666
11667           if test x"$enablestring" = xdisable; then
11668             if test $wxUSE_STATBMP = no; then
11669               result=yes
11670             else
11671               result=no
11672             fi
11673           else
11674             result=$wxUSE_STATBMP
11675           fi
11676
11677           { echo "$as_me:$LINENO: result: $result" >&5
11678 echo "${ECHO_T}$result" >&6; }
11679
11680
11681           enablestring=
11682           defaultval=$wxUSE_ALL_FEATURES
11683           if test -z "$defaultval"; then
11684               if test x"$enablestring" = xdisable; then
11685                   defaultval=yes
11686               else
11687                   defaultval=no
11688               fi
11689           fi
11690
11691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11692 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11693           # Check whether --enable-statbox was given.
11694 if test "${enable_statbox+set}" = set; then
11695   enableval=$enable_statbox;
11696                           if test "$enableval" = yes; then
11697                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11698                           else
11699                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11700                           fi
11701
11702 else
11703
11704                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11705
11706 fi
11707
11708
11709           eval "$wx_cv_use_statbox"
11710
11711           if test x"$enablestring" = xdisable; then
11712             if test $wxUSE_STATBOX = no; then
11713               result=yes
11714             else
11715               result=no
11716             fi
11717           else
11718             result=$wxUSE_STATBOX
11719           fi
11720
11721           { echo "$as_me:$LINENO: result: $result" >&5
11722 echo "${ECHO_T}$result" >&6; }
11723
11724
11725           enablestring=
11726           defaultval=$wxUSE_ALL_FEATURES
11727           if test -z "$defaultval"; then
11728               if test x"$enablestring" = xdisable; then
11729                   defaultval=yes
11730               else
11731                   defaultval=no
11732               fi
11733           fi
11734
11735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11736 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11737           # Check whether --enable-statline was given.
11738 if test "${enable_statline+set}" = set; then
11739   enableval=$enable_statline;
11740                           if test "$enableval" = yes; then
11741                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11742                           else
11743                             wx_cv_use_statline='wxUSE_STATLINE=no'
11744                           fi
11745
11746 else
11747
11748                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11749
11750 fi
11751
11752
11753           eval "$wx_cv_use_statline"
11754
11755           if test x"$enablestring" = xdisable; then
11756             if test $wxUSE_STATLINE = no; then
11757               result=yes
11758             else
11759               result=no
11760             fi
11761           else
11762             result=$wxUSE_STATLINE
11763           fi
11764
11765           { echo "$as_me:$LINENO: result: $result" >&5
11766 echo "${ECHO_T}$result" >&6; }
11767
11768
11769           enablestring=
11770           defaultval=$wxUSE_ALL_FEATURES
11771           if test -z "$defaultval"; then
11772               if test x"$enablestring" = xdisable; then
11773                   defaultval=yes
11774               else
11775                   defaultval=no
11776               fi
11777           fi
11778
11779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11780 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11781           # Check whether --enable-stattext was given.
11782 if test "${enable_stattext+set}" = set; then
11783   enableval=$enable_stattext;
11784                           if test "$enableval" = yes; then
11785                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11786                           else
11787                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11788                           fi
11789
11790 else
11791
11792                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11793
11794 fi
11795
11796
11797           eval "$wx_cv_use_stattext"
11798
11799           if test x"$enablestring" = xdisable; then
11800             if test $wxUSE_STATTEXT = no; then
11801               result=yes
11802             else
11803               result=no
11804             fi
11805           else
11806             result=$wxUSE_STATTEXT
11807           fi
11808
11809           { echo "$as_me:$LINENO: result: $result" >&5
11810 echo "${ECHO_T}$result" >&6; }
11811
11812
11813           enablestring=
11814           defaultval=$wxUSE_ALL_FEATURES
11815           if test -z "$defaultval"; then
11816               if test x"$enablestring" = xdisable; then
11817                   defaultval=yes
11818               else
11819                   defaultval=no
11820               fi
11821           fi
11822
11823           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11824 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11825           # Check whether --enable-statusbar was given.
11826 if test "${enable_statusbar+set}" = set; then
11827   enableval=$enable_statusbar;
11828                           if test "$enableval" = yes; then
11829                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11830                           else
11831                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11832                           fi
11833
11834 else
11835
11836                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11837
11838 fi
11839
11840
11841           eval "$wx_cv_use_statusbar"
11842
11843           if test x"$enablestring" = xdisable; then
11844             if test $wxUSE_STATUSBAR = no; then
11845               result=yes
11846             else
11847               result=no
11848             fi
11849           else
11850             result=$wxUSE_STATUSBAR
11851           fi
11852
11853           { echo "$as_me:$LINENO: result: $result" >&5
11854 echo "${ECHO_T}$result" >&6; }
11855
11856
11857           enablestring=
11858           defaultval=$wxUSE_ALL_FEATURES
11859           if test -z "$defaultval"; then
11860               if test x"$enablestring" = xdisable; then
11861                   defaultval=yes
11862               else
11863                   defaultval=no
11864               fi
11865           fi
11866
11867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11868 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11869           # Check whether --enable-taskbaricon was given.
11870 if test "${enable_taskbaricon+set}" = set; then
11871   enableval=$enable_taskbaricon;
11872                           if test "$enableval" = yes; then
11873                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11874                           else
11875                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11876                           fi
11877
11878 else
11879
11880                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11881
11882 fi
11883
11884
11885           eval "$wx_cv_use_taskbaricon"
11886
11887           if test x"$enablestring" = xdisable; then
11888             if test $wxUSE_TASKBARICON = no; then
11889               result=yes
11890             else
11891               result=no
11892             fi
11893           else
11894             result=$wxUSE_TASKBARICON
11895           fi
11896
11897           { echo "$as_me:$LINENO: result: $result" >&5
11898 echo "${ECHO_T}$result" >&6; }
11899
11900
11901           enablestring=
11902           defaultval=$wxUSE_ALL_FEATURES
11903           if test -z "$defaultval"; then
11904               if test x"$enablestring" = xdisable; then
11905                   defaultval=yes
11906               else
11907                   defaultval=no
11908               fi
11909           fi
11910
11911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11912 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11913           # Check whether --enable-tbarnative was given.
11914 if test "${enable_tbarnative+set}" = set; then
11915   enableval=$enable_tbarnative;
11916                           if test "$enableval" = yes; then
11917                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11918                           else
11919                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11920                           fi
11921
11922 else
11923
11924                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11925
11926 fi
11927
11928
11929           eval "$wx_cv_use_tbarnative"
11930
11931           if test x"$enablestring" = xdisable; then
11932             if test $wxUSE_TOOLBAR_NATIVE = no; then
11933               result=yes
11934             else
11935               result=no
11936             fi
11937           else
11938             result=$wxUSE_TOOLBAR_NATIVE
11939           fi
11940
11941           { echo "$as_me:$LINENO: result: $result" >&5
11942 echo "${ECHO_T}$result" >&6; }
11943
11944
11945           enablestring=
11946           defaultval=$wxUSE_ALL_FEATURES
11947           if test -z "$defaultval"; then
11948               if test x"$enablestring" = xdisable; then
11949                   defaultval=yes
11950               else
11951                   defaultval=no
11952               fi
11953           fi
11954
11955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11956 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11957           # Check whether --enable-textctrl was given.
11958 if test "${enable_textctrl+set}" = set; then
11959   enableval=$enable_textctrl;
11960                           if test "$enableval" = yes; then
11961                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11962                           else
11963                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11964                           fi
11965
11966 else
11967
11968                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11969
11970 fi
11971
11972
11973           eval "$wx_cv_use_textctrl"
11974
11975           if test x"$enablestring" = xdisable; then
11976             if test $wxUSE_TEXTCTRL = no; then
11977               result=yes
11978             else
11979               result=no
11980             fi
11981           else
11982             result=$wxUSE_TEXTCTRL
11983           fi
11984
11985           { echo "$as_me:$LINENO: result: $result" >&5
11986 echo "${ECHO_T}$result" >&6; }
11987
11988
11989           enablestring=
11990           defaultval=$wxUSE_ALL_FEATURES
11991           if test -z "$defaultval"; then
11992               if test x"$enablestring" = xdisable; then
11993                   defaultval=yes
11994               else
11995                   defaultval=no
11996               fi
11997           fi
11998
11999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12000 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12001           # Check whether --enable-tipwindow was given.
12002 if test "${enable_tipwindow+set}" = set; then
12003   enableval=$enable_tipwindow;
12004                           if test "$enableval" = yes; then
12005                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12006                           else
12007                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12008                           fi
12009
12010 else
12011
12012                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12013
12014 fi
12015
12016
12017           eval "$wx_cv_use_tipwindow"
12018
12019           if test x"$enablestring" = xdisable; then
12020             if test $wxUSE_TIPWINDOW = no; then
12021               result=yes
12022             else
12023               result=no
12024             fi
12025           else
12026             result=$wxUSE_TIPWINDOW
12027           fi
12028
12029           { echo "$as_me:$LINENO: result: $result" >&5
12030 echo "${ECHO_T}$result" >&6; }
12031
12032
12033           enablestring=
12034           defaultval=$wxUSE_ALL_FEATURES
12035           if test -z "$defaultval"; then
12036               if test x"$enablestring" = xdisable; then
12037                   defaultval=yes
12038               else
12039                   defaultval=no
12040               fi
12041           fi
12042
12043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12044 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12045           # Check whether --enable-togglebtn was given.
12046 if test "${enable_togglebtn+set}" = set; then
12047   enableval=$enable_togglebtn;
12048                           if test "$enableval" = yes; then
12049                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12050                           else
12051                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12052                           fi
12053
12054 else
12055
12056                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12057
12058 fi
12059
12060
12061           eval "$wx_cv_use_togglebtn"
12062
12063           if test x"$enablestring" = xdisable; then
12064             if test $wxUSE_TOGGLEBTN = no; then
12065               result=yes
12066             else
12067               result=no
12068             fi
12069           else
12070             result=$wxUSE_TOGGLEBTN
12071           fi
12072
12073           { echo "$as_me:$LINENO: result: $result" >&5
12074 echo "${ECHO_T}$result" >&6; }
12075
12076
12077           enablestring=
12078           defaultval=$wxUSE_ALL_FEATURES
12079           if test -z "$defaultval"; then
12080               if test x"$enablestring" = xdisable; then
12081                   defaultval=yes
12082               else
12083                   defaultval=no
12084               fi
12085           fi
12086
12087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12088 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12089           # Check whether --enable-toolbar was given.
12090 if test "${enable_toolbar+set}" = set; then
12091   enableval=$enable_toolbar;
12092                           if test "$enableval" = yes; then
12093                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12094                           else
12095                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12096                           fi
12097
12098 else
12099
12100                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12101
12102 fi
12103
12104
12105           eval "$wx_cv_use_toolbar"
12106
12107           if test x"$enablestring" = xdisable; then
12108             if test $wxUSE_TOOLBAR = no; then
12109               result=yes
12110             else
12111               result=no
12112             fi
12113           else
12114             result=$wxUSE_TOOLBAR
12115           fi
12116
12117           { echo "$as_me:$LINENO: result: $result" >&5
12118 echo "${ECHO_T}$result" >&6; }
12119
12120
12121           enablestring=
12122           defaultval=$wxUSE_ALL_FEATURES
12123           if test -z "$defaultval"; then
12124               if test x"$enablestring" = xdisable; then
12125                   defaultval=yes
12126               else
12127                   defaultval=no
12128               fi
12129           fi
12130
12131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12132 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12133           # Check whether --enable-toolbook was given.
12134 if test "${enable_toolbook+set}" = set; then
12135   enableval=$enable_toolbook;
12136                           if test "$enableval" = yes; then
12137                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12138                           else
12139                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12140                           fi
12141
12142 else
12143
12144                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12145
12146 fi
12147
12148
12149           eval "$wx_cv_use_toolbook"
12150
12151           if test x"$enablestring" = xdisable; then
12152             if test $wxUSE_TOOLBOOK = no; then
12153               result=yes
12154             else
12155               result=no
12156             fi
12157           else
12158             result=$wxUSE_TOOLBOOK
12159           fi
12160
12161           { echo "$as_me:$LINENO: result: $result" >&5
12162 echo "${ECHO_T}$result" >&6; }
12163
12164
12165           enablestring=
12166           defaultval=$wxUSE_ALL_FEATURES
12167           if test -z "$defaultval"; then
12168               if test x"$enablestring" = xdisable; then
12169                   defaultval=yes
12170               else
12171                   defaultval=no
12172               fi
12173           fi
12174
12175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12176 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12177           # Check whether --enable-treebook was given.
12178 if test "${enable_treebook+set}" = set; then
12179   enableval=$enable_treebook;
12180                           if test "$enableval" = yes; then
12181                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12182                           else
12183                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12184                           fi
12185
12186 else
12187
12188                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12189
12190 fi
12191
12192
12193           eval "$wx_cv_use_treebook"
12194
12195           if test x"$enablestring" = xdisable; then
12196             if test $wxUSE_TREEBOOK = no; then
12197               result=yes
12198             else
12199               result=no
12200             fi
12201           else
12202             result=$wxUSE_TREEBOOK
12203           fi
12204
12205           { echo "$as_me:$LINENO: result: $result" >&5
12206 echo "${ECHO_T}$result" >&6; }
12207
12208
12209           enablestring=
12210           defaultval=$wxUSE_ALL_FEATURES
12211           if test -z "$defaultval"; then
12212               if test x"$enablestring" = xdisable; then
12213                   defaultval=yes
12214               else
12215                   defaultval=no
12216               fi
12217           fi
12218
12219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12220 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12221           # Check whether --enable-treectrl was given.
12222 if test "${enable_treectrl+set}" = set; then
12223   enableval=$enable_treectrl;
12224                           if test "$enableval" = yes; then
12225                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12226                           else
12227                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12228                           fi
12229
12230 else
12231
12232                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12233
12234 fi
12235
12236
12237           eval "$wx_cv_use_treectrl"
12238
12239           if test x"$enablestring" = xdisable; then
12240             if test $wxUSE_TREECTRL = no; then
12241               result=yes
12242             else
12243               result=no
12244             fi
12245           else
12246             result=$wxUSE_TREECTRL
12247           fi
12248
12249           { echo "$as_me:$LINENO: result: $result" >&5
12250 echo "${ECHO_T}$result" >&6; }
12251
12252
12253
12254
12255           enablestring=
12256           defaultval=$wxUSE_ALL_FEATURES
12257           if test -z "$defaultval"; then
12258               if test x"$enablestring" = xdisable; then
12259                   defaultval=yes
12260               else
12261                   defaultval=no
12262               fi
12263           fi
12264
12265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12266 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12267           # Check whether --enable-commondlg was given.
12268 if test "${enable_commondlg+set}" = set; then
12269   enableval=$enable_commondlg;
12270                           if test "$enableval" = yes; then
12271                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12272                           else
12273                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12274                           fi
12275
12276 else
12277
12278                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12279
12280 fi
12281
12282
12283           eval "$wx_cv_use_commondlg"
12284
12285           if test x"$enablestring" = xdisable; then
12286             if test $wxUSE_COMMONDLGS = no; then
12287               result=yes
12288             else
12289               result=no
12290             fi
12291           else
12292             result=$wxUSE_COMMONDLGS
12293           fi
12294
12295           { echo "$as_me:$LINENO: result: $result" >&5
12296 echo "${ECHO_T}$result" >&6; }
12297
12298
12299           enablestring=
12300           defaultval=$wxUSE_ALL_FEATURES
12301           if test -z "$defaultval"; then
12302               if test x"$enablestring" = xdisable; then
12303                   defaultval=yes
12304               else
12305                   defaultval=no
12306               fi
12307           fi
12308
12309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12310 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12311           # Check whether --enable-aboutdlg was given.
12312 if test "${enable_aboutdlg+set}" = set; then
12313   enableval=$enable_aboutdlg;
12314                           if test "$enableval" = yes; then
12315                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12316                           else
12317                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12318                           fi
12319
12320 else
12321
12322                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12323
12324 fi
12325
12326
12327           eval "$wx_cv_use_aboutdlg"
12328
12329           if test x"$enablestring" = xdisable; then
12330             if test $wxUSE_ABOUTDLG = no; then
12331               result=yes
12332             else
12333               result=no
12334             fi
12335           else
12336             result=$wxUSE_ABOUTDLG
12337           fi
12338
12339           { echo "$as_me:$LINENO: result: $result" >&5
12340 echo "${ECHO_T}$result" >&6; }
12341
12342
12343           enablestring=
12344           defaultval=$wxUSE_ALL_FEATURES
12345           if test -z "$defaultval"; then
12346               if test x"$enablestring" = xdisable; then
12347                   defaultval=yes
12348               else
12349                   defaultval=no
12350               fi
12351           fi
12352
12353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12354 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12355           # Check whether --enable-choicedlg was given.
12356 if test "${enable_choicedlg+set}" = set; then
12357   enableval=$enable_choicedlg;
12358                           if test "$enableval" = yes; then
12359                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12360                           else
12361                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12362                           fi
12363
12364 else
12365
12366                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12367
12368 fi
12369
12370
12371           eval "$wx_cv_use_choicedlg"
12372
12373           if test x"$enablestring" = xdisable; then
12374             if test $wxUSE_CHOICEDLG = no; then
12375               result=yes
12376             else
12377               result=no
12378             fi
12379           else
12380             result=$wxUSE_CHOICEDLG
12381           fi
12382
12383           { echo "$as_me:$LINENO: result: $result" >&5
12384 echo "${ECHO_T}$result" >&6; }
12385
12386
12387           enablestring=
12388           defaultval=$wxUSE_ALL_FEATURES
12389           if test -z "$defaultval"; then
12390               if test x"$enablestring" = xdisable; then
12391                   defaultval=yes
12392               else
12393                   defaultval=no
12394               fi
12395           fi
12396
12397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12398 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12399           # Check whether --enable-coldlg was given.
12400 if test "${enable_coldlg+set}" = set; then
12401   enableval=$enable_coldlg;
12402                           if test "$enableval" = yes; then
12403                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12404                           else
12405                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12406                           fi
12407
12408 else
12409
12410                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12411
12412 fi
12413
12414
12415           eval "$wx_cv_use_coldlg"
12416
12417           if test x"$enablestring" = xdisable; then
12418             if test $wxUSE_COLOURDLG = no; then
12419               result=yes
12420             else
12421               result=no
12422             fi
12423           else
12424             result=$wxUSE_COLOURDLG
12425           fi
12426
12427           { echo "$as_me:$LINENO: result: $result" >&5
12428 echo "${ECHO_T}$result" >&6; }
12429
12430
12431           enablestring=
12432           defaultval=$wxUSE_ALL_FEATURES
12433           if test -z "$defaultval"; then
12434               if test x"$enablestring" = xdisable; then
12435                   defaultval=yes
12436               else
12437                   defaultval=no
12438               fi
12439           fi
12440
12441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12442 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12443           # Check whether --enable-filedlg was given.
12444 if test "${enable_filedlg+set}" = set; then
12445   enableval=$enable_filedlg;
12446                           if test "$enableval" = yes; then
12447                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12448                           else
12449                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12450                           fi
12451
12452 else
12453
12454                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12455
12456 fi
12457
12458
12459           eval "$wx_cv_use_filedlg"
12460
12461           if test x"$enablestring" = xdisable; then
12462             if test $wxUSE_FILEDLG = no; then
12463               result=yes
12464             else
12465               result=no
12466             fi
12467           else
12468             result=$wxUSE_FILEDLG
12469           fi
12470
12471           { echo "$as_me:$LINENO: result: $result" >&5
12472 echo "${ECHO_T}$result" >&6; }
12473
12474
12475           enablestring=
12476           defaultval=$wxUSE_ALL_FEATURES
12477           if test -z "$defaultval"; then
12478               if test x"$enablestring" = xdisable; then
12479                   defaultval=yes
12480               else
12481                   defaultval=no
12482               fi
12483           fi
12484
12485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12486 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12487           # Check whether --enable-finddlg was given.
12488 if test "${enable_finddlg+set}" = set; then
12489   enableval=$enable_finddlg;
12490                           if test "$enableval" = yes; then
12491                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12492                           else
12493                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12494                           fi
12495
12496 else
12497
12498                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12499
12500 fi
12501
12502
12503           eval "$wx_cv_use_finddlg"
12504
12505           if test x"$enablestring" = xdisable; then
12506             if test $wxUSE_FINDREPLDLG = no; then
12507               result=yes
12508             else
12509               result=no
12510             fi
12511           else
12512             result=$wxUSE_FINDREPLDLG
12513           fi
12514
12515           { echo "$as_me:$LINENO: result: $result" >&5
12516 echo "${ECHO_T}$result" >&6; }
12517
12518
12519           enablestring=
12520           defaultval=$wxUSE_ALL_FEATURES
12521           if test -z "$defaultval"; then
12522               if test x"$enablestring" = xdisable; then
12523                   defaultval=yes
12524               else
12525                   defaultval=no
12526               fi
12527           fi
12528
12529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12530 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12531           # Check whether --enable-fontdlg was given.
12532 if test "${enable_fontdlg+set}" = set; then
12533   enableval=$enable_fontdlg;
12534                           if test "$enableval" = yes; then
12535                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12536                           else
12537                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12538                           fi
12539
12540 else
12541
12542                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12543
12544 fi
12545
12546
12547           eval "$wx_cv_use_fontdlg"
12548
12549           if test x"$enablestring" = xdisable; then
12550             if test $wxUSE_FONTDLG = no; then
12551               result=yes
12552             else
12553               result=no
12554             fi
12555           else
12556             result=$wxUSE_FONTDLG
12557           fi
12558
12559           { echo "$as_me:$LINENO: result: $result" >&5
12560 echo "${ECHO_T}$result" >&6; }
12561
12562
12563           enablestring=
12564           defaultval=$wxUSE_ALL_FEATURES
12565           if test -z "$defaultval"; then
12566               if test x"$enablestring" = xdisable; then
12567                   defaultval=yes
12568               else
12569                   defaultval=no
12570               fi
12571           fi
12572
12573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12574 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12575           # Check whether --enable-dirdlg was given.
12576 if test "${enable_dirdlg+set}" = set; then
12577   enableval=$enable_dirdlg;
12578                           if test "$enableval" = yes; then
12579                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12580                           else
12581                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12582                           fi
12583
12584 else
12585
12586                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12587
12588 fi
12589
12590
12591           eval "$wx_cv_use_dirdlg"
12592
12593           if test x"$enablestring" = xdisable; then
12594             if test $wxUSE_DIRDLG = no; then
12595               result=yes
12596             else
12597               result=no
12598             fi
12599           else
12600             result=$wxUSE_DIRDLG
12601           fi
12602
12603           { echo "$as_me:$LINENO: result: $result" >&5
12604 echo "${ECHO_T}$result" >&6; }
12605
12606
12607           enablestring=
12608           defaultval=$wxUSE_ALL_FEATURES
12609           if test -z "$defaultval"; then
12610               if test x"$enablestring" = xdisable; then
12611                   defaultval=yes
12612               else
12613                   defaultval=no
12614               fi
12615           fi
12616
12617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12618 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12619           # Check whether --enable-msgdlg was given.
12620 if test "${enable_msgdlg+set}" = set; then
12621   enableval=$enable_msgdlg;
12622                           if test "$enableval" = yes; then
12623                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12624                           else
12625                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12626                           fi
12627
12628 else
12629
12630                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12631
12632 fi
12633
12634
12635           eval "$wx_cv_use_msgdlg"
12636
12637           if test x"$enablestring" = xdisable; then
12638             if test $wxUSE_MSGDLG = no; then
12639               result=yes
12640             else
12641               result=no
12642             fi
12643           else
12644             result=$wxUSE_MSGDLG
12645           fi
12646
12647           { echo "$as_me:$LINENO: result: $result" >&5
12648 echo "${ECHO_T}$result" >&6; }
12649
12650
12651           enablestring=
12652           defaultval=$wxUSE_ALL_FEATURES
12653           if test -z "$defaultval"; then
12654               if test x"$enablestring" = xdisable; then
12655                   defaultval=yes
12656               else
12657                   defaultval=no
12658               fi
12659           fi
12660
12661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12662 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12663           # Check whether --enable-numberdlg was given.
12664 if test "${enable_numberdlg+set}" = set; then
12665   enableval=$enable_numberdlg;
12666                           if test "$enableval" = yes; then
12667                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12668                           else
12669                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12670                           fi
12671
12672 else
12673
12674                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12675
12676 fi
12677
12678
12679           eval "$wx_cv_use_numberdlg"
12680
12681           if test x"$enablestring" = xdisable; then
12682             if test $wxUSE_NUMBERDLG = no; then
12683               result=yes
12684             else
12685               result=no
12686             fi
12687           else
12688             result=$wxUSE_NUMBERDLG
12689           fi
12690
12691           { echo "$as_me:$LINENO: result: $result" >&5
12692 echo "${ECHO_T}$result" >&6; }
12693
12694
12695           enablestring=
12696           defaultval=$wxUSE_ALL_FEATURES
12697           if test -z "$defaultval"; then
12698               if test x"$enablestring" = xdisable; then
12699                   defaultval=yes
12700               else
12701                   defaultval=no
12702               fi
12703           fi
12704
12705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12706 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12707           # Check whether --enable-splash was given.
12708 if test "${enable_splash+set}" = set; then
12709   enableval=$enable_splash;
12710                           if test "$enableval" = yes; then
12711                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12712                           else
12713                             wx_cv_use_splash='wxUSE_SPLASH=no'
12714                           fi
12715
12716 else
12717
12718                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12719
12720 fi
12721
12722
12723           eval "$wx_cv_use_splash"
12724
12725           if test x"$enablestring" = xdisable; then
12726             if test $wxUSE_SPLASH = no; then
12727               result=yes
12728             else
12729               result=no
12730             fi
12731           else
12732             result=$wxUSE_SPLASH
12733           fi
12734
12735           { echo "$as_me:$LINENO: result: $result" >&5
12736 echo "${ECHO_T}$result" >&6; }
12737
12738
12739           enablestring=
12740           defaultval=$wxUSE_ALL_FEATURES
12741           if test -z "$defaultval"; then
12742               if test x"$enablestring" = xdisable; then
12743                   defaultval=yes
12744               else
12745                   defaultval=no
12746               fi
12747           fi
12748
12749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12750 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12751           # Check whether --enable-textdlg was given.
12752 if test "${enable_textdlg+set}" = set; then
12753   enableval=$enable_textdlg;
12754                           if test "$enableval" = yes; then
12755                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12756                           else
12757                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12758                           fi
12759
12760 else
12761
12762                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12763
12764 fi
12765
12766
12767           eval "$wx_cv_use_textdlg"
12768
12769           if test x"$enablestring" = xdisable; then
12770             if test $wxUSE_TEXTDLG = no; then
12771               result=yes
12772             else
12773               result=no
12774             fi
12775           else
12776             result=$wxUSE_TEXTDLG
12777           fi
12778
12779           { echo "$as_me:$LINENO: result: $result" >&5
12780 echo "${ECHO_T}$result" >&6; }
12781
12782
12783           enablestring=
12784           defaultval=$wxUSE_ALL_FEATURES
12785           if test -z "$defaultval"; then
12786               if test x"$enablestring" = xdisable; then
12787                   defaultval=yes
12788               else
12789                   defaultval=no
12790               fi
12791           fi
12792
12793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12794 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12795           # Check whether --enable-tipdlg was given.
12796 if test "${enable_tipdlg+set}" = set; then
12797   enableval=$enable_tipdlg;
12798                           if test "$enableval" = yes; then
12799                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12800                           else
12801                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12802                           fi
12803
12804 else
12805
12806                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12807
12808 fi
12809
12810
12811           eval "$wx_cv_use_tipdlg"
12812
12813           if test x"$enablestring" = xdisable; then
12814             if test $wxUSE_STARTUP_TIPS = no; then
12815               result=yes
12816             else
12817               result=no
12818             fi
12819           else
12820             result=$wxUSE_STARTUP_TIPS
12821           fi
12822
12823           { echo "$as_me:$LINENO: result: $result" >&5
12824 echo "${ECHO_T}$result" >&6; }
12825
12826
12827           enablestring=
12828           defaultval=$wxUSE_ALL_FEATURES
12829           if test -z "$defaultval"; then
12830               if test x"$enablestring" = xdisable; then
12831                   defaultval=yes
12832               else
12833                   defaultval=no
12834               fi
12835           fi
12836
12837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12838 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12839           # Check whether --enable-progressdlg was given.
12840 if test "${enable_progressdlg+set}" = set; then
12841   enableval=$enable_progressdlg;
12842                           if test "$enableval" = yes; then
12843                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12844                           else
12845                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12846                           fi
12847
12848 else
12849
12850                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12851
12852 fi
12853
12854
12855           eval "$wx_cv_use_progressdlg"
12856
12857           if test x"$enablestring" = xdisable; then
12858             if test $wxUSE_PROGRESSDLG = no; then
12859               result=yes
12860             else
12861               result=no
12862             fi
12863           else
12864             result=$wxUSE_PROGRESSDLG
12865           fi
12866
12867           { echo "$as_me:$LINENO: result: $result" >&5
12868 echo "${ECHO_T}$result" >&6; }
12869
12870
12871           enablestring=
12872           defaultval=$wxUSE_ALL_FEATURES
12873           if test -z "$defaultval"; then
12874               if test x"$enablestring" = xdisable; then
12875                   defaultval=yes
12876               else
12877                   defaultval=no
12878               fi
12879           fi
12880
12881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12882 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12883           # Check whether --enable-wizarddlg was given.
12884 if test "${enable_wizarddlg+set}" = set; then
12885   enableval=$enable_wizarddlg;
12886                           if test "$enableval" = yes; then
12887                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12888                           else
12889                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12890                           fi
12891
12892 else
12893
12894                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12895
12896 fi
12897
12898
12899           eval "$wx_cv_use_wizarddlg"
12900
12901           if test x"$enablestring" = xdisable; then
12902             if test $wxUSE_WIZARDDLG = no; then
12903               result=yes
12904             else
12905               result=no
12906             fi
12907           else
12908             result=$wxUSE_WIZARDDLG
12909           fi
12910
12911           { echo "$as_me:$LINENO: result: $result" >&5
12912 echo "${ECHO_T}$result" >&6; }
12913
12914
12915
12916
12917           enablestring=
12918           defaultval=$wxUSE_ALL_FEATURES
12919           if test -z "$defaultval"; then
12920               if test x"$enablestring" = xdisable; then
12921                   defaultval=yes
12922               else
12923                   defaultval=no
12924               fi
12925           fi
12926
12927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12928 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12929           # Check whether --enable-menus was given.
12930 if test "${enable_menus+set}" = set; then
12931   enableval=$enable_menus;
12932                           if test "$enableval" = yes; then
12933                             wx_cv_use_menus='wxUSE_MENUS=yes'
12934                           else
12935                             wx_cv_use_menus='wxUSE_MENUS=no'
12936                           fi
12937
12938 else
12939
12940                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12941
12942 fi
12943
12944
12945           eval "$wx_cv_use_menus"
12946
12947           if test x"$enablestring" = xdisable; then
12948             if test $wxUSE_MENUS = no; then
12949               result=yes
12950             else
12951               result=no
12952             fi
12953           else
12954             result=$wxUSE_MENUS
12955           fi
12956
12957           { echo "$as_me:$LINENO: result: $result" >&5
12958 echo "${ECHO_T}$result" >&6; }
12959
12960
12961           enablestring=
12962           defaultval=$wxUSE_ALL_FEATURES
12963           if test -z "$defaultval"; then
12964               if test x"$enablestring" = xdisable; then
12965                   defaultval=yes
12966               else
12967                   defaultval=no
12968               fi
12969           fi
12970
12971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12972 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12973           # Check whether --enable-miniframe was given.
12974 if test "${enable_miniframe+set}" = set; then
12975   enableval=$enable_miniframe;
12976                           if test "$enableval" = yes; then
12977                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12978                           else
12979                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12980                           fi
12981
12982 else
12983
12984                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12985
12986 fi
12987
12988
12989           eval "$wx_cv_use_miniframe"
12990
12991           if test x"$enablestring" = xdisable; then
12992             if test $wxUSE_MINIFRAME = no; then
12993               result=yes
12994             else
12995               result=no
12996             fi
12997           else
12998             result=$wxUSE_MINIFRAME
12999           fi
13000
13001           { echo "$as_me:$LINENO: result: $result" >&5
13002 echo "${ECHO_T}$result" >&6; }
13003
13004
13005           enablestring=
13006           defaultval=$wxUSE_ALL_FEATURES
13007           if test -z "$defaultval"; then
13008               if test x"$enablestring" = xdisable; then
13009                   defaultval=yes
13010               else
13011                   defaultval=no
13012               fi
13013           fi
13014
13015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13016 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13017           # Check whether --enable-tooltips was given.
13018 if test "${enable_tooltips+set}" = set; then
13019   enableval=$enable_tooltips;
13020                           if test "$enableval" = yes; then
13021                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13022                           else
13023                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13024                           fi
13025
13026 else
13027
13028                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13029
13030 fi
13031
13032
13033           eval "$wx_cv_use_tooltips"
13034
13035           if test x"$enablestring" = xdisable; then
13036             if test $wxUSE_TOOLTIPS = no; then
13037               result=yes
13038             else
13039               result=no
13040             fi
13041           else
13042             result=$wxUSE_TOOLTIPS
13043           fi
13044
13045           { echo "$as_me:$LINENO: result: $result" >&5
13046 echo "${ECHO_T}$result" >&6; }
13047
13048
13049           enablestring=
13050           defaultval=$wxUSE_ALL_FEATURES
13051           if test -z "$defaultval"; then
13052               if test x"$enablestring" = xdisable; then
13053                   defaultval=yes
13054               else
13055                   defaultval=no
13056               fi
13057           fi
13058
13059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13060 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13061           # Check whether --enable-splines was given.
13062 if test "${enable_splines+set}" = set; then
13063   enableval=$enable_splines;
13064                           if test "$enableval" = yes; then
13065                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13066                           else
13067                             wx_cv_use_splines='wxUSE_SPLINES=no'
13068                           fi
13069
13070 else
13071
13072                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13073
13074 fi
13075
13076
13077           eval "$wx_cv_use_splines"
13078
13079           if test x"$enablestring" = xdisable; then
13080             if test $wxUSE_SPLINES = no; then
13081               result=yes
13082             else
13083               result=no
13084             fi
13085           else
13086             result=$wxUSE_SPLINES
13087           fi
13088
13089           { echo "$as_me:$LINENO: result: $result" >&5
13090 echo "${ECHO_T}$result" >&6; }
13091
13092
13093           enablestring=
13094           defaultval=$wxUSE_ALL_FEATURES
13095           if test -z "$defaultval"; then
13096               if test x"$enablestring" = xdisable; then
13097                   defaultval=yes
13098               else
13099                   defaultval=no
13100               fi
13101           fi
13102
13103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13104 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13105           # Check whether --enable-mousewheel was given.
13106 if test "${enable_mousewheel+set}" = set; then
13107   enableval=$enable_mousewheel;
13108                           if test "$enableval" = yes; then
13109                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13110                           else
13111                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13112                           fi
13113
13114 else
13115
13116                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13117
13118 fi
13119
13120
13121           eval "$wx_cv_use_mousewheel"
13122
13123           if test x"$enablestring" = xdisable; then
13124             if test $wxUSE_MOUSEWHEEL = no; then
13125               result=yes
13126             else
13127               result=no
13128             fi
13129           else
13130             result=$wxUSE_MOUSEWHEEL
13131           fi
13132
13133           { echo "$as_me:$LINENO: result: $result" >&5
13134 echo "${ECHO_T}$result" >&6; }
13135
13136
13137           enablestring=
13138           defaultval=$wxUSE_ALL_FEATURES
13139           if test -z "$defaultval"; then
13140               if test x"$enablestring" = xdisable; then
13141                   defaultval=yes
13142               else
13143                   defaultval=no
13144               fi
13145           fi
13146
13147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13148 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13149           # Check whether --enable-validators was given.
13150 if test "${enable_validators+set}" = set; then
13151   enableval=$enable_validators;
13152                           if test "$enableval" = yes; then
13153                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13154                           else
13155                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13156                           fi
13157
13158 else
13159
13160                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13161
13162 fi
13163
13164
13165           eval "$wx_cv_use_validators"
13166
13167           if test x"$enablestring" = xdisable; then
13168             if test $wxUSE_VALIDATORS = no; then
13169               result=yes
13170             else
13171               result=no
13172             fi
13173           else
13174             result=$wxUSE_VALIDATORS
13175           fi
13176
13177           { echo "$as_me:$LINENO: result: $result" >&5
13178 echo "${ECHO_T}$result" >&6; }
13179
13180
13181           enablestring=
13182           defaultval=$wxUSE_ALL_FEATURES
13183           if test -z "$defaultval"; then
13184               if test x"$enablestring" = xdisable; then
13185                   defaultval=yes
13186               else
13187                   defaultval=no
13188               fi
13189           fi
13190
13191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13192 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13193           # Check whether --enable-busyinfo was given.
13194 if test "${enable_busyinfo+set}" = set; then
13195   enableval=$enable_busyinfo;
13196                           if test "$enableval" = yes; then
13197                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13198                           else
13199                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13200                           fi
13201
13202 else
13203
13204                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13205
13206 fi
13207
13208
13209           eval "$wx_cv_use_busyinfo"
13210
13211           if test x"$enablestring" = xdisable; then
13212             if test $wxUSE_BUSYINFO = no; then
13213               result=yes
13214             else
13215               result=no
13216             fi
13217           else
13218             result=$wxUSE_BUSYINFO
13219           fi
13220
13221           { echo "$as_me:$LINENO: result: $result" >&5
13222 echo "${ECHO_T}$result" >&6; }
13223
13224
13225           enablestring=
13226           defaultval=$wxUSE_ALL_FEATURES
13227           if test -z "$defaultval"; then
13228               if test x"$enablestring" = xdisable; then
13229                   defaultval=yes
13230               else
13231                   defaultval=no
13232               fi
13233           fi
13234
13235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13236 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13237           # Check whether --enable-joystick was given.
13238 if test "${enable_joystick+set}" = set; then
13239   enableval=$enable_joystick;
13240                           if test "$enableval" = yes; then
13241                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13242                           else
13243                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13244                           fi
13245
13246 else
13247
13248                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13249
13250 fi
13251
13252
13253           eval "$wx_cv_use_joystick"
13254
13255           if test x"$enablestring" = xdisable; then
13256             if test $wxUSE_JOYSTICK = no; then
13257               result=yes
13258             else
13259               result=no
13260             fi
13261           else
13262             result=$wxUSE_JOYSTICK
13263           fi
13264
13265           { echo "$as_me:$LINENO: result: $result" >&5
13266 echo "${ECHO_T}$result" >&6; }
13267
13268
13269           enablestring=
13270           defaultval=$wxUSE_ALL_FEATURES
13271           if test -z "$defaultval"; then
13272               if test x"$enablestring" = xdisable; then
13273                   defaultval=yes
13274               else
13275                   defaultval=no
13276               fi
13277           fi
13278
13279           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13280 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13281           # Check whether --enable-metafile was given.
13282 if test "${enable_metafile+set}" = set; then
13283   enableval=$enable_metafile;
13284                           if test "$enableval" = yes; then
13285                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13286                           else
13287                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13288                           fi
13289
13290 else
13291
13292                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13293
13294 fi
13295
13296
13297           eval "$wx_cv_use_metafile"
13298
13299           if test x"$enablestring" = xdisable; then
13300             if test $wxUSE_METAFILE = no; then
13301               result=yes
13302             else
13303               result=no
13304             fi
13305           else
13306             result=$wxUSE_METAFILE
13307           fi
13308
13309           { echo "$as_me:$LINENO: result: $result" >&5
13310 echo "${ECHO_T}$result" >&6; }
13311
13312
13313           enablestring=
13314           defaultval=$wxUSE_ALL_FEATURES
13315           if test -z "$defaultval"; then
13316               if test x"$enablestring" = xdisable; then
13317                   defaultval=yes
13318               else
13319                   defaultval=no
13320               fi
13321           fi
13322
13323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13324 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13325           # Check whether --enable-dragimage was given.
13326 if test "${enable_dragimage+set}" = set; then
13327   enableval=$enable_dragimage;
13328                           if test "$enableval" = yes; then
13329                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13330                           else
13331                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13332                           fi
13333
13334 else
13335
13336                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13337
13338 fi
13339
13340
13341           eval "$wx_cv_use_dragimage"
13342
13343           if test x"$enablestring" = xdisable; then
13344             if test $wxUSE_DRAGIMAGE = no; then
13345               result=yes
13346             else
13347               result=no
13348             fi
13349           else
13350             result=$wxUSE_DRAGIMAGE
13351           fi
13352
13353           { echo "$as_me:$LINENO: result: $result" >&5
13354 echo "${ECHO_T}$result" >&6; }
13355
13356
13357           enablestring=
13358           defaultval=$wxUSE_ALL_FEATURES
13359           if test -z "$defaultval"; then
13360               if test x"$enablestring" = xdisable; then
13361                   defaultval=yes
13362               else
13363                   defaultval=no
13364               fi
13365           fi
13366
13367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13368 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13369           # Check whether --enable-accessibility was given.
13370 if test "${enable_accessibility+set}" = set; then
13371   enableval=$enable_accessibility;
13372                           if test "$enableval" = yes; then
13373                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13374                           else
13375                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13376                           fi
13377
13378 else
13379
13380                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13381
13382 fi
13383
13384
13385           eval "$wx_cv_use_accessibility"
13386
13387           if test x"$enablestring" = xdisable; then
13388             if test $wxUSE_ACCESSIBILITY = no; then
13389               result=yes
13390             else
13391               result=no
13392             fi
13393           else
13394             result=$wxUSE_ACCESSIBILITY
13395           fi
13396
13397           { echo "$as_me:$LINENO: result: $result" >&5
13398 echo "${ECHO_T}$result" >&6; }
13399
13400
13401
13402
13403           enablestring=
13404           defaultval=$wxUSE_ALL_FEATURES
13405           if test -z "$defaultval"; then
13406               if test x"$enablestring" = xdisable; then
13407                   defaultval=yes
13408               else
13409                   defaultval=no
13410               fi
13411           fi
13412
13413           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13414 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13415           # Check whether --enable-palette was given.
13416 if test "${enable_palette+set}" = set; then
13417   enableval=$enable_palette;
13418                           if test "$enableval" = yes; then
13419                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13420                           else
13421                             wx_cv_use_palette='wxUSE_PALETTE=no'
13422                           fi
13423
13424 else
13425
13426                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13427
13428 fi
13429
13430
13431           eval "$wx_cv_use_palette"
13432
13433           if test x"$enablestring" = xdisable; then
13434             if test $wxUSE_PALETTE = no; then
13435               result=yes
13436             else
13437               result=no
13438             fi
13439           else
13440             result=$wxUSE_PALETTE
13441           fi
13442
13443           { echo "$as_me:$LINENO: result: $result" >&5
13444 echo "${ECHO_T}$result" >&6; }
13445
13446
13447           enablestring=
13448           defaultval=$wxUSE_ALL_FEATURES
13449           if test -z "$defaultval"; then
13450               if test x"$enablestring" = xdisable; then
13451                   defaultval=yes
13452               else
13453                   defaultval=no
13454               fi
13455           fi
13456
13457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13458 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13459           # Check whether --enable-image was given.
13460 if test "${enable_image+set}" = set; then
13461   enableval=$enable_image;
13462                           if test "$enableval" = yes; then
13463                             wx_cv_use_image='wxUSE_IMAGE=yes'
13464                           else
13465                             wx_cv_use_image='wxUSE_IMAGE=no'
13466                           fi
13467
13468 else
13469
13470                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13471
13472 fi
13473
13474
13475           eval "$wx_cv_use_image"
13476
13477           if test x"$enablestring" = xdisable; then
13478             if test $wxUSE_IMAGE = no; then
13479               result=yes
13480             else
13481               result=no
13482             fi
13483           else
13484             result=$wxUSE_IMAGE
13485           fi
13486
13487           { echo "$as_me:$LINENO: result: $result" >&5
13488 echo "${ECHO_T}$result" >&6; }
13489
13490
13491           enablestring=
13492           defaultval=$wxUSE_ALL_FEATURES
13493           if test -z "$defaultval"; then
13494               if test x"$enablestring" = xdisable; then
13495                   defaultval=yes
13496               else
13497                   defaultval=no
13498               fi
13499           fi
13500
13501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13502 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13503           # Check whether --enable-gif was given.
13504 if test "${enable_gif+set}" = set; then
13505   enableval=$enable_gif;
13506                           if test "$enableval" = yes; then
13507                             wx_cv_use_gif='wxUSE_GIF=yes'
13508                           else
13509                             wx_cv_use_gif='wxUSE_GIF=no'
13510                           fi
13511
13512 else
13513
13514                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13515
13516 fi
13517
13518
13519           eval "$wx_cv_use_gif"
13520
13521           if test x"$enablestring" = xdisable; then
13522             if test $wxUSE_GIF = no; then
13523               result=yes
13524             else
13525               result=no
13526             fi
13527           else
13528             result=$wxUSE_GIF
13529           fi
13530
13531           { echo "$as_me:$LINENO: result: $result" >&5
13532 echo "${ECHO_T}$result" >&6; }
13533
13534
13535           enablestring=
13536           defaultval=$wxUSE_ALL_FEATURES
13537           if test -z "$defaultval"; then
13538               if test x"$enablestring" = xdisable; then
13539                   defaultval=yes
13540               else
13541                   defaultval=no
13542               fi
13543           fi
13544
13545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13546 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13547           # Check whether --enable-pcx was given.
13548 if test "${enable_pcx+set}" = set; then
13549   enableval=$enable_pcx;
13550                           if test "$enableval" = yes; then
13551                             wx_cv_use_pcx='wxUSE_PCX=yes'
13552                           else
13553                             wx_cv_use_pcx='wxUSE_PCX=no'
13554                           fi
13555
13556 else
13557
13558                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13559
13560 fi
13561
13562
13563           eval "$wx_cv_use_pcx"
13564
13565           if test x"$enablestring" = xdisable; then
13566             if test $wxUSE_PCX = no; then
13567               result=yes
13568             else
13569               result=no
13570             fi
13571           else
13572             result=$wxUSE_PCX
13573           fi
13574
13575           { echo "$as_me:$LINENO: result: $result" >&5
13576 echo "${ECHO_T}$result" >&6; }
13577
13578
13579           enablestring=
13580           defaultval=$wxUSE_ALL_FEATURES
13581           if test -z "$defaultval"; then
13582               if test x"$enablestring" = xdisable; then
13583                   defaultval=yes
13584               else
13585                   defaultval=no
13586               fi
13587           fi
13588
13589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13590 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13591           # Check whether --enable-tga was given.
13592 if test "${enable_tga+set}" = set; then
13593   enableval=$enable_tga;
13594                           if test "$enableval" = yes; then
13595                             wx_cv_use_tga='wxUSE_TGA=yes'
13596                           else
13597                             wx_cv_use_tga='wxUSE_TGA=no'
13598                           fi
13599
13600 else
13601
13602                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13603
13604 fi
13605
13606
13607           eval "$wx_cv_use_tga"
13608
13609           if test x"$enablestring" = xdisable; then
13610             if test $wxUSE_TGA = no; then
13611               result=yes
13612             else
13613               result=no
13614             fi
13615           else
13616             result=$wxUSE_TGA
13617           fi
13618
13619           { echo "$as_me:$LINENO: result: $result" >&5
13620 echo "${ECHO_T}$result" >&6; }
13621
13622
13623           enablestring=
13624           defaultval=$wxUSE_ALL_FEATURES
13625           if test -z "$defaultval"; then
13626               if test x"$enablestring" = xdisable; then
13627                   defaultval=yes
13628               else
13629                   defaultval=no
13630               fi
13631           fi
13632
13633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13634 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13635           # Check whether --enable-iff was given.
13636 if test "${enable_iff+set}" = set; then
13637   enableval=$enable_iff;
13638                           if test "$enableval" = yes; then
13639                             wx_cv_use_iff='wxUSE_IFF=yes'
13640                           else
13641                             wx_cv_use_iff='wxUSE_IFF=no'
13642                           fi
13643
13644 else
13645
13646                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13647
13648 fi
13649
13650
13651           eval "$wx_cv_use_iff"
13652
13653           if test x"$enablestring" = xdisable; then
13654             if test $wxUSE_IFF = no; then
13655               result=yes
13656             else
13657               result=no
13658             fi
13659           else
13660             result=$wxUSE_IFF
13661           fi
13662
13663           { echo "$as_me:$LINENO: result: $result" >&5
13664 echo "${ECHO_T}$result" >&6; }
13665
13666
13667           enablestring=
13668           defaultval=$wxUSE_ALL_FEATURES
13669           if test -z "$defaultval"; then
13670               if test x"$enablestring" = xdisable; then
13671                   defaultval=yes
13672               else
13673                   defaultval=no
13674               fi
13675           fi
13676
13677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13678 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13679           # Check whether --enable-pnm was given.
13680 if test "${enable_pnm+set}" = set; then
13681   enableval=$enable_pnm;
13682                           if test "$enableval" = yes; then
13683                             wx_cv_use_pnm='wxUSE_PNM=yes'
13684                           else
13685                             wx_cv_use_pnm='wxUSE_PNM=no'
13686                           fi
13687
13688 else
13689
13690                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13691
13692 fi
13693
13694
13695           eval "$wx_cv_use_pnm"
13696
13697           if test x"$enablestring" = xdisable; then
13698             if test $wxUSE_PNM = no; then
13699               result=yes
13700             else
13701               result=no
13702             fi
13703           else
13704             result=$wxUSE_PNM
13705           fi
13706
13707           { echo "$as_me:$LINENO: result: $result" >&5
13708 echo "${ECHO_T}$result" >&6; }
13709
13710
13711           enablestring=
13712           defaultval=$wxUSE_ALL_FEATURES
13713           if test -z "$defaultval"; then
13714               if test x"$enablestring" = xdisable; then
13715                   defaultval=yes
13716               else
13717                   defaultval=no
13718               fi
13719           fi
13720
13721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13722 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13723           # Check whether --enable-xpm was given.
13724 if test "${enable_xpm+set}" = set; then
13725   enableval=$enable_xpm;
13726                           if test "$enableval" = yes; then
13727                             wx_cv_use_xpm='wxUSE_XPM=yes'
13728                           else
13729                             wx_cv_use_xpm='wxUSE_XPM=no'
13730                           fi
13731
13732 else
13733
13734                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13735
13736 fi
13737
13738
13739           eval "$wx_cv_use_xpm"
13740
13741           if test x"$enablestring" = xdisable; then
13742             if test $wxUSE_XPM = no; then
13743               result=yes
13744             else
13745               result=no
13746             fi
13747           else
13748             result=$wxUSE_XPM
13749           fi
13750
13751           { echo "$as_me:$LINENO: result: $result" >&5
13752 echo "${ECHO_T}$result" >&6; }
13753
13754
13755           enablestring=
13756           defaultval=$wxUSE_ALL_FEATURES
13757           if test -z "$defaultval"; then
13758               if test x"$enablestring" = xdisable; then
13759                   defaultval=yes
13760               else
13761                   defaultval=no
13762               fi
13763           fi
13764
13765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13766 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13767           # Check whether --enable-ico_cur was given.
13768 if test "${enable_ico_cur+set}" = set; then
13769   enableval=$enable_ico_cur;
13770                           if test "$enableval" = yes; then
13771                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13772                           else
13773                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13774                           fi
13775
13776 else
13777
13778                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13779
13780 fi
13781
13782
13783           eval "$wx_cv_use_ico_cur"
13784
13785           if test x"$enablestring" = xdisable; then
13786             if test $wxUSE_ICO_CUR = no; then
13787               result=yes
13788             else
13789               result=no
13790             fi
13791           else
13792             result=$wxUSE_ICO_CUR
13793           fi
13794
13795           { echo "$as_me:$LINENO: result: $result" >&5
13796 echo "${ECHO_T}$result" >&6; }
13797
13798
13799
13800
13801           enablestring=
13802           defaultval=$wxUSE_ALL_FEATURES
13803           if test -z "$defaultval"; then
13804               if test x"$enablestring" = xdisable; then
13805                   defaultval=yes
13806               else
13807                   defaultval=no
13808               fi
13809           fi
13810
13811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13812 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13813           # Check whether --enable-dccache was given.
13814 if test "${enable_dccache+set}" = set; then
13815   enableval=$enable_dccache;
13816                           if test "$enableval" = yes; then
13817                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13818                           else
13819                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13820                           fi
13821
13822 else
13823
13824                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13825
13826 fi
13827
13828
13829           eval "$wx_cv_use_dccache"
13830
13831           if test x"$enablestring" = xdisable; then
13832             if test $wxUSE_DC_CACHEING = no; then
13833               result=yes
13834             else
13835               result=no
13836             fi
13837           else
13838             result=$wxUSE_DC_CACHEING
13839           fi
13840
13841           { echo "$as_me:$LINENO: result: $result" >&5
13842 echo "${ECHO_T}$result" >&6; }
13843
13844
13845           enablestring=
13846           defaultval=$wxUSE_ALL_FEATURES
13847           if test -z "$defaultval"; then
13848               if test x"$enablestring" = xdisable; then
13849                   defaultval=yes
13850               else
13851                   defaultval=no
13852               fi
13853           fi
13854
13855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13856 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13857           # Check whether --enable-ps-in-msw was given.
13858 if test "${enable_ps_in_msw+set}" = set; then
13859   enableval=$enable_ps_in_msw;
13860                           if test "$enableval" = yes; then
13861                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13862                           else
13863                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13864                           fi
13865
13866 else
13867
13868                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13869
13870 fi
13871
13872
13873           eval "$wx_cv_use_ps_in_msw"
13874
13875           if test x"$enablestring" = xdisable; then
13876             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
13877               result=yes
13878             else
13879               result=no
13880             fi
13881           else
13882             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13883           fi
13884
13885           { echo "$as_me:$LINENO: result: $result" >&5
13886 echo "${ECHO_T}$result" >&6; }
13887
13888
13889           enablestring=
13890           defaultval=$wxUSE_ALL_FEATURES
13891           if test -z "$defaultval"; then
13892               if test x"$enablestring" = xdisable; then
13893                   defaultval=yes
13894               else
13895                   defaultval=no
13896               fi
13897           fi
13898
13899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13900 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13901           # Check whether --enable-ownerdrawn was given.
13902 if test "${enable_ownerdrawn+set}" = set; then
13903   enableval=$enable_ownerdrawn;
13904                           if test "$enableval" = yes; then
13905                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13906                           else
13907                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13908                           fi
13909
13910 else
13911
13912                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13913
13914 fi
13915
13916
13917           eval "$wx_cv_use_ownerdrawn"
13918
13919           if test x"$enablestring" = xdisable; then
13920             if test $wxUSE_OWNER_DRAWN = no; then
13921               result=yes
13922             else
13923               result=no
13924             fi
13925           else
13926             result=$wxUSE_OWNER_DRAWN
13927           fi
13928
13929           { echo "$as_me:$LINENO: result: $result" >&5
13930 echo "${ECHO_T}$result" >&6; }
13931
13932
13933           enablestring=
13934           defaultval=$wxUSE_ALL_FEATURES
13935           if test -z "$defaultval"; then
13936               if test x"$enablestring" = xdisable; then
13937                   defaultval=yes
13938               else
13939                   defaultval=no
13940               fi
13941           fi
13942
13943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13944 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13945           # Check whether --enable-uxtheme was given.
13946 if test "${enable_uxtheme+set}" = set; then
13947   enableval=$enable_uxtheme;
13948                           if test "$enableval" = yes; then
13949                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13950                           else
13951                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13952                           fi
13953
13954 else
13955
13956                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13957
13958 fi
13959
13960
13961           eval "$wx_cv_use_uxtheme"
13962
13963           if test x"$enablestring" = xdisable; then
13964             if test $wxUSE_UXTHEME = no; then
13965               result=yes
13966             else
13967               result=no
13968             fi
13969           else
13970             result=$wxUSE_UXTHEME
13971           fi
13972
13973           { echo "$as_me:$LINENO: result: $result" >&5
13974 echo "${ECHO_T}$result" >&6; }
13975
13976
13977           enablestring=
13978           defaultval=$wxUSE_ALL_FEATURES
13979           if test -z "$defaultval"; then
13980               if test x"$enablestring" = xdisable; then
13981                   defaultval=yes
13982               else
13983                   defaultval=no
13984               fi
13985           fi
13986
13987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13988 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13989           # Check whether --enable-wxdib was given.
13990 if test "${enable_wxdib+set}" = set; then
13991   enableval=$enable_wxdib;
13992                           if test "$enableval" = yes; then
13993                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13994                           else
13995                             wx_cv_use_wxdib='wxUSE_DIB=no'
13996                           fi
13997
13998 else
13999
14000                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14001
14002 fi
14003
14004
14005           eval "$wx_cv_use_wxdib"
14006
14007           if test x"$enablestring" = xdisable; then
14008             if test $wxUSE_DIB = no; then
14009               result=yes
14010             else
14011               result=no
14012             fi
14013           else
14014             result=$wxUSE_DIB
14015           fi
14016
14017           { echo "$as_me:$LINENO: result: $result" >&5
14018 echo "${ECHO_T}$result" >&6; }
14019
14020
14021 if test "$wxUSE_MSW" != 1; then
14022     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14023 fi
14024
14025
14026           enablestring=
14027           defaultval=$wxUSE_ALL_FEATURES
14028           if test -z "$defaultval"; then
14029               if test x"$enablestring" = xdisable; then
14030                   defaultval=yes
14031               else
14032                   defaultval=no
14033               fi
14034           fi
14035
14036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14037 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14038           # Check whether --enable-autoidman was given.
14039 if test "${enable_autoidman+set}" = set; then
14040   enableval=$enable_autoidman;
14041                           if test "$enableval" = yes; then
14042                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14043                           else
14044                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14045                           fi
14046
14047 else
14048
14049                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14050
14051 fi
14052
14053
14054           eval "$wx_cv_use_autoidman"
14055
14056           if test x"$enablestring" = xdisable; then
14057             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14058               result=yes
14059             else
14060               result=no
14061             fi
14062           else
14063             result=$wxUSE_AUTOID_MANAGEMENT
14064           fi
14065
14066           { echo "$as_me:$LINENO: result: $result" >&5
14067 echo "${ECHO_T}$result" >&6; }
14068
14069
14070 fi
14071
14072
14073 cat >confcache <<\_ACEOF
14074 # This file is a shell script that caches the results of configure
14075 # tests run on this system so they can be shared between configure
14076 # scripts and configure runs, see configure's option --config-cache.
14077 # It is not useful on other systems.  If it contains results you don't
14078 # want to keep, you may remove or edit it.
14079 #
14080 # config.status only pays attention to the cache file if you give it
14081 # the --recheck option to rerun configure.
14082 #
14083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14085 # following values.
14086
14087 _ACEOF
14088
14089 # The following way of writing the cache mishandles newlines in values,
14090 # but we know of no workaround that is simple, portable, and efficient.
14091 # So, we kill variables containing newlines.
14092 # Ultrix sh set writes to stderr and can't be redirected directly,
14093 # and sets the high bit in the cache file unless we assign to the vars.
14094 (
14095   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14096     eval ac_val=\$$ac_var
14097     case $ac_val in #(
14098     *${as_nl}*)
14099       case $ac_var in #(
14100       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14102       esac
14103       case $ac_var in #(
14104       _ | IFS | as_nl) ;; #(
14105       *) $as_unset $ac_var ;;
14106       esac ;;
14107     esac
14108   done
14109
14110   (set) 2>&1 |
14111     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14112     *${as_nl}ac_space=\ *)
14113       # `set' does not quote correctly, so add quotes (double-quote
14114       # substitution turns \\\\ into \\, and sed turns \\ into \).
14115       sed -n \
14116         "s/'/'\\\\''/g;
14117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14118       ;; #(
14119     *)
14120       # `set' quotes correctly as required by POSIX, so do not add quotes.
14121       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14122       ;;
14123     esac |
14124     sort
14125 ) |
14126   sed '
14127      /^ac_cv_env_/b end
14128      t clear
14129      :clear
14130      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14131      t end
14132      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14133      :end' >>confcache
14134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14135   if test -w "$cache_file"; then
14136     test "x$cache_file" != "x/dev/null" &&
14137       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14138 echo "$as_me: updating cache $cache_file" >&6;}
14139     cat confcache >$cache_file
14140   else
14141     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14143   fi
14144 fi
14145 rm -f confcache
14146
14147 CFLAGS=${CFLAGS:=}
14148
14149
14150
14151     ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156 if test -n "$ac_tool_prefix"; then
14157   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14161 if test "${ac_cv_prog_CC+set}" = set; then
14162   echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164   if test -n "$CC"; then
14165   ac_cv_prog_CC="$CC" # Let the user override the test.
14166 else
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168 for as_dir in $PATH
14169 do
14170   IFS=$as_save_IFS
14171   test -z "$as_dir" && as_dir=.
14172   for ac_exec_ext in '' $ac_executable_extensions; do
14173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14174     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14176     break 2
14177   fi
14178 done
14179 done
14180 IFS=$as_save_IFS
14181
14182 fi
14183 fi
14184 CC=$ac_cv_prog_CC
14185 if test -n "$CC"; then
14186   { echo "$as_me:$LINENO: result: $CC" >&5
14187 echo "${ECHO_T}$CC" >&6; }
14188 else
14189   { echo "$as_me:$LINENO: result: no" >&5
14190 echo "${ECHO_T}no" >&6; }
14191 fi
14192
14193
14194 fi
14195 if test -z "$ac_cv_prog_CC"; then
14196   ac_ct_CC=$CC
14197   # Extract the first word of "gcc", so it can be a program name with args.
14198 set dummy gcc; ac_word=$2
14199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   if test -n "$ac_ct_CC"; then
14205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210   IFS=$as_save_IFS
14211   test -z "$as_dir" && as_dir=.
14212   for ac_exec_ext in '' $ac_executable_extensions; do
14213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14214     ac_cv_prog_ac_ct_CC="gcc"
14215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14216     break 2
14217   fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14225 if test -n "$ac_ct_CC"; then
14226   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14227 echo "${ECHO_T}$ac_ct_CC" >&6; }
14228 else
14229   { echo "$as_me:$LINENO: result: no" >&5
14230 echo "${ECHO_T}no" >&6; }
14231 fi
14232
14233   if test "x$ac_ct_CC" = x; then
14234     CC=""
14235   else
14236     case $cross_compiling:$ac_tool_warned in
14237 yes:)
14238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14239 whose name does not start with the host triplet.  If you think this
14240 configuration is useful to you, please write to autoconf@gnu.org." >&5
14241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14242 whose name does not start with the host triplet.  If you think this
14243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14244 ac_tool_warned=yes ;;
14245 esac
14246     CC=$ac_ct_CC
14247   fi
14248 else
14249   CC="$ac_cv_prog_CC"
14250 fi
14251
14252 if test -z "$CC"; then
14253           if test -n "$ac_tool_prefix"; then
14254     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14255 set dummy ${ac_tool_prefix}cc; ac_word=$2
14256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14258 if test "${ac_cv_prog_CC+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   if test -n "$CC"; then
14262   ac_cv_prog_CC="$CC" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267   IFS=$as_save_IFS
14268   test -z "$as_dir" && as_dir=.
14269   for ac_exec_ext in '' $ac_executable_extensions; do
14270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14271     ac_cv_prog_CC="${ac_tool_prefix}cc"
14272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14273     break 2
14274   fi
14275 done
14276 done
14277 IFS=$as_save_IFS
14278
14279 fi
14280 fi
14281 CC=$ac_cv_prog_CC
14282 if test -n "$CC"; then
14283   { echo "$as_me:$LINENO: result: $CC" >&5
14284 echo "${ECHO_T}$CC" >&6; }
14285 else
14286   { echo "$as_me:$LINENO: result: no" >&5
14287 echo "${ECHO_T}no" >&6; }
14288 fi
14289
14290
14291   fi
14292 fi
14293 if test -z "$CC"; then
14294   # Extract the first word of "cc", so it can be a program name with args.
14295 set dummy cc; ac_word=$2
14296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14298 if test "${ac_cv_prog_CC+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   if test -n "$CC"; then
14302   ac_cv_prog_CC="$CC" # Let the user override the test.
14303 else
14304   ac_prog_rejected=no
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14307 do
14308   IFS=$as_save_IFS
14309   test -z "$as_dir" && as_dir=.
14310   for ac_exec_ext in '' $ac_executable_extensions; do
14311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14312     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14313        ac_prog_rejected=yes
14314        continue
14315      fi
14316     ac_cv_prog_CC="cc"
14317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14318     break 2
14319   fi
14320 done
14321 done
14322 IFS=$as_save_IFS
14323
14324 if test $ac_prog_rejected = yes; then
14325   # We found a bogon in the path, so make sure we never use it.
14326   set dummy $ac_cv_prog_CC
14327   shift
14328   if test $# != 0; then
14329     # We chose a different compiler from the bogus one.
14330     # However, it has the same basename, so the bogon will be chosen
14331     # first if we set CC to just the basename; use the full file name.
14332     shift
14333     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14334   fi
14335 fi
14336 fi
14337 fi
14338 CC=$ac_cv_prog_CC
14339 if test -n "$CC"; then
14340   { echo "$as_me:$LINENO: result: $CC" >&5
14341 echo "${ECHO_T}$CC" >&6; }
14342 else
14343   { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14345 fi
14346
14347
14348 fi
14349 if test -z "$CC"; then
14350   if test -n "$ac_tool_prefix"; then
14351   for ac_prog in cl.exe
14352   do
14353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14357 if test "${ac_cv_prog_CC+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   if test -n "$CC"; then
14361   ac_cv_prog_CC="$CC" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366   IFS=$as_save_IFS
14367   test -z "$as_dir" && as_dir=.
14368   for ac_exec_ext in '' $ac_executable_extensions; do
14369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14370     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14372     break 2
14373   fi
14374 done
14375 done
14376 IFS=$as_save_IFS
14377
14378 fi
14379 fi
14380 CC=$ac_cv_prog_CC
14381 if test -n "$CC"; then
14382   { echo "$as_me:$LINENO: result: $CC" >&5
14383 echo "${ECHO_T}$CC" >&6; }
14384 else
14385   { echo "$as_me:$LINENO: result: no" >&5
14386 echo "${ECHO_T}no" >&6; }
14387 fi
14388
14389
14390     test -n "$CC" && break
14391   done
14392 fi
14393 if test -z "$CC"; then
14394   ac_ct_CC=$CC
14395   for ac_prog in cl.exe
14396 do
14397   # Extract the first word of "$ac_prog", so it can be a program name with args.
14398 set dummy $ac_prog; ac_word=$2
14399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   if test -n "$ac_ct_CC"; then
14405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14406 else
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14409 do
14410   IFS=$as_save_IFS
14411   test -z "$as_dir" && as_dir=.
14412   for ac_exec_ext in '' $ac_executable_extensions; do
14413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414     ac_cv_prog_ac_ct_CC="$ac_prog"
14415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14416     break 2
14417   fi
14418 done
14419 done
14420 IFS=$as_save_IFS
14421
14422 fi
14423 fi
14424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14425 if test -n "$ac_ct_CC"; then
14426   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14427 echo "${ECHO_T}$ac_ct_CC" >&6; }
14428 else
14429   { echo "$as_me:$LINENO: result: no" >&5
14430 echo "${ECHO_T}no" >&6; }
14431 fi
14432
14433
14434   test -n "$ac_ct_CC" && break
14435 done
14436
14437   if test "x$ac_ct_CC" = x; then
14438     CC=""
14439   else
14440     case $cross_compiling:$ac_tool_warned in
14441 yes:)
14442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14443 whose name does not start with the host triplet.  If you think this
14444 configuration is useful to you, please write to autoconf@gnu.org." >&5
14445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14446 whose name does not start with the host triplet.  If you think this
14447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14448 ac_tool_warned=yes ;;
14449 esac
14450     CC=$ac_ct_CC
14451   fi
14452 fi
14453
14454 fi
14455
14456
14457 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14458 See \`config.log' for more details." >&5
14459 echo "$as_me: error: no acceptable C compiler found in \$PATH
14460 See \`config.log' for more details." >&2;}
14461    { (exit 1); exit 1; }; }
14462
14463 # Provide some information about the compiler.
14464 echo "$as_me:$LINENO: checking for C compiler version" >&5
14465 ac_compiler=`set X $ac_compile; echo $2`
14466 { (ac_try="$ac_compiler --version >&5"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_compiler --version >&5") 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }
14476 { (ac_try="$ac_compiler -v >&5"
14477 case "(($ac_try" in
14478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479   *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482   (eval "$ac_compiler -v >&5") 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }
14486 { (ac_try="$ac_compiler -V >&5"
14487 case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_compiler -V >&5") 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }
14496
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h.  */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h.  */
14503
14504 int
14505 main ()
14506 {
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 ac_clean_files_save=$ac_clean_files
14513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14514 # Try to create an executable without -o first, disregard a.out.
14515 # It will help us diagnose broken compilers, and finding out an intuition
14516 # of exeext.
14517 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14520 #
14521 # List of possible output files, starting from the most likely.
14522 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14523 # only as a last resort.  b.out is created by i960 compilers.
14524 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14525 #
14526 # The IRIX 6 linker writes into existing files which may not be
14527 # executable, retaining their permissions.  Remove them first so a
14528 # subsequent execution test works.
14529 ac_rmfiles=
14530 for ac_file in $ac_files
14531 do
14532   case $ac_file in
14533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14535   esac
14536 done
14537 rm -f $ac_rmfiles
14538
14539 if { (ac_try="$ac_link_default"
14540 case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_link_default") 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; then
14549   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14551 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14552 # so that the user can short-circuit this test for compilers unknown to
14553 # Autoconf.
14554 for ac_file in $ac_files ''
14555 do
14556   test -f "$ac_file" || continue
14557   case $ac_file in
14558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14559         ;;
14560     [ab].out )
14561         # We found the default executable, but exeext='' is most
14562         # certainly right.
14563         break;;
14564     *.* )
14565         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14566         then :; else
14567            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14568         fi
14569         # We set ac_cv_exeext here because the later test for it is not
14570         # safe: cross compilers may not add the suffix if given an `-o'
14571         # argument, so we may need to know it at that point already.
14572         # Even if this section looks crufty: it has the advantage of
14573         # actually working.
14574         break;;
14575     * )
14576         break;;
14577   esac
14578 done
14579 test "$ac_cv_exeext" = no && ac_cv_exeext=
14580
14581 else
14582   ac_file=''
14583 fi
14584
14585 { echo "$as_me:$LINENO: result: $ac_file" >&5
14586 echo "${ECHO_T}$ac_file" >&6; }
14587 if test -z "$ac_file"; then
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14592 See \`config.log' for more details." >&5
14593 echo "$as_me: error: C compiler cannot create executables
14594 See \`config.log' for more details." >&2;}
14595    { (exit 77); exit 77; }; }
14596 fi
14597
14598 ac_exeext=$ac_cv_exeext
14599
14600 # Check that the compiler produces executables we can run.  If not, either
14601 # the compiler is broken, or we cross compile.
14602 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14605 # If not cross compiling, check that we can run a simple program.
14606 if test "$cross_compiling" != yes; then
14607   if { ac_try='./$ac_file'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617     cross_compiling=no
14618   else
14619     if test "$cross_compiling" = maybe; then
14620         cross_compiling=yes
14621     else
14622         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14623 If you meant to cross compile, use \`--host'.
14624 See \`config.log' for more details." >&5
14625 echo "$as_me: error: cannot run C compiled programs.
14626 If you meant to cross compile, use \`--host'.
14627 See \`config.log' for more details." >&2;}
14628    { (exit 1); exit 1; }; }
14629     fi
14630   fi
14631 fi
14632 { echo "$as_me:$LINENO: result: yes" >&5
14633 echo "${ECHO_T}yes" >&6; }
14634
14635 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14636 ac_clean_files=$ac_clean_files_save
14637 # Check that the compiler produces executables we can run.  If not, either
14638 # the compiler is broken, or we cross compile.
14639 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14640 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14641 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14642 echo "${ECHO_T}$cross_compiling" >&6; }
14643
14644 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14645 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_link") 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; then
14656   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14657 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14658 # work properly (i.e., refer to `conftest.exe'), while it won't with
14659 # `rm'.
14660 for ac_file in conftest.exe conftest conftest.*; do
14661   test -f "$ac_file" || continue
14662   case $ac_file in
14663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14664     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14665           break;;
14666     * ) break;;
14667   esac
14668 done
14669 else
14670   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14671 See \`config.log' for more details." >&5
14672 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14673 See \`config.log' for more details." >&2;}
14674    { (exit 1); exit 1; }; }
14675 fi
14676
14677 rm -f conftest$ac_cv_exeext
14678 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14679 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14680
14681 rm -f conftest.$ac_ext
14682 EXEEXT=$ac_cv_exeext
14683 ac_exeext=$EXEEXT
14684 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14685 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14686 if test "${ac_cv_objext+set}" = set; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695
14696 int
14697 main ()
14698 {
14699
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.o conftest.obj
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_compile") 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; then
14715   for ac_file in conftest.o conftest.obj conftest.*; do
14716   test -f "$ac_file" || continue;
14717   case $ac_file in
14718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14719     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14720        break;;
14721   esac
14722 done
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14728 See \`config.log' for more details." >&5
14729 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14730 See \`config.log' for more details." >&2;}
14731    { (exit 1); exit 1; }; }
14732 fi
14733
14734 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14735 fi
14736 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14737 echo "${ECHO_T}$ac_cv_objext" >&6; }
14738 OBJEXT=$ac_cv_objext
14739 ac_objext=$OBJEXT
14740 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14742 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751
14752 int
14753 main ()
14754 {
14755 #ifndef __GNUC__
14756        choke me
14757 #endif
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767   *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770   (eval "$ac_compile") 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } && {
14777          test -z "$ac_c_werror_flag" ||
14778          test ! -s conftest.err
14779        } && test -s conftest.$ac_objext; then
14780   ac_compiler_gnu=yes
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785         ac_compiler_gnu=no
14786 fi
14787
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14790
14791 fi
14792 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14793 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14794 GCC=`test $ac_compiler_gnu = yes && echo yes`
14795 ac_test_CFLAGS=${CFLAGS+set}
14796 ac_save_CFLAGS=$CFLAGS
14797 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14799 if test "${ac_cv_prog_cc_g+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   ac_save_c_werror_flag=$ac_c_werror_flag
14803    ac_c_werror_flag=yes
14804    ac_cv_prog_cc_g=no
14805    CFLAGS="-g"
14806    cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h.  */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h.  */
14812
14813 int
14814 main ()
14815 {
14816
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_compile") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } && {
14835          test -z "$ac_c_werror_flag" ||
14836          test ! -s conftest.err
14837        } && test -s conftest.$ac_objext; then
14838   ac_cv_prog_cc_g=yes
14839 else
14840   echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843         CFLAGS=""
14844       cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850
14851 int
14852 main ()
14853 {
14854
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext
14860 if { (ac_try="$ac_compile"
14861 case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_compile") 2>conftest.er1
14867   ac_status=$?
14868   grep -v '^ *+' conftest.er1 >conftest.err
14869   rm -f conftest.er1
14870   cat conftest.err >&5
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } && {
14873          test -z "$ac_c_werror_flag" ||
14874          test ! -s conftest.err
14875        } && test -s conftest.$ac_objext; then
14876   :
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         ac_c_werror_flag=$ac_save_c_werror_flag
14882          CFLAGS="-g"
14883          cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889
14890 int
14891 main ()
14892 {
14893
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (ac_try="$ac_compile"
14900 case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905   (eval "$ac_compile") 2>conftest.er1
14906   ac_status=$?
14907   grep -v '^ *+' conftest.er1 >conftest.err
14908   rm -f conftest.er1
14909   cat conftest.err >&5
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } && {
14912          test -z "$ac_c_werror_flag" ||
14913          test ! -s conftest.err
14914        } && test -s conftest.$ac_objext; then
14915   ac_cv_prog_cc_g=yes
14916 else
14917   echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920
14921 fi
14922
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 fi
14925
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 fi
14928
14929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14930    ac_c_werror_flag=$ac_save_c_werror_flag
14931 fi
14932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14934 if test "$ac_test_CFLAGS" = set; then
14935   CFLAGS=$ac_save_CFLAGS
14936 elif test $ac_cv_prog_cc_g = yes; then
14937   if test "$GCC" = yes; then
14938     CFLAGS="-g -O2"
14939   else
14940     CFLAGS="-g"
14941   fi
14942 else
14943   if test "$GCC" = yes; then
14944     CFLAGS="-O2"
14945   else
14946     CFLAGS=
14947   fi
14948 fi
14949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14951 if test "${ac_cv_prog_cc_c89+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   ac_cv_prog_cc_c89=no
14955 ac_save_CC=$CC
14956 cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962 #include <stdarg.h>
14963 #include <stdio.h>
14964 #include <sys/types.h>
14965 #include <sys/stat.h>
14966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14967 struct buf { int x; };
14968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14969 static char *e (p, i)
14970      char **p;
14971      int i;
14972 {
14973   return p[i];
14974 }
14975 static char *f (char * (*g) (char **, int), char **p, ...)
14976 {
14977   char *s;
14978   va_list v;
14979   va_start (v,p);
14980   s = g (p, va_arg (v,int));
14981   va_end (v);
14982   return s;
14983 }
14984
14985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14986    function prototypes and stuff, but not '\xHH' hex character constants.
14987    These don't provoke an error unfortunately, instead are silently treated
14988    as 'x'.  The following induces an error, until -std is added to get
14989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14990    array size at least.  It's necessary to write '\x00'==0 to get something
14991    that's true only with -std.  */
14992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14993
14994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14995    inside strings and character constants.  */
14996 #define FOO(x) 'x'
14997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14998
14999 int test (int i, double x);
15000 struct s1 {int (*f) (int a);};
15001 struct s2 {int (*f) (double a);};
15002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15003 int argc;
15004 char **argv;
15005 int
15006 main ()
15007 {
15008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15009   ;
15010   return 0;
15011 }
15012 _ACEOF
15013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15015 do
15016   CC="$ac_save_CC $ac_arg"
15017   rm -f conftest.$ac_objext
15018 if { (ac_try="$ac_compile"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_compile") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } && {
15031          test -z "$ac_c_werror_flag" ||
15032          test ! -s conftest.err
15033        } && test -s conftest.$ac_objext; then
15034   ac_cv_prog_cc_c89=$ac_arg
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039
15040 fi
15041
15042 rm -f core conftest.err conftest.$ac_objext
15043   test "x$ac_cv_prog_cc_c89" != "xno" && break
15044 done
15045 rm -f conftest.$ac_ext
15046 CC=$ac_save_CC
15047
15048 fi
15049 # AC_CACHE_VAL
15050 case "x$ac_cv_prog_cc_c89" in
15051   x)
15052     { echo "$as_me:$LINENO: result: none needed" >&5
15053 echo "${ECHO_T}none needed" >&6; } ;;
15054   xno)
15055     { echo "$as_me:$LINENO: result: unsupported" >&5
15056 echo "${ECHO_T}unsupported" >&6; } ;;
15057   *)
15058     CC="$CC $ac_cv_prog_cc_c89"
15059     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15060 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15061 esac
15062
15063
15064 ac_ext=c
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
15070
15071
15072
15073     ac_ext=c
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078
15079     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15080 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15081 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090
15091 int
15092 main ()
15093 {
15094
15095              #ifndef __INTEL_COMPILER
15096                 choke me
15097              #endif
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_compile") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } && {
15117          test -z "$ac_c_werror_flag" ||
15118          test ! -s conftest.err
15119        } && test -s conftest.$ac_objext; then
15120   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125         bakefile_cv_c_compiler___INTEL_COMPILER=no
15126
15127 fi
15128
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130
15131
15132 fi
15133 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15134 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15135     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15136         :; INTELCC=yes
15137     else
15138         :;
15139     fi
15140     ac_ext=c
15141 ac_cpp='$CPP $CPPFLAGS'
15142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15145
15146
15147
15148
15149         if test "$INTELCC" = "yes"; then
15150
15151
15152     ac_ext=c
15153 ac_cpp='$CPP $CPPFLAGS'
15154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15157
15158     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15159 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15160 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h.  */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h.  */
15169
15170 int
15171 main ()
15172 {
15173
15174              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15175                 choke me
15176              #endif
15177
15178   ;
15179   return 0;
15180 }
15181 _ACEOF
15182 rm -f conftest.$ac_objext
15183 if { (ac_try="$ac_compile"
15184 case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_compile") 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } && {
15196          test -z "$ac_c_werror_flag" ||
15197          test ! -s conftest.err
15198        } && test -s conftest.$ac_objext; then
15199   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15205
15206 fi
15207
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209
15210
15211 fi
15212 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15213 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15214     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15215         :; INTELCC8=yes
15216     else
15217         :;
15218     fi
15219     ac_ext=c
15220 ac_cpp='$CPP $CPPFLAGS'
15221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15224
15225
15226
15227
15228
15229     ac_ext=c
15230 ac_cpp='$CPP $CPPFLAGS'
15231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15234
15235     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15236 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15237 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246
15247 int
15248 main ()
15249 {
15250
15251              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15252                 choke me
15253              #endif
15254
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_compile") 2>conftest.er1
15267   ac_status=$?
15268   grep -v '^ *+' conftest.er1 >conftest.err
15269   rm -f conftest.er1
15270   cat conftest.err >&5
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } && {
15273          test -z "$ac_c_werror_flag" ||
15274          test ! -s conftest.err
15275        } && test -s conftest.$ac_objext; then
15276   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15282
15283 fi
15284
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286
15287
15288 fi
15289 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15290 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15291     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15292         :; INTELCC10=yes
15293     else
15294         :;
15295     fi
15296     ac_ext=c
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15301
15302
15303
15304     fi
15305
15306         if test "x$GCC" != "xyes"; then
15307         if test "xCC" = "xC"; then
15308             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15309 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15310 if test "${bakefile_cv_c_exto+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319
15320 int
15321 main ()
15322 {
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest.$ac_ext.o
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330   (eval $ac_compile) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; then
15334   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15335     case $ac_file in
15336         conftest.$ac_ext.o)
15337             bakefile_cv_c_exto="-ext o"
15338             ;;
15339         *)
15340             ;;
15341     esac
15342 done
15343 else
15344   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15345 See \`config.log' for more details." >&5
15346 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15347 See \`config.log' for more details." >&2;}
15348    { (exit 1); exit 1; }; }
15349
15350 fi
15351
15352 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15353
15354 fi
15355 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15356 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15357 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15358     if test "c" = "c"; then
15359         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15360     fi
15361     if test "c" = "cxx"; then
15362         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15363     fi
15364 fi
15365
15366             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15367                 unset ac_cv_prog_cc_g
15368                 ac_test_CFLAGS=${CFLAGS+set}
15369 ac_save_CFLAGS=$CFLAGS
15370 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15372 if test "${ac_cv_prog_cc_g+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   ac_save_c_werror_flag=$ac_c_werror_flag
15376    ac_c_werror_flag=yes
15377    ac_cv_prog_cc_g=no
15378    CFLAGS="-g"
15379    cat >conftest.$ac_ext <<_ACEOF
15380 /* confdefs.h.  */
15381 _ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h.  */
15385
15386 int
15387 main ()
15388 {
15389
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (ac_try="$ac_compile"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_compile") 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } && {
15408          test -z "$ac_c_werror_flag" ||
15409          test ! -s conftest.err
15410        } && test -s conftest.$ac_objext; then
15411   ac_cv_prog_cc_g=yes
15412 else
15413   echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416         CFLAGS=""
15417       cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 int
15425 main ()
15426 {
15427
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_compile") 2>conftest.er1
15440   ac_status=$?
15441   grep -v '^ *+' conftest.er1 >conftest.err
15442   rm -f conftest.er1
15443   cat conftest.err >&5
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } && {
15446          test -z "$ac_c_werror_flag" ||
15447          test ! -s conftest.err
15448        } && test -s conftest.$ac_objext; then
15449   :
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454         ac_c_werror_flag=$ac_save_c_werror_flag
15455          CFLAGS="-g"
15456          cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462
15463 int
15464 main ()
15465 {
15466
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475   *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478   (eval "$ac_compile") 2>conftest.er1
15479   ac_status=$?
15480   grep -v '^ *+' conftest.er1 >conftest.err
15481   rm -f conftest.er1
15482   cat conftest.err >&5
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } && {
15485          test -z "$ac_c_werror_flag" ||
15486          test ! -s conftest.err
15487        } && test -s conftest.$ac_objext; then
15488   ac_cv_prog_cc_g=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 fi
15498
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500 fi
15501
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503    ac_c_werror_flag=$ac_save_c_werror_flag
15504 fi
15505 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15507 if test "$ac_test_CFLAGS" = set; then
15508   CFLAGS=$ac_save_CFLAGS
15509 elif test $ac_cv_prog_cc_g = yes; then
15510   if test "$GCC" = yes; then
15511     CFLAGS="-g -O2"
15512   else
15513     CFLAGS="-g"
15514   fi
15515 else
15516   if test "$GCC" = yes; then
15517     CFLAGS="-O2"
15518   else
15519     CFLAGS=
15520   fi
15521 fi
15522             fi
15523         fi
15524
15525                         case `uname -s` in
15526             AIX*)
15527
15528
15529     ac_ext=c
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534
15535     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15536 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15537 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550
15551              #ifndef __xlC__
15552                 choke me
15553              #endif
15554
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (ac_try="$ac_compile"
15561 case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_compile") 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } && {
15573          test -z "$ac_c_werror_flag" ||
15574          test ! -s conftest.err
15575        } && test -s conftest.$ac_objext; then
15576   bakefile_cv_c_compiler___xlC__=yes
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         bakefile_cv_c_compiler___xlC__=no
15582
15583 fi
15584
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586
15587
15588 fi
15589 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15590 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15591     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15592         :; XLCC=yes
15593     else
15594         :;
15595     fi
15596     ac_ext=c
15597 ac_cpp='$CPP $CPPFLAGS'
15598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15601
15602
15603
15604                 ;;
15605
15606             Darwin)
15607
15608
15609     ac_ext=c
15610 ac_cpp='$CPP $CPPFLAGS'
15611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15614
15615     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15616 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15617 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626
15627 int
15628 main ()
15629 {
15630
15631              #ifndef __MWERKS__
15632                 choke me
15633              #endif
15634
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_compile") 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } && {
15653          test -z "$ac_c_werror_flag" ||
15654          test ! -s conftest.err
15655        } && test -s conftest.$ac_objext; then
15656   bakefile_cv_c_compiler___MWERKS__=yes
15657 else
15658   echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661         bakefile_cv_c_compiler___MWERKS__=no
15662
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666
15667
15668 fi
15669 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15670 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15671     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15672         :; MWCC=yes
15673     else
15674         :;
15675     fi
15676     ac_ext=c
15677 ac_cpp='$CPP $CPPFLAGS'
15678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15681
15682
15683
15684                 if test "$MWCC" != "yes"; then
15685
15686
15687     ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692
15693     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15694 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15695 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698   cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h.  */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h.  */
15704
15705 int
15706 main ()
15707 {
15708
15709              #ifndef __xlC__
15710                 choke me
15711              #endif
15712
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } && {
15731          test -z "$ac_c_werror_flag" ||
15732          test ! -s conftest.err
15733        } && test -s conftest.$ac_objext; then
15734   bakefile_cv_c_compiler___xlC__=yes
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739         bakefile_cv_c_compiler___xlC__=no
15740
15741 fi
15742
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744
15745
15746 fi
15747 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15748 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15749     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15750         :; XLCC=yes
15751     else
15752         :;
15753     fi
15754     ac_ext=c
15755 ac_cpp='$CPP $CPPFLAGS'
15756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15759
15760
15761
15762                 fi
15763                 ;;
15764
15765             IRIX*)
15766
15767
15768     ac_ext=c
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15775 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15776 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15777   echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786 int
15787 main ()
15788 {
15789
15790              #ifndef _SGI_COMPILER_VERSION
15791                 choke me
15792              #endif
15793
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_compile") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } && {
15812          test -z "$ac_c_werror_flag" ||
15813          test ! -s conftest.err
15814        } && test -s conftest.$ac_objext; then
15815   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15821
15822 fi
15823
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825
15826
15827 fi
15828 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15829 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15830     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15831         :; SGICC=yes
15832     else
15833         :;
15834     fi
15835     ac_ext=c
15836 ac_cpp='$CPP $CPPFLAGS'
15837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15840
15841
15842
15843                 ;;
15844
15845             Linux*)
15846                                                 if test "$INTELCC" != "yes"; then
15847
15848
15849     ac_ext=c
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
15855     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15856 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15857 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866
15867 int
15868 main ()
15869 {
15870
15871              #ifndef __SUNPRO_C
15872                 choke me
15873              #endif
15874
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_compile") 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } && {
15893          test -z "$ac_c_werror_flag" ||
15894          test ! -s conftest.err
15895        } && test -s conftest.$ac_objext; then
15896   bakefile_cv_c_compiler___SUNPRO_C=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901         bakefile_cv_c_compiler___SUNPRO_C=no
15902
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906
15907
15908 fi
15909 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15910 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15911     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15912         :; SUNCC=yes
15913     else
15914         :;
15915     fi
15916     ac_ext=c
15917 ac_cpp='$CPP $CPPFLAGS'
15918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15921
15922
15923
15924                 fi
15925                 ;;
15926
15927             HP-UX*)
15928
15929
15930     ac_ext=c
15931 ac_cpp='$CPP $CPPFLAGS'
15932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15935
15936     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15937 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15938 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947
15948 int
15949 main ()
15950 {
15951
15952              #ifndef __HP_cc
15953                 choke me
15954              #endif
15955
15956   ;
15957   return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext
15961 if { (ac_try="$ac_compile"
15962 case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_compile") 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && {
15974          test -z "$ac_c_werror_flag" ||
15975          test ! -s conftest.err
15976        } && test -s conftest.$ac_objext; then
15977   bakefile_cv_c_compiler___HP_cc=yes
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982         bakefile_cv_c_compiler___HP_cc=no
15983
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987
15988
15989 fi
15990 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15991 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15992     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15993         :; HPCC=yes
15994     else
15995         :;
15996     fi
15997     ac_ext=c
15998 ac_cpp='$CPP $CPPFLAGS'
15999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16002
16003
16004
16005                 ;;
16006
16007             OSF1)
16008
16009
16010     ac_ext=c
16011 ac_cpp='$CPP $CPPFLAGS'
16012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16015
16016     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16017 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16018 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027
16028 int
16029 main ()
16030 {
16031
16032              #ifndef __DECC
16033                 choke me
16034              #endif
16035
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   bakefile_cv_c_compiler___DECC=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062         bakefile_cv_c_compiler___DECC=no
16063
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067
16068
16069 fi
16070 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16071 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16072     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16073         :; COMPAQCC=yes
16074     else
16075         :;
16076     fi
16077     ac_ext=c
16078 ac_cpp='$CPP $CPPFLAGS'
16079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16082
16083
16084
16085                 ;;
16086
16087             SunOS)
16088
16089
16090     ac_ext=c
16091 ac_cpp='$CPP $CPPFLAGS'
16092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16095
16096     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16097 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16098 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h.  */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h.  */
16107
16108 int
16109 main ()
16110 {
16111
16112              #ifndef __SUNPRO_C
16113                 choke me
16114              #endif
16115
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_compile") 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } && {
16134          test -z "$ac_c_werror_flag" ||
16135          test ! -s conftest.err
16136        } && test -s conftest.$ac_objext; then
16137   bakefile_cv_c_compiler___SUNPRO_C=yes
16138 else
16139   echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142         bakefile_cv_c_compiler___SUNPRO_C=no
16143
16144 fi
16145
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147
16148
16149 fi
16150 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16151 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16152     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16153         :; SUNCC=yes
16154     else
16155         :;
16156     fi
16157     ac_ext=c
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162
16163
16164
16165                 ;;
16166         esac
16167     fi
16168
16169
16170
16171 ac_ext=c
16172 ac_cpp='$CPP $CPPFLAGS'
16173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16176 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16177 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16178 # On Suns, sometimes $CPP names a directory.
16179 if test -n "$CPP" && test -d "$CPP"; then
16180   CPP=
16181 fi
16182 if test -z "$CPP"; then
16183   if test "${ac_cv_prog_CPP+set}" = set; then
16184   echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186       # Double quotes because CPP needs to be expanded
16187     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16188     do
16189       ac_preproc_ok=false
16190 for ac_c_preproc_warn_flag in '' yes
16191 do
16192   # Use a header file that comes with gcc, so configuring glibc
16193   # with a fresh cross-compiler works.
16194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16195   # <limits.h> exists even on freestanding compilers.
16196   # On the NeXT, cc -E runs the code through the compiler's parser,
16197   # not just through cpp. "Syntax error" is here to catch this case.
16198   cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 #ifdef __STDC__
16205 # include <limits.h>
16206 #else
16207 # include <assert.h>
16208 #endif
16209                      Syntax error
16210 _ACEOF
16211 if { (ac_try="$ac_cpp conftest.$ac_ext"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } >/dev/null && {
16224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        }; then
16227   :
16228 else
16229   echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232   # Broken: fails on valid input.
16233 continue
16234 fi
16235
16236 rm -f conftest.err conftest.$ac_ext
16237
16238   # OK, works on sane cases.  Now check whether nonexistent headers
16239   # can be detected and how.
16240   cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 #include <ac_nonexistent.h>
16247 _ACEOF
16248 if { (ac_try="$ac_cpp conftest.$ac_ext"
16249 case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16255   ac_status=$?
16256   grep -v '^ *+' conftest.er1 >conftest.err
16257   rm -f conftest.er1
16258   cat conftest.err >&5
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); } >/dev/null && {
16261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16262          test ! -s conftest.err
16263        }; then
16264   # Broken: success on invalid input.
16265 continue
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270   # Passes both tests.
16271 ac_preproc_ok=:
16272 break
16273 fi
16274
16275 rm -f conftest.err conftest.$ac_ext
16276
16277 done
16278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16279 rm -f conftest.err conftest.$ac_ext
16280 if $ac_preproc_ok; then
16281   break
16282 fi
16283
16284     done
16285     ac_cv_prog_CPP=$CPP
16286
16287 fi
16288   CPP=$ac_cv_prog_CPP
16289 else
16290   ac_cv_prog_CPP=$CPP
16291 fi
16292 { echo "$as_me:$LINENO: result: $CPP" >&5
16293 echo "${ECHO_T}$CPP" >&6; }
16294 ac_preproc_ok=false
16295 for ac_c_preproc_warn_flag in '' yes
16296 do
16297   # Use a header file that comes with gcc, so configuring glibc
16298   # with a fresh cross-compiler works.
16299   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16300   # <limits.h> exists even on freestanding compilers.
16301   # On the NeXT, cc -E runs the code through the compiler's parser,
16302   # not just through cpp. "Syntax error" is here to catch this case.
16303   cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 #ifdef __STDC__
16310 # include <limits.h>
16311 #else
16312 # include <assert.h>
16313 #endif
16314                      Syntax error
16315 _ACEOF
16316 if { (ac_try="$ac_cpp conftest.$ac_ext"
16317 case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } >/dev/null && {
16329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16330          test ! -s conftest.err
16331        }; then
16332   :
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337   # Broken: fails on valid input.
16338 continue
16339 fi
16340
16341 rm -f conftest.err conftest.$ac_ext
16342
16343   # OK, works on sane cases.  Now check whether nonexistent headers
16344   # can be detected and how.
16345   cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351 #include <ac_nonexistent.h>
16352 _ACEOF
16353 if { (ac_try="$ac_cpp conftest.$ac_ext"
16354 case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360   ac_status=$?
16361   grep -v '^ *+' conftest.er1 >conftest.err
16362   rm -f conftest.er1
16363   cat conftest.err >&5
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } >/dev/null && {
16366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16367          test ! -s conftest.err
16368        }; then
16369   # Broken: success on invalid input.
16370 continue
16371 else
16372   echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16374
16375   # Passes both tests.
16376 ac_preproc_ok=:
16377 break
16378 fi
16379
16380 rm -f conftest.err conftest.$ac_ext
16381
16382 done
16383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16384 rm -f conftest.err conftest.$ac_ext
16385 if $ac_preproc_ok; then
16386   :
16387 else
16388   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16389 See \`config.log' for more details." >&5
16390 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16391 See \`config.log' for more details." >&2;}
16392    { (exit 1); exit 1; }; }
16393 fi
16394
16395 ac_ext=c
16396 ac_cpp='$CPP $CPPFLAGS'
16397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16400
16401
16402 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16403 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16404 if test "${ac_cv_path_GREP+set}" = set; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407   # Extract the first word of "grep ggrep" to use in msg output
16408 if test -z "$GREP"; then
16409 set dummy grep ggrep; ac_prog_name=$2
16410 if test "${ac_cv_path_GREP+set}" = set; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413   ac_path_GREP_found=false
16414 # Loop through the user's path and test for each of PROGNAME-LIST
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16417 do
16418   IFS=$as_save_IFS
16419   test -z "$as_dir" && as_dir=.
16420   for ac_prog in grep ggrep; do
16421   for ac_exec_ext in '' $ac_executable_extensions; do
16422     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16423     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16424     # Check for GNU ac_path_GREP and select it if it is found.
16425   # Check for GNU $ac_path_GREP
16426 case `"$ac_path_GREP" --version 2>&1` in
16427 *GNU*)
16428   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16429 *)
16430   ac_count=0
16431   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16432   while :
16433   do
16434     cat "conftest.in" "conftest.in" >"conftest.tmp"
16435     mv "conftest.tmp" "conftest.in"
16436     cp "conftest.in" "conftest.nl"
16437     echo 'GREP' >> "conftest.nl"
16438     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16440     ac_count=`expr $ac_count + 1`
16441     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16442       # Best one so far, save it but keep looking for a better one
16443       ac_cv_path_GREP="$ac_path_GREP"
16444       ac_path_GREP_max=$ac_count
16445     fi
16446     # 10*(2^10) chars as input seems more than enough
16447     test $ac_count -gt 10 && break
16448   done
16449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16450 esac
16451
16452
16453     $ac_path_GREP_found && break 3
16454   done
16455 done
16456
16457 done
16458 IFS=$as_save_IFS
16459
16460
16461 fi
16462
16463 GREP="$ac_cv_path_GREP"
16464 if test -z "$GREP"; then
16465   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16466 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16467    { (exit 1); exit 1; }; }
16468 fi
16469
16470 else
16471   ac_cv_path_GREP=$GREP
16472 fi
16473
16474
16475 fi
16476 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16477 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16478  GREP="$ac_cv_path_GREP"
16479
16480
16481 { echo "$as_me:$LINENO: checking for egrep" >&5
16482 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16483 if test "${ac_cv_path_EGREP+set}" = set; then
16484   echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16487    then ac_cv_path_EGREP="$GREP -E"
16488    else
16489      # Extract the first word of "egrep" to use in msg output
16490 if test -z "$EGREP"; then
16491 set dummy egrep; ac_prog_name=$2
16492 if test "${ac_cv_path_EGREP+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_path_EGREP_found=false
16496 # Loop through the user's path and test for each of PROGNAME-LIST
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16499 do
16500   IFS=$as_save_IFS
16501   test -z "$as_dir" && as_dir=.
16502   for ac_prog in egrep; do
16503   for ac_exec_ext in '' $ac_executable_extensions; do
16504     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16505     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16506     # Check for GNU ac_path_EGREP and select it if it is found.
16507   # Check for GNU $ac_path_EGREP
16508 case `"$ac_path_EGREP" --version 2>&1` in
16509 *GNU*)
16510   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16511 *)
16512   ac_count=0
16513   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16514   while :
16515   do
16516     cat "conftest.in" "conftest.in" >"conftest.tmp"
16517     mv "conftest.tmp" "conftest.in"
16518     cp "conftest.in" "conftest.nl"
16519     echo 'EGREP' >> "conftest.nl"
16520     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16522     ac_count=`expr $ac_count + 1`
16523     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16524       # Best one so far, save it but keep looking for a better one
16525       ac_cv_path_EGREP="$ac_path_EGREP"
16526       ac_path_EGREP_max=$ac_count
16527     fi
16528     # 10*(2^10) chars as input seems more than enough
16529     test $ac_count -gt 10 && break
16530   done
16531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16532 esac
16533
16534
16535     $ac_path_EGREP_found && break 3
16536   done
16537 done
16538
16539 done
16540 IFS=$as_save_IFS
16541
16542
16543 fi
16544
16545 EGREP="$ac_cv_path_EGREP"
16546 if test -z "$EGREP"; then
16547   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16548 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16549    { (exit 1); exit 1; }; }
16550 fi
16551
16552 else
16553   ac_cv_path_EGREP=$EGREP
16554 fi
16555
16556
16557    fi
16558 fi
16559 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16560 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16561  EGREP="$ac_cv_path_EGREP"
16562
16563
16564 if test $ac_cv_c_compiler_gnu = yes; then
16565     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16566 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16567 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570     ac_pattern="Autoconf.*'x'"
16571   cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 #include <sgtty.h>
16578 Autoconf TIOCGETP
16579 _ACEOF
16580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16581   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16582   ac_cv_prog_gcc_traditional=yes
16583 else
16584   ac_cv_prog_gcc_traditional=no
16585 fi
16586 rm -f conftest*
16587
16588
16589   if test $ac_cv_prog_gcc_traditional = no; then
16590     cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 #include <termio.h>
16597 Autoconf TCGETA
16598 _ACEOF
16599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16600   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16601   ac_cv_prog_gcc_traditional=yes
16602 fi
16603 rm -f conftest*
16604
16605   fi
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16608 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16609   if test $ac_cv_prog_gcc_traditional = yes; then
16610     CC="$CC -traditional"
16611   fi
16612 fi
16613
16614
16615 CXXFLAGS=${CXXFLAGS:=}
16616
16617
16618
16619     ac_ext=cpp
16620 ac_cpp='$CXXCPP $CPPFLAGS'
16621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16624 if test -z "$CXX"; then
16625   if test -n "$CCC"; then
16626     CXX=$CCC
16627   else
16628     if test -n "$ac_tool_prefix"; then
16629   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16630   do
16631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16635 if test "${ac_cv_prog_CXX+set}" = set; then
16636   echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638   if test -n "$CXX"; then
16639   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16640 else
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16643 do
16644   IFS=$as_save_IFS
16645   test -z "$as_dir" && as_dir=.
16646   for ac_exec_ext in '' $ac_executable_extensions; do
16647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16648     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16650     break 2
16651   fi
16652 done
16653 done
16654 IFS=$as_save_IFS
16655
16656 fi
16657 fi
16658 CXX=$ac_cv_prog_CXX
16659 if test -n "$CXX"; then
16660   { echo "$as_me:$LINENO: result: $CXX" >&5
16661 echo "${ECHO_T}$CXX" >&6; }
16662 else
16663   { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16665 fi
16666
16667
16668     test -n "$CXX" && break
16669   done
16670 fi
16671 if test -z "$CXX"; then
16672   ac_ct_CXX=$CXX
16673   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16674 do
16675   # Extract the first word of "$ac_prog", so it can be a program name with args.
16676 set dummy $ac_prog; ac_word=$2
16677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16679 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   if test -n "$ac_ct_CXX"; then
16683   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16684 else
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16687 do
16688   IFS=$as_save_IFS
16689   test -z "$as_dir" && as_dir=.
16690   for ac_exec_ext in '' $ac_executable_extensions; do
16691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16692     ac_cv_prog_ac_ct_CXX="$ac_prog"
16693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16694     break 2
16695   fi
16696 done
16697 done
16698 IFS=$as_save_IFS
16699
16700 fi
16701 fi
16702 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16703 if test -n "$ac_ct_CXX"; then
16704   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16705 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16706 else
16707   { echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6; }
16709 fi
16710
16711
16712   test -n "$ac_ct_CXX" && break
16713 done
16714
16715   if test "x$ac_ct_CXX" = x; then
16716     CXX="g++"
16717   else
16718     case $cross_compiling:$ac_tool_warned in
16719 yes:)
16720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16721 whose name does not start with the host triplet.  If you think this
16722 configuration is useful to you, please write to autoconf@gnu.org." >&5
16723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16724 whose name does not start with the host triplet.  If you think this
16725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16726 ac_tool_warned=yes ;;
16727 esac
16728     CXX=$ac_ct_CXX
16729   fi
16730 fi
16731
16732   fi
16733 fi
16734 # Provide some information about the compiler.
16735 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16736 ac_compiler=`set X $ac_compile; echo $2`
16737 { (ac_try="$ac_compiler --version >&5"
16738 case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_compiler --version >&5") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }
16747 { (ac_try="$ac_compiler -v >&5"
16748 case "(($ac_try" in
16749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750   *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753   (eval "$ac_compiler -v >&5") 2>&5
16754   ac_status=$?
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); }
16757 { (ac_try="$ac_compiler -V >&5"
16758 case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_compiler -V >&5") 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }
16767
16768 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16769 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16770 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779
16780 int
16781 main ()
16782 {
16783 #ifndef __GNUC__
16784        choke me
16785 #endif
16786
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795   *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798   (eval "$ac_compile") 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } && {
16805          test -z "$ac_cxx_werror_flag" ||
16806          test ! -s conftest.err
16807        } && test -s conftest.$ac_objext; then
16808   ac_compiler_gnu=yes
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813         ac_compiler_gnu=no
16814 fi
16815
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16818
16819 fi
16820 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16821 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16822 GXX=`test $ac_compiler_gnu = yes && echo yes`
16823 ac_test_CXXFLAGS=${CXXFLAGS+set}
16824 ac_save_CXXFLAGS=$CXXFLAGS
16825 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16826 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16827 if test "${ac_cv_prog_cxx_g+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16831    ac_cxx_werror_flag=yes
16832    ac_cv_prog_cxx_g=no
16833    CXXFLAGS="-g"
16834    cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840
16841 int
16842 main ()
16843 {
16844
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext
16850 if { (ac_try="$ac_compile"
16851 case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_compile") 2>conftest.er1
16857   ac_status=$?
16858   grep -v '^ *+' conftest.er1 >conftest.err
16859   rm -f conftest.er1
16860   cat conftest.err >&5
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } && {
16863          test -z "$ac_cxx_werror_flag" ||
16864          test ! -s conftest.err
16865        } && test -s conftest.$ac_objext; then
16866   ac_cv_prog_cxx_g=yes
16867 else
16868   echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871         CXXFLAGS=""
16872       cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878
16879 int
16880 main ()
16881 {
16882
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (ac_try="$ac_compile"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_compile") 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } && {
16901          test -z "$ac_cxx_werror_flag" ||
16902          test ! -s conftest.err
16903        } && test -s conftest.$ac_objext; then
16904   :
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16910          CXXFLAGS="-g"
16911          cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917
16918 int
16919 main ()
16920 {
16921
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_compile") 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } && {
16940          test -z "$ac_cxx_werror_flag" ||
16941          test ! -s conftest.err
16942        } && test -s conftest.$ac_objext; then
16943   ac_cv_prog_cxx_g=yes
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948
16949 fi
16950
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 fi
16953
16954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 fi
16956
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16959 fi
16960 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16961 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16962 if test "$ac_test_CXXFLAGS" = set; then
16963   CXXFLAGS=$ac_save_CXXFLAGS
16964 elif test $ac_cv_prog_cxx_g = yes; then
16965   if test "$GXX" = yes; then
16966     CXXFLAGS="-g -O2"
16967   else
16968     CXXFLAGS="-g"
16969   fi
16970 else
16971   if test "$GXX" = yes; then
16972     CXXFLAGS="-O2"
16973   else
16974     CXXFLAGS=
16975   fi
16976 fi
16977 ac_ext=c
16978 ac_cpp='$CPP $CPPFLAGS'
16979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16982
16983
16984
16985
16986     ac_ext=cpp
16987 ac_cpp='$CXXCPP $CPPFLAGS'
16988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16991
16992     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16993 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16994 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003
17004 int
17005 main ()
17006 {
17007
17008              #ifndef __INTEL_COMPILER
17009                 choke me
17010              #endif
17011
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_compile") 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } && {
17030          test -z "$ac_cxx_werror_flag" ||
17031          test ! -s conftest.err
17032        } && test -s conftest.$ac_objext; then
17033   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17039
17040 fi
17041
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043
17044
17045 fi
17046 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17047 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17048     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17049         :; INTELCXX=yes
17050     else
17051         :;
17052     fi
17053     ac_ext=c
17054 ac_cpp='$CPP $CPPFLAGS'
17055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058
17059
17060
17061
17062         if test "$INTELCXX" = "yes"; then
17063
17064
17065     ac_ext=cpp
17066 ac_cpp='$CXXCPP $CPPFLAGS'
17067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17070
17071     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17072 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17073 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082
17083 int
17084 main ()
17085 {
17086
17087              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17088                 choke me
17089              #endif
17090
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext
17096 if { (ac_try="$ac_compile"
17097 case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_compile") 2>conftest.er1
17103   ac_status=$?
17104   grep -v '^ *+' conftest.er1 >conftest.err
17105   rm -f conftest.er1
17106   cat conftest.err >&5
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); } && {
17109          test -z "$ac_cxx_werror_flag" ||
17110          test ! -s conftest.err
17111        } && test -s conftest.$ac_objext; then
17112   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17118
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122
17123
17124 fi
17125 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17126 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17127     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17128         :; INTELCXX8=yes
17129     else
17130         :;
17131     fi
17132     ac_ext=c
17133 ac_cpp='$CPP $CPPFLAGS'
17134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17137
17138
17139
17140
17141
17142     ac_ext=cpp
17143 ac_cpp='$CXXCPP $CPPFLAGS'
17144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17147
17148     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17149 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17150 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17151   echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153   cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 int
17161 main ()
17162 {
17163
17164              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17165                 choke me
17166              #endif
17167
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext
17173 if { (ac_try="$ac_compile"
17174 case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_compile") 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } && {
17186          test -z "$ac_cxx_werror_flag" ||
17187          test ! -s conftest.err
17188        } && test -s conftest.$ac_objext; then
17189   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17195
17196 fi
17197
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199
17200
17201 fi
17202 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17203 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17204     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17205         :; INTELCXX10=yes
17206     else
17207         :;
17208     fi
17209     ac_ext=c
17210 ac_cpp='$CPP $CPPFLAGS'
17211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17214
17215
17216
17217     fi
17218
17219         if test "x$GCXX" != "xyes"; then
17220         if test "xCXX" = "xC"; then
17221             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17222 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17223 if test "${bakefile_cv_c_exto+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232
17233 int
17234 main ()
17235 {
17236
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest.$ac_ext.o
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243   (eval $ac_compile) 2>&5
17244   ac_status=$?
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); }; then
17247   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17248     case $ac_file in
17249         conftest.$ac_ext.o)
17250             bakefile_cv_c_exto="-ext o"
17251             ;;
17252         *)
17253             ;;
17254     esac
17255 done
17256 else
17257   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17258 See \`config.log' for more details." >&5
17259 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17260 See \`config.log' for more details." >&2;}
17261    { (exit 1); exit 1; }; }
17262
17263 fi
17264
17265 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17266
17267 fi
17268 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17269 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17270 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17271     if test "c" = "c"; then
17272         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17273     fi
17274     if test "c" = "cxx"; then
17275         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17276     fi
17277 fi
17278
17279             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17280                 unset ac_cv_prog_cc_g
17281                 ac_test_CFLAGS=${CFLAGS+set}
17282 ac_save_CFLAGS=$CFLAGS
17283 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17285 if test "${ac_cv_prog_cc_g+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288   ac_save_c_werror_flag=$ac_c_werror_flag
17289    ac_c_werror_flag=yes
17290    ac_cv_prog_cc_g=no
17291    CFLAGS="-g"
17292    cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298
17299 int
17300 main ()
17301 {
17302
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (ac_try="$ac_compile"
17309 case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314   (eval "$ac_compile") 2>conftest.er1
17315   ac_status=$?
17316   grep -v '^ *+' conftest.er1 >conftest.err
17317   rm -f conftest.er1
17318   cat conftest.err >&5
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } && {
17321          test -z "$ac_c_werror_flag" ||
17322          test ! -s conftest.err
17323        } && test -s conftest.$ac_objext; then
17324   ac_cv_prog_cc_g=yes
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329         CFLAGS=""
17330       cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336
17337 int
17338 main ()
17339 {
17340
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (ac_try="$ac_compile"
17347 case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352   (eval "$ac_compile") 2>conftest.er1
17353   ac_status=$?
17354   grep -v '^ *+' conftest.er1 >conftest.err
17355   rm -f conftest.er1
17356   cat conftest.err >&5
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } && {
17359          test -z "$ac_c_werror_flag" ||
17360          test ! -s conftest.err
17361        } && test -s conftest.$ac_objext; then
17362   :
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         ac_c_werror_flag=$ac_save_c_werror_flag
17368          CFLAGS="-g"
17369          cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375
17376 int
17377 main ()
17378 {
17379
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_compile") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && {
17398          test -z "$ac_c_werror_flag" ||
17399          test ! -s conftest.err
17400        } && test -s conftest.$ac_objext; then
17401   ac_cv_prog_cc_g=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411
17412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 fi
17414
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416    ac_c_werror_flag=$ac_save_c_werror_flag
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17420 if test "$ac_test_CFLAGS" = set; then
17421   CFLAGS=$ac_save_CFLAGS
17422 elif test $ac_cv_prog_cc_g = yes; then
17423   if test "$GCC" = yes; then
17424     CFLAGS="-g -O2"
17425   else
17426     CFLAGS="-g"
17427   fi
17428 else
17429   if test "$GCC" = yes; then
17430     CFLAGS="-O2"
17431   else
17432     CFLAGS=
17433   fi
17434 fi
17435             fi
17436         fi
17437
17438                         case `uname -s` in
17439             AIX*)
17440
17441
17442     ac_ext=cpp
17443 ac_cpp='$CXXCPP $CPPFLAGS'
17444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17447
17448     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17449 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17450 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453   cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h.  */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h.  */
17459
17460 int
17461 main ()
17462 {
17463
17464              #ifndef __xlC__
17465                 choke me
17466              #endif
17467
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext
17473 if { (ac_try="$ac_compile"
17474 case "(($ac_try" in
17475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476   *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479   (eval "$ac_compile") 2>conftest.er1
17480   ac_status=$?
17481   grep -v '^ *+' conftest.er1 >conftest.err
17482   rm -f conftest.er1
17483   cat conftest.err >&5
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } && {
17486          test -z "$ac_cxx_werror_flag" ||
17487          test ! -s conftest.err
17488        } && test -s conftest.$ac_objext; then
17489   bakefile_cv_cxx_compiler___xlC__=yes
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494         bakefile_cv_cxx_compiler___xlC__=no
17495
17496 fi
17497
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499
17500
17501 fi
17502 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17503 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17504     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17505         :; XLCXX=yes
17506     else
17507         :;
17508     fi
17509     ac_ext=c
17510 ac_cpp='$CPP $CPPFLAGS'
17511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17514
17515
17516
17517                 ;;
17518
17519             Darwin)
17520
17521
17522     ac_ext=cpp
17523 ac_cpp='$CXXCPP $CPPFLAGS'
17524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17527
17528     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17529 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17530 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539
17540 int
17541 main ()
17542 {
17543
17544              #ifndef __MWERKS__
17545                 choke me
17546              #endif
17547
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (ac_try="$ac_compile"
17554 case "(($ac_try" in
17555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556   *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559   (eval "$ac_compile") 2>conftest.er1
17560   ac_status=$?
17561   grep -v '^ *+' conftest.er1 >conftest.err
17562   rm -f conftest.er1
17563   cat conftest.err >&5
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && {
17566          test -z "$ac_cxx_werror_flag" ||
17567          test ! -s conftest.err
17568        } && test -s conftest.$ac_objext; then
17569   bakefile_cv_cxx_compiler___MWERKS__=yes
17570 else
17571   echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574         bakefile_cv_cxx_compiler___MWERKS__=no
17575
17576 fi
17577
17578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17579
17580
17581 fi
17582 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17583 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17584     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17585         :; MWCXX=yes
17586     else
17587         :;
17588     fi
17589     ac_ext=c
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595
17596
17597                 if test "$MWCXX" != "yes"; then
17598
17599
17600     ac_ext=cpp
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605
17606     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17607 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17608 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617
17618 int
17619 main ()
17620 {
17621
17622              #ifndef __xlC__
17623                 choke me
17624              #endif
17625
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_compile") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } && {
17644          test -z "$ac_cxx_werror_flag" ||
17645          test ! -s conftest.err
17646        } && test -s conftest.$ac_objext; then
17647   bakefile_cv_cxx_compiler___xlC__=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         bakefile_cv_cxx_compiler___xlC__=no
17653
17654 fi
17655
17656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657
17658
17659 fi
17660 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17661 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17662     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17663         :; XLCXX=yes
17664     else
17665         :;
17666     fi
17667     ac_ext=c
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
17673
17674
17675                 fi
17676                 ;;
17677
17678             IRIX*)
17679
17680
17681     ac_ext=cpp
17682 ac_cpp='$CXXCPP $CPPFLAGS'
17683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686
17687     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17688 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17689 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698
17699 int
17700 main ()
17701 {
17702
17703              #ifndef _SGI_COMPILER_VERSION
17704                 choke me
17705              #endif
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } && {
17725          test -z "$ac_cxx_werror_flag" ||
17726          test ! -s conftest.err
17727        } && test -s conftest.$ac_objext; then
17728   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17734
17735 fi
17736
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738
17739
17740 fi
17741 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17742 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17743     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17744         :; SGICXX=yes
17745     else
17746         :;
17747     fi
17748     ac_ext=c
17749 ac_cpp='$CPP $CPPFLAGS'
17750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17753
17754
17755
17756                 ;;
17757
17758             Linux*)
17759                                                 if test "$INTELCXX" != "yes"; then
17760
17761
17762     ac_ext=cpp
17763 ac_cpp='$CXXCPP $CPPFLAGS'
17764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17767
17768     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17769 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17770 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17771   echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773   cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779
17780 int
17781 main ()
17782 {
17783
17784              #ifndef __SUNPRO_CC
17785                 choke me
17786              #endif
17787
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext
17793 if { (ac_try="$ac_compile"
17794 case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_compile") 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } && {
17806          test -z "$ac_cxx_werror_flag" ||
17807          test ! -s conftest.err
17808        } && test -s conftest.$ac_objext; then
17809   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17815
17816 fi
17817
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819
17820
17821 fi
17822 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17823 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17824     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17825         :; SUNCXX=yes
17826     else
17827         :;
17828     fi
17829     ac_ext=c
17830 ac_cpp='$CPP $CPPFLAGS'
17831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17834
17835
17836
17837                 fi
17838                 ;;
17839
17840             HP-UX*)
17841
17842
17843     ac_ext=cpp
17844 ac_cpp='$CXXCPP $CPPFLAGS'
17845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17848
17849     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17850 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17851 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860
17861 int
17862 main ()
17863 {
17864
17865              #ifndef __HP_aCC
17866                 choke me
17867              #endif
17868
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_compile") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } && {
17887          test -z "$ac_cxx_werror_flag" ||
17888          test ! -s conftest.err
17889        } && test -s conftest.$ac_objext; then
17890   bakefile_cv_cxx_compiler___HP_aCC=yes
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895         bakefile_cv_cxx_compiler___HP_aCC=no
17896
17897 fi
17898
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900
17901
17902 fi
17903 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17904 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17905     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17906         :; HPCXX=yes
17907     else
17908         :;
17909     fi
17910     ac_ext=c
17911 ac_cpp='$CPP $CPPFLAGS'
17912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17915
17916
17917
17918                 ;;
17919
17920             OSF1)
17921
17922
17923     ac_ext=cpp
17924 ac_cpp='$CXXCPP $CPPFLAGS'
17925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17928
17929     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17930 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17931 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 int
17942 main ()
17943 {
17944
17945              #ifndef __DECCXX
17946                 choke me
17947              #endif
17948
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_compile") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } && {
17967          test -z "$ac_cxx_werror_flag" ||
17968          test ! -s conftest.err
17969        } && test -s conftest.$ac_objext; then
17970   bakefile_cv_cxx_compiler___DECCXX=yes
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975         bakefile_cv_cxx_compiler___DECCXX=no
17976
17977 fi
17978
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980
17981
17982 fi
17983 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17984 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17985     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17986         :; COMPAQCXX=yes
17987     else
17988         :;
17989     fi
17990     ac_ext=c
17991 ac_cpp='$CPP $CPPFLAGS'
17992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995
17996
17997
17998                 ;;
17999
18000             SunOS)
18001
18002
18003     ac_ext=cpp
18004 ac_cpp='$CXXCPP $CPPFLAGS'
18005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18008
18009     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18010 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18011 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 int
18022 main ()
18023 {
18024
18025              #ifndef __SUNPRO_CC
18026                 choke me
18027              #endif
18028
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext
18034 if { (ac_try="$ac_compile"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_compile") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && {
18047          test -z "$ac_cxx_werror_flag" ||
18048          test ! -s conftest.err
18049        } && test -s conftest.$ac_objext; then
18050   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18056
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060
18061
18062 fi
18063 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18064 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18065     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18066         :; SUNCXX=yes
18067     else
18068         :;
18069     fi
18070     ac_ext=c
18071 ac_cpp='$CPP $CPPFLAGS'
18072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075
18076
18077
18078                 ;;
18079         esac
18080     fi
18081
18082
18083
18084 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18085     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18086 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18087    { (exit 1); exit 1; }; }
18088 fi
18089
18090 if test "x$SUNCXX" != xyes; then
18091     if test -n "$ac_tool_prefix"; then
18092   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18093 set dummy ${ac_tool_prefix}ar; ac_word=$2
18094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18096 if test "${ac_cv_prog_AR+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   if test -n "$AR"; then
18100   ac_cv_prog_AR="$AR" # Let the user override the test.
18101 else
18102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18103 for as_dir in $PATH
18104 do
18105   IFS=$as_save_IFS
18106   test -z "$as_dir" && as_dir=.
18107   for ac_exec_ext in '' $ac_executable_extensions; do
18108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18109     ac_cv_prog_AR="${ac_tool_prefix}ar"
18110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18111     break 2
18112   fi
18113 done
18114 done
18115 IFS=$as_save_IFS
18116
18117 fi
18118 fi
18119 AR=$ac_cv_prog_AR
18120 if test -n "$AR"; then
18121   { echo "$as_me:$LINENO: result: $AR" >&5
18122 echo "${ECHO_T}$AR" >&6; }
18123 else
18124   { echo "$as_me:$LINENO: result: no" >&5
18125 echo "${ECHO_T}no" >&6; }
18126 fi
18127
18128
18129 fi
18130 if test -z "$ac_cv_prog_AR"; then
18131   ac_ct_AR=$AR
18132   # Extract the first word of "ar", so it can be a program name with args.
18133 set dummy ar; ac_word=$2
18134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18136 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   if test -n "$ac_ct_AR"; then
18140   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18141 else
18142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18143 for as_dir in $PATH
18144 do
18145   IFS=$as_save_IFS
18146   test -z "$as_dir" && as_dir=.
18147   for ac_exec_ext in '' $ac_executable_extensions; do
18148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18149     ac_cv_prog_ac_ct_AR="ar"
18150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18151     break 2
18152   fi
18153 done
18154 done
18155 IFS=$as_save_IFS
18156
18157 fi
18158 fi
18159 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18160 if test -n "$ac_ct_AR"; then
18161   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18162 echo "${ECHO_T}$ac_ct_AR" >&6; }
18163 else
18164   { echo "$as_me:$LINENO: result: no" >&5
18165 echo "${ECHO_T}no" >&6; }
18166 fi
18167
18168   if test "x$ac_ct_AR" = x; then
18169     AR=""
18170   else
18171     case $cross_compiling:$ac_tool_warned in
18172 yes:)
18173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18174 whose name does not start with the host triplet.  If you think this
18175 configuration is useful to you, please write to autoconf@gnu.org." >&5
18176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18177 whose name does not start with the host triplet.  If you think this
18178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18179 ac_tool_warned=yes ;;
18180 esac
18181     AR=$ac_ct_AR
18182   fi
18183 else
18184   AR="$ac_cv_prog_AR"
18185 fi
18186
18187     if test "x$AR" = "x" ; then
18188         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18189 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18190    { (exit 1); exit 1; }; }
18191     fi
18192 fi
18193
18194
18195 if test "$wxUSE_MAC" = 1; then
18196
18197 retest_macosx_linking=no
18198
18199     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18200                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18201             # Implicitly turn on the new --with-macosx-sdk using the default
18202             # SDK which provides the behavior this option has always had.
18203             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18204                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18205 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18206                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18207 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18208                 wxUSE_MACOSX_SDK=yes
18209             fi
18210         else
18211             # Complain to user if he specified an argument to --enable-universal_binary
18212             # and also 1) specified --with-macosx-sdk using the default (yes) or
18213             # 2) specified --with-macosx-sdk using a path or 3) specified
18214             # --without-macosx-sdk (no).
18215             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18216                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18217 See \`config.log' for more details." >&5
18218 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18219 See \`config.log' for more details." >&2;}
18220    { (exit 1); exit 1; }; }
18221             else
18222                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18223                 # special-case the empty string because the below test simply
18224                 # converts "no" to the empty string anyway.
18225                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18226                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18227 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18228             fi
18229         fi
18230                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18231         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18232         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18233         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18234         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18235         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18236                                                                                                                 retest_macosx_linking=yes
18237
18238                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18239 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18240         bk_use_pch=no
18241     fi
18242
18243 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18244     wxUSE_MACOSX_SDK=
18245 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18246     # TODO: Search for most recent SDK and use it.
18247     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18248 fi
18249
18250
18251 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18252     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18253 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18254     if ! test -d "$wxUSE_MACOSX_SDK"; then
18255         { { echo "$as_me:$LINENO: error: not found
18256 See \`config.log' for more details." >&5
18257 echo "$as_me: error: not found
18258 See \`config.log' for more details." >&2;}
18259    { (exit 1); exit 1; }; }
18260     else
18261         { echo "$as_me:$LINENO: result: exists" >&5
18262 echo "${ECHO_T}exists" >&6; }
18263     fi
18264     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18265     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18266     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18267     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18268     retest_macosx_linking=yes
18269             fi
18270
18271 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18272     wxUSE_MACOSX_VERSION_MIN=
18273 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18274     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18275         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18276 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18277
18278         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/'`
18279
18280         # If that failed, try again with the new key
18281         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18282
18283             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/'`
18284
18285         fi
18286
18287         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18288             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18289             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18290 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18291         else
18292             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18293 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18294             wxUSE_MACOSX_VERSION_MIN=
18295         fi
18296     else
18297         wxUSE_MACOSX_VERSION_MIN=
18298     fi
18299 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18300     OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18301     if test "$wxUSE_OSX_CARBON" = 1 -o "x$OSX_VERSION" = "x10.4"; then
18302         # otherwise configure stops on leopard for universal_binary
18303         wxUSE_MACOSX_VERSION_MIN=10.4
18304     else
18305         # for OS X Cocoa, use 10.5 so we can get 64-bit compile on Snow Leopard
18306         wxUSE_MACOSX_VERSION_MIN=10.5
18307     fi
18308 fi
18309
18310 NEEDS_GCC40="no"
18311 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18312     NEEDS_GCC40="yes"
18313 fi
18314
18315 if test "$wxUSE_OSX_CARBON" = 1; then
18316     NEEDS_GCC40="yes"
18317 fi
18318
18319 if test "x$NEEDS_GCC40" == "xyes"; then
18320     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18321     # and wants 10.4 compatible code, then 'downgrade' to 4.0
18322     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18323     if test "x$CC" = "xgcc"; then
18324         CCVERSION=`$CC --version | grep 4.[2-9].`
18325         if test "x$CCVERSION" != "x"; then
18326             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18327             CC="/usr/bin/gcc-4.0"
18328         fi
18329     fi
18330
18331     if test "x$CXX" = "xg++"; then
18332         CCVERSION=`$CXX --version | grep 4.[2-9].`
18333         if test "x$CCVERSION" != "x"; then
18334             CXX="/usr/bin/g++-4.0"
18335         fi
18336     fi
18337 fi
18338
18339 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18340     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18341     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18342     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18343     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18344     retest_macosx_linking=yes
18345 fi
18346
18347 if test "x$retest_macosx_linking" = "xyes"; then
18348     ac_ext=c
18349 ac_cpp='$CPP $CPPFLAGS'
18350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18353
18354     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18355 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18356     cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h.  */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h.  */
18362
18363 int
18364 main ()
18365 {
18366
18367   ;
18368   return 0;
18369 }
18370 _ACEOF
18371 rm -f conftest.$ac_objext conftest$ac_exeext
18372 if { (ac_try="$ac_link"
18373 case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_link") 2>conftest.er1
18379   ac_status=$?
18380   grep -v '^ *+' conftest.er1 >conftest.err
18381   rm -f conftest.er1
18382   cat conftest.err >&5
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); } && {
18385          test -z "$ac_c_werror_flag" ||
18386          test ! -s conftest.err
18387        } && test -s conftest$ac_exeext &&
18388        $as_test_x conftest$ac_exeext; then
18389   { echo "$as_me:$LINENO: result: yes" >&5
18390 echo "${ECHO_T}yes" >&6; }
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18396 See \`config.log' for more details." >&5
18397 echo "$as_me: error: no.  Try a different SDK
18398 See \`config.log' for more details." >&2;}
18399    { (exit 1); exit 1; }; }; exit 1
18400 fi
18401
18402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18403       conftest$ac_exeext conftest.$ac_ext
18404     ac_ext=c
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18409
18410
18411     ac_ext=cpp
18412 ac_cpp='$CXXCPP $CPPFLAGS'
18413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18416
18417     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18418 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18419     cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h.  */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h.  */
18425
18426 int
18427 main ()
18428 {
18429
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } && {
18448          test -z "$ac_cxx_werror_flag" ||
18449          test ! -s conftest.err
18450        } && test -s conftest$ac_exeext &&
18451        $as_test_x conftest$ac_exeext; then
18452   { echo "$as_me:$LINENO: result: yes" >&5
18453 echo "${ECHO_T}yes" >&6; }
18454 else
18455   echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18459 See \`config.log' for more details." >&5
18460 echo "$as_me: error: no.  Try a different SDK
18461 See \`config.log' for more details." >&2;}
18462    { (exit 1); exit 1; }; }; exit 1
18463 fi
18464
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466       conftest$ac_exeext conftest.$ac_ext
18467     ac_ext=c
18468 ac_cpp='$CPP $CPPFLAGS'
18469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18472
18473 fi
18474
18475 fi
18476 case "${host}" in
18477
18478                 *-*-darwin* )
18479         INSTALL_PROGRAM="cp -fp"
18480         INSTALL_DATA="cp -fp"
18481         ;;
18482     *)
18483         ;;
18484 esac
18485
18486
18487 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18488     CXXFLAGS="-qunique $CXXFLAGS"
18489 fi
18490
18491 case "${host}" in
18492   powerpc-*-darwin* )
18493     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18494 echo $ECHO_N "checking if __POWERPC__ is already defined... $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
18502 int
18503 main ()
18504 {
18505 #ifndef __POWERPC__
18506         choke me for lack of PowerPC
18507 #endif
18508
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (ac_try="$ac_compile"
18515 case "(($ac_try" in
18516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517   *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520   (eval "$ac_compile") 2>conftest.er1
18521   ac_status=$?
18522   grep -v '^ *+' conftest.er1 >conftest.err
18523   rm -f conftest.er1
18524   cat conftest.err >&5
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } && {
18527          test -z "$ac_c_werror_flag" ||
18528          test ! -s conftest.err
18529        } && test -s conftest.$ac_objext; then
18530   { echo "$as_me:$LINENO: result: yes" >&5
18531 echo "${ECHO_T}yes" >&6; }
18532 else
18533   echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536         { echo "$as_me:$LINENO: result: no" >&5
18537 echo "${ECHO_T}no" >&6; }
18538         cat >>confdefs.h <<\_ACEOF
18539 #define __POWERPC__ 1
18540 _ACEOF
18541
18542
18543 fi
18544
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546   ;;
18547 esac
18548
18549 case "${host}" in
18550   *-*-darwin* )
18551     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18552 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18553     cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h.  */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h.  */
18559 #include <CoreFoundation/CFBase.h>
18560
18561 int
18562 main ()
18563 {
18564
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (ac_try="$ac_compile"
18571 case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_compile") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } && {
18583          test -z "$ac_c_werror_flag" ||
18584          test ! -s conftest.err
18585        } && test -s conftest.$ac_objext; then
18586   { echo "$as_me:$LINENO: result: yes" >&5
18587 echo "${ECHO_T}yes" >&6; }
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592         { echo "$as_me:$LINENO: result: no" >&5
18593 echo "${ECHO_T}no" >&6; }
18594         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18595 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18596         cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h.  */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h.  */
18602 #define __CF_USE_FRAMEWORK_INCLUDES__
18603 #include <CoreFoundation/CFBase.h>
18604
18605 int
18606 main ()
18607 {
18608
18609   ;
18610   return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext
18614 if { (ac_try="$ac_compile"
18615 case "(($ac_try" in
18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617   *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620   (eval "$ac_compile") 2>conftest.er1
18621   ac_status=$?
18622   grep -v '^ *+' conftest.er1 >conftest.err
18623   rm -f conftest.er1
18624   cat conftest.err >&5
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); } && {
18627          test -z "$ac_c_werror_flag" ||
18628          test ! -s conftest.err
18629        } && test -s conftest.$ac_objext; then
18630   { echo "$as_me:$LINENO: result: yes" >&5
18631 echo "${ECHO_T}yes" >&6; }
18632                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18638 See \`config.log' for more details." >&5
18639 echo "$as_me: error: no.  CoreFoundation not available.
18640 See \`config.log' for more details." >&2;}
18641    { (exit 1); exit 1; }; }
18642
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18646
18647
18648 fi
18649
18650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18651   ;;
18652 esac
18653
18654 wants_win32=0
18655 doesnt_want_win32=0
18656 case "${host}" in
18657   *-*-cygwin*)
18658       if test "$wxUSE_MSW" = 1 ; then
18659         wants_win32=1
18660       else
18661                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18662 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18663 if test "${wx_cv_nocygwin+set}" = set; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666
18667                 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h.  */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h.  */
18673
18674 int
18675 main ()
18676 {
18677
18678                         #ifdef __MINGW32__
18679                             choke me
18680                         #endif
18681
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (ac_try="$ac_compile"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_compile") 2>conftest.er1
18694   ac_status=$?
18695   grep -v '^ *+' conftest.er1 >conftest.err
18696   rm -f conftest.er1
18697   cat conftest.err >&5
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); } && {
18700          test -z "$ac_c_werror_flag" ||
18701          test ! -s conftest.err
18702        } && test -s conftest.$ac_objext; then
18703   wx_cv_nocygwin=no
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708         wx_cv_nocygwin=yes
18709
18710 fi
18711
18712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18713
18714
18715 fi
18716 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18717 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18718
18719         if test "$wx_cv_nocygwin" = "yes"; then
18720             wants_win32=1
18721         else
18722             doesnt_want_win32=1
18723         fi
18724       fi
18725       if test "$wants_win32" = 1 ; then
18726         BAKEFILE_FORCE_PLATFORM=win32
18727       fi
18728   ;;
18729   *-*-mingw*)
18730       wants_win32=1
18731   ;;
18732 esac
18733
18734 if test "$wxUSE_WINE" = "yes"; then
18735     wants_win32=1
18736     LDFLAGS_GUI="-mwindows"
18737 fi
18738
18739 if test "$wants_win32" = 1 ; then
18740     USE_UNIX=0
18741     USE_WIN32=1
18742     cat >>confdefs.h <<\_ACEOF
18743 #define __WIN32__ 1
18744 _ACEOF
18745
18746     cat >>confdefs.h <<\_ACEOF
18747 #define __WIN95__ 1
18748 _ACEOF
18749
18750     cat >>confdefs.h <<\_ACEOF
18751 #define __WINDOWS__ 1
18752 _ACEOF
18753
18754     cat >>confdefs.h <<\_ACEOF
18755 #define __GNUWIN32__ 1
18756 _ACEOF
18757
18758     cat >>confdefs.h <<\_ACEOF
18759 #define STRICT 1
18760 _ACEOF
18761
18762 fi
18763 if test "$doesnt_want_win32" = 1 ; then
18764     USE_UNIX=1
18765     USE_WIN32=0
18766 fi
18767
18768 if test "$USE_UNIX" = 1 ; then
18769     wxUSE_UNIX=yes
18770     cat >>confdefs.h <<\_ACEOF
18771 #define __UNIX__ 1
18772 _ACEOF
18773
18774 fi
18775
18776 case "${host}" in
18777   *-pc-os2_emx | *-pc-os2-emx )
18778                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18779                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18780 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18781 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lcExt  $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792
18793 /* Override any GCC internal prototype to avoid an error.
18794    Use char because int might match the return type of a GCC
18795    builtin and then its argument prototype would still apply.  */
18796 #ifdef __cplusplus
18797 extern "C"
18798 #endif
18799 char drand48 ();
18800 int
18801 main ()
18802 {
18803 return drand48 ();
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (ac_try="$ac_link"
18810 case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_link") 2>conftest.er1
18816   ac_status=$?
18817   grep -v '^ *+' conftest.er1 >conftest.err
18818   rm -f conftest.er1
18819   cat conftest.err >&5
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); } && {
18822          test -z "$ac_c_werror_flag" ||
18823          test ! -s conftest.err
18824        } && test -s conftest$ac_exeext &&
18825        $as_test_x conftest$ac_exeext; then
18826   ac_cv_lib_cExt_drand48=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831         ac_cv_lib_cExt_drand48=no
18832 fi
18833
18834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18839 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18840 if test $ac_cv_lib_cExt_drand48 = yes; then
18841   LIBS="$LIBS -lcExt"
18842 fi
18843
18844       else
18845                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18846       fi
18847                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18848 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18849 if test "${wx_cv_gccversion+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852
18853           if test "$cross_compiling" = yes; then
18854                 wx_cv_gccversion="EMX2"
18855
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863
18864                   #include <stdio.h>
18865
18866                   int main()
18867                   {
18868                       FILE *f=fopen("conftestval", "w");
18869                       if (!f) exit(1);
18870                       fprintf(f,
18871                   #if (__GNUC__ < 3)
18872                               "EMX2"
18873                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18874                               "EMX3"
18875                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18876                               "Innotek5"
18877                   #else
18878                               "Innotek6"
18879                   #endif
18880                       );
18881                       exit(0);
18882                   }
18883
18884 _ACEOF
18885 rm -f conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889   *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892   (eval "$ac_link") 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905   wx_cv_gccversion=`cat conftestval`
18906 else
18907   echo "$as_me: program exited with status $ac_status" >&5
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911 ( exit $ac_status )
18912 wx_cv_gccversion="EMX2"
18913 fi
18914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18915 fi
18916
18917
18918
18919 fi
18920 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18921 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18922       if test "$wx_cv_gccversion" = "EMX2"; then
18923           LIBS="$LIBS -lstdcpp"
18924           LDFLAGS="$LDFLAGS -Zsysv-signals"
18925       else
18926           if test "$wx_cv_gccversion" = "EMX3"; then
18927               LIBS="$LIBS -lstdcxx -lgcc"
18928               LDFLAGS="$LDFLAGS -Zsysv-signals"
18929           else
18930               LIBS="$LIBS -lstdc++"
18931           fi
18932       fi
18933       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18934         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18935 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18936         wxUSE_OMF=yes
18937         enable_omf=yes
18938       fi
18939         ;;
18940   *)
18941
18942       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18943 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18944 if test "${ac_cv_string_strcasecmp+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947
18948           cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h.  */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h.  */
18954
18955               #include <string.h>
18956
18957 int
18958 main ()
18959 {
18960
18961                   strcasecmp("foo", "bar");
18962
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974   (eval "$ac_link") 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } && {
18981          test -z "$ac_c_werror_flag" ||
18982          test ! -s conftest.err
18983        } && test -s conftest$ac_exeext &&
18984        $as_test_x conftest$ac_exeext; then
18985   ac_cv_string_strcasecmp=yes
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990         ac_cv_string_strcasecmp=no
18991
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18995       conftest$ac_exeext conftest.$ac_ext
18996
18997 fi
18998 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18999 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19000
19001       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19002           cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_STRCASECMP_IN_STRING_H 1
19004 _ACEOF
19005
19006       else
19007           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19008 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19009 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19010   echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012
19013               cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019
19020                   #include <strings.h>
19021
19022 int
19023 main ()
19024 {
19025
19026                       strcasecmp("foo", "bar");
19027
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_link") 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } && {
19046          test -z "$ac_c_werror_flag" ||
19047          test ! -s conftest.err
19048        } && test -s conftest$ac_exeext &&
19049        $as_test_x conftest$ac_exeext; then
19050   ac_cv_strings_strcasecmp=yes
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055         ac_cv_strings_strcasecmp=no
19056
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060       conftest$ac_exeext conftest.$ac_ext
19061
19062 fi
19063 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19064 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19065
19066           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19067               cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19069 _ACEOF
19070
19071           else
19072               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19073 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19074    { (exit 1); exit 1; }; }
19075           fi
19076       fi
19077
19078         ;;
19079 esac
19080
19081
19082 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19083 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19084 if test "${ac_cv_header_stdc+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087   cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093 #include <stdlib.h>
19094 #include <stdarg.h>
19095 #include <string.h>
19096 #include <float.h>
19097
19098 int
19099 main ()
19100 {
19101
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (ac_try="$ac_compile"
19108 case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_compile") 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } && {
19120          test -z "$ac_c_werror_flag" ||
19121          test ! -s conftest.err
19122        } && test -s conftest.$ac_objext; then
19123   ac_cv_header_stdc=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128         ac_cv_header_stdc=no
19129 fi
19130
19131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132
19133 if test $ac_cv_header_stdc = yes; then
19134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19135   cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h.  */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h.  */
19141 #include <string.h>
19142
19143 _ACEOF
19144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19145   $EGREP "memchr" >/dev/null 2>&1; then
19146   :
19147 else
19148   ac_cv_header_stdc=no
19149 fi
19150 rm -f conftest*
19151
19152 fi
19153
19154 if test $ac_cv_header_stdc = yes; then
19155   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19156   cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 #include <stdlib.h>
19163
19164 _ACEOF
19165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19166   $EGREP "free" >/dev/null 2>&1; then
19167   :
19168 else
19169   ac_cv_header_stdc=no
19170 fi
19171 rm -f conftest*
19172
19173 fi
19174
19175 if test $ac_cv_header_stdc = yes; then
19176   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19177   if test "$cross_compiling" = yes; then
19178   :
19179 else
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 #include <ctype.h>
19187 #include <stdlib.h>
19188 #if ((' ' & 0x0FF) == 0x020)
19189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19191 #else
19192 # define ISLOWER(c) \
19193                    (('a' <= (c) && (c) <= 'i') \
19194                      || ('j' <= (c) && (c) <= 'r') \
19195                      || ('s' <= (c) && (c) <= 'z'))
19196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19197 #endif
19198
19199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19200 int
19201 main ()
19202 {
19203   int i;
19204   for (i = 0; i < 256; i++)
19205     if (XOR (islower (i), ISLOWER (i))
19206         || toupper (i) != TOUPPER (i))
19207       return 2;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_link") 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19222   { (case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_try") 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; }; then
19231   :
19232 else
19233   echo "$as_me: program exited with status $ac_status" >&5
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237 ( exit $ac_status )
19238 ac_cv_header_stdc=no
19239 fi
19240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19241 fi
19242
19243
19244 fi
19245 fi
19246 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19247 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19248 if test $ac_cv_header_stdc = yes; then
19249
19250 cat >>confdefs.h <<\_ACEOF
19251 #define STDC_HEADERS 1
19252 _ACEOF
19253
19254 fi
19255
19256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19267                   inttypes.h stdint.h unistd.h
19268 do
19269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281 $ac_includes_default
19282
19283 #include <$ac_header>
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (ac_try="$ac_compile"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_compile") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } && {
19299          test -z "$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        } && test -s conftest.$ac_objext; then
19302   eval "$as_ac_Header=yes"
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         eval "$as_ac_Header=no"
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 fi
19312 ac_res=`eval echo '${'$as_ac_Header'}'`
19313                { echo "$as_me:$LINENO: result: $ac_res" >&5
19314 echo "${ECHO_T}$ac_res" >&6; }
19315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19316   cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19318 _ACEOF
19319
19320 fi
19321
19322 done
19323
19324
19325
19326
19327 for ac_header in langinfo.h wchar.h
19328 do
19329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 $ac_includes_default
19342
19343 #include <$ac_header>
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_compile") 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } && {
19359          test -z "$ac_c_werror_flag" ||
19360          test ! -s conftest.err
19361        } && test -s conftest.$ac_objext; then
19362   eval "$as_ac_Header=yes"
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367         eval "$as_ac_Header=no"
19368 fi
19369
19370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19371 fi
19372 ac_res=`eval echo '${'$as_ac_Header'}'`
19373                { echo "$as_me:$LINENO: result: $ac_res" >&5
19374 echo "${ECHO_T}$ac_res" >&6; }
19375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19376   cat >>confdefs.h <<_ACEOF
19377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19378 _ACEOF
19379
19380 fi
19381
19382 done
19383
19384
19385 if test "$ac_cv_header_wchar_h" != "yes"; then
19386
19387 for ac_header in wcstr.h
19388 do
19389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 $ac_includes_default
19402
19403 #include <$ac_header>
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (ac_try="$ac_compile"
19407 case "(($ac_try" in
19408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409   *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412   (eval "$ac_compile") 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && {
19419          test -z "$ac_c_werror_flag" ||
19420          test ! -s conftest.err
19421        } && test -s conftest.$ac_objext; then
19422   eval "$as_ac_Header=yes"
19423 else
19424   echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19426
19427         eval "$as_ac_Header=no"
19428 fi
19429
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 fi
19432 ac_res=`eval echo '${'$as_ac_Header'}'`
19433                { echo "$as_me:$LINENO: result: $ac_res" >&5
19434 echo "${ECHO_T}$ac_res" >&6; }
19435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19436   cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19438 _ACEOF
19439
19440 fi
19441
19442 done
19443
19444 fi
19445
19446 case "${host}" in
19447   *-pc-os2_emx | *-pc-os2-emx )
19448                   if test $ac_cv_header_langinfo_h = "yes" \
19449                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19450                      -o "$wx_cv_gccversion" = "EMX3" \
19451                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19452           LIBS="$LIBS -lintl"
19453       fi
19454   ;;
19455 esac
19456
19457 if test "$USE_UNIX" = 1 ; then
19458
19459 for ac_header in sys/select.h
19460 do
19461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19465   echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467   cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473 $ac_includes_default
19474
19475 #include <$ac_header>
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (ac_try="$ac_compile"
19479 case "(($ac_try" in
19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481   *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484   (eval "$ac_compile") 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } && {
19491          test -z "$ac_c_werror_flag" ||
19492          test ! -s conftest.err
19493        } && test -s conftest.$ac_objext; then
19494   eval "$as_ac_Header=yes"
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499         eval "$as_ac_Header=no"
19500 fi
19501
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 fi
19504 ac_res=`eval echo '${'$as_ac_Header'}'`
19505                { echo "$as_me:$LINENO: result: $ac_res" >&5
19506 echo "${ECHO_T}$ac_res" >&6; }
19507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19508   cat >>confdefs.h <<_ACEOF
19509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19510 _ACEOF
19511
19512 fi
19513
19514 done
19515
19516 fi
19517
19518
19519 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19520 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19521 if test "${ac_cv_c_const+set}" = set; then
19522   echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524   cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530
19531 int
19532 main ()
19533 {
19534 /* FIXME: Include the comments suggested by Paul. */
19535 #ifndef __cplusplus
19536   /* Ultrix mips cc rejects this.  */
19537   typedef int charset[2];
19538   const charset cs;
19539   /* SunOS 4.1.1 cc rejects this.  */
19540   char const *const *pcpcc;
19541   char **ppc;
19542   /* NEC SVR4.0.2 mips cc rejects this.  */
19543   struct point {int x, y;};
19544   static struct point const zero = {0,0};
19545   /* AIX XL C 1.02.0.0 rejects this.
19546      It does not let you subtract one const X* pointer from another in
19547      an arm of an if-expression whose if-part is not a constant
19548      expression */
19549   const char *g = "string";
19550   pcpcc = &g + (g ? g-g : 0);
19551   /* HPUX 7.0 cc rejects these. */
19552   ++pcpcc;
19553   ppc = (char**) pcpcc;
19554   pcpcc = (char const *const *) ppc;
19555   { /* SCO 3.2v4 cc rejects this.  */
19556     char *t;
19557     char const *s = 0 ? (char *) 0 : (char const *) 0;
19558
19559     *t++ = 0;
19560     if (s) return 0;
19561   }
19562   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19563     int x[] = {25, 17};
19564     const int *foo = &x[0];
19565     ++foo;
19566   }
19567   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19568     typedef const int *iptr;
19569     iptr p = 0;
19570     ++p;
19571   }
19572   { /* AIX XL C 1.02.0.0 rejects this saying
19573        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19574     struct s { int j; const int *ap[3]; };
19575     struct s *b; b->j = 5;
19576   }
19577   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19578     const int foo = 10;
19579     if (!foo) return 0;
19580   }
19581   return !cs[0] && !zero.x;
19582 #endif
19583
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_compile") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && {
19602          test -z "$ac_c_werror_flag" ||
19603          test ! -s conftest.err
19604        } && test -s conftest.$ac_objext; then
19605   ac_cv_c_const=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         ac_cv_c_const=no
19611 fi
19612
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 fi
19615 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19616 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19617 if test $ac_cv_c_const = no; then
19618
19619 cat >>confdefs.h <<\_ACEOF
19620 #define const
19621 _ACEOF
19622
19623 fi
19624
19625 { echo "$as_me:$LINENO: checking for inline" >&5
19626 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19627 if test "${ac_cv_c_inline+set}" = set; then
19628   echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630   ac_cv_c_inline=no
19631 for ac_kw in inline __inline__ __inline; do
19632   cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638 #ifndef __cplusplus
19639 typedef int foo_t;
19640 static $ac_kw foo_t static_foo () {return 0; }
19641 $ac_kw foo_t foo () {return 0; }
19642 #endif
19643
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (ac_try="$ac_compile"
19647 case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_compile") 2>conftest.er1
19653   ac_status=$?
19654   grep -v '^ *+' conftest.er1 >conftest.err
19655   rm -f conftest.er1
19656   cat conftest.err >&5
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } && {
19659          test -z "$ac_c_werror_flag" ||
19660          test ! -s conftest.err
19661        } && test -s conftest.$ac_objext; then
19662   ac_cv_c_inline=$ac_kw
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667
19668 fi
19669
19670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19671   test "$ac_cv_c_inline" != no && break
19672 done
19673
19674 fi
19675 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19676 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19677
19678
19679 case $ac_cv_c_inline in
19680   inline | yes) ;;
19681   *)
19682     case $ac_cv_c_inline in
19683       no) ac_val=;;
19684       *) ac_val=$ac_cv_c_inline;;
19685     esac
19686     cat >>confdefs.h <<_ACEOF
19687 #ifndef __cplusplus
19688 #define inline $ac_val
19689 #endif
19690 _ACEOF
19691     ;;
19692 esac
19693
19694
19695 { echo "$as_me:$LINENO: checking for short" >&5
19696 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19697 if test "${ac_cv_type_short+set}" = set; then
19698   echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700   cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706 $ac_includes_default
19707 typedef short ac__type_new_;
19708 int
19709 main ()
19710 {
19711 if ((ac__type_new_ *) 0)
19712   return 0;
19713 if (sizeof (ac__type_new_))
19714   return 0;
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext
19720 if { (ac_try="$ac_compile"
19721 case "(($ac_try" in
19722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723   *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726   (eval "$ac_compile") 2>conftest.er1
19727   ac_status=$?
19728   grep -v '^ *+' conftest.er1 >conftest.err
19729   rm -f conftest.er1
19730   cat conftest.err >&5
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } && {
19733          test -z "$ac_c_werror_flag" ||
19734          test ! -s conftest.err
19735        } && test -s conftest.$ac_objext; then
19736   ac_cv_type_short=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_type_short=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19747 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19748
19749 # The cast to long int works around a bug in the HP C Compiler
19750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19752 # This bug is HP SR number 8606223364.
19753 { echo "$as_me:$LINENO: checking size of short" >&5
19754 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19755 if test "${ac_cv_sizeof_short+set}" = set; then
19756   echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758   if test "$cross_compiling" = yes; then
19759   # Depending upon the size, compute the lo and hi bounds.
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 $ac_includes_default
19767    typedef short ac__type_sizeof_;
19768 int
19769 main ()
19770 {
19771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19772 test_array [0] = 0
19773
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (ac_try="$ac_compile"
19780 case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_compile") 2>conftest.er1
19786   ac_status=$?
19787   grep -v '^ *+' conftest.er1 >conftest.err
19788   rm -f conftest.er1
19789   cat conftest.err >&5
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); } && {
19792          test -z "$ac_c_werror_flag" ||
19793          test ! -s conftest.err
19794        } && test -s conftest.$ac_objext; then
19795   ac_lo=0 ac_mid=0
19796   while :; do
19797     cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803 $ac_includes_default
19804    typedef short ac__type_sizeof_;
19805 int
19806 main ()
19807 {
19808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19809 test_array [0] = 0
19810
19811   ;
19812   return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819   *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822   (eval "$ac_compile") 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } && {
19829          test -z "$ac_c_werror_flag" ||
19830          test ! -s conftest.err
19831        } && test -s conftest.$ac_objext; then
19832   ac_hi=$ac_mid; break
19833 else
19834   echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837         ac_lo=`expr $ac_mid + 1`
19838                         if test $ac_lo -le $ac_mid; then
19839                           ac_lo= ac_hi=
19840                           break
19841                         fi
19842                         ac_mid=`expr 2 '*' $ac_mid + 1`
19843 fi
19844
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846   done
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
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_))) < 0)];
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=-1 ac_mid=-1
19887   while :; do
19888     cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 $ac_includes_default
19895    typedef short ac__type_sizeof_;
19896 int
19897 main ()
19898 {
19899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19900 test_array [0] = 0
19901
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_compile") 2>conftest.er1
19914   ac_status=$?
19915   grep -v '^ *+' conftest.er1 >conftest.err
19916   rm -f conftest.er1
19917   cat conftest.err >&5
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } && {
19920          test -z "$ac_c_werror_flag" ||
19921          test ! -s conftest.err
19922        } && test -s conftest.$ac_objext; then
19923   ac_lo=$ac_mid; break
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928         ac_hi=`expr '(' $ac_mid ')' - 1`
19929                         if test $ac_mid -le $ac_hi; then
19930                           ac_lo= ac_hi=
19931                           break
19932                         fi
19933                         ac_mid=`expr 2 '*' $ac_mid`
19934 fi
19935
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937   done
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942         ac_lo= ac_hi=
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 # Binary search between lo and hi bounds.
19950 while test "x$ac_lo" != "x$ac_hi"; do
19951   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19952   cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h.  */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h.  */
19958 $ac_includes_default
19959    typedef short ac__type_sizeof_;
19960 int
19961 main ()
19962 {
19963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19964 test_array [0] = 0
19965
19966   ;
19967   return 0;
19968 }
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_compile") 2>conftest.er1
19978   ac_status=$?
19979   grep -v '^ *+' conftest.er1 >conftest.err
19980   rm -f conftest.er1
19981   cat conftest.err >&5
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); } && {
19984          test -z "$ac_c_werror_flag" ||
19985          test ! -s conftest.err
19986        } && test -s conftest.$ac_objext; then
19987   ac_hi=$ac_mid
19988 else
19989   echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992         ac_lo=`expr '(' $ac_mid ')' + 1`
19993 fi
19994
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 done
19997 case $ac_lo in
19998 ?*) ac_cv_sizeof_short=$ac_lo;;
19999 '') if test "$ac_cv_type_short" = yes; then
20000      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20001 See \`config.log' for more details." >&5
20002 echo "$as_me: error: cannot compute sizeof (short)
20003 See \`config.log' for more details." >&2;}
20004    { (exit 77); exit 77; }; }
20005    else
20006      ac_cv_sizeof_short=0
20007    fi ;;
20008 esac
20009 else
20010   cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 $ac_includes_default
20017    typedef short ac__type_sizeof_;
20018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20020 #include <stdio.h>
20021 #include <stdlib.h>
20022 int
20023 main ()
20024 {
20025
20026   FILE *f = fopen ("conftest.val", "w");
20027   if (! f)
20028     return 1;
20029   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20030     {
20031       long int i = longval ();
20032       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20033         return 1;
20034       fprintf (f, "%ld\n", i);
20035     }
20036   else
20037     {
20038       unsigned long int i = ulongval ();
20039       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20040         return 1;
20041       fprintf (f, "%lu\n", i);
20042     }
20043   return ferror (f) || fclose (f) != 0;
20044
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest$ac_exeext
20050 if { (ac_try="$ac_link"
20051 case "(($ac_try" in
20052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053   *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056   (eval "$ac_link") 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20060   { (case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_try") 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; }; then
20069   ac_cv_sizeof_short=`cat conftest.val`
20070 else
20071   echo "$as_me: program exited with status $ac_status" >&5
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 ( exit $ac_status )
20076 if test "$ac_cv_type_short" = yes; then
20077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20078 See \`config.log' for more details." >&5
20079 echo "$as_me: error: cannot compute sizeof (short)
20080 See \`config.log' for more details." >&2;}
20081    { (exit 77); exit 77; }; }
20082    else
20083      ac_cv_sizeof_short=0
20084    fi
20085 fi
20086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20087 fi
20088 rm -f conftest.val
20089 fi
20090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20091 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20092
20093
20094
20095 cat >>confdefs.h <<_ACEOF
20096 #define SIZEOF_SHORT $ac_cv_sizeof_short
20097 _ACEOF
20098
20099
20100 { echo "$as_me:$LINENO: checking for void *" >&5
20101 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20102 if test "${ac_cv_type_void_p+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111 $ac_includes_default
20112 typedef void * ac__type_new_;
20113 int
20114 main ()
20115 {
20116 if ((ac__type_new_ *) 0)
20117   return 0;
20118 if (sizeof (ac__type_new_))
20119   return 0;
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_compile") 2>conftest.er1
20132   ac_status=$?
20133   grep -v '^ *+' conftest.er1 >conftest.err
20134   rm -f conftest.er1
20135   cat conftest.err >&5
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } && {
20138          test -z "$ac_c_werror_flag" ||
20139          test ! -s conftest.err
20140        } && test -s conftest.$ac_objext; then
20141   ac_cv_type_void_p=yes
20142 else
20143   echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146         ac_cv_type_void_p=no
20147 fi
20148
20149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 fi
20151 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20152 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20153
20154 # The cast to long int works around a bug in the HP C Compiler
20155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20157 # This bug is HP SR number 8606223364.
20158 { echo "$as_me:$LINENO: checking size of void *" >&5
20159 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20160 if test "${ac_cv_sizeof_void_p+set}" = set; then
20161   echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163   if test "$cross_compiling" = yes; then
20164   # Depending upon the size, compute the lo and hi bounds.
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h.  */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h.  */
20171 $ac_includes_default
20172    typedef void * ac__type_sizeof_;
20173 int
20174 main ()
20175 {
20176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20177 test_array [0] = 0
20178
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (ac_try="$ac_compile"
20185 case "(($ac_try" in
20186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187   *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190   (eval "$ac_compile") 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } && {
20197          test -z "$ac_c_werror_flag" ||
20198          test ! -s conftest.err
20199        } && test -s conftest.$ac_objext; then
20200   ac_lo=0 ac_mid=0
20201   while :; do
20202     cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h.  */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h.  */
20208 $ac_includes_default
20209    typedef void * ac__type_sizeof_;
20210 int
20211 main ()
20212 {
20213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20214 test_array [0] = 0
20215
20216   ;
20217   return 0;
20218 }
20219 _ACEOF
20220 rm -f conftest.$ac_objext
20221 if { (ac_try="$ac_compile"
20222 case "(($ac_try" in
20223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224   *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227   (eval "$ac_compile") 2>conftest.er1
20228   ac_status=$?
20229   grep -v '^ *+' conftest.er1 >conftest.err
20230   rm -f conftest.er1
20231   cat conftest.err >&5
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } && {
20234          test -z "$ac_c_werror_flag" ||
20235          test ! -s conftest.err
20236        } && test -s conftest.$ac_objext; then
20237   ac_hi=$ac_mid; break
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242         ac_lo=`expr $ac_mid + 1`
20243                         if test $ac_lo -le $ac_mid; then
20244                           ac_lo= ac_hi=
20245                           break
20246                         fi
20247                         ac_mid=`expr 2 '*' $ac_mid + 1`
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251   done
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
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_))) < 0)];
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=-1 ac_mid=-1
20292   while :; do
20293     cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299 $ac_includes_default
20300    typedef void * ac__type_sizeof_;
20301 int
20302 main ()
20303 {
20304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20305 test_array [0] = 0
20306
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_compile") 2>conftest.er1
20319   ac_status=$?
20320   grep -v '^ *+' conftest.er1 >conftest.err
20321   rm -f conftest.er1
20322   cat conftest.err >&5
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); } && {
20325          test -z "$ac_c_werror_flag" ||
20326          test ! -s conftest.err
20327        } && test -s conftest.$ac_objext; then
20328   ac_lo=$ac_mid; break
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         ac_hi=`expr '(' $ac_mid ')' - 1`
20334                         if test $ac_mid -le $ac_hi; then
20335                           ac_lo= ac_hi=
20336                           break
20337                         fi
20338                         ac_mid=`expr 2 '*' $ac_mid`
20339 fi
20340
20341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342   done
20343 else
20344   echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347         ac_lo= ac_hi=
20348 fi
20349
20350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 fi
20352
20353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354 # Binary search between lo and hi bounds.
20355 while test "x$ac_lo" != "x$ac_hi"; do
20356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20357   cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 $ac_includes_default
20364    typedef void * ac__type_sizeof_;
20365 int
20366 main ()
20367 {
20368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20369 test_array [0] = 0
20370
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_compile") 2>conftest.er1
20383   ac_status=$?
20384   grep -v '^ *+' conftest.er1 >conftest.err
20385   rm -f conftest.er1
20386   cat conftest.err >&5
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); } && {
20389          test -z "$ac_c_werror_flag" ||
20390          test ! -s conftest.err
20391        } && test -s conftest.$ac_objext; then
20392   ac_hi=$ac_mid
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397         ac_lo=`expr '(' $ac_mid ')' + 1`
20398 fi
20399
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20401 done
20402 case $ac_lo in
20403 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20404 '') if test "$ac_cv_type_void_p" = yes; then
20405      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20406 See \`config.log' for more details." >&5
20407 echo "$as_me: error: cannot compute sizeof (void *)
20408 See \`config.log' for more details." >&2;}
20409    { (exit 77); exit 77; }; }
20410    else
20411      ac_cv_sizeof_void_p=0
20412    fi ;;
20413 esac
20414 else
20415   cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421 $ac_includes_default
20422    typedef void * ac__type_sizeof_;
20423 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20424 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20425 #include <stdio.h>
20426 #include <stdlib.h>
20427 int
20428 main ()
20429 {
20430
20431   FILE *f = fopen ("conftest.val", "w");
20432   if (! f)
20433     return 1;
20434   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20435     {
20436       long int i = longval ();
20437       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20438         return 1;
20439       fprintf (f, "%ld\n", i);
20440     }
20441   else
20442     {
20443       unsigned long int i = ulongval ();
20444       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20445         return 1;
20446       fprintf (f, "%lu\n", i);
20447     }
20448   return ferror (f) || fclose (f) != 0;
20449
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_link") 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465   { (case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_try") 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_sizeof_void_p=`cat conftest.val`
20475 else
20476   echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ( exit $ac_status )
20481 if test "$ac_cv_type_void_p" = yes; then
20482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20483 See \`config.log' for more details." >&5
20484 echo "$as_me: error: cannot compute sizeof (void *)
20485 See \`config.log' for more details." >&2;}
20486    { (exit 77); exit 77; }; }
20487    else
20488      ac_cv_sizeof_void_p=0
20489    fi
20490 fi
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20492 fi
20493 rm -f conftest.val
20494 fi
20495 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20496 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20497
20498
20499
20500 cat >>confdefs.h <<_ACEOF
20501 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20502 _ACEOF
20503
20504
20505 { echo "$as_me:$LINENO: checking for int" >&5
20506 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20507 if test "${ac_cv_type_int+set}" = set; then
20508   echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510   cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h.  */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h.  */
20516 $ac_includes_default
20517 typedef int ac__type_new_;
20518 int
20519 main ()
20520 {
20521 if ((ac__type_new_ *) 0)
20522   return 0;
20523 if (sizeof (ac__type_new_))
20524   return 0;
20525   ;
20526   return 0;
20527 }
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (ac_try="$ac_compile"
20531 case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_compile") 2>conftest.er1
20537   ac_status=$?
20538   grep -v '^ *+' conftest.er1 >conftest.err
20539   rm -f conftest.er1
20540   cat conftest.err >&5
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } && {
20543          test -z "$ac_c_werror_flag" ||
20544          test ! -s conftest.err
20545        } && test -s conftest.$ac_objext; then
20546   ac_cv_type_int=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551         ac_cv_type_int=no
20552 fi
20553
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 fi
20556 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20557 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20558
20559 # The cast to long int works around a bug in the HP C Compiler
20560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20562 # This bug is HP SR number 8606223364.
20563 { echo "$as_me:$LINENO: checking size of int" >&5
20564 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20565 if test "${ac_cv_sizeof_int+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   if test "$cross_compiling" = yes; then
20569   # Depending upon the size, compute the lo and hi bounds.
20570 cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20576 $ac_includes_default
20577    typedef int ac__type_sizeof_;
20578 int
20579 main ()
20580 {
20581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20582 test_array [0] = 0
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_compile") 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } && {
20602          test -z "$ac_c_werror_flag" ||
20603          test ! -s conftest.err
20604        } && test -s conftest.$ac_objext; then
20605   ac_lo=0 ac_mid=0
20606   while :; do
20607     cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 $ac_includes_default
20614    typedef int ac__type_sizeof_;
20615 int
20616 main ()
20617 {
20618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20619 test_array [0] = 0
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   ac_hi=$ac_mid; break
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         ac_lo=`expr $ac_mid + 1`
20648                         if test $ac_lo -le $ac_mid; then
20649                           ac_lo= ac_hi=
20650                           break
20651                         fi
20652                         ac_mid=`expr 2 '*' $ac_mid + 1`
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656   done
20657 else
20658   echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
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_))) < 0)];
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=-1 ac_mid=-1
20697   while :; do
20698     cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 $ac_includes_default
20705    typedef int ac__type_sizeof_;
20706 int
20707 main ()
20708 {
20709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20710 test_array [0] = 0
20711
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && {
20730          test -z "$ac_c_werror_flag" ||
20731          test ! -s conftest.err
20732        } && test -s conftest.$ac_objext; then
20733   ac_lo=$ac_mid; break
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738         ac_hi=`expr '(' $ac_mid ')' - 1`
20739                         if test $ac_mid -le $ac_hi; then
20740                           ac_lo= ac_hi=
20741                           break
20742                         fi
20743                         ac_mid=`expr 2 '*' $ac_mid`
20744 fi
20745
20746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747   done
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752         ac_lo= ac_hi=
20753 fi
20754
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 # Binary search between lo and hi bounds.
20760 while test "x$ac_lo" != "x$ac_hi"; do
20761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20762   cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h.  */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h.  */
20768 $ac_includes_default
20769    typedef int ac__type_sizeof_;
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_compile") 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } && {
20794          test -z "$ac_c_werror_flag" ||
20795          test ! -s conftest.err
20796        } && test -s conftest.$ac_objext; then
20797   ac_hi=$ac_mid
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802         ac_lo=`expr '(' $ac_mid ')' + 1`
20803 fi
20804
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 done
20807 case $ac_lo in
20808 ?*) ac_cv_sizeof_int=$ac_lo;;
20809 '') if test "$ac_cv_type_int" = yes; then
20810      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20811 See \`config.log' for more details." >&5
20812 echo "$as_me: error: cannot compute sizeof (int)
20813 See \`config.log' for more details." >&2;}
20814    { (exit 77); exit 77; }; }
20815    else
20816      ac_cv_sizeof_int=0
20817    fi ;;
20818 esac
20819 else
20820   cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 $ac_includes_default
20827    typedef int ac__type_sizeof_;
20828 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20829 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20830 #include <stdio.h>
20831 #include <stdlib.h>
20832 int
20833 main ()
20834 {
20835
20836   FILE *f = fopen ("conftest.val", "w");
20837   if (! f)
20838     return 1;
20839   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20840     {
20841       long int i = longval ();
20842       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20843         return 1;
20844       fprintf (f, "%ld\n", i);
20845     }
20846   else
20847     {
20848       unsigned long int i = ulongval ();
20849       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20850         return 1;
20851       fprintf (f, "%lu\n", i);
20852     }
20853   return ferror (f) || fclose (f) != 0;
20854
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_link") 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20870   { (case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_try") 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); }; }; then
20879   ac_cv_sizeof_int=`cat conftest.val`
20880 else
20881   echo "$as_me: program exited with status $ac_status" >&5
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ( exit $ac_status )
20886 if test "$ac_cv_type_int" = yes; then
20887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20888 See \`config.log' for more details." >&5
20889 echo "$as_me: error: cannot compute sizeof (int)
20890 See \`config.log' for more details." >&2;}
20891    { (exit 77); exit 77; }; }
20892    else
20893      ac_cv_sizeof_int=0
20894    fi
20895 fi
20896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20897 fi
20898 rm -f conftest.val
20899 fi
20900 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20901 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20902
20903
20904
20905 cat >>confdefs.h <<_ACEOF
20906 #define SIZEOF_INT $ac_cv_sizeof_int
20907 _ACEOF
20908
20909
20910 { echo "$as_me:$LINENO: checking for long" >&5
20911 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20912 if test "${ac_cv_type_long+set}" = set; then
20913   echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915   cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h.  */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h.  */
20921 $ac_includes_default
20922 typedef long ac__type_new_;
20923 int
20924 main ()
20925 {
20926 if ((ac__type_new_ *) 0)
20927   return 0;
20928 if (sizeof (ac__type_new_))
20929   return 0;
20930   ;
20931   return 0;
20932 }
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938   *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941   (eval "$ac_compile") 2>conftest.er1
20942   ac_status=$?
20943   grep -v '^ *+' conftest.er1 >conftest.err
20944   rm -f conftest.er1
20945   cat conftest.err >&5
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); } && {
20948          test -z "$ac_c_werror_flag" ||
20949          test ! -s conftest.err
20950        } && test -s conftest.$ac_objext; then
20951   ac_cv_type_long=yes
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956         ac_cv_type_long=no
20957 fi
20958
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 fi
20961 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20962 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20963
20964 # The cast to long int works around a bug in the HP C Compiler
20965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20967 # This bug is HP SR number 8606223364.
20968 { echo "$as_me:$LINENO: checking size of long" >&5
20969 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20970 if test "${ac_cv_sizeof_long+set}" = set; then
20971   echo $ECHO_N "(cached) $ECHO_C" >&6
20972 else
20973   if test "$cross_compiling" = yes; then
20974   # Depending upon the size, compute the lo and hi bounds.
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 $ac_includes_default
20982    typedef long ac__type_sizeof_;
20983 int
20984 main ()
20985 {
20986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20987 test_array [0] = 0
20988
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_compile") 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } && {
21007          test -z "$ac_c_werror_flag" ||
21008          test ! -s conftest.err
21009        } && test -s conftest.$ac_objext; then
21010   ac_lo=0 ac_mid=0
21011   while :; do
21012     cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 $ac_includes_default
21019    typedef long ac__type_sizeof_;
21020 int
21021 main ()
21022 {
21023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21024 test_array [0] = 0
21025
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034   *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037   (eval "$ac_compile") 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } && {
21044          test -z "$ac_c_werror_flag" ||
21045          test ! -s conftest.err
21046        } && test -s conftest.$ac_objext; then
21047   ac_hi=$ac_mid; break
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         ac_lo=`expr $ac_mid + 1`
21053                         if test $ac_lo -le $ac_mid; then
21054                           ac_lo= ac_hi=
21055                           break
21056                         fi
21057                         ac_mid=`expr 2 '*' $ac_mid + 1`
21058 fi
21059
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061   done
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
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_))) < 0)];
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=-1 ac_mid=-1
21102   while :; do
21103     cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109 $ac_includes_default
21110    typedef long ac__type_sizeof_;
21111 int
21112 main ()
21113 {
21114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21115 test_array [0] = 0
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_compile") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && {
21135          test -z "$ac_c_werror_flag" ||
21136          test ! -s conftest.err
21137        } && test -s conftest.$ac_objext; then
21138   ac_lo=$ac_mid; break
21139 else
21140   echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143         ac_hi=`expr '(' $ac_mid ')' - 1`
21144                         if test $ac_mid -le $ac_hi; then
21145                           ac_lo= ac_hi=
21146                           break
21147                         fi
21148                         ac_mid=`expr 2 '*' $ac_mid`
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152   done
21153 else
21154   echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157         ac_lo= ac_hi=
21158 fi
21159
21160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 fi
21162
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 # Binary search between lo and hi bounds.
21165 while test "x$ac_lo" != "x$ac_hi"; do
21166   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21167   cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h.  */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h.  */
21173 $ac_includes_default
21174    typedef long ac__type_sizeof_;
21175 int
21176 main ()
21177 {
21178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21179 test_array [0] = 0
21180
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189   *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192   (eval "$ac_compile") 2>conftest.er1
21193   ac_status=$?
21194   grep -v '^ *+' conftest.er1 >conftest.err
21195   rm -f conftest.er1
21196   cat conftest.err >&5
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); } && {
21199          test -z "$ac_c_werror_flag" ||
21200          test ! -s conftest.err
21201        } && test -s conftest.$ac_objext; then
21202   ac_hi=$ac_mid
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207         ac_lo=`expr '(' $ac_mid ')' + 1`
21208 fi
21209
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 done
21212 case $ac_lo in
21213 ?*) ac_cv_sizeof_long=$ac_lo;;
21214 '') if test "$ac_cv_type_long" = yes; then
21215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21216 See \`config.log' for more details." >&5
21217 echo "$as_me: error: cannot compute sizeof (long)
21218 See \`config.log' for more details." >&2;}
21219    { (exit 77); exit 77; }; }
21220    else
21221      ac_cv_sizeof_long=0
21222    fi ;;
21223 esac
21224 else
21225   cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h.  */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h.  */
21231 $ac_includes_default
21232    typedef long ac__type_sizeof_;
21233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21235 #include <stdio.h>
21236 #include <stdlib.h>
21237 int
21238 main ()
21239 {
21240
21241   FILE *f = fopen ("conftest.val", "w");
21242   if (! f)
21243     return 1;
21244   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21245     {
21246       long int i = longval ();
21247       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21248         return 1;
21249       fprintf (f, "%ld\n", i);
21250     }
21251   else
21252     {
21253       unsigned long int i = ulongval ();
21254       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21255         return 1;
21256       fprintf (f, "%lu\n", i);
21257     }
21258   return ferror (f) || fclose (f) != 0;
21259
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest$ac_exeext
21265 if { (ac_try="$ac_link"
21266 case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_link") 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21275   { (case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_try") 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; }; then
21284   ac_cv_sizeof_long=`cat conftest.val`
21285 else
21286   echo "$as_me: program exited with status $ac_status" >&5
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ( exit $ac_status )
21291 if test "$ac_cv_type_long" = yes; then
21292      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21293 See \`config.log' for more details." >&5
21294 echo "$as_me: error: cannot compute sizeof (long)
21295 See \`config.log' for more details." >&2;}
21296    { (exit 77); exit 77; }; }
21297    else
21298      ac_cv_sizeof_long=0
21299    fi
21300 fi
21301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21302 fi
21303 rm -f conftest.val
21304 fi
21305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21306 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21307
21308
21309
21310 cat >>confdefs.h <<_ACEOF
21311 #define SIZEOF_LONG $ac_cv_sizeof_long
21312 _ACEOF
21313
21314
21315 { echo "$as_me:$LINENO: checking for size_t" >&5
21316 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21317 if test "${ac_cv_type_size_t+set}" = set; then
21318   echo $ECHO_N "(cached) $ECHO_C" >&6
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 $ac_includes_default
21327 typedef size_t ac__type_new_;
21328 int
21329 main ()
21330 {
21331 if ((ac__type_new_ *) 0)
21332   return 0;
21333 if (sizeof (ac__type_new_))
21334   return 0;
21335   ;
21336   return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext
21340 if { (ac_try="$ac_compile"
21341 case "(($ac_try" in
21342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343   *) ac_try_echo=$ac_try;;
21344 esac
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346   (eval "$ac_compile") 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } && {
21353          test -z "$ac_c_werror_flag" ||
21354          test ! -s conftest.err
21355        } && test -s conftest.$ac_objext; then
21356   ac_cv_type_size_t=yes
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361         ac_cv_type_size_t=no
21362 fi
21363
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365 fi
21366 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21367 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21368
21369 # The cast to long int works around a bug in the HP C Compiler
21370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21372 # This bug is HP SR number 8606223364.
21373 { echo "$as_me:$LINENO: checking size of size_t" >&5
21374 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21375 if test "${ac_cv_sizeof_size_t+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   if test "$cross_compiling" = yes; then
21379   # Depending upon the size, compute the lo and hi bounds.
21380 cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 $ac_includes_default
21387    typedef size_t ac__type_sizeof_;
21388 int
21389 main ()
21390 {
21391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21392 test_array [0] = 0
21393
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_compile") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } && {
21412          test -z "$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        } && test -s conftest.$ac_objext; then
21415   ac_lo=0 ac_mid=0
21416   while :; do
21417     cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 $ac_includes_default
21424    typedef size_t ac__type_sizeof_;
21425 int
21426 main ()
21427 {
21428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21429 test_array [0] = 0
21430
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } && {
21449          test -z "$ac_c_werror_flag" ||
21450          test ! -s conftest.err
21451        } && test -s conftest.$ac_objext; then
21452   ac_hi=$ac_mid; break
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457         ac_lo=`expr $ac_mid + 1`
21458                         if test $ac_lo -le $ac_mid; then
21459                           ac_lo= ac_hi=
21460                           break
21461                         fi
21462                         ac_mid=`expr 2 '*' $ac_mid + 1`
21463 fi
21464
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466   done
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
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_))) < 0)];
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=-1 ac_mid=-1
21507   while :; do
21508     cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 $ac_includes_default
21515    typedef size_t ac__type_sizeof_;
21516 int
21517 main ()
21518 {
21519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21520 test_array [0] = 0
21521
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_compile") 2>conftest.er1
21534   ac_status=$?
21535   grep -v '^ *+' conftest.er1 >conftest.err
21536   rm -f conftest.er1
21537   cat conftest.err >&5
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); } && {
21540          test -z "$ac_c_werror_flag" ||
21541          test ! -s conftest.err
21542        } && test -s conftest.$ac_objext; then
21543   ac_lo=$ac_mid; break
21544 else
21545   echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548         ac_hi=`expr '(' $ac_mid ')' - 1`
21549                         if test $ac_mid -le $ac_hi; then
21550                           ac_lo= ac_hi=
21551                           break
21552                         fi
21553                         ac_mid=`expr 2 '*' $ac_mid`
21554 fi
21555
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557   done
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562         ac_lo= ac_hi=
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 # Binary search between lo and hi bounds.
21570 while test "x$ac_lo" != "x$ac_hi"; do
21571   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21572   cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578 $ac_includes_default
21579    typedef size_t ac__type_sizeof_;
21580 int
21581 main ()
21582 {
21583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21584 test_array [0] = 0
21585
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_compile") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && {
21604          test -z "$ac_c_werror_flag" ||
21605          test ! -s conftest.err
21606        } && test -s conftest.$ac_objext; then
21607   ac_hi=$ac_mid
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_lo=`expr '(' $ac_mid ')' + 1`
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 done
21617 case $ac_lo in
21618 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21619 '') if test "$ac_cv_type_size_t" = yes; then
21620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21621 See \`config.log' for more details." >&5
21622 echo "$as_me: error: cannot compute sizeof (size_t)
21623 See \`config.log' for more details." >&2;}
21624    { (exit 77); exit 77; }; }
21625    else
21626      ac_cv_sizeof_size_t=0
21627    fi ;;
21628 esac
21629 else
21630   cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636 $ac_includes_default
21637    typedef size_t ac__type_sizeof_;
21638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21640 #include <stdio.h>
21641 #include <stdlib.h>
21642 int
21643 main ()
21644 {
21645
21646   FILE *f = fopen ("conftest.val", "w");
21647   if (! f)
21648     return 1;
21649   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21650     {
21651       long int i = longval ();
21652       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21653         return 1;
21654       fprintf (f, "%ld\n", i);
21655     }
21656   else
21657     {
21658       unsigned long int i = ulongval ();
21659       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21660         return 1;
21661       fprintf (f, "%lu\n", i);
21662     }
21663   return ferror (f) || fclose (f) != 0;
21664
21665   ;
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_link") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21680   { (case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685   (eval "$ac_try") 2>&5
21686   ac_status=$?
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); }; }; then
21689   ac_cv_sizeof_size_t=`cat conftest.val`
21690 else
21691   echo "$as_me: program exited with status $ac_status" >&5
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ( exit $ac_status )
21696 if test "$ac_cv_type_size_t" = yes; then
21697      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21698 See \`config.log' for more details." >&5
21699 echo "$as_me: error: cannot compute sizeof (size_t)
21700 See \`config.log' for more details." >&2;}
21701    { (exit 77); exit 77; }; }
21702    else
21703      ac_cv_sizeof_size_t=0
21704    fi
21705 fi
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21707 fi
21708 rm -f conftest.val
21709 fi
21710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21711 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21712
21713
21714
21715 cat >>confdefs.h <<_ACEOF
21716 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21717 _ACEOF
21718
21719
21720
21721 case "${host}" in
21722     arm-*-linux* )
21723         { echo "$as_me:$LINENO: checking for long long" >&5
21724 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21725 if test "${ac_cv_type_long_long+set}" = set; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 $ac_includes_default
21735 typedef long long ac__type_new_;
21736 int
21737 main ()
21738 {
21739 if ((ac__type_new_ *) 0)
21740   return 0;
21741 if (sizeof (ac__type_new_))
21742   return 0;
21743   ;
21744   return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_compile") 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && {
21761          test -z "$ac_c_werror_flag" ||
21762          test ! -s conftest.err
21763        } && test -s conftest.$ac_objext; then
21764   ac_cv_type_long_long=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769         ac_cv_type_long_long=no
21770 fi
21771
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 fi
21774 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21775 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21776
21777 # The cast to long int works around a bug in the HP C Compiler
21778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21780 # This bug is HP SR number 8606223364.
21781 { echo "$as_me:$LINENO: checking size of long long" >&5
21782 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21783 if test "${ac_cv_sizeof_long_long+set}" = set; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786   if test "$cross_compiling" = yes; then
21787   # Depending upon the size, compute the lo and hi bounds.
21788 cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794 $ac_includes_default
21795    typedef long long ac__type_sizeof_;
21796 int
21797 main ()
21798 {
21799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21800 test_array [0] = 0
21801
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext
21807 if { (ac_try="$ac_compile"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_compile") 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } && {
21820          test -z "$ac_c_werror_flag" ||
21821          test ! -s conftest.err
21822        } && test -s conftest.$ac_objext; then
21823   ac_lo=0 ac_mid=0
21824   while :; do
21825     cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 $ac_includes_default
21832    typedef long long ac__type_sizeof_;
21833 int
21834 main ()
21835 {
21836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21837 test_array [0] = 0
21838
21839   ;
21840   return 0;
21841 }
21842 _ACEOF
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_compile") 2>conftest.er1
21851   ac_status=$?
21852   grep -v '^ *+' conftest.er1 >conftest.err
21853   rm -f conftest.er1
21854   cat conftest.err >&5
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } && {
21857          test -z "$ac_c_werror_flag" ||
21858          test ! -s conftest.err
21859        } && test -s conftest.$ac_objext; then
21860   ac_hi=$ac_mid; break
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865         ac_lo=`expr $ac_mid + 1`
21866                         if test $ac_lo -le $ac_mid; then
21867                           ac_lo= ac_hi=
21868                           break
21869                         fi
21870                         ac_mid=`expr 2 '*' $ac_mid + 1`
21871 fi
21872
21873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874   done
21875 else
21876   echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
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_))) < 0)];
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=-1 ac_mid=-1
21915   while :; do
21916     cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h.  */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h.  */
21922 $ac_includes_default
21923    typedef long long ac__type_sizeof_;
21924 int
21925 main ()
21926 {
21927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21928 test_array [0] = 0
21929
21930   ;
21931   return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_compile") 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } && {
21948          test -z "$ac_c_werror_flag" ||
21949          test ! -s conftest.err
21950        } && test -s conftest.$ac_objext; then
21951   ac_lo=$ac_mid; break
21952 else
21953   echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956         ac_hi=`expr '(' $ac_mid ')' - 1`
21957                         if test $ac_mid -le $ac_hi; then
21958                           ac_lo= ac_hi=
21959                           break
21960                         fi
21961                         ac_mid=`expr 2 '*' $ac_mid`
21962 fi
21963
21964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965   done
21966 else
21967   echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970         ac_lo= ac_hi=
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 fi
21975
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 # Binary search between lo and hi bounds.
21978 while test "x$ac_lo" != "x$ac_hi"; do
21979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 $ac_includes_default
21987    typedef long long ac__type_sizeof_;
21988 int
21989 main ()
21990 {
21991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21992 test_array [0] = 0
21993
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005   (eval "$ac_compile") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest.$ac_objext; then
22015   ac_hi=$ac_mid
22016 else
22017   echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020         ac_lo=`expr '(' $ac_mid ')' + 1`
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 done
22025 case $ac_lo in
22026 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22027 '') if test "$ac_cv_type_long_long" = yes; then
22028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22029 See \`config.log' for more details." >&5
22030 echo "$as_me: error: cannot compute sizeof (long long)
22031 See \`config.log' for more details." >&2;}
22032    { (exit 77); exit 77; }; }
22033    else
22034      ac_cv_sizeof_long_long=0
22035    fi ;;
22036 esac
22037 else
22038   cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 $ac_includes_default
22045    typedef long long ac__type_sizeof_;
22046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22048 #include <stdio.h>
22049 #include <stdlib.h>
22050 int
22051 main ()
22052 {
22053
22054   FILE *f = fopen ("conftest.val", "w");
22055   if (! f)
22056     return 1;
22057   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22058     {
22059       long int i = longval ();
22060       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22061         return 1;
22062       fprintf (f, "%ld\n", i);
22063     }
22064   else
22065     {
22066       unsigned long int i = ulongval ();
22067       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22068         return 1;
22069       fprintf (f, "%lu\n", i);
22070     }
22071   return ferror (f) || fclose (f) != 0;
22072
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_link") 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088   { (case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_try") 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097   ac_cv_sizeof_long_long=`cat conftest.val`
22098 else
22099   echo "$as_me: program exited with status $ac_status" >&5
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 ( exit $ac_status )
22104 if test "$ac_cv_type_long_long" = yes; then
22105      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22106 See \`config.log' for more details." >&5
22107 echo "$as_me: error: cannot compute sizeof (long long)
22108 See \`config.log' for more details." >&2;}
22109    { (exit 77); exit 77; }; }
22110    else
22111      ac_cv_sizeof_long_long=0
22112    fi
22113 fi
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22115 fi
22116 rm -f conftest.val
22117 fi
22118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22119 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22120
22121
22122
22123 cat >>confdefs.h <<_ACEOF
22124 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22125 _ACEOF
22126
22127
22128     ;;
22129     *-hp-hpux* )
22130         { echo "$as_me:$LINENO: checking for long long" >&5
22131 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22132 if test "${ac_cv_type_long_long+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22141 $ac_includes_default
22142 typedef long long ac__type_new_;
22143 int
22144 main ()
22145 {
22146 if ((ac__type_new_ *) 0)
22147   return 0;
22148 if (sizeof (ac__type_new_))
22149   return 0;
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_compile") 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && {
22168          test -z "$ac_c_werror_flag" ||
22169          test ! -s conftest.err
22170        } && test -s conftest.$ac_objext; then
22171   ac_cv_type_long_long=yes
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         ac_cv_type_long_long=no
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 fi
22181 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22182 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22183
22184 # The cast to long int works around a bug in the HP C Compiler
22185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22187 # This bug is HP SR number 8606223364.
22188 { echo "$as_me:$LINENO: checking size of long long" >&5
22189 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22190 if test "${ac_cv_sizeof_long_long+set}" = set; then
22191   echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193   if test "$cross_compiling" = yes; then
22194   # Depending upon the size, compute the lo and hi bounds.
22195 cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h.  */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h.  */
22201 $ac_includes_default
22202    typedef long long ac__type_sizeof_;
22203 int
22204 main ()
22205 {
22206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22207 test_array [0] = 0
22208
22209   ;
22210   return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext
22214 if { (ac_try="$ac_compile"
22215 case "(($ac_try" in
22216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217   *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220   (eval "$ac_compile") 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } && {
22227          test -z "$ac_c_werror_flag" ||
22228          test ! -s conftest.err
22229        } && test -s conftest.$ac_objext; then
22230   ac_lo=0 ac_mid=0
22231   while :; do
22232     cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 $ac_includes_default
22239    typedef long long ac__type_sizeof_;
22240 int
22241 main ()
22242 {
22243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22244 test_array [0] = 0
22245
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext
22251 if { (ac_try="$ac_compile"
22252 case "(($ac_try" in
22253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254   *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257   (eval "$ac_compile") 2>conftest.er1
22258   ac_status=$?
22259   grep -v '^ *+' conftest.er1 >conftest.err
22260   rm -f conftest.er1
22261   cat conftest.err >&5
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); } && {
22264          test -z "$ac_c_werror_flag" ||
22265          test ! -s conftest.err
22266        } && test -s conftest.$ac_objext; then
22267   ac_hi=$ac_mid; break
22268 else
22269   echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272         ac_lo=`expr $ac_mid + 1`
22273                         if test $ac_lo -le $ac_mid; then
22274                           ac_lo= ac_hi=
22275                           break
22276                         fi
22277                         ac_mid=`expr 2 '*' $ac_mid + 1`
22278 fi
22279
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281   done
22282 else
22283   echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22285
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_))) < 0)];
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=-1 ac_mid=-1
22322   while :; do
22323     cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329 $ac_includes_default
22330    typedef long long ac__type_sizeof_;
22331 int
22332 main ()
22333 {
22334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22335 test_array [0] = 0
22336
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (ac_try="$ac_compile"
22343 case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348   (eval "$ac_compile") 2>conftest.er1
22349   ac_status=$?
22350   grep -v '^ *+' conftest.er1 >conftest.err
22351   rm -f conftest.er1
22352   cat conftest.err >&5
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } && {
22355          test -z "$ac_c_werror_flag" ||
22356          test ! -s conftest.err
22357        } && test -s conftest.$ac_objext; then
22358   ac_lo=$ac_mid; break
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363         ac_hi=`expr '(' $ac_mid ')' - 1`
22364                         if test $ac_mid -le $ac_hi; then
22365                           ac_lo= ac_hi=
22366                           break
22367                         fi
22368                         ac_mid=`expr 2 '*' $ac_mid`
22369 fi
22370
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372   done
22373 else
22374   echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377         ac_lo= ac_hi=
22378 fi
22379
22380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 fi
22382
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 # Binary search between lo and hi bounds.
22385 while test "x$ac_lo" != "x$ac_hi"; do
22386   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22387   cat >conftest.$ac_ext <<_ACEOF
22388 /* confdefs.h.  */
22389 _ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h.  */
22393 $ac_includes_default
22394    typedef long long ac__type_sizeof_;
22395 int
22396 main ()
22397 {
22398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22399 test_array [0] = 0
22400
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409   *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412   (eval "$ac_compile") 2>conftest.er1
22413   ac_status=$?
22414   grep -v '^ *+' conftest.er1 >conftest.err
22415   rm -f conftest.er1
22416   cat conftest.err >&5
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); } && {
22419          test -z "$ac_c_werror_flag" ||
22420          test ! -s conftest.err
22421        } && test -s conftest.$ac_objext; then
22422   ac_hi=$ac_mid
22423 else
22424   echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427         ac_lo=`expr '(' $ac_mid ')' + 1`
22428 fi
22429
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 done
22432 case $ac_lo in
22433 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22434 '') if test "$ac_cv_type_long_long" = yes; then
22435      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22436 See \`config.log' for more details." >&5
22437 echo "$as_me: error: cannot compute sizeof (long long)
22438 See \`config.log' for more details." >&2;}
22439    { (exit 77); exit 77; }; }
22440    else
22441      ac_cv_sizeof_long_long=0
22442    fi ;;
22443 esac
22444 else
22445   cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h.  */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h.  */
22451 $ac_includes_default
22452    typedef long long ac__type_sizeof_;
22453 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22454 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22455 #include <stdio.h>
22456 #include <stdlib.h>
22457 int
22458 main ()
22459 {
22460
22461   FILE *f = fopen ("conftest.val", "w");
22462   if (! f)
22463     return 1;
22464   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22465     {
22466       long int i = longval ();
22467       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22468         return 1;
22469       fprintf (f, "%ld\n", i);
22470     }
22471   else
22472     {
22473       unsigned long int i = ulongval ();
22474       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22475         return 1;
22476       fprintf (f, "%lu\n", i);
22477     }
22478   return ferror (f) || fclose (f) != 0;
22479
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 rm -f conftest$ac_exeext
22485 if { (ac_try="$ac_link"
22486 case "(($ac_try" in
22487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488   *) ac_try_echo=$ac_try;;
22489 esac
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491   (eval "$ac_link") 2>&5
22492   ac_status=$?
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22495   { (case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_try") 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); }; }; then
22504   ac_cv_sizeof_long_long=`cat conftest.val`
22505 else
22506   echo "$as_me: program exited with status $ac_status" >&5
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510 ( exit $ac_status )
22511 if test "$ac_cv_type_long_long" = yes; then
22512      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22513 See \`config.log' for more details." >&5
22514 echo "$as_me: error: cannot compute sizeof (long long)
22515 See \`config.log' for more details." >&2;}
22516    { (exit 77); exit 77; }; }
22517    else
22518      ac_cv_sizeof_long_long=0
22519    fi
22520 fi
22521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22522 fi
22523 rm -f conftest.val
22524 fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22526 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22527
22528
22529
22530 cat >>confdefs.h <<_ACEOF
22531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22532 _ACEOF
22533
22534
22535         if test "$ac_cv_sizeof_long_long" != 0; then
22536                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22537         fi
22538     ;;
22539     * )
22540         { echo "$as_me:$LINENO: checking for long long" >&5
22541 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22542 if test "${ac_cv_type_long_long+set}" = set; then
22543   echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552 typedef long long ac__type_new_;
22553 int
22554 main ()
22555 {
22556 if ((ac__type_new_ *) 0)
22557   return 0;
22558 if (sizeof (ac__type_new_))
22559   return 0;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568   *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_c_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest.$ac_objext; then
22581   ac_cv_type_long_long=yes
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586         ac_cv_type_long_long=no
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 fi
22591 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22592 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22593
22594 # The cast to long int works around a bug in the HP C Compiler
22595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22597 # This bug is HP SR number 8606223364.
22598 { echo "$as_me:$LINENO: checking size of long long" >&5
22599 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22600 if test "${ac_cv_sizeof_long_long+set}" = set; then
22601   echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603   if test "$cross_compiling" = yes; then
22604   # Depending upon the size, compute the lo and hi bounds.
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 $ac_includes_default
22612    typedef long long ac__type_sizeof_;
22613 int
22614 main ()
22615 {
22616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22617 test_array [0] = 0
22618
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630   (eval "$ac_compile") 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } && {
22637          test -z "$ac_c_werror_flag" ||
22638          test ! -s conftest.err
22639        } && test -s conftest.$ac_objext; then
22640   ac_lo=0 ac_mid=0
22641   while :; do
22642     cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 $ac_includes_default
22649    typedef long long ac__type_sizeof_;
22650 int
22651 main ()
22652 {
22653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22654 test_array [0] = 0
22655
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext
22661 if { (ac_try="$ac_compile"
22662 case "(($ac_try" in
22663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664   *) ac_try_echo=$ac_try;;
22665 esac
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667   (eval "$ac_compile") 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } && {
22674          test -z "$ac_c_werror_flag" ||
22675          test ! -s conftest.err
22676        } && test -s conftest.$ac_objext; then
22677   ac_hi=$ac_mid; break
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682         ac_lo=`expr $ac_mid + 1`
22683                         if test $ac_lo -le $ac_mid; then
22684                           ac_lo= ac_hi=
22685                           break
22686                         fi
22687                         ac_mid=`expr 2 '*' $ac_mid + 1`
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691   done
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
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_))) < 0)];
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=-1 ac_mid=-1
22732   while :; do
22733     cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739 $ac_includes_default
22740    typedef long long ac__type_sizeof_;
22741 int
22742 main ()
22743 {
22744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22745 test_array [0] = 0
22746
22747   ;
22748   return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext
22752 if { (ac_try="$ac_compile"
22753 case "(($ac_try" in
22754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755   *) ac_try_echo=$ac_try;;
22756 esac
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758   (eval "$ac_compile") 2>conftest.er1
22759   ac_status=$?
22760   grep -v '^ *+' conftest.er1 >conftest.err
22761   rm -f conftest.er1
22762   cat conftest.err >&5
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } && {
22765          test -z "$ac_c_werror_flag" ||
22766          test ! -s conftest.err
22767        } && test -s conftest.$ac_objext; then
22768   ac_lo=$ac_mid; break
22769 else
22770   echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772
22773         ac_hi=`expr '(' $ac_mid ')' - 1`
22774                         if test $ac_mid -le $ac_hi; then
22775                           ac_lo= ac_hi=
22776                           break
22777                         fi
22778                         ac_mid=`expr 2 '*' $ac_mid`
22779 fi
22780
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782   done
22783 else
22784   echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22786
22787         ac_lo= ac_hi=
22788 fi
22789
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 fi
22792
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 # Binary search between lo and hi bounds.
22795 while test "x$ac_lo" != "x$ac_hi"; do
22796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22797   cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803 $ac_includes_default
22804    typedef long long ac__type_sizeof_;
22805 int
22806 main ()
22807 {
22808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22809 test_array [0] = 0
22810
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819   *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822   (eval "$ac_compile") 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && {
22829          test -z "$ac_c_werror_flag" ||
22830          test ! -s conftest.err
22831        } && test -s conftest.$ac_objext; then
22832   ac_hi=$ac_mid
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837         ac_lo=`expr '(' $ac_mid ')' + 1`
22838 fi
22839
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 done
22842 case $ac_lo in
22843 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22844 '') if test "$ac_cv_type_long_long" = yes; then
22845      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22846 See \`config.log' for more details." >&5
22847 echo "$as_me: error: cannot compute sizeof (long long)
22848 See \`config.log' for more details." >&2;}
22849    { (exit 77); exit 77; }; }
22850    else
22851      ac_cv_sizeof_long_long=0
22852    fi ;;
22853 esac
22854 else
22855   cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h.  */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h.  */
22861 $ac_includes_default
22862    typedef long long ac__type_sizeof_;
22863 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22864 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22865 #include <stdio.h>
22866 #include <stdlib.h>
22867 int
22868 main ()
22869 {
22870
22871   FILE *f = fopen ("conftest.val", "w");
22872   if (! f)
22873     return 1;
22874   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22875     {
22876       long int i = longval ();
22877       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22878         return 1;
22879       fprintf (f, "%ld\n", i);
22880     }
22881   else
22882     {
22883       unsigned long int i = ulongval ();
22884       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22885         return 1;
22886       fprintf (f, "%lu\n", i);
22887     }
22888   return ferror (f) || fclose (f) != 0;
22889
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest$ac_exeext
22895 if { (ac_try="$ac_link"
22896 case "(($ac_try" in
22897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898   *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901   (eval "$ac_link") 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905   { (case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_try") 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; }; then
22914   ac_cv_sizeof_long_long=`cat conftest.val`
22915 else
22916   echo "$as_me: program exited with status $ac_status" >&5
22917 echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22919
22920 ( exit $ac_status )
22921 if test "$ac_cv_type_long_long" = yes; then
22922      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22923 See \`config.log' for more details." >&5
22924 echo "$as_me: error: cannot compute sizeof (long long)
22925 See \`config.log' for more details." >&2;}
22926    { (exit 77); exit 77; }; }
22927    else
22928      ac_cv_sizeof_long_long=0
22929    fi
22930 fi
22931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22932 fi
22933 rm -f conftest.val
22934 fi
22935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22936 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22937
22938
22939
22940 cat >>confdefs.h <<_ACEOF
22941 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22942 _ACEOF
22943
22944
22945 esac
22946
22947 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22948 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22949 if test "${ac_cv_type_wchar_t+set}" = set; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952   cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h.  */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h.  */
22958
22959         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22960         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22961         #  error "fake wchar_t"
22962         #endif
22963         #ifdef HAVE_WCHAR_H
22964         #  ifdef __CYGWIN__
22965         #    include <stddef.h>
22966         #  endif
22967         #  include <wchar.h>
22968         #endif
22969         #ifdef HAVE_STDLIB_H
22970         #  include <stdlib.h>
22971         #endif
22972         #include <stdio.h>
22973
22974
22975
22976 typedef wchar_t ac__type_new_;
22977 int
22978 main ()
22979 {
22980 if ((ac__type_new_ *) 0)
22981   return 0;
22982 if (sizeof (ac__type_new_))
22983   return 0;
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest.$ac_objext; then
23005   ac_cv_type_wchar_t=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010         ac_cv_type_wchar_t=no
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 fi
23015 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23016 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23017
23018 # The cast to long int works around a bug in the HP C Compiler
23019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23021 # This bug is HP SR number 8606223364.
23022 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23023 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23024 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23025   echo $ECHO_N "(cached) $ECHO_C" >&6
23026 else
23027   if test "$cross_compiling" = yes; then
23028   # Depending upon the size, compute the lo and hi bounds.
23029 cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035
23036         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23037         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23038         #  error "fake wchar_t"
23039         #endif
23040         #ifdef HAVE_WCHAR_H
23041         #  ifdef __CYGWIN__
23042         #    include <stddef.h>
23043         #  endif
23044         #  include <wchar.h>
23045         #endif
23046         #ifdef HAVE_STDLIB_H
23047         #  include <stdlib.h>
23048         #endif
23049         #include <stdio.h>
23050
23051
23052
23053    typedef wchar_t ac__type_sizeof_;
23054 int
23055 main ()
23056 {
23057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23058 test_array [0] = 0
23059
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068   *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071   (eval "$ac_compile") 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } && {
23078          test -z "$ac_c_werror_flag" ||
23079          test ! -s conftest.err
23080        } && test -s conftest.$ac_objext; then
23081   ac_lo=0 ac_mid=0
23082   while :; do
23083     cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089
23090         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23091         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23092         #  error "fake wchar_t"
23093         #endif
23094         #ifdef HAVE_WCHAR_H
23095         #  ifdef __CYGWIN__
23096         #    include <stddef.h>
23097         #  endif
23098         #  include <wchar.h>
23099         #endif
23100         #ifdef HAVE_STDLIB_H
23101         #  include <stdlib.h>
23102         #endif
23103         #include <stdio.h>
23104
23105
23106
23107    typedef wchar_t ac__type_sizeof_;
23108 int
23109 main ()
23110 {
23111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23112 test_array [0] = 0
23113
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122   *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125   (eval "$ac_compile") 2>conftest.er1
23126   ac_status=$?
23127   grep -v '^ *+' conftest.er1 >conftest.err
23128   rm -f conftest.er1
23129   cat conftest.err >&5
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } && {
23132          test -z "$ac_c_werror_flag" ||
23133          test ! -s conftest.err
23134        } && test -s conftest.$ac_objext; then
23135   ac_hi=$ac_mid; break
23136 else
23137   echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140         ac_lo=`expr $ac_mid + 1`
23141                         if test $ac_lo -le $ac_mid; then
23142                           ac_lo= ac_hi=
23143                           break
23144                         fi
23145                         ac_mid=`expr 2 '*' $ac_mid + 1`
23146 fi
23147
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149   done
23150 else
23151   echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154         cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160
23161         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23162         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23163         #  error "fake wchar_t"
23164         #endif
23165         #ifdef HAVE_WCHAR_H
23166         #  ifdef __CYGWIN__
23167         #    include <stddef.h>
23168         #  endif
23169         #  include <wchar.h>
23170         #endif
23171         #ifdef HAVE_STDLIB_H
23172         #  include <stdlib.h>
23173         #endif
23174         #include <stdio.h>
23175
23176
23177
23178    typedef wchar_t ac__type_sizeof_;
23179 int
23180 main ()
23181 {
23182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23183 test_array [0] = 0
23184
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_compile") 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } && {
23203          test -z "$ac_c_werror_flag" ||
23204          test ! -s conftest.err
23205        } && test -s conftest.$ac_objext; then
23206   ac_hi=-1 ac_mid=-1
23207   while :; do
23208     cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214
23215         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23216         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23217         #  error "fake wchar_t"
23218         #endif
23219         #ifdef HAVE_WCHAR_H
23220         #  ifdef __CYGWIN__
23221         #    include <stddef.h>
23222         #  endif
23223         #  include <wchar.h>
23224         #endif
23225         #ifdef HAVE_STDLIB_H
23226         #  include <stdlib.h>
23227         #endif
23228         #include <stdio.h>
23229
23230
23231
23232    typedef wchar_t ac__type_sizeof_;
23233 int
23234 main ()
23235 {
23236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23237 test_array [0] = 0
23238
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 rm -f conftest.$ac_objext
23244 if { (ac_try="$ac_compile"
23245 case "(($ac_try" in
23246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247   *) ac_try_echo=$ac_try;;
23248 esac
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250   (eval "$ac_compile") 2>conftest.er1
23251   ac_status=$?
23252   grep -v '^ *+' conftest.er1 >conftest.err
23253   rm -f conftest.er1
23254   cat conftest.err >&5
23255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256   (exit $ac_status); } && {
23257          test -z "$ac_c_werror_flag" ||
23258          test ! -s conftest.err
23259        } && test -s conftest.$ac_objext; then
23260   ac_lo=$ac_mid; break
23261 else
23262   echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265         ac_hi=`expr '(' $ac_mid ')' - 1`
23266                         if test $ac_mid -le $ac_hi; then
23267                           ac_lo= ac_hi=
23268                           break
23269                         fi
23270                         ac_mid=`expr 2 '*' $ac_mid`
23271 fi
23272
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274   done
23275 else
23276   echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279         ac_lo= ac_hi=
23280 fi
23281
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 fi
23284
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 # Binary search between lo and hi bounds.
23287 while test "x$ac_lo" != "x$ac_hi"; do
23288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23289   cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295
23296         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23297         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23298         #  error "fake wchar_t"
23299         #endif
23300         #ifdef HAVE_WCHAR_H
23301         #  ifdef __CYGWIN__
23302         #    include <stddef.h>
23303         #  endif
23304         #  include <wchar.h>
23305         #endif
23306         #ifdef HAVE_STDLIB_H
23307         #  include <stdlib.h>
23308         #endif
23309         #include <stdio.h>
23310
23311
23312
23313    typedef wchar_t ac__type_sizeof_;
23314 int
23315 main ()
23316 {
23317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23318 test_array [0] = 0
23319
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331   (eval "$ac_compile") 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } && {
23338          test -z "$ac_c_werror_flag" ||
23339          test ! -s conftest.err
23340        } && test -s conftest.$ac_objext; then
23341   ac_hi=$ac_mid
23342 else
23343   echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346         ac_lo=`expr '(' $ac_mid ')' + 1`
23347 fi
23348
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 done
23351 case $ac_lo in
23352 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23353 '') if test "$ac_cv_type_wchar_t" = yes; then
23354      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23355 See \`config.log' for more details." >&5
23356 echo "$as_me: error: cannot compute sizeof (wchar_t)
23357 See \`config.log' for more details." >&2;}
23358    { (exit 77); exit 77; }; }
23359    else
23360      ac_cv_sizeof_wchar_t=0
23361    fi ;;
23362 esac
23363 else
23364   cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370
23371         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23372         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23373         #  error "fake wchar_t"
23374         #endif
23375         #ifdef HAVE_WCHAR_H
23376         #  ifdef __CYGWIN__
23377         #    include <stddef.h>
23378         #  endif
23379         #  include <wchar.h>
23380         #endif
23381         #ifdef HAVE_STDLIB_H
23382         #  include <stdlib.h>
23383         #endif
23384         #include <stdio.h>
23385
23386
23387
23388    typedef wchar_t ac__type_sizeof_;
23389 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23390 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23391 #include <stdio.h>
23392 #include <stdlib.h>
23393 int
23394 main ()
23395 {
23396
23397   FILE *f = fopen ("conftest.val", "w");
23398   if (! f)
23399     return 1;
23400   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23401     {
23402       long int i = longval ();
23403       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23404         return 1;
23405       fprintf (f, "%ld\n", i);
23406     }
23407   else
23408     {
23409       unsigned long int i = ulongval ();
23410       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23411         return 1;
23412       fprintf (f, "%lu\n", i);
23413     }
23414   return ferror (f) || fclose (f) != 0;
23415
23416   ;
23417   return 0;
23418 }
23419 _ACEOF
23420 rm -f conftest$ac_exeext
23421 if { (ac_try="$ac_link"
23422 case "(($ac_try" in
23423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424   *) ac_try_echo=$ac_try;;
23425 esac
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427   (eval "$ac_link") 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23431   { (case "(($ac_try" in
23432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433   *) ac_try_echo=$ac_try;;
23434 esac
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436   (eval "$ac_try") 2>&5
23437   ac_status=$?
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); }; }; then
23440   ac_cv_sizeof_wchar_t=`cat conftest.val`
23441 else
23442   echo "$as_me: program exited with status $ac_status" >&5
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446 ( exit $ac_status )
23447 if test "$ac_cv_type_wchar_t" = yes; then
23448      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23449 See \`config.log' for more details." >&5
23450 echo "$as_me: error: cannot compute sizeof (wchar_t)
23451 See \`config.log' for more details." >&2;}
23452    { (exit 77); exit 77; }; }
23453    else
23454      ac_cv_sizeof_wchar_t=0
23455    fi
23456 fi
23457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23458 fi
23459 rm -f conftest.val
23460 fi
23461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23462 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23463
23464
23465
23466 cat >>confdefs.h <<_ACEOF
23467 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23468 _ACEOF
23469
23470
23471 if test "$ac_cv_sizeof_wchar_t" != 0; then
23472     wxUSE_WCHAR_T=yes
23473 else
23474     wxUSE_WCHAR_T=no
23475 fi
23476
23477 { echo "$as_me:$LINENO: checking for va_copy" >&5
23478 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23479 if test "${wx_cv_func_va_copy+set}" = set; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482
23483         ac_ext=cpp
23484 ac_cpp='$CXXCPP $CPPFLAGS'
23485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23488
23489         cat >conftest.$ac_ext <<_ACEOF
23490
23491             #include <stdarg.h>
23492             void foo(char *f, ...)
23493             {
23494                 va_list ap1, ap2;
23495                 va_start(ap1, f);
23496                 va_copy(ap2, ap1);
23497                 va_end(ap2);
23498                 va_end(ap1);
23499             }
23500             int main()
23501             {
23502                 foo("hi", 17);
23503                 return 0;
23504             }
23505 _ACEOF
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (ac_try="$ac_link"
23508 case "(($ac_try" in
23509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510   *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513   (eval "$ac_link") 2>conftest.er1
23514   ac_status=$?
23515   grep -v '^ *+' conftest.er1 >conftest.err
23516   rm -f conftest.er1
23517   cat conftest.err >&5
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); } && {
23520          test -z "$ac_cxx_werror_flag" ||
23521          test ! -s conftest.err
23522        } && test -s conftest$ac_exeext &&
23523        $as_test_x conftest$ac_exeext; then
23524   wx_cv_func_va_copy=yes
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529         wx_cv_func_va_copy=no
23530
23531 fi
23532
23533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23534       conftest$ac_exeext conftest.$ac_ext
23535         ac_ext=c
23536 ac_cpp='$CPP $CPPFLAGS'
23537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23540
23541
23542
23543 fi
23544 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23545 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23546
23547 if test $wx_cv_func_va_copy = "yes"; then
23548     cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_VA_COPY 1
23550 _ACEOF
23551
23552 else
23553         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23554 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23555 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23556   echo $ECHO_N "(cached) $ECHO_C" >&6
23557 else
23558
23559             if test "$cross_compiling" = yes; then
23560                   wx_cv_type_va_list_lvalue=yes
23561
23562 else
23563   cat >conftest.$ac_ext <<_ACEOF
23564
23565                 #include <stdarg.h>
23566                 int foo(char *f, ...)
23567                 {
23568                     va_list ap1, ap2;
23569                     va_start(ap1, f);
23570                     ap2 = ap1;
23571                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23572                         return 1;
23573                     va_end(ap2);
23574                     va_end(ap1);
23575                     return 0;
23576                 }
23577                 int main()
23578                 {
23579                     return foo("hi", 17);
23580                 }
23581 _ACEOF
23582 rm -f conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589   (eval "$ac_link") 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23593   { (case "(($ac_try" in
23594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595   *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598   (eval "$ac_try") 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; }; then
23602   wx_cv_type_va_list_lvalue=yes
23603 else
23604   echo "$as_me: program exited with status $ac_status" >&5
23605 echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608 ( exit $ac_status )
23609 wx_cv_type_va_list_lvalue=no
23610 fi
23611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23612 fi
23613
23614
23615
23616
23617 fi
23618 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23619 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23620
23621     if test $wx_cv_type_va_list_lvalue != "yes"; then
23622                         cat >>confdefs.h <<\_ACEOF
23623 #define VA_LIST_IS_ARRAY 1
23624 _ACEOF
23625
23626     fi
23627 fi
23628
23629 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23630
23631 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23632 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23633 if test "${wx_cv_have_variadic_macros+set}" = set; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636
23637                         ac_ext=cpp
23638 ac_cpp='$CXXCPP $CPPFLAGS'
23639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23642
23643         cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h.  */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h.  */
23649
23650                     #include <stdio.h>
23651                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23652
23653 int
23654 main ()
23655 {
23656
23657                     test("%s %d %p", "test", 1, 0);
23658
23659
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 rm -f conftest.$ac_objext
23665 if { (ac_try="$ac_compile"
23666 case "(($ac_try" in
23667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668   *) ac_try_echo=$ac_try;;
23669 esac
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671   (eval "$ac_compile") 2>conftest.er1
23672   ac_status=$?
23673   grep -v '^ *+' conftest.er1 >conftest.err
23674   rm -f conftest.er1
23675   cat conftest.err >&5
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); } && {
23678          test -z "$ac_cxx_werror_flag" ||
23679          test ! -s conftest.err
23680        } && test -s conftest.$ac_objext; then
23681   wx_cv_have_variadic_macros=yes
23682 else
23683   echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686         wx_cv_have_variadic_macros=no
23687
23688 fi
23689
23690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691         ac_ext=c
23692 ac_cpp='$CPP $CPPFLAGS'
23693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23696
23697
23698
23699 fi
23700 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23701 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23702
23703 if test $wx_cv_have_variadic_macros = "yes"; then
23704     cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_VARIADIC_MACROS 1
23706 _ACEOF
23707
23708 fi
23709
23710 fi
23711
23712 LARGEFILE_CPPFLAGS=
23713 # Check whether --enable-largefile was given.
23714 if test "${enable_largefile+set}" = set; then
23715   enableval=$enable_largefile;
23716 fi
23717
23718 if test "$enable_largefile" != no; then
23719             wx_largefile=no
23720
23721     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23722 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23723 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726
23727           cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #define _FILE_OFFSET_BITS 64
23734                           #include <sys/types.h>
23735 int
23736 main ()
23737 {
23738 typedef struct {
23739     unsigned int field: sizeof(off_t) == 8;
23740 } wxlf;
23741
23742   ;
23743   return 0;
23744 }
23745 _ACEOF
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750   *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753   (eval "$ac_compile") 2>conftest.er1
23754   ac_status=$?
23755   grep -v '^ *+' conftest.er1 >conftest.err
23756   rm -f conftest.er1
23757   cat conftest.err >&5
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); } && {
23760          test -z "$ac_c_werror_flag" ||
23761          test ! -s conftest.err
23762        } && test -s conftest.$ac_objext; then
23763   ac_cv_sys_file_offset_bits=64
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768         ac_cv_sys_file_offset_bits=no
23769 fi
23770
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772
23773
23774 fi
23775 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23776 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23777
23778     if test "$ac_cv_sys_file_offset_bits" != no; then
23779         wx_largefile=yes
23780         cat >>confdefs.h <<_ACEOF
23781 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23782 _ACEOF
23783
23784     fi
23785
23786     if test "x$wx_largefile" != "xyes"; then
23787
23788     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23789 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23790 if test "${ac_cv_sys_large_files+set}" = set; then
23791   echo $ECHO_N "(cached) $ECHO_C" >&6
23792 else
23793
23794           cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 #define _LARGE_FILES 1
23801                           #include <sys/types.h>
23802 int
23803 main ()
23804 {
23805 typedef struct {
23806     unsigned int field: sizeof(off_t) == 8;
23807 } wxlf;
23808
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext
23814 if { (ac_try="$ac_compile"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_compile") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest.$ac_objext; then
23830   ac_cv_sys_large_files=1
23831 else
23832   echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835         ac_cv_sys_large_files=no
23836 fi
23837
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839
23840
23841 fi
23842 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23844
23845     if test "$ac_cv_sys_large_files" != no; then
23846         wx_largefile=yes
23847         cat >>confdefs.h <<_ACEOF
23848 #define _LARGE_FILES $ac_cv_sys_large_files
23849 _ACEOF
23850
23851     fi
23852
23853     fi
23854
23855     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23856 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23857     if test "x$wx_largefile" = "xyes"; then
23858         cat >>confdefs.h <<\_ACEOF
23859 #define HAVE_LARGEFILE_SUPPORT 1
23860 _ACEOF
23861
23862     fi
23863     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23864 echo "${ECHO_T}$wx_largefile" >&6; }
23865 fi
23866
23867 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23868     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23869 elif test "$ac_cv_sys_large_files" = 1; then
23870     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23871 fi
23872
23873 if test -n "$LARGEFILE_CPPFLAGS"; then
23874     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23875
23876                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23877         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23878 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23879 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882
23883                 ac_ext=cpp
23884 ac_cpp='$CXXCPP $CPPFLAGS'
23885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23888
23889                 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895
23896 int
23897 main ()
23898 {
23899
23900                         #ifndef __STDC_EXT__
23901                             choke me
23902                         #endif
23903
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912   *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915   (eval "$ac_compile") 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && {
23922          test -z "$ac_cxx_werror_flag" ||
23923          test ! -s conftest.err
23924        } && test -s conftest.$ac_objext; then
23925   wx_cv_STDC_EXT_required=no
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930         wx_cv_STDC_EXT_required=yes
23931
23932 fi
23933
23934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23935                 ac_ext=c
23936 ac_cpp='$CPP $CPPFLAGS'
23937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23940
23941
23942
23943 fi
23944 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23945 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23946         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23947             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23948         fi
23949     fi
23950 fi
23951
23952 ac_ext=cpp
23953 ac_cpp='$CXXCPP $CPPFLAGS'
23954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23957
23958 old_CPPFLAGS="$CPPFLAGS"
23959 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23960 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23961 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23962 if test "${ac_cv_sys_largefile_source+set}" = set; then
23963   echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23965   while :; do
23966   cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 #include <sys/types.h> /* for off_t */
23973      #include <stdio.h>
23974 int
23975 main ()
23976 {
23977 int (*fp) (FILE *, off_t, int) = fseeko;
23978      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (ac_try="$ac_link"
23985 case "(($ac_try" in
23986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987   *) ac_try_echo=$ac_try;;
23988 esac
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990   (eval "$ac_link") 2>conftest.er1
23991   ac_status=$?
23992   grep -v '^ *+' conftest.er1 >conftest.err
23993   rm -f conftest.er1
23994   cat conftest.err >&5
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); } && {
23997          test -z "$ac_cxx_werror_flag" ||
23998          test ! -s conftest.err
23999        } && test -s conftest$ac_exeext &&
24000        $as_test_x conftest$ac_exeext; then
24001   ac_cv_sys_largefile_source=no; break
24002 else
24003   echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006
24007 fi
24008
24009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24010       conftest$ac_exeext conftest.$ac_ext
24011   cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017 #define _LARGEFILE_SOURCE 1
24018 #include <sys/types.h> /* for off_t */
24019      #include <stdio.h>
24020 int
24021 main ()
24022 {
24023 int (*fp) (FILE *, off_t, int) = fseeko;
24024      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24025   ;
24026   return 0;
24027 }
24028 _ACEOF
24029 rm -f conftest.$ac_objext conftest$ac_exeext
24030 if { (ac_try="$ac_link"
24031 case "(($ac_try" in
24032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033   *) ac_try_echo=$ac_try;;
24034 esac
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036   (eval "$ac_link") 2>conftest.er1
24037   ac_status=$?
24038   grep -v '^ *+' conftest.er1 >conftest.err
24039   rm -f conftest.er1
24040   cat conftest.err >&5
24041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); } && {
24043          test -z "$ac_cxx_werror_flag" ||
24044          test ! -s conftest.err
24045        } && test -s conftest$ac_exeext &&
24046        $as_test_x conftest$ac_exeext; then
24047   ac_cv_sys_largefile_source=1; break
24048 else
24049   echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24051
24052
24053 fi
24054
24055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24056       conftest$ac_exeext conftest.$ac_ext
24057   ac_cv_sys_largefile_source=unknown
24058   break
24059 done
24060 fi
24061 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24062 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24063 case $ac_cv_sys_largefile_source in #(
24064   no | unknown) ;;
24065   *)
24066 cat >>confdefs.h <<_ACEOF
24067 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24068 _ACEOF
24069 ;;
24070 esac
24071 rm -f conftest*
24072
24073 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24074 # in glibc 2.1.3, but that breaks too many other things.
24075 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24076 if test $ac_cv_sys_largefile_source != unknown; then
24077
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_FSEEKO 1
24080 _ACEOF
24081
24082 fi
24083
24084 CPPFLAGS="$old_CPPFLAGS"
24085 ac_ext=c
24086 ac_cpp='$CPP $CPPFLAGS'
24087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24090
24091 if test "$ac_cv_sys_largefile_source" != no; then
24092     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24093 fi
24094
24095 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24096 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24097 if test "${ac_cv_c_bigendian+set}" = set; then
24098   echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100   ac_cv_c_bigendian=unknown
24101 # See if sys/param.h defines the BYTE_ORDER macro.
24102 cat >conftest.$ac_ext <<_ACEOF
24103 /* confdefs.h.  */
24104 _ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h.  */
24108 #include <sys/types.h>
24109 #include <sys/param.h>
24110 int
24111 main ()
24112 {
24113
24114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24115  bogus endian macros
24116 #endif
24117   ;
24118   return 0;
24119 }
24120 _ACEOF
24121 rm -f conftest.$ac_objext
24122 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24129   ac_status=$?
24130   grep -v '^ *+' conftest.er1 >conftest.err
24131   rm -f conftest.er1
24132   cat conftest.err >&5
24133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134   (exit $ac_status); } && {
24135          test -z "$ac_c_werror_flag" ||
24136          test ! -s conftest.err
24137        } && test -s conftest.$ac_objext; then
24138   # It does; now see whether it defined to BIG_ENDIAN or not.
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145 #include <sys/types.h>
24146 #include <sys/param.h>
24147 int
24148 main ()
24149 {
24150
24151 #if BYTE_ORDER != BIG_ENDIAN
24152  not big endian
24153 #endif
24154   ;
24155   return 0;
24156 }
24157 _ACEOF
24158 rm -f conftest.$ac_objext
24159 if { (ac_try="$ac_compile"
24160 case "(($ac_try" in
24161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162   *) ac_try_echo=$ac_try;;
24163 esac
24164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165   (eval "$ac_compile") 2>conftest.er1
24166   ac_status=$?
24167   grep -v '^ *+' conftest.er1 >conftest.err
24168   rm -f conftest.er1
24169   cat conftest.err >&5
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); } && {
24172          test -z "$ac_c_werror_flag" ||
24173          test ! -s conftest.err
24174        } && test -s conftest.$ac_objext; then
24175   ac_cv_c_bigendian=yes
24176 else
24177   echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180         ac_cv_c_bigendian=no
24181 fi
24182
24183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24184 else
24185   echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24187
24188
24189 fi
24190
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192 if test $ac_cv_c_bigendian = unknown; then
24193 if test "$cross_compiling" = yes; then
24194   ac_cv_c_bigendian=unknown
24195 else
24196   cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 main () {
24203   /* Are we little or big endian?  From Harbison&Steele.  */
24204   union
24205   {
24206     long l;
24207     char c[sizeof (long)];
24208   } u;
24209   u.l = 1;
24210   exit (u.c[sizeof (long) - 1] == 1);
24211 }
24212 _ACEOF
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217   *) ac_try_echo=$ac_try;;
24218 esac
24219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24220   (eval "$ac_link") 2>&5
24221   ac_status=$?
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24224   { (case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229   (eval "$ac_try") 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; }; then
24233   ac_cv_c_bigendian=no
24234 else
24235   echo "$as_me: program exited with status $ac_status" >&5
24236 echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24238
24239 ( exit $ac_status )
24240 ac_cv_c_bigendian=yes
24241 fi
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24243 fi
24244
24245
24246 fi
24247 fi
24248 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24249 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24250 if test $ac_cv_c_bigendian = unknown; then
24251   { 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
24252 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;}
24253 fi
24254 if test $ac_cv_c_bigendian = yes; then
24255   cat >>confdefs.h <<\_ACEOF
24256 #define WORDS_BIGENDIAN 1
24257 _ACEOF
24258
24259 fi
24260
24261
24262
24263
24264     ac_ext=cpp
24265 ac_cpp='$CXXCPP $CPPFLAGS'
24266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24269
24270
24271
24272 for ac_header in iostream
24273 do
24274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24278   echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280   cat >conftest.$ac_ext <<_ACEOF
24281 /* confdefs.h.  */
24282 _ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h.  */
24286
24287
24288 #include <$ac_header>
24289 _ACEOF
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_compile") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } && {
24304          test -z "$ac_cxx_werror_flag" ||
24305          test ! -s conftest.err
24306        } && test -s conftest.$ac_objext; then
24307   eval "$as_ac_Header=yes"
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312         eval "$as_ac_Header=no"
24313 fi
24314
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 fi
24317 ac_res=`eval echo '${'$as_ac_Header'}'`
24318                { echo "$as_me:$LINENO: result: $ac_res" >&5
24319 echo "${ECHO_T}$ac_res" >&6; }
24320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24321   cat >>confdefs.h <<_ACEOF
24322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24323 _ACEOF
24324
24325 fi
24326
24327 done
24328
24329
24330     if test "$ac_cv_header_iostream" = "yes" ; then
24331       :
24332     else
24333       cat >>confdefs.h <<\_ACEOF
24334 #define wxUSE_IOSTREAMH 1
24335 _ACEOF
24336
24337     fi
24338
24339     ac_ext=c
24340 ac_cpp='$CPP $CPPFLAGS'
24341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24344
24345
24346
24347
24348   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24349 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24350 if test "${wx_cv_explicit+set}" = set; then
24351   echo $ECHO_N "(cached) $ECHO_C" >&6
24352 else
24353
24354
24355     ac_ext=cpp
24356 ac_cpp='$CXXCPP $CPPFLAGS'
24357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24360
24361
24362             cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368
24369         class Foo { public: explicit Foo(int) {} };
24370
24371 int
24372 main ()
24373 {
24374
24375         return 0;
24376
24377   ;
24378   return 0;
24379 }
24380 _ACEOF
24381 rm -f conftest.$ac_objext
24382 if { (ac_try="$ac_compile"
24383 case "(($ac_try" in
24384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385   *) ac_try_echo=$ac_try;;
24386 esac
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388   (eval "$ac_compile") 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } && {
24395          test -z "$ac_cxx_werror_flag" ||
24396          test ! -s conftest.err
24397        } && test -s conftest.$ac_objext; then
24398
24399         cat >conftest.$ac_ext <<_ACEOF
24400 /* confdefs.h.  */
24401 _ACEOF
24402 cat confdefs.h >>conftest.$ac_ext
24403 cat >>conftest.$ac_ext <<_ACEOF
24404 /* end confdefs.h.  */
24405
24406                 class Foo { public: explicit Foo(int) {} };
24407                 static void TakeFoo(const Foo& foo) { }
24408
24409 int
24410 main ()
24411 {
24412
24413                 TakeFoo(17);
24414                 return 0;
24415
24416   ;
24417   return 0;
24418 }
24419 _ACEOF
24420 rm -f conftest.$ac_objext
24421 if { (ac_try="$ac_compile"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427   (eval "$ac_compile") 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } && {
24434          test -z "$ac_cxx_werror_flag" ||
24435          test ! -s conftest.err
24436        } && test -s conftest.$ac_objext; then
24437   wx_cv_explicit=no
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         wx_cv_explicit=yes
24443
24444 fi
24445
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447
24448 else
24449   echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24451
24452         wx_cv_explicit=no
24453
24454 fi
24455
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457
24458     ac_ext=c
24459 ac_cpp='$CPP $CPPFLAGS'
24460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24463
24464
24465 fi
24466 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24467 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24468
24469   if test "$wx_cv_explicit" = "yes"; then
24470     cat >>confdefs.h <<\_ACEOF
24471 #define HAVE_EXPLICIT 1
24472 _ACEOF
24473
24474   fi
24475
24476
24477 if test "x$SUNCXX" = xyes; then
24478     CXXFLAGS="-features=tmplife $CXXFLAGS"
24479 fi
24480
24481 if test "x$SUNCC" = xyes; then
24482     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24483 fi
24484
24485 if test "x$SGICC" = "xyes"; then
24486     CFLAGS="-woff 3970 $CFLAGS"
24487 fi
24488 if test "x$SGICXX" = "xyes"; then
24489     CXXFLAGS="-woff 3970 $CXXFLAGS"
24490 fi
24491
24492 if test "x$HPCC" = "xyes"; then
24493                     CFLAGS="+W 2011,2450 $CFLAGS"
24494 fi
24495 if test "x$HPCXX" = "xyes"; then
24496                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24497 fi
24498
24499 if test "x$COMPAQCXX" = "xyes"; then
24500                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24501 fi
24502
24503 ac_ext=cpp
24504 ac_cpp='$CXXCPP $CPPFLAGS'
24505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24508
24509
24510 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24511     if test "$wxUSE_UNICODE" = "yes"; then
24512         std_string="std::wstring"
24513         char_type="wchar_t"
24514     else
24515         std_string="std::string"
24516         char_type="char"
24517     fi
24518
24519         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24520 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24521 if test "${wx_cv_class_stdstring+set}" = set; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524
24525             cat >conftest.$ac_ext <<_ACEOF
24526 /* confdefs.h.  */
24527 _ACEOF
24528 cat confdefs.h >>conftest.$ac_ext
24529 cat >>conftest.$ac_ext <<_ACEOF
24530 /* end confdefs.h.  */
24531 #include <string>
24532 int
24533 main ()
24534 {
24535 $std_string foo;
24536   ;
24537   return 0;
24538 }
24539 _ACEOF
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_compile") 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && {
24554          test -z "$ac_cxx_werror_flag" ||
24555          test ! -s conftest.err
24556        } && test -s conftest.$ac_objext; then
24557   wx_cv_class_stdstring=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         wx_cv_class_stdstring=no
24563
24564 fi
24565
24566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567
24568
24569 fi
24570 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24571 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24572
24573     if test "$wx_cv_class_stdstring" = yes; then
24574         if test "$wxUSE_UNICODE" = "yes"; then
24575             cat >>confdefs.h <<\_ACEOF
24576 #define HAVE_STD_WSTRING 1
24577 _ACEOF
24578
24579         fi
24580                     else
24581         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24582 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24583 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24584   echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24586
24587                 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593
24594                     #ifdef HAVE_WCHAR_H
24595                     #  ifdef __CYGWIN__
24596                     #    include <stddef.h>
24597                     #  endif
24598                     #  include <wchar.h>
24599                     #endif
24600                     #ifdef HAVE_STDLIB_H
24601                     #  include <stdlib.h>
24602                     #endif
24603                     #include <stdio.h>
24604                     #include <string>
24605
24606 int
24607 main ()
24608 {
24609 std::basic_string<$char_type> foo;
24610                      const $char_type* dummy = foo.c_str();
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_compile") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_cxx_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest.$ac_objext; then
24632   wx_cv_class_stdbasicstring=yes
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637         wx_cv_class_stdbasicstring=no
24638
24639 fi
24640
24641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642
24643
24644 fi
24645 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24646 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24647
24648         if test "$wx_cv_class_stdbasicstring" != yes; then
24649             if test "$wxUSE_STL" = "yes"; then
24650                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24651 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24652    { (exit 1); exit 1; }; }
24653             elif test "$wxUSE_STD_STRING" = "yes"; then
24654                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24655 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24656    { (exit 1); exit 1; }; }
24657             else
24658                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24659 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24660                 wxUSE_STD_STRING=no
24661             fi
24662         fi
24663     fi
24664 fi
24665
24666 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24667     { echo "$as_me:$LINENO: checking for std::istream" >&5
24668 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24669 if test "${ac_cv_type_std__istream+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678 #include <iostream>
24679
24680 typedef std::istream ac__type_new_;
24681 int
24682 main ()
24683 {
24684 if ((ac__type_new_ *) 0)
24685   return 0;
24686 if (sizeof (ac__type_new_))
24687   return 0;
24688   ;
24689   return 0;
24690 }
24691 _ACEOF
24692 rm -f conftest.$ac_objext
24693 if { (ac_try="$ac_compile"
24694 case "(($ac_try" in
24695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696   *) ac_try_echo=$ac_try;;
24697 esac
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699   (eval "$ac_compile") 2>conftest.er1
24700   ac_status=$?
24701   grep -v '^ *+' conftest.er1 >conftest.err
24702   rm -f conftest.er1
24703   cat conftest.err >&5
24704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); } && {
24706          test -z "$ac_cxx_werror_flag" ||
24707          test ! -s conftest.err
24708        } && test -s conftest.$ac_objext; then
24709   ac_cv_type_std__istream=yes
24710 else
24711   echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714         ac_cv_type_std__istream=no
24715 fi
24716
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718 fi
24719 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24720 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24721 if test $ac_cv_type_std__istream = yes; then
24722
24723 cat >>confdefs.h <<_ACEOF
24724 #define HAVE_STD__ISTREAM 1
24725 _ACEOF
24726
24727
24728 else
24729   wxUSE_STD_IOSTREAM=no
24730 fi
24731 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24732 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24733 if test "${ac_cv_type_std__ostream+set}" = set; then
24734   echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736   cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h.  */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h.  */
24742 #include <iostream>
24743
24744 typedef std::ostream ac__type_new_;
24745 int
24746 main ()
24747 {
24748 if ((ac__type_new_ *) 0)
24749   return 0;
24750 if (sizeof (ac__type_new_))
24751   return 0;
24752   ;
24753   return 0;
24754 }
24755 _ACEOF
24756 rm -f conftest.$ac_objext
24757 if { (ac_try="$ac_compile"
24758 case "(($ac_try" in
24759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760   *) ac_try_echo=$ac_try;;
24761 esac
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763   (eval "$ac_compile") 2>conftest.er1
24764   ac_status=$?
24765   grep -v '^ *+' conftest.er1 >conftest.err
24766   rm -f conftest.er1
24767   cat conftest.err >&5
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); } && {
24770          test -z "$ac_cxx_werror_flag" ||
24771          test ! -s conftest.err
24772        } && test -s conftest.$ac_objext; then
24773   ac_cv_type_std__ostream=yes
24774 else
24775   echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24777
24778         ac_cv_type_std__ostream=no
24779 fi
24780
24781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24782 fi
24783 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24784 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24785 if test $ac_cv_type_std__ostream = yes; then
24786
24787 cat >>confdefs.h <<_ACEOF
24788 #define HAVE_STD__OSTREAM 1
24789 _ACEOF
24790
24791
24792 else
24793   wxUSE_STD_IOSTREAM=no
24794 fi
24795
24796
24797     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24798         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24799             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24800 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24801    { (exit 1); exit 1; }; }
24802         else
24803             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24804 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24805         fi
24806     fi
24807 fi
24808
24809 if test "$wxUSE_STL" = "yes"; then
24810         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24811 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24812 if test "${wx_cv_lib_stl+set}" = set; then
24813   echo $ECHO_N "(cached) $ECHO_C" >&6
24814 else
24815   cat >conftest.$ac_ext <<_ACEOF
24816 /* confdefs.h.  */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h.  */
24821 #include <string>
24822             #include <functional>
24823             #include <algorithm>
24824             #include <vector>
24825             #include <list>
24826 int
24827 main ()
24828 {
24829 std::vector<int> moo;
24830              std::list<int> foo;
24831              std::vector<int>::iterator it =
24832                  std::find_if(moo.begin(), moo.end(),
24833                               std::bind2nd(std::less<int>(), 3));
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext
24839 if { (ac_try="$ac_compile"
24840 case "(($ac_try" in
24841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842   *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845   (eval "$ac_compile") 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } && {
24852          test -z "$ac_cxx_werror_flag" ||
24853          test ! -s conftest.err
24854        } && test -s conftest.$ac_objext; then
24855   wx_cv_lib_stl=yes
24856 else
24857   echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860         wx_cv_lib_stl=no
24861
24862 fi
24863
24864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24865
24866 fi
24867 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24868 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24869
24870     if test "$wx_cv_lib_stl" != yes; then
24871          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24872 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24873    { (exit 1); exit 1; }; }
24874     fi
24875
24876         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24877 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24878 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887 #include <string>
24888 int
24889 main ()
24890 {
24891 std::string foo, bar;
24892             foo.compare(bar);
24893             foo.compare(1, 1, bar);
24894             foo.compare(1, 1, bar, 1, 1);
24895             foo.compare("");
24896             foo.compare(1, 1, "");
24897             foo.compare(1, 1, "", 2);
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_compile") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_cxx_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest.$ac_objext; then
24919   wx_cv_func_stdstring_compare=yes
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         wx_cv_func_stdstring_compare=no
24925
24926 fi
24927
24928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929
24930 fi
24931 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24932 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24933
24934     if test "$wx_cv_func_stdstring_compare" = yes; then
24935         cat >>confdefs.h <<\_ACEOF
24936 #define HAVE_STD_STRING_COMPARE 1
24937 _ACEOF
24938
24939     fi
24940
24941     if test "$wx_cv_class_gnuhashmapset" = yes; then
24942          cat >>confdefs.h <<\_ACEOF
24943 #define HAVE_EXT_HASH_MAP 1
24944 _ACEOF
24945
24946          cat >>confdefs.h <<\_ACEOF
24947 #define HAVE_GNU_CXX_HASH_MAP 1
24948 _ACEOF
24949
24950     fi
24951
24952     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24953 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24954 if test "${ac_cv_header_unordered_map+set}" = set; then
24955   echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957   cat >conftest.$ac_ext <<_ACEOF
24958 /* confdefs.h.  */
24959 _ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h.  */
24963
24964
24965
24966 #include <unordered_map>
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975   (eval "$ac_compile") 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } && {
24982          test -z "$ac_cxx_werror_flag" ||
24983          test ! -s conftest.err
24984        } && test -s conftest.$ac_objext; then
24985   ac_cv_header_unordered_map=yes
24986 else
24987   echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24989
24990         ac_cv_header_unordered_map=no
24991 fi
24992
24993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994 fi
24995 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24996 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24997 if test $ac_cv_header_unordered_map = yes; then
24998   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24999 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25000 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25001   echo $ECHO_N "(cached) $ECHO_C" >&6
25002 else
25003   cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h.  */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h.  */
25009 #include <unordered_map>
25010                 #include <unordered_set>
25011 int
25012 main ()
25013 {
25014 std::unordered_map<double*, char*> test1;
25015                  std::unordered_set<char*> test2;
25016   ;
25017   return 0;
25018 }
25019 _ACEOF
25020 rm -f conftest.$ac_objext
25021 if { (ac_try="$ac_compile"
25022 case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027   (eval "$ac_compile") 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } && {
25034          test -z "$ac_cxx_werror_flag" ||
25035          test ! -s conftest.err
25036        } && test -s conftest.$ac_objext; then
25037   wx_cv_class_stdunorderedmapset=yes
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042         wx_cv_class_stdunorderedmapset=no
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046
25047
25048 fi
25049 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25050 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25051 fi
25052
25053
25054
25055     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25056          cat >>confdefs.h <<\_ACEOF
25057 #define HAVE_STD_UNORDERED_MAP 1
25058 _ACEOF
25059
25060          cat >>confdefs.h <<\_ACEOF
25061 #define HAVE_STD_UNORDERED_SET 1
25062 _ACEOF
25063
25064     else
25065         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25066 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25067 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25068   echo $ECHO_N "(cached) $ECHO_C" >&6
25069 else
25070   cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076
25077
25078
25079 #include <tr1/unordered_map>
25080 _ACEOF
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085   *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088   (eval "$ac_compile") 2>conftest.er1
25089   ac_status=$?
25090   grep -v '^ *+' conftest.er1 >conftest.err
25091   rm -f conftest.er1
25092   cat conftest.err >&5
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); } && {
25095          test -z "$ac_cxx_werror_flag" ||
25096          test ! -s conftest.err
25097        } && test -s conftest.$ac_objext; then
25098   ac_cv_header_tr1_unordered_map=yes
25099 else
25100   echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25102
25103         ac_cv_header_tr1_unordered_map=no
25104 fi
25105
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 fi
25108 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25109 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25110 if test $ac_cv_header_tr1_unordered_map = yes; then
25111   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25112 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25113 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 #include <tr1/unordered_map>
25123                     #include <tr1/unordered_set>
25124 int
25125 main ()
25126 {
25127 std::tr1::unordered_map<double*, char*> test1;
25128                      std::tr1::unordered_set<char*> test2;
25129             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25130             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25131             #endif
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext
25137 if { (ac_try="$ac_compile"
25138 case "(($ac_try" in
25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140   *) ac_try_echo=$ac_try;;
25141 esac
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143   (eval "$ac_compile") 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } && {
25150          test -z "$ac_cxx_werror_flag" ||
25151          test ! -s conftest.err
25152        } && test -s conftest.$ac_objext; then
25153   wx_cv_class_tr1unorderedmapset=yes
25154 else
25155   echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158         wx_cv_class_tr1unorderedmapset=no
25159 fi
25160
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162
25163
25164 fi
25165 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25166 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25167 fi
25168
25169
25170
25171         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25172             cat >>confdefs.h <<\_ACEOF
25173 #define HAVE_TR1_UNORDERED_MAP 1
25174 _ACEOF
25175
25176             cat >>confdefs.h <<\_ACEOF
25177 #define HAVE_TR1_UNORDERED_SET 1
25178 _ACEOF
25179
25180         else
25181                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25182 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25183 if test "${ac_cv_header_hash_map+set}" = set; then
25184   echo $ECHO_N "(cached) $ECHO_C" >&6
25185 else
25186   cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192
25193
25194
25195 #include <hash_map>
25196 _ACEOF
25197 rm -f conftest.$ac_objext
25198 if { (ac_try="$ac_compile"
25199 case "(($ac_try" in
25200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201   *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204   (eval "$ac_compile") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } && {
25211          test -z "$ac_cxx_werror_flag" ||
25212          test ! -s conftest.err
25213        } && test -s conftest.$ac_objext; then
25214   ac_cv_header_hash_map=yes
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219         ac_cv_header_hash_map=no
25220 fi
25221
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 fi
25224 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25225 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25226 if test $ac_cv_header_hash_map = yes; then
25227   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25228 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25229 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25230   echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232   cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h.  */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h.  */
25238 #include <hash_map>
25239                         #include <hash_set>
25240 int
25241 main ()
25242 {
25243 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25244                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_compile") 2>conftest.er1
25257   ac_status=$?
25258   grep -v '^ *+' conftest.er1 >conftest.err
25259   rm -f conftest.er1
25260   cat conftest.err >&5
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); } && {
25263          test -z "$ac_cxx_werror_flag" ||
25264          test ! -s conftest.err
25265        } && test -s conftest.$ac_objext; then
25266   wx_cv_class_stdhashmapset=yes
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271         wx_cv_class_stdhashmapset=no
25272 fi
25273
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275
25276
25277 fi
25278 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25279 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25280 fi
25281
25282
25283
25284             if test "$wx_cv_class_stdhashmapset" = yes; then
25285                 cat >>confdefs.h <<\_ACEOF
25286 #define HAVE_HASH_MAP 1
25287 _ACEOF
25288
25289                 cat >>confdefs.h <<\_ACEOF
25290 #define HAVE_STD_HASH_MAP 1
25291 _ACEOF
25292
25293             fi
25294
25295             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25296 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25297 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25298   echo $ECHO_N "(cached) $ECHO_C" >&6
25299 else
25300   cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306
25307
25308
25309 #include <ext/hash_map>
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_compile") 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } && {
25325          test -z "$ac_cxx_werror_flag" ||
25326          test ! -s conftest.err
25327        } && test -s conftest.$ac_objext; then
25328   ac_cv_header_ext_hash_map=yes
25329 else
25330   echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25332
25333         ac_cv_header_ext_hash_map=no
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 fi
25338 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25339 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25340 if test $ac_cv_header_ext_hash_map = yes; then
25341   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25342 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25343 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346   cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 #include <ext/hash_map>
25353                         #include <ext/hash_set>
25354 int
25355 main ()
25356 {
25357 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25358                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25359   ;
25360   return 0;
25361 }
25362 _ACEOF
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367   *) ac_try_echo=$ac_try;;
25368 esac
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370   (eval "$ac_compile") 2>conftest.er1
25371   ac_status=$?
25372   grep -v '^ *+' conftest.er1 >conftest.err
25373   rm -f conftest.er1
25374   cat conftest.err >&5
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); } && {
25377          test -z "$ac_cxx_werror_flag" ||
25378          test ! -s conftest.err
25379        } && test -s conftest.$ac_objext; then
25380   wx_cv_class_gnuhashmapset=yes
25381 else
25382   echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25384
25385         wx_cv_class_gnuhashmapset=no
25386 fi
25387
25388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25389
25390
25391 fi
25392 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25393 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25394 fi
25395
25396
25397
25398         fi
25399     fi
25400 fi
25401
25402
25403
25404   if test -n "$GCC"; then
25405     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25406 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25407     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410
25411       cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h.  */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h.  */
25417
25418 int
25419 main ()
25420 {
25421
25422           unsigned int value=0;
25423           /* wxAtomicInc doesn't use return value here */
25424           __sync_fetch_and_add(&value, 2);
25425           __sync_sub_and_fetch(&value, 1);
25426           /* but wxAtomicDec does, so mimic that: */
25427           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25428
25429   ;
25430   return 0;
25431 }
25432 _ACEOF
25433 rm -f conftest.$ac_objext conftest$ac_exeext
25434 if { (ac_try="$ac_link"
25435 case "(($ac_try" in
25436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437   *) ac_try_echo=$ac_try;;
25438 esac
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440   (eval "$ac_link") 2>conftest.er1
25441   ac_status=$?
25442   grep -v '^ *+' conftest.er1 >conftest.err
25443   rm -f conftest.er1
25444   cat conftest.err >&5
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } && {
25447          test -z "$ac_cxx_werror_flag" ||
25448          test ! -s conftest.err
25449        } && test -s conftest$ac_exeext &&
25450        $as_test_x conftest$ac_exeext; then
25451   wx_cv_cc_gcc_atomic_builtins=yes
25452 else
25453   echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456         wx_cv_cc_gcc_atomic_builtins=no
25457 fi
25458
25459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25460       conftest$ac_exeext conftest.$ac_ext
25461
25462 fi
25463
25464     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25465 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25466     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25467       cat >>confdefs.h <<\_ACEOF
25468 #define HAVE_GCC_ATOMIC_BUILTINS 1
25469 _ACEOF
25470
25471     fi
25472   fi
25473
25474
25475 ac_ext=c
25476 ac_cpp='$CPP $CPPFLAGS'
25477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25480
25481
25482
25483 SEARCH_INCLUDE="\
25484     /usr/local/include        \
25485     /usr/local/X11/include    \
25486     /usr/local/include/X11    \
25487     /usr/local/X11R7/include  \
25488     /usr/local/X11R6/include  \
25489     /usr/local/include/X11R7  \
25490     /usr/local/include/X11R6  \
25491                               \
25492     /usr/Motif-2.1/include    \
25493     /usr/Motif-1.2/include    \
25494     /usr/include/Motif1.2     \
25495                               \
25496     /usr/dt/include           \
25497     /usr/openwin/include      \
25498                               \
25499     /usr/include/Xm           \
25500                               \
25501     /usr/X11R7/include        \
25502     /usr/X11R6/include        \
25503     /usr/X11R6.4/include      \
25504                               \
25505     /usr/include/X11R7        \
25506     /usr/include/X11R6        \
25507                               \
25508     /usr/X11/include          \
25509     /usr/include/X11          \
25510                               \
25511     /usr/XFree86/include/X11  \
25512     /usr/pkg/include          \
25513                               \
25514     /usr/local/X1R5/include  \
25515     /usr/local/include/X11R5  \
25516     /usr/X11R5/include        \
25517     /usr/include/X11R5        \
25518                               \
25519     /usr/local/X11R4/include  \
25520     /usr/local/include/X11R4  \
25521     /usr/X11R4/include        \
25522     /usr/include/X11R4        \
25523                               \
25524     /usr/openwin/share/include"
25525
25526 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25527 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25528
25529 case "${host}" in
25530     *-*-irix6* )
25531         if test "${wx_cv_std_libpath+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534
25535                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25536                     for e in a so sl dylib dll.a; do
25537                         libc="$d/libc.$e"
25538                         if test -f $libc; then
25539                             save_LIBS="$LIBS"
25540                             LIBS="$libc"
25541                             cat >conftest.$ac_ext <<_ACEOF
25542 int main() { return 0; }
25543 _ACEOF
25544 rm -f conftest.$ac_objext conftest$ac_exeext
25545 if { (ac_try="$ac_link"
25546 case "(($ac_try" in
25547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548   *) ac_try_echo=$ac_try;;
25549 esac
25550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25551   (eval "$ac_link") 2>conftest.er1
25552   ac_status=$?
25553   grep -v '^ *+' conftest.er1 >conftest.err
25554   rm -f conftest.er1
25555   cat conftest.err >&5
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } && {
25558          test -z "$ac_c_werror_flag" ||
25559          test ! -s conftest.err
25560        } && test -s conftest$ac_exeext &&
25561        $as_test_x conftest$ac_exeext; then
25562   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25563 else
25564   echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25566
25567
25568 fi
25569
25570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25571       conftest$ac_exeext conftest.$ac_ext
25572                             LIBS="$save_LIBS"
25573                             if test "x$wx_cv_std_libpath" != "x"; then
25574                                 break 2
25575                             fi
25576                         fi
25577                     done
25578                 done
25579                 if test "x$wx_cv_std_libpath" = "x"; then
25580                     wx_cv_std_libpath="lib"
25581                 fi
25582
25583
25584 fi
25585
25586         ;;
25587
25588     *-*-solaris2* )
25589                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25590             wx_cv_std_libpath="lib/64"
25591         else
25592             wx_cv_std_libpath="lib"
25593         fi
25594         ;;
25595
25596     *-*-linux* )
25597                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25598                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25599             wx_cv_std_libpath="lib64"
25600         else
25601             wx_cv_std_libpath="lib"
25602         fi
25603         ;;
25604
25605     *)
25606         wx_cv_std_libpath="lib";
25607         ;;
25608 esac
25609
25610 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25611 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25612
25613 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25614
25615 if test "$build" != "$host" -a "$GCC" = yes; then
25616                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25617         cross_root=`dirname $cross_root`
25618         cross_root=`dirname $cross_root`
25619
25620                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25621         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25622         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25623
25624                 if test -z "$PKG_CONFIG_PATH"; then
25625             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25626             export PKG_CONFIG_PATH
25627         fi
25628
25629                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25630
25631 ac_find_includes=
25632 for ac_dir in $SEARCH_INCLUDE /usr/include;
25633   do
25634     if test -f "$ac_dir/X11/Intrinsic.h"; then
25635       ac_find_includes=$ac_dir
25636       break
25637     fi
25638   done
25639
25640             x_includes=$ac_find_includes
25641         fi
25642         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25643
25644   ac_find_libraries=
25645   for ac_dir in $SEARCH_LIB;
25646   do
25647     for ac_extension in a so sl dylib dll.a; do
25648       if test -f "$ac_dir/libXt.$ac_extension"; then
25649         ac_find_libraries=$ac_dir
25650         break 2
25651       fi
25652     done
25653   done
25654
25655             x_libraries=$ac_find_libraries
25656         fi
25657     fi
25658 fi
25659
25660
25661 cat >confcache <<\_ACEOF
25662 # This file is a shell script that caches the results of configure
25663 # tests run on this system so they can be shared between configure
25664 # scripts and configure runs, see configure's option --config-cache.
25665 # It is not useful on other systems.  If it contains results you don't
25666 # want to keep, you may remove or edit it.
25667 #
25668 # config.status only pays attention to the cache file if you give it
25669 # the --recheck option to rerun configure.
25670 #
25671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25673 # following values.
25674
25675 _ACEOF
25676
25677 # The following way of writing the cache mishandles newlines in values,
25678 # but we know of no workaround that is simple, portable, and efficient.
25679 # So, we kill variables containing newlines.
25680 # Ultrix sh set writes to stderr and can't be redirected directly,
25681 # and sets the high bit in the cache file unless we assign to the vars.
25682 (
25683   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25684     eval ac_val=\$$ac_var
25685     case $ac_val in #(
25686     *${as_nl}*)
25687       case $ac_var in #(
25688       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25689 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25690       esac
25691       case $ac_var in #(
25692       _ | IFS | as_nl) ;; #(
25693       *) $as_unset $ac_var ;;
25694       esac ;;
25695     esac
25696   done
25697
25698   (set) 2>&1 |
25699     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25700     *${as_nl}ac_space=\ *)
25701       # `set' does not quote correctly, so add quotes (double-quote
25702       # substitution turns \\\\ into \\, and sed turns \\ into \).
25703       sed -n \
25704         "s/'/'\\\\''/g;
25705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25706       ;; #(
25707     *)
25708       # `set' quotes correctly as required by POSIX, so do not add quotes.
25709       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25710       ;;
25711     esac |
25712     sort
25713 ) |
25714   sed '
25715      /^ac_cv_env_/b end
25716      t clear
25717      :clear
25718      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25719      t end
25720      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25721      :end' >>confcache
25722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25723   if test -w "$cache_file"; then
25724     test "x$cache_file" != "x/dev/null" &&
25725       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25726 echo "$as_me: updating cache $cache_file" >&6;}
25727     cat confcache >$cache_file
25728   else
25729     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25730 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25731   fi
25732 fi
25733 rm -f confcache
25734
25735 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25736     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25737 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25738 if test "${wx_cv_lib_glibc21+set}" = set; then
25739   echo $ECHO_N "(cached) $ECHO_C" >&6
25740 else
25741
25742         cat >conftest.$ac_ext <<_ACEOF
25743 /* confdefs.h.  */
25744 _ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h.  */
25748 #include <features.h>
25749 int
25750 main ()
25751 {
25752
25753                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25754                 not glibc 2.1
25755                 #endif
25756
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext
25762 if { (ac_try="$ac_compile"
25763 case "(($ac_try" in
25764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765   *) ac_try_echo=$ac_try;;
25766 esac
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768   (eval "$ac_compile") 2>conftest.er1
25769   ac_status=$?
25770   grep -v '^ *+' conftest.er1 >conftest.err
25771   rm -f conftest.er1
25772   cat conftest.err >&5
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); } && {
25775          test -z "$ac_c_werror_flag" ||
25776          test ! -s conftest.err
25777        } && test -s conftest.$ac_objext; then
25778
25779                 wx_cv_lib_glibc21=yes
25780
25781 else
25782   echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25784
25785
25786                 wx_cv_lib_glibc21=no
25787
25788
25789 fi
25790
25791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25792
25793 fi
25794 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25795 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25796     if test "$wx_cv_lib_glibc21" = "yes"; then
25797         cat >>confdefs.h <<\_ACEOF
25798 #define wxHAVE_GLIBC2 1
25799 _ACEOF
25800
25801     fi
25802 fi
25803
25804 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25805     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25806         cat >>confdefs.h <<\_ACEOF
25807 #define _GNU_SOURCE 1
25808 _ACEOF
25809
25810     fi
25811 fi
25812
25813 have_cos=0
25814 have_floor=0
25815
25816 for ac_func in cos
25817 do
25818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25822   echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824   cat >conftest.$ac_ext <<_ACEOF
25825 /* confdefs.h.  */
25826 _ACEOF
25827 cat confdefs.h >>conftest.$ac_ext
25828 cat >>conftest.$ac_ext <<_ACEOF
25829 /* end confdefs.h.  */
25830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25832 #define $ac_func innocuous_$ac_func
25833
25834 /* System header to define __stub macros and hopefully few prototypes,
25835     which can conflict with char $ac_func (); below.
25836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25837     <limits.h> exists even on freestanding compilers.  */
25838
25839 #ifdef __STDC__
25840 # include <limits.h>
25841 #else
25842 # include <assert.h>
25843 #endif
25844
25845 #undef $ac_func
25846
25847 /* Override any GCC internal prototype to avoid an error.
25848    Use char because int might match the return type of a GCC
25849    builtin and then its argument prototype would still apply.  */
25850 #ifdef __cplusplus
25851 extern "C"
25852 #endif
25853 char $ac_func ();
25854 /* The GNU C library defines this for functions which it implements
25855     to always fail with ENOSYS.  Some functions are actually named
25856     something starting with __ and the normal name is an alias.  */
25857 #if defined __stub_$ac_func || defined __stub___$ac_func
25858 choke me
25859 #endif
25860
25861 int
25862 main ()
25863 {
25864 return $ac_func ();
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext conftest$ac_exeext
25870 if { (ac_try="$ac_link"
25871 case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876   (eval "$ac_link") 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } && {
25883          test -z "$ac_c_werror_flag" ||
25884          test ! -s conftest.err
25885        } && test -s conftest$ac_exeext &&
25886        $as_test_x conftest$ac_exeext; then
25887   eval "$as_ac_var=yes"
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892         eval "$as_ac_var=no"
25893 fi
25894
25895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25896       conftest$ac_exeext conftest.$ac_ext
25897 fi
25898 ac_res=`eval echo '${'$as_ac_var'}'`
25899                { echo "$as_me:$LINENO: result: $ac_res" >&5
25900 echo "${ECHO_T}$ac_res" >&6; }
25901 if test `eval echo '${'$as_ac_var'}'` = yes; then
25902   cat >>confdefs.h <<_ACEOF
25903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25904 _ACEOF
25905  have_cos=1
25906 fi
25907 done
25908
25909
25910 for ac_func in floor
25911 do
25912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25926 #define $ac_func innocuous_$ac_func
25927
25928 /* System header to define __stub macros and hopefully few prototypes,
25929     which can conflict with char $ac_func (); below.
25930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25931     <limits.h> exists even on freestanding compilers.  */
25932
25933 #ifdef __STDC__
25934 # include <limits.h>
25935 #else
25936 # include <assert.h>
25937 #endif
25938
25939 #undef $ac_func
25940
25941 /* Override any GCC internal prototype to avoid an error.
25942    Use char because int might match the return type of a GCC
25943    builtin and then its argument prototype would still apply.  */
25944 #ifdef __cplusplus
25945 extern "C"
25946 #endif
25947 char $ac_func ();
25948 /* The GNU C library defines this for functions which it implements
25949     to always fail with ENOSYS.  Some functions are actually named
25950     something starting with __ and the normal name is an alias.  */
25951 #if defined __stub_$ac_func || defined __stub___$ac_func
25952 choke me
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958 return $ac_func ();
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (ac_try="$ac_link"
25965 case "(($ac_try" in
25966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967   *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970   (eval "$ac_link") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest$ac_exeext &&
25980        $as_test_x conftest$ac_exeext; then
25981   eval "$as_ac_var=yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986         eval "$as_ac_var=no"
25987 fi
25988
25989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25990       conftest$ac_exeext conftest.$ac_ext
25991 fi
25992 ac_res=`eval echo '${'$as_ac_var'}'`
25993                { echo "$as_me:$LINENO: result: $ac_res" >&5
25994 echo "${ECHO_T}$ac_res" >&6; }
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996   cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25998 _ACEOF
25999  have_floor=1
26000 fi
26001 done
26002
26003 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26004 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
26005 if test "$have_cos" = 1 -a "$have_floor" = 1; then
26006     { echo "$as_me:$LINENO: result: yes" >&5
26007 echo "${ECHO_T}yes" >&6; }
26008 else
26009     { echo "$as_me:$LINENO: result: no" >&5
26010 echo "${ECHO_T}no" >&6; }
26011     LIBS="$LIBS -lm"
26012     # use different functions to avoid configure caching
26013     have_sin=0
26014     have_ceil=0
26015
26016 for ac_func in sin
26017 do
26018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26022   echo $ECHO_N "(cached) $ECHO_C" >&6
26023 else
26024   cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26032 #define $ac_func innocuous_$ac_func
26033
26034 /* System header to define __stub macros and hopefully few prototypes,
26035     which can conflict with char $ac_func (); below.
26036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26037     <limits.h> exists even on freestanding compilers.  */
26038
26039 #ifdef __STDC__
26040 # include <limits.h>
26041 #else
26042 # include <assert.h>
26043 #endif
26044
26045 #undef $ac_func
26046
26047 /* Override any GCC internal prototype to avoid an error.
26048    Use char because int might match the return type of a GCC
26049    builtin and then its argument prototype would still apply.  */
26050 #ifdef __cplusplus
26051 extern "C"
26052 #endif
26053 char $ac_func ();
26054 /* The GNU C library defines this for functions which it implements
26055     to always fail with ENOSYS.  Some functions are actually named
26056     something starting with __ and the normal name is an alias.  */
26057 #if defined __stub_$ac_func || defined __stub___$ac_func
26058 choke me
26059 #endif
26060
26061 int
26062 main ()
26063 {
26064 return $ac_func ();
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest.$ac_objext conftest$ac_exeext
26070 if { (ac_try="$ac_link"
26071 case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_link") 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } && {
26083          test -z "$ac_c_werror_flag" ||
26084          test ! -s conftest.err
26085        } && test -s conftest$ac_exeext &&
26086        $as_test_x conftest$ac_exeext; then
26087   eval "$as_ac_var=yes"
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092         eval "$as_ac_var=no"
26093 fi
26094
26095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26096       conftest$ac_exeext conftest.$ac_ext
26097 fi
26098 ac_res=`eval echo '${'$as_ac_var'}'`
26099                { echo "$as_me:$LINENO: result: $ac_res" >&5
26100 echo "${ECHO_T}$ac_res" >&6; }
26101 if test `eval echo '${'$as_ac_var'}'` = yes; then
26102   cat >>confdefs.h <<_ACEOF
26103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26104 _ACEOF
26105  have_sin=1
26106 fi
26107 done
26108
26109
26110 for ac_func in ceil
26111 do
26112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26116   echo $ECHO_N "(cached) $ECHO_C" >&6
26117 else
26118   cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26126 #define $ac_func innocuous_$ac_func
26127
26128 /* System header to define __stub macros and hopefully few prototypes,
26129     which can conflict with char $ac_func (); below.
26130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26131     <limits.h> exists even on freestanding compilers.  */
26132
26133 #ifdef __STDC__
26134 # include <limits.h>
26135 #else
26136 # include <assert.h>
26137 #endif
26138
26139 #undef $ac_func
26140
26141 /* Override any GCC internal prototype to avoid an error.
26142    Use char because int might match the return type of a GCC
26143    builtin and then its argument prototype would still apply.  */
26144 #ifdef __cplusplus
26145 extern "C"
26146 #endif
26147 char $ac_func ();
26148 /* The GNU C library defines this for functions which it implements
26149     to always fail with ENOSYS.  Some functions are actually named
26150     something starting with __ and the normal name is an alias.  */
26151 #if defined __stub_$ac_func || defined __stub___$ac_func
26152 choke me
26153 #endif
26154
26155 int
26156 main ()
26157 {
26158 return $ac_func ();
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext conftest$ac_exeext
26164 if { (ac_try="$ac_link"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_link") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } && {
26177          test -z "$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        } && test -s conftest$ac_exeext &&
26180        $as_test_x conftest$ac_exeext; then
26181   eval "$as_ac_var=yes"
26182 else
26183   echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186         eval "$as_ac_var=no"
26187 fi
26188
26189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26190       conftest$ac_exeext conftest.$ac_ext
26191 fi
26192 ac_res=`eval echo '${'$as_ac_var'}'`
26193                { echo "$as_me:$LINENO: result: $ac_res" >&5
26194 echo "${ECHO_T}$ac_res" >&6; }
26195 if test `eval echo '${'$as_ac_var'}'` = yes; then
26196   cat >>confdefs.h <<_ACEOF
26197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26198 _ACEOF
26199  have_ceil=1
26200 fi
26201 done
26202
26203     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26204 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26205     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26206         { echo "$as_me:$LINENO: result: yes" >&5
26207 echo "${ECHO_T}yes" >&6; }
26208     else
26209         { echo "$as_me:$LINENO: result: no" >&5
26210 echo "${ECHO_T}no" >&6; }
26211         # not sure we should warn the user, crash, etc.
26212     fi
26213 fi
26214
26215 ac_ext=cpp
26216 ac_cpp='$CXXCPP $CPPFLAGS'
26217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26220
26221 if test "wxUSE_UNICODE" = "yes"; then
26222
26223   for wx_func in wcstoull
26224   do
26225     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26226 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26227 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26228   echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230
26231         cat >conftest.$ac_ext <<_ACEOF
26232
26233             /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238
26239
26240                 $ac_includes_default
26241
26242 int
26243 main ()
26244 {
26245
26246                 #ifndef $wx_func
26247                   &$wx_func;
26248                 #endif
26249
26250
26251   ;
26252   return 0;
26253 }
26254
26255 _ACEOF
26256 rm -f conftest.$ac_objext conftest$ac_exeext
26257 if { (ac_try="$ac_link"
26258 case "(($ac_try" in
26259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260   *) ac_try_echo=$ac_try;;
26261 esac
26262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26263   (eval "$ac_link") 2>conftest.er1
26264   ac_status=$?
26265   grep -v '^ *+' conftest.er1 >conftest.err
26266   rm -f conftest.er1
26267   cat conftest.err >&5
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); } && {
26270          test -z "$ac_cxx_werror_flag" ||
26271          test ! -s conftest.err
26272        } && test -s conftest$ac_exeext &&
26273        $as_test_x conftest$ac_exeext; then
26274   eval wx_cv_func_$wx_func=yes
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279         eval wx_cv_func_$wx_func=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26283       conftest$ac_exeext conftest.$ac_ext
26284
26285 fi
26286 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26287                { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26289
26290     if eval test \$wx_cv_func_$wx_func = yes
26291     then
26292       cat >>confdefs.h <<_ACEOF
26293 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26294 _ACEOF
26295
26296
26297     else
26298       :
26299
26300     fi
26301   done
26302
26303 else
26304
26305   for wx_func in strtoull
26306   do
26307     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26308 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26309 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312
26313         cat >conftest.$ac_ext <<_ACEOF
26314
26315             /* confdefs.h.  */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h.  */
26320
26321
26322                 $ac_includes_default
26323
26324 int
26325 main ()
26326 {
26327
26328                 #ifndef $wx_func
26329                   &$wx_func;
26330                 #endif
26331
26332
26333   ;
26334   return 0;
26335 }
26336
26337 _ACEOF
26338 rm -f conftest.$ac_objext conftest$ac_exeext
26339 if { (ac_try="$ac_link"
26340 case "(($ac_try" in
26341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342   *) ac_try_echo=$ac_try;;
26343 esac
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345   (eval "$ac_link") 2>conftest.er1
26346   ac_status=$?
26347   grep -v '^ *+' conftest.er1 >conftest.err
26348   rm -f conftest.er1
26349   cat conftest.err >&5
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); } && {
26352          test -z "$ac_cxx_werror_flag" ||
26353          test ! -s conftest.err
26354        } && test -s conftest$ac_exeext &&
26355        $as_test_x conftest$ac_exeext; then
26356   eval wx_cv_func_$wx_func=yes
26357 else
26358   echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361         eval wx_cv_func_$wx_func=no
26362 fi
26363
26364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365       conftest$ac_exeext conftest.$ac_ext
26366
26367 fi
26368 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26369                { echo "$as_me:$LINENO: result: $ac_res" >&5
26370 echo "${ECHO_T}$ac_res" >&6; }
26371
26372     if eval test \$wx_cv_func_$wx_func = yes
26373     then
26374       cat >>confdefs.h <<_ACEOF
26375 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26376 _ACEOF
26377
26378
26379     else
26380       :
26381
26382     fi
26383   done
26384
26385 fi
26386 ac_ext=c
26387 ac_cpp='$CPP $CPPFLAGS'
26388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26391
26392
26393
26394
26395 if test "$wxUSE_REGEX" != "no"; then
26396     cat >>confdefs.h <<\_ACEOF
26397 #define wxUSE_REGEX 1
26398 _ACEOF
26399
26400
26401     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26402         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26403 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26404         wxUSE_REGEX=builtin
26405     fi
26406
26407     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26408                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26409 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26410 if test "${ac_cv_header_regex_h+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h.  */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h.  */
26419
26420
26421 #include <regex.h>
26422 _ACEOF
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427   *) ac_try_echo=$ac_try;;
26428 esac
26429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26430   (eval "$ac_compile") 2>conftest.er1
26431   ac_status=$?
26432   grep -v '^ *+' conftest.er1 >conftest.err
26433   rm -f conftest.er1
26434   cat conftest.err >&5
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); } && {
26437          test -z "$ac_c_werror_flag" ||
26438          test ! -s conftest.err
26439        } && test -s conftest.$ac_objext; then
26440   ac_cv_header_regex_h=yes
26441 else
26442   echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26444
26445         ac_cv_header_regex_h=no
26446 fi
26447
26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26449 fi
26450 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26451 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26452 if test $ac_cv_header_regex_h = yes; then
26453
26454
26455 for ac_func in regcomp re_search
26456 do
26457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26461   echo $ECHO_N "(cached) $ECHO_C" >&6
26462 else
26463   cat >conftest.$ac_ext <<_ACEOF
26464 /* confdefs.h.  */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h.  */
26469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26471 #define $ac_func innocuous_$ac_func
26472
26473 /* System header to define __stub macros and hopefully few prototypes,
26474     which can conflict with char $ac_func (); below.
26475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26476     <limits.h> exists even on freestanding compilers.  */
26477
26478 #ifdef __STDC__
26479 # include <limits.h>
26480 #else
26481 # include <assert.h>
26482 #endif
26483
26484 #undef $ac_func
26485
26486 /* Override any GCC internal prototype to avoid an error.
26487    Use char because int might match the return type of a GCC
26488    builtin and then its argument prototype would still apply.  */
26489 #ifdef __cplusplus
26490 extern "C"
26491 #endif
26492 char $ac_func ();
26493 /* The GNU C library defines this for functions which it implements
26494     to always fail with ENOSYS.  Some functions are actually named
26495     something starting with __ and the normal name is an alias.  */
26496 #if defined __stub_$ac_func || defined __stub___$ac_func
26497 choke me
26498 #endif
26499
26500 int
26501 main ()
26502 {
26503 return $ac_func ();
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 rm -f conftest.$ac_objext conftest$ac_exeext
26509 if { (ac_try="$ac_link"
26510 case "(($ac_try" in
26511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512   *) ac_try_echo=$ac_try;;
26513 esac
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515   (eval "$ac_link") 2>conftest.er1
26516   ac_status=$?
26517   grep -v '^ *+' conftest.er1 >conftest.err
26518   rm -f conftest.er1
26519   cat conftest.err >&5
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); } && {
26522          test -z "$ac_c_werror_flag" ||
26523          test ! -s conftest.err
26524        } && test -s conftest$ac_exeext &&
26525        $as_test_x conftest$ac_exeext; then
26526   eval "$as_ac_var=yes"
26527 else
26528   echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531         eval "$as_ac_var=no"
26532 fi
26533
26534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26535       conftest$ac_exeext conftest.$ac_ext
26536 fi
26537 ac_res=`eval echo '${'$as_ac_var'}'`
26538                { echo "$as_me:$LINENO: result: $ac_res" >&5
26539 echo "${ECHO_T}$ac_res" >&6; }
26540 if test `eval echo '${'$as_ac_var'}'` = yes; then
26541   cat >>confdefs.h <<_ACEOF
26542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26543 _ACEOF
26544
26545 fi
26546 done
26547
26548 fi
26549
26550
26551
26552         if test "x$ac_cv_func_regcomp" != "xyes"; then
26553             if test "$wxUSE_REGEX" = "sys" ; then
26554                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26555 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26556    { (exit 1); exit 1; }; }
26557             else
26558                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26559 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26560                 wxUSE_REGEX=builtin
26561             fi
26562         else
26563                         wxUSE_REGEX=sys
26564                         cat >>confdefs.h <<\_ACEOF
26565 #define WX_NO_REGEX_ADVANCED 1
26566 _ACEOF
26567
26568         fi
26569     fi
26570 fi
26571
26572
26573 ZLIB_LINK=
26574 if test "$wxUSE_ZLIB" != "no" ; then
26575     cat >>confdefs.h <<\_ACEOF
26576 #define wxUSE_ZLIB 1
26577 _ACEOF
26578
26579
26580     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26581                                                 if test "$USE_DARWIN" = 1; then
26582             system_zlib_h_ok="yes"
26583         else
26584                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26585 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26586 if test "${ac_cv_header_zlib_h+set}" = set; then
26587   echo $ECHO_N "(cached) $ECHO_C" >&6
26588 else
26589   if test "$cross_compiling" = yes; then
26590                       unset ac_cv_header_zlib_h
26591
26592 else
26593   cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600                         #include <zlib.h>
26601                         #include <stdio.h>
26602
26603                         int main()
26604                         {
26605                             FILE *f=fopen("conftestval", "w");
26606                             if (!f) exit(1);
26607                             fprintf(f, "%s",
26608                                     ZLIB_VERSION[0] == '1' &&
26609                                     (ZLIB_VERSION[2] > '1' ||
26610                                     (ZLIB_VERSION[2] == '1' &&
26611                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26612                             exit(0);
26613                         }
26614
26615 _ACEOF
26616 rm -f conftest$ac_exeext
26617 if { (ac_try="$ac_link"
26618 case "(($ac_try" in
26619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26620   *) ac_try_echo=$ac_try;;
26621 esac
26622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26623   (eval "$ac_link") 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26627   { (case "(($ac_try" in
26628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26629   *) ac_try_echo=$ac_try;;
26630 esac
26631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26632   (eval "$ac_try") 2>&5
26633   ac_status=$?
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); }; }; then
26636   ac_cv_header_zlib_h=`cat conftestval`
26637 else
26638   echo "$as_me: program exited with status $ac_status" >&5
26639 echo "$as_me: failed program was:" >&5
26640 sed 's/^/| /' conftest.$ac_ext >&5
26641
26642 ( exit $ac_status )
26643 ac_cv_header_zlib_h=no
26644 fi
26645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26646 fi
26647
26648
26649
26650 fi
26651 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26652 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26653                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26654 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26655 if test "${ac_cv_header_zlib_h+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658   cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664
26665
26666 #include <zlib.h>
26667 _ACEOF
26668 rm -f conftest.$ac_objext
26669 if { (ac_try="$ac_compile"
26670 case "(($ac_try" in
26671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672   *) ac_try_echo=$ac_try;;
26673 esac
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675   (eval "$ac_compile") 2>conftest.er1
26676   ac_status=$?
26677   grep -v '^ *+' conftest.er1 >conftest.err
26678   rm -f conftest.er1
26679   cat conftest.err >&5
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); } && {
26682          test -z "$ac_c_werror_flag" ||
26683          test ! -s conftest.err
26684        } && test -s conftest.$ac_objext; then
26685   ac_cv_header_zlib_h=yes
26686 else
26687   echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26689
26690         ac_cv_header_zlib_h=no
26691 fi
26692
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26694 fi
26695 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26696 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26697
26698
26699
26700             system_zlib_h_ok=$ac_cv_header_zlib_h
26701         fi
26702
26703         if test "$system_zlib_h_ok" = "yes"; then
26704             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26705 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26706 if test "${ac_cv_lib_z_deflate+set}" = set; then
26707   echo $ECHO_N "(cached) $ECHO_C" >&6
26708 else
26709   ac_check_lib_save_LIBS=$LIBS
26710 LIBS="-lz  $LIBS"
26711 cat >conftest.$ac_ext <<_ACEOF
26712 /* confdefs.h.  */
26713 _ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h.  */
26717
26718 /* Override any GCC internal prototype to avoid an error.
26719    Use char because int might match the return type of a GCC
26720    builtin and then its argument prototype would still apply.  */
26721 #ifdef __cplusplus
26722 extern "C"
26723 #endif
26724 char deflate ();
26725 int
26726 main ()
26727 {
26728 return deflate ();
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737   *) ac_try_echo=$ac_try;;
26738 esac
26739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26740   (eval "$ac_link") 2>conftest.er1
26741   ac_status=$?
26742   grep -v '^ *+' conftest.er1 >conftest.err
26743   rm -f conftest.er1
26744   cat conftest.err >&5
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); } && {
26747          test -z "$ac_c_werror_flag" ||
26748          test ! -s conftest.err
26749        } && test -s conftest$ac_exeext &&
26750        $as_test_x conftest$ac_exeext; then
26751   ac_cv_lib_z_deflate=yes
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756         ac_cv_lib_z_deflate=no
26757 fi
26758
26759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26760       conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26762 fi
26763 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26764 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26765 if test $ac_cv_lib_z_deflate = yes; then
26766   ZLIB_LINK=" -lz"
26767 fi
26768
26769         fi
26770
26771         if test "x$ZLIB_LINK" = "x" ; then
26772             if test "$wxUSE_ZLIB" = "sys" ; then
26773                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26774 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26775    { (exit 1); exit 1; }; }
26776             else
26777                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26778 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26779                 wxUSE_ZLIB=builtin
26780             fi
26781         else
26782                         wxUSE_ZLIB=sys
26783         fi
26784     fi
26785 fi
26786
26787
26788 PNG_LINK=
26789 if test "$wxUSE_LIBPNG" != "no" ; then
26790     cat >>confdefs.h <<\_ACEOF
26791 #define wxUSE_LIBPNG 1
26792 _ACEOF
26793
26794
26795     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26796         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26797 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26798         wxUSE_LIBPNG=sys
26799     fi
26800
26801                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26802         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26803 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26804         wxUSE_LIBPNG=builtin
26805     fi
26806
26807     if test "$wxUSE_MGL" != 1 ; then
26808                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26809                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26810 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26811 if test "${ac_cv_header_png_h+set}" = set; then
26812   echo $ECHO_N "(cached) $ECHO_C" >&6
26813 else
26814   if test "$cross_compiling" = yes; then
26815                       unset ac_cv_header_png_h
26816
26817 else
26818   cat >conftest.$ac_ext <<_ACEOF
26819 /* confdefs.h.  */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h.  */
26824
26825                         #include <png.h>
26826                         #include <stdio.h>
26827
26828                         int main()
26829                         {
26830                             FILE *f=fopen("conftestval", "w");
26831                             if (!f) exit(1);
26832                             fprintf(f, "%s",
26833                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26834                             exit(0);
26835                         }
26836
26837 _ACEOF
26838 rm -f conftest$ac_exeext
26839 if { (ac_try="$ac_link"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_link") 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26849   { (case "(($ac_try" in
26850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26851   *) ac_try_echo=$ac_try;;
26852 esac
26853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26854   (eval "$ac_try") 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; }; then
26858   ac_cv_header_png_h=`cat conftestval`
26859 else
26860   echo "$as_me: program exited with status $ac_status" >&5
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864 ( exit $ac_status )
26865 ac_cv_header_png_h=no
26866 fi
26867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26868 fi
26869
26870
26871
26872 fi
26873 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26874 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26875             { echo "$as_me:$LINENO: checking for png.h" >&5
26876 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26877 if test "${ac_cv_header_png_h+set}" = set; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   cat >conftest.$ac_ext <<_ACEOF
26881 /* confdefs.h.  */
26882 _ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h.  */
26886
26887
26888 #include <png.h>
26889 _ACEOF
26890 rm -f conftest.$ac_objext
26891 if { (ac_try="$ac_compile"
26892 case "(($ac_try" in
26893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26894   *) ac_try_echo=$ac_try;;
26895 esac
26896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26897   (eval "$ac_compile") 2>conftest.er1
26898   ac_status=$?
26899   grep -v '^ *+' conftest.er1 >conftest.err
26900   rm -f conftest.er1
26901   cat conftest.err >&5
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); } && {
26904          test -z "$ac_c_werror_flag" ||
26905          test ! -s conftest.err
26906        } && test -s conftest.$ac_objext; then
26907   ac_cv_header_png_h=yes
26908 else
26909   echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26911
26912         ac_cv_header_png_h=no
26913 fi
26914
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 fi
26917 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26918 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26919
26920
26921
26922             if test "$ac_cv_header_png_h" = "yes"; then
26923                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26924 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26925 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26926   echo $ECHO_N "(cached) $ECHO_C" >&6
26927 else
26928   ac_check_lib_save_LIBS=$LIBS
26929 LIBS="-lpng -lz -lm $LIBS"
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h.  */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h.  */
26936
26937 /* Override any GCC internal prototype to avoid an error.
26938    Use char because int might match the return type of a GCC
26939    builtin and then its argument prototype would still apply.  */
26940 #ifdef __cplusplus
26941 extern "C"
26942 #endif
26943 char png_check_sig ();
26944 int
26945 main ()
26946 {
26947 return png_check_sig ();
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 rm -f conftest.$ac_objext conftest$ac_exeext
26953 if { (ac_try="$ac_link"
26954 case "(($ac_try" in
26955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956   *) ac_try_echo=$ac_try;;
26957 esac
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959   (eval "$ac_link") 2>conftest.er1
26960   ac_status=$?
26961   grep -v '^ *+' conftest.er1 >conftest.err
26962   rm -f conftest.er1
26963   cat conftest.err >&5
26964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); } && {
26966          test -z "$ac_c_werror_flag" ||
26967          test ! -s conftest.err
26968        } && test -s conftest$ac_exeext &&
26969        $as_test_x conftest$ac_exeext; then
26970   ac_cv_lib_png_png_check_sig=yes
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975         ac_cv_lib_png_png_check_sig=no
26976 fi
26977
26978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26979       conftest$ac_exeext conftest.$ac_ext
26980 LIBS=$ac_check_lib_save_LIBS
26981 fi
26982 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26983 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26984 if test $ac_cv_lib_png_png_check_sig = yes; then
26985   PNG_LINK=" -lpng -lz"
26986 fi
26987
26988             fi
26989
26990             if test "x$PNG_LINK" = "x" ; then
26991                 if test "$wxUSE_LIBPNG" = "sys" ; then
26992                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26993 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26994    { (exit 1); exit 1; }; }
26995                 else
26996                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26997 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26998                     wxUSE_LIBPNG=builtin
26999                 fi
27000             else
27001                                 wxUSE_LIBPNG=sys
27002             fi
27003         fi
27004     fi
27005 fi
27006
27007
27008 JPEG_LINK=
27009 if test "$wxUSE_LIBJPEG" != "no" ; then
27010     cat >>confdefs.h <<\_ACEOF
27011 #define wxUSE_LIBJPEG 1
27012 _ACEOF
27013
27014
27015     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
27016         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27017 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
27018         wxUSE_LIBJPEG=sys
27019     fi
27020
27021     if test "$wxUSE_MGL" != 1 ; then
27022                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
27023                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27024 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
27025             if test "${ac_cv_header_jpeglib_h+set}" = set; then
27026   echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028   cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034
27035                         #undef HAVE_STDLIB_H
27036                         #include <stdio.h>
27037                         #include <jpeglib.h>
27038
27039 int
27040 main ()
27041 {
27042
27043
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (ac_try="$ac_compile"
27050 case "(($ac_try" in
27051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052   *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055   (eval "$ac_compile") 2>conftest.er1
27056   ac_status=$?
27057   grep -v '^ *+' conftest.er1 >conftest.err
27058   rm -f conftest.er1
27059   cat conftest.err >&5
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); } && {
27062          test -z "$ac_c_werror_flag" ||
27063          test ! -s conftest.err
27064        } && test -s conftest.$ac_objext; then
27065   ac_cv_header_jpeglib_h=yes
27066 else
27067   echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27069
27070         ac_cv_header_jpeglib_h=no
27071
27072 fi
27073
27074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075
27076 fi
27077
27078             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27079 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
27080
27081             if test "$ac_cv_header_jpeglib_h" = "yes"; then
27082                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27083 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
27084 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   ac_check_lib_save_LIBS=$LIBS
27088 LIBS="-ljpeg  $LIBS"
27089 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095
27096 /* Override any GCC internal prototype to avoid an error.
27097    Use char because int might match the return type of a GCC
27098    builtin and then its argument prototype would still apply.  */
27099 #ifdef __cplusplus
27100 extern "C"
27101 #endif
27102 char jpeg_read_header ();
27103 int
27104 main ()
27105 {
27106 return jpeg_read_header ();
27107   ;
27108   return 0;
27109 }
27110 _ACEOF
27111 rm -f conftest.$ac_objext conftest$ac_exeext
27112 if { (ac_try="$ac_link"
27113 case "(($ac_try" in
27114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115   *) ac_try_echo=$ac_try;;
27116 esac
27117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27118   (eval "$ac_link") 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } && {
27125          test -z "$ac_c_werror_flag" ||
27126          test ! -s conftest.err
27127        } && test -s conftest$ac_exeext &&
27128        $as_test_x conftest$ac_exeext; then
27129   ac_cv_lib_jpeg_jpeg_read_header=yes
27130 else
27131   echo "$as_me: failed program was:" >&5
27132 sed 's/^/| /' conftest.$ac_ext >&5
27133
27134         ac_cv_lib_jpeg_jpeg_read_header=no
27135 fi
27136
27137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27138       conftest$ac_exeext conftest.$ac_ext
27139 LIBS=$ac_check_lib_save_LIBS
27140 fi
27141 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27142 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27143 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27144   JPEG_LINK=" -ljpeg"
27145 fi
27146
27147             fi
27148
27149             if test "x$JPEG_LINK" = "x" ; then
27150                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27151                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27152 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27153    { (exit 1); exit 1; }; }
27154                 else
27155                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27156 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27157                     wxUSE_LIBJPEG=builtin
27158                 fi
27159             else
27160                                 wxUSE_LIBJPEG=sys
27161
27162                 if test "$wxUSE_MSW" = 1; then
27163                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27164 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27165 if test "${ac_cv_type_boolean+set}" = set; then
27166   echo $ECHO_N "(cached) $ECHO_C" >&6
27167 else
27168   cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174 #include <windows.h>
27175
27176 typedef boolean ac__type_new_;
27177 int
27178 main ()
27179 {
27180 if ((ac__type_new_ *) 0)
27181   return 0;
27182 if (sizeof (ac__type_new_))
27183   return 0;
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (ac_try="$ac_compile"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_compile") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } && {
27202          test -z "$ac_c_werror_flag" ||
27203          test ! -s conftest.err
27204        } && test -s conftest.$ac_objext; then
27205   ac_cv_type_boolean=yes
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210         ac_cv_type_boolean=no
27211 fi
27212
27213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214 fi
27215 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27216 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27217 if test $ac_cv_type_boolean = yes; then
27218
27219 cat >>confdefs.h <<_ACEOF
27220 #define HAVE_BOOLEAN 1
27221 _ACEOF
27222
27223
27224                             { echo "$as_me:$LINENO: checking for boolean" >&5
27225 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27226 if test "${ac_cv_type_boolean+set}" = set; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229   cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235
27236                                     #undef HAVE_BOOLEAN
27237                                     #include <stdio.h>
27238                                     #include <jpeglib.h>
27239
27240
27241 typedef boolean ac__type_new_;
27242 int
27243 main ()
27244 {
27245 if ((ac__type_new_ *) 0)
27246   return 0;
27247 if (sizeof (ac__type_new_))
27248   return 0;
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext
27254 if { (ac_try="$ac_compile"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_compile") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } && {
27267          test -z "$ac_c_werror_flag" ||
27268          test ! -s conftest.err
27269        } && test -s conftest.$ac_objext; then
27270   ac_cv_type_boolean=yes
27271 else
27272   echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275         ac_cv_type_boolean=no
27276 fi
27277
27278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279 fi
27280 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27281 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27282
27283 # The cast to long int works around a bug in the HP C Compiler
27284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27286 # This bug is HP SR number 8606223364.
27287 { echo "$as_me:$LINENO: checking size of boolean" >&5
27288 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27289 if test "${ac_cv_sizeof_boolean+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   if test "$cross_compiling" = yes; then
27293   # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381         ac_lo=`expr $ac_mid + 1`
27382                         if test $ac_lo -le $ac_mid; then
27383                           ac_lo= ac_hi=
27384                           break
27385                         fi
27386                         ac_mid=`expr 2 '*' $ac_mid + 1`
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         cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401
27402                                     #undef HAVE_BOOLEAN
27403                                     #include <stdio.h>
27404                                     #include <jpeglib.h>
27405
27406
27407    typedef boolean ac__type_sizeof_;
27408 int
27409 main ()
27410 {
27411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27412 test_array [0] = 0
27413
27414   ;
27415   return 0;
27416 }
27417 _ACEOF
27418 rm -f conftest.$ac_objext
27419 if { (ac_try="$ac_compile"
27420 case "(($ac_try" in
27421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422   *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425   (eval "$ac_compile") 2>conftest.er1
27426   ac_status=$?
27427   grep -v '^ *+' conftest.er1 >conftest.err
27428   rm -f conftest.er1
27429   cat conftest.err >&5
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); } && {
27432          test -z "$ac_c_werror_flag" ||
27433          test ! -s conftest.err
27434        } && test -s conftest.$ac_objext; then
27435   ac_hi=-1 ac_mid=-1
27436   while :; do
27437     cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h.  */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h.  */
27443
27444                                     #undef HAVE_BOOLEAN
27445                                     #include <stdio.h>
27446                                     #include <jpeglib.h>
27447
27448
27449    typedef boolean ac__type_sizeof_;
27450 int
27451 main ()
27452 {
27453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27454 test_array [0] = 0
27455
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext
27461 if { (ac_try="$ac_compile"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_compile") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } && {
27474          test -z "$ac_c_werror_flag" ||
27475          test ! -s conftest.err
27476        } && test -s conftest.$ac_objext; then
27477   ac_lo=$ac_mid; break
27478 else
27479   echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27481
27482         ac_hi=`expr '(' $ac_mid ')' - 1`
27483                         if test $ac_mid -le $ac_hi; then
27484                           ac_lo= ac_hi=
27485                           break
27486                         fi
27487                         ac_mid=`expr 2 '*' $ac_mid`
27488 fi
27489
27490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27491   done
27492 else
27493   echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27495
27496         ac_lo= ac_hi=
27497 fi
27498
27499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27500 fi
27501
27502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27503 # Binary search between lo and hi bounds.
27504 while test "x$ac_lo" != "x$ac_hi"; do
27505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27506   cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512
27513                                     #undef HAVE_BOOLEAN
27514                                     #include <stdio.h>
27515                                     #include <jpeglib.h>
27516
27517
27518    typedef boolean ac__type_sizeof_;
27519 int
27520 main ()
27521 {
27522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27523 test_array [0] = 0
27524
27525   ;
27526   return 0;
27527 }
27528 _ACEOF
27529 rm -f conftest.$ac_objext
27530 if { (ac_try="$ac_compile"
27531 case "(($ac_try" in
27532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533   *) ac_try_echo=$ac_try;;
27534 esac
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536   (eval "$ac_compile") 2>conftest.er1
27537   ac_status=$?
27538   grep -v '^ *+' conftest.er1 >conftest.err
27539   rm -f conftest.er1
27540   cat conftest.err >&5
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); } && {
27543          test -z "$ac_c_werror_flag" ||
27544          test ! -s conftest.err
27545        } && test -s conftest.$ac_objext; then
27546   ac_hi=$ac_mid
27547 else
27548   echo "$as_me: failed program was:" >&5
27549 sed 's/^/| /' conftest.$ac_ext >&5
27550
27551         ac_lo=`expr '(' $ac_mid ')' + 1`
27552 fi
27553
27554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27555 done
27556 case $ac_lo in
27557 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27558 '') if test "$ac_cv_type_boolean" = yes; then
27559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27560 See \`config.log' for more details." >&5
27561 echo "$as_me: error: cannot compute sizeof (boolean)
27562 See \`config.log' for more details." >&2;}
27563    { (exit 77); exit 77; }; }
27564    else
27565      ac_cv_sizeof_boolean=0
27566    fi ;;
27567 esac
27568 else
27569   cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575
27576                                     #undef HAVE_BOOLEAN
27577                                     #include <stdio.h>
27578                                     #include <jpeglib.h>
27579
27580
27581    typedef boolean ac__type_sizeof_;
27582 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27583 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27584 #include <stdio.h>
27585 #include <stdlib.h>
27586 int
27587 main ()
27588 {
27589
27590   FILE *f = fopen ("conftest.val", "w");
27591   if (! f)
27592     return 1;
27593   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27594     {
27595       long int i = longval ();
27596       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27597         return 1;
27598       fprintf (f, "%ld\n", i);
27599     }
27600   else
27601     {
27602       unsigned long int i = ulongval ();
27603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27604         return 1;
27605       fprintf (f, "%lu\n", i);
27606     }
27607   return ferror (f) || fclose (f) != 0;
27608
27609   ;
27610   return 0;
27611 }
27612 _ACEOF
27613 rm -f conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_link") 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27624   { (case "(($ac_try" in
27625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626   *) ac_try_echo=$ac_try;;
27627 esac
27628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629   (eval "$ac_try") 2>&5
27630   ac_status=$?
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); }; }; then
27633   ac_cv_sizeof_boolean=`cat conftest.val`
27634 else
27635   echo "$as_me: program exited with status $ac_status" >&5
27636 echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27638
27639 ( exit $ac_status )
27640 if test "$ac_cv_type_boolean" = yes; then
27641      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27642 See \`config.log' for more details." >&5
27643 echo "$as_me: error: cannot compute sizeof (boolean)
27644 See \`config.log' for more details." >&2;}
27645    { (exit 77); exit 77; }; }
27646    else
27647      ac_cv_sizeof_boolean=0
27648    fi
27649 fi
27650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27651 fi
27652 rm -f conftest.val
27653 fi
27654 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27655 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27656
27657
27658
27659 cat >>confdefs.h <<_ACEOF
27660 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27661 _ACEOF
27662
27663
27664                             cat >>confdefs.h <<_ACEOF
27665 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27666 _ACEOF
27667
27668
27669 fi
27670
27671                 fi
27672             fi
27673         fi
27674     fi
27675 fi
27676
27677
27678 TIFF_LINK=
27679 TIFF_PREREQ_LINKS=-lm
27680 if test "$wxUSE_LIBTIFF" != "no" ; then
27681     cat >>confdefs.h <<\_ACEOF
27682 #define wxUSE_LIBTIFF 1
27683 _ACEOF
27684
27685
27686     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27687                         if test "$wxUSE_LIBJPEG" = "sys"; then
27688             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27689         fi
27690         if test "$wxUSE_ZLIB" = "sys"; then
27691             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27692         fi
27693         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27694 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27695 if test "${ac_cv_header_tiffio_h+set}" = set; then
27696   echo $ECHO_N "(cached) $ECHO_C" >&6
27697 else
27698   cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h.  */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h.  */
27704
27705
27706
27707 #include <tiffio.h>
27708 _ACEOF
27709 rm -f conftest.$ac_objext
27710 if { (ac_try="$ac_compile"
27711 case "(($ac_try" in
27712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713   *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716   (eval "$ac_compile") 2>conftest.er1
27717   ac_status=$?
27718   grep -v '^ *+' conftest.er1 >conftest.err
27719   rm -f conftest.er1
27720   cat conftest.err >&5
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); } && {
27723          test -z "$ac_c_werror_flag" ||
27724          test ! -s conftest.err
27725        } && test -s conftest.$ac_objext; then
27726   ac_cv_header_tiffio_h=yes
27727 else
27728   echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27730
27731         ac_cv_header_tiffio_h=no
27732 fi
27733
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27735 fi
27736 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27737 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27738 if test $ac_cv_header_tiffio_h = yes; then
27739
27740                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27741 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27742 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27743   echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745   ac_check_lib_save_LIBS=$LIBS
27746 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27747 cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h.  */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h.  */
27753
27754 /* Override any GCC internal prototype to avoid an error.
27755    Use char because int might match the return type of a GCC
27756    builtin and then its argument prototype would still apply.  */
27757 #ifdef __cplusplus
27758 extern "C"
27759 #endif
27760 char TIFFError ();
27761 int
27762 main ()
27763 {
27764 return TIFFError ();
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (ac_try="$ac_link"
27771 case "(($ac_try" in
27772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773   *) ac_try_echo=$ac_try;;
27774 esac
27775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776   (eval "$ac_link") 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } && {
27783          test -z "$ac_c_werror_flag" ||
27784          test ! -s conftest.err
27785        } && test -s conftest$ac_exeext &&
27786        $as_test_x conftest$ac_exeext; then
27787   ac_cv_lib_tiff_TIFFError=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792         ac_cv_lib_tiff_TIFFError=no
27793 fi
27794
27795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27796       conftest$ac_exeext conftest.$ac_ext
27797 LIBS=$ac_check_lib_save_LIBS
27798 fi
27799 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27800 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27801 if test $ac_cv_lib_tiff_TIFFError = yes; then
27802   TIFF_LINK=" -ltiff"
27803 fi
27804
27805
27806 fi
27807
27808
27809
27810         if test "x$TIFF_LINK" = "x" ; then
27811             if test "$wxUSE_LIBTIFF" = "sys" ; then
27812                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27813 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27814    { (exit 1); exit 1; }; }
27815             else
27816                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27817 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27818                 wxUSE_LIBTIFF=builtin
27819             fi
27820         else
27821                         wxUSE_LIBTIFF=sys
27822         fi
27823     fi
27824     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27825         if test "$wxUSE_LIBJPEG" = "no"; then
27826                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27827         fi
27828         subdirs="$subdirs src/tiff"
27829
27830     fi
27831 fi
27832
27833
27834 if test "$wxUSE_WCHAR_T" != "yes"; then
27835     if test "$wxUSE_EXPAT" != "no"; then
27836         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27837 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27838         wxUSE_EXPAT=no
27839     fi
27840     if test "$wxUSE_XML" != "no"; then
27841         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27842 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27843         wxUSE_XML=no
27844     fi
27845 fi
27846
27847 if test "$wxUSE_EXPAT" != "no"; then
27848     wxUSE_XML=yes
27849     cat >>confdefs.h <<\_ACEOF
27850 #define wxUSE_EXPAT 1
27851 _ACEOF
27852
27853     cat >>confdefs.h <<\_ACEOF
27854 #define wxUSE_XML 1
27855 _ACEOF
27856
27857
27858     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27859         { echo "$as_me:$LINENO: checking for expat.h" >&5
27860 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27861 if test "${ac_cv_header_expat_h+set}" = set; then
27862   echo $ECHO_N "(cached) $ECHO_C" >&6
27863 else
27864   cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870
27871
27872 #include <expat.h>
27873 _ACEOF
27874 rm -f conftest.$ac_objext
27875 if { (ac_try="$ac_compile"
27876 case "(($ac_try" in
27877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878   *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881   (eval "$ac_compile") 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } && {
27888          test -z "$ac_c_werror_flag" ||
27889          test ! -s conftest.err
27890        } && test -s conftest.$ac_objext; then
27891   ac_cv_header_expat_h=yes
27892 else
27893   echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896         ac_cv_header_expat_h=no
27897 fi
27898
27899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900 fi
27901 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27902 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27903 if test $ac_cv_header_expat_h = yes; then
27904   found_expat_h=1
27905 fi
27906
27907
27908         if test "x$found_expat_h" = "x1"; then
27909                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27910 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27911 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914
27915                 ac_ext=cpp
27916 ac_cpp='$CXXCPP $CPPFLAGS'
27917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27920
27921                 cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 #include <expat.h>
27928 int
27929 main ()
27930 {
27931
27932   ;
27933   return 0;
27934 }
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (ac_try="$ac_compile"
27938 case "(($ac_try" in
27939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940   *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943   (eval "$ac_compile") 2>conftest.er1
27944   ac_status=$?
27945   grep -v '^ *+' conftest.er1 >conftest.err
27946   rm -f conftest.er1
27947   cat conftest.err >&5
27948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949   (exit $ac_status); } && {
27950          test -z "$ac_cxx_werror_flag" ||
27951          test ! -s conftest.err
27952        } && test -s conftest.$ac_objext; then
27953   wx_cv_expat_is_not_broken=yes
27954 else
27955   echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27957
27958         wx_cv_expat_is_not_broken=no
27959
27960 fi
27961
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963                 ac_ext=c
27964 ac_cpp='$CPP $CPPFLAGS'
27965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27968
27969
27970
27971 fi
27972 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27973 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27974             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27975                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27976 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27977 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27978   echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980   ac_check_lib_save_LIBS=$LIBS
27981 LIBS="-lexpat  $LIBS"
27982 cat >conftest.$ac_ext <<_ACEOF
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988
27989 /* Override any GCC internal prototype to avoid an error.
27990    Use char because int might match the return type of a GCC
27991    builtin and then its argument prototype would still apply.  */
27992 #ifdef __cplusplus
27993 extern "C"
27994 #endif
27995 char XML_ParserCreate ();
27996 int
27997 main ()
27998 {
27999 return XML_ParserCreate ();
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (ac_try="$ac_link"
28006 case "(($ac_try" in
28007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008   *) ac_try_echo=$ac_try;;
28009 esac
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011   (eval "$ac_link") 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } && {
28018          test -z "$ac_c_werror_flag" ||
28019          test ! -s conftest.err
28020        } && test -s conftest$ac_exeext &&
28021        $as_test_x conftest$ac_exeext; then
28022   ac_cv_lib_expat_XML_ParserCreate=yes
28023 else
28024   echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027         ac_cv_lib_expat_XML_ParserCreate=no
28028 fi
28029
28030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28031       conftest$ac_exeext conftest.$ac_ext
28032 LIBS=$ac_check_lib_save_LIBS
28033 fi
28034 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28035 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
28036 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
28037   EXPAT_LINK=" -lexpat"
28038 fi
28039
28040             fi
28041         fi
28042         if test "x$EXPAT_LINK" = "x" ; then
28043             if test "$wxUSE_EXPAT" = "sys" ; then
28044                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28045 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
28046    { (exit 1); exit 1; }; }
28047             else
28048                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28049 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
28050                 wxUSE_EXPAT=builtin
28051             fi
28052         else
28053                         wxUSE_EXPAT=sys
28054         fi
28055     fi
28056     if test "$wxUSE_EXPAT" = "builtin" ; then
28057                 subdirs="$subdirs src/expat"
28058
28059     fi
28060 fi
28061
28062
28063
28064 if test "$wxUSE_LIBMSPACK" != "no"; then
28065     { echo "$as_me:$LINENO: checking for mspack.h" >&5
28066 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
28067 if test "${ac_cv_header_mspack_h+set}" = set; then
28068   echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070   cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h.  */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h.  */
28076
28077
28078 #include <mspack.h>
28079 _ACEOF
28080 rm -f conftest.$ac_objext
28081 if { (ac_try="$ac_compile"
28082 case "(($ac_try" in
28083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084   *) ac_try_echo=$ac_try;;
28085 esac
28086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087   (eval "$ac_compile") 2>conftest.er1
28088   ac_status=$?
28089   grep -v '^ *+' conftest.er1 >conftest.err
28090   rm -f conftest.er1
28091   cat conftest.err >&5
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); } && {
28094          test -z "$ac_c_werror_flag" ||
28095          test ! -s conftest.err
28096        } && test -s conftest.$ac_objext; then
28097   ac_cv_header_mspack_h=yes
28098 else
28099   echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28101
28102         ac_cv_header_mspack_h=no
28103 fi
28104
28105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28106 fi
28107 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28108 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
28109 if test $ac_cv_header_mspack_h = yes; then
28110   found_mspack_h=1
28111 fi
28112
28113
28114     if test "x$found_mspack_h" = "x1"; then
28115         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28116 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
28117 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28118   echo $ECHO_N "(cached) $ECHO_C" >&6
28119 else
28120   ac_check_lib_save_LIBS=$LIBS
28121 LIBS="-lmspack  $LIBS"
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128
28129 /* Override any GCC internal prototype to avoid an error.
28130    Use char because int might match the return type of a GCC
28131    builtin and then its argument prototype would still apply.  */
28132 #ifdef __cplusplus
28133 extern "C"
28134 #endif
28135 char mspack_create_chm_decompressor ();
28136 int
28137 main ()
28138 {
28139 return mspack_create_chm_decompressor ();
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_link") 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } && {
28158          test -z "$ac_c_werror_flag" ||
28159          test ! -s conftest.err
28160        } && test -s conftest$ac_exeext &&
28161        $as_test_x conftest$ac_exeext; then
28162   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28163 else
28164   echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28166
28167         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28168 fi
28169
28170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28171       conftest$ac_exeext conftest.$ac_ext
28172 LIBS=$ac_check_lib_save_LIBS
28173 fi
28174 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28175 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28176 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28177   MSPACK_LINK=" -lmspack"
28178 fi
28179
28180     fi
28181     if test "x$MSPACK_LINK" = "x" ; then
28182         wxUSE_LIBMSPACK=no
28183     fi
28184 fi
28185
28186 if test "$wxUSE_LIBMSPACK" != "no"; then
28187     cat >>confdefs.h <<\_ACEOF
28188 #define wxUSE_LIBMSPACK 1
28189 _ACEOF
28190
28191 fi
28192
28193
28194
28195 AFMINSTALL=
28196 WIN32INSTALL=
28197
28198 TOOLKIT=
28199 TOOLKIT_INCLUDE=
28200 WIDGET_SET=
28201
28202 if test "$USE_WIN32" = 1 ; then
28203
28204 for ac_header in w32api.h
28205 do
28206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28210   echo $ECHO_N "(cached) $ECHO_C" >&6
28211 else
28212   cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h.  */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h.  */
28218
28219
28220 #include <$ac_header>
28221 _ACEOF
28222 rm -f conftest.$ac_objext
28223 if { (ac_try="$ac_compile"
28224 case "(($ac_try" in
28225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226   *) ac_try_echo=$ac_try;;
28227 esac
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229   (eval "$ac_compile") 2>conftest.er1
28230   ac_status=$?
28231   grep -v '^ *+' conftest.er1 >conftest.err
28232   rm -f conftest.er1
28233   cat conftest.err >&5
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); } && {
28236          test -z "$ac_c_werror_flag" ||
28237          test ! -s conftest.err
28238        } && test -s conftest.$ac_objext; then
28239   eval "$as_ac_Header=yes"
28240 else
28241   echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28243
28244         eval "$as_ac_Header=no"
28245 fi
28246
28247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28248 fi
28249 ac_res=`eval echo '${'$as_ac_Header'}'`
28250                { echo "$as_me:$LINENO: result: $ac_res" >&5
28251 echo "${ECHO_T}$ac_res" >&6; }
28252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28253   cat >>confdefs.h <<_ACEOF
28254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28255 _ACEOF
28256
28257 fi
28258
28259 done
28260
28261     { echo "$as_me:$LINENO: checking for windows.h" >&5
28262 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28263 if test "${ac_cv_header_windows_h+set}" = set; then
28264   echo $ECHO_N "(cached) $ECHO_C" >&6
28265 else
28266   cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272
28273
28274 #include <windows.h>
28275 _ACEOF
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283   (eval "$ac_compile") 2>conftest.er1
28284   ac_status=$?
28285   grep -v '^ *+' conftest.er1 >conftest.err
28286   rm -f conftest.er1
28287   cat conftest.err >&5
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); } && {
28290          test -z "$ac_c_werror_flag" ||
28291          test ! -s conftest.err
28292        } && test -s conftest.$ac_objext; then
28293   ac_cv_header_windows_h=yes
28294 else
28295   echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298         ac_cv_header_windows_h=no
28299 fi
28300
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 fi
28303 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28304 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28305 if test $ac_cv_header_windows_h = yes; then
28306   :
28307 else
28308
28309         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28310 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28311    { (exit 1); exit 1; }; }
28312
28313 fi
28314
28315
28316
28317             case "${host}" in
28318         x86_64-*-mingw32* )
28319                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28320         ;;
28321         * )
28322             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28323         ;;
28324     esac
28325     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28326         LIBS="$LIBS -loleacc"
28327     fi
28328
28329     case "${host}" in
28330         *-*-cygwin* )
28331                         LIBS="$LIBS -lkernel32 -luser32"
28332     esac
28333
28334         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28335     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28336
28337                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28338
28339         WIN32INSTALL=win32install
28340
28341         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28342 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28343 if test "${ac_cv_header_pbt_h+set}" = set; then
28344   echo $ECHO_N "(cached) $ECHO_C" >&6
28345 else
28346   cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352
28353
28354 #include <pbt.h>
28355 _ACEOF
28356 rm -f conftest.$ac_objext
28357 if { (ac_try="$ac_compile"
28358 case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_compile") 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } && {
28370          test -z "$ac_c_werror_flag" ||
28371          test ! -s conftest.err
28372        } && test -s conftest.$ac_objext; then
28373   ac_cv_header_pbt_h=yes
28374 else
28375   echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28377
28378         ac_cv_header_pbt_h=no
28379 fi
28380
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 fi
28383 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28384 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28385 if test $ac_cv_header_pbt_h = yes; then
28386   :
28387 else
28388   cat >>confdefs.h <<\_ACEOF
28389 #define NEED_PBT_H 1
28390 _ACEOF
28391
28392 fi
28393
28394
28395 fi
28396
28397 if test "$wxUSE_GUI" = "yes"; then
28398     USE_GUI=1
28399
28400     GUI_TK_LIBRARY=
28401
28402     WXGTK12=
28403     WXGTK127=
28404     WXGTK2=
28405     WXGPE=
28406
28407     if test "$wxUSE_COCOA" = 1 ; then
28408         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28409             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28410 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28411             wxUSE_PRINTING_ARCHITECTURE=no
28412         fi
28413         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28414             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28415 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28416             wxUSE_DRAG_AND_DROP=no
28417         fi
28418         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28419             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28420 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28421             wxUSE_DRAGIMAGE=no
28422         fi
28423     fi
28424
28425     if test "$wxUSE_MSW" = 1 ; then
28426         TOOLKIT=MSW
28427         GUIDIST=MSW_DIST
28428
28429                 case "${host}" in
28430             *-*-mingw32* )
28431                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28432         esac
28433     fi
28434
28435     if test "$wxUSE_GTK" = 1; then
28436                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28437 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28438
28439         gtk_version_cached=1
28440         if test "${wx_cv_lib_gtk+set}" = set; then
28441   echo $ECHO_N "(cached) $ECHO_C" >&6
28442 else
28443
28444                                                 gtk_version_cached=0
28445                 { echo "$as_me:$LINENO: result: " >&5
28446 echo "${ECHO_T}" >&6; }
28447
28448                                                 GTK_MODULES=
28449                 if test "$wxUSE_THREADS" = "yes"; then
28450                     GTK_MODULES=gthread
28451                 fi
28452
28453                                 wx_cv_lib_gtk=
28454                 if test "x$wxGTK_VERSION" != "x1"
28455                 then
28456                                                                                 case "${host}" in
28457                         *-*-solaris2* )
28458                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28459                                 enable_gtktest=no
28460                             fi
28461                     esac
28462
28463                     # Check whether --enable-gtktest was given.
28464 if test "${enable_gtktest+set}" = set; then
28465   enableval=$enable_gtktest;
28466 else
28467   enable_gtktest=yes
28468 fi
28469
28470
28471   pkg_config_args=gtk+-2.0
28472   for module in . $GTK_MODULES
28473   do
28474       case "$module" in
28475          gthread)
28476              pkg_config_args="$pkg_config_args gthread-2.0"
28477          ;;
28478       esac
28479   done
28480
28481   no_gtk=""
28482
28483   # Extract the first word of "pkg-config", so it can be a program name with args.
28484 set dummy pkg-config; ac_word=$2
28485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28488   echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490   case $PKG_CONFIG in
28491   [\\/]* | ?:[\\/]*)
28492   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28493   ;;
28494   *)
28495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28496 for as_dir in $PATH
28497 do
28498   IFS=$as_save_IFS
28499   test -z "$as_dir" && as_dir=.
28500   for ac_exec_ext in '' $ac_executable_extensions; do
28501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28502     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28504     break 2
28505   fi
28506 done
28507 done
28508 IFS=$as_save_IFS
28509
28510   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28511   ;;
28512 esac
28513 fi
28514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28515 if test -n "$PKG_CONFIG"; then
28516   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28517 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28518 else
28519   { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28521 fi
28522
28523
28524
28525   if test x$PKG_CONFIG != xno ; then
28526     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28527       :
28528     else
28529       echo "*** pkg-config too old; version 0.7 or better required."
28530       no_gtk=yes
28531       PKG_CONFIG=no
28532     fi
28533   else
28534     no_gtk=yes
28535   fi
28536
28537   min_gtk_version=2.4.0
28538   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28539 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28540
28541   if test x$PKG_CONFIG != xno ; then
28542     ## don't try to run the test against uninstalled libtool libs
28543     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28544           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28545           enable_gtktest=no
28546     fi
28547
28548     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28549           :
28550     else
28551           no_gtk=yes
28552     fi
28553   fi
28554
28555   if test x"$no_gtk" = x ; then
28556     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28557     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28558     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28559            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28560     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28561            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28562     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28563            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28564     if test "x$enable_gtktest" = "xyes" ; then
28565       ac_save_CFLAGS="$CFLAGS"
28566       ac_save_LIBS="$LIBS"
28567       CFLAGS="$CFLAGS $GTK_CFLAGS"
28568       LIBS="$GTK_LIBS $LIBS"
28569       rm -f conf.gtktest
28570       if test "$cross_compiling" = yes; then
28571   echo $ac_n "cross compiling; assumed OK... $ac_c"
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579
28580 #include <gtk/gtk.h>
28581 #include <stdio.h>
28582 #include <stdlib.h>
28583
28584 int
28585 main ()
28586 {
28587   int major, minor, micro;
28588   char *tmp_version;
28589
28590   system ("touch conf.gtktest");
28591
28592   /* HP/UX 9 (%@#!) writes to sscanf strings */
28593   tmp_version = g_strdup("$min_gtk_version");
28594   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28595      printf("%s, bad version string\n", "$min_gtk_version");
28596      exit(1);
28597    }
28598
28599   if ((gtk_major_version != $gtk_config_major_version) ||
28600       (gtk_minor_version != $gtk_config_minor_version) ||
28601       (gtk_micro_version != $gtk_config_micro_version))
28602     {
28603       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28604              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28605              gtk_major_version, gtk_minor_version, gtk_micro_version);
28606       printf ("*** was found! If pkg-config was correct, then it is best\n");
28607       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28608       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28609       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28610       printf("*** required on your system.\n");
28611       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28612       printf("*** to point to the correct configuration files\n");
28613     }
28614   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28615            (gtk_minor_version != GTK_MINOR_VERSION) ||
28616            (gtk_micro_version != GTK_MICRO_VERSION))
28617     {
28618       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28619              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28620       printf("*** library (version %d.%d.%d)\n",
28621              gtk_major_version, gtk_minor_version, gtk_micro_version);
28622     }
28623   else
28624     {
28625       if ((gtk_major_version > major) ||
28626         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28627         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28628       {
28629         return 0;
28630        }
28631      else
28632       {
28633         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28634                gtk_major_version, gtk_minor_version, gtk_micro_version);
28635         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28636                major, minor, micro);
28637         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28638         printf("***\n");
28639         printf("*** If you have already installed a sufficiently new version, this error\n");
28640         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28641         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28642         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28643         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28644         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28645         printf("*** so that the correct libraries are found at run-time))\n");
28646       }
28647     }
28648   return 1;
28649 }
28650
28651 _ACEOF
28652 rm -f conftest$ac_exeext
28653 if { (ac_try="$ac_link"
28654 case "(($ac_try" in
28655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656   *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659   (eval "$ac_link") 2>&5
28660   ac_status=$?
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28663   { (case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_try") 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; }; then
28672   :
28673 else
28674   echo "$as_me: program exited with status $ac_status" >&5
28675 echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28677
28678 ( exit $ac_status )
28679 no_gtk=yes
28680 fi
28681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28682 fi
28683
28684
28685        CFLAGS="$ac_save_CFLAGS"
28686        LIBS="$ac_save_LIBS"
28687      fi
28688   fi
28689   if test "x$no_gtk" = x ; then
28690      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28691 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28692      wx_cv_lib_gtk=2.0
28693   else
28694      { echo "$as_me:$LINENO: result: no" >&5
28695 echo "${ECHO_T}no" >&6; }
28696      if test "$PKG_CONFIG" = "no" ; then
28697        echo "*** A new enough version of pkg-config was not found."
28698        echo "*** See http://pkgconfig.sourceforge.net"
28699      else
28700        if test -f conf.gtktest ; then
28701         :
28702        else
28703           echo "*** Could not run GTK+ test program, checking why..."
28704           ac_save_CFLAGS="$CFLAGS"
28705           ac_save_LIBS="$LIBS"
28706           CFLAGS="$CFLAGS $GTK_CFLAGS"
28707           LIBS="$LIBS $GTK_LIBS"
28708           cat >conftest.$ac_ext <<_ACEOF
28709 /* confdefs.h.  */
28710 _ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h.  */
28714
28715 #include <gtk/gtk.h>
28716 #include <stdio.h>
28717
28718 int
28719 main ()
28720 {
28721  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28722   ;
28723   return 0;
28724 }
28725 _ACEOF
28726 rm -f conftest.$ac_objext conftest$ac_exeext
28727 if { (ac_try="$ac_link"
28728 case "(($ac_try" in
28729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730   *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733   (eval "$ac_link") 2>conftest.er1
28734   ac_status=$?
28735   grep -v '^ *+' conftest.er1 >conftest.err
28736   rm -f conftest.er1
28737   cat conftest.err >&5
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); } && {
28740          test -z "$ac_c_werror_flag" ||
28741          test ! -s conftest.err
28742        } && test -s conftest$ac_exeext &&
28743        $as_test_x conftest$ac_exeext; then
28744    echo "*** The test program compiled, but did not run. This usually means"
28745           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28746           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28747           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28748           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28749           echo "*** is required on your system"
28750           echo "***"
28751           echo "*** If you have an old version installed, it is best to remove it, although"
28752           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28753 else
28754   echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28756
28757          echo "*** The test program failed to compile or link. See the file config.log for the"
28758           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28759 fi
28760
28761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28762       conftest$ac_exeext conftest.$ac_ext
28763           CFLAGS="$ac_save_CFLAGS"
28764           LIBS="$ac_save_LIBS"
28765        fi
28766      fi
28767      GTK_CFLAGS=""
28768      GTK_LIBS=""
28769      :
28770   fi
28771
28772
28773   rm -f conf.gtktest
28774
28775
28776                                         case "${host}" in
28777                         *-*-solaris2* )
28778                             if test "$wxUSE_SHARED" != "yes"; then
28779                                 GTK_LIBS="$GTK_LIBS -lX11"
28780                             fi
28781                     esac
28782                 fi
28783
28784                                 if test -z "$wx_cv_lib_gtk"; then
28785                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28786
28787 # Check whether --with-gtk-prefix was given.
28788 if test "${with_gtk_prefix+set}" = set; then
28789   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28790 else
28791   gtk_config_prefix=""
28792 fi
28793
28794
28795 # Check whether --with-gtk-exec-prefix was given.
28796 if test "${with_gtk_exec_prefix+set}" = set; then
28797   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28798 else
28799   gtk_config_exec_prefix=""
28800 fi
28801
28802 # Check whether --enable-gtktest was given.
28803 if test "${enable_gtktest+set}" = set; then
28804   enableval=$enable_gtktest;
28805 else
28806   enable_gtktest=yes
28807 fi
28808
28809
28810   for module in . $GTK_MODULES
28811   do
28812       case "$module" in
28813          gthread)
28814              gtk_config_args="$gtk_config_args gthread"
28815          ;;
28816       esac
28817   done
28818
28819   if test x$gtk_config_exec_prefix != x ; then
28820      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28821      if test x${GTK_CONFIG+set} != xset ; then
28822         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28823      fi
28824   fi
28825   if test x$gtk_config_prefix != x ; then
28826      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28827      if test x${GTK_CONFIG+set} != xset ; then
28828         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28829      fi
28830   fi
28831
28832   # Extract the first word of "gtk-config", so it can be a program name with args.
28833 set dummy gtk-config; ac_word=$2
28834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28836 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28837   echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839   case $GTK_CONFIG in
28840   [\\/]* | ?:[\\/]*)
28841   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28842   ;;
28843   *)
28844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28845 for as_dir in $PATH
28846 do
28847   IFS=$as_save_IFS
28848   test -z "$as_dir" && as_dir=.
28849   for ac_exec_ext in '' $ac_executable_extensions; do
28850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28851     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853     break 2
28854   fi
28855 done
28856 done
28857 IFS=$as_save_IFS
28858
28859   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28860   ;;
28861 esac
28862 fi
28863 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28864 if test -n "$GTK_CONFIG"; then
28865   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28866 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28867 else
28868   { echo "$as_me:$LINENO: result: no" >&5
28869 echo "${ECHO_T}no" >&6; }
28870 fi
28871
28872
28873   min_gtk_version=1.2.7
28874   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28875 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28876   no_gtk=""
28877   if test "$GTK_CONFIG" = "no" ; then
28878     no_gtk=yes
28879   else
28880     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28881     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28882     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28883            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28884     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28885            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28886     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28887            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28888     if test "x$enable_gtktest" = "xyes" ; then
28889       ac_save_CFLAGS="$CFLAGS"
28890       ac_save_LIBS="$LIBS"
28891       CFLAGS="$CFLAGS $GTK_CFLAGS"
28892       LIBS="$GTK_LIBS $LIBS"
28893       rm -f conf.gtktest
28894       if test "$cross_compiling" = yes; then
28895   echo $ac_n "cross compiling; assumed OK... $ac_c"
28896 else
28897   cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h.  */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h.  */
28903
28904 #include <gtk/gtk.h>
28905 #include <stdio.h>
28906 #include <stdlib.h>
28907
28908 int
28909 main ()
28910 {
28911   int major, minor, micro;
28912   char *tmp_version;
28913
28914   system ("touch conf.gtktest");
28915
28916   /* HP/UX 9 (%@#!) writes to sscanf strings */
28917   tmp_version = g_strdup("$min_gtk_version");
28918   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28919      printf("%s, bad version string\n", "$min_gtk_version");
28920      exit(1);
28921    }
28922
28923   if ((gtk_major_version != $gtk_config_major_version) ||
28924       (gtk_minor_version != $gtk_config_minor_version) ||
28925       (gtk_micro_version != $gtk_config_micro_version))
28926     {
28927       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28928              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28929              gtk_major_version, gtk_minor_version, gtk_micro_version);
28930       printf ("*** was found! If gtk-config was correct, then it is best\n");
28931       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28932       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28933       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28934       printf("*** required on your system.\n");
28935       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28936       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28937       printf("*** before re-running configure\n");
28938     }
28939 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28940   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28941            (gtk_minor_version != GTK_MINOR_VERSION) ||
28942            (gtk_micro_version != GTK_MICRO_VERSION))
28943     {
28944       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28945              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28946       printf("*** library (version %d.%d.%d)\n",
28947              gtk_major_version, gtk_minor_version, gtk_micro_version);
28948     }
28949 #endif /* defined (GTK_MAJOR_VERSION) ... */
28950   else
28951     {
28952       if ((gtk_major_version > major) ||
28953         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28954         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28955       {
28956         return 0;
28957        }
28958      else
28959       {
28960         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28961                gtk_major_version, gtk_minor_version, gtk_micro_version);
28962         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28963                major, minor, micro);
28964         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28965         printf("***\n");
28966         printf("*** If you have already installed a sufficiently new version, this error\n");
28967         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28968         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28969         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28970         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28971         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28972         printf("*** so that the correct libraries are found at run-time))\n");
28973       }
28974     }
28975   return 1;
28976 }
28977
28978 _ACEOF
28979 rm -f conftest$ac_exeext
28980 if { (ac_try="$ac_link"
28981 case "(($ac_try" in
28982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983   *) ac_try_echo=$ac_try;;
28984 esac
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986   (eval "$ac_link") 2>&5
28987   ac_status=$?
28988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28990   { (case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995   (eval "$ac_try") 2>&5
28996   ac_status=$?
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); }; }; then
28999   :
29000 else
29001   echo "$as_me: program exited with status $ac_status" >&5
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29004
29005 ( exit $ac_status )
29006 no_gtk=yes
29007 fi
29008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29009 fi
29010
29011
29012        CFLAGS="$ac_save_CFLAGS"
29013        LIBS="$ac_save_LIBS"
29014      fi
29015   fi
29016   if test "x$no_gtk" = x ; then
29017      { echo "$as_me:$LINENO: result: yes" >&5
29018 echo "${ECHO_T}yes" >&6; }
29019      wx_cv_lib_gtk=1.2.7
29020   else
29021      { echo "$as_me:$LINENO: result: no" >&5
29022 echo "${ECHO_T}no" >&6; }
29023      if test "$GTK_CONFIG" = "no" ; then
29024        echo "*** The gtk-config script installed by GTK could not be found"
29025        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29026        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29027        echo "*** full path to gtk-config."
29028      else
29029        if test -f conf.gtktest ; then
29030         :
29031        else
29032           echo "*** Could not run GTK test program, checking why..."
29033           CFLAGS="$CFLAGS $GTK_CFLAGS"
29034           LIBS="$LIBS $GTK_LIBS"
29035           cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041
29042 #include <gtk/gtk.h>
29043 #include <stdio.h>
29044
29045 int
29046 main ()
29047 {
29048  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29049   ;
29050   return 0;
29051 }
29052 _ACEOF
29053 rm -f conftest.$ac_objext conftest$ac_exeext
29054 if { (ac_try="$ac_link"
29055 case "(($ac_try" in
29056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057   *) ac_try_echo=$ac_try;;
29058 esac
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060   (eval "$ac_link") 2>conftest.er1
29061   ac_status=$?
29062   grep -v '^ *+' conftest.er1 >conftest.err
29063   rm -f conftest.er1
29064   cat conftest.err >&5
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); } && {
29067          test -z "$ac_c_werror_flag" ||
29068          test ! -s conftest.err
29069        } && test -s conftest$ac_exeext &&
29070        $as_test_x conftest$ac_exeext; then
29071    echo "*** The test program compiled, but did not run. This usually means"
29072           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29073           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29074           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29075           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29076           echo "*** is required on your system"
29077           echo "***"
29078           echo "*** If you have an old version installed, it is best to remove it, although"
29079           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29080           echo "***"
29081           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29082           echo "*** came with the system with the command"
29083           echo "***"
29084           echo "***    rpm --erase --nodeps gtk gtk-devel"
29085 else
29086   echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29088
29089          echo "*** The test program failed to compile or link. See the file config.log for the"
29090           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29091           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29092           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29093 fi
29094
29095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29096       conftest$ac_exeext conftest.$ac_ext
29097           CFLAGS="$ac_save_CFLAGS"
29098           LIBS="$ac_save_LIBS"
29099        fi
29100      fi
29101      GTK_CFLAGS=""
29102      GTK_LIBS=""
29103      :
29104   fi
29105
29106
29107   rm -f conf.gtktest
29108
29109
29110                         if test -z "$wx_cv_lib_gtk"; then
29111
29112 # Check whether --with-gtk-prefix was given.
29113 if test "${with_gtk_prefix+set}" = set; then
29114   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29115 else
29116   gtk_config_prefix=""
29117 fi
29118
29119
29120 # Check whether --with-gtk-exec-prefix was given.
29121 if test "${with_gtk_exec_prefix+set}" = set; then
29122   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29123 else
29124   gtk_config_exec_prefix=""
29125 fi
29126
29127 # Check whether --enable-gtktest was given.
29128 if test "${enable_gtktest+set}" = set; then
29129   enableval=$enable_gtktest;
29130 else
29131   enable_gtktest=yes
29132 fi
29133
29134
29135   for module in . $GTK_MODULES
29136   do
29137       case "$module" in
29138          gthread)
29139              gtk_config_args="$gtk_config_args gthread"
29140          ;;
29141       esac
29142   done
29143
29144   if test x$gtk_config_exec_prefix != x ; then
29145      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29146      if test x${GTK_CONFIG+set} != xset ; then
29147         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29148      fi
29149   fi
29150   if test x$gtk_config_prefix != x ; then
29151      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29152      if test x${GTK_CONFIG+set} != xset ; then
29153         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29154      fi
29155   fi
29156
29157   # Extract the first word of "gtk-config", so it can be a program name with args.
29158 set dummy gtk-config; ac_word=$2
29159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29161 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29162   echo $ECHO_N "(cached) $ECHO_C" >&6
29163 else
29164   case $GTK_CONFIG in
29165   [\\/]* | ?:[\\/]*)
29166   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29167   ;;
29168   *)
29169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29170 for as_dir in $PATH
29171 do
29172   IFS=$as_save_IFS
29173   test -z "$as_dir" && as_dir=.
29174   for ac_exec_ext in '' $ac_executable_extensions; do
29175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29176     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29178     break 2
29179   fi
29180 done
29181 done
29182 IFS=$as_save_IFS
29183
29184   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29185   ;;
29186 esac
29187 fi
29188 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29189 if test -n "$GTK_CONFIG"; then
29190   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29191 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29192 else
29193   { echo "$as_me:$LINENO: result: no" >&5
29194 echo "${ECHO_T}no" >&6; }
29195 fi
29196
29197
29198   min_gtk_version=1.2.3
29199   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29200 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29201   no_gtk=""
29202   if test "$GTK_CONFIG" = "no" ; then
29203     no_gtk=yes
29204   else
29205     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29206     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29207     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29208            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29209     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29210            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29211     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29212            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29213     if test "x$enable_gtktest" = "xyes" ; then
29214       ac_save_CFLAGS="$CFLAGS"
29215       ac_save_LIBS="$LIBS"
29216       CFLAGS="$CFLAGS $GTK_CFLAGS"
29217       LIBS="$GTK_LIBS $LIBS"
29218       rm -f conf.gtktest
29219       if test "$cross_compiling" = yes; then
29220   echo $ac_n "cross compiling; assumed OK... $ac_c"
29221 else
29222   cat >conftest.$ac_ext <<_ACEOF
29223 /* confdefs.h.  */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h.  */
29228
29229 #include <gtk/gtk.h>
29230 #include <stdio.h>
29231 #include <stdlib.h>
29232
29233 int
29234 main ()
29235 {
29236   int major, minor, micro;
29237   char *tmp_version;
29238
29239   system ("touch conf.gtktest");
29240
29241   /* HP/UX 9 (%@#!) writes to sscanf strings */
29242   tmp_version = g_strdup("$min_gtk_version");
29243   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29244      printf("%s, bad version string\n", "$min_gtk_version");
29245      exit(1);
29246    }
29247
29248   if ((gtk_major_version != $gtk_config_major_version) ||
29249       (gtk_minor_version != $gtk_config_minor_version) ||
29250       (gtk_micro_version != $gtk_config_micro_version))
29251     {
29252       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29253              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29254              gtk_major_version, gtk_minor_version, gtk_micro_version);
29255       printf ("*** was found! If gtk-config was correct, then it is best\n");
29256       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29257       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29258       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29259       printf("*** required on your system.\n");
29260       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29261       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29262       printf("*** before re-running configure\n");
29263     }
29264 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29265   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29266            (gtk_minor_version != GTK_MINOR_VERSION) ||
29267            (gtk_micro_version != GTK_MICRO_VERSION))
29268     {
29269       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29270              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29271       printf("*** library (version %d.%d.%d)\n",
29272              gtk_major_version, gtk_minor_version, gtk_micro_version);
29273     }
29274 #endif /* defined (GTK_MAJOR_VERSION) ... */
29275   else
29276     {
29277       if ((gtk_major_version > major) ||
29278         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29279         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29280       {
29281         return 0;
29282        }
29283      else
29284       {
29285         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29286                gtk_major_version, gtk_minor_version, gtk_micro_version);
29287         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29288                major, minor, micro);
29289         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29290         printf("***\n");
29291         printf("*** If you have already installed a sufficiently new version, this error\n");
29292         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29293         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29294         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29295         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29296         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29297         printf("*** so that the correct libraries are found at run-time))\n");
29298       }
29299     }
29300   return 1;
29301 }
29302
29303 _ACEOF
29304 rm -f conftest$ac_exeext
29305 if { (ac_try="$ac_link"
29306 case "(($ac_try" in
29307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308   *) ac_try_echo=$ac_try;;
29309 esac
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311   (eval "$ac_link") 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29315   { (case "(($ac_try" in
29316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317   *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320   (eval "$ac_try") 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; }; then
29324   :
29325 else
29326   echo "$as_me: program exited with status $ac_status" >&5
29327 echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29329
29330 ( exit $ac_status )
29331 no_gtk=yes
29332 fi
29333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29334 fi
29335
29336
29337        CFLAGS="$ac_save_CFLAGS"
29338        LIBS="$ac_save_LIBS"
29339      fi
29340   fi
29341   if test "x$no_gtk" = x ; then
29342      { echo "$as_me:$LINENO: result: yes" >&5
29343 echo "${ECHO_T}yes" >&6; }
29344      wx_cv_lib_gtk=1.2.3
29345   else
29346      { echo "$as_me:$LINENO: result: no" >&5
29347 echo "${ECHO_T}no" >&6; }
29348      if test "$GTK_CONFIG" = "no" ; then
29349        echo "*** The gtk-config script installed by GTK could not be found"
29350        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29351        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29352        echo "*** full path to gtk-config."
29353      else
29354        if test -f conf.gtktest ; then
29355         :
29356        else
29357           echo "*** Could not run GTK test program, checking why..."
29358           CFLAGS="$CFLAGS $GTK_CFLAGS"
29359           LIBS="$LIBS $GTK_LIBS"
29360           cat >conftest.$ac_ext <<_ACEOF
29361 /* confdefs.h.  */
29362 _ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h.  */
29366
29367 #include <gtk/gtk.h>
29368 #include <stdio.h>
29369
29370 int
29371 main ()
29372 {
29373  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29374   ;
29375   return 0;
29376 }
29377 _ACEOF
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379 if { (ac_try="$ac_link"
29380 case "(($ac_try" in
29381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382   *) ac_try_echo=$ac_try;;
29383 esac
29384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29385   (eval "$ac_link") 2>conftest.er1
29386   ac_status=$?
29387   grep -v '^ *+' conftest.er1 >conftest.err
29388   rm -f conftest.er1
29389   cat conftest.err >&5
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); } && {
29392          test -z "$ac_c_werror_flag" ||
29393          test ! -s conftest.err
29394        } && test -s conftest$ac_exeext &&
29395        $as_test_x conftest$ac_exeext; then
29396    echo "*** The test program compiled, but did not run. This usually means"
29397           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29398           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29399           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29400           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29401           echo "*** is required on your system"
29402           echo "***"
29403           echo "*** If you have an old version installed, it is best to remove it, although"
29404           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29405           echo "***"
29406           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29407           echo "*** came with the system with the command"
29408           echo "***"
29409           echo "***    rpm --erase --nodeps gtk gtk-devel"
29410 else
29411   echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414          echo "*** The test program failed to compile or link. See the file config.log for the"
29415           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29416           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29417           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29418 fi
29419
29420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29421       conftest$ac_exeext conftest.$ac_ext
29422           CFLAGS="$ac_save_CFLAGS"
29423           LIBS="$ac_save_LIBS"
29424        fi
29425      fi
29426      GTK_CFLAGS=""
29427      GTK_LIBS=""
29428      :
29429   fi
29430
29431
29432   rm -f conf.gtktest
29433
29434                         fi
29435                     fi
29436                 fi
29437
29438                 if test -z "$wx_cv_lib_gtk"; then
29439                                         wx_cv_lib_gtk=none
29440                 else
29441                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29442                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29443                 fi
29444
29445
29446 fi
29447
29448
29449                         if test "$gtk_version_cached" = 1; then
29450             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29451 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29452         fi
29453
29454         case "$wx_cv_lib_gtk" in
29455             2.0)    WXGTK2=1
29456                     TOOLKIT_VERSION=2
29457                     ;;
29458             1.2.7)  WXGTK127=1
29459                     WXGTK12=1
29460                     ;;
29461             1.2.3)  WXGTK12=1
29462                     ;;
29463             *)      { { echo "$as_me:$LINENO: error:
29464 The development files for GTK+ were not found. For GTK+ 2, please
29465 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29466 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29467 and that the version is 1.2.3 or above. Also check that the
29468 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29469 --libs' are in the LD_LIBRARY_PATH or equivalent.
29470                             " >&5
29471 echo "$as_me: error:
29472 The development files for GTK+ were not found. For GTK+ 2, please
29473 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29474 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29475 and that the version is 1.2.3 or above. Also check that the
29476 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29477 --libs' are in the LD_LIBRARY_PATH or equivalent.
29478                             " >&2;}
29479    { (exit 1); exit 1; }; }
29480                     ;;
29481         esac
29482
29483         if test "$WXGTK2" = 1; then
29484             save_CFLAGS="$CFLAGS"
29485             save_LIBS="$LIBS"
29486             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29487             LIBS="$LIBS $wx_cv_libs_gtk"
29488
29489                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29490 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29491             cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497
29498                             #include <gtk/gtk.h>
29499
29500 int
29501 main ()
29502 {
29503
29504                             #if !GTK_CHECK_VERSION(2,10,0)
29505                             Not GTK+ 2.10
29506                             #endif
29507
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest.$ac_objext
29513 if { (ac_try="$ac_compile"
29514 case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519   (eval "$ac_compile") 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } && {
29526          test -z "$ac_c_werror_flag" ||
29527          test ! -s conftest.err
29528        } && test -s conftest.$ac_objext; then
29529
29530                             cat >>confdefs.h <<\_ACEOF
29531 #define __WXGTK210__ 1
29532 _ACEOF
29533
29534                             cat >>confdefs.h <<\_ACEOF
29535 #define __WXGTK26__ 1
29536 _ACEOF
29537
29538                             { echo "$as_me:$LINENO: result: yes" >&5
29539 echo "${ECHO_T}yes" >&6; }
29540                             ac_wxgtk210=1
29541
29542 else
29543   echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29545
29546
29547                             { echo "$as_me:$LINENO: result: no" >&5
29548 echo "${ECHO_T}no" >&6; }
29549                             ac_wxgtk210=0
29550
29551 fi
29552
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554
29555             if test "$ac_wxgtk210" = 0; then
29556                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29557 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29558                 cat >conftest.$ac_ext <<_ACEOF
29559 /* confdefs.h.  */
29560 _ACEOF
29561 cat confdefs.h >>conftest.$ac_ext
29562 cat >>conftest.$ac_ext <<_ACEOF
29563 /* end confdefs.h.  */
29564
29565                                 #include <gtk/gtk.h>
29566
29567 int
29568 main ()
29569 {
29570
29571                                 #if !GTK_CHECK_VERSION(2,6,0)
29572                                 Not GTK+ 2.6
29573                                 #endif
29574
29575   ;
29576   return 0;
29577 }
29578 _ACEOF
29579 rm -f conftest.$ac_objext
29580 if { (ac_try="$ac_compile"
29581 case "(($ac_try" in
29582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583   *) ac_try_echo=$ac_try;;
29584 esac
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586   (eval "$ac_compile") 2>conftest.er1
29587   ac_status=$?
29588   grep -v '^ *+' conftest.er1 >conftest.err
29589   rm -f conftest.er1
29590   cat conftest.err >&5
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); } && {
29593          test -z "$ac_c_werror_flag" ||
29594          test ! -s conftest.err
29595        } && test -s conftest.$ac_objext; then
29596
29597                                 cat >>confdefs.h <<\_ACEOF
29598 #define __WXGTK26__ 1
29599 _ACEOF
29600
29601                                 { echo "$as_me:$LINENO: result: yes" >&5
29602 echo "${ECHO_T}yes" >&6; }
29603                                 ac_wxgtk26=1
29604
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609
29610                                 { echo "$as_me:$LINENO: result: no" >&5
29611 echo "${ECHO_T}no" >&6; }
29612                                 ac_wxgtk26=0
29613
29614 fi
29615
29616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29617             fi
29618
29619             CFLAGS="$save_CFLAGS"
29620             LIBS="$save_LIBS"
29621         else
29622             if test "$wxUSE_UNICODE" = "yes"; then
29623                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29624 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29625                 wxUSE_UNICODE=no
29626             fi
29627
29628                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29629 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29630 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   ac_check_lib_save_LIBS=$LIBS
29634 LIBS="-lgdk  $LIBS"
29635 cat >conftest.$ac_ext <<_ACEOF
29636 /* confdefs.h.  */
29637 _ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h.  */
29641
29642 /* Override any GCC internal prototype to avoid an error.
29643    Use char because int might match the return type of a GCC
29644    builtin and then its argument prototype would still apply.  */
29645 #ifdef __cplusplus
29646 extern "C"
29647 #endif
29648 char gdk_im_open ();
29649 int
29650 main ()
29651 {
29652 return gdk_im_open ();
29653   ;
29654   return 0;
29655 }
29656 _ACEOF
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (ac_try="$ac_link"
29659 case "(($ac_try" in
29660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661   *) ac_try_echo=$ac_try;;
29662 esac
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664   (eval "$ac_link") 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } && {
29671          test -z "$ac_c_werror_flag" ||
29672          test ! -s conftest.err
29673        } && test -s conftest$ac_exeext &&
29674        $as_test_x conftest$ac_exeext; then
29675   ac_cv_lib_gdk_gdk_im_open=yes
29676 else
29677   echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680         ac_cv_lib_gdk_gdk_im_open=no
29681 fi
29682
29683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29684       conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29686 fi
29687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29688 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29689 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29690   cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_XIM 1
29692 _ACEOF
29693
29694 fi
29695
29696
29697                                     if test "$USE_DARWIN" != 1; then
29698
29699 for ac_func in poll
29700 do
29701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29705   echo $ECHO_N "(cached) $ECHO_C" >&6
29706 else
29707   cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h.  */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h.  */
29713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29715 #define $ac_func innocuous_$ac_func
29716
29717 /* System header to define __stub macros and hopefully few prototypes,
29718     which can conflict with char $ac_func (); below.
29719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29720     <limits.h> exists even on freestanding compilers.  */
29721
29722 #ifdef __STDC__
29723 # include <limits.h>
29724 #else
29725 # include <assert.h>
29726 #endif
29727
29728 #undef $ac_func
29729
29730 /* Override any GCC internal prototype to avoid an error.
29731    Use char because int might match the return type of a GCC
29732    builtin and then its argument prototype would still apply.  */
29733 #ifdef __cplusplus
29734 extern "C"
29735 #endif
29736 char $ac_func ();
29737 /* The GNU C library defines this for functions which it implements
29738     to always fail with ENOSYS.  Some functions are actually named
29739     something starting with __ and the normal name is an alias.  */
29740 #if defined __stub_$ac_func || defined __stub___$ac_func
29741 choke me
29742 #endif
29743
29744 int
29745 main ()
29746 {
29747 return $ac_func ();
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756   *) ac_try_echo=$ac_try;;
29757 esac
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759   (eval "$ac_link") 2>conftest.er1
29760   ac_status=$?
29761   grep -v '^ *+' conftest.er1 >conftest.err
29762   rm -f conftest.er1
29763   cat conftest.err >&5
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); } && {
29766          test -z "$ac_c_werror_flag" ||
29767          test ! -s conftest.err
29768        } && test -s conftest$ac_exeext &&
29769        $as_test_x conftest$ac_exeext; then
29770   eval "$as_ac_var=yes"
29771 else
29772   echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29774
29775         eval "$as_ac_var=no"
29776 fi
29777
29778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779       conftest$ac_exeext conftest.$ac_ext
29780 fi
29781 ac_res=`eval echo '${'$as_ac_var'}'`
29782                { echo "$as_me:$LINENO: result: $ac_res" >&5
29783 echo "${ECHO_T}$ac_res" >&6; }
29784 if test `eval echo '${'$as_ac_var'}'` = yes; then
29785   cat >>confdefs.h <<_ACEOF
29786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29787 _ACEOF
29788
29789 fi
29790 done
29791
29792             fi
29793         fi
29794
29795         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29796         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29797
29798         AFMINSTALL=afminstall
29799         TOOLKIT=GTK
29800         GUIDIST=GTK_DIST
29801
29802                 if test "$wxUSE_GPE" = "yes"; then
29803             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29804 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29805
29806   ac_find_libraries=
29807   for ac_dir in $SEARCH_LIB;
29808   do
29809     for ac_extension in a so sl dylib dll.a; do
29810       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29811         ac_find_libraries=$ac_dir
29812         break 2
29813       fi
29814     done
29815   done
29816
29817             if test "$ac_find_libraries" != "" ; then
29818
29819     if test "$ac_find_libraries" = "default location"; then
29820     ac_path_to_link=""
29821   else
29822     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29823     result=$?
29824     if test $result = 0; then
29825       ac_path_to_link=""
29826     else
29827       ac_path_to_link=" -L$ac_find_libraries"
29828     fi
29829   fi
29830
29831                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29832                 WXGPE=1
29833                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29834 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29835             else
29836                 { echo "$as_me:$LINENO: result: not found" >&5
29837 echo "${ECHO_T}not found" >&6; }
29838             fi
29839
29840                                                                                                                     fi
29841     fi
29842
29843     if test "$wxUSE_MGL" = 1; then
29844        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29845 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29846         if test "x$MGL_ROOT" = x ; then
29847             { echo "$as_me:$LINENO: result: not found" >&5
29848 echo "${ECHO_T}not found" >&6; }
29849             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29850 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29851    { (exit 1); exit 1; }; }
29852         else
29853             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29854 echo "${ECHO_T}$MGL_ROOT" >&6; }
29855         fi
29856
29857         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29858 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29859                                 case "${host}" in
29860             *-*-linux* )
29861                                           if test "x$wxUSE_SHARED" = xyes ; then
29862                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29863               else
29864                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29865               fi
29866               ;;
29867             *-pc-msdosdjgpp )
29868               mgl_os_candidates="dos32/dj2"
29869               ;;
29870             *)
29871               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29872 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29873    { (exit 1); exit 1; }; }
29874         esac
29875
29876         mgl_lib_type=""
29877         mgl_os=""
29878
29879         for mgl_os_i in $mgl_os_candidates ; do
29880             if test "x$mgl_os" = x ; then
29881                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29882                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29883                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29884                         mgl_lib_type=debug
29885                         mgl_os=$mgl_os_i
29886                     fi
29887                 fi
29888                 if test "x$mgl_lib_type" = x ; then
29889                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29890                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29891                         mgl_lib_type=release
29892                         mgl_os=$mgl_os_i
29893                     fi
29894                 fi
29895             fi
29896         done
29897
29898         if test "x$mgl_os" = x ; then
29899             { echo "$as_me:$LINENO: result: not found" >&5
29900 echo "${ECHO_T}not found" >&6; }
29901             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29902 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29903    { (exit 1); exit 1; }; }
29904         fi
29905         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29906 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29907
29908         wxUSE_UNIVERSAL="yes"
29909
29910         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29911         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29912
29913         AFMINSTALL=afminstall
29914         TOOLKIT=MGL
29915         GUIDIST=MGL_DIST
29916     fi
29917
29918     if test "$wxUSE_DFB" = 1; then
29919
29920
29921 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29922         if test -n "$ac_tool_prefix"; then
29923   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29924 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29928   echo $ECHO_N "(cached) $ECHO_C" >&6
29929 else
29930   case $PKG_CONFIG in
29931   [\\/]* | ?:[\\/]*)
29932   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29933   ;;
29934   *)
29935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29936 for as_dir in $PATH
29937 do
29938   IFS=$as_save_IFS
29939   test -z "$as_dir" && as_dir=.
29940   for ac_exec_ext in '' $ac_executable_extensions; do
29941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29942     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29944     break 2
29945   fi
29946 done
29947 done
29948 IFS=$as_save_IFS
29949
29950   ;;
29951 esac
29952 fi
29953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29954 if test -n "$PKG_CONFIG"; then
29955   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29956 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29957 else
29958   { echo "$as_me:$LINENO: result: no" >&5
29959 echo "${ECHO_T}no" >&6; }
29960 fi
29961
29962
29963 fi
29964 if test -z "$ac_cv_path_PKG_CONFIG"; then
29965   ac_pt_PKG_CONFIG=$PKG_CONFIG
29966   # Extract the first word of "pkg-config", so it can be a program name with args.
29967 set dummy pkg-config; ac_word=$2
29968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29970 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29971   echo $ECHO_N "(cached) $ECHO_C" >&6
29972 else
29973   case $ac_pt_PKG_CONFIG in
29974   [\\/]* | ?:[\\/]*)
29975   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29976   ;;
29977   *)
29978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29979 for as_dir in $PATH
29980 do
29981   IFS=$as_save_IFS
29982   test -z "$as_dir" && as_dir=.
29983   for ac_exec_ext in '' $ac_executable_extensions; do
29984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29985     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29987     break 2
29988   fi
29989 done
29990 done
29991 IFS=$as_save_IFS
29992
29993   ;;
29994 esac
29995 fi
29996 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29997 if test -n "$ac_pt_PKG_CONFIG"; then
29998   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29999 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30000 else
30001   { echo "$as_me:$LINENO: result: no" >&5
30002 echo "${ECHO_T}no" >&6; }
30003 fi
30004
30005   if test "x$ac_pt_PKG_CONFIG" = x; then
30006     PKG_CONFIG=""
30007   else
30008     case $cross_compiling:$ac_tool_warned in
30009 yes:)
30010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30011 whose name does not start with the host triplet.  If you think this
30012 configuration is useful to you, please write to autoconf@gnu.org." >&5
30013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30014 whose name does not start with the host triplet.  If you think this
30015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30016 ac_tool_warned=yes ;;
30017 esac
30018     PKG_CONFIG=$ac_pt_PKG_CONFIG
30019   fi
30020 else
30021   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30022 fi
30023
30024 fi
30025 if test -n "$PKG_CONFIG"; then
30026         _pkg_min_version=0.9.0
30027         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30028 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30029         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30030                 { echo "$as_me:$LINENO: result: yes" >&5
30031 echo "${ECHO_T}yes" >&6; }
30032         else
30033                 { echo "$as_me:$LINENO: result: no" >&5
30034 echo "${ECHO_T}no" >&6; }
30035                 PKG_CONFIG=""
30036         fi
30037
30038 fi
30039
30040
30041 pkg_failed=no
30042 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30043 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
30044
30045 if test -n "$PKG_CONFIG"; then
30046     if test -n "$DIRECTFB_CFLAGS"; then
30047         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30048     else
30049         if test -n "$PKG_CONFIG" && \
30050     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30051   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30052   ac_status=$?
30053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054   (exit $ac_status); }; then
30055   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
30056 else
30057   pkg_failed=yes
30058 fi
30059     fi
30060 else
30061         pkg_failed=untried
30062 fi
30063 if test -n "$PKG_CONFIG"; then
30064     if test -n "$DIRECTFB_LIBS"; then
30065         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30066     else
30067         if test -n "$PKG_CONFIG" && \
30068     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30069   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30070   ac_status=$?
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); }; then
30073   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
30074 else
30075   pkg_failed=yes
30076 fi
30077     fi
30078 else
30079         pkg_failed=untried
30080 fi
30081
30082
30083
30084 if test $pkg_failed = yes; then
30085
30086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30087         _pkg_short_errors_supported=yes
30088 else
30089         _pkg_short_errors_supported=no
30090 fi
30091         if test $_pkg_short_errors_supported = yes; then
30092                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30093         else
30094                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30095         fi
30096         # Put the nasty error message in config.log where it belongs
30097         echo "$DIRECTFB_PKG_ERRORS" >&5
30098
30099
30100                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30101 echo "$as_me: error: DirectFB not found." >&2;}
30102    { (exit 1); exit 1; }; }
30103
30104
30105 elif test $pkg_failed = untried; then
30106
30107                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30108 echo "$as_me: error: DirectFB not found." >&2;}
30109    { (exit 1); exit 1; }; }
30110
30111
30112 else
30113         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30114         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30115         { echo "$as_me:$LINENO: result: yes" >&5
30116 echo "${ECHO_T}yes" >&6; }
30117
30118                            wxUSE_UNIVERSAL="yes"
30119                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30120                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30121                            TOOLKIT=DFB
30122                            GUIDIST=DFB_DIST
30123
30124 fi
30125     fi
30126
30127     if test "$wxUSE_MICROWIN" = 1; then
30128         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30129 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30130         if test "x$MICROWINDOWS" = x ; then
30131             { echo "$as_me:$LINENO: result: not found" >&5
30132 echo "${ECHO_T}not found" >&6; }
30133             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30134 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30135    { (exit 1); exit 1; }; }
30136         else
30137             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30138 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30139         fi
30140
30141         if test -f $MICROWINDOWS/lib/libmwin.a; then
30142             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30143 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30144         else
30145             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30146 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30147    { (exit 1); exit 1; }; }
30148         fi
30149
30150         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30151         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30152
30153         wxUSE_UNIVERSAL="yes"
30154
30155         AFMINSTALL=afminstall
30156         TOOLKIT=MICROWIN
30157         GUIDIST=MICROWIN_DIST
30158
30159         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30160     fi
30161
30162         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30163                                 { echo "$as_me:$LINENO: checking for X" >&5
30164 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30165
30166
30167 # Check whether --with-x was given.
30168 if test "${with_x+set}" = set; then
30169   withval=$with_x;
30170 fi
30171
30172 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30173 if test "x$with_x" = xno; then
30174   # The user explicitly disabled X.
30175   have_x=disabled
30176 else
30177   case $x_includes,$x_libraries in #(
30178     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30179 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30180    { (exit 1); exit 1; }; };; #(
30181     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30182   echo $ECHO_N "(cached) $ECHO_C" >&6
30183 else
30184   # One or both of the vars are not set, and there is no cached value.
30185 ac_x_includes=no ac_x_libraries=no
30186 rm -f -r conftest.dir
30187 if mkdir conftest.dir; then
30188   cd conftest.dir
30189   cat >Imakefile <<'_ACEOF'
30190 incroot:
30191         @echo incroot='${INCROOT}'
30192 usrlibdir:
30193         @echo usrlibdir='${USRLIBDIR}'
30194 libdir:
30195         @echo libdir='${LIBDIR}'
30196 _ACEOF
30197   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30198     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30199     for ac_var in incroot usrlibdir libdir; do
30200       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30201     done
30202     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30203     for ac_extension in a so sl; do
30204       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30205          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30206         ac_im_usrlibdir=$ac_im_libdir; break
30207       fi
30208     done
30209     # Screen out bogus values from the imake configuration.  They are
30210     # bogus both because they are the default anyway, and because
30211     # using them would break gcc on systems where it needs fixed includes.
30212     case $ac_im_incroot in
30213         /usr/include) ac_x_includes= ;;
30214         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30215     esac
30216     case $ac_im_usrlibdir in
30217         /usr/lib | /lib) ;;
30218         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30219     esac
30220   fi
30221   cd ..
30222   rm -f -r conftest.dir
30223 fi
30224
30225 # Standard set of common directories for X headers.
30226 # Check X11 before X11Rn because it is often a symlink to the current release.
30227 ac_x_header_dirs='
30228 /usr/X11/include
30229 /usr/X11R6/include
30230 /usr/X11R5/include
30231 /usr/X11R4/include
30232
30233 /usr/include/X11
30234 /usr/include/X11R6
30235 /usr/include/X11R5
30236 /usr/include/X11R4
30237
30238 /usr/local/X11/include
30239 /usr/local/X11R6/include
30240 /usr/local/X11R5/include
30241 /usr/local/X11R4/include
30242
30243 /usr/local/include/X11
30244 /usr/local/include/X11R6
30245 /usr/local/include/X11R5
30246 /usr/local/include/X11R4
30247
30248 /usr/X386/include
30249 /usr/x386/include
30250 /usr/XFree86/include/X11
30251
30252 /usr/include
30253 /usr/local/include
30254 /usr/unsupported/include
30255 /usr/athena/include
30256 /usr/local/x11r5/include
30257 /usr/lpp/Xamples/include
30258
30259 /usr/openwin/include
30260 /usr/openwin/share/include'
30261
30262 if test "$ac_x_includes" = no; then
30263   # Guess where to find include files, by looking for Xlib.h.
30264   # First, try using that file with no special directory specified.
30265   cat >conftest.$ac_ext <<_ACEOF
30266 /* confdefs.h.  */
30267 _ACEOF
30268 cat confdefs.h >>conftest.$ac_ext
30269 cat >>conftest.$ac_ext <<_ACEOF
30270 /* end confdefs.h.  */
30271 #include <X11/Xlib.h>
30272 _ACEOF
30273 if { (ac_try="$ac_cpp conftest.$ac_ext"
30274 case "(($ac_try" in
30275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276   *) ac_try_echo=$ac_try;;
30277 esac
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30280   ac_status=$?
30281   grep -v '^ *+' conftest.er1 >conftest.err
30282   rm -f conftest.er1
30283   cat conftest.err >&5
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); } >/dev/null && {
30286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30287          test ! -s conftest.err
30288        }; then
30289   # We can compile using X headers with no special include directory.
30290 ac_x_includes=
30291 else
30292   echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295   for ac_dir in $ac_x_header_dirs; do
30296   if test -r "$ac_dir/X11/Xlib.h"; then
30297     ac_x_includes=$ac_dir
30298     break
30299   fi
30300 done
30301 fi
30302
30303 rm -f conftest.err conftest.$ac_ext
30304 fi # $ac_x_includes = no
30305
30306 if test "$ac_x_libraries" = no; then
30307   # Check for the libraries.
30308   # See if we find them without any special options.
30309   # Don't add to $LIBS permanently.
30310   ac_save_LIBS=$LIBS
30311   LIBS="-lX11 $LIBS"
30312   cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318 #include <X11/Xlib.h>
30319 int
30320 main ()
30321 {
30322 XrmInitialize ()
30323   ;
30324   return 0;
30325 }
30326 _ACEOF
30327 rm -f conftest.$ac_objext conftest$ac_exeext
30328 if { (ac_try="$ac_link"
30329 case "(($ac_try" in
30330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30331   *) ac_try_echo=$ac_try;;
30332 esac
30333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30334   (eval "$ac_link") 2>conftest.er1
30335   ac_status=$?
30336   grep -v '^ *+' conftest.er1 >conftest.err
30337   rm -f conftest.er1
30338   cat conftest.err >&5
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); } && {
30341          test -z "$ac_c_werror_flag" ||
30342          test ! -s conftest.err
30343        } && test -s conftest$ac_exeext &&
30344        $as_test_x conftest$ac_exeext; then
30345   LIBS=$ac_save_LIBS
30346 # We can link X programs with no special library path.
30347 ac_x_libraries=
30348 else
30349   echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30351
30352         LIBS=$ac_save_LIBS
30353 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30354 do
30355   # Don't even attempt the hair of trying to link an X program!
30356   for ac_extension in a so sl; do
30357     if test -r "$ac_dir/libX11.$ac_extension"; then
30358       ac_x_libraries=$ac_dir
30359       break 2
30360     fi
30361   done
30362 done
30363 fi
30364
30365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30366       conftest$ac_exeext conftest.$ac_ext
30367 fi # $ac_x_libraries = no
30368
30369 case $ac_x_includes,$ac_x_libraries in #(
30370   no,* | *,no | *\'*)
30371     # Didn't find X, or a directory has "'" in its name.
30372     ac_cv_have_x="have_x=no";; #(
30373   *)
30374     # Record where we found X for the cache.
30375     ac_cv_have_x="have_x=yes\
30376         ac_x_includes='$ac_x_includes'\
30377         ac_x_libraries='$ac_x_libraries'"
30378 esac
30379 fi
30380 ;; #(
30381     *) have_x=yes;;
30382   esac
30383   eval "$ac_cv_have_x"
30384 fi # $with_x != no
30385
30386 if test "$have_x" != yes; then
30387   { echo "$as_me:$LINENO: result: $have_x" >&5
30388 echo "${ECHO_T}$have_x" >&6; }
30389   no_x=yes
30390 else
30391   # If each of the values was on the command line, it overrides each guess.
30392   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30393   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30394   # Update the cache value to reflect the command line values.
30395   ac_cv_have_x="have_x=yes\
30396         ac_x_includes='$x_includes'\
30397         ac_x_libraries='$x_libraries'"
30398   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30399 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30400 fi
30401
30402 if test "$no_x" = yes; then
30403   # Not all programs may use this symbol, but it does not hurt to define it.
30404
30405 cat >>confdefs.h <<\_ACEOF
30406 #define X_DISPLAY_MISSING 1
30407 _ACEOF
30408
30409   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30410 else
30411   if test -n "$x_includes"; then
30412     X_CFLAGS="$X_CFLAGS -I$x_includes"
30413   fi
30414
30415   # It would also be nice to do this for all -L options, not just this one.
30416   if test -n "$x_libraries"; then
30417     X_LIBS="$X_LIBS -L$x_libraries"
30418     # For Solaris; some versions of Sun CC require a space after -R and
30419     # others require no space.  Words are not sufficient . . . .
30420     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30421 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30422     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30423     ac_xsave_c_werror_flag=$ac_c_werror_flag
30424     ac_c_werror_flag=yes
30425     cat >conftest.$ac_ext <<_ACEOF
30426 /* confdefs.h.  */
30427 _ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h.  */
30431
30432 int
30433 main ()
30434 {
30435
30436   ;
30437   return 0;
30438 }
30439 _ACEOF
30440 rm -f conftest.$ac_objext conftest$ac_exeext
30441 if { (ac_try="$ac_link"
30442 case "(($ac_try" in
30443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444   *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447   (eval "$ac_link") 2>conftest.er1
30448   ac_status=$?
30449   grep -v '^ *+' conftest.er1 >conftest.err
30450   rm -f conftest.er1
30451   cat conftest.err >&5
30452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453   (exit $ac_status); } && {
30454          test -z "$ac_c_werror_flag" ||
30455          test ! -s conftest.err
30456        } && test -s conftest$ac_exeext &&
30457        $as_test_x conftest$ac_exeext; then
30458   { echo "$as_me:$LINENO: result: no" >&5
30459 echo "${ECHO_T}no" >&6; }
30460        X_LIBS="$X_LIBS -R$x_libraries"
30461 else
30462   echo "$as_me: failed program was:" >&5
30463 sed 's/^/| /' conftest.$ac_ext >&5
30464
30465         LIBS="$ac_xsave_LIBS -R $x_libraries"
30466        cat >conftest.$ac_ext <<_ACEOF
30467 /* confdefs.h.  */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h.  */
30472
30473 int
30474 main ()
30475 {
30476
30477   ;
30478   return 0;
30479 }
30480 _ACEOF
30481 rm -f conftest.$ac_objext conftest$ac_exeext
30482 if { (ac_try="$ac_link"
30483 case "(($ac_try" in
30484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30485   *) ac_try_echo=$ac_try;;
30486 esac
30487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30488   (eval "$ac_link") 2>conftest.er1
30489   ac_status=$?
30490   grep -v '^ *+' conftest.er1 >conftest.err
30491   rm -f conftest.er1
30492   cat conftest.err >&5
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); } && {
30495          test -z "$ac_c_werror_flag" ||
30496          test ! -s conftest.err
30497        } && test -s conftest$ac_exeext &&
30498        $as_test_x conftest$ac_exeext; then
30499   { echo "$as_me:$LINENO: result: yes" >&5
30500 echo "${ECHO_T}yes" >&6; }
30501           X_LIBS="$X_LIBS -R $x_libraries"
30502 else
30503   echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30505
30506         { echo "$as_me:$LINENO: result: neither works" >&5
30507 echo "${ECHO_T}neither works" >&6; }
30508 fi
30509
30510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30511       conftest$ac_exeext conftest.$ac_ext
30512 fi
30513
30514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30515       conftest$ac_exeext conftest.$ac_ext
30516     ac_c_werror_flag=$ac_xsave_c_werror_flag
30517     LIBS=$ac_xsave_LIBS
30518   fi
30519
30520   # Check for system-dependent libraries X programs must link with.
30521   # Do this before checking for the system-independent R6 libraries
30522   # (-lICE), since we may need -lsocket or whatever for X linking.
30523
30524   if test "$ISC" = yes; then
30525     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30526   else
30527     # Martyn Johnson says this is needed for Ultrix, if the X
30528     # libraries were built with DECnet support.  And Karl Berry says
30529     # the Alpha needs dnet_stub (dnet does not exist).
30530     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30531     cat >conftest.$ac_ext <<_ACEOF
30532 /* confdefs.h.  */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h.  */
30537
30538 /* Override any GCC internal prototype to avoid an error.
30539    Use char because int might match the return type of a GCC
30540    builtin and then its argument prototype would still apply.  */
30541 #ifdef __cplusplus
30542 extern "C"
30543 #endif
30544 char XOpenDisplay ();
30545 int
30546 main ()
30547 {
30548 return XOpenDisplay ();
30549   ;
30550   return 0;
30551 }
30552 _ACEOF
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (ac_try="$ac_link"
30555 case "(($ac_try" in
30556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557   *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560   (eval "$ac_link") 2>conftest.er1
30561   ac_status=$?
30562   grep -v '^ *+' conftest.er1 >conftest.err
30563   rm -f conftest.er1
30564   cat conftest.err >&5
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); } && {
30567          test -z "$ac_c_werror_flag" ||
30568          test ! -s conftest.err
30569        } && test -s conftest$ac_exeext &&
30570        $as_test_x conftest$ac_exeext; then
30571   :
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30579   echo $ECHO_N "(cached) $ECHO_C" >&6
30580 else
30581   ac_check_lib_save_LIBS=$LIBS
30582 LIBS="-ldnet  $LIBS"
30583 cat >conftest.$ac_ext <<_ACEOF
30584 /* confdefs.h.  */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h.  */
30589
30590 /* Override any GCC internal prototype to avoid an error.
30591    Use char because int might match the return type of a GCC
30592    builtin and then its argument prototype would still apply.  */
30593 #ifdef __cplusplus
30594 extern "C"
30595 #endif
30596 char dnet_ntoa ();
30597 int
30598 main ()
30599 {
30600 return dnet_ntoa ();
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext conftest$ac_exeext
30606 if { (ac_try="$ac_link"
30607 case "(($ac_try" in
30608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609   *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612   (eval "$ac_link") 2>conftest.er1
30613   ac_status=$?
30614   grep -v '^ *+' conftest.er1 >conftest.err
30615   rm -f conftest.er1
30616   cat conftest.err >&5
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); } && {
30619          test -z "$ac_c_werror_flag" ||
30620          test ! -s conftest.err
30621        } && test -s conftest$ac_exeext &&
30622        $as_test_x conftest$ac_exeext; then
30623   ac_cv_lib_dnet_dnet_ntoa=yes
30624 else
30625   echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628         ac_cv_lib_dnet_dnet_ntoa=no
30629 fi
30630
30631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30632       conftest$ac_exeext conftest.$ac_ext
30633 LIBS=$ac_check_lib_save_LIBS
30634 fi
30635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30636 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30637 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30638   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30639 fi
30640
30641     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30642       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30643 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30644 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30645   echo $ECHO_N "(cached) $ECHO_C" >&6
30646 else
30647   ac_check_lib_save_LIBS=$LIBS
30648 LIBS="-ldnet_stub  $LIBS"
30649 cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h.  */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h.  */
30655
30656 /* Override any GCC internal prototype to avoid an error.
30657    Use char because int might match the return type of a GCC
30658    builtin and then its argument prototype would still apply.  */
30659 #ifdef __cplusplus
30660 extern "C"
30661 #endif
30662 char dnet_ntoa ();
30663 int
30664 main ()
30665 {
30666 return dnet_ntoa ();
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_lib_dnet_stub_dnet_ntoa=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694         ac_cv_lib_dnet_stub_dnet_ntoa=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 LIBS=$ac_check_lib_save_LIBS
30700 fi
30701 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30702 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30703 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30704   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30705 fi
30706
30707     fi
30708 fi
30709
30710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30711       conftest$ac_exeext conftest.$ac_ext
30712     LIBS="$ac_xsave_LIBS"
30713
30714     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30715     # to get the SysV transport functions.
30716     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30717     # needs -lnsl.
30718     # The nsl library prevents programs from opening the X display
30719     # on Irix 5.2, according to T.E. Dickey.
30720     # The functions gethostbyname, getservbyname, and inet_addr are
30721     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30722     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30723 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30724 if test "${ac_cv_func_gethostbyname+set}" = set; then
30725   echo $ECHO_N "(cached) $ECHO_C" >&6
30726 else
30727   cat >conftest.$ac_ext <<_ACEOF
30728 /* confdefs.h.  */
30729 _ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h.  */
30733 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30735 #define gethostbyname innocuous_gethostbyname
30736
30737 /* System header to define __stub macros and hopefully few prototypes,
30738     which can conflict with char gethostbyname (); below.
30739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30740     <limits.h> exists even on freestanding compilers.  */
30741
30742 #ifdef __STDC__
30743 # include <limits.h>
30744 #else
30745 # include <assert.h>
30746 #endif
30747
30748 #undef gethostbyname
30749
30750 /* Override any GCC internal prototype to avoid an error.
30751    Use char because int might match the return type of a GCC
30752    builtin and then its argument prototype would still apply.  */
30753 #ifdef __cplusplus
30754 extern "C"
30755 #endif
30756 char gethostbyname ();
30757 /* The GNU C library defines this for functions which it implements
30758     to always fail with ENOSYS.  Some functions are actually named
30759     something starting with __ and the normal name is an alias.  */
30760 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30761 choke me
30762 #endif
30763
30764 int
30765 main ()
30766 {
30767 return gethostbyname ();
30768   ;
30769   return 0;
30770 }
30771 _ACEOF
30772 rm -f conftest.$ac_objext conftest$ac_exeext
30773 if { (ac_try="$ac_link"
30774 case "(($ac_try" in
30775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776   *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779   (eval "$ac_link") 2>conftest.er1
30780   ac_status=$?
30781   grep -v '^ *+' conftest.er1 >conftest.err
30782   rm -f conftest.er1
30783   cat conftest.err >&5
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); } && {
30786          test -z "$ac_c_werror_flag" ||
30787          test ! -s conftest.err
30788        } && test -s conftest$ac_exeext &&
30789        $as_test_x conftest$ac_exeext; then
30790   ac_cv_func_gethostbyname=yes
30791 else
30792   echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30794
30795         ac_cv_func_gethostbyname=no
30796 fi
30797
30798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30799       conftest$ac_exeext conftest.$ac_ext
30800 fi
30801 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30802 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30803
30804     if test $ac_cv_func_gethostbyname = no; then
30805       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30808   echo $ECHO_N "(cached) $ECHO_C" >&6
30809 else
30810   ac_check_lib_save_LIBS=$LIBS
30811 LIBS="-lnsl  $LIBS"
30812 cat >conftest.$ac_ext <<_ACEOF
30813 /* confdefs.h.  */
30814 _ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h.  */
30818
30819 /* Override any GCC internal prototype to avoid an error.
30820    Use char because int might match the return type of a GCC
30821    builtin and then its argument prototype would still apply.  */
30822 #ifdef __cplusplus
30823 extern "C"
30824 #endif
30825 char gethostbyname ();
30826 int
30827 main ()
30828 {
30829 return gethostbyname ();
30830   ;
30831   return 0;
30832 }
30833 _ACEOF
30834 rm -f conftest.$ac_objext conftest$ac_exeext
30835 if { (ac_try="$ac_link"
30836 case "(($ac_try" in
30837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838   *) ac_try_echo=$ac_try;;
30839 esac
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841   (eval "$ac_link") 2>conftest.er1
30842   ac_status=$?
30843   grep -v '^ *+' conftest.er1 >conftest.err
30844   rm -f conftest.er1
30845   cat conftest.err >&5
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); } && {
30848          test -z "$ac_c_werror_flag" ||
30849          test ! -s conftest.err
30850        } && test -s conftest$ac_exeext &&
30851        $as_test_x conftest$ac_exeext; then
30852   ac_cv_lib_nsl_gethostbyname=yes
30853 else
30854   echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30856
30857         ac_cv_lib_nsl_gethostbyname=no
30858 fi
30859
30860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30861       conftest$ac_exeext conftest.$ac_ext
30862 LIBS=$ac_check_lib_save_LIBS
30863 fi
30864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30868 fi
30869
30870       if test $ac_cv_lib_nsl_gethostbyname = no; then
30871         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876   ac_check_lib_save_LIBS=$LIBS
30877 LIBS="-lbsd  $LIBS"
30878 cat >conftest.$ac_ext <<_ACEOF
30879 /* confdefs.h.  */
30880 _ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h.  */
30884
30885 /* Override any GCC internal prototype to avoid an error.
30886    Use char because int might match the return type of a GCC
30887    builtin and then its argument prototype would still apply.  */
30888 #ifdef __cplusplus
30889 extern "C"
30890 #endif
30891 char gethostbyname ();
30892 int
30893 main ()
30894 {
30895 return gethostbyname ();
30896   ;
30897   return 0;
30898 }
30899 _ACEOF
30900 rm -f conftest.$ac_objext conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_link") 2>conftest.er1
30908   ac_status=$?
30909   grep -v '^ *+' conftest.er1 >conftest.err
30910   rm -f conftest.er1
30911   cat conftest.err >&5
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); } && {
30914          test -z "$ac_c_werror_flag" ||
30915          test ! -s conftest.err
30916        } && test -s conftest$ac_exeext &&
30917        $as_test_x conftest$ac_exeext; then
30918   ac_cv_lib_bsd_gethostbyname=yes
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923         ac_cv_lib_bsd_gethostbyname=no
30924 fi
30925
30926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30927       conftest$ac_exeext conftest.$ac_ext
30928 LIBS=$ac_check_lib_save_LIBS
30929 fi
30930 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30931 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30932 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30933   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30934 fi
30935
30936       fi
30937     fi
30938
30939     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30940     # socket/setsockopt and other routines are undefined under SCO ODT
30941     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30942     # on later versions), says Simon Leinen: it contains gethostby*
30943     # variants that don't use the name server (or something).  -lsocket
30944     # must be given before -lnsl if both are needed.  We assume that
30945     # if connect needs -lnsl, so does gethostbyname.
30946     { echo "$as_me:$LINENO: checking for connect" >&5
30947 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30948 if test "${ac_cv_func_connect+set}" = set; then
30949   echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951   cat >conftest.$ac_ext <<_ACEOF
30952 /* confdefs.h.  */
30953 _ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h.  */
30957 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30959 #define connect innocuous_connect
30960
30961 /* System header to define __stub macros and hopefully few prototypes,
30962     which can conflict with char connect (); below.
30963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30964     <limits.h> exists even on freestanding compilers.  */
30965
30966 #ifdef __STDC__
30967 # include <limits.h>
30968 #else
30969 # include <assert.h>
30970 #endif
30971
30972 #undef connect
30973
30974 /* Override any GCC internal prototype to avoid an error.
30975    Use char because int might match the return type of a GCC
30976    builtin and then its argument prototype would still apply.  */
30977 #ifdef __cplusplus
30978 extern "C"
30979 #endif
30980 char connect ();
30981 /* The GNU C library defines this for functions which it implements
30982     to always fail with ENOSYS.  Some functions are actually named
30983     something starting with __ and the normal name is an alias.  */
30984 #if defined __stub_connect || defined __stub___connect
30985 choke me
30986 #endif
30987
30988 int
30989 main ()
30990 {
30991 return connect ();
30992   ;
30993   return 0;
30994 }
30995 _ACEOF
30996 rm -f conftest.$ac_objext conftest$ac_exeext
30997 if { (ac_try="$ac_link"
30998 case "(($ac_try" in
30999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000   *) ac_try_echo=$ac_try;;
31001 esac
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003   (eval "$ac_link") 2>conftest.er1
31004   ac_status=$?
31005   grep -v '^ *+' conftest.er1 >conftest.err
31006   rm -f conftest.er1
31007   cat conftest.err >&5
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); } && {
31010          test -z "$ac_c_werror_flag" ||
31011          test ! -s conftest.err
31012        } && test -s conftest$ac_exeext &&
31013        $as_test_x conftest$ac_exeext; then
31014   ac_cv_func_connect=yes
31015 else
31016   echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31018
31019         ac_cv_func_connect=no
31020 fi
31021
31022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31023       conftest$ac_exeext conftest.$ac_ext
31024 fi
31025 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31026 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
31027
31028     if test $ac_cv_func_connect = no; then
31029       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31030 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
31031 if test "${ac_cv_lib_socket_connect+set}" = set; then
31032   echo $ECHO_N "(cached) $ECHO_C" >&6
31033 else
31034   ac_check_lib_save_LIBS=$LIBS
31035 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31036 cat >conftest.$ac_ext <<_ACEOF
31037 /* confdefs.h.  */
31038 _ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h.  */
31042
31043 /* Override any GCC internal prototype to avoid an error.
31044    Use char because int might match the return type of a GCC
31045    builtin and then its argument prototype would still apply.  */
31046 #ifdef __cplusplus
31047 extern "C"
31048 #endif
31049 char connect ();
31050 int
31051 main ()
31052 {
31053 return connect ();
31054   ;
31055   return 0;
31056 }
31057 _ACEOF
31058 rm -f conftest.$ac_objext conftest$ac_exeext
31059 if { (ac_try="$ac_link"
31060 case "(($ac_try" in
31061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062   *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065   (eval "$ac_link") 2>conftest.er1
31066   ac_status=$?
31067   grep -v '^ *+' conftest.er1 >conftest.err
31068   rm -f conftest.er1
31069   cat conftest.err >&5
31070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071   (exit $ac_status); } && {
31072          test -z "$ac_c_werror_flag" ||
31073          test ! -s conftest.err
31074        } && test -s conftest$ac_exeext &&
31075        $as_test_x conftest$ac_exeext; then
31076   ac_cv_lib_socket_connect=yes
31077 else
31078   echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31080
31081         ac_cv_lib_socket_connect=no
31082 fi
31083
31084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31085       conftest$ac_exeext conftest.$ac_ext
31086 LIBS=$ac_check_lib_save_LIBS
31087 fi
31088 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31089 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
31090 if test $ac_cv_lib_socket_connect = yes; then
31091   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31092 fi
31093
31094     fi
31095
31096     # Guillermo Gomez says -lposix is necessary on A/UX.
31097     { echo "$as_me:$LINENO: checking for remove" >&5
31098 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
31099 if test "${ac_cv_func_remove+set}" = set; then
31100   echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102   cat >conftest.$ac_ext <<_ACEOF
31103 /* confdefs.h.  */
31104 _ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h.  */
31108 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31110 #define remove innocuous_remove
31111
31112 /* System header to define __stub macros and hopefully few prototypes,
31113     which can conflict with char remove (); below.
31114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115     <limits.h> exists even on freestanding compilers.  */
31116
31117 #ifdef __STDC__
31118 # include <limits.h>
31119 #else
31120 # include <assert.h>
31121 #endif
31122
31123 #undef remove
31124
31125 /* Override any GCC internal prototype to avoid an error.
31126    Use char because int might match the return type of a GCC
31127    builtin and then its argument prototype would still apply.  */
31128 #ifdef __cplusplus
31129 extern "C"
31130 #endif
31131 char remove ();
31132 /* The GNU C library defines this for functions which it implements
31133     to always fail with ENOSYS.  Some functions are actually named
31134     something starting with __ and the normal name is an alias.  */
31135 #if defined __stub_remove || defined __stub___remove
31136 choke me
31137 #endif
31138
31139 int
31140 main ()
31141 {
31142 return remove ();
31143   ;
31144   return 0;
31145 }
31146 _ACEOF
31147 rm -f conftest.$ac_objext conftest$ac_exeext
31148 if { (ac_try="$ac_link"
31149 case "(($ac_try" in
31150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151   *) ac_try_echo=$ac_try;;
31152 esac
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154   (eval "$ac_link") 2>conftest.er1
31155   ac_status=$?
31156   grep -v '^ *+' conftest.er1 >conftest.err
31157   rm -f conftest.er1
31158   cat conftest.err >&5
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); } && {
31161          test -z "$ac_c_werror_flag" ||
31162          test ! -s conftest.err
31163        } && test -s conftest$ac_exeext &&
31164        $as_test_x conftest$ac_exeext; then
31165   ac_cv_func_remove=yes
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170         ac_cv_func_remove=no
31171 fi
31172
31173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31174       conftest$ac_exeext conftest.$ac_ext
31175 fi
31176 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31177 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31178
31179     if test $ac_cv_func_remove = no; then
31180       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31181 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31182 if test "${ac_cv_lib_posix_remove+set}" = set; then
31183   echo $ECHO_N "(cached) $ECHO_C" >&6
31184 else
31185   ac_check_lib_save_LIBS=$LIBS
31186 LIBS="-lposix  $LIBS"
31187 cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193
31194 /* Override any GCC internal prototype to avoid an error.
31195    Use char because int might match the return type of a GCC
31196    builtin and then its argument prototype would still apply.  */
31197 #ifdef __cplusplus
31198 extern "C"
31199 #endif
31200 char remove ();
31201 int
31202 main ()
31203 {
31204 return remove ();
31205   ;
31206   return 0;
31207 }
31208 _ACEOF
31209 rm -f conftest.$ac_objext conftest$ac_exeext
31210 if { (ac_try="$ac_link"
31211 case "(($ac_try" in
31212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213   *) ac_try_echo=$ac_try;;
31214 esac
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216   (eval "$ac_link") 2>conftest.er1
31217   ac_status=$?
31218   grep -v '^ *+' conftest.er1 >conftest.err
31219   rm -f conftest.er1
31220   cat conftest.err >&5
31221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222   (exit $ac_status); } && {
31223          test -z "$ac_c_werror_flag" ||
31224          test ! -s conftest.err
31225        } && test -s conftest$ac_exeext &&
31226        $as_test_x conftest$ac_exeext; then
31227   ac_cv_lib_posix_remove=yes
31228 else
31229   echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232         ac_cv_lib_posix_remove=no
31233 fi
31234
31235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31236       conftest$ac_exeext conftest.$ac_ext
31237 LIBS=$ac_check_lib_save_LIBS
31238 fi
31239 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31241 if test $ac_cv_lib_posix_remove = yes; then
31242   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31243 fi
31244
31245     fi
31246
31247     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31248     { echo "$as_me:$LINENO: checking for shmat" >&5
31249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31250 if test "${ac_cv_func_shmat+set}" = set; then
31251   echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253   cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h.  */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h.  */
31259 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31261 #define shmat innocuous_shmat
31262
31263 /* System header to define __stub macros and hopefully few prototypes,
31264     which can conflict with char shmat (); below.
31265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266     <limits.h> exists even on freestanding compilers.  */
31267
31268 #ifdef __STDC__
31269 # include <limits.h>
31270 #else
31271 # include <assert.h>
31272 #endif
31273
31274 #undef shmat
31275
31276 /* Override any GCC internal prototype to avoid an error.
31277    Use char because int might match the return type of a GCC
31278    builtin and then its argument prototype would still apply.  */
31279 #ifdef __cplusplus
31280 extern "C"
31281 #endif
31282 char shmat ();
31283 /* The GNU C library defines this for functions which it implements
31284     to always fail with ENOSYS.  Some functions are actually named
31285     something starting with __ and the normal name is an alias.  */
31286 #if defined __stub_shmat || defined __stub___shmat
31287 choke me
31288 #endif
31289
31290 int
31291 main ()
31292 {
31293 return shmat ();
31294   ;
31295   return 0;
31296 }
31297 _ACEOF
31298 rm -f conftest.$ac_objext conftest$ac_exeext
31299 if { (ac_try="$ac_link"
31300 case "(($ac_try" in
31301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302   *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305   (eval "$ac_link") 2>conftest.er1
31306   ac_status=$?
31307   grep -v '^ *+' conftest.er1 >conftest.err
31308   rm -f conftest.er1
31309   cat conftest.err >&5
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); } && {
31312          test -z "$ac_c_werror_flag" ||
31313          test ! -s conftest.err
31314        } && test -s conftest$ac_exeext &&
31315        $as_test_x conftest$ac_exeext; then
31316   ac_cv_func_shmat=yes
31317 else
31318   echo "$as_me: failed program was:" >&5
31319 sed 's/^/| /' conftest.$ac_ext >&5
31320
31321         ac_cv_func_shmat=no
31322 fi
31323
31324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31325       conftest$ac_exeext conftest.$ac_ext
31326 fi
31327 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31328 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31329
31330     if test $ac_cv_func_shmat = no; then
31331       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31332 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31333 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31334   echo $ECHO_N "(cached) $ECHO_C" >&6
31335 else
31336   ac_check_lib_save_LIBS=$LIBS
31337 LIBS="-lipc  $LIBS"
31338 cat >conftest.$ac_ext <<_ACEOF
31339 /* confdefs.h.  */
31340 _ACEOF
31341 cat confdefs.h >>conftest.$ac_ext
31342 cat >>conftest.$ac_ext <<_ACEOF
31343 /* end confdefs.h.  */
31344
31345 /* Override any GCC internal prototype to avoid an error.
31346    Use char because int might match the return type of a GCC
31347    builtin and then its argument prototype would still apply.  */
31348 #ifdef __cplusplus
31349 extern "C"
31350 #endif
31351 char shmat ();
31352 int
31353 main ()
31354 {
31355 return shmat ();
31356   ;
31357   return 0;
31358 }
31359 _ACEOF
31360 rm -f conftest.$ac_objext conftest$ac_exeext
31361 if { (ac_try="$ac_link"
31362 case "(($ac_try" in
31363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31364   *) ac_try_echo=$ac_try;;
31365 esac
31366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31367   (eval "$ac_link") 2>conftest.er1
31368   ac_status=$?
31369   grep -v '^ *+' conftest.er1 >conftest.err
31370   rm -f conftest.er1
31371   cat conftest.err >&5
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); } && {
31374          test -z "$ac_c_werror_flag" ||
31375          test ! -s conftest.err
31376        } && test -s conftest$ac_exeext &&
31377        $as_test_x conftest$ac_exeext; then
31378   ac_cv_lib_ipc_shmat=yes
31379 else
31380   echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383         ac_cv_lib_ipc_shmat=no
31384 fi
31385
31386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31387       conftest$ac_exeext conftest.$ac_ext
31388 LIBS=$ac_check_lib_save_LIBS
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31391 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31392 if test $ac_cv_lib_ipc_shmat = yes; then
31393   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31394 fi
31395
31396     fi
31397   fi
31398
31399   # Check for libraries that X11R6 Xt/Xaw programs need.
31400   ac_save_LDFLAGS=$LDFLAGS
31401   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31402   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31403   # check for ICE first), but we must link in the order -lSM -lICE or
31404   # we get undefined symbols.  So assume we have SM if we have ICE.
31405   # These have to be linked with before -lX11, unlike the other
31406   # libraries we check for below, so use a different variable.
31407   # John Interrante, Karl Berry
31408   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31409 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31410 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31411   echo $ECHO_N "(cached) $ECHO_C" >&6
31412 else
31413   ac_check_lib_save_LIBS=$LIBS
31414 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31415 cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h.  */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h.  */
31421
31422 /* Override any GCC internal prototype to avoid an error.
31423    Use char because int might match the return type of a GCC
31424    builtin and then its argument prototype would still apply.  */
31425 #ifdef __cplusplus
31426 extern "C"
31427 #endif
31428 char IceConnectionNumber ();
31429 int
31430 main ()
31431 {
31432 return IceConnectionNumber ();
31433   ;
31434   return 0;
31435 }
31436 _ACEOF
31437 rm -f conftest.$ac_objext conftest$ac_exeext
31438 if { (ac_try="$ac_link"
31439 case "(($ac_try" in
31440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441   *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444   (eval "$ac_link") 2>conftest.er1
31445   ac_status=$?
31446   grep -v '^ *+' conftest.er1 >conftest.err
31447   rm -f conftest.er1
31448   cat conftest.err >&5
31449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450   (exit $ac_status); } && {
31451          test -z "$ac_c_werror_flag" ||
31452          test ! -s conftest.err
31453        } && test -s conftest$ac_exeext &&
31454        $as_test_x conftest$ac_exeext; then
31455   ac_cv_lib_ICE_IceConnectionNumber=yes
31456 else
31457   echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31459
31460         ac_cv_lib_ICE_IceConnectionNumber=no
31461 fi
31462
31463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31464       conftest$ac_exeext conftest.$ac_ext
31465 LIBS=$ac_check_lib_save_LIBS
31466 fi
31467 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31468 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31469 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31470   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31471 fi
31472
31473   LDFLAGS=$ac_save_LDFLAGS
31474
31475 fi
31476
31477
31478         if test "$no_x" = "yes"; then
31479           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31480 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31481    { (exit 1); exit 1; }; }
31482         fi
31483
31484                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31485         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31486         AFMINSTALL=afminstall
31487         COMPILED_X_PROGRAM=0
31488
31489     fi
31490
31491     if test "$wxUSE_X11" = 1; then
31492         if test "$wxUSE_NANOX" = "yes"; then
31493             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31494 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31495             if test "x$MICROWIN" = x ; then
31496                 { echo "$as_me:$LINENO: result: not found" >&5
31497 echo "${ECHO_T}not found" >&6; }
31498                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31499 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31500    { (exit 1); exit 1; }; }
31501             else
31502                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31503 echo "${ECHO_T}$MICROWIN" >&6; }
31504                 cat >>confdefs.h <<\_ACEOF
31505 #define wxUSE_NANOX 1
31506 _ACEOF
31507
31508             fi
31509         fi
31510
31511         if test "$wxUSE_UNICODE" = "yes"; then
31512
31513
31514 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31515         if test -n "$ac_tool_prefix"; then
31516   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31521   echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523   case $PKG_CONFIG in
31524   [\\/]* | ?:[\\/]*)
31525   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31526   ;;
31527   *)
31528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31529 for as_dir in $PATH
31530 do
31531   IFS=$as_save_IFS
31532   test -z "$as_dir" && as_dir=.
31533   for ac_exec_ext in '' $ac_executable_extensions; do
31534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31535     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31537     break 2
31538   fi
31539 done
31540 done
31541 IFS=$as_save_IFS
31542
31543   ;;
31544 esac
31545 fi
31546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31547 if test -n "$PKG_CONFIG"; then
31548   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31549 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31550 else
31551   { echo "$as_me:$LINENO: result: no" >&5
31552 echo "${ECHO_T}no" >&6; }
31553 fi
31554
31555
31556 fi
31557 if test -z "$ac_cv_path_PKG_CONFIG"; then
31558   ac_pt_PKG_CONFIG=$PKG_CONFIG
31559   # Extract the first word of "pkg-config", so it can be a program name with args.
31560 set dummy pkg-config; ac_word=$2
31561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31563 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31564   echo $ECHO_N "(cached) $ECHO_C" >&6
31565 else
31566   case $ac_pt_PKG_CONFIG in
31567   [\\/]* | ?:[\\/]*)
31568   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31569   ;;
31570   *)
31571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31572 for as_dir in $PATH
31573 do
31574   IFS=$as_save_IFS
31575   test -z "$as_dir" && as_dir=.
31576   for ac_exec_ext in '' $ac_executable_extensions; do
31577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31578     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31580     break 2
31581   fi
31582 done
31583 done
31584 IFS=$as_save_IFS
31585
31586   ;;
31587 esac
31588 fi
31589 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31590 if test -n "$ac_pt_PKG_CONFIG"; then
31591   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31592 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31593 else
31594   { echo "$as_me:$LINENO: result: no" >&5
31595 echo "${ECHO_T}no" >&6; }
31596 fi
31597
31598   if test "x$ac_pt_PKG_CONFIG" = x; then
31599     PKG_CONFIG=""
31600   else
31601     case $cross_compiling:$ac_tool_warned in
31602 yes:)
31603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31604 whose name does not start with the host triplet.  If you think this
31605 configuration is useful to you, please write to autoconf@gnu.org." >&5
31606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31607 whose name does not start with the host triplet.  If you think this
31608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31609 ac_tool_warned=yes ;;
31610 esac
31611     PKG_CONFIG=$ac_pt_PKG_CONFIG
31612   fi
31613 else
31614   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31615 fi
31616
31617 fi
31618 if test -n "$PKG_CONFIG"; then
31619         _pkg_min_version=0.9.0
31620         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31621 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31622         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31623                 { echo "$as_me:$LINENO: result: yes" >&5
31624 echo "${ECHO_T}yes" >&6; }
31625         else
31626                 { echo "$as_me:$LINENO: result: no" >&5
31627 echo "${ECHO_T}no" >&6; }
31628                 PKG_CONFIG=""
31629         fi
31630
31631 fi
31632
31633
31634 pkg_failed=no
31635 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31636 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31637
31638 if test -n "$PKG_CONFIG"; then
31639     if test -n "$PANGOX_CFLAGS"; then
31640         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31641     else
31642         if test -n "$PKG_CONFIG" && \
31643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31644   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31645   ac_status=$?
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); }; then
31648   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31649 else
31650   pkg_failed=yes
31651 fi
31652     fi
31653 else
31654         pkg_failed=untried
31655 fi
31656 if test -n "$PKG_CONFIG"; then
31657     if test -n "$PANGOX_LIBS"; then
31658         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31659     else
31660         if test -n "$PKG_CONFIG" && \
31661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31662   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; then
31666   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31667 else
31668   pkg_failed=yes
31669 fi
31670     fi
31671 else
31672         pkg_failed=untried
31673 fi
31674
31675
31676
31677 if test $pkg_failed = yes; then
31678
31679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31680         _pkg_short_errors_supported=yes
31681 else
31682         _pkg_short_errors_supported=no
31683 fi
31684         if test $_pkg_short_errors_supported = yes; then
31685                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31686         else
31687                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31688         fi
31689         # Put the nasty error message in config.log where it belongs
31690         echo "$PANGOX_PKG_ERRORS" >&5
31691
31692
31693                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31694 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31695    { (exit 1); exit 1; }; }
31696
31697
31698 elif test $pkg_failed = untried; then
31699
31700                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31701 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31702    { (exit 1); exit 1; }; }
31703
31704
31705 else
31706         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31707         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31708         { echo "$as_me:$LINENO: result: yes" >&5
31709 echo "${ECHO_T}yes" >&6; }
31710
31711                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31712                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31713                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31714
31715 fi
31716
31717 pkg_failed=no
31718 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31719 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31720
31721 if test -n "$PKG_CONFIG"; then
31722     if test -n "$PANGOFT2_CFLAGS"; then
31723         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31724     else
31725         if test -n "$PKG_CONFIG" && \
31726     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31727   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31728   ac_status=$?
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); }; then
31731   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31732 else
31733   pkg_failed=yes
31734 fi
31735     fi
31736 else
31737         pkg_failed=untried
31738 fi
31739 if test -n "$PKG_CONFIG"; then
31740     if test -n "$PANGOFT2_LIBS"; then
31741         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31742     else
31743         if test -n "$PKG_CONFIG" && \
31744     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31745   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; then
31749   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31750 else
31751   pkg_failed=yes
31752 fi
31753     fi
31754 else
31755         pkg_failed=untried
31756 fi
31757
31758
31759
31760 if test $pkg_failed = yes; then
31761
31762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31763         _pkg_short_errors_supported=yes
31764 else
31765         _pkg_short_errors_supported=no
31766 fi
31767         if test $_pkg_short_errors_supported = yes; then
31768                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31769         else
31770                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31771         fi
31772         # Put the nasty error message in config.log where it belongs
31773         echo "$PANGOFT2_PKG_ERRORS" >&5
31774
31775
31776                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31777 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31778                     wxUSE_PRINTING_ARCHITECTURE="no"
31779
31780
31781 elif test $pkg_failed = untried; then
31782
31783                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31784 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31785                     wxUSE_PRINTING_ARCHITECTURE="no"
31786
31787
31788 else
31789         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31790         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31791         { echo "$as_me:$LINENO: result: yes" >&5
31792 echo "${ECHO_T}yes" >&6; }
31793
31794                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31795                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31796                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31797
31798 fi
31799
31800 pkg_failed=no
31801 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31802 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31803
31804 if test -n "$PKG_CONFIG"; then
31805     if test -n "$PANGOXFT_CFLAGS"; then
31806         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31807     else
31808         if test -n "$PKG_CONFIG" && \
31809     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31810   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31811   ac_status=$?
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); }; then
31814   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31815 else
31816   pkg_failed=yes
31817 fi
31818     fi
31819 else
31820         pkg_failed=untried
31821 fi
31822 if test -n "$PKG_CONFIG"; then
31823     if test -n "$PANGOXFT_LIBS"; then
31824         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31825     else
31826         if test -n "$PKG_CONFIG" && \
31827     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31828   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31829   ac_status=$?
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); }; then
31832   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31833 else
31834   pkg_failed=yes
31835 fi
31836     fi
31837 else
31838         pkg_failed=untried
31839 fi
31840
31841
31842
31843 if test $pkg_failed = yes; then
31844
31845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31846         _pkg_short_errors_supported=yes
31847 else
31848         _pkg_short_errors_supported=no
31849 fi
31850         if test $_pkg_short_errors_supported = yes; then
31851                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31852         else
31853                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31854         fi
31855         # Put the nasty error message in config.log where it belongs
31856         echo "$PANGOXFT_PKG_ERRORS" >&5
31857
31858
31859                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31860 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31861
31862
31863 elif test $pkg_failed = untried; then
31864
31865                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31866 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31867
31868
31869 else
31870         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31871         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31872         { echo "$as_me:$LINENO: result: yes" >&5
31873 echo "${ECHO_T}yes" >&6; }
31874
31875                     cat >>confdefs.h <<\_ACEOF
31876 #define HAVE_PANGO_XFT 1
31877 _ACEOF
31878
31879                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31880                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31881                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31882
31883 fi
31884             save_LIBS="$LIBS"
31885             LIBS="$LIBS $PANGOX_LIBS"
31886
31887 for ac_func in pango_font_family_is_monospace
31888 do
31889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31893   echo $ECHO_N "(cached) $ECHO_C" >&6
31894 else
31895   cat >conftest.$ac_ext <<_ACEOF
31896 /* confdefs.h.  */
31897 _ACEOF
31898 cat confdefs.h >>conftest.$ac_ext
31899 cat >>conftest.$ac_ext <<_ACEOF
31900 /* end confdefs.h.  */
31901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31903 #define $ac_func innocuous_$ac_func
31904
31905 /* System header to define __stub macros and hopefully few prototypes,
31906     which can conflict with char $ac_func (); below.
31907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31908     <limits.h> exists even on freestanding compilers.  */
31909
31910 #ifdef __STDC__
31911 # include <limits.h>
31912 #else
31913 # include <assert.h>
31914 #endif
31915
31916 #undef $ac_func
31917
31918 /* Override any GCC internal prototype to avoid an error.
31919    Use char because int might match the return type of a GCC
31920    builtin and then its argument prototype would still apply.  */
31921 #ifdef __cplusplus
31922 extern "C"
31923 #endif
31924 char $ac_func ();
31925 /* The GNU C library defines this for functions which it implements
31926     to always fail with ENOSYS.  Some functions are actually named
31927     something starting with __ and the normal name is an alias.  */
31928 #if defined __stub_$ac_func || defined __stub___$ac_func
31929 choke me
31930 #endif
31931
31932 int
31933 main ()
31934 {
31935 return $ac_func ();
31936   ;
31937   return 0;
31938 }
31939 _ACEOF
31940 rm -f conftest.$ac_objext conftest$ac_exeext
31941 if { (ac_try="$ac_link"
31942 case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947   (eval "$ac_link") 2>conftest.er1
31948   ac_status=$?
31949   grep -v '^ *+' conftest.er1 >conftest.err
31950   rm -f conftest.er1
31951   cat conftest.err >&5
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); } && {
31954          test -z "$ac_c_werror_flag" ||
31955          test ! -s conftest.err
31956        } && test -s conftest$ac_exeext &&
31957        $as_test_x conftest$ac_exeext; then
31958   eval "$as_ac_var=yes"
31959 else
31960   echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31962
31963         eval "$as_ac_var=no"
31964 fi
31965
31966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31967       conftest$ac_exeext conftest.$ac_ext
31968 fi
31969 ac_res=`eval echo '${'$as_ac_var'}'`
31970                { echo "$as_me:$LINENO: result: $ac_res" >&5
31971 echo "${ECHO_T}$ac_res" >&6; }
31972 if test `eval echo '${'$as_ac_var'}'` = yes; then
31973   cat >>confdefs.h <<_ACEOF
31974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31975 _ACEOF
31976
31977 fi
31978 done
31979
31980             LIBS="$save_LIBS"
31981         fi
31982
31983         wxUSE_UNIVERSAL="yes"
31984
31985         if test "$wxUSE_NANOX" = "yes"; then
31986             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31987             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"
31988             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31989         else
31990             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31991         fi
31992
31993         TOOLKIT=X11
31994         GUIDIST=X11_DIST
31995     fi
31996
31997     if test "$wxUSE_MOTIF" = 1; then
31998         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31999 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
32000
32001 ac_find_includes=
32002 for ac_dir in $SEARCH_INCLUDE /usr/include;
32003   do
32004     if test -f "$ac_dir/Xm/Xm.h"; then
32005       ac_find_includes=$ac_dir
32006       break
32007     fi
32008   done
32009
32010         if test "$ac_find_includes" != "" ; then
32011             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32012 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32013
32014     if test "x$ac_find_includes" = "x/usr/include"; then
32015     ac_path_to_include=""
32016   else
32017     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32018     result=$?
32019     if test $result = 0; then
32020       ac_path_to_include=""
32021     else
32022       ac_path_to_include=" -I$ac_find_includes"
32023     fi
32024   fi
32025
32026             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32027         else
32028             save_CFLAGS=$CFLAGS
32029             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
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
32052 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
32068
32069                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32070 echo "${ECHO_T}found in default search path" >&6; }
32071                     COMPILED_X_PROGRAM=1
32072
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077
32078                     { echo "$as_me:$LINENO: result: no" >&5
32079 echo "${ECHO_T}no" >&6; }
32080                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32081 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
32082    { (exit 1); exit 1; }; }
32083
32084
32085 fi
32086
32087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32088
32089             CFLAGS=$save_CFLAGS
32090         fi
32091
32092
32093         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32094 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
32095
32096   ac_find_libraries=
32097   for ac_dir in $SEARCH_LIB;
32098   do
32099     for ac_extension in a so sl dylib dll.a; do
32100       if test -f "$ac_dir/libXm.$ac_extension"; then
32101         ac_find_libraries=$ac_dir
32102         break 2
32103       fi
32104     done
32105   done
32106
32107
32108         if test "x$ac_find_libraries" != "x" ; then
32109             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32110 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32111
32112
32113     if test "$ac_find_libraries" = "default location"; then
32114     ac_path_to_link=""
32115   else
32116     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32117     result=$?
32118     if test $result = 0; then
32119       ac_path_to_link=""
32120     else
32121       ac_path_to_link=" -L$ac_find_libraries"
32122     fi
32123   fi
32124
32125             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32126         else
32127                                                 save_CFLAGS=$CFLAGS
32128             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32129             save_LIBS="$LIBS"
32130             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32131
32132             cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138
32139                     #include <Xm/Xm.h>
32140
32141 int
32142 main ()
32143 {
32144
32145                     int version;
32146                     version = xmUseVersion;
32147
32148   ;
32149   return 0;
32150 }
32151 _ACEOF
32152 rm -f conftest.$ac_objext conftest$ac_exeext
32153 if { (ac_try="$ac_link"
32154 case "(($ac_try" in
32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156   *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159   (eval "$ac_link") 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } && {
32166          test -z "$ac_c_werror_flag" ||
32167          test ! -s conftest.err
32168        } && test -s conftest$ac_exeext &&
32169        $as_test_x conftest$ac_exeext; then
32170
32171                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32172 echo "${ECHO_T}found in default search path" >&6; }
32173                     COMPILED_X_PROGRAM=1
32174
32175 else
32176   echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179
32180                     { echo "$as_me:$LINENO: result: no" >&5
32181 echo "${ECHO_T}no" >&6; }
32182                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32183 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32184    { (exit 1); exit 1; }; }
32185
32186
32187 fi
32188
32189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32190       conftest$ac_exeext conftest.$ac_ext
32191
32192             CFLAGS=$save_CFLAGS
32193             LIBS="$save_LIBS"
32194         fi
32195
32196         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32197 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32198         libp_link=""
32199         libsm_ice_link=""
32200         libs_found=0
32201         for libp in "" " -lXp"; do
32202             if test "$libs_found" = 0; then
32203                 for libsm_ice in "" " -lSM -lICE"; do
32204                     if test "$libs_found" = 0; then
32205                         save_LIBS="$LIBS"
32206                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32207                         save_CFLAGS=$CFLAGS
32208                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32209
32210                         cat >conftest.$ac_ext <<_ACEOF
32211 /* confdefs.h.  */
32212 _ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h.  */
32216
32217                                 #include <Xm/Xm.h>
32218                                 #include <Xm/List.h>
32219
32220 int
32221 main ()
32222 {
32223
32224                                 XmString string = NULL;
32225                                 Widget w = NULL;
32226                                 int position = 0;
32227                                 XmListAddItem(w, string, position);
32228
32229   ;
32230   return 0;
32231 }
32232 _ACEOF
32233 rm -f conftest.$ac_objext conftest$ac_exeext
32234 if { (ac_try="$ac_link"
32235 case "(($ac_try" in
32236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237   *) ac_try_echo=$ac_try;;
32238 esac
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240   (eval "$ac_link") 2>conftest.er1
32241   ac_status=$?
32242   grep -v '^ *+' conftest.er1 >conftest.err
32243   rm -f conftest.er1
32244   cat conftest.err >&5
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); } && {
32247          test -z "$ac_c_werror_flag" ||
32248          test ! -s conftest.err
32249        } && test -s conftest$ac_exeext &&
32250        $as_test_x conftest$ac_exeext; then
32251
32252                                 libp_link="$libp"
32253                                 libsm_ice_link="$libsm_ice"
32254                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32255 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32256                                 libs_found=1
32257
32258 else
32259   echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32261
32262
32263
32264 fi
32265
32266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32267       conftest$ac_exeext conftest.$ac_ext
32268
32269                         LIBS="$save_LIBS"
32270                         CFLAGS=$save_CFLAGS
32271                     fi
32272                 done
32273             fi
32274         done
32275
32276         if test "$libs_found" = 0; then
32277             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32278 echo "${ECHO_T}can't find the right libraries" >&6; }
32279             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32280 echo "$as_me: error: can't link a simple motif program" >&2;}
32281    { (exit 1); exit 1; }; }
32282         fi
32283
32284                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32285 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32286 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32287   echo $ECHO_N "(cached) $ECHO_C" >&6
32288 else
32289   ac_check_lib_save_LIBS=$LIBS
32290 LIBS="-lSgm  $LIBS"
32291 cat >conftest.$ac_ext <<_ACEOF
32292 /* confdefs.h.  */
32293 _ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h.  */
32297
32298 /* Override any GCC internal prototype to avoid an error.
32299    Use char because int might match the return type of a GCC
32300    builtin and then its argument prototype would still apply.  */
32301 #ifdef __cplusplus
32302 extern "C"
32303 #endif
32304 char SgCreateList ();
32305 int
32306 main ()
32307 {
32308 return SgCreateList ();
32309   ;
32310   return 0;
32311 }
32312 _ACEOF
32313 rm -f conftest.$ac_objext conftest$ac_exeext
32314 if { (ac_try="$ac_link"
32315 case "(($ac_try" in
32316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317   *) ac_try_echo=$ac_try;;
32318 esac
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320   (eval "$ac_link") 2>conftest.er1
32321   ac_status=$?
32322   grep -v '^ *+' conftest.er1 >conftest.err
32323   rm -f conftest.er1
32324   cat conftest.err >&5
32325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326   (exit $ac_status); } && {
32327          test -z "$ac_c_werror_flag" ||
32328          test ! -s conftest.err
32329        } && test -s conftest$ac_exeext &&
32330        $as_test_x conftest$ac_exeext; then
32331   ac_cv_lib_Sgm_SgCreateList=yes
32332 else
32333   echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32335
32336         ac_cv_lib_Sgm_SgCreateList=no
32337 fi
32338
32339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32340       conftest$ac_exeext conftest.$ac_ext
32341 LIBS=$ac_check_lib_save_LIBS
32342 fi
32343 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32344 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32345 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32346   libsgm_link=" -lSgm"
32347 fi
32348
32349
32350         save_CFLAGS=$CFLAGS
32351         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32352
32353         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32354 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32355 if test "${wx_cv_lib_motif2+set}" = set; then
32356   echo $ECHO_N "(cached) $ECHO_C" >&6
32357 else
32358   cat >conftest.$ac_ext <<_ACEOF
32359 /* confdefs.h.  */
32360 _ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h.  */
32364
32365                             #include <Xm/Xm.h>
32366
32367 int
32368 main ()
32369 {
32370
32371                             #if XmVersion < 2000
32372                             Not Motif 2
32373                             #endif
32374
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_compile") 2>conftest.er1
32387   ac_status=$?
32388   grep -v '^ *+' conftest.er1 >conftest.err
32389   rm -f conftest.er1
32390   cat conftest.err >&5
32391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); } && {
32393          test -z "$ac_c_werror_flag" ||
32394          test ! -s conftest.err
32395        } && test -s conftest.$ac_objext; then
32396   wx_cv_lib_motif2="yes"
32397 else
32398   echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32400
32401         wx_cv_lib_motif2="no"
32402 fi
32403
32404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32405 fi
32406 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32407 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32408         if test "$wx_cv_lib_motif2" = "yes"; then
32409             cat >>confdefs.h <<\_ACEOF
32410 #define __WXMOTIF20__ 1
32411 _ACEOF
32412
32413         else
32414             cat >>confdefs.h <<\_ACEOF
32415 #define __WXMOTIF20__ 0
32416 _ACEOF
32417
32418         fi
32419
32420         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32421 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32422 if test "${wx_cv_lib_lesstif+set}" = set; then
32423   echo $ECHO_N "(cached) $ECHO_C" >&6
32424 else
32425   cat >conftest.$ac_ext <<_ACEOF
32426 /* confdefs.h.  */
32427 _ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h.  */
32431
32432                             #include <Xm/Xm.h>
32433
32434 int
32435 main ()
32436 {
32437
32438                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32439                             Not Lesstif
32440                             #endif
32441
32442   ;
32443   return 0;
32444 }
32445 _ACEOF
32446 rm -f conftest.$ac_objext
32447 if { (ac_try="$ac_compile"
32448 case "(($ac_try" in
32449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450   *) ac_try_echo=$ac_try;;
32451 esac
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453   (eval "$ac_compile") 2>conftest.er1
32454   ac_status=$?
32455   grep -v '^ *+' conftest.er1 >conftest.err
32456   rm -f conftest.er1
32457   cat conftest.err >&5
32458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459   (exit $ac_status); } && {
32460          test -z "$ac_c_werror_flag" ||
32461          test ! -s conftest.err
32462        } && test -s conftest.$ac_objext; then
32463   wx_cv_lib_lesstif="yes"
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468         wx_cv_lib_lesstif="no"
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472
32473 fi
32474 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32475 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32476         if test "$wx_cv_lib_lesstif" = "yes"; then
32477             cat >>confdefs.h <<\_ACEOF
32478 #define __WXLESSTIF__ 1
32479 _ACEOF
32480
32481         else
32482             cat >>confdefs.h <<\_ACEOF
32483 #define __WXLESSTIF__ 0
32484 _ACEOF
32485
32486         fi
32487
32488         CFLAGS=$save_CFLAGS
32489
32490         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32491         TOOLKIT=MOTIF
32492         GUIDIST=MOTIF_DIST
32493     fi
32494
32495         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32496                 if test "$wxUSE_LIBXPM" = "sys"; then
32497             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32498 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32499
32500   ac_find_libraries=
32501   for ac_dir in $SEARCH_LIB;
32502   do
32503     for ac_extension in a so sl dylib dll.a; do
32504       if test -f "$ac_dir/libXpm.$ac_extension"; then
32505         ac_find_libraries=$ac_dir
32506         break 2
32507       fi
32508     done
32509   done
32510
32511             if test "$ac_find_libraries" != "" ; then
32512
32513     if test "$ac_find_libraries" = "default location"; then
32514     ac_path_to_link=""
32515   else
32516     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32517     result=$?
32518     if test $result = 0; then
32519       ac_path_to_link=""
32520     else
32521       ac_path_to_link=" -L$ac_find_libraries"
32522     fi
32523   fi
32524
32525                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32526                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32527 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32528
32529                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32530 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32531 if test "${wx_cv_x11_xpm_h+set}" = set; then
32532   echo $ECHO_N "(cached) $ECHO_C" >&6
32533 else
32534
32535                         save_CFLAGS=$CFLAGS
32536                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32537
32538                         cat >conftest.$ac_ext <<_ACEOF
32539 /* confdefs.h.  */
32540 _ACEOF
32541 cat confdefs.h >>conftest.$ac_ext
32542 cat >>conftest.$ac_ext <<_ACEOF
32543 /* end confdefs.h.  */
32544
32545                                 #include <X11/xpm.h>
32546
32547 int
32548 main ()
32549 {
32550
32551                                 int version;
32552                                 version = XpmLibraryVersion();
32553
32554   ;
32555   return 0;
32556 }
32557 _ACEOF
32558 rm -f conftest.$ac_objext
32559 if { (ac_try="$ac_compile"
32560 case "(($ac_try" in
32561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32562   *) ac_try_echo=$ac_try;;
32563 esac
32564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32565   (eval "$ac_compile") 2>conftest.er1
32566   ac_status=$?
32567   grep -v '^ *+' conftest.er1 >conftest.err
32568   rm -f conftest.er1
32569   cat conftest.err >&5
32570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571   (exit $ac_status); } && {
32572          test -z "$ac_c_werror_flag" ||
32573          test ! -s conftest.err
32574        } && test -s conftest.$ac_objext; then
32575   wx_cv_x11_xpm_h=yes
32576 else
32577   echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32579
32580         wx_cv_x11_xpm_h=no
32581
32582 fi
32583
32584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32585
32586                         CFLAGS=$save_CFLAGS
32587
32588
32589 fi
32590 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32591 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32592
32593                 if test $wx_cv_x11_xpm_h = "yes"; then
32594                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32595                     cat >>confdefs.h <<\_ACEOF
32596 #define wxHAVE_LIB_XPM 1
32597 _ACEOF
32598
32599                 else
32600                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32601 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32602                 fi
32603             fi
32604
32605         fi
32606
32607                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32608 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32609 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32610   echo $ECHO_N "(cached) $ECHO_C" >&6
32611 else
32612   ac_check_lib_save_LIBS=$LIBS
32613 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32614 cat >conftest.$ac_ext <<_ACEOF
32615 /* confdefs.h.  */
32616 _ACEOF
32617 cat confdefs.h >>conftest.$ac_ext
32618 cat >>conftest.$ac_ext <<_ACEOF
32619 /* end confdefs.h.  */
32620
32621 /* Override any GCC internal prototype to avoid an error.
32622    Use char because int might match the return type of a GCC
32623    builtin and then its argument prototype would still apply.  */
32624 #ifdef __cplusplus
32625 extern "C"
32626 #endif
32627 char XShapeQueryExtension ();
32628 int
32629 main ()
32630 {
32631 return XShapeQueryExtension ();
32632   ;
32633   return 0;
32634 }
32635 _ACEOF
32636 rm -f conftest.$ac_objext conftest$ac_exeext
32637 if { (ac_try="$ac_link"
32638 case "(($ac_try" in
32639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32640   *) ac_try_echo=$ac_try;;
32641 esac
32642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32643   (eval "$ac_link") 2>conftest.er1
32644   ac_status=$?
32645   grep -v '^ *+' conftest.er1 >conftest.err
32646   rm -f conftest.er1
32647   cat conftest.err >&5
32648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649   (exit $ac_status); } && {
32650          test -z "$ac_c_werror_flag" ||
32651          test ! -s conftest.err
32652        } && test -s conftest$ac_exeext &&
32653        $as_test_x conftest$ac_exeext; then
32654   ac_cv_lib_Xext_XShapeQueryExtension=yes
32655 else
32656   echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32658
32659         ac_cv_lib_Xext_XShapeQueryExtension=no
32660 fi
32661
32662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32663       conftest$ac_exeext conftest.$ac_ext
32664 LIBS=$ac_check_lib_save_LIBS
32665 fi
32666 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32667 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32668 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32669
32670                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32671                       wxHAVE_XEXT_LIB=1
32672
32673 fi
32674
32675
32676         if test "$wxHAVE_XEXT_LIB" = 1; then
32677             save_CFLAGS="$CFLAGS"
32678             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32679
32680             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32681 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32682             cat >conftest.$ac_ext <<_ACEOF
32683 /* confdefs.h.  */
32684 _ACEOF
32685 cat confdefs.h >>conftest.$ac_ext
32686 cat >>conftest.$ac_ext <<_ACEOF
32687 /* end confdefs.h.  */
32688
32689                             #include <X11/Xlib.h>
32690                             #include <X11/extensions/shape.h>
32691
32692 int
32693 main ()
32694 {
32695
32696                             int dummy1, dummy2;
32697                             XShapeQueryExtension((Display*)NULL,
32698                                                  (int*)NULL, (int*)NULL);
32699
32700   ;
32701   return 0;
32702 }
32703 _ACEOF
32704 rm -f conftest.$ac_objext
32705 if { (ac_try="$ac_compile"
32706 case "(($ac_try" in
32707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708   *) ac_try_echo=$ac_try;;
32709 esac
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711   (eval "$ac_compile") 2>conftest.er1
32712   ac_status=$?
32713   grep -v '^ *+' conftest.er1 >conftest.err
32714   rm -f conftest.er1
32715   cat conftest.err >&5
32716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717   (exit $ac_status); } && {
32718          test -z "$ac_c_werror_flag" ||
32719          test ! -s conftest.err
32720        } && test -s conftest.$ac_objext; then
32721
32722                             cat >>confdefs.h <<\_ACEOF
32723 #define HAVE_XSHAPE 1
32724 _ACEOF
32725
32726                             { echo "$as_me:$LINENO: result: found" >&5
32727 echo "${ECHO_T}found" >&6; }
32728
32729 else
32730   echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32732
32733
32734                             { echo "$as_me:$LINENO: result: not found" >&5
32735 echo "${ECHO_T}not found" >&6; }
32736
32737 fi
32738
32739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32740             CFLAGS="$save_CFLAGS"
32741
32742         fi
32743     fi
32744
32745     if test "$wxUSE_OSX_CARBON" = 1; then
32746         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32747 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32748         if test "$GCC" = yes; then
32749             { echo "$as_me:$LINENO: result: gcc" >&5
32750 echo "${ECHO_T}gcc" >&6; }
32751             CPPFLAGS_PASCAL="-fpascal-strings"
32752         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32753             { echo "$as_me:$LINENO: result: xlc" >&5
32754 echo "${ECHO_T}xlc" >&6; }
32755             CPPFLAGS_PASCAL="-qmacpstr"
32756         else
32757             { echo "$as_me:$LINENO: result: none" >&5
32758 echo "${ECHO_T}none" >&6; }
32759         fi
32760
32761         if test "x$wxUSE_UNIX" = "xyes"; then
32762             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32763         else
32764                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32765         fi
32766
32767         TOOLKIT=OSX_CARBON
32768                 GUIDIST=OSX_CARBON_DIST
32769                         WXBASEPORT="_carbon"
32770     fi
32771
32772     if test "$wxUSE_OSX_COCOA" = 1; then
32773         TOOLKIT=OSX_COCOA
32774         GUIDIST=OSX_COCOA_DIST
32775     fi
32776
32777     if test "$wxUSE_COCOA" = 1; then
32778         TOOLKIT=COCOA
32779         GUIDIST=COCOA_DIST
32780     fi
32781
32782     if test "$wxUSE_PM" = 1; then
32783         TOOLKIT=PM
32784         GUIDIST=PM_DIST
32785         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32786 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32787 if test "${wx_cv_spbcdata+set}" = set; then
32788   echo $ECHO_N "(cached) $ECHO_C" >&6
32789 else
32790
32791                 cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797
32798                         #define INCL_PM
32799                         #include <os2.h>
32800
32801 int
32802 main ()
32803 {
32804
32805                         SPBCDATA test;
32806
32807   ;
32808   return 0;
32809 }
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   wx_cv_spbcdata=yes
32829 else
32830   echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32832
32833         wx_cv_spbcdata=no
32834
32835 fi
32836
32837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32838
32839
32840 fi
32841 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32842 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32843
32844         if test $wx_cv_spbcdata = "yes"; then
32845             cat >>confdefs.h <<\_ACEOF
32846 #define HAVE_SPBCDATA 1
32847 _ACEOF
32848
32849         fi
32850     fi
32851
32852         if test "$TOOLKIT" = "PM" ; then
32853         TOOLKIT_DIR="os2"
32854     else
32855         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32856     fi
32857
32858     if test "$wxUSE_UNIVERSAL" = "yes"; then
32859         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32860         WIDGET_SET=univ
32861     fi
32862
32863         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32864     DISTDIR="wx\$(TOOLKIT)"
32865 else
32866     USE_GUI=0
32867
32868             TOOLKIT_DIR="base"
32869
32870         if test "$USE_WIN32" = 1 ; then
32871                         TOOLKIT="MSW"
32872     fi
32873
32874         GUIDIST="BASE_DIST"
32875     DISTDIR="wxBase"
32876 fi
32877
32878
32879
32880 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32881     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32882         wxUSE_UNICODE_UTF8=yes
32883     elif test "$USE_OS2" = 1 ; then
32884                                 wxUSE_UNICODE_UTF8=yes
32885     else
32886         wxUSE_UNICODE_UTF8=no
32887     fi
32888 fi
32889
32890
32891 if test "$wxUSE_GUI" = "yes"; then
32892     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32893
32894 for ac_header in X11/Xlib.h
32895 do
32896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32900   echo $ECHO_N "(cached) $ECHO_C" >&6
32901 else
32902   cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908
32909
32910 #include <$ac_header>
32911 _ACEOF
32912 rm -f conftest.$ac_objext
32913 if { (ac_try="$ac_compile"
32914 case "(($ac_try" in
32915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916   *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919   (eval "$ac_compile") 2>conftest.er1
32920   ac_status=$?
32921   grep -v '^ *+' conftest.er1 >conftest.err
32922   rm -f conftest.er1
32923   cat conftest.err >&5
32924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925   (exit $ac_status); } && {
32926          test -z "$ac_c_werror_flag" ||
32927          test ! -s conftest.err
32928        } && test -s conftest.$ac_objext; then
32929   eval "$as_ac_Header=yes"
32930 else
32931   echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32933
32934         eval "$as_ac_Header=no"
32935 fi
32936
32937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32938 fi
32939 ac_res=`eval echo '${'$as_ac_Header'}'`
32940                { echo "$as_me:$LINENO: result: $ac_res" >&5
32941 echo "${ECHO_T}$ac_res" >&6; }
32942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32943   cat >>confdefs.h <<_ACEOF
32944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32945 _ACEOF
32946
32947 fi
32948
32949 done
32950
32951
32952 for ac_header in X11/XKBlib.h
32953 do
32954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32958   echo $ECHO_N "(cached) $ECHO_C" >&6
32959 else
32960   cat >conftest.$ac_ext <<_ACEOF
32961 /* confdefs.h.  */
32962 _ACEOF
32963 cat confdefs.h >>conftest.$ac_ext
32964 cat >>conftest.$ac_ext <<_ACEOF
32965 /* end confdefs.h.  */
32966
32967                           #if HAVE_X11_XLIB_H
32968                             #include <X11/Xlib.h>
32969                           #endif
32970
32971
32972 #include <$ac_header>
32973 _ACEOF
32974 rm -f conftest.$ac_objext
32975 if { (ac_try="$ac_compile"
32976 case "(($ac_try" in
32977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978   *) ac_try_echo=$ac_try;;
32979 esac
32980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981   (eval "$ac_compile") 2>conftest.er1
32982   ac_status=$?
32983   grep -v '^ *+' conftest.er1 >conftest.err
32984   rm -f conftest.er1
32985   cat conftest.err >&5
32986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987   (exit $ac_status); } && {
32988          test -z "$ac_c_werror_flag" ||
32989          test ! -s conftest.err
32990        } && test -s conftest.$ac_objext; then
32991   eval "$as_ac_Header=yes"
32992 else
32993   echo "$as_me: failed program was:" >&5
32994 sed 's/^/| /' conftest.$ac_ext >&5
32995
32996         eval "$as_ac_Header=no"
32997 fi
32998
32999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33000 fi
33001 ac_res=`eval echo '${'$as_ac_Header'}'`
33002                { echo "$as_me:$LINENO: result: $ac_res" >&5
33003 echo "${ECHO_T}$ac_res" >&6; }
33004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005   cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33007 _ACEOF
33008
33009 fi
33010
33011 done
33012
33013     fi
33014 fi
33015
33016
33017
33018 if test "$wxUSE_DISPLAY" = "yes"; then
33019     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33020         { echo "$as_me:$LINENO: checking for Xinerama" >&5
33021 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
33022
33023   ac_find_libraries=
33024   for ac_dir in $SEARCH_LIB;
33025   do
33026     for ac_extension in a so sl dylib dll.a; do
33027       if test -f "$ac_dir/libXinerama.$ac_extension"; then
33028         ac_find_libraries=$ac_dir
33029         break 2
33030       fi
33031     done
33032   done
33033
33034         if test "$ac_find_libraries" != "" ; then
33035
33036     if test "$ac_find_libraries" = "default location"; then
33037     ac_path_to_link=""
33038   else
33039     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33040     result=$?
33041     if test $result = 0; then
33042       ac_path_to_link=""
33043     else
33044       ac_path_to_link=" -L$ac_find_libraries"
33045     fi
33046   fi
33047
33048             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33049                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33050             fi
33051             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33052             { echo "$as_me:$LINENO: result: yes" >&5
33053 echo "${ECHO_T}yes" >&6; }
33054
33055             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33056 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
33057
33058   ac_find_libraries=
33059   for ac_dir in $SEARCH_LIB;
33060   do
33061     for ac_extension in a so sl dylib dll.a; do
33062       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33063         ac_find_libraries=$ac_dir
33064         break 2
33065       fi
33066     done
33067   done
33068
33069             if test "$ac_find_libraries" != "" ; then
33070                 { echo "$as_me:$LINENO: result: yes" >&5
33071 echo "${ECHO_T}yes" >&6; }
33072
33073 for ac_header in X11/extensions/xf86vmode.h
33074 do
33075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33079   echo $ECHO_N "(cached) $ECHO_C" >&6
33080 else
33081   cat >conftest.$ac_ext <<_ACEOF
33082 /* confdefs.h.  */
33083 _ACEOF
33084 cat confdefs.h >>conftest.$ac_ext
33085 cat >>conftest.$ac_ext <<_ACEOF
33086 /* end confdefs.h.  */
33087
33088                                       #if HAVE_X11_XLIB_H
33089                                         #include <X11/Xlib.h>
33090                                       #endif
33091
33092
33093 #include <$ac_header>
33094 _ACEOF
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099   *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102   (eval "$ac_compile") 2>conftest.er1
33103   ac_status=$?
33104   grep -v '^ *+' conftest.er1 >conftest.err
33105   rm -f conftest.er1
33106   cat conftest.err >&5
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); } && {
33109          test -z "$ac_c_werror_flag" ||
33110          test ! -s conftest.err
33111        } && test -s conftest.$ac_objext; then
33112   eval "$as_ac_Header=yes"
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117         eval "$as_ac_Header=no"
33118 fi
33119
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33121 fi
33122 ac_res=`eval echo '${'$as_ac_Header'}'`
33123                { echo "$as_me:$LINENO: result: $ac_res" >&5
33124 echo "${ECHO_T}$ac_res" >&6; }
33125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33126   cat >>confdefs.h <<_ACEOF
33127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33128 _ACEOF
33129
33130                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33131
33132 fi
33133
33134 done
33135
33136             else
33137                 { echo "$as_me:$LINENO: result: no" >&5
33138 echo "${ECHO_T}no" >&6; }
33139             fi
33140
33141         else
33142             { echo "$as_me:$LINENO: result: no" >&5
33143 echo "${ECHO_T}no" >&6; }
33144             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33145 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33146             wxUSE_DISPLAY="no"
33147         fi
33148     elif test "$wxUSE_MSW" = 1; then
33149         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33150 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33151 if test "${ac_cv_header_ddraw_h+set}" = set; then
33152   echo $ECHO_N "(cached) $ECHO_C" >&6
33153 else
33154   cat >conftest.$ac_ext <<_ACEOF
33155 /* confdefs.h.  */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h.  */
33160 #include <windows.h>
33161
33162 #include <ddraw.h>
33163 _ACEOF
33164 rm -f conftest.$ac_objext
33165 if { (ac_try="$ac_compile"
33166 case "(($ac_try" in
33167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33168   *) ac_try_echo=$ac_try;;
33169 esac
33170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33171   (eval "$ac_compile") 2>conftest.er1
33172   ac_status=$?
33173   grep -v '^ *+' conftest.er1 >conftest.err
33174   rm -f conftest.er1
33175   cat conftest.err >&5
33176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177   (exit $ac_status); } && {
33178          test -z "$ac_c_werror_flag" ||
33179          test ! -s conftest.err
33180        } && test -s conftest.$ac_objext; then
33181   ac_cv_header_ddraw_h=yes
33182 else
33183   echo "$as_me: failed program was:" >&5
33184 sed 's/^/| /' conftest.$ac_ext >&5
33185
33186         ac_cv_header_ddraw_h=no
33187 fi
33188
33189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33190 fi
33191 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33192 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33193
33194
33195     fi
33196 fi
33197
33198 if test "$wxUSE_DETECT_SM" = "yes"; then
33199     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33200         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33201 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33202
33203   ac_find_libraries=
33204   for ac_dir in $SEARCH_LIB;
33205   do
33206     for ac_extension in a so sl dylib dll.a; do
33207       if test -f "$ac_dir/libSM.$ac_extension"; then
33208         ac_find_libraries=$ac_dir
33209         break 2
33210       fi
33211     done
33212   done
33213
33214         if test "$ac_find_libraries" != "" ; then
33215
33216     if test "$ac_find_libraries" = "default location"; then
33217     ac_path_to_link=""
33218   else
33219     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33220     result=$?
33221     if test $result = 0; then
33222       ac_path_to_link=""
33223     else
33224       ac_path_to_link=" -L$ac_find_libraries"
33225     fi
33226   fi
33227
33228             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33229                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33230             fi
33231             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33232             { echo "$as_me:$LINENO: result: yes" >&5
33233 echo "${ECHO_T}yes" >&6; }
33234         else
33235             { echo "$as_me:$LINENO: result: no" >&5
33236 echo "${ECHO_T}no" >&6; }
33237             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33238 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33239             wxUSE_DETECT_SM="no"
33240         fi
33241     else
33242         wxUSE_DETECT_SM="no"
33243     fi
33244 fi
33245
33246
33247
33248 USE_OPENGL=0
33249 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33250
33251
33252     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33253         OPENGL_LIBS="-framework OpenGL -framework AGL"
33254     elif test "$wxUSE_MSW" = 1; then
33255         OPENGL_LIBS="-lopengl32 -lglu32"
33256     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33257
33258                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33259 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33260
33261 ac_find_includes=
33262 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33263   do
33264     if test -f "$ac_dir/GL/gl.h"; then
33265       ac_find_includes=$ac_dir
33266       break
33267     fi
33268   done
33269
33270         if test "$ac_find_includes" != "" ; then
33271             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33272 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33273
33274     if test "x$ac_find_includes" = "x/usr/include"; then
33275     ac_path_to_include=""
33276   else
33277     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33278     result=$?
33279     if test $result = 0; then
33280       ac_path_to_include=""
33281     else
33282       ac_path_to_include=" -I$ac_find_includes"
33283     fi
33284   fi
33285
33286             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33287         else
33288             { echo "$as_me:$LINENO: result: not found" >&5
33289 echo "${ECHO_T}not found" >&6; }
33290         fi
33291
33292         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33293 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33294 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33295   echo $ECHO_N "(cached) $ECHO_C" >&6
33296 else
33297   cat >conftest.$ac_ext <<_ACEOF
33298 /* confdefs.h.  */
33299 _ACEOF
33300 cat confdefs.h >>conftest.$ac_ext
33301 cat >>conftest.$ac_ext <<_ACEOF
33302 /* end confdefs.h.  */
33303
33304
33305 #include <GL/gl.h>
33306 _ACEOF
33307 rm -f conftest.$ac_objext
33308 if { (ac_try="$ac_compile"
33309 case "(($ac_try" in
33310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311   *) ac_try_echo=$ac_try;;
33312 esac
33313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314   (eval "$ac_compile") 2>conftest.er1
33315   ac_status=$?
33316   grep -v '^ *+' conftest.er1 >conftest.err
33317   rm -f conftest.er1
33318   cat conftest.err >&5
33319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); } && {
33321          test -z "$ac_c_werror_flag" ||
33322          test ! -s conftest.err
33323        } && test -s conftest.$ac_objext; then
33324   ac_cv_header_GL_gl_h=yes
33325 else
33326   echo "$as_me: failed program was:" >&5
33327 sed 's/^/| /' conftest.$ac_ext >&5
33328
33329         ac_cv_header_GL_gl_h=no
33330 fi
33331
33332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333 fi
33334 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33335 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33336 if test $ac_cv_header_GL_gl_h = yes; then
33337
33338             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33339 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33340 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343   cat >conftest.$ac_ext <<_ACEOF
33344 /* confdefs.h.  */
33345 _ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h.  */
33349
33350
33351 #include <GL/glu.h>
33352 _ACEOF
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357   *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360   (eval "$ac_compile") 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && {
33367          test -z "$ac_c_werror_flag" ||
33368          test ! -s conftest.err
33369        } && test -s conftest.$ac_objext; then
33370   ac_cv_header_GL_glu_h=yes
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375         ac_cv_header_GL_glu_h=no
33376 fi
33377
33378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33379 fi
33380 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33381 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33382 if test $ac_cv_header_GL_glu_h = yes; then
33383
33384                 found_gl=0
33385
33386                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33387 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33388
33389   ac_find_libraries=
33390   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33391   do
33392     for ac_extension in a so sl dylib dll.a; do
33393       if test -f "$ac_dir/libGL.$ac_extension"; then
33394         ac_find_libraries=$ac_dir
33395         break 2
33396       fi
33397     done
33398   done
33399
33400                 if test "$ac_find_libraries" != "" ; then
33401                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33402 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33403
33404
33405     if test "$ac_find_libraries" = "default location"; then
33406     ac_path_to_link=""
33407   else
33408     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33409     result=$?
33410     if test $result = 0; then
33411       ac_path_to_link=""
33412     else
33413       ac_path_to_link=" -L$ac_find_libraries"
33414     fi
33415   fi
33416
33417                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33418                         LDFLAGS_GL="$ac_path_to_link"
33419                     fi
33420
33421                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33422 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33423
33424   ac_find_libraries=
33425   for ac_dir in $SEARCH_LIB;
33426   do
33427     for ac_extension in a so sl dylib dll.a; do
33428       if test -f "$ac_dir/libGLU.$ac_extension"; then
33429         ac_find_libraries=$ac_dir
33430         break 2
33431       fi
33432     done
33433   done
33434
33435                     if test "$ac_find_libraries" != "" ; then
33436
33437     if test "$ac_find_libraries" = "default location"; then
33438     ac_path_to_link=""
33439   else
33440     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33441     result=$?
33442     if test $result = 0; then
33443       ac_path_to_link=""
33444     else
33445       ac_path_to_link=" -L$ac_find_libraries"
33446     fi
33447   fi
33448
33449                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33450                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33451                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33452                         fi
33453
33454                         found_gl=1
33455                         OPENGL_LIBS="-lGL -lGLU"
33456                         { echo "$as_me:$LINENO: result: yes" >&5
33457 echo "${ECHO_T}yes" >&6; }
33458                     else
33459                         { echo "$as_me:$LINENO: result: no" >&5
33460 echo "${ECHO_T}no" >&6; }
33461                     fi
33462                 else
33463                     { echo "$as_me:$LINENO: result: no" >&5
33464 echo "${ECHO_T}no" >&6; }
33465                 fi
33466
33467                 if test "$found_gl" != 1; then
33468                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33469 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33470
33471   ac_find_libraries=
33472   for ac_dir in $SEARCH_LIB;
33473   do
33474     for ac_extension in a so sl dylib dll.a; do
33475       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33476         ac_find_libraries=$ac_dir
33477         break 2
33478       fi
33479     done
33480   done
33481
33482                     if test "$ac_find_libraries" != "" ; then
33483
33484     if test "$ac_find_libraries" = "default location"; then
33485     ac_path_to_link=""
33486   else
33487     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33488     result=$?
33489     if test $result = 0; then
33490       ac_path_to_link=""
33491     else
33492       ac_path_to_link=" -L$ac_find_libraries"
33493     fi
33494   fi
33495
33496                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33497                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33498                         { echo "$as_me:$LINENO: result: yes" >&5
33499 echo "${ECHO_T}yes" >&6; }
33500                     else
33501                         { echo "$as_me:$LINENO: result: no" >&5
33502 echo "${ECHO_T}no" >&6; }
33503                     fi
33504                 fi
33505
33506 fi
33507
33508
33509
33510 fi
33511
33512
33513
33514         if test "x$OPENGL_LIBS" = "x"; then
33515             if test "$wxUSE_OPENGL" = "yes"; then
33516                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33517 echo "$as_me: error: OpenGL libraries not available" >&2;}
33518    { (exit 1); exit 1; }; }
33519             else
33520                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33521 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33522                 wxUSE_OPENGL=no
33523                 USE_OPENGL=0
33524             fi
33525         fi
33526     else
33527         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33528 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33529         wxUSE_OPENGL="no"
33530     fi
33531
33532     if test "$wxUSE_OPENGL" = "auto"; then
33533                                 wxUSE_OPENGL=yes
33534     fi
33535
33536     if test "$wxUSE_OPENGL" = "yes"; then
33537         USE_OPENGL=1
33538         cat >>confdefs.h <<\_ACEOF
33539 #define wxUSE_OPENGL 1
33540 _ACEOF
33541
33542         cat >>confdefs.h <<\_ACEOF
33543 #define wxUSE_GLCANVAS 1
33544 _ACEOF
33545
33546         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33547     fi
33548 fi
33549
33550
33551 if test -n "$TOOLKIT" ; then
33552     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33553 fi
33554
33555
33556
33557 if test "$wxUSE_SHARED" = "yes"; then
33558     case "${host}" in
33559       *-pc-msdosdjgpp )
33560                 wxUSE_SHARED=no
33561         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33562 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33563       ;;
33564     esac
33565 fi
33566
33567 if test "$wxUSE_SHARED" = "yes"; then
33568
33569
33570     case "${host}" in
33571         *-*-cygwin* | *-*-mingw* )
33572                                                                                                 wx_cv_version_script=no
33573             ;;
33574
33575         *)
33576             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33577 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33578 if test "${wx_cv_version_script+set}" = set; then
33579   echo $ECHO_N "(cached) $ECHO_C" >&6
33580 else
33581
33582                 echo "VER_1 { *; };" >conftest.sym
33583                 echo "int main() { return 0; }" >conftest.cpp
33584
33585                 if { ac_try='
33586                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33587                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33589   (eval $ac_try) 2>&5
33590   ac_status=$?
33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592   (exit $ac_status); }; } ; then
33593                   if test -s conftest.stderr ; then
33594                       wx_cv_version_script=no
33595                   else
33596                       wx_cv_version_script=yes
33597                   fi
33598                 else
33599                   wx_cv_version_script=no
33600                 fi
33601
33602                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33603                 then
33604                   echo "struct B { virtual ~B() { } }; \
33605                         struct D : public B { }; \
33606                         void F() { D d; }" > conftest.cpp
33607
33608                   if { ac_try='
33609                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33610                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612   (eval $ac_try) 2>&5
33613   ac_status=$?
33614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615   (exit $ac_status); }; } &&
33616                      { ac_try='
33617                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33618                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33620   (eval $ac_try) 2>&5
33621   ac_status=$?
33622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623   (exit $ac_status); }; }
33624                   then
33625                     if { ac_try='
33626                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33627                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629   (eval $ac_try) 2>&5
33630   ac_status=$?
33631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632   (exit $ac_status); }; }
33633                     then
33634                       wx_cv_version_script=yes
33635                     else
33636                       wx_cv_version_script=no
33637                     fi
33638                   fi
33639                 fi
33640
33641                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33642                 rm -f conftest1.output conftest2.output conftest3.output
33643
33644 fi
33645 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33646 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33647
33648             if test $wx_cv_version_script = yes ; then
33649                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33650             fi
33651             ;;
33652     esac
33653
33654
33655             if test "$wxUSE_VISIBILITY" != "no"; then
33656
33657
33658   if test -n "$GCC"; then
33659     CFLAGS_VISIBILITY="-fvisibility=hidden"
33660     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33661     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33662 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33663     if test "${wx_cv_cc_visibility+set}" = set; then
33664   echo $ECHO_N "(cached) $ECHO_C" >&6
33665 else
33666
33667       wx_save_CXXFLAGS="$CXXFLAGS"
33668       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33669       ac_ext=cpp
33670 ac_cpp='$CXXCPP $CPPFLAGS'
33671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33674
33675       cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681
33682          /* we need gcc >= 4.0, older versions with visibility support
33683             didn't have class visibility: */
33684          #if defined(__GNUC__) && __GNUC__ < 4
33685          error this gcc is too old;
33686          #endif
33687
33688          /* visibility only makes sense for ELF shared libs: */
33689          #if !defined(__ELF__) && !defined(__APPLE__)
33690          error this platform has no visibility;
33691          #endif
33692
33693          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33694          extern __attribute__((__visibility__("default"))) int exportedvar;
33695          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33696          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33697          class __attribute__((__visibility__("default"))) Foo {
33698            Foo() {}
33699          };
33700
33701 int
33702 main ()
33703 {
33704
33705   ;
33706   return 0;
33707 }
33708 _ACEOF
33709 rm -f conftest.$ac_objext
33710 if { (ac_try="$ac_compile"
33711 case "(($ac_try" in
33712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713   *) ac_try_echo=$ac_try;;
33714 esac
33715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33716   (eval "$ac_compile") 2>conftest.er1
33717   ac_status=$?
33718   grep -v '^ *+' conftest.er1 >conftest.err
33719   rm -f conftest.er1
33720   cat conftest.err >&5
33721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722   (exit $ac_status); } && {
33723          test -z "$ac_cxx_werror_flag" ||
33724          test ! -s conftest.err
33725        } && test -s conftest.$ac_objext; then
33726   wx_cv_cc_visibility=yes
33727 else
33728   echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33730
33731         wx_cv_cc_visibility=no
33732 fi
33733
33734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33735       ac_ext=c
33736 ac_cpp='$CPP $CPPFLAGS'
33737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33740
33741       CXXFLAGS="$wx_save_CXXFLAGS"
33742 fi
33743
33744     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33745 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33746     if test $wx_cv_cc_visibility = yes; then
33747                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33748 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33749       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752
33753         wx_save_CXXFLAGS="$CXXFLAGS"
33754         wx_save_LDFLAGS="$LDFLAGS"
33755         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33756         LDFLAGS="$LDFLAGS -shared -fPIC"
33757         ac_ext=cpp
33758 ac_cpp='$CXXCPP $CPPFLAGS'
33759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33762
33763         cat >conftest.$ac_ext <<_ACEOF
33764 /* confdefs.h.  */
33765 _ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h.  */
33769
33770             #include <string>
33771
33772 int
33773 main ()
33774 {
33775
33776             std::string s("hello");
33777             return s.length();
33778
33779   ;
33780   return 0;
33781 }
33782 _ACEOF
33783 rm -f conftest.$ac_objext conftest$ac_exeext
33784 if { (ac_try="$ac_link"
33785 case "(($ac_try" in
33786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33787   *) ac_try_echo=$ac_try;;
33788 esac
33789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33790   (eval "$ac_link") 2>conftest.er1
33791   ac_status=$?
33792   grep -v '^ *+' conftest.er1 >conftest.err
33793   rm -f conftest.er1
33794   cat conftest.err >&5
33795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); } && {
33797          test -z "$ac_cxx_werror_flag" ||
33798          test ! -s conftest.err
33799        } && test -s conftest$ac_exeext &&
33800        $as_test_x conftest$ac_exeext; then
33801   wx_cv_cc_broken_libstdcxx_visibility=no
33802 else
33803   echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33805
33806         wx_cv_cc_broken_libstdcxx_visibility=yes
33807 fi
33808
33809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33810       conftest$ac_exeext conftest.$ac_ext
33811         ac_ext=c
33812 ac_cpp='$CPP $CPPFLAGS'
33813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33816
33817         CXXFLAGS="$wx_save_CXXFLAGS"
33818         LDFLAGS="$wx_save_LDFLAGS"
33819 fi
33820
33821       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33822 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33823
33824       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33825         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33826 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33827         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33828   echo $ECHO_N "(cached) $ECHO_C" >&6
33829 else
33830
33831           ac_ext=cpp
33832 ac_cpp='$CXXCPP $CPPFLAGS'
33833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33836
33837           cat >conftest.$ac_ext <<_ACEOF
33838 /* confdefs.h.  */
33839 _ACEOF
33840 cat confdefs.h >>conftest.$ac_ext
33841 cat >>conftest.$ac_ext <<_ACEOF
33842 /* end confdefs.h.  */
33843
33844               #pragma GCC visibility push(default)
33845               #include <string>
33846               #pragma GCC visibility pop
33847
33848 int
33849 main ()
33850 {
33851
33852               std::string s("hello");
33853               return s.length();
33854
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext conftest$ac_exeext
33860 if { (ac_try="$ac_link"
33861 case "(($ac_try" in
33862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863   *) ac_try_echo=$ac_try;;
33864 esac
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866   (eval "$ac_link") 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } && {
33873          test -z "$ac_cxx_werror_flag" ||
33874          test ! -s conftest.err
33875        } && test -s conftest$ac_exeext &&
33876        $as_test_x conftest$ac_exeext; then
33877   wx_cv_cc_visibility_workaround=no
33878 else
33879   echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33881
33882         wx_cv_cc_visibility_workaround=yes
33883 fi
33884
33885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33886       conftest$ac_exeext conftest.$ac_ext
33887           ac_ext=c
33888 ac_cpp='$CPP $CPPFLAGS'
33889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33892
33893
33894 fi
33895
33896         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33897 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33898
33899         if test $wx_cv_cc_visibility_workaround = no; then
33900                     wx_cv_cc_visibility=no
33901         fi
33902       fi
33903     fi
33904
33905     if test $wx_cv_cc_visibility = yes; then
33906       cat >>confdefs.h <<\_ACEOF
33907 #define HAVE_VISIBILITY 1
33908 _ACEOF
33909
33910       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33911         cat >>confdefs.h <<\_ACEOF
33912 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33913 _ACEOF
33914
33915       fi
33916     else
33917       CFLAGS_VISIBILITY=""
33918       CXXFLAGS_VISIBILITY=""
33919     fi
33920
33921
33922   fi
33923
33924     fi
33925
33926         if test "x$SUNCXX" = xyes; then
33927         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33928         WXCONFIG_RPATH="-R\$libdir"
33929     else
33930     case "${host}" in
33931       *-*-linux* | *-*-gnu* )
33932         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33933         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33934         ;;
33935
33936       *-*-solaris2* )
33937
33938                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33939
33940                         saveLdflags="$LDFLAGS"
33941         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33942         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33943 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33944         cat >conftest.$ac_ext <<_ACEOF
33945 /* confdefs.h.  */
33946 _ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h.  */
33950
33951 int
33952 main ()
33953 {
33954
33955   ;
33956   return 0;
33957 }
33958 _ACEOF
33959 rm -f conftest.$ac_objext conftest$ac_exeext
33960 if { (ac_try="$ac_link"
33961 case "(($ac_try" in
33962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33963   *) ac_try_echo=$ac_try;;
33964 esac
33965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33966   (eval "$ac_link") 2>conftest.er1
33967   ac_status=$?
33968   grep -v '^ *+' conftest.er1 >conftest.err
33969   rm -f conftest.er1
33970   cat conftest.err >&5
33971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33972   (exit $ac_status); } && {
33973          test -z "$ac_c_werror_flag" ||
33974          test ! -s conftest.err
33975        } && test -s conftest$ac_exeext &&
33976        $as_test_x conftest$ac_exeext; then
33977
33978                 { echo "$as_me:$LINENO: result: yes" >&5
33979 echo "${ECHO_T}yes" >&6; }
33980                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33981                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33982
33983 else
33984   echo "$as_me: failed program was:" >&5
33985 sed 's/^/| /' conftest.$ac_ext >&5
33986
33987
33988                 { echo "$as_me:$LINENO: result: no" >&5
33989 echo "${ECHO_T}no" >&6; }
33990                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33991 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33992                 LDFLAGS="$saveLdflags -Wl,-R,/"
33993                 cat >conftest.$ac_ext <<_ACEOF
33994 /* confdefs.h.  */
33995 _ACEOF
33996 cat confdefs.h >>conftest.$ac_ext
33997 cat >>conftest.$ac_ext <<_ACEOF
33998 /* end confdefs.h.  */
33999
34000 int
34001 main ()
34002 {
34003
34004   ;
34005   return 0;
34006 }
34007 _ACEOF
34008 rm -f conftest.$ac_objext conftest$ac_exeext
34009 if { (ac_try="$ac_link"
34010 case "(($ac_try" in
34011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012   *) ac_try_echo=$ac_try;;
34013 esac
34014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015   (eval "$ac_link") 2>conftest.er1
34016   ac_status=$?
34017   grep -v '^ *+' conftest.er1 >conftest.err
34018   rm -f conftest.er1
34019   cat conftest.err >&5
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); } && {
34022          test -z "$ac_c_werror_flag" ||
34023          test ! -s conftest.err
34024        } && test -s conftest$ac_exeext &&
34025        $as_test_x conftest$ac_exeext; then
34026
34027                         { echo "$as_me:$LINENO: result: yes" >&5
34028 echo "${ECHO_T}yes" >&6; }
34029                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34030                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
34031
34032 else
34033   echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34035
34036
34037                         { echo "$as_me:$LINENO: result: no" >&5
34038 echo "${ECHO_T}no" >&6; }
34039
34040 fi
34041
34042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34043       conftest$ac_exeext conftest.$ac_ext
34044
34045 fi
34046
34047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34048       conftest$ac_exeext conftest.$ac_ext
34049         LDFLAGS="$saveLdflags"
34050       ;;
34051
34052       *-*-darwin* )
34053         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
34054         if test "$install_name_tool" -a -x "$install_name_tool"; then
34055             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
34056             cat <<EOF >change-install-names
34057 #!/bin/sh
34058 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34059 for i in \${libnames} ; do
34060     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
34061     for dep in \${libnames} ; do
34062         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
34063     done
34064 done
34065 EOF
34066             chmod +x change-install-names
34067             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
34068         fi
34069
34070                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
34071       ;;
34072
34073       *-*-cygwin* | *-*-mingw32* )
34074         ;;
34075
34076       *-*-hpux* )
34077         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
34078         WXCONFIG_RPATH="-Wl,+b,\$libdir"
34079         ;;
34080
34081     esac
34082     fi
34083
34084             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34085
34086     if test $wxUSE_RPATH = "no"; then
34087         SAMPLES_RPATH_FLAG=''
34088         DYLIB_PATH_POSTLINK=''
34089         WXCONFIG_RPATH=''
34090     fi
34091
34092     SHARED=1
34093
34094 else
34095
34096     config_linkage_component="-static"
34097     SHARED=0
34098
34099 fi
34100
34101
34102 UNICODE=0
34103 lib_unicode_suffix=
34104 WX_CHARTYPE="ansi"
34105 if test "$wxUSE_UNICODE" = "yes"; then
34106     lib_unicode_suffix=u
34107     WX_CHARTYPE="unicode"
34108     UNICODE=1
34109 fi
34110
34111 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34112 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34113
34114 DEBUG_INFO=0
34115 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34116     DEBUG_INFO=1
34117 fi
34118
34119 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34120
34121 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34122
34123 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34124
34125
34126 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
34127     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34128 else
34129     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34130 fi
34131 if test "${TOOLKIT_DIR}" = "os2"; then
34132     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34133 else
34134     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34135 fi
34136
34137
34138
34139 if test "$wxUSE_COCOA" = 1; then
34140
34141     ac_ext=c
34142 ac_cpp='$CPP $CPPFLAGS'
34143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34146
34147 ac_ext=m
34148
34149     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34150 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34151     cat >conftest.$ac_ext <<_ACEOF
34152 /* confdefs.h.  */
34153 _ACEOF
34154 cat confdefs.h >>conftest.$ac_ext
34155 cat >>conftest.$ac_ext <<_ACEOF
34156 /* end confdefs.h.  */
34157 #include <AppKit/NSEvent.h>
34158 #include <CoreFoundation/CoreFoundation.h>
34159
34160 int
34161 main ()
34162 {
34163
34164   ;
34165   return 0;
34166 }
34167 _ACEOF
34168 rm -f conftest.$ac_objext
34169 if { (ac_try="$ac_compile"
34170 case "(($ac_try" in
34171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34172   *) ac_try_echo=$ac_try;;
34173 esac
34174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34175   (eval "$ac_compile") 2>conftest.er1
34176   ac_status=$?
34177   grep -v '^ *+' conftest.er1 >conftest.err
34178   rm -f conftest.er1
34179   cat conftest.err >&5
34180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181   (exit $ac_status); } && {
34182          test -z "$ac_c_werror_flag" ||
34183          test ! -s conftest.err
34184        } && test -s conftest.$ac_objext; then
34185   { echo "$as_me:$LINENO: result: no" >&5
34186 echo "${ECHO_T}no" >&6; }
34187 else
34188   echo "$as_me: failed program was:" >&5
34189 sed 's/^/| /' conftest.$ac_ext >&5
34190
34191         { echo "$as_me:$LINENO: result: yes" >&5
34192 echo "${ECHO_T}yes" >&6; }
34193         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34194 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34195         cat >conftest.$ac_ext <<_ACEOF
34196 /* confdefs.h.  */
34197 _ACEOF
34198 cat confdefs.h >>conftest.$ac_ext
34199 cat >>conftest.$ac_ext <<_ACEOF
34200 /* end confdefs.h.  */
34201 #define __Point__ 1
34202 #include <AppKit/NSEvent.h>
34203 #include <CoreFoundation/CoreFoundation.h>
34204
34205 int
34206 main ()
34207 {
34208
34209   ;
34210   return 0;
34211 }
34212 _ACEOF
34213 rm -f conftest.$ac_objext
34214 if { (ac_try="$ac_compile"
34215 case "(($ac_try" in
34216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34217   *) ac_try_echo=$ac_try;;
34218 esac
34219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34220   (eval "$ac_compile") 2>conftest.er1
34221   ac_status=$?
34222   grep -v '^ *+' conftest.er1 >conftest.err
34223   rm -f conftest.er1
34224   cat conftest.err >&5
34225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226   (exit $ac_status); } && {
34227          test -z "$ac_c_werror_flag" ||
34228          test ! -s conftest.err
34229        } && test -s conftest.$ac_objext; then
34230   { echo "$as_me:$LINENO: result: yes" >&5
34231 echo "${ECHO_T}yes" >&6; }
34232             cat >>confdefs.h <<\_ACEOF
34233 #define __Point__ 1
34234 _ACEOF
34235
34236
34237 else
34238   echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34240
34241         { { echo "$as_me:$LINENO: error: no
34242 See \`config.log' for more details." >&5
34243 echo "$as_me: error: no
34244 See \`config.log' for more details." >&2;}
34245    { (exit 1); exit 1; }; }
34246
34247 fi
34248
34249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34250
34251 fi
34252
34253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34254     ac_ext=c
34255 ac_cpp='$CPP $CPPFLAGS'
34256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34259
34260 fi
34261
34262
34263 { echo "$as_me:$LINENO: checking for mode_t" >&5
34264 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34265 if test "${ac_cv_type_mode_t+set}" = set; then
34266   echo $ECHO_N "(cached) $ECHO_C" >&6
34267 else
34268   cat >conftest.$ac_ext <<_ACEOF
34269 /* confdefs.h.  */
34270 _ACEOF
34271 cat confdefs.h >>conftest.$ac_ext
34272 cat >>conftest.$ac_ext <<_ACEOF
34273 /* end confdefs.h.  */
34274 $ac_includes_default
34275 typedef mode_t ac__type_new_;
34276 int
34277 main ()
34278 {
34279 if ((ac__type_new_ *) 0)
34280   return 0;
34281 if (sizeof (ac__type_new_))
34282   return 0;
34283   ;
34284   return 0;
34285 }
34286 _ACEOF
34287 rm -f conftest.$ac_objext
34288 if { (ac_try="$ac_compile"
34289 case "(($ac_try" in
34290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291   *) ac_try_echo=$ac_try;;
34292 esac
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294   (eval "$ac_compile") 2>conftest.er1
34295   ac_status=$?
34296   grep -v '^ *+' conftest.er1 >conftest.err
34297   rm -f conftest.er1
34298   cat conftest.err >&5
34299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300   (exit $ac_status); } && {
34301          test -z "$ac_c_werror_flag" ||
34302          test ! -s conftest.err
34303        } && test -s conftest.$ac_objext; then
34304   ac_cv_type_mode_t=yes
34305 else
34306   echo "$as_me: failed program was:" >&5
34307 sed 's/^/| /' conftest.$ac_ext >&5
34308
34309         ac_cv_type_mode_t=no
34310 fi
34311
34312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34313 fi
34314 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34315 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34316 if test $ac_cv_type_mode_t = yes; then
34317   :
34318 else
34319
34320 cat >>confdefs.h <<_ACEOF
34321 #define mode_t int
34322 _ACEOF
34323
34324 fi
34325
34326 { echo "$as_me:$LINENO: checking for off_t" >&5
34327 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34328 if test "${ac_cv_type_off_t+set}" = set; then
34329   echo $ECHO_N "(cached) $ECHO_C" >&6
34330 else
34331   cat >conftest.$ac_ext <<_ACEOF
34332 /* confdefs.h.  */
34333 _ACEOF
34334 cat confdefs.h >>conftest.$ac_ext
34335 cat >>conftest.$ac_ext <<_ACEOF
34336 /* end confdefs.h.  */
34337 $ac_includes_default
34338 typedef off_t ac__type_new_;
34339 int
34340 main ()
34341 {
34342 if ((ac__type_new_ *) 0)
34343   return 0;
34344 if (sizeof (ac__type_new_))
34345   return 0;
34346   ;
34347   return 0;
34348 }
34349 _ACEOF
34350 rm -f conftest.$ac_objext
34351 if { (ac_try="$ac_compile"
34352 case "(($ac_try" in
34353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354   *) ac_try_echo=$ac_try;;
34355 esac
34356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357   (eval "$ac_compile") 2>conftest.er1
34358   ac_status=$?
34359   grep -v '^ *+' conftest.er1 >conftest.err
34360   rm -f conftest.er1
34361   cat conftest.err >&5
34362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363   (exit $ac_status); } && {
34364          test -z "$ac_c_werror_flag" ||
34365          test ! -s conftest.err
34366        } && test -s conftest.$ac_objext; then
34367   ac_cv_type_off_t=yes
34368 else
34369   echo "$as_me: failed program was:" >&5
34370 sed 's/^/| /' conftest.$ac_ext >&5
34371
34372         ac_cv_type_off_t=no
34373 fi
34374
34375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34376 fi
34377 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34378 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34379 if test $ac_cv_type_off_t = yes; then
34380   :
34381 else
34382
34383 cat >>confdefs.h <<_ACEOF
34384 #define off_t long int
34385 _ACEOF
34386
34387 fi
34388
34389 { echo "$as_me:$LINENO: checking for pid_t" >&5
34390 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34391 if test "${ac_cv_type_pid_t+set}" = set; then
34392   echo $ECHO_N "(cached) $ECHO_C" >&6
34393 else
34394   cat >conftest.$ac_ext <<_ACEOF
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400 $ac_includes_default
34401 typedef pid_t ac__type_new_;
34402 int
34403 main ()
34404 {
34405 if ((ac__type_new_ *) 0)
34406   return 0;
34407 if (sizeof (ac__type_new_))
34408   return 0;
34409   ;
34410   return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (ac_try="$ac_compile"
34415 case "(($ac_try" in
34416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34417   *) ac_try_echo=$ac_try;;
34418 esac
34419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34420   (eval "$ac_compile") 2>conftest.er1
34421   ac_status=$?
34422   grep -v '^ *+' conftest.er1 >conftest.err
34423   rm -f conftest.er1
34424   cat conftest.err >&5
34425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); } && {
34427          test -z "$ac_c_werror_flag" ||
34428          test ! -s conftest.err
34429        } && test -s conftest.$ac_objext; then
34430   ac_cv_type_pid_t=yes
34431 else
34432   echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34434
34435         ac_cv_type_pid_t=no
34436 fi
34437
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 fi
34440 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34441 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34442 if test $ac_cv_type_pid_t = yes; then
34443   :
34444 else
34445
34446 cat >>confdefs.h <<_ACEOF
34447 #define pid_t int
34448 _ACEOF
34449
34450 fi
34451
34452 { echo "$as_me:$LINENO: checking for size_t" >&5
34453 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34454 if test "${ac_cv_type_size_t+set}" = set; then
34455   echo $ECHO_N "(cached) $ECHO_C" >&6
34456 else
34457   cat >conftest.$ac_ext <<_ACEOF
34458 /* confdefs.h.  */
34459 _ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h.  */
34463 $ac_includes_default
34464 typedef size_t ac__type_new_;
34465 int
34466 main ()
34467 {
34468 if ((ac__type_new_ *) 0)
34469   return 0;
34470 if (sizeof (ac__type_new_))
34471   return 0;
34472   ;
34473   return 0;
34474 }
34475 _ACEOF
34476 rm -f conftest.$ac_objext
34477 if { (ac_try="$ac_compile"
34478 case "(($ac_try" in
34479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34480   *) ac_try_echo=$ac_try;;
34481 esac
34482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34483   (eval "$ac_compile") 2>conftest.er1
34484   ac_status=$?
34485   grep -v '^ *+' conftest.er1 >conftest.err
34486   rm -f conftest.er1
34487   cat conftest.err >&5
34488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489   (exit $ac_status); } && {
34490          test -z "$ac_c_werror_flag" ||
34491          test ! -s conftest.err
34492        } && test -s conftest.$ac_objext; then
34493   ac_cv_type_size_t=yes
34494 else
34495   echo "$as_me: failed program was:" >&5
34496 sed 's/^/| /' conftest.$ac_ext >&5
34497
34498         ac_cv_type_size_t=no
34499 fi
34500
34501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34502 fi
34503 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34504 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34505 if test $ac_cv_type_size_t = yes; then
34506   :
34507 else
34508
34509 cat >>confdefs.h <<_ACEOF
34510 #define size_t unsigned int
34511 _ACEOF
34512
34513 fi
34514
34515
34516 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34517 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34518 if test "${ac_cv_type_ssize_t+set}" = set; then
34519   echo $ECHO_N "(cached) $ECHO_C" >&6
34520 else
34521   cat >conftest.$ac_ext <<_ACEOF
34522 /* confdefs.h.  */
34523 _ACEOF
34524 cat confdefs.h >>conftest.$ac_ext
34525 cat >>conftest.$ac_ext <<_ACEOF
34526 /* end confdefs.h.  */
34527 $ac_includes_default
34528 typedef ssize_t ac__type_new_;
34529 int
34530 main ()
34531 {
34532 if ((ac__type_new_ *) 0)
34533   return 0;
34534 if (sizeof (ac__type_new_))
34535   return 0;
34536   ;
34537   return 0;
34538 }
34539 _ACEOF
34540 rm -f conftest.$ac_objext
34541 if { (ac_try="$ac_compile"
34542 case "(($ac_try" in
34543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34544   *) ac_try_echo=$ac_try;;
34545 esac
34546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34547   (eval "$ac_compile") 2>conftest.er1
34548   ac_status=$?
34549   grep -v '^ *+' conftest.er1 >conftest.err
34550   rm -f conftest.er1
34551   cat conftest.err >&5
34552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553   (exit $ac_status); } && {
34554          test -z "$ac_c_werror_flag" ||
34555          test ! -s conftest.err
34556        } && test -s conftest.$ac_objext; then
34557   ac_cv_type_ssize_t=yes
34558 else
34559   echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34561
34562         ac_cv_type_ssize_t=no
34563 fi
34564
34565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34566 fi
34567 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34568 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34569 if test $ac_cv_type_ssize_t = yes; then
34570
34571 cat >>confdefs.h <<_ACEOF
34572 #define HAVE_SSIZE_T 1
34573 _ACEOF
34574
34575
34576 fi
34577
34578
34579 ac_ext=cpp
34580 ac_cpp='$CXXCPP $CPPFLAGS'
34581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34584  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34585 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34586 if test "${wx_cv_size_t_is_uint+set}" = set; then
34587   echo $ECHO_N "(cached) $ECHO_C" >&6
34588 else
34589
34590                             cat >conftest.$ac_ext <<_ACEOF
34591 /* confdefs.h.  */
34592 _ACEOF
34593 cat confdefs.h >>conftest.$ac_ext
34594 cat >>conftest.$ac_ext <<_ACEOF
34595 /* end confdefs.h.  */
34596 #include <stddef.h>
34597 int
34598 main ()
34599 {
34600
34601             return 0; }
34602
34603             struct Foo { void foo(size_t); void foo(unsigned int); };
34604
34605             int bar() {
34606
34607   ;
34608   return 0;
34609 }
34610 _ACEOF
34611 rm -f conftest.$ac_objext
34612 if { (ac_try="$ac_compile"
34613 case "(($ac_try" in
34614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34615   *) ac_try_echo=$ac_try;;
34616 esac
34617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34618   (eval "$ac_compile") 2>conftest.er1
34619   ac_status=$?
34620   grep -v '^ *+' conftest.er1 >conftest.err
34621   rm -f conftest.er1
34622   cat conftest.err >&5
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); } && {
34625          test -z "$ac_cxx_werror_flag" ||
34626          test ! -s conftest.err
34627        } && test -s conftest.$ac_objext; then
34628   wx_cv_size_t_is_uint=no
34629 else
34630   echo "$as_me: failed program was:" >&5
34631 sed 's/^/| /' conftest.$ac_ext >&5
34632
34633         wx_cv_size_t_is_uint=yes
34634
34635 fi
34636
34637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34638
34639
34640 fi
34641 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34642 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34643
34644 if test "$wx_cv_size_t_is_uint" = "yes"; then
34645     cat >>confdefs.h <<\_ACEOF
34646 #define wxSIZE_T_IS_UINT 1
34647 _ACEOF
34648
34649 else
34650     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34651 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34652 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34653   echo $ECHO_N "(cached) $ECHO_C" >&6
34654 else
34655   cat >conftest.$ac_ext <<_ACEOF
34656 /* confdefs.h.  */
34657 _ACEOF
34658 cat confdefs.h >>conftest.$ac_ext
34659 cat >>conftest.$ac_ext <<_ACEOF
34660 /* end confdefs.h.  */
34661 #include <stddef.h>
34662 int
34663 main ()
34664 {
34665
34666                 return 0; }
34667
34668                 struct Foo { void foo(size_t); void foo(unsigned long); };
34669
34670                 int bar() {
34671
34672   ;
34673   return 0;
34674 }
34675 _ACEOF
34676 rm -f conftest.$ac_objext
34677 if { (ac_try="$ac_compile"
34678 case "(($ac_try" in
34679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34680   *) ac_try_echo=$ac_try;;
34681 esac
34682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34683   (eval "$ac_compile") 2>conftest.er1
34684   ac_status=$?
34685   grep -v '^ *+' conftest.er1 >conftest.err
34686   rm -f conftest.er1
34687   cat conftest.err >&5
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); } && {
34690          test -z "$ac_cxx_werror_flag" ||
34691          test ! -s conftest.err
34692        } && test -s conftest.$ac_objext; then
34693   wx_cv_size_t_is_ulong=no
34694 else
34695   echo "$as_me: failed program was:" >&5
34696 sed 's/^/| /' conftest.$ac_ext >&5
34697
34698         wx_cv_size_t_is_ulong=yes
34699
34700 fi
34701
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34703
34704 fi
34705 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34706 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34707
34708     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34709         cat >>confdefs.h <<\_ACEOF
34710 #define wxSIZE_T_IS_ULONG 1
34711 _ACEOF
34712
34713     fi
34714 fi
34715
34716 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34717 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34718 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34719   echo $ECHO_N "(cached) $ECHO_C" >&6
34720 else
34721   cat >conftest.$ac_ext <<_ACEOF
34722 /* confdefs.h.  */
34723 _ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h.  */
34727 #include <wchar.h>
34728 int
34729 main ()
34730 {
34731
34732             return 0; }
34733
34734             struct Foo { void foo(wchar_t);
34735                          void foo(unsigned short);
34736                          void foo(unsigned int);
34737                          void foo(unsigned long); };
34738
34739             int bar() {
34740
34741   ;
34742   return 0;
34743 }
34744 _ACEOF
34745 rm -f conftest.$ac_objext
34746 if { (ac_try="$ac_compile"
34747 case "(($ac_try" in
34748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34749   *) ac_try_echo=$ac_try;;
34750 esac
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752   (eval "$ac_compile") 2>conftest.er1
34753   ac_status=$?
34754   grep -v '^ *+' conftest.er1 >conftest.err
34755   rm -f conftest.er1
34756   cat conftest.err >&5
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); } && {
34759          test -z "$ac_cxx_werror_flag" ||
34760          test ! -s conftest.err
34761        } && test -s conftest.$ac_objext; then
34762   wx_cv_wchar_t_is_separate_type=yes
34763 else
34764   echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34766
34767         wx_cv_wchar_t_is_separate_type=no
34768
34769 fi
34770
34771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34772
34773 fi
34774 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34775 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34776
34777 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34778     cat >>confdefs.h <<\_ACEOF
34779 #define wxWCHAR_T_IS_REAL_TYPE 1
34780 _ACEOF
34781
34782 else
34783     cat >>confdefs.h <<\_ACEOF
34784 #define wxWCHAR_T_IS_REAL_TYPE 0
34785 _ACEOF
34786
34787 fi
34788
34789 ac_ext=c
34790 ac_cpp='$CPP $CPPFLAGS'
34791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34794
34795
34796 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34797 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34798 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34799   echo $ECHO_N "(cached) $ECHO_C" >&6
34800 else
34801
34802         cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 #include <pwd.h>
34809 int
34810 main ()
34811 {
34812
34813                 char *p;
34814                 struct passwd *pw;
34815                 p = pw->pw_gecos;
34816
34817   ;
34818   return 0;
34819 }
34820 _ACEOF
34821 rm -f conftest.$ac_objext
34822 if { (ac_try="$ac_compile"
34823 case "(($ac_try" in
34824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825   *) ac_try_echo=$ac_try;;
34826 esac
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828   (eval "$ac_compile") 2>conftest.er1
34829   ac_status=$?
34830   grep -v '^ *+' conftest.er1 >conftest.err
34831   rm -f conftest.er1
34832   cat conftest.err >&5
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } && {
34835          test -z "$ac_c_werror_flag" ||
34836          test ! -s conftest.err
34837        } && test -s conftest.$ac_objext; then
34838
34839                 wx_cv_struct_pw_gecos=yes
34840
34841 else
34842   echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34844
34845
34846                 wx_cv_struct_pw_gecos=no
34847
34848
34849 fi
34850
34851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852
34853
34854 fi
34855 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34856 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34857
34858 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34859     cat >>confdefs.h <<\_ACEOF
34860 #define HAVE_PW_GECOS 1
34861 _ACEOF
34862
34863 fi
34864
34865
34866 if test "$wxUSE_WCHAR_T" = "yes"; then
34867     cat >>confdefs.h <<\_ACEOF
34868 #define wxUSE_WCHAR_T 1
34869 _ACEOF
34870
34871
34872         WCSLEN_FOUND=0
34873     WCHAR_LINK=
34874
34875 for ac_func in wcslen
34876 do
34877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34881   echo $ECHO_N "(cached) $ECHO_C" >&6
34882 else
34883   cat >conftest.$ac_ext <<_ACEOF
34884 /* confdefs.h.  */
34885 _ACEOF
34886 cat confdefs.h >>conftest.$ac_ext
34887 cat >>conftest.$ac_ext <<_ACEOF
34888 /* end confdefs.h.  */
34889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34891 #define $ac_func innocuous_$ac_func
34892
34893 /* System header to define __stub macros and hopefully few prototypes,
34894     which can conflict with char $ac_func (); below.
34895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34896     <limits.h> exists even on freestanding compilers.  */
34897
34898 #ifdef __STDC__
34899 # include <limits.h>
34900 #else
34901 # include <assert.h>
34902 #endif
34903
34904 #undef $ac_func
34905
34906 /* Override any GCC internal prototype to avoid an error.
34907    Use char because int might match the return type of a GCC
34908    builtin and then its argument prototype would still apply.  */
34909 #ifdef __cplusplus
34910 extern "C"
34911 #endif
34912 char $ac_func ();
34913 /* The GNU C library defines this for functions which it implements
34914     to always fail with ENOSYS.  Some functions are actually named
34915     something starting with __ and the normal name is an alias.  */
34916 #if defined __stub_$ac_func || defined __stub___$ac_func
34917 choke me
34918 #endif
34919
34920 int
34921 main ()
34922 {
34923 return $ac_func ();
34924   ;
34925   return 0;
34926 }
34927 _ACEOF
34928 rm -f conftest.$ac_objext conftest$ac_exeext
34929 if { (ac_try="$ac_link"
34930 case "(($ac_try" in
34931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932   *) ac_try_echo=$ac_try;;
34933 esac
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935   (eval "$ac_link") 2>conftest.er1
34936   ac_status=$?
34937   grep -v '^ *+' conftest.er1 >conftest.err
34938   rm -f conftest.er1
34939   cat conftest.err >&5
34940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941   (exit $ac_status); } && {
34942          test -z "$ac_c_werror_flag" ||
34943          test ! -s conftest.err
34944        } && test -s conftest$ac_exeext &&
34945        $as_test_x conftest$ac_exeext; then
34946   eval "$as_ac_var=yes"
34947 else
34948   echo "$as_me: failed program was:" >&5
34949 sed 's/^/| /' conftest.$ac_ext >&5
34950
34951         eval "$as_ac_var=no"
34952 fi
34953
34954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34955       conftest$ac_exeext conftest.$ac_ext
34956 fi
34957 ac_res=`eval echo '${'$as_ac_var'}'`
34958                { echo "$as_me:$LINENO: result: $ac_res" >&5
34959 echo "${ECHO_T}$ac_res" >&6; }
34960 if test `eval echo '${'$as_ac_var'}'` = yes; then
34961   cat >>confdefs.h <<_ACEOF
34962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34963 _ACEOF
34964  WCSLEN_FOUND=1
34965 fi
34966 done
34967
34968
34969     if test "$WCSLEN_FOUND" = 0; then
34970         if test "$TOOLKIT" = "MSW"; then
34971             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34972 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34973 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34974   echo $ECHO_N "(cached) $ECHO_C" >&6
34975 else
34976   ac_check_lib_save_LIBS=$LIBS
34977 LIBS="-lmsvcrt  $LIBS"
34978 cat >conftest.$ac_ext <<_ACEOF
34979 /* confdefs.h.  */
34980 _ACEOF
34981 cat confdefs.h >>conftest.$ac_ext
34982 cat >>conftest.$ac_ext <<_ACEOF
34983 /* end confdefs.h.  */
34984
34985 /* Override any GCC internal prototype to avoid an error.
34986    Use char because int might match the return type of a GCC
34987    builtin and then its argument prototype would still apply.  */
34988 #ifdef __cplusplus
34989 extern "C"
34990 #endif
34991 char wcslen ();
34992 int
34993 main ()
34994 {
34995 return wcslen ();
34996   ;
34997   return 0;
34998 }
34999 _ACEOF
35000 rm -f conftest.$ac_objext conftest$ac_exeext
35001 if { (ac_try="$ac_link"
35002 case "(($ac_try" in
35003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35004   *) ac_try_echo=$ac_try;;
35005 esac
35006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35007   (eval "$ac_link") 2>conftest.er1
35008   ac_status=$?
35009   grep -v '^ *+' conftest.er1 >conftest.err
35010   rm -f conftest.er1
35011   cat conftest.err >&5
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); } && {
35014          test -z "$ac_c_werror_flag" ||
35015          test ! -s conftest.err
35016        } && test -s conftest$ac_exeext &&
35017        $as_test_x conftest$ac_exeext; then
35018   ac_cv_lib_msvcrt_wcslen=yes
35019 else
35020   echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35022
35023         ac_cv_lib_msvcrt_wcslen=no
35024 fi
35025
35026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35027       conftest$ac_exeext conftest.$ac_ext
35028 LIBS=$ac_check_lib_save_LIBS
35029 fi
35030 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35031 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
35032 if test $ac_cv_lib_msvcrt_wcslen = yes; then
35033   WCHAR_OK=1
35034 fi
35035
35036         else
35037             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35038 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
35039 if test "${ac_cv_lib_w_wcslen+set}" = set; then
35040   echo $ECHO_N "(cached) $ECHO_C" >&6
35041 else
35042   ac_check_lib_save_LIBS=$LIBS
35043 LIBS="-lw  $LIBS"
35044 cat >conftest.$ac_ext <<_ACEOF
35045 /* confdefs.h.  */
35046 _ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h.  */
35050
35051 /* Override any GCC internal prototype to avoid an error.
35052    Use char because int might match the return type of a GCC
35053    builtin and then its argument prototype would still apply.  */
35054 #ifdef __cplusplus
35055 extern "C"
35056 #endif
35057 char wcslen ();
35058 int
35059 main ()
35060 {
35061 return wcslen ();
35062   ;
35063   return 0;
35064 }
35065 _ACEOF
35066 rm -f conftest.$ac_objext conftest$ac_exeext
35067 if { (ac_try="$ac_link"
35068 case "(($ac_try" in
35069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35070   *) ac_try_echo=$ac_try;;
35071 esac
35072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35073   (eval "$ac_link") 2>conftest.er1
35074   ac_status=$?
35075   grep -v '^ *+' conftest.er1 >conftest.err
35076   rm -f conftest.er1
35077   cat conftest.err >&5
35078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079   (exit $ac_status); } && {
35080          test -z "$ac_c_werror_flag" ||
35081          test ! -s conftest.err
35082        } && test -s conftest$ac_exeext &&
35083        $as_test_x conftest$ac_exeext; then
35084   ac_cv_lib_w_wcslen=yes
35085 else
35086   echo "$as_me: failed program was:" >&5
35087 sed 's/^/| /' conftest.$ac_ext >&5
35088
35089         ac_cv_lib_w_wcslen=no
35090 fi
35091
35092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35093       conftest$ac_exeext conftest.$ac_ext
35094 LIBS=$ac_check_lib_save_LIBS
35095 fi
35096 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35097 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
35098 if test $ac_cv_lib_w_wcslen = yes; then
35099
35100                             WCHAR_LINK=" -lw"
35101                             WCSLEN_FOUND=1
35102
35103 fi
35104
35105         fi
35106     fi
35107
35108     if test "$WCSLEN_FOUND" = 1; then
35109         cat >>confdefs.h <<\_ACEOF
35110 #define HAVE_WCSLEN 1
35111 _ACEOF
35112
35113     fi
35114
35115
35116
35117
35118
35119
35120 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35121 do
35122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35126   echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128   cat >conftest.$ac_ext <<_ACEOF
35129 /* confdefs.h.  */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h.  */
35134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35136 #define $ac_func innocuous_$ac_func
35137
35138 /* System header to define __stub macros and hopefully few prototypes,
35139     which can conflict with char $ac_func (); below.
35140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35141     <limits.h> exists even on freestanding compilers.  */
35142
35143 #ifdef __STDC__
35144 # include <limits.h>
35145 #else
35146 # include <assert.h>
35147 #endif
35148
35149 #undef $ac_func
35150
35151 /* Override any GCC internal prototype to avoid an error.
35152    Use char because int might match the return type of a GCC
35153    builtin and then its argument prototype would still apply.  */
35154 #ifdef __cplusplus
35155 extern "C"
35156 #endif
35157 char $ac_func ();
35158 /* The GNU C library defines this for functions which it implements
35159     to always fail with ENOSYS.  Some functions are actually named
35160     something starting with __ and the normal name is an alias.  */
35161 #if defined __stub_$ac_func || defined __stub___$ac_func
35162 choke me
35163 #endif
35164
35165 int
35166 main ()
35167 {
35168 return $ac_func ();
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext conftest$ac_exeext
35174 if { (ac_try="$ac_link"
35175 case "(($ac_try" in
35176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177   *) ac_try_echo=$ac_try;;
35178 esac
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180   (eval "$ac_link") 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } && {
35187          test -z "$ac_c_werror_flag" ||
35188          test ! -s conftest.err
35189        } && test -s conftest$ac_exeext &&
35190        $as_test_x conftest$ac_exeext; then
35191   eval "$as_ac_var=yes"
35192 else
35193   echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35195
35196         eval "$as_ac_var=no"
35197 fi
35198
35199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35200       conftest$ac_exeext conftest.$ac_ext
35201 fi
35202 ac_res=`eval echo '${'$as_ac_var'}'`
35203                { echo "$as_me:$LINENO: result: $ac_res" >&5
35204 echo "${ECHO_T}$ac_res" >&6; }
35205 if test `eval echo '${'$as_ac_var'}'` = yes; then
35206   cat >>confdefs.h <<_ACEOF
35207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35208 _ACEOF
35209
35210 fi
35211 done
35212
35213
35214                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35215         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35216     fi
35217
35218                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35219 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35220 if test "${ac_cv_type_mbstate_t+set}" = set; then
35221   echo $ECHO_N "(cached) $ECHO_C" >&6
35222 else
35223   cat >conftest.$ac_ext <<_ACEOF
35224 /* confdefs.h.  */
35225 _ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h.  */
35229 #include <wchar.h>
35230
35231 typedef mbstate_t ac__type_new_;
35232 int
35233 main ()
35234 {
35235 if ((ac__type_new_ *) 0)
35236   return 0;
35237 if (sizeof (ac__type_new_))
35238   return 0;
35239   ;
35240   return 0;
35241 }
35242 _ACEOF
35243 rm -f conftest.$ac_objext
35244 if { (ac_try="$ac_compile"
35245 case "(($ac_try" in
35246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247   *) ac_try_echo=$ac_try;;
35248 esac
35249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250   (eval "$ac_compile") 2>conftest.er1
35251   ac_status=$?
35252   grep -v '^ *+' conftest.er1 >conftest.err
35253   rm -f conftest.er1
35254   cat conftest.err >&5
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); } && {
35257          test -z "$ac_c_werror_flag" ||
35258          test ! -s conftest.err
35259        } && test -s conftest.$ac_objext; then
35260   ac_cv_type_mbstate_t=yes
35261 else
35262   echo "$as_me: failed program was:" >&5
35263 sed 's/^/| /' conftest.$ac_ext >&5
35264
35265         ac_cv_type_mbstate_t=no
35266 fi
35267
35268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35269 fi
35270 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35271 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35272 if test $ac_cv_type_mbstate_t = yes; then
35273
35274 cat >>confdefs.h <<_ACEOF
35275 #define HAVE_MBSTATE_T 1
35276 _ACEOF
35277
35278
35279 for ac_func in wcsrtombs
35280 do
35281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35285   echo $ECHO_N "(cached) $ECHO_C" >&6
35286 else
35287   cat >conftest.$ac_ext <<_ACEOF
35288 /* confdefs.h.  */
35289 _ACEOF
35290 cat confdefs.h >>conftest.$ac_ext
35291 cat >>conftest.$ac_ext <<_ACEOF
35292 /* end confdefs.h.  */
35293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35295 #define $ac_func innocuous_$ac_func
35296
35297 /* System header to define __stub macros and hopefully few prototypes,
35298     which can conflict with char $ac_func (); below.
35299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35300     <limits.h> exists even on freestanding compilers.  */
35301
35302 #ifdef __STDC__
35303 # include <limits.h>
35304 #else
35305 # include <assert.h>
35306 #endif
35307
35308 #undef $ac_func
35309
35310 /* Override any GCC internal prototype to avoid an error.
35311    Use char because int might match the return type of a GCC
35312    builtin and then its argument prototype would still apply.  */
35313 #ifdef __cplusplus
35314 extern "C"
35315 #endif
35316 char $ac_func ();
35317 /* The GNU C library defines this for functions which it implements
35318     to always fail with ENOSYS.  Some functions are actually named
35319     something starting with __ and the normal name is an alias.  */
35320 #if defined __stub_$ac_func || defined __stub___$ac_func
35321 choke me
35322 #endif
35323
35324 int
35325 main ()
35326 {
35327 return $ac_func ();
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest.$ac_objext conftest$ac_exeext
35333 if { (ac_try="$ac_link"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_link") 2>conftest.er1
35340   ac_status=$?
35341   grep -v '^ *+' conftest.er1 >conftest.err
35342   rm -f conftest.er1
35343   cat conftest.err >&5
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } && {
35346          test -z "$ac_c_werror_flag" ||
35347          test ! -s conftest.err
35348        } && test -s conftest$ac_exeext &&
35349        $as_test_x conftest$ac_exeext; then
35350   eval "$as_ac_var=yes"
35351 else
35352   echo "$as_me: failed program was:" >&5
35353 sed 's/^/| /' conftest.$ac_ext >&5
35354
35355         eval "$as_ac_var=no"
35356 fi
35357
35358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35359       conftest$ac_exeext conftest.$ac_ext
35360 fi
35361 ac_res=`eval echo '${'$as_ac_var'}'`
35362                { echo "$as_me:$LINENO: result: $ac_res" >&5
35363 echo "${ECHO_T}$ac_res" >&6; }
35364 if test `eval echo '${'$as_ac_var'}'` = yes; then
35365   cat >>confdefs.h <<_ACEOF
35366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35367 _ACEOF
35368
35369 fi
35370 done
35371
35372 fi
35373
35374 else
35375     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35376 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35377 fi
35378
35379
35380
35381
35382 for ac_func in snprintf vsnprintf vsscanf
35383 do
35384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   cat >conftest.$ac_ext <<_ACEOF
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35398 #define $ac_func innocuous_$ac_func
35399
35400 /* System header to define __stub macros and hopefully few prototypes,
35401     which can conflict with char $ac_func (); below.
35402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35403     <limits.h> exists even on freestanding compilers.  */
35404
35405 #ifdef __STDC__
35406 # include <limits.h>
35407 #else
35408 # include <assert.h>
35409 #endif
35410
35411 #undef $ac_func
35412
35413 /* Override any GCC internal prototype to avoid an error.
35414    Use char because int might match the return type of a GCC
35415    builtin and then its argument prototype would still apply.  */
35416 #ifdef __cplusplus
35417 extern "C"
35418 #endif
35419 char $ac_func ();
35420 /* The GNU C library defines this for functions which it implements
35421     to always fail with ENOSYS.  Some functions are actually named
35422     something starting with __ and the normal name is an alias.  */
35423 #if defined __stub_$ac_func || defined __stub___$ac_func
35424 choke me
35425 #endif
35426
35427 int
35428 main ()
35429 {
35430 return $ac_func ();
35431   ;
35432   return 0;
35433 }
35434 _ACEOF
35435 rm -f conftest.$ac_objext conftest$ac_exeext
35436 if { (ac_try="$ac_link"
35437 case "(($ac_try" in
35438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439   *) ac_try_echo=$ac_try;;
35440 esac
35441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35442   (eval "$ac_link") 2>conftest.er1
35443   ac_status=$?
35444   grep -v '^ *+' conftest.er1 >conftest.err
35445   rm -f conftest.er1
35446   cat conftest.err >&5
35447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448   (exit $ac_status); } && {
35449          test -z "$ac_c_werror_flag" ||
35450          test ! -s conftest.err
35451        } && test -s conftest$ac_exeext &&
35452        $as_test_x conftest$ac_exeext; then
35453   eval "$as_ac_var=yes"
35454 else
35455   echo "$as_me: failed program was:" >&5
35456 sed 's/^/| /' conftest.$ac_ext >&5
35457
35458         eval "$as_ac_var=no"
35459 fi
35460
35461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35462       conftest$ac_exeext conftest.$ac_ext
35463 fi
35464 ac_res=`eval echo '${'$as_ac_var'}'`
35465                { echo "$as_me:$LINENO: result: $ac_res" >&5
35466 echo "${ECHO_T}$ac_res" >&6; }
35467 if test `eval echo '${'$as_ac_var'}'` = yes; then
35468   cat >>confdefs.h <<_ACEOF
35469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35470 _ACEOF
35471
35472 fi
35473 done
35474
35475
35476 ac_ext=cpp
35477 ac_cpp='$CXXCPP $CPPFLAGS'
35478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35481
35482 if test "$ac_cv_func_vsnprintf" = "yes"; then
35483         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35484 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35485 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35486   echo $ECHO_N "(cached) $ECHO_C" >&6
35487 else
35488
35489                                                             cat >conftest.$ac_ext <<_ACEOF
35490 /* confdefs.h.  */
35491 _ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h.  */
35495
35496                     #include <stdio.h>
35497                     #include <stdarg.h>
35498                     #ifdef __MSL__
35499                     #if __MSL__ >= 0x6000
35500                     namespace std {}
35501                     using namespace std;
35502                     #endif
35503                     #endif
35504
35505 int
35506 main ()
35507 {
35508
35509                     char *buf;
35510                     va_list ap;
35511                     vsnprintf(buf, 10u, "%s", ap);
35512
35513   ;
35514   return 0;
35515 }
35516 _ACEOF
35517 rm -f conftest.$ac_objext
35518 if { (ac_try="$ac_compile"
35519 case "(($ac_try" in
35520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35521   *) ac_try_echo=$ac_try;;
35522 esac
35523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35524   (eval "$ac_compile") 2>conftest.er1
35525   ac_status=$?
35526   grep -v '^ *+' conftest.er1 >conftest.err
35527   rm -f conftest.er1
35528   cat conftest.err >&5
35529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530   (exit $ac_status); } && {
35531          test -z "$ac_cxx_werror_flag" ||
35532          test ! -s conftest.err
35533        } && test -s conftest.$ac_objext; then
35534   wx_cv_func_vsnprintf_decl=yes
35535 else
35536   echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35538
35539         wx_cv_func_vsnprintf_decl=no
35540
35541 fi
35542
35543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35544
35545
35546 fi
35547 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35548 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35549
35550     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35551         cat >>confdefs.h <<\_ACEOF
35552 #define HAVE_VSNPRINTF_DECL 1
35553 _ACEOF
35554
35555
35556                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35557 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35558 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35559   echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561
35562                 cat >conftest.$ac_ext <<_ACEOF
35563 /* confdefs.h.  */
35564 _ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h.  */
35568
35569                         #include <stdio.h>
35570                         #include <stdarg.h>
35571                         #ifdef __MSL__
35572                         #if __MSL__ >= 0x6000
35573                         namespace std {}
35574                         using namespace std;
35575                         #endif
35576                         #endif
35577
35578 int
35579 main ()
35580 {
35581
35582                         char *buf;
35583                         va_list ap;
35584                         const char *fmt = "%s";
35585                         vsnprintf(buf, 10u, fmt, ap);
35586
35587   ;
35588   return 0;
35589 }
35590 _ACEOF
35591 rm -f conftest.$ac_objext
35592 if { (ac_try="$ac_compile"
35593 case "(($ac_try" in
35594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35595   *) ac_try_echo=$ac_try;;
35596 esac
35597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35598   (eval "$ac_compile") 2>conftest.er1
35599   ac_status=$?
35600   grep -v '^ *+' conftest.er1 >conftest.err
35601   rm -f conftest.er1
35602   cat conftest.err >&5
35603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); } && {
35605          test -z "$ac_cxx_werror_flag" ||
35606          test ! -s conftest.err
35607        } && test -s conftest.$ac_objext; then
35608   wx_cv_func_broken_vsnprintf_decl=no
35609 else
35610   echo "$as_me: failed program was:" >&5
35611 sed 's/^/| /' conftest.$ac_ext >&5
35612
35613         wx_cv_func_broken_vsnprintf_decl=yes
35614
35615 fi
35616
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618
35619
35620 fi
35621 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35622 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35623
35624         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35625             cat >>confdefs.h <<\_ACEOF
35626 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35627 _ACEOF
35628
35629         fi
35630     fi
35631 fi
35632
35633 if test "$ac_cv_func_snprintf" = "yes"; then
35634     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35635 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35636 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35637   echo $ECHO_N "(cached) $ECHO_C" >&6
35638 else
35639
35640             cat >conftest.$ac_ext <<_ACEOF
35641 /* confdefs.h.  */
35642 _ACEOF
35643 cat confdefs.h >>conftest.$ac_ext
35644 cat >>conftest.$ac_ext <<_ACEOF
35645 /* end confdefs.h.  */
35646
35647                     #include <stdio.h>
35648                     #include <stdarg.h>
35649                     #ifdef __MSL__
35650                     #if __MSL__ >= 0x6000
35651                     namespace std {}
35652                     using namespace std;
35653                     #endif
35654                     #endif
35655
35656 int
35657 main ()
35658 {
35659
35660                     char *buf;
35661                     snprintf(buf, 10u, "%s", "wx");
35662
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_cxx_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   wx_cv_func_snprintf_decl=yes
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689         wx_cv_func_snprintf_decl=no
35690
35691 fi
35692
35693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35694
35695
35696 fi
35697 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35698 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35699
35700     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35701         cat >>confdefs.h <<\_ACEOF
35702 #define HAVE_SNPRINTF_DECL 1
35703 _ACEOF
35704
35705     fi
35706
35707     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35708
35709                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35710 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35711 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35712   echo $ECHO_N "(cached) $ECHO_C" >&6
35713 else
35714
35715                 if test "$cross_compiling" = yes; then
35716
35717                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35718 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35719 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35720 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35721                         wx_cv_func_snprintf_pos_params=no
35722
35723
35724 else
35725   cat >conftest.$ac_ext <<_ACEOF
35726 /* confdefs.h.  */
35727 _ACEOF
35728 cat confdefs.h >>conftest.$ac_ext
35729 cat >>conftest.$ac_ext <<_ACEOF
35730 /* end confdefs.h.  */
35731
35732                         #include <stdio.h>
35733
35734                         int main (void)
35735                         {
35736                             char buffer[128];
35737                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35738                             if (strcmp ("2 3 1", buffer) == 0)
35739                                 exit (0);
35740                             exit (1);
35741                         }
35742
35743 _ACEOF
35744 rm -f conftest$ac_exeext
35745 if { (ac_try="$ac_link"
35746 case "(($ac_try" in
35747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35748   *) ac_try_echo=$ac_try;;
35749 esac
35750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35751   (eval "$ac_link") 2>&5
35752   ac_status=$?
35753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35755   { (case "(($ac_try" in
35756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35757   *) ac_try_echo=$ac_try;;
35758 esac
35759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35760   (eval "$ac_try") 2>&5
35761   ac_status=$?
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); }; }; then
35764   wx_cv_func_snprintf_pos_params=no
35765 else
35766   echo "$as_me: program exited with status $ac_status" >&5
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ( exit $ac_status )
35771 wx_cv_func_snprintf_pos_params=yes
35772 fi
35773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35774 fi
35775
35776
35777
35778
35779 fi
35780 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35781 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35782
35783         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35784             cat >>confdefs.h <<\_ACEOF
35785 #define HAVE_UNIX98_PRINTF 1
35786 _ACEOF
35787
35788         fi
35789     fi
35790 fi
35791
35792 if test "$ac_cv_func_vsscanf" = "yes"; then
35793     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35794 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35795 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35796   echo $ECHO_N "(cached) $ECHO_C" >&6
35797 else
35798
35799             cat >conftest.$ac_ext <<_ACEOF
35800 /* confdefs.h.  */
35801 _ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h.  */
35805
35806                     #include <stdio.h>
35807                     #include <stdarg.h>
35808                     #ifdef __MSL__
35809                     #if __MSL__ >= 0x6000
35810                     namespace std {}
35811                     using namespace std;
35812                     #endif
35813                     #endif
35814
35815 int
35816 main ()
35817 {
35818
35819                     char *buf;
35820                     va_list args;
35821                     vsscanf(buf, "%s", args);
35822
35823   ;
35824   return 0;
35825 }
35826 _ACEOF
35827 rm -f conftest.$ac_objext
35828 if { (ac_try="$ac_compile"
35829 case "(($ac_try" in
35830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35831   *) ac_try_echo=$ac_try;;
35832 esac
35833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35834   (eval "$ac_compile") 2>conftest.er1
35835   ac_status=$?
35836   grep -v '^ *+' conftest.er1 >conftest.err
35837   rm -f conftest.er1
35838   cat conftest.err >&5
35839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840   (exit $ac_status); } && {
35841          test -z "$ac_cxx_werror_flag" ||
35842          test ! -s conftest.err
35843        } && test -s conftest.$ac_objext; then
35844   wx_cv_func_vsscanf_decl=yes
35845 else
35846   echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35848
35849         wx_cv_func_vsscanf_decl=no
35850
35851 fi
35852
35853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35854
35855
35856 fi
35857 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35858 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35859
35860     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35861         cat >>confdefs.h <<\_ACEOF
35862 #define HAVE_VSSCANF_DECL 1
35863 _ACEOF
35864
35865     fi
35866 fi
35867 ac_ext=c
35868 ac_cpp='$CPP $CPPFLAGS'
35869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35872
35873
35874 if test "$wxUSE_UNICODE" = yes; then
35875
35876             wchar_headers="#include <stdio.h>
35877 #include <wchar.h>"
35878     case "${host}" in
35879         *-*-solaris2* )
35880
35881 for ac_header in widec.h
35882 do
35883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35887   echo $ECHO_N "(cached) $ECHO_C" >&6
35888 else
35889   cat >conftest.$ac_ext <<_ACEOF
35890 /* confdefs.h.  */
35891 _ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h.  */
35895 $ac_includes_default
35896
35897 #include <$ac_header>
35898 _ACEOF
35899 rm -f conftest.$ac_objext
35900 if { (ac_try="$ac_compile"
35901 case "(($ac_try" in
35902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35903   *) ac_try_echo=$ac_try;;
35904 esac
35905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35906   (eval "$ac_compile") 2>conftest.er1
35907   ac_status=$?
35908   grep -v '^ *+' conftest.er1 >conftest.err
35909   rm -f conftest.er1
35910   cat conftest.err >&5
35911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912   (exit $ac_status); } && {
35913          test -z "$ac_c_werror_flag" ||
35914          test ! -s conftest.err
35915        } && test -s conftest.$ac_objext; then
35916   eval "$as_ac_Header=yes"
35917 else
35918   echo "$as_me: failed program was:" >&5
35919 sed 's/^/| /' conftest.$ac_ext >&5
35920
35921         eval "$as_ac_Header=no"
35922 fi
35923
35924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35925 fi
35926 ac_res=`eval echo '${'$as_ac_Header'}'`
35927                { echo "$as_me:$LINENO: result: $ac_res" >&5
35928 echo "${ECHO_T}$ac_res" >&6; }
35929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35930   cat >>confdefs.h <<_ACEOF
35931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35932 _ACEOF
35933
35934 fi
35935
35936 done
35937
35938             if test "$ac_cv_header_widec_h" = "yes"; then
35939                 wchar_headers="$wchar_headers
35940 #include <widec.h>"
35941             fi
35942     esac
35943
35944
35945   for wx_func in putws fputws wprintf vswprintf vswscanf
35946   do
35947     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35948 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35949 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35950   echo $ECHO_N "(cached) $ECHO_C" >&6
35951 else
35952
35953         cat >conftest.$ac_ext <<_ACEOF
35954
35955             /* confdefs.h.  */
35956 _ACEOF
35957 cat confdefs.h >>conftest.$ac_ext
35958 cat >>conftest.$ac_ext <<_ACEOF
35959 /* end confdefs.h.  */
35960
35961                 $wchar_headers
35962                 $ac_includes_default
35963
35964 int
35965 main ()
35966 {
35967
35968                 #ifndef $wx_func
35969                   &$wx_func;
35970                 #endif
35971
35972
35973   ;
35974   return 0;
35975 }
35976
35977 _ACEOF
35978 rm -f conftest.$ac_objext conftest$ac_exeext
35979 if { (ac_try="$ac_link"
35980 case "(($ac_try" in
35981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35982   *) ac_try_echo=$ac_try;;
35983 esac
35984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35985   (eval "$ac_link") 2>conftest.er1
35986   ac_status=$?
35987   grep -v '^ *+' conftest.er1 >conftest.err
35988   rm -f conftest.er1
35989   cat conftest.err >&5
35990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991   (exit $ac_status); } && {
35992          test -z "$ac_c_werror_flag" ||
35993          test ! -s conftest.err
35994        } && test -s conftest$ac_exeext &&
35995        $as_test_x conftest$ac_exeext; then
35996   eval wx_cv_func_$wx_func=yes
35997 else
35998   echo "$as_me: failed program was:" >&5
35999 sed 's/^/| /' conftest.$ac_ext >&5
36000
36001         eval wx_cv_func_$wx_func=no
36002 fi
36003
36004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36005       conftest$ac_exeext conftest.$ac_ext
36006
36007 fi
36008 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36009                { echo "$as_me:$LINENO: result: $ac_res" >&5
36010 echo "${ECHO_T}$ac_res" >&6; }
36011
36012     if eval test \$wx_cv_func_$wx_func = yes
36013     then
36014       cat >>confdefs.h <<_ACEOF
36015 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36016 _ACEOF
36017
36018
36019     else
36020       :
36021
36022     fi
36023   done
36024
36025
36026                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36027 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
36028     cat >conftest.$ac_ext <<_ACEOF
36029 /* confdefs.h.  */
36030 _ACEOF
36031 cat confdefs.h >>conftest.$ac_ext
36032 cat >>conftest.$ac_ext <<_ACEOF
36033 /* end confdefs.h.  */
36034 #include <wchar.h>
36035 int
36036 main ()
36037 {
36038 &_vsnwprintf;
36039   ;
36040   return 0;
36041 }
36042 _ACEOF
36043 rm -f conftest.$ac_objext
36044 if { (ac_try="$ac_compile"
36045 case "(($ac_try" in
36046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36047   *) ac_try_echo=$ac_try;;
36048 esac
36049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36050   (eval "$ac_compile") 2>conftest.er1
36051   ac_status=$?
36052   grep -v '^ *+' conftest.er1 >conftest.err
36053   rm -f conftest.er1
36054   cat conftest.err >&5
36055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056   (exit $ac_status); } && {
36057          test -z "$ac_c_werror_flag" ||
36058          test ! -s conftest.err
36059        } && test -s conftest.$ac_objext; then
36060   { echo "$as_me:$LINENO: result: yes" >&5
36061 echo "${ECHO_T}yes" >&6; }
36062                     cat >>confdefs.h <<\_ACEOF
36063 #define HAVE__VSNWPRINTF 1
36064 _ACEOF
36065
36066 else
36067   echo "$as_me: failed program was:" >&5
36068 sed 's/^/| /' conftest.$ac_ext >&5
36069
36070         { echo "$as_me:$LINENO: result: no" >&5
36071 echo "${ECHO_T}no" >&6; }
36072 fi
36073
36074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
36075 fi
36076
36077 if test "$wxUSE_FILE" = "yes"; then
36078
36079   for wx_func in fsync
36080   do
36081     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36082 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36083 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36084   echo $ECHO_N "(cached) $ECHO_C" >&6
36085 else
36086
36087         cat >conftest.$ac_ext <<_ACEOF
36088
36089             /* confdefs.h.  */
36090 _ACEOF
36091 cat confdefs.h >>conftest.$ac_ext
36092 cat >>conftest.$ac_ext <<_ACEOF
36093 /* end confdefs.h.  */
36094
36095
36096                 $ac_includes_default
36097
36098 int
36099 main ()
36100 {
36101
36102                 #ifndef $wx_func
36103                   &$wx_func;
36104                 #endif
36105
36106
36107   ;
36108   return 0;
36109 }
36110
36111 _ACEOF
36112 rm -f conftest.$ac_objext conftest$ac_exeext
36113 if { (ac_try="$ac_link"
36114 case "(($ac_try" in
36115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36116   *) ac_try_echo=$ac_try;;
36117 esac
36118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36119   (eval "$ac_link") 2>conftest.er1
36120   ac_status=$?
36121   grep -v '^ *+' conftest.er1 >conftest.err
36122   rm -f conftest.er1
36123   cat conftest.err >&5
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); } && {
36126          test -z "$ac_c_werror_flag" ||
36127          test ! -s conftest.err
36128        } && test -s conftest$ac_exeext &&
36129        $as_test_x conftest$ac_exeext; then
36130   eval wx_cv_func_$wx_func=yes
36131 else
36132   echo "$as_me: failed program was:" >&5
36133 sed 's/^/| /' conftest.$ac_ext >&5
36134
36135         eval wx_cv_func_$wx_func=no
36136 fi
36137
36138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36139       conftest$ac_exeext conftest.$ac_ext
36140
36141 fi
36142 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36143                { echo "$as_me:$LINENO: result: $ac_res" >&5
36144 echo "${ECHO_T}$ac_res" >&6; }
36145
36146     if eval test \$wx_cv_func_$wx_func = yes
36147     then
36148       cat >>confdefs.h <<_ACEOF
36149 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36150 _ACEOF
36151
36152
36153     else
36154       :
36155
36156     fi
36157   done
36158
36159 fi
36160
36161 ac_ext=cpp
36162 ac_cpp='$CXXCPP $CPPFLAGS'
36163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36166
36167
36168   for wx_func in round
36169   do
36170     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36171 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36172 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36173   echo $ECHO_N "(cached) $ECHO_C" >&6
36174 else
36175
36176         cat >conftest.$ac_ext <<_ACEOF
36177
36178             /* confdefs.h.  */
36179 _ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h.  */
36183
36184                 #include <math.h>
36185                 $ac_includes_default
36186
36187 int
36188 main ()
36189 {
36190
36191                 #ifndef $wx_func
36192                   &$wx_func;
36193                 #endif
36194
36195
36196   ;
36197   return 0;
36198 }
36199
36200 _ACEOF
36201 rm -f conftest.$ac_objext conftest$ac_exeext
36202 if { (ac_try="$ac_link"
36203 case "(($ac_try" in
36204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205   *) ac_try_echo=$ac_try;;
36206 esac
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208   (eval "$ac_link") 2>conftest.er1
36209   ac_status=$?
36210   grep -v '^ *+' conftest.er1 >conftest.err
36211   rm -f conftest.er1
36212   cat conftest.err >&5
36213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214   (exit $ac_status); } && {
36215          test -z "$ac_cxx_werror_flag" ||
36216          test ! -s conftest.err
36217        } && test -s conftest$ac_exeext &&
36218        $as_test_x conftest$ac_exeext; then
36219   eval wx_cv_func_$wx_func=yes
36220 else
36221   echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36223
36224         eval wx_cv_func_$wx_func=no
36225 fi
36226
36227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36228       conftest$ac_exeext conftest.$ac_ext
36229
36230 fi
36231 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36232                { echo "$as_me:$LINENO: result: $ac_res" >&5
36233 echo "${ECHO_T}$ac_res" >&6; }
36234
36235     if eval test \$wx_cv_func_$wx_func = yes
36236     then
36237       cat >>confdefs.h <<_ACEOF
36238 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36239 _ACEOF
36240
36241
36242     else
36243       :
36244
36245     fi
36246   done
36247
36248 ac_ext=c
36249 ac_cpp='$CPP $CPPFLAGS'
36250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36253
36254
36255 if test "$TOOLKIT" != "MSW"; then
36256
36257 if test "$wxUSE_LIBICONV" != "no" ; then
36258
36259
36260
36261 # Check whether --with-libiconv-prefix was given.
36262 if test "${with_libiconv_prefix+set}" = set; then
36263   withval=$with_libiconv_prefix;
36264     for dir in `echo "$withval" | tr : ' '`; do
36265       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36266       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36267     done
36268
36269 fi
36270
36271
36272   { echo "$as_me:$LINENO: checking for iconv" >&5
36273 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36274 if test "${am_cv_func_iconv+set}" = set; then
36275   echo $ECHO_N "(cached) $ECHO_C" >&6
36276 else
36277
36278     am_cv_func_iconv="no, consider installing GNU libiconv"
36279     am_cv_lib_iconv=no
36280     cat >conftest.$ac_ext <<_ACEOF
36281 /* confdefs.h.  */
36282 _ACEOF
36283 cat confdefs.h >>conftest.$ac_ext
36284 cat >>conftest.$ac_ext <<_ACEOF
36285 /* end confdefs.h.  */
36286 #include <stdlib.h>
36287 #include <iconv.h>
36288 int
36289 main ()
36290 {
36291 iconv_t cd = iconv_open("","");
36292        iconv(cd,NULL,NULL,NULL,NULL);
36293        iconv_close(cd);
36294   ;
36295   return 0;
36296 }
36297 _ACEOF
36298 rm -f conftest.$ac_objext conftest$ac_exeext
36299 if { (ac_try="$ac_link"
36300 case "(($ac_try" in
36301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36302   *) ac_try_echo=$ac_try;;
36303 esac
36304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36305   (eval "$ac_link") 2>conftest.er1
36306   ac_status=$?
36307   grep -v '^ *+' conftest.er1 >conftest.err
36308   rm -f conftest.er1
36309   cat conftest.err >&5
36310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311   (exit $ac_status); } && {
36312          test -z "$ac_c_werror_flag" ||
36313          test ! -s conftest.err
36314        } && test -s conftest$ac_exeext &&
36315        $as_test_x conftest$ac_exeext; then
36316   am_cv_func_iconv=yes
36317 else
36318   echo "$as_me: failed program was:" >&5
36319 sed 's/^/| /' conftest.$ac_ext >&5
36320
36321
36322 fi
36323
36324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36325       conftest$ac_exeext conftest.$ac_ext
36326     if test "$am_cv_func_iconv" != yes; then
36327       am_save_LIBS="$LIBS"
36328       LIBS="$LIBS -liconv"
36329       cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335 #include <stdlib.h>
36336 #include <iconv.h>
36337 int
36338 main ()
36339 {
36340 iconv_t cd = iconv_open("","");
36341          iconv(cd,NULL,NULL,NULL,NULL);
36342          iconv_close(cd);
36343   ;
36344   return 0;
36345 }
36346 _ACEOF
36347 rm -f conftest.$ac_objext conftest$ac_exeext
36348 if { (ac_try="$ac_link"
36349 case "(($ac_try" in
36350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36351   *) ac_try_echo=$ac_try;;
36352 esac
36353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36354   (eval "$ac_link") 2>conftest.er1
36355   ac_status=$?
36356   grep -v '^ *+' conftest.er1 >conftest.err
36357   rm -f conftest.er1
36358   cat conftest.err >&5
36359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360   (exit $ac_status); } && {
36361          test -z "$ac_c_werror_flag" ||
36362          test ! -s conftest.err
36363        } && test -s conftest$ac_exeext &&
36364        $as_test_x conftest$ac_exeext; then
36365   am_cv_lib_iconv=yes
36366         am_cv_func_iconv=yes
36367 else
36368   echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36370
36371
36372 fi
36373
36374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36375       conftest$ac_exeext conftest.$ac_ext
36376       LIBS="$am_save_LIBS"
36377     fi
36378
36379 fi
36380 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36381 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36382   if test "$am_cv_func_iconv" = yes; then
36383
36384 cat >>confdefs.h <<\_ACEOF
36385 #define HAVE_ICONV 1
36386 _ACEOF
36387
36388     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36389 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36390 if test "${wx_cv_func_iconv_const+set}" = set; then
36391   echo $ECHO_N "(cached) $ECHO_C" >&6
36392 else
36393   cat >conftest.$ac_ext <<_ACEOF
36394 /* confdefs.h.  */
36395 _ACEOF
36396 cat confdefs.h >>conftest.$ac_ext
36397 cat >>conftest.$ac_ext <<_ACEOF
36398 /* end confdefs.h.  */
36399
36400 #include <stdlib.h>
36401 #include <iconv.h>
36402 extern
36403 #ifdef __cplusplus
36404 "C"
36405 #endif
36406 #if defined(__STDC__) || defined(__cplusplus)
36407 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36408 #else
36409 size_t iconv();
36410 #endif
36411
36412 int
36413 main ()
36414 {
36415
36416   ;
36417   return 0;
36418 }
36419 _ACEOF
36420 rm -f conftest.$ac_objext
36421 if { (ac_try="$ac_compile"
36422 case "(($ac_try" in
36423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424   *) ac_try_echo=$ac_try;;
36425 esac
36426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36427   (eval "$ac_compile") 2>conftest.er1
36428   ac_status=$?
36429   grep -v '^ *+' conftest.er1 >conftest.err
36430   rm -f conftest.er1
36431   cat conftest.err >&5
36432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433   (exit $ac_status); } && {
36434          test -z "$ac_c_werror_flag" ||
36435          test ! -s conftest.err
36436        } && test -s conftest.$ac_objext; then
36437   wx_cv_func_iconv_const="no"
36438 else
36439   echo "$as_me: failed program was:" >&5
36440 sed 's/^/| /' conftest.$ac_ext >&5
36441
36442         wx_cv_func_iconv_const="yes"
36443
36444 fi
36445
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447
36448 fi
36449 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36450 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36451
36452     iconv_const=
36453     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36454         iconv_const="const"
36455     fi
36456
36457
36458 cat >>confdefs.h <<_ACEOF
36459 #define ICONV_CONST $iconv_const
36460 _ACEOF
36461
36462   fi
36463   LIBICONV=
36464   if test "$am_cv_lib_iconv" = yes; then
36465     LIBICONV="-liconv"
36466   fi
36467
36468
36469     LIBS="$LIBICONV $LIBS"
36470 fi
36471
36472 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36473
36474 for ac_func in sigaction
36475 do
36476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36480   echo $ECHO_N "(cached) $ECHO_C" >&6
36481 else
36482   cat >conftest.$ac_ext <<_ACEOF
36483 /* confdefs.h.  */
36484 _ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h.  */
36488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36490 #define $ac_func innocuous_$ac_func
36491
36492 /* System header to define __stub macros and hopefully few prototypes,
36493     which can conflict with char $ac_func (); below.
36494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36495     <limits.h> exists even on freestanding compilers.  */
36496
36497 #ifdef __STDC__
36498 # include <limits.h>
36499 #else
36500 # include <assert.h>
36501 #endif
36502
36503 #undef $ac_func
36504
36505 /* Override any GCC internal prototype to avoid an error.
36506    Use char because int might match the return type of a GCC
36507    builtin and then its argument prototype would still apply.  */
36508 #ifdef __cplusplus
36509 extern "C"
36510 #endif
36511 char $ac_func ();
36512 /* The GNU C library defines this for functions which it implements
36513     to always fail with ENOSYS.  Some functions are actually named
36514     something starting with __ and the normal name is an alias.  */
36515 #if defined __stub_$ac_func || defined __stub___$ac_func
36516 choke me
36517 #endif
36518
36519 int
36520 main ()
36521 {
36522 return $ac_func ();
36523   ;
36524   return 0;
36525 }
36526 _ACEOF
36527 rm -f conftest.$ac_objext conftest$ac_exeext
36528 if { (ac_try="$ac_link"
36529 case "(($ac_try" in
36530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531   *) ac_try_echo=$ac_try;;
36532 esac
36533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36534   (eval "$ac_link") 2>conftest.er1
36535   ac_status=$?
36536   grep -v '^ *+' conftest.er1 >conftest.err
36537   rm -f conftest.er1
36538   cat conftest.err >&5
36539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540   (exit $ac_status); } && {
36541          test -z "$ac_c_werror_flag" ||
36542          test ! -s conftest.err
36543        } && test -s conftest$ac_exeext &&
36544        $as_test_x conftest$ac_exeext; then
36545   eval "$as_ac_var=yes"
36546 else
36547   echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36549
36550         eval "$as_ac_var=no"
36551 fi
36552
36553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36554       conftest$ac_exeext conftest.$ac_ext
36555 fi
36556 ac_res=`eval echo '${'$as_ac_var'}'`
36557                { echo "$as_me:$LINENO: result: $ac_res" >&5
36558 echo "${ECHO_T}$ac_res" >&6; }
36559 if test `eval echo '${'$as_ac_var'}'` = yes; then
36560   cat >>confdefs.h <<_ACEOF
36561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36562 _ACEOF
36563
36564 fi
36565 done
36566
36567
36568     if test "$ac_cv_func_sigaction" = "no"; then
36569         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36570 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36571         wxUSE_ON_FATAL_EXCEPTION=no
36572     fi
36573
36574     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36575       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36576 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36577 if test "${wx_cv_type_sa_handler+set}" = set; then
36578   echo $ECHO_N "(cached) $ECHO_C" >&6
36579 else
36580
36581                 ac_ext=cpp
36582 ac_cpp='$CXXCPP $CPPFLAGS'
36583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36586
36587         cat >conftest.$ac_ext <<_ACEOF
36588 /* confdefs.h.  */
36589 _ACEOF
36590 cat confdefs.h >>conftest.$ac_ext
36591 cat >>conftest.$ac_ext <<_ACEOF
36592 /* end confdefs.h.  */
36593 #include <signal.h>
36594 int
36595 main ()
36596 {
36597
36598                         extern void testSigHandler(int);
36599
36600                         struct sigaction sa;
36601                         sa.sa_handler = testSigHandler;
36602
36603   ;
36604   return 0;
36605 }
36606 _ACEOF
36607 rm -f conftest.$ac_objext
36608 if { (ac_try="$ac_compile"
36609 case "(($ac_try" in
36610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36611   *) ac_try_echo=$ac_try;;
36612 esac
36613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36614   (eval "$ac_compile") 2>conftest.er1
36615   ac_status=$?
36616   grep -v '^ *+' conftest.er1 >conftest.err
36617   rm -f conftest.er1
36618   cat conftest.err >&5
36619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620   (exit $ac_status); } && {
36621          test -z "$ac_cxx_werror_flag" ||
36622          test ! -s conftest.err
36623        } && test -s conftest.$ac_objext; then
36624
36625                         wx_cv_type_sa_handler=int
36626
36627 else
36628   echo "$as_me: failed program was:" >&5
36629 sed 's/^/| /' conftest.$ac_ext >&5
36630
36631
36632                         wx_cv_type_sa_handler=void
36633
36634 fi
36635
36636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36637         ac_ext=c
36638 ac_cpp='$CPP $CPPFLAGS'
36639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36642
36643
36644 fi
36645 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36646 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36647
36648       cat >>confdefs.h <<_ACEOF
36649 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36650 _ACEOF
36651
36652     fi
36653 fi
36654
36655 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36656     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36657 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36658 if test "${wx_cv_func_backtrace+set}" = set; then
36659   echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661
36662             ac_ext=cpp
36663 ac_cpp='$CXXCPP $CPPFLAGS'
36664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36667
36668             cat >conftest.$ac_ext <<_ACEOF
36669 /* confdefs.h.  */
36670 _ACEOF
36671 cat confdefs.h >>conftest.$ac_ext
36672 cat >>conftest.$ac_ext <<_ACEOF
36673 /* end confdefs.h.  */
36674 #include <execinfo.h>
36675 int
36676 main ()
36677 {
36678
36679                     void *trace[1];
36680                     char **messages;
36681
36682                     backtrace(trace, 1);
36683                     messages = backtrace_symbols(trace, 1);
36684
36685   ;
36686   return 0;
36687 }
36688 _ACEOF
36689 rm -f conftest.$ac_objext
36690 if { (ac_try="$ac_compile"
36691 case "(($ac_try" in
36692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693   *) ac_try_echo=$ac_try;;
36694 esac
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696   (eval "$ac_compile") 2>conftest.er1
36697   ac_status=$?
36698   grep -v '^ *+' conftest.er1 >conftest.err
36699   rm -f conftest.er1
36700   cat conftest.err >&5
36701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702   (exit $ac_status); } && {
36703          test -z "$ac_cxx_werror_flag" ||
36704          test ! -s conftest.err
36705        } && test -s conftest.$ac_objext; then
36706   wx_cv_func_backtrace=yes
36707 else
36708   echo "$as_me: failed program was:" >&5
36709 sed 's/^/| /' conftest.$ac_ext >&5
36710
36711         wx_cv_func_backtrace=no
36712
36713 fi
36714
36715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36716             ac_ext=c
36717 ac_cpp='$CPP $CPPFLAGS'
36718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36721
36722
36723
36724 fi
36725 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36726 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36727
36728
36729     if test "$wx_cv_func_backtrace" = "no"; then
36730         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36731 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36732         wxUSE_STACKWALKER=no
36733     else
36734         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36735 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36736 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36737   echo $ECHO_N "(cached) $ECHO_C" >&6
36738 else
36739
36740                 ac_ext=cpp
36741 ac_cpp='$CXXCPP $CPPFLAGS'
36742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36745
36746                 cat >conftest.$ac_ext <<_ACEOF
36747 /* confdefs.h.  */
36748 _ACEOF
36749 cat confdefs.h >>conftest.$ac_ext
36750 cat >>conftest.$ac_ext <<_ACEOF
36751 /* end confdefs.h.  */
36752 #include <cxxabi.h>
36753 int
36754 main ()
36755 {
36756
36757                         int rc;
36758                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36759
36760   ;
36761   return 0;
36762 }
36763 _ACEOF
36764 rm -f conftest.$ac_objext conftest$ac_exeext
36765 if { (ac_try="$ac_link"
36766 case "(($ac_try" in
36767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36768   *) ac_try_echo=$ac_try;;
36769 esac
36770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36771   (eval "$ac_link") 2>conftest.er1
36772   ac_status=$?
36773   grep -v '^ *+' conftest.er1 >conftest.err
36774   rm -f conftest.er1
36775   cat conftest.err >&5
36776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777   (exit $ac_status); } && {
36778          test -z "$ac_cxx_werror_flag" ||
36779          test ! -s conftest.err
36780        } && test -s conftest$ac_exeext &&
36781        $as_test_x conftest$ac_exeext; then
36782   wx_cv_func_cxa_demangle=yes
36783 else
36784   echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36786
36787         wx_cv_func_cxa_demangle=no
36788
36789 fi
36790
36791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36792       conftest$ac_exeext conftest.$ac_ext
36793                 ac_ext=c
36794 ac_cpp='$CPP $CPPFLAGS'
36795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36798
36799
36800
36801 fi
36802 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36803 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36804
36805         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36806             cat >>confdefs.h <<\_ACEOF
36807 #define HAVE_CXA_DEMANGLE 1
36808 _ACEOF
36809
36810         fi
36811     fi
36812 fi
36813
36814 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36815     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36816 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36817     wxUSE_STACKWALKER=no
36818 fi
36819
36820
36821
36822
36823 for ac_func in mkstemp mktemp
36824 do
36825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36829   echo $ECHO_N "(cached) $ECHO_C" >&6
36830 else
36831   cat >conftest.$ac_ext <<_ACEOF
36832 /* confdefs.h.  */
36833 _ACEOF
36834 cat confdefs.h >>conftest.$ac_ext
36835 cat >>conftest.$ac_ext <<_ACEOF
36836 /* end confdefs.h.  */
36837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36839 #define $ac_func innocuous_$ac_func
36840
36841 /* System header to define __stub macros and hopefully few prototypes,
36842     which can conflict with char $ac_func (); below.
36843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36844     <limits.h> exists even on freestanding compilers.  */
36845
36846 #ifdef __STDC__
36847 # include <limits.h>
36848 #else
36849 # include <assert.h>
36850 #endif
36851
36852 #undef $ac_func
36853
36854 /* Override any GCC internal prototype to avoid an error.
36855    Use char because int might match the return type of a GCC
36856    builtin and then its argument prototype would still apply.  */
36857 #ifdef __cplusplus
36858 extern "C"
36859 #endif
36860 char $ac_func ();
36861 /* The GNU C library defines this for functions which it implements
36862     to always fail with ENOSYS.  Some functions are actually named
36863     something starting with __ and the normal name is an alias.  */
36864 #if defined __stub_$ac_func || defined __stub___$ac_func
36865 choke me
36866 #endif
36867
36868 int
36869 main ()
36870 {
36871 return $ac_func ();
36872   ;
36873   return 0;
36874 }
36875 _ACEOF
36876 rm -f conftest.$ac_objext conftest$ac_exeext
36877 if { (ac_try="$ac_link"
36878 case "(($ac_try" in
36879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36880   *) ac_try_echo=$ac_try;;
36881 esac
36882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36883   (eval "$ac_link") 2>conftest.er1
36884   ac_status=$?
36885   grep -v '^ *+' conftest.er1 >conftest.err
36886   rm -f conftest.er1
36887   cat conftest.err >&5
36888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889   (exit $ac_status); } && {
36890          test -z "$ac_c_werror_flag" ||
36891          test ! -s conftest.err
36892        } && test -s conftest$ac_exeext &&
36893        $as_test_x conftest$ac_exeext; then
36894   eval "$as_ac_var=yes"
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899         eval "$as_ac_var=no"
36900 fi
36901
36902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36903       conftest$ac_exeext conftest.$ac_ext
36904 fi
36905 ac_res=`eval echo '${'$as_ac_var'}'`
36906                { echo "$as_me:$LINENO: result: $ac_res" >&5
36907 echo "${ECHO_T}$ac_res" >&6; }
36908 if test `eval echo '${'$as_ac_var'}'` = yes; then
36909   cat >>confdefs.h <<_ACEOF
36910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36911 _ACEOF
36912  break
36913 fi
36914 done
36915
36916
36917 { echo "$as_me:$LINENO: checking for statfs" >&5
36918 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36919 if test "${wx_cv_func_statfs+set}" = set; then
36920   echo $ECHO_N "(cached) $ECHO_C" >&6
36921 else
36922   cat >conftest.$ac_ext <<_ACEOF
36923 /* confdefs.h.  */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h.  */
36928
36929              #if defined(__BSD__)
36930              #include <sys/param.h>
36931              #include <sys/mount.h>
36932              #else
36933              #include <sys/vfs.h>
36934              #endif
36935
36936 int
36937 main ()
36938 {
36939
36940              long l;
36941              struct statfs fs;
36942              statfs("/", &fs);
36943              l = fs.f_bsize;
36944              l += fs.f_blocks;
36945              l += fs.f_bavail;
36946
36947   ;
36948   return 0;
36949 }
36950 _ACEOF
36951 rm -f conftest.$ac_objext
36952 if { (ac_try="$ac_compile"
36953 case "(($ac_try" in
36954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36955   *) ac_try_echo=$ac_try;;
36956 esac
36957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36958   (eval "$ac_compile") 2>conftest.er1
36959   ac_status=$?
36960   grep -v '^ *+' conftest.er1 >conftest.err
36961   rm -f conftest.er1
36962   cat conftest.err >&5
36963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964   (exit $ac_status); } && {
36965          test -z "$ac_c_werror_flag" ||
36966          test ! -s conftest.err
36967        } && test -s conftest.$ac_objext; then
36968   wx_cv_func_statfs=yes
36969 else
36970   echo "$as_me: failed program was:" >&5
36971 sed 's/^/| /' conftest.$ac_ext >&5
36972
36973         wx_cv_func_statfs=no
36974
36975 fi
36976
36977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36978
36979 fi
36980 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36981 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36982
36983 if test "$wx_cv_func_statfs" = "yes"; then
36984         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36985 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36986 if test "${wx_cv_func_statfs_decl+set}" = set; then
36987   echo $ECHO_N "(cached) $ECHO_C" >&6
36988 else
36989   ac_ext=cpp
36990 ac_cpp='$CXXCPP $CPPFLAGS'
36991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36994
36995         cat >conftest.$ac_ext <<_ACEOF
36996 /* confdefs.h.  */
36997 _ACEOF
36998 cat confdefs.h >>conftest.$ac_ext
36999 cat >>conftest.$ac_ext <<_ACEOF
37000 /* end confdefs.h.  */
37001
37002                  #if defined(__BSD__)
37003                  #include <sys/param.h>
37004                  #include <sys/mount.h>
37005                  #else
37006                  #include <sys/vfs.h>
37007                  #endif
37008
37009 int
37010 main ()
37011 {
37012
37013                 struct statfs fs;
37014                 statfs("", &fs);
37015
37016   ;
37017   return 0;
37018 }
37019 _ACEOF
37020 rm -f conftest.$ac_objext
37021 if { (ac_try="$ac_compile"
37022 case "(($ac_try" in
37023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37024   *) ac_try_echo=$ac_try;;
37025 esac
37026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37027   (eval "$ac_compile") 2>conftest.er1
37028   ac_status=$?
37029   grep -v '^ *+' conftest.er1 >conftest.err
37030   rm -f conftest.er1
37031   cat conftest.err >&5
37032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033   (exit $ac_status); } && {
37034          test -z "$ac_cxx_werror_flag" ||
37035          test ! -s conftest.err
37036        } && test -s conftest.$ac_objext; then
37037   wx_cv_func_statfs_decl=yes
37038 else
37039   echo "$as_me: failed program was:" >&5
37040 sed 's/^/| /' conftest.$ac_ext >&5
37041
37042         wx_cv_func_statfs_decl=no
37043
37044 fi
37045
37046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37047         ac_ext=c
37048 ac_cpp='$CPP $CPPFLAGS'
37049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37052
37053
37054 fi
37055 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37056 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
37057
37058     if test "$wx_cv_func_statfs_decl" = "yes"; then
37059         cat >>confdefs.h <<\_ACEOF
37060 #define HAVE_STATFS_DECL 1
37061 _ACEOF
37062
37063     fi
37064
37065     wx_cv_type_statvfs_t="struct statfs"
37066     cat >>confdefs.h <<\_ACEOF
37067 #define HAVE_STATFS 1
37068 _ACEOF
37069
37070 else
37071     { echo "$as_me:$LINENO: checking for statvfs" >&5
37072 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
37073 if test "${wx_cv_func_statvfs+set}" = set; then
37074   echo $ECHO_N "(cached) $ECHO_C" >&6
37075 else
37076   cat >conftest.$ac_ext <<_ACEOF
37077 /* confdefs.h.  */
37078 _ACEOF
37079 cat confdefs.h >>conftest.$ac_ext
37080 cat >>conftest.$ac_ext <<_ACEOF
37081 /* end confdefs.h.  */
37082
37083                 #include <stddef.h>
37084                 #include <sys/statvfs.h>
37085
37086 int
37087 main ()
37088 {
37089
37090                 statvfs("/", NULL);
37091
37092   ;
37093   return 0;
37094 }
37095 _ACEOF
37096 rm -f conftest.$ac_objext
37097 if { (ac_try="$ac_compile"
37098 case "(($ac_try" in
37099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37100   *) ac_try_echo=$ac_try;;
37101 esac
37102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37103   (eval "$ac_compile") 2>conftest.er1
37104   ac_status=$?
37105   grep -v '^ *+' conftest.er1 >conftest.err
37106   rm -f conftest.er1
37107   cat conftest.err >&5
37108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109   (exit $ac_status); } && {
37110          test -z "$ac_c_werror_flag" ||
37111          test ! -s conftest.err
37112        } && test -s conftest.$ac_objext; then
37113   wx_cv_func_statvfs=yes
37114 else
37115   echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37117
37118         wx_cv_func_statvfs=no
37119
37120 fi
37121
37122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37123
37124 fi
37125 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37126 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
37127
37128     if test "$wx_cv_func_statvfs" = "yes"; then
37129                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37130 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37131 if test "${wx_cv_type_statvfs_t+set}" = set; then
37132   echo $ECHO_N "(cached) $ECHO_C" >&6
37133 else
37134   ac_ext=cpp
37135 ac_cpp='$CXXCPP $CPPFLAGS'
37136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37139
37140             cat >conftest.$ac_ext <<_ACEOF
37141 /* confdefs.h.  */
37142 _ACEOF
37143 cat confdefs.h >>conftest.$ac_ext
37144 cat >>conftest.$ac_ext <<_ACEOF
37145 /* end confdefs.h.  */
37146
37147                     #include <sys/statvfs.h>
37148
37149 int
37150 main ()
37151 {
37152
37153                     long l;
37154                     statvfs_t fs;
37155                     statvfs("/", &fs);
37156                     l = fs.f_bsize;
37157                     l += fs.f_blocks;
37158                     l += fs.f_bavail;
37159
37160   ;
37161   return 0;
37162 }
37163 _ACEOF
37164 rm -f conftest.$ac_objext
37165 if { (ac_try="$ac_compile"
37166 case "(($ac_try" in
37167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37168   *) ac_try_echo=$ac_try;;
37169 esac
37170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37171   (eval "$ac_compile") 2>conftest.er1
37172   ac_status=$?
37173   grep -v '^ *+' conftest.er1 >conftest.err
37174   rm -f conftest.er1
37175   cat conftest.err >&5
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); } && {
37178          test -z "$ac_cxx_werror_flag" ||
37179          test ! -s conftest.err
37180        } && test -s conftest.$ac_objext; then
37181   wx_cv_type_statvfs_t=statvfs_t
37182 else
37183   echo "$as_me: failed program was:" >&5
37184 sed 's/^/| /' conftest.$ac_ext >&5
37185
37186
37187                     cat >conftest.$ac_ext <<_ACEOF
37188 /* confdefs.h.  */
37189 _ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h.  */
37193
37194                             #include <sys/statvfs.h>
37195
37196 int
37197 main ()
37198 {
37199
37200                             long l;
37201                             struct statvfs fs;
37202                             statvfs("/", &fs);
37203                             l = fs.f_bsize;
37204                             l += fs.f_blocks;
37205                             l += fs.f_bavail;
37206
37207   ;
37208   return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest.$ac_objext
37212 if { (ac_try="$ac_compile"
37213 case "(($ac_try" in
37214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37215   *) ac_try_echo=$ac_try;;
37216 esac
37217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37218   (eval "$ac_compile") 2>conftest.er1
37219   ac_status=$?
37220   grep -v '^ *+' conftest.er1 >conftest.err
37221   rm -f conftest.er1
37222   cat conftest.err >&5
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); } && {
37225          test -z "$ac_cxx_werror_flag" ||
37226          test ! -s conftest.err
37227        } && test -s conftest.$ac_objext; then
37228   wx_cv_type_statvfs_t="struct statvfs"
37229 else
37230   echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37232
37233         wx_cv_type_statvfs_t="unknown"
37234
37235 fi
37236
37237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37238
37239
37240 fi
37241
37242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243             ac_ext=c
37244 ac_cpp='$CPP $CPPFLAGS'
37245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37248
37249
37250 fi
37251 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37252 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37253
37254         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37255             cat >>confdefs.h <<\_ACEOF
37256 #define HAVE_STATVFS 1
37257 _ACEOF
37258
37259         fi
37260     else
37261                 wx_cv_type_statvfs_t="unknown"
37262     fi
37263 fi
37264
37265 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37266     cat >>confdefs.h <<_ACEOF
37267 #define WX_STATFS_T $wx_cv_type_statvfs_t
37268 _ACEOF
37269
37270 else
37271     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37272 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37273 fi
37274
37275 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37276
37277
37278 for ac_func in fcntl flock
37279 do
37280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37284   echo $ECHO_N "(cached) $ECHO_C" >&6
37285 else
37286   cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37294 #define $ac_func innocuous_$ac_func
37295
37296 /* System header to define __stub macros and hopefully few prototypes,
37297     which can conflict with char $ac_func (); below.
37298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37299     <limits.h> exists even on freestanding compilers.  */
37300
37301 #ifdef __STDC__
37302 # include <limits.h>
37303 #else
37304 # include <assert.h>
37305 #endif
37306
37307 #undef $ac_func
37308
37309 /* Override any GCC internal prototype to avoid an error.
37310    Use char because int might match the return type of a GCC
37311    builtin and then its argument prototype would still apply.  */
37312 #ifdef __cplusplus
37313 extern "C"
37314 #endif
37315 char $ac_func ();
37316 /* The GNU C library defines this for functions which it implements
37317     to always fail with ENOSYS.  Some functions are actually named
37318     something starting with __ and the normal name is an alias.  */
37319 #if defined __stub_$ac_func || defined __stub___$ac_func
37320 choke me
37321 #endif
37322
37323 int
37324 main ()
37325 {
37326 return $ac_func ();
37327   ;
37328   return 0;
37329 }
37330 _ACEOF
37331 rm -f conftest.$ac_objext conftest$ac_exeext
37332 if { (ac_try="$ac_link"
37333 case "(($ac_try" in
37334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37335   *) ac_try_echo=$ac_try;;
37336 esac
37337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37338   (eval "$ac_link") 2>conftest.er1
37339   ac_status=$?
37340   grep -v '^ *+' conftest.er1 >conftest.err
37341   rm -f conftest.er1
37342   cat conftest.err >&5
37343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344   (exit $ac_status); } && {
37345          test -z "$ac_c_werror_flag" ||
37346          test ! -s conftest.err
37347        } && test -s conftest$ac_exeext &&
37348        $as_test_x conftest$ac_exeext; then
37349   eval "$as_ac_var=yes"
37350 else
37351   echo "$as_me: failed program was:" >&5
37352 sed 's/^/| /' conftest.$ac_ext >&5
37353
37354         eval "$as_ac_var=no"
37355 fi
37356
37357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37358       conftest$ac_exeext conftest.$ac_ext
37359 fi
37360 ac_res=`eval echo '${'$as_ac_var'}'`
37361                { echo "$as_me:$LINENO: result: $ac_res" >&5
37362 echo "${ECHO_T}$ac_res" >&6; }
37363 if test `eval echo '${'$as_ac_var'}'` = yes; then
37364   cat >>confdefs.h <<_ACEOF
37365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37366 _ACEOF
37367  break
37368 fi
37369 done
37370
37371
37372     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37373         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37374 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37375         wxUSE_SNGLINST_CHECKER=no
37376     fi
37377 fi
37378
37379
37380
37381 for ac_func in setenv putenv
37382 do
37383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389   cat >conftest.$ac_ext <<_ACEOF
37390 /* confdefs.h.  */
37391 _ACEOF
37392 cat confdefs.h >>conftest.$ac_ext
37393 cat >>conftest.$ac_ext <<_ACEOF
37394 /* end confdefs.h.  */
37395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37397 #define $ac_func innocuous_$ac_func
37398
37399 /* System header to define __stub macros and hopefully few prototypes,
37400     which can conflict with char $ac_func (); below.
37401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37402     <limits.h> exists even on freestanding compilers.  */
37403
37404 #ifdef __STDC__
37405 # include <limits.h>
37406 #else
37407 # include <assert.h>
37408 #endif
37409
37410 #undef $ac_func
37411
37412 /* Override any GCC internal prototype to avoid an error.
37413    Use char because int might match the return type of a GCC
37414    builtin and then its argument prototype would still apply.  */
37415 #ifdef __cplusplus
37416 extern "C"
37417 #endif
37418 char $ac_func ();
37419 /* The GNU C library defines this for functions which it implements
37420     to always fail with ENOSYS.  Some functions are actually named
37421     something starting with __ and the normal name is an alias.  */
37422 #if defined __stub_$ac_func || defined __stub___$ac_func
37423 choke me
37424 #endif
37425
37426 int
37427 main ()
37428 {
37429 return $ac_func ();
37430   ;
37431   return 0;
37432 }
37433 _ACEOF
37434 rm -f conftest.$ac_objext conftest$ac_exeext
37435 if { (ac_try="$ac_link"
37436 case "(($ac_try" in
37437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37438   *) ac_try_echo=$ac_try;;
37439 esac
37440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37441   (eval "$ac_link") 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } && {
37448          test -z "$ac_c_werror_flag" ||
37449          test ! -s conftest.err
37450        } && test -s conftest$ac_exeext &&
37451        $as_test_x conftest$ac_exeext; then
37452   eval "$as_ac_var=yes"
37453 else
37454   echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457         eval "$as_ac_var=no"
37458 fi
37459
37460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37461       conftest$ac_exeext conftest.$ac_ext
37462 fi
37463 ac_res=`eval echo '${'$as_ac_var'}'`
37464                { echo "$as_me:$LINENO: result: $ac_res" >&5
37465 echo "${ECHO_T}$ac_res" >&6; }
37466 if test `eval echo '${'$as_ac_var'}'` = yes; then
37467   cat >>confdefs.h <<_ACEOF
37468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37469 _ACEOF
37470  break
37471 fi
37472 done
37473
37474 if test "$ac_cv_func_setenv" = "yes"; then
37475
37476 for ac_func in unsetenv
37477 do
37478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37482   echo $ECHO_N "(cached) $ECHO_C" >&6
37483 else
37484   cat >conftest.$ac_ext <<_ACEOF
37485 /* confdefs.h.  */
37486 _ACEOF
37487 cat confdefs.h >>conftest.$ac_ext
37488 cat >>conftest.$ac_ext <<_ACEOF
37489 /* end confdefs.h.  */
37490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37492 #define $ac_func innocuous_$ac_func
37493
37494 /* System header to define __stub macros and hopefully few prototypes,
37495     which can conflict with char $ac_func (); below.
37496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37497     <limits.h> exists even on freestanding compilers.  */
37498
37499 #ifdef __STDC__
37500 # include <limits.h>
37501 #else
37502 # include <assert.h>
37503 #endif
37504
37505 #undef $ac_func
37506
37507 /* Override any GCC internal prototype to avoid an error.
37508    Use char because int might match the return type of a GCC
37509    builtin and then its argument prototype would still apply.  */
37510 #ifdef __cplusplus
37511 extern "C"
37512 #endif
37513 char $ac_func ();
37514 /* The GNU C library defines this for functions which it implements
37515     to always fail with ENOSYS.  Some functions are actually named
37516     something starting with __ and the normal name is an alias.  */
37517 #if defined __stub_$ac_func || defined __stub___$ac_func
37518 choke me
37519 #endif
37520
37521 int
37522 main ()
37523 {
37524 return $ac_func ();
37525   ;
37526   return 0;
37527 }
37528 _ACEOF
37529 rm -f conftest.$ac_objext conftest$ac_exeext
37530 if { (ac_try="$ac_link"
37531 case "(($ac_try" in
37532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37533   *) ac_try_echo=$ac_try;;
37534 esac
37535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37536   (eval "$ac_link") 2>conftest.er1
37537   ac_status=$?
37538   grep -v '^ *+' conftest.er1 >conftest.err
37539   rm -f conftest.er1
37540   cat conftest.err >&5
37541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542   (exit $ac_status); } && {
37543          test -z "$ac_c_werror_flag" ||
37544          test ! -s conftest.err
37545        } && test -s conftest$ac_exeext &&
37546        $as_test_x conftest$ac_exeext; then
37547   eval "$as_ac_var=yes"
37548 else
37549   echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37551
37552         eval "$as_ac_var=no"
37553 fi
37554
37555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37556       conftest$ac_exeext conftest.$ac_ext
37557 fi
37558 ac_res=`eval echo '${'$as_ac_var'}'`
37559                { echo "$as_me:$LINENO: result: $ac_res" >&5
37560 echo "${ECHO_T}$ac_res" >&6; }
37561 if test `eval echo '${'$as_ac_var'}'` = yes; then
37562   cat >>confdefs.h <<_ACEOF
37563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37564 _ACEOF
37565
37566 fi
37567 done
37568
37569 fi
37570
37571 HAVE_SOME_SLEEP_FUNC=0
37572 if test "$USE_BEOS" = 1; then
37573             cat >>confdefs.h <<\_ACEOF
37574 #define HAVE_SLEEP 1
37575 _ACEOF
37576
37577     HAVE_SOME_SLEEP_FUNC=1
37578 fi
37579
37580 if test "$USE_DARWIN" = 1; then
37581             cat >>confdefs.h <<\_ACEOF
37582 #define HAVE_USLEEP 1
37583 _ACEOF
37584
37585     HAVE_SOME_SLEEP_FUNC=1
37586 fi
37587
37588 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37589         POSIX4_LINK=
37590
37591 for ac_func in nanosleep
37592 do
37593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37597   echo $ECHO_N "(cached) $ECHO_C" >&6
37598 else
37599   cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h.  */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h.  */
37605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37607 #define $ac_func innocuous_$ac_func
37608
37609 /* System header to define __stub macros and hopefully few prototypes,
37610     which can conflict with char $ac_func (); below.
37611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37612     <limits.h> exists even on freestanding compilers.  */
37613
37614 #ifdef __STDC__
37615 # include <limits.h>
37616 #else
37617 # include <assert.h>
37618 #endif
37619
37620 #undef $ac_func
37621
37622 /* Override any GCC internal prototype to avoid an error.
37623    Use char because int might match the return type of a GCC
37624    builtin and then its argument prototype would still apply.  */
37625 #ifdef __cplusplus
37626 extern "C"
37627 #endif
37628 char $ac_func ();
37629 /* The GNU C library defines this for functions which it implements
37630     to always fail with ENOSYS.  Some functions are actually named
37631     something starting with __ and the normal name is an alias.  */
37632 #if defined __stub_$ac_func || defined __stub___$ac_func
37633 choke me
37634 #endif
37635
37636 int
37637 main ()
37638 {
37639 return $ac_func ();
37640   ;
37641   return 0;
37642 }
37643 _ACEOF
37644 rm -f conftest.$ac_objext conftest$ac_exeext
37645 if { (ac_try="$ac_link"
37646 case "(($ac_try" in
37647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37648   *) ac_try_echo=$ac_try;;
37649 esac
37650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37651   (eval "$ac_link") 2>conftest.er1
37652   ac_status=$?
37653   grep -v '^ *+' conftest.er1 >conftest.err
37654   rm -f conftest.er1
37655   cat conftest.err >&5
37656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657   (exit $ac_status); } && {
37658          test -z "$ac_c_werror_flag" ||
37659          test ! -s conftest.err
37660        } && test -s conftest$ac_exeext &&
37661        $as_test_x conftest$ac_exeext; then
37662   eval "$as_ac_var=yes"
37663 else
37664   echo "$as_me: failed program was:" >&5
37665 sed 's/^/| /' conftest.$ac_ext >&5
37666
37667         eval "$as_ac_var=no"
37668 fi
37669
37670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37671       conftest$ac_exeext conftest.$ac_ext
37672 fi
37673 ac_res=`eval echo '${'$as_ac_var'}'`
37674                { echo "$as_me:$LINENO: result: $ac_res" >&5
37675 echo "${ECHO_T}$ac_res" >&6; }
37676 if test `eval echo '${'$as_ac_var'}'` = yes; then
37677   cat >>confdefs.h <<_ACEOF
37678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37679 _ACEOF
37680  cat >>confdefs.h <<\_ACEOF
37681 #define HAVE_NANOSLEEP 1
37682 _ACEOF
37683
37684 else
37685
37686             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37687 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37688 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37689   echo $ECHO_N "(cached) $ECHO_C" >&6
37690 else
37691   ac_check_lib_save_LIBS=$LIBS
37692 LIBS="-lposix4  $LIBS"
37693 cat >conftest.$ac_ext <<_ACEOF
37694 /* confdefs.h.  */
37695 _ACEOF
37696 cat confdefs.h >>conftest.$ac_ext
37697 cat >>conftest.$ac_ext <<_ACEOF
37698 /* end confdefs.h.  */
37699
37700 /* Override any GCC internal prototype to avoid an error.
37701    Use char because int might match the return type of a GCC
37702    builtin and then its argument prototype would still apply.  */
37703 #ifdef __cplusplus
37704 extern "C"
37705 #endif
37706 char nanosleep ();
37707 int
37708 main ()
37709 {
37710 return nanosleep ();
37711   ;
37712   return 0;
37713 }
37714 _ACEOF
37715 rm -f conftest.$ac_objext conftest$ac_exeext
37716 if { (ac_try="$ac_link"
37717 case "(($ac_try" in
37718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37719   *) ac_try_echo=$ac_try;;
37720 esac
37721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37722   (eval "$ac_link") 2>conftest.er1
37723   ac_status=$?
37724   grep -v '^ *+' conftest.er1 >conftest.err
37725   rm -f conftest.er1
37726   cat conftest.err >&5
37727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728   (exit $ac_status); } && {
37729          test -z "$ac_c_werror_flag" ||
37730          test ! -s conftest.err
37731        } && test -s conftest$ac_exeext &&
37732        $as_test_x conftest$ac_exeext; then
37733   ac_cv_lib_posix4_nanosleep=yes
37734 else
37735   echo "$as_me: failed program was:" >&5
37736 sed 's/^/| /' conftest.$ac_ext >&5
37737
37738         ac_cv_lib_posix4_nanosleep=no
37739 fi
37740
37741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37742       conftest$ac_exeext conftest.$ac_ext
37743 LIBS=$ac_check_lib_save_LIBS
37744 fi
37745 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37746 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37747 if test $ac_cv_lib_posix4_nanosleep = yes; then
37748
37749                     cat >>confdefs.h <<\_ACEOF
37750 #define HAVE_NANOSLEEP 1
37751 _ACEOF
37752
37753                     POSIX4_LINK=" -lposix4"
37754
37755 else
37756
37757
37758   for wx_func in usleep
37759   do
37760     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37761 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37762 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37763   echo $ECHO_N "(cached) $ECHO_C" >&6
37764 else
37765
37766         cat >conftest.$ac_ext <<_ACEOF
37767
37768             /* confdefs.h.  */
37769 _ACEOF
37770 cat confdefs.h >>conftest.$ac_ext
37771 cat >>conftest.$ac_ext <<_ACEOF
37772 /* end confdefs.h.  */
37773
37774
37775                 $ac_includes_default
37776
37777 int
37778 main ()
37779 {
37780
37781                 #ifndef $wx_func
37782                   &$wx_func;
37783                 #endif
37784
37785
37786   ;
37787   return 0;
37788 }
37789
37790 _ACEOF
37791 rm -f conftest.$ac_objext conftest$ac_exeext
37792 if { (ac_try="$ac_link"
37793 case "(($ac_try" in
37794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37795   *) ac_try_echo=$ac_try;;
37796 esac
37797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37798   (eval "$ac_link") 2>conftest.er1
37799   ac_status=$?
37800   grep -v '^ *+' conftest.er1 >conftest.err
37801   rm -f conftest.er1
37802   cat conftest.err >&5
37803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804   (exit $ac_status); } && {
37805          test -z "$ac_c_werror_flag" ||
37806          test ! -s conftest.err
37807        } && test -s conftest$ac_exeext &&
37808        $as_test_x conftest$ac_exeext; then
37809   eval wx_cv_func_$wx_func=yes
37810 else
37811   echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37813
37814         eval wx_cv_func_$wx_func=no
37815 fi
37816
37817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37818       conftest$ac_exeext conftest.$ac_ext
37819
37820 fi
37821 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37822                { echo "$as_me:$LINENO: result: $ac_res" >&5
37823 echo "${ECHO_T}$ac_res" >&6; }
37824
37825     if eval test \$wx_cv_func_$wx_func = yes
37826     then
37827       cat >>confdefs.h <<_ACEOF
37828 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37829 _ACEOF
37830
37831
37832     else
37833       :
37834       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37835 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37836
37837     fi
37838   done
37839
37840
37841
37842 fi
37843
37844
37845
37846 fi
37847 done
37848
37849 fi
37850
37851
37852   for wx_func in uname
37853   do
37854     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37855 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37856 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37857   echo $ECHO_N "(cached) $ECHO_C" >&6
37858 else
37859
37860         cat >conftest.$ac_ext <<_ACEOF
37861
37862             /* confdefs.h.  */
37863 _ACEOF
37864 cat confdefs.h >>conftest.$ac_ext
37865 cat >>conftest.$ac_ext <<_ACEOF
37866 /* end confdefs.h.  */
37867
37868                 #include <sys/utsname.h>
37869                 $ac_includes_default
37870
37871 int
37872 main ()
37873 {
37874
37875                 #ifndef $wx_func
37876                   &$wx_func;
37877                 #endif
37878
37879
37880   ;
37881   return 0;
37882 }
37883
37884 _ACEOF
37885 rm -f conftest.$ac_objext conftest$ac_exeext
37886 if { (ac_try="$ac_link"
37887 case "(($ac_try" in
37888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37889   *) ac_try_echo=$ac_try;;
37890 esac
37891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37892   (eval "$ac_link") 2>conftest.er1
37893   ac_status=$?
37894   grep -v '^ *+' conftest.er1 >conftest.err
37895   rm -f conftest.er1
37896   cat conftest.err >&5
37897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898   (exit $ac_status); } && {
37899          test -z "$ac_c_werror_flag" ||
37900          test ! -s conftest.err
37901        } && test -s conftest$ac_exeext &&
37902        $as_test_x conftest$ac_exeext; then
37903   eval wx_cv_func_$wx_func=yes
37904 else
37905   echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37907
37908         eval wx_cv_func_$wx_func=no
37909 fi
37910
37911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37912       conftest$ac_exeext conftest.$ac_ext
37913
37914 fi
37915 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37916                { echo "$as_me:$LINENO: result: $ac_res" >&5
37917 echo "${ECHO_T}$ac_res" >&6; }
37918
37919     if eval test \$wx_cv_func_$wx_func = yes
37920     then
37921       cat >>confdefs.h <<_ACEOF
37922 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37923 _ACEOF
37924
37925
37926     else
37927       :
37928
37929     fi
37930   done
37931
37932 if test "$wx_cv_func_uname" != yes; then
37933
37934   for wx_func in gethostname
37935   do
37936     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37937 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37938 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37939   echo $ECHO_N "(cached) $ECHO_C" >&6
37940 else
37941
37942         cat >conftest.$ac_ext <<_ACEOF
37943
37944             /* confdefs.h.  */
37945 _ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h.  */
37949
37950
37951                 $ac_includes_default
37952
37953 int
37954 main ()
37955 {
37956
37957                 #ifndef $wx_func
37958                   &$wx_func;
37959                 #endif
37960
37961
37962   ;
37963   return 0;
37964 }
37965
37966 _ACEOF
37967 rm -f conftest.$ac_objext conftest$ac_exeext
37968 if { (ac_try="$ac_link"
37969 case "(($ac_try" in
37970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971   *) ac_try_echo=$ac_try;;
37972 esac
37973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37974   (eval "$ac_link") 2>conftest.er1
37975   ac_status=$?
37976   grep -v '^ *+' conftest.er1 >conftest.err
37977   rm -f conftest.er1
37978   cat conftest.err >&5
37979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980   (exit $ac_status); } && {
37981          test -z "$ac_c_werror_flag" ||
37982          test ! -s conftest.err
37983        } && test -s conftest$ac_exeext &&
37984        $as_test_x conftest$ac_exeext; then
37985   eval wx_cv_func_$wx_func=yes
37986 else
37987   echo "$as_me: failed program was:" >&5
37988 sed 's/^/| /' conftest.$ac_ext >&5
37989
37990         eval wx_cv_func_$wx_func=no
37991 fi
37992
37993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37994       conftest$ac_exeext conftest.$ac_ext
37995
37996 fi
37997 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37998                { echo "$as_me:$LINENO: result: $ac_res" >&5
37999 echo "${ECHO_T}$ac_res" >&6; }
38000
38001     if eval test \$wx_cv_func_$wx_func = yes
38002     then
38003       cat >>confdefs.h <<_ACEOF
38004 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38005 _ACEOF
38006
38007
38008     else
38009       :
38010
38011     fi
38012   done
38013
38014 fi
38015
38016
38017   for wx_func in strtok_r
38018   do
38019     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38020 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38021 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38022   echo $ECHO_N "(cached) $ECHO_C" >&6
38023 else
38024
38025         cat >conftest.$ac_ext <<_ACEOF
38026
38027             /* confdefs.h.  */
38028 _ACEOF
38029 cat confdefs.h >>conftest.$ac_ext
38030 cat >>conftest.$ac_ext <<_ACEOF
38031 /* end confdefs.h.  */
38032
38033                 #define _REENTRANT
38034                 $ac_includes_default
38035
38036 int
38037 main ()
38038 {
38039
38040                 #ifndef $wx_func
38041                   &$wx_func;
38042                 #endif
38043
38044
38045   ;
38046   return 0;
38047 }
38048
38049 _ACEOF
38050 rm -f conftest.$ac_objext conftest$ac_exeext
38051 if { (ac_try="$ac_link"
38052 case "(($ac_try" in
38053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38054   *) ac_try_echo=$ac_try;;
38055 esac
38056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38057   (eval "$ac_link") 2>conftest.er1
38058   ac_status=$?
38059   grep -v '^ *+' conftest.er1 >conftest.err
38060   rm -f conftest.er1
38061   cat conftest.err >&5
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); } && {
38064          test -z "$ac_c_werror_flag" ||
38065          test ! -s conftest.err
38066        } && test -s conftest$ac_exeext &&
38067        $as_test_x conftest$ac_exeext; then
38068   eval wx_cv_func_$wx_func=yes
38069 else
38070   echo "$as_me: failed program was:" >&5
38071 sed 's/^/| /' conftest.$ac_ext >&5
38072
38073         eval wx_cv_func_$wx_func=no
38074 fi
38075
38076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38077       conftest$ac_exeext conftest.$ac_ext
38078
38079 fi
38080 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38081                { echo "$as_me:$LINENO: result: $ac_res" >&5
38082 echo "${ECHO_T}$ac_res" >&6; }
38083
38084     if eval test \$wx_cv_func_$wx_func = yes
38085     then
38086       cat >>confdefs.h <<_ACEOF
38087 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38088 _ACEOF
38089
38090
38091     else
38092       :
38093
38094     fi
38095   done
38096
38097
38098 INET_LINK=
38099
38100 for ac_func in inet_addr
38101 do
38102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38106   echo $ECHO_N "(cached) $ECHO_C" >&6
38107 else
38108   cat >conftest.$ac_ext <<_ACEOF
38109 /* confdefs.h.  */
38110 _ACEOF
38111 cat confdefs.h >>conftest.$ac_ext
38112 cat >>conftest.$ac_ext <<_ACEOF
38113 /* end confdefs.h.  */
38114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38116 #define $ac_func innocuous_$ac_func
38117
38118 /* System header to define __stub macros and hopefully few prototypes,
38119     which can conflict with char $ac_func (); below.
38120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38121     <limits.h> exists even on freestanding compilers.  */
38122
38123 #ifdef __STDC__
38124 # include <limits.h>
38125 #else
38126 # include <assert.h>
38127 #endif
38128
38129 #undef $ac_func
38130
38131 /* Override any GCC internal prototype to avoid an error.
38132    Use char because int might match the return type of a GCC
38133    builtin and then its argument prototype would still apply.  */
38134 #ifdef __cplusplus
38135 extern "C"
38136 #endif
38137 char $ac_func ();
38138 /* The GNU C library defines this for functions which it implements
38139     to always fail with ENOSYS.  Some functions are actually named
38140     something starting with __ and the normal name is an alias.  */
38141 #if defined __stub_$ac_func || defined __stub___$ac_func
38142 choke me
38143 #endif
38144
38145 int
38146 main ()
38147 {
38148 return $ac_func ();
38149   ;
38150   return 0;
38151 }
38152 _ACEOF
38153 rm -f conftest.$ac_objext conftest$ac_exeext
38154 if { (ac_try="$ac_link"
38155 case "(($ac_try" in
38156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38157   *) ac_try_echo=$ac_try;;
38158 esac
38159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38160   (eval "$ac_link") 2>conftest.er1
38161   ac_status=$?
38162   grep -v '^ *+' conftest.er1 >conftest.err
38163   rm -f conftest.er1
38164   cat conftest.err >&5
38165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166   (exit $ac_status); } && {
38167          test -z "$ac_c_werror_flag" ||
38168          test ! -s conftest.err
38169        } && test -s conftest$ac_exeext &&
38170        $as_test_x conftest$ac_exeext; then
38171   eval "$as_ac_var=yes"
38172 else
38173   echo "$as_me: failed program was:" >&5
38174 sed 's/^/| /' conftest.$ac_ext >&5
38175
38176         eval "$as_ac_var=no"
38177 fi
38178
38179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38180       conftest$ac_exeext conftest.$ac_ext
38181 fi
38182 ac_res=`eval echo '${'$as_ac_var'}'`
38183                { echo "$as_me:$LINENO: result: $ac_res" >&5
38184 echo "${ECHO_T}$ac_res" >&6; }
38185 if test `eval echo '${'$as_ac_var'}'` = yes; then
38186   cat >>confdefs.h <<_ACEOF
38187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38188 _ACEOF
38189  cat >>confdefs.h <<\_ACEOF
38190 #define HAVE_INET_ADDR 1
38191 _ACEOF
38192
38193 else
38194
38195         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38196 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38197 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38198   echo $ECHO_N "(cached) $ECHO_C" >&6
38199 else
38200   ac_check_lib_save_LIBS=$LIBS
38201 LIBS="-lnsl  $LIBS"
38202 cat >conftest.$ac_ext <<_ACEOF
38203 /* confdefs.h.  */
38204 _ACEOF
38205 cat confdefs.h >>conftest.$ac_ext
38206 cat >>conftest.$ac_ext <<_ACEOF
38207 /* end confdefs.h.  */
38208
38209 /* Override any GCC internal prototype to avoid an error.
38210    Use char because int might match the return type of a GCC
38211    builtin and then its argument prototype would still apply.  */
38212 #ifdef __cplusplus
38213 extern "C"
38214 #endif
38215 char inet_addr ();
38216 int
38217 main ()
38218 {
38219 return inet_addr ();
38220   ;
38221   return 0;
38222 }
38223 _ACEOF
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (ac_try="$ac_link"
38226 case "(($ac_try" in
38227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38228   *) ac_try_echo=$ac_try;;
38229 esac
38230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38231   (eval "$ac_link") 2>conftest.er1
38232   ac_status=$?
38233   grep -v '^ *+' conftest.er1 >conftest.err
38234   rm -f conftest.er1
38235   cat conftest.err >&5
38236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237   (exit $ac_status); } && {
38238          test -z "$ac_c_werror_flag" ||
38239          test ! -s conftest.err
38240        } && test -s conftest$ac_exeext &&
38241        $as_test_x conftest$ac_exeext; then
38242   ac_cv_lib_nsl_inet_addr=yes
38243 else
38244   echo "$as_me: failed program was:" >&5
38245 sed 's/^/| /' conftest.$ac_ext >&5
38246
38247         ac_cv_lib_nsl_inet_addr=no
38248 fi
38249
38250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38251       conftest$ac_exeext conftest.$ac_ext
38252 LIBS=$ac_check_lib_save_LIBS
38253 fi
38254 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38255 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38256 if test $ac_cv_lib_nsl_inet_addr = yes; then
38257   INET_LINK="nsl"
38258 else
38259
38260                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38261 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38262 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38263   echo $ECHO_N "(cached) $ECHO_C" >&6
38264 else
38265   ac_check_lib_save_LIBS=$LIBS
38266 LIBS="-lresolv  $LIBS"
38267 cat >conftest.$ac_ext <<_ACEOF
38268 /* confdefs.h.  */
38269 _ACEOF
38270 cat confdefs.h >>conftest.$ac_ext
38271 cat >>conftest.$ac_ext <<_ACEOF
38272 /* end confdefs.h.  */
38273
38274 /* Override any GCC internal prototype to avoid an error.
38275    Use char because int might match the return type of a GCC
38276    builtin and then its argument prototype would still apply.  */
38277 #ifdef __cplusplus
38278 extern "C"
38279 #endif
38280 char inet_addr ();
38281 int
38282 main ()
38283 {
38284 return inet_addr ();
38285   ;
38286   return 0;
38287 }
38288 _ACEOF
38289 rm -f conftest.$ac_objext conftest$ac_exeext
38290 if { (ac_try="$ac_link"
38291 case "(($ac_try" in
38292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38293   *) ac_try_echo=$ac_try;;
38294 esac
38295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38296   (eval "$ac_link") 2>conftest.er1
38297   ac_status=$?
38298   grep -v '^ *+' conftest.er1 >conftest.err
38299   rm -f conftest.er1
38300   cat conftest.err >&5
38301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302   (exit $ac_status); } && {
38303          test -z "$ac_c_werror_flag" ||
38304          test ! -s conftest.err
38305        } && test -s conftest$ac_exeext &&
38306        $as_test_x conftest$ac_exeext; then
38307   ac_cv_lib_resolv_inet_addr=yes
38308 else
38309   echo "$as_me: failed program was:" >&5
38310 sed 's/^/| /' conftest.$ac_ext >&5
38311
38312         ac_cv_lib_resolv_inet_addr=no
38313 fi
38314
38315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38316       conftest$ac_exeext conftest.$ac_ext
38317 LIBS=$ac_check_lib_save_LIBS
38318 fi
38319 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38320 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38321 if test $ac_cv_lib_resolv_inet_addr = yes; then
38322   INET_LINK="resolv"
38323 else
38324
38325                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38326 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38327 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330   ac_check_lib_save_LIBS=$LIBS
38331 LIBS="-lsocket  $LIBS"
38332 cat >conftest.$ac_ext <<_ACEOF
38333 /* confdefs.h.  */
38334 _ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h.  */
38338
38339 /* Override any GCC internal prototype to avoid an error.
38340    Use char because int might match the return type of a GCC
38341    builtin and then its argument prototype would still apply.  */
38342 #ifdef __cplusplus
38343 extern "C"
38344 #endif
38345 char inet_addr ();
38346 int
38347 main ()
38348 {
38349 return inet_addr ();
38350   ;
38351   return 0;
38352 }
38353 _ACEOF
38354 rm -f conftest.$ac_objext conftest$ac_exeext
38355 if { (ac_try="$ac_link"
38356 case "(($ac_try" in
38357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38358   *) ac_try_echo=$ac_try;;
38359 esac
38360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38361   (eval "$ac_link") 2>conftest.er1
38362   ac_status=$?
38363   grep -v '^ *+' conftest.er1 >conftest.err
38364   rm -f conftest.er1
38365   cat conftest.err >&5
38366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367   (exit $ac_status); } && {
38368          test -z "$ac_c_werror_flag" ||
38369          test ! -s conftest.err
38370        } && test -s conftest$ac_exeext &&
38371        $as_test_x conftest$ac_exeext; then
38372   ac_cv_lib_socket_inet_addr=yes
38373 else
38374   echo "$as_me: failed program was:" >&5
38375 sed 's/^/| /' conftest.$ac_ext >&5
38376
38377         ac_cv_lib_socket_inet_addr=no
38378 fi
38379
38380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38381       conftest$ac_exeext conftest.$ac_ext
38382 LIBS=$ac_check_lib_save_LIBS
38383 fi
38384 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38385 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38386 if test $ac_cv_lib_socket_inet_addr = yes; then
38387   INET_LINK="socket"
38388
38389 fi
38390
38391
38392
38393 fi
38394
38395
38396
38397 fi
38398
38399
38400
38401 fi
38402 done
38403
38404
38405
38406 for ac_func in inet_aton
38407 do
38408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38412   echo $ECHO_N "(cached) $ECHO_C" >&6
38413 else
38414   cat >conftest.$ac_ext <<_ACEOF
38415 /* confdefs.h.  */
38416 _ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h.  */
38420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38422 #define $ac_func innocuous_$ac_func
38423
38424 /* System header to define __stub macros and hopefully few prototypes,
38425     which can conflict with char $ac_func (); below.
38426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38427     <limits.h> exists even on freestanding compilers.  */
38428
38429 #ifdef __STDC__
38430 # include <limits.h>
38431 #else
38432 # include <assert.h>
38433 #endif
38434
38435 #undef $ac_func
38436
38437 /* Override any GCC internal prototype to avoid an error.
38438    Use char because int might match the return type of a GCC
38439    builtin and then its argument prototype would still apply.  */
38440 #ifdef __cplusplus
38441 extern "C"
38442 #endif
38443 char $ac_func ();
38444 /* The GNU C library defines this for functions which it implements
38445     to always fail with ENOSYS.  Some functions are actually named
38446     something starting with __ and the normal name is an alias.  */
38447 #if defined __stub_$ac_func || defined __stub___$ac_func
38448 choke me
38449 #endif
38450
38451 int
38452 main ()
38453 {
38454 return $ac_func ();
38455   ;
38456   return 0;
38457 }
38458 _ACEOF
38459 rm -f conftest.$ac_objext conftest$ac_exeext
38460 if { (ac_try="$ac_link"
38461 case "(($ac_try" in
38462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38463   *) ac_try_echo=$ac_try;;
38464 esac
38465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38466   (eval "$ac_link") 2>conftest.er1
38467   ac_status=$?
38468   grep -v '^ *+' conftest.er1 >conftest.err
38469   rm -f conftest.er1
38470   cat conftest.err >&5
38471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472   (exit $ac_status); } && {
38473          test -z "$ac_c_werror_flag" ||
38474          test ! -s conftest.err
38475        } && test -s conftest$ac_exeext &&
38476        $as_test_x conftest$ac_exeext; then
38477   eval "$as_ac_var=yes"
38478 else
38479   echo "$as_me: failed program was:" >&5
38480 sed 's/^/| /' conftest.$ac_ext >&5
38481
38482         eval "$as_ac_var=no"
38483 fi
38484
38485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38486       conftest$ac_exeext conftest.$ac_ext
38487 fi
38488 ac_res=`eval echo '${'$as_ac_var'}'`
38489                { echo "$as_me:$LINENO: result: $ac_res" >&5
38490 echo "${ECHO_T}$ac_res" >&6; }
38491 if test `eval echo '${'$as_ac_var'}'` = yes; then
38492   cat >>confdefs.h <<_ACEOF
38493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38494 _ACEOF
38495  cat >>confdefs.h <<\_ACEOF
38496 #define HAVE_INET_ATON 1
38497 _ACEOF
38498
38499 else
38500
38501                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38502 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38503 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38504 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38505   echo $ECHO_N "(cached) $ECHO_C" >&6
38506 else
38507   ac_check_lib_save_LIBS=$LIBS
38508 LIBS="-l$INET_LINK  $LIBS"
38509 cat >conftest.$ac_ext <<_ACEOF
38510 /* confdefs.h.  */
38511 _ACEOF
38512 cat confdefs.h >>conftest.$ac_ext
38513 cat >>conftest.$ac_ext <<_ACEOF
38514 /* end confdefs.h.  */
38515
38516 /* Override any GCC internal prototype to avoid an error.
38517    Use char because int might match the return type of a GCC
38518    builtin and then its argument prototype would still apply.  */
38519 #ifdef __cplusplus
38520 extern "C"
38521 #endif
38522 char inet_aton ();
38523 int
38524 main ()
38525 {
38526 return inet_aton ();
38527   ;
38528   return 0;
38529 }
38530 _ACEOF
38531 rm -f conftest.$ac_objext conftest$ac_exeext
38532 if { (ac_try="$ac_link"
38533 case "(($ac_try" in
38534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38535   *) ac_try_echo=$ac_try;;
38536 esac
38537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38538   (eval "$ac_link") 2>conftest.er1
38539   ac_status=$?
38540   grep -v '^ *+' conftest.er1 >conftest.err
38541   rm -f conftest.er1
38542   cat conftest.err >&5
38543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544   (exit $ac_status); } && {
38545          test -z "$ac_c_werror_flag" ||
38546          test ! -s conftest.err
38547        } && test -s conftest$ac_exeext &&
38548        $as_test_x conftest$ac_exeext; then
38549   eval "$as_ac_Lib=yes"
38550 else
38551   echo "$as_me: failed program was:" >&5
38552 sed 's/^/| /' conftest.$ac_ext >&5
38553
38554         eval "$as_ac_Lib=no"
38555 fi
38556
38557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38558       conftest$ac_exeext conftest.$ac_ext
38559 LIBS=$ac_check_lib_save_LIBS
38560 fi
38561 ac_res=`eval echo '${'$as_ac_Lib'}'`
38562                { echo "$as_me:$LINENO: result: $ac_res" >&5
38563 echo "${ECHO_T}$ac_res" >&6; }
38564 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38565   cat >>confdefs.h <<\_ACEOF
38566 #define HAVE_INET_ATON 1
38567 _ACEOF
38568
38569 fi
38570
38571
38572 fi
38573 done
38574
38575
38576 if test "x$INET_LINK" != "x"; then
38577     cat >>confdefs.h <<\_ACEOF
38578 #define HAVE_INET_ADDR 1
38579 _ACEOF
38580
38581     INET_LINK=" -l$INET_LINK"
38582 fi
38583
38584
38585   for wx_func in fdopen
38586   do
38587     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38588 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38589 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38590   echo $ECHO_N "(cached) $ECHO_C" >&6
38591 else
38592
38593         cat >conftest.$ac_ext <<_ACEOF
38594
38595             /* confdefs.h.  */
38596 _ACEOF
38597 cat confdefs.h >>conftest.$ac_ext
38598 cat >>conftest.$ac_ext <<_ACEOF
38599 /* end confdefs.h.  */
38600
38601
38602                 $ac_includes_default
38603
38604 int
38605 main ()
38606 {
38607
38608                 #ifndef $wx_func
38609                   &$wx_func;
38610                 #endif
38611
38612
38613   ;
38614   return 0;
38615 }
38616
38617 _ACEOF
38618 rm -f conftest.$ac_objext conftest$ac_exeext
38619 if { (ac_try="$ac_link"
38620 case "(($ac_try" in
38621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38622   *) ac_try_echo=$ac_try;;
38623 esac
38624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38625   (eval "$ac_link") 2>conftest.er1
38626   ac_status=$?
38627   grep -v '^ *+' conftest.er1 >conftest.err
38628   rm -f conftest.er1
38629   cat conftest.err >&5
38630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); } && {
38632          test -z "$ac_c_werror_flag" ||
38633          test ! -s conftest.err
38634        } && test -s conftest$ac_exeext &&
38635        $as_test_x conftest$ac_exeext; then
38636   eval wx_cv_func_$wx_func=yes
38637 else
38638   echo "$as_me: failed program was:" >&5
38639 sed 's/^/| /' conftest.$ac_ext >&5
38640
38641         eval wx_cv_func_$wx_func=no
38642 fi
38643
38644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38645       conftest$ac_exeext conftest.$ac_ext
38646
38647 fi
38648 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38649                { echo "$as_me:$LINENO: result: $ac_res" >&5
38650 echo "${ECHO_T}$ac_res" >&6; }
38651
38652     if eval test \$wx_cv_func_$wx_func = yes
38653     then
38654       cat >>confdefs.h <<_ACEOF
38655 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38656 _ACEOF
38657
38658
38659     else
38660       :
38661
38662     fi
38663   done
38664
38665
38666 if test "$wxUSE_TARSTREAM" = "yes"; then
38667
38668   for wx_func in sysconf
38669   do
38670     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38671 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38672 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38673   echo $ECHO_N "(cached) $ECHO_C" >&6
38674 else
38675
38676         cat >conftest.$ac_ext <<_ACEOF
38677
38678             /* confdefs.h.  */
38679 _ACEOF
38680 cat confdefs.h >>conftest.$ac_ext
38681 cat >>conftest.$ac_ext <<_ACEOF
38682 /* end confdefs.h.  */
38683
38684
38685                 $ac_includes_default
38686
38687 int
38688 main ()
38689 {
38690
38691                 #ifndef $wx_func
38692                   &$wx_func;
38693                 #endif
38694
38695
38696   ;
38697   return 0;
38698 }
38699
38700 _ACEOF
38701 rm -f conftest.$ac_objext conftest$ac_exeext
38702 if { (ac_try="$ac_link"
38703 case "(($ac_try" in
38704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38705   *) ac_try_echo=$ac_try;;
38706 esac
38707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38708   (eval "$ac_link") 2>conftest.er1
38709   ac_status=$?
38710   grep -v '^ *+' conftest.er1 >conftest.err
38711   rm -f conftest.er1
38712   cat conftest.err >&5
38713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714   (exit $ac_status); } && {
38715          test -z "$ac_c_werror_flag" ||
38716          test ! -s conftest.err
38717        } && test -s conftest$ac_exeext &&
38718        $as_test_x conftest$ac_exeext; then
38719   eval wx_cv_func_$wx_func=yes
38720 else
38721   echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38723
38724         eval wx_cv_func_$wx_func=no
38725 fi
38726
38727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38728       conftest$ac_exeext conftest.$ac_ext
38729
38730 fi
38731 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38732                { echo "$as_me:$LINENO: result: $ac_res" >&5
38733 echo "${ECHO_T}$ac_res" >&6; }
38734
38735     if eval test \$wx_cv_func_$wx_func = yes
38736     then
38737       cat >>confdefs.h <<_ACEOF
38738 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38739 _ACEOF
38740
38741
38742     else
38743       :
38744
38745     fi
38746   done
38747
38748
38749
38750   for wx_func in getpwuid_r
38751   do
38752     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38753 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38754 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38755   echo $ECHO_N "(cached) $ECHO_C" >&6
38756 else
38757
38758         cat >conftest.$ac_ext <<_ACEOF
38759
38760             /* confdefs.h.  */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h.  */
38765
38766
38767                     #define _REENTRANT
38768                     #include <pwd.h>
38769
38770                 $ac_includes_default
38771
38772 int
38773 main ()
38774 {
38775
38776                 #ifndef $wx_func
38777                   &$wx_func;
38778                 #endif
38779
38780                     struct passwd pw, *ppw;
38781                     char buf[1024];
38782                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38783
38784
38785   ;
38786   return 0;
38787 }
38788
38789 _ACEOF
38790 rm -f conftest.$ac_objext conftest$ac_exeext
38791 if { (ac_try="$ac_link"
38792 case "(($ac_try" in
38793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38794   *) ac_try_echo=$ac_try;;
38795 esac
38796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38797   (eval "$ac_link") 2>conftest.er1
38798   ac_status=$?
38799   grep -v '^ *+' conftest.er1 >conftest.err
38800   rm -f conftest.er1
38801   cat conftest.err >&5
38802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803   (exit $ac_status); } && {
38804          test -z "$ac_c_werror_flag" ||
38805          test ! -s conftest.err
38806        } && test -s conftest$ac_exeext &&
38807        $as_test_x conftest$ac_exeext; then
38808   eval wx_cv_func_$wx_func=yes
38809 else
38810   echo "$as_me: failed program was:" >&5
38811 sed 's/^/| /' conftest.$ac_ext >&5
38812
38813         eval wx_cv_func_$wx_func=no
38814 fi
38815
38816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38817       conftest$ac_exeext conftest.$ac_ext
38818
38819 fi
38820 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38821                { echo "$as_me:$LINENO: result: $ac_res" >&5
38822 echo "${ECHO_T}$ac_res" >&6; }
38823
38824     if eval test \$wx_cv_func_$wx_func = yes
38825     then
38826       cat >>confdefs.h <<_ACEOF
38827 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38828 _ACEOF
38829
38830
38831     else
38832       :
38833
38834     fi
38835   done
38836
38837
38838
38839   for wx_func in getgrgid_r
38840   do
38841     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38842 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38843 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38844   echo $ECHO_N "(cached) $ECHO_C" >&6
38845 else
38846
38847         cat >conftest.$ac_ext <<_ACEOF
38848
38849             /* confdefs.h.  */
38850 _ACEOF
38851 cat confdefs.h >>conftest.$ac_ext
38852 cat >>conftest.$ac_ext <<_ACEOF
38853 /* end confdefs.h.  */
38854
38855
38856                     #define _REENTRANT
38857                     #include <grp.h>
38858
38859                 $ac_includes_default
38860
38861 int
38862 main ()
38863 {
38864
38865                 #ifndef $wx_func
38866                   &$wx_func;
38867                 #endif
38868
38869                     struct group grp, *pgrp;
38870                     char buf[1024];
38871                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38872
38873
38874   ;
38875   return 0;
38876 }
38877
38878 _ACEOF
38879 rm -f conftest.$ac_objext conftest$ac_exeext
38880 if { (ac_try="$ac_link"
38881 case "(($ac_try" in
38882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38883   *) ac_try_echo=$ac_try;;
38884 esac
38885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38886   (eval "$ac_link") 2>conftest.er1
38887   ac_status=$?
38888   grep -v '^ *+' conftest.er1 >conftest.err
38889   rm -f conftest.er1
38890   cat conftest.err >&5
38891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892   (exit $ac_status); } && {
38893          test -z "$ac_c_werror_flag" ||
38894          test ! -s conftest.err
38895        } && test -s conftest$ac_exeext &&
38896        $as_test_x conftest$ac_exeext; then
38897   eval wx_cv_func_$wx_func=yes
38898 else
38899   echo "$as_me: failed program was:" >&5
38900 sed 's/^/| /' conftest.$ac_ext >&5
38901
38902         eval wx_cv_func_$wx_func=no
38903 fi
38904
38905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38906       conftest$ac_exeext conftest.$ac_ext
38907
38908 fi
38909 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38910                { echo "$as_me:$LINENO: result: $ac_res" >&5
38911 echo "${ECHO_T}$ac_res" >&6; }
38912
38913     if eval test \$wx_cv_func_$wx_func = yes
38914     then
38915       cat >>confdefs.h <<_ACEOF
38916 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38917 _ACEOF
38918
38919
38920     else
38921       :
38922
38923     fi
38924   done
38925
38926 fi
38927
38928 fi
38929
38930
38931
38932 cat >confcache <<\_ACEOF
38933 # This file is a shell script that caches the results of configure
38934 # tests run on this system so they can be shared between configure
38935 # scripts and configure runs, see configure's option --config-cache.
38936 # It is not useful on other systems.  If it contains results you don't
38937 # want to keep, you may remove or edit it.
38938 #
38939 # config.status only pays attention to the cache file if you give it
38940 # the --recheck option to rerun configure.
38941 #
38942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38944 # following values.
38945
38946 _ACEOF
38947
38948 # The following way of writing the cache mishandles newlines in values,
38949 # but we know of no workaround that is simple, portable, and efficient.
38950 # So, we kill variables containing newlines.
38951 # Ultrix sh set writes to stderr and can't be redirected directly,
38952 # and sets the high bit in the cache file unless we assign to the vars.
38953 (
38954   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38955     eval ac_val=\$$ac_var
38956     case $ac_val in #(
38957     *${as_nl}*)
38958       case $ac_var in #(
38959       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38960 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38961       esac
38962       case $ac_var in #(
38963       _ | IFS | as_nl) ;; #(
38964       *) $as_unset $ac_var ;;
38965       esac ;;
38966     esac
38967   done
38968
38969   (set) 2>&1 |
38970     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38971     *${as_nl}ac_space=\ *)
38972       # `set' does not quote correctly, so add quotes (double-quote
38973       # substitution turns \\\\ into \\, and sed turns \\ into \).
38974       sed -n \
38975         "s/'/'\\\\''/g;
38976           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38977       ;; #(
38978     *)
38979       # `set' quotes correctly as required by POSIX, so do not add quotes.
38980       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38981       ;;
38982     esac |
38983     sort
38984 ) |
38985   sed '
38986      /^ac_cv_env_/b end
38987      t clear
38988      :clear
38989      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38990      t end
38991      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38992      :end' >>confcache
38993 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38994   if test -w "$cache_file"; then
38995     test "x$cache_file" != "x/dev/null" &&
38996       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38997 echo "$as_me: updating cache $cache_file" >&6;}
38998     cat confcache >$cache_file
38999   else
39000     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39001 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39002   fi
39003 fi
39004 rm -f confcache
39005
39006
39007 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39008
39009
39010     THREADS_LINK=
39011     THREADS_CFLAGS=
39012
39013     if test "$wxUSE_THREADS" = "yes" ; then
39014         if test "$USE_BEOS" = 1; then
39015             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39016 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39017             wxUSE_THREADS="no"
39018         fi
39019     fi
39020
39021     if test "$wxUSE_THREADS" = "yes" ; then
39022
39023
39024                                 THREAD_OPTS="-pthread"
39025         if test "x$SUNCXX" = xyes; then
39026             THREAD_OPTS="-mt lthread $THREAD_OPTS"
39027         fi
39028
39029         case "${host}" in
39030           *-*-solaris2* | *-*-sunos4* )
39031                 if test "x$GCC" = "xyes"; then
39032                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
39033                 fi
39034                 ;;
39035           *-*-freebsd*)
39036                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39037                 ;;
39038           *-*-darwin* | *-*-cygwin* )
39039                                                 THREAD_OPTS=""
39040                 ;;
39041           *-*-aix*)
39042                                 THREAD_OPTS="pthreads"
39043                 ;;
39044           *-hp-hpux* )
39045                 if test "x$GCC" = "xyes"; then
39046                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39047                         THREAD_OPTS=""
39048                 else
39049                                                             THREAD_OPTS="-mt"
39050                 fi
39051                 ;;
39052
39053           *-*-irix* )
39054                                                                 if test "x$GCC" = "xyes"; then
39055                     THREAD_OPTS=""
39056                 fi
39057                 ;;
39058
39059           *-*-*UnixWare*)
39060                                 if test "x$GCC" != "xyes"; then
39061                     THREAD_OPTS="-Ethread"
39062                 fi
39063                 ;;
39064         esac
39065
39066                                 THREAD_OPTS="$THREAD_OPTS pthread none"
39067
39068                 THREADS_OK=no
39069         for flag in $THREAD_OPTS; do
39070             case $flag in
39071                 none)
39072                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39073 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39074                     ;;
39075
39076                 -*)
39077                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39078 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39079                     THREADS_CFLAGS="$flag"
39080                     ;;
39081
39082                 *)
39083                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39084 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39085                     THREADS_LINK="-l$flag"
39086                     ;;
39087               esac
39088
39089               save_LIBS="$LIBS"
39090               save_CFLAGS="$CFLAGS"
39091               LIBS="$THREADS_LINK $LIBS"
39092               CFLAGS="$THREADS_CFLAGS $CFLAGS"
39093
39094               cat >conftest.$ac_ext <<_ACEOF
39095 /* confdefs.h.  */
39096 _ACEOF
39097 cat confdefs.h >>conftest.$ac_ext
39098 cat >>conftest.$ac_ext <<_ACEOF
39099 /* end confdefs.h.  */
39100 #include <pthread.h>
39101 int
39102 main ()
39103 {
39104 pthread_create(0,0,0,0);
39105   ;
39106   return 0;
39107 }
39108 _ACEOF
39109 rm -f conftest.$ac_objext conftest$ac_exeext
39110 if { (ac_try="$ac_link"
39111 case "(($ac_try" in
39112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39113   *) ac_try_echo=$ac_try;;
39114 esac
39115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39116   (eval "$ac_link") 2>conftest.er1
39117   ac_status=$?
39118   grep -v '^ *+' conftest.er1 >conftest.err
39119   rm -f conftest.er1
39120   cat conftest.err >&5
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); } && {
39123          test -z "$ac_c_werror_flag" ||
39124          test ! -s conftest.err
39125        } && test -s conftest$ac_exeext &&
39126        $as_test_x conftest$ac_exeext; then
39127   THREADS_OK=yes
39128 else
39129   echo "$as_me: failed program was:" >&5
39130 sed 's/^/| /' conftest.$ac_ext >&5
39131
39132
39133 fi
39134
39135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39136       conftest$ac_exeext conftest.$ac_ext
39137
39138               LIBS="$save_LIBS"
39139               CFLAGS="$save_CFLAGS"
39140
39141               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39142 echo "${ECHO_T}$THREADS_OK" >&6; }
39143               if test "x$THREADS_OK" = "xyes"; then
39144                       break;
39145               fi
39146
39147               THREADS_LINK=""
39148               THREADS_CFLAGS=""
39149       done
39150
39151       if test "x$THREADS_OK" != "xyes"; then
39152           wxUSE_THREADS=no
39153           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39154 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39155       else
39156                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39157           LIBS="$THREADS_LINK $LIBS"
39158
39159           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39160 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39161           flag=no
39162           case "${host}" in
39163             *-aix*)
39164                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39165                 flag="-D_THREAD_SAFE"
39166                 ;;
39167             *-freebsd*)
39168                 flag="-D_THREAD_SAFE"
39169                 ;;
39170             *-hp-hpux* )
39171                 flag="-D_REENTRANT"
39172                 if test "x$GCC" != "xyes"; then
39173                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39174                 fi
39175                 ;;
39176             *solaris* | alpha*-osf*)
39177                 flag="-D_REENTRANT"
39178                 ;;
39179           esac
39180           { echo "$as_me:$LINENO: result: ${flag}" >&5
39181 echo "${ECHO_T}${flag}" >&6; }
39182           if test "x$flag" != xno; then
39183               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39184           fi
39185
39186                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39187       fi
39188     fi
39189
39190         if test "$wxUSE_THREADS" = "yes" ; then
39191
39192 for ac_func in thr_setconcurrency
39193 do
39194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39198   echo $ECHO_N "(cached) $ECHO_C" >&6
39199 else
39200   cat >conftest.$ac_ext <<_ACEOF
39201 /* confdefs.h.  */
39202 _ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h.  */
39206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39208 #define $ac_func innocuous_$ac_func
39209
39210 /* System header to define __stub macros and hopefully few prototypes,
39211     which can conflict with char $ac_func (); below.
39212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39213     <limits.h> exists even on freestanding compilers.  */
39214
39215 #ifdef __STDC__
39216 # include <limits.h>
39217 #else
39218 # include <assert.h>
39219 #endif
39220
39221 #undef $ac_func
39222
39223 /* Override any GCC internal prototype to avoid an error.
39224    Use char because int might match the return type of a GCC
39225    builtin and then its argument prototype would still apply.  */
39226 #ifdef __cplusplus
39227 extern "C"
39228 #endif
39229 char $ac_func ();
39230 /* The GNU C library defines this for functions which it implements
39231     to always fail with ENOSYS.  Some functions are actually named
39232     something starting with __ and the normal name is an alias.  */
39233 #if defined __stub_$ac_func || defined __stub___$ac_func
39234 choke me
39235 #endif
39236
39237 int
39238 main ()
39239 {
39240 return $ac_func ();
39241   ;
39242   return 0;
39243 }
39244 _ACEOF
39245 rm -f conftest.$ac_objext conftest$ac_exeext
39246 if { (ac_try="$ac_link"
39247 case "(($ac_try" in
39248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39249   *) ac_try_echo=$ac_try;;
39250 esac
39251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39252   (eval "$ac_link") 2>conftest.er1
39253   ac_status=$?
39254   grep -v '^ *+' conftest.er1 >conftest.err
39255   rm -f conftest.er1
39256   cat conftest.err >&5
39257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258   (exit $ac_status); } && {
39259          test -z "$ac_c_werror_flag" ||
39260          test ! -s conftest.err
39261        } && test -s conftest$ac_exeext &&
39262        $as_test_x conftest$ac_exeext; then
39263   eval "$as_ac_var=yes"
39264 else
39265   echo "$as_me: failed program was:" >&5
39266 sed 's/^/| /' conftest.$ac_ext >&5
39267
39268         eval "$as_ac_var=no"
39269 fi
39270
39271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39272       conftest$ac_exeext conftest.$ac_ext
39273 fi
39274 ac_res=`eval echo '${'$as_ac_var'}'`
39275                { echo "$as_me:$LINENO: result: $ac_res" >&5
39276 echo "${ECHO_T}$ac_res" >&6; }
39277 if test `eval echo '${'$as_ac_var'}'` = yes; then
39278   cat >>confdefs.h <<_ACEOF
39279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39280 _ACEOF
39281
39282 fi
39283 done
39284
39285
39286                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39287 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39288 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39289   echo $ECHO_N "(cached) $ECHO_C" >&6
39290 else
39291
39292                                 ac_ext=cpp
39293 ac_cpp='$CXXCPP $CPPFLAGS'
39294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39297
39298         cat >conftest.$ac_ext <<_ACEOF
39299 /* confdefs.h.  */
39300 _ACEOF
39301 cat confdefs.h >>conftest.$ac_ext
39302 cat >>conftest.$ac_ext <<_ACEOF
39303 /* end confdefs.h.  */
39304 #include <pthread.h>
39305                void ThreadCleanupFunc(void *p);
39306
39307 int
39308 main ()
39309 {
39310
39311                 void *p;
39312                 pthread_cleanup_push(ThreadCleanupFunc, p);
39313                 pthread_cleanup_pop(0);
39314
39315   ;
39316   return 0;
39317 }
39318 _ACEOF
39319 rm -f conftest.$ac_objext
39320 if { (ac_try="$ac_compile"
39321 case "(($ac_try" in
39322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39323   *) ac_try_echo=$ac_try;;
39324 esac
39325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39326   (eval "$ac_compile") 2>conftest.er1
39327   ac_status=$?
39328   grep -v '^ *+' conftest.er1 >conftest.err
39329   rm -f conftest.er1
39330   cat conftest.err >&5
39331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332   (exit $ac_status); } && {
39333          test -z "$ac_cxx_werror_flag" ||
39334          test ! -s conftest.err
39335        } && test -s conftest.$ac_objext; then
39336
39337                wx_cv_func_pthread_cleanup=yes
39338
39339 else
39340   echo "$as_me: failed program was:" >&5
39341 sed 's/^/| /' conftest.$ac_ext >&5
39342
39343
39344                wx_cv_func_pthread_cleanup=no
39345
39346
39347 fi
39348
39349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39350         ac_ext=c
39351 ac_cpp='$CPP $CPPFLAGS'
39352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39355
39356
39357 fi
39358 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39359 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39360       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39361         cat >>confdefs.h <<\_ACEOF
39362 #define wxHAVE_PTHREAD_CLEANUP 1
39363 _ACEOF
39364
39365       fi
39366
39367
39368 for ac_header in sched.h
39369 do
39370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39374   echo $ECHO_N "(cached) $ECHO_C" >&6
39375 else
39376   cat >conftest.$ac_ext <<_ACEOF
39377 /* confdefs.h.  */
39378 _ACEOF
39379 cat confdefs.h >>conftest.$ac_ext
39380 cat >>conftest.$ac_ext <<_ACEOF
39381 /* end confdefs.h.  */
39382 $ac_includes_default
39383
39384 #include <$ac_header>
39385 _ACEOF
39386 rm -f conftest.$ac_objext
39387 if { (ac_try="$ac_compile"
39388 case "(($ac_try" in
39389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39390   *) ac_try_echo=$ac_try;;
39391 esac
39392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39393   (eval "$ac_compile") 2>conftest.er1
39394   ac_status=$?
39395   grep -v '^ *+' conftest.er1 >conftest.err
39396   rm -f conftest.er1
39397   cat conftest.err >&5
39398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399   (exit $ac_status); } && {
39400          test -z "$ac_c_werror_flag" ||
39401          test ! -s conftest.err
39402        } && test -s conftest.$ac_objext; then
39403   eval "$as_ac_Header=yes"
39404 else
39405   echo "$as_me: failed program was:" >&5
39406 sed 's/^/| /' conftest.$ac_ext >&5
39407
39408         eval "$as_ac_Header=no"
39409 fi
39410
39411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39412 fi
39413 ac_res=`eval echo '${'$as_ac_Header'}'`
39414                { echo "$as_me:$LINENO: result: $ac_res" >&5
39415 echo "${ECHO_T}$ac_res" >&6; }
39416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39417   cat >>confdefs.h <<_ACEOF
39418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39419 _ACEOF
39420
39421 fi
39422
39423 done
39424
39425       if test "$ac_cv_header_sched_h" = "yes"; then
39426           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39427 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39428 if test "${ac_cv_func_sched_yield+set}" = set; then
39429   echo $ECHO_N "(cached) $ECHO_C" >&6
39430 else
39431   cat >conftest.$ac_ext <<_ACEOF
39432 /* confdefs.h.  */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h.  */
39437 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39439 #define sched_yield innocuous_sched_yield
39440
39441 /* System header to define __stub macros and hopefully few prototypes,
39442     which can conflict with char sched_yield (); below.
39443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444     <limits.h> exists even on freestanding compilers.  */
39445
39446 #ifdef __STDC__
39447 # include <limits.h>
39448 #else
39449 # include <assert.h>
39450 #endif
39451
39452 #undef sched_yield
39453
39454 /* Override any GCC internal prototype to avoid an error.
39455    Use char because int might match the return type of a GCC
39456    builtin and then its argument prototype would still apply.  */
39457 #ifdef __cplusplus
39458 extern "C"
39459 #endif
39460 char sched_yield ();
39461 /* The GNU C library defines this for functions which it implements
39462     to always fail with ENOSYS.  Some functions are actually named
39463     something starting with __ and the normal name is an alias.  */
39464 #if defined __stub_sched_yield || defined __stub___sched_yield
39465 choke me
39466 #endif
39467
39468 int
39469 main ()
39470 {
39471 return sched_yield ();
39472   ;
39473   return 0;
39474 }
39475 _ACEOF
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483   (eval "$ac_link") 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } && {
39490          test -z "$ac_c_werror_flag" ||
39491          test ! -s conftest.err
39492        } && test -s conftest$ac_exeext &&
39493        $as_test_x conftest$ac_exeext; then
39494   ac_cv_func_sched_yield=yes
39495 else
39496   echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39498
39499         ac_cv_func_sched_yield=no
39500 fi
39501
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503       conftest$ac_exeext conftest.$ac_ext
39504 fi
39505 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39506 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39507 if test $ac_cv_func_sched_yield = yes; then
39508   cat >>confdefs.h <<\_ACEOF
39509 #define HAVE_SCHED_YIELD 1
39510 _ACEOF
39511
39512 else
39513
39514                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39515 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39516 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39517   echo $ECHO_N "(cached) $ECHO_C" >&6
39518 else
39519   ac_check_lib_save_LIBS=$LIBS
39520 LIBS="-lposix4  $LIBS"
39521 cat >conftest.$ac_ext <<_ACEOF
39522 /* confdefs.h.  */
39523 _ACEOF
39524 cat confdefs.h >>conftest.$ac_ext
39525 cat >>conftest.$ac_ext <<_ACEOF
39526 /* end confdefs.h.  */
39527
39528 /* Override any GCC internal prototype to avoid an error.
39529    Use char because int might match the return type of a GCC
39530    builtin and then its argument prototype would still apply.  */
39531 #ifdef __cplusplus
39532 extern "C"
39533 #endif
39534 char sched_yield ();
39535 int
39536 main ()
39537 {
39538 return sched_yield ();
39539   ;
39540   return 0;
39541 }
39542 _ACEOF
39543 rm -f conftest.$ac_objext conftest$ac_exeext
39544 if { (ac_try="$ac_link"
39545 case "(($ac_try" in
39546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39547   *) ac_try_echo=$ac_try;;
39548 esac
39549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39550   (eval "$ac_link") 2>conftest.er1
39551   ac_status=$?
39552   grep -v '^ *+' conftest.er1 >conftest.err
39553   rm -f conftest.er1
39554   cat conftest.err >&5
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); } && {
39557          test -z "$ac_c_werror_flag" ||
39558          test ! -s conftest.err
39559        } && test -s conftest$ac_exeext &&
39560        $as_test_x conftest$ac_exeext; then
39561   ac_cv_lib_posix4_sched_yield=yes
39562 else
39563   echo "$as_me: failed program was:" >&5
39564 sed 's/^/| /' conftest.$ac_ext >&5
39565
39566         ac_cv_lib_posix4_sched_yield=no
39567 fi
39568
39569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39570       conftest$ac_exeext conftest.$ac_ext
39571 LIBS=$ac_check_lib_save_LIBS
39572 fi
39573 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39574 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39575 if test $ac_cv_lib_posix4_sched_yield = yes; then
39576   cat >>confdefs.h <<\_ACEOF
39577 #define HAVE_SCHED_YIELD 1
39578 _ACEOF
39579  POSIX4_LINK=" -lposix4"
39580 else
39581   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39582 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39583
39584 fi
39585
39586
39587
39588 fi
39589
39590       fi
39591
39592                                           HAVE_PRIOR_FUNCS=0
39593       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39594 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39595 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39596   echo $ECHO_N "(cached) $ECHO_C" >&6
39597 else
39598   cat >conftest.$ac_ext <<_ACEOF
39599 /* confdefs.h.  */
39600 _ACEOF
39601 cat confdefs.h >>conftest.$ac_ext
39602 cat >>conftest.$ac_ext <<_ACEOF
39603 /* end confdefs.h.  */
39604 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39606 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39607
39608 /* System header to define __stub macros and hopefully few prototypes,
39609     which can conflict with char pthread_attr_getschedpolicy (); below.
39610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39611     <limits.h> exists even on freestanding compilers.  */
39612
39613 #ifdef __STDC__
39614 # include <limits.h>
39615 #else
39616 # include <assert.h>
39617 #endif
39618
39619 #undef pthread_attr_getschedpolicy
39620
39621 /* Override any GCC internal prototype to avoid an error.
39622    Use char because int might match the return type of a GCC
39623    builtin and then its argument prototype would still apply.  */
39624 #ifdef __cplusplus
39625 extern "C"
39626 #endif
39627 char pthread_attr_getschedpolicy ();
39628 /* The GNU C library defines this for functions which it implements
39629     to always fail with ENOSYS.  Some functions are actually named
39630     something starting with __ and the normal name is an alias.  */
39631 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39632 choke me
39633 #endif
39634
39635 int
39636 main ()
39637 {
39638 return pthread_attr_getschedpolicy ();
39639   ;
39640   return 0;
39641 }
39642 _ACEOF
39643 rm -f conftest.$ac_objext conftest$ac_exeext
39644 if { (ac_try="$ac_link"
39645 case "(($ac_try" in
39646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39647   *) ac_try_echo=$ac_try;;
39648 esac
39649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39650   (eval "$ac_link") 2>conftest.er1
39651   ac_status=$?
39652   grep -v '^ *+' conftest.er1 >conftest.err
39653   rm -f conftest.er1
39654   cat conftest.err >&5
39655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656   (exit $ac_status); } && {
39657          test -z "$ac_c_werror_flag" ||
39658          test ! -s conftest.err
39659        } && test -s conftest$ac_exeext &&
39660        $as_test_x conftest$ac_exeext; then
39661   ac_cv_func_pthread_attr_getschedpolicy=yes
39662 else
39663   echo "$as_me: failed program was:" >&5
39664 sed 's/^/| /' conftest.$ac_ext >&5
39665
39666         ac_cv_func_pthread_attr_getschedpolicy=no
39667 fi
39668
39669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39670       conftest$ac_exeext conftest.$ac_ext
39671 fi
39672 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39673 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39674 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39675   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39676 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39677 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39678   echo $ECHO_N "(cached) $ECHO_C" >&6
39679 else
39680   cat >conftest.$ac_ext <<_ACEOF
39681 /* confdefs.h.  */
39682 _ACEOF
39683 cat confdefs.h >>conftest.$ac_ext
39684 cat >>conftest.$ac_ext <<_ACEOF
39685 /* end confdefs.h.  */
39686 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39688 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39689
39690 /* System header to define __stub macros and hopefully few prototypes,
39691     which can conflict with char pthread_attr_setschedparam (); below.
39692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39693     <limits.h> exists even on freestanding compilers.  */
39694
39695 #ifdef __STDC__
39696 # include <limits.h>
39697 #else
39698 # include <assert.h>
39699 #endif
39700
39701 #undef pthread_attr_setschedparam
39702
39703 /* Override any GCC internal prototype to avoid an error.
39704    Use char because int might match the return type of a GCC
39705    builtin and then its argument prototype would still apply.  */
39706 #ifdef __cplusplus
39707 extern "C"
39708 #endif
39709 char pthread_attr_setschedparam ();
39710 /* The GNU C library defines this for functions which it implements
39711     to always fail with ENOSYS.  Some functions are actually named
39712     something starting with __ and the normal name is an alias.  */
39713 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39714 choke me
39715 #endif
39716
39717 int
39718 main ()
39719 {
39720 return pthread_attr_setschedparam ();
39721   ;
39722   return 0;
39723 }
39724 _ACEOF
39725 rm -f conftest.$ac_objext conftest$ac_exeext
39726 if { (ac_try="$ac_link"
39727 case "(($ac_try" in
39728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39729   *) ac_try_echo=$ac_try;;
39730 esac
39731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39732   (eval "$ac_link") 2>conftest.er1
39733   ac_status=$?
39734   grep -v '^ *+' conftest.er1 >conftest.err
39735   rm -f conftest.er1
39736   cat conftest.err >&5
39737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738   (exit $ac_status); } && {
39739          test -z "$ac_c_werror_flag" ||
39740          test ! -s conftest.err
39741        } && test -s conftest$ac_exeext &&
39742        $as_test_x conftest$ac_exeext; then
39743   ac_cv_func_pthread_attr_setschedparam=yes
39744 else
39745   echo "$as_me: failed program was:" >&5
39746 sed 's/^/| /' conftest.$ac_ext >&5
39747
39748         ac_cv_func_pthread_attr_setschedparam=no
39749 fi
39750
39751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39752       conftest$ac_exeext conftest.$ac_ext
39753 fi
39754 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39755 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39756 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39757   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39758 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39759 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39760   echo $ECHO_N "(cached) $ECHO_C" >&6
39761 else
39762   cat >conftest.$ac_ext <<_ACEOF
39763 /* confdefs.h.  */
39764 _ACEOF
39765 cat confdefs.h >>conftest.$ac_ext
39766 cat >>conftest.$ac_ext <<_ACEOF
39767 /* end confdefs.h.  */
39768 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39770 #define sched_get_priority_max innocuous_sched_get_priority_max
39771
39772 /* System header to define __stub macros and hopefully few prototypes,
39773     which can conflict with char sched_get_priority_max (); below.
39774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39775     <limits.h> exists even on freestanding compilers.  */
39776
39777 #ifdef __STDC__
39778 # include <limits.h>
39779 #else
39780 # include <assert.h>
39781 #endif
39782
39783 #undef sched_get_priority_max
39784
39785 /* Override any GCC internal prototype to avoid an error.
39786    Use char because int might match the return type of a GCC
39787    builtin and then its argument prototype would still apply.  */
39788 #ifdef __cplusplus
39789 extern "C"
39790 #endif
39791 char sched_get_priority_max ();
39792 /* The GNU C library defines this for functions which it implements
39793     to always fail with ENOSYS.  Some functions are actually named
39794     something starting with __ and the normal name is an alias.  */
39795 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39796 choke me
39797 #endif
39798
39799 int
39800 main ()
39801 {
39802 return sched_get_priority_max ();
39803   ;
39804   return 0;
39805 }
39806 _ACEOF
39807 rm -f conftest.$ac_objext conftest$ac_exeext
39808 if { (ac_try="$ac_link"
39809 case "(($ac_try" in
39810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39811   *) ac_try_echo=$ac_try;;
39812 esac
39813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39814   (eval "$ac_link") 2>conftest.er1
39815   ac_status=$?
39816   grep -v '^ *+' conftest.er1 >conftest.err
39817   rm -f conftest.er1
39818   cat conftest.err >&5
39819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820   (exit $ac_status); } && {
39821          test -z "$ac_c_werror_flag" ||
39822          test ! -s conftest.err
39823        } && test -s conftest$ac_exeext &&
39824        $as_test_x conftest$ac_exeext; then
39825   ac_cv_func_sched_get_priority_max=yes
39826 else
39827   echo "$as_me: failed program was:" >&5
39828 sed 's/^/| /' conftest.$ac_ext >&5
39829
39830         ac_cv_func_sched_get_priority_max=no
39831 fi
39832
39833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39834       conftest$ac_exeext conftest.$ac_ext
39835 fi
39836 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39837 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39838 if test $ac_cv_func_sched_get_priority_max = yes; then
39839   HAVE_PRIOR_FUNCS=1
39840 else
39841   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39842 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39843 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39844   echo $ECHO_N "(cached) $ECHO_C" >&6
39845 else
39846   ac_check_lib_save_LIBS=$LIBS
39847 LIBS="-lposix4  $LIBS"
39848 cat >conftest.$ac_ext <<_ACEOF
39849 /* confdefs.h.  */
39850 _ACEOF
39851 cat confdefs.h >>conftest.$ac_ext
39852 cat >>conftest.$ac_ext <<_ACEOF
39853 /* end confdefs.h.  */
39854
39855 /* Override any GCC internal prototype to avoid an error.
39856    Use char because int might match the return type of a GCC
39857    builtin and then its argument prototype would still apply.  */
39858 #ifdef __cplusplus
39859 extern "C"
39860 #endif
39861 char sched_get_priority_max ();
39862 int
39863 main ()
39864 {
39865 return sched_get_priority_max ();
39866   ;
39867   return 0;
39868 }
39869 _ACEOF
39870 rm -f conftest.$ac_objext conftest$ac_exeext
39871 if { (ac_try="$ac_link"
39872 case "(($ac_try" in
39873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39874   *) ac_try_echo=$ac_try;;
39875 esac
39876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39877   (eval "$ac_link") 2>conftest.er1
39878   ac_status=$?
39879   grep -v '^ *+' conftest.er1 >conftest.err
39880   rm -f conftest.er1
39881   cat conftest.err >&5
39882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883   (exit $ac_status); } && {
39884          test -z "$ac_c_werror_flag" ||
39885          test ! -s conftest.err
39886        } && test -s conftest$ac_exeext &&
39887        $as_test_x conftest$ac_exeext; then
39888   ac_cv_lib_posix4_sched_get_priority_max=yes
39889 else
39890   echo "$as_me: failed program was:" >&5
39891 sed 's/^/| /' conftest.$ac_ext >&5
39892
39893         ac_cv_lib_posix4_sched_get_priority_max=no
39894 fi
39895
39896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39897       conftest$ac_exeext conftest.$ac_ext
39898 LIBS=$ac_check_lib_save_LIBS
39899 fi
39900 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39901 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39902 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39903
39904                                 HAVE_PRIOR_FUNCS=1
39905                                 POSIX4_LINK=" -lposix4"
39906
39907 fi
39908
39909
39910 fi
39911
39912
39913 fi
39914
39915
39916 fi
39917
39918
39919       if test "$HAVE_PRIOR_FUNCS" = 1; then
39920         cat >>confdefs.h <<\_ACEOF
39921 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39922 _ACEOF
39923
39924       else
39925         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39926 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39927       fi
39928
39929       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39930 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39931 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39932   echo $ECHO_N "(cached) $ECHO_C" >&6
39933 else
39934   cat >conftest.$ac_ext <<_ACEOF
39935 /* confdefs.h.  */
39936 _ACEOF
39937 cat confdefs.h >>conftest.$ac_ext
39938 cat >>conftest.$ac_ext <<_ACEOF
39939 /* end confdefs.h.  */
39940 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39942 #define pthread_cancel innocuous_pthread_cancel
39943
39944 /* System header to define __stub macros and hopefully few prototypes,
39945     which can conflict with char pthread_cancel (); below.
39946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39947     <limits.h> exists even on freestanding compilers.  */
39948
39949 #ifdef __STDC__
39950 # include <limits.h>
39951 #else
39952 # include <assert.h>
39953 #endif
39954
39955 #undef pthread_cancel
39956
39957 /* Override any GCC internal prototype to avoid an error.
39958    Use char because int might match the return type of a GCC
39959    builtin and then its argument prototype would still apply.  */
39960 #ifdef __cplusplus
39961 extern "C"
39962 #endif
39963 char pthread_cancel ();
39964 /* The GNU C library defines this for functions which it implements
39965     to always fail with ENOSYS.  Some functions are actually named
39966     something starting with __ and the normal name is an alias.  */
39967 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39968 choke me
39969 #endif
39970
39971 int
39972 main ()
39973 {
39974 return pthread_cancel ();
39975   ;
39976   return 0;
39977 }
39978 _ACEOF
39979 rm -f conftest.$ac_objext conftest$ac_exeext
39980 if { (ac_try="$ac_link"
39981 case "(($ac_try" in
39982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39983   *) ac_try_echo=$ac_try;;
39984 esac
39985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39986   (eval "$ac_link") 2>conftest.er1
39987   ac_status=$?
39988   grep -v '^ *+' conftest.er1 >conftest.err
39989   rm -f conftest.er1
39990   cat conftest.err >&5
39991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992   (exit $ac_status); } && {
39993          test -z "$ac_c_werror_flag" ||
39994          test ! -s conftest.err
39995        } && test -s conftest$ac_exeext &&
39996        $as_test_x conftest$ac_exeext; then
39997   ac_cv_func_pthread_cancel=yes
39998 else
39999   echo "$as_me: failed program was:" >&5
40000 sed 's/^/| /' conftest.$ac_ext >&5
40001
40002         ac_cv_func_pthread_cancel=no
40003 fi
40004
40005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40006       conftest$ac_exeext conftest.$ac_ext
40007 fi
40008 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40009 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
40010 if test $ac_cv_func_pthread_cancel = yes; then
40011   cat >>confdefs.h <<\_ACEOF
40012 #define HAVE_PTHREAD_CANCEL 1
40013 _ACEOF
40014
40015 else
40016   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40017 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40018 fi
40019
40020
40021       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
40022 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
40023 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
40024   echo $ECHO_N "(cached) $ECHO_C" >&6
40025 else
40026   cat >conftest.$ac_ext <<_ACEOF
40027 /* confdefs.h.  */
40028 _ACEOF
40029 cat confdefs.h >>conftest.$ac_ext
40030 cat >>conftest.$ac_ext <<_ACEOF
40031 /* end confdefs.h.  */
40032 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
40033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40034 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
40035
40036 /* System header to define __stub macros and hopefully few prototypes,
40037     which can conflict with char pthread_mutex_timedlock (); below.
40038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40039     <limits.h> exists even on freestanding compilers.  */
40040
40041 #ifdef __STDC__
40042 # include <limits.h>
40043 #else
40044 # include <assert.h>
40045 #endif
40046
40047 #undef pthread_mutex_timedlock
40048
40049 /* Override any GCC internal prototype to avoid an error.
40050    Use char because int might match the return type of a GCC
40051    builtin and then its argument prototype would still apply.  */
40052 #ifdef __cplusplus
40053 extern "C"
40054 #endif
40055 char pthread_mutex_timedlock ();
40056 /* The GNU C library defines this for functions which it implements
40057     to always fail with ENOSYS.  Some functions are actually named
40058     something starting with __ and the normal name is an alias.  */
40059 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
40060 choke me
40061 #endif
40062
40063 int
40064 main ()
40065 {
40066 return pthread_mutex_timedlock ();
40067   ;
40068   return 0;
40069 }
40070 _ACEOF
40071 rm -f conftest.$ac_objext conftest$ac_exeext
40072 if { (ac_try="$ac_link"
40073 case "(($ac_try" in
40074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40075   *) ac_try_echo=$ac_try;;
40076 esac
40077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40078   (eval "$ac_link") 2>conftest.er1
40079   ac_status=$?
40080   grep -v '^ *+' conftest.er1 >conftest.err
40081   rm -f conftest.er1
40082   cat conftest.err >&5
40083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40084   (exit $ac_status); } && {
40085          test -z "$ac_c_werror_flag" ||
40086          test ! -s conftest.err
40087        } && test -s conftest$ac_exeext &&
40088        $as_test_x conftest$ac_exeext; then
40089   ac_cv_func_pthread_mutex_timedlock=yes
40090 else
40091   echo "$as_me: failed program was:" >&5
40092 sed 's/^/| /' conftest.$ac_ext >&5
40093
40094         ac_cv_func_pthread_mutex_timedlock=no
40095 fi
40096
40097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40098       conftest$ac_exeext conftest.$ac_ext
40099 fi
40100 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40101 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
40102 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
40103   cat >>confdefs.h <<\_ACEOF
40104 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40105 _ACEOF
40106
40107 else
40108   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40109 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40110 fi
40111
40112
40113       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40114 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
40115 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40116   echo $ECHO_N "(cached) $ECHO_C" >&6
40117 else
40118   cat >conftest.$ac_ext <<_ACEOF
40119 /* confdefs.h.  */
40120 _ACEOF
40121 cat confdefs.h >>conftest.$ac_ext
40122 cat >>conftest.$ac_ext <<_ACEOF
40123 /* end confdefs.h.  */
40124 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40126 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40127
40128 /* System header to define __stub macros and hopefully few prototypes,
40129     which can conflict with char pthread_attr_setstacksize (); below.
40130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40131     <limits.h> exists even on freestanding compilers.  */
40132
40133 #ifdef __STDC__
40134 # include <limits.h>
40135 #else
40136 # include <assert.h>
40137 #endif
40138
40139 #undef pthread_attr_setstacksize
40140
40141 /* Override any GCC internal prototype to avoid an error.
40142    Use char because int might match the return type of a GCC
40143    builtin and then its argument prototype would still apply.  */
40144 #ifdef __cplusplus
40145 extern "C"
40146 #endif
40147 char pthread_attr_setstacksize ();
40148 /* The GNU C library defines this for functions which it implements
40149     to always fail with ENOSYS.  Some functions are actually named
40150     something starting with __ and the normal name is an alias.  */
40151 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40152 choke me
40153 #endif
40154
40155 int
40156 main ()
40157 {
40158 return pthread_attr_setstacksize ();
40159   ;
40160   return 0;
40161 }
40162 _ACEOF
40163 rm -f conftest.$ac_objext conftest$ac_exeext
40164 if { (ac_try="$ac_link"
40165 case "(($ac_try" in
40166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40167   *) ac_try_echo=$ac_try;;
40168 esac
40169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40170   (eval "$ac_link") 2>conftest.er1
40171   ac_status=$?
40172   grep -v '^ *+' conftest.er1 >conftest.err
40173   rm -f conftest.er1
40174   cat conftest.err >&5
40175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); } && {
40177          test -z "$ac_c_werror_flag" ||
40178          test ! -s conftest.err
40179        } && test -s conftest$ac_exeext &&
40180        $as_test_x conftest$ac_exeext; then
40181   ac_cv_func_pthread_attr_setstacksize=yes
40182 else
40183   echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40185
40186         ac_cv_func_pthread_attr_setstacksize=no
40187 fi
40188
40189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40190       conftest$ac_exeext conftest.$ac_ext
40191 fi
40192 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40193 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40194 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40195   cat >>confdefs.h <<\_ACEOF
40196 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40197 _ACEOF
40198
40199 fi
40200
40201
40202
40203       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40204 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40205 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40206   echo $ECHO_N "(cached) $ECHO_C" >&6
40207 else
40208
40209         cat >conftest.$ac_ext <<_ACEOF
40210 /* confdefs.h.  */
40211 _ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h.  */
40215 #include <pthread.h>
40216 int
40217 main ()
40218 {
40219
40220                pthread_mutexattr_t attr;
40221                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40222
40223   ;
40224   return 0;
40225 }
40226 _ACEOF
40227 rm -f conftest.$ac_objext
40228 if { (ac_try="$ac_compile"
40229 case "(($ac_try" in
40230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40231   *) ac_try_echo=$ac_try;;
40232 esac
40233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40234   (eval "$ac_compile") 2>conftest.er1
40235   ac_status=$?
40236   grep -v '^ *+' conftest.er1 >conftest.err
40237   rm -f conftest.er1
40238   cat conftest.err >&5
40239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40240   (exit $ac_status); } && {
40241          test -z "$ac_c_werror_flag" ||
40242          test ! -s conftest.err
40243        } && test -s conftest.$ac_objext; then
40244   wx_cv_type_pthread_mutexattr_t=yes
40245 else
40246   echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40248
40249         wx_cv_type_pthread_mutexattr_t=no
40250
40251 fi
40252
40253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40254
40255 fi
40256 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40257 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40258
40259       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40260         cat >>confdefs.h <<\_ACEOF
40261 #define HAVE_PTHREAD_MUTEXATTR_T 1
40262 _ACEOF
40263
40264
40265                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40266 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40267 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40268   echo $ECHO_N "(cached) $ECHO_C" >&6
40269 else
40270
40271                        cat >conftest.$ac_ext <<_ACEOF
40272 /* confdefs.h.  */
40273 _ACEOF
40274 cat confdefs.h >>conftest.$ac_ext
40275 cat >>conftest.$ac_ext <<_ACEOF
40276 /* end confdefs.h.  */
40277 #include <pthread.h>
40278 int
40279 main ()
40280 {
40281
40282                                pthread_mutexattr_t attr;
40283                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40284
40285   ;
40286   return 0;
40287 }
40288 _ACEOF
40289 rm -f conftest.$ac_objext
40290 if { (ac_try="$ac_compile"
40291 case "(($ac_try" in
40292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293   *) ac_try_echo=$ac_try;;
40294 esac
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296   (eval "$ac_compile") 2>conftest.er1
40297   ac_status=$?
40298   grep -v '^ *+' conftest.er1 >conftest.err
40299   rm -f conftest.er1
40300   cat conftest.err >&5
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); } && {
40303          test -z "$ac_c_werror_flag" ||
40304          test ! -s conftest.err
40305        } && test -s conftest.$ac_objext; then
40306   wx_cv_func_pthread_mutexattr_settype_decl=yes
40307 else
40308   echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40310
40311         wx_cv_func_pthread_mutexattr_settype_decl=no
40312
40313 fi
40314
40315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40316
40317 fi
40318 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40319 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40320         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40321             cat >>confdefs.h <<\_ACEOF
40322 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40323 _ACEOF
40324
40325         fi
40326       else
40327                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40328 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40329 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40330   echo $ECHO_N "(cached) $ECHO_C" >&6
40331 else
40332
40333             cat >conftest.$ac_ext <<_ACEOF
40334 /* confdefs.h.  */
40335 _ACEOF
40336 cat confdefs.h >>conftest.$ac_ext
40337 cat >>conftest.$ac_ext <<_ACEOF
40338 /* end confdefs.h.  */
40339 #include <pthread.h>
40340 int
40341 main ()
40342 {
40343
40344                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40345
40346   ;
40347   return 0;
40348 }
40349 _ACEOF
40350 rm -f conftest.$ac_objext
40351 if { (ac_try="$ac_compile"
40352 case "(($ac_try" in
40353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40354   *) ac_try_echo=$ac_try;;
40355 esac
40356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40357   (eval "$ac_compile") 2>conftest.er1
40358   ac_status=$?
40359   grep -v '^ *+' conftest.er1 >conftest.err
40360   rm -f conftest.er1
40361   cat conftest.err >&5
40362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363   (exit $ac_status); } && {
40364          test -z "$ac_c_werror_flag" ||
40365          test ! -s conftest.err
40366        } && test -s conftest.$ac_objext; then
40367
40368                     wx_cv_type_pthread_rec_mutex_init=yes
40369
40370 else
40371   echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40373
40374
40375                     wx_cv_type_pthread_rec_mutex_init=no
40376
40377
40378 fi
40379
40380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40381
40382 fi
40383 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40384 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40385         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40386           cat >>confdefs.h <<\_ACEOF
40387 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40388 _ACEOF
40389
40390         else
40391                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40392 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40393         fi
40394       fi
40395
40396       if test "$wxUSE_COMPILER_TLS" = "auto"; then
40397           if test "$USE_NETBSD" = 1; then
40398               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40399 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40400               wxUSE_COMPILER_TLS=no
40401           else
40402               wxUSE_COMPILER_TLS=yes
40403           fi
40404       fi
40405
40406       if test "$wxUSE_COMPILER_TLS" = "yes"; then
40407                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40408 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40409 if test "${wx_cv_cc___thread+set}" = set; then
40410   echo $ECHO_N "(cached) $ECHO_C" >&6
40411 else
40412
40413                   cat >conftest.$ac_ext <<_ACEOF
40414 /* confdefs.h.  */
40415 _ACEOF
40416 cat confdefs.h >>conftest.$ac_ext
40417 cat >>conftest.$ac_ext <<_ACEOF
40418 /* end confdefs.h.  */
40419 #include <pthread.h>
40420 int
40421 main ()
40422 {
40423
40424                           static __thread int n = 0;
40425                           static __thread int *p = 0;
40426
40427   ;
40428   return 0;
40429 }
40430 _ACEOF
40431 rm -f conftest.$ac_objext
40432 if { (ac_try="$ac_compile"
40433 case "(($ac_try" in
40434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40435   *) ac_try_echo=$ac_try;;
40436 esac
40437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40438   (eval "$ac_compile") 2>conftest.er1
40439   ac_status=$?
40440   grep -v '^ *+' conftest.er1 >conftest.err
40441   rm -f conftest.er1
40442   cat conftest.err >&5
40443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444   (exit $ac_status); } && {
40445          test -z "$ac_c_werror_flag" ||
40446          test ! -s conftest.err
40447        } && test -s conftest.$ac_objext; then
40448   wx_cv_cc___thread=yes
40449 else
40450   echo "$as_me: failed program was:" >&5
40451 sed 's/^/| /' conftest.$ac_ext >&5
40452
40453         wx_cv_cc___thread=no
40454
40455 fi
40456
40457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40458
40459
40460 fi
40461 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40462 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40463
40464           if test "$wx_cv_cc___thread" = "yes"; then
40465
40466   GXX_VERSION=""
40467
40468
40469
40470   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40471 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40472
40473   if  test "x$GCC" = "xyes" ; then
40474
40475     if  test -z "" ; then
40476
40477       ax_gcc_option_test="int main()
40478 {
40479         return 0;
40480 }"
40481
40482 else
40483
40484       ax_gcc_option_test=""
40485
40486 fi
40487
40488
40489     # Dump the test program to file
40490     cat <<EOF > conftest.c
40491 $ax_gcc_option_test
40492 EOF
40493
40494     # Dump back the file to the log, useful for debugging purposes
40495     { ac_try='cat conftest.c 1>&5'
40496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40497   (eval $ac_try) 2>&5
40498   ac_status=$?
40499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500   (exit $ac_status); }; }
40501
40502     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40504   (eval $ac_try) 2>&5
40505   ac_status=$?
40506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507   (exit $ac_status); }; } ; then
40508
40509                 { echo "$as_me:$LINENO: result: yes" >&5
40510 echo "${ECHO_T}yes" >&6; }
40511
40512     ax_gcc_version_option=yes
40513
40514
40515 else
40516
40517                 { echo "$as_me:$LINENO: result: no" >&5
40518 echo "${ECHO_T}no" >&6; }
40519
40520     ax_gcc_version_option=no
40521
40522
40523 fi
40524
40525
40526 else
40527
40528     { echo "$as_me:$LINENO: result: no gcc available" >&5
40529 echo "${ECHO_T}no gcc available" >&6; }
40530
40531 fi
40532
40533
40534   if test "x$GXX" = "xyes"; then
40535
40536     if test "x$ax_gxx_version_option" != "no"; then
40537
40538       { echo "$as_me:$LINENO: checking gxx version" >&5
40539 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40540 if test "${ax_cv_gxx_version+set}" = set; then
40541   echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40543
40544         ax_cv_gxx_version="`$CXX -dumpversion`"
40545         if test "x$ax_cv_gxx_version" = "x"; then
40546
40547           ax_cv_gxx_version=""
40548
40549 fi
40550
40551
40552 fi
40553 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40554 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40555       GXX_VERSION=$ax_cv_gxx_version
40556
40557 fi
40558
40559
40560 fi
40561
40562
40563
40564               if test -n "$ax_cv_gxx_version"; then
40565                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40566 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40567                   case "$ax_cv_gxx_version" in
40568                     1.* | 2.* | 3.* )
40569                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
40570 echo "${ECHO_T}no, it's broken" >&6; }
40571                         wx_cv_cc___thread=no
40572                         ;;
40573                     *)
40574                         { echo "$as_me:$LINENO: result: yes, it works" >&5
40575 echo "${ECHO_T}yes, it works" >&6; }
40576                         ;;
40577                   esac
40578               fi
40579           fi
40580
40581           if test "$wx_cv_cc___thread" = "yes"; then
40582             cat >>confdefs.h <<\_ACEOF
40583 #define HAVE___THREAD_KEYWORD 1
40584 _ACEOF
40585
40586           fi
40587         fi
40588     fi
40589
40590 else
40591     if test "$wxUSE_THREADS" = "yes" ; then
40592       case "${host}" in
40593         x86_64-*-mingw32* )
40594         ;;
40595         *-*-mingw32* )
40596                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40597 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40598 if test "${wx_cv_cflags_mthread+set}" = set; then
40599   echo $ECHO_N "(cached) $ECHO_C" >&6
40600 else
40601
40602                     CFLAGS_OLD="$CFLAGS"
40603                     CFLAGS="-mthreads $CFLAGS"
40604                     cat >conftest.$ac_ext <<_ACEOF
40605 /* confdefs.h.  */
40606 _ACEOF
40607 cat confdefs.h >>conftest.$ac_ext
40608 cat >>conftest.$ac_ext <<_ACEOF
40609 /* end confdefs.h.  */
40610
40611 int
40612 main ()
40613 {
40614
40615   ;
40616   return 0;
40617 }
40618 _ACEOF
40619 rm -f conftest.$ac_objext
40620 if { (ac_try="$ac_compile"
40621 case "(($ac_try" in
40622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40623   *) ac_try_echo=$ac_try;;
40624 esac
40625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40626   (eval "$ac_compile") 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } && {
40633          test -z "$ac_c_werror_flag" ||
40634          test ! -s conftest.err
40635        } && test -s conftest.$ac_objext; then
40636   wx_cv_cflags_mthread=yes
40637 else
40638   echo "$as_me: failed program was:" >&5
40639 sed 's/^/| /' conftest.$ac_ext >&5
40640
40641         wx_cv_cflags_mthread=no
40642
40643 fi
40644
40645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40646
40647
40648 fi
40649 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40650 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40651
40652             if test "$wx_cv_cflags_mthread" = "yes"; then
40653                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40654                 LDFLAGS="$LDFLAGS -mthreads"
40655             else
40656                                 CFLAGS="$CFLAGS_OLD"
40657             fi
40658         ;;
40659         *-pc-os2*emx )
40660             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40661             LDFLAGS="$LDFLAGS -Zmt"
40662         ;;
40663       esac
40664     fi
40665 fi
40666
40667 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40668 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40669 if test "${ac_cv_func_localtime_r+set}" = set; then
40670   echo $ECHO_N "(cached) $ECHO_C" >&6
40671 else
40672   cat >conftest.$ac_ext <<_ACEOF
40673 /* confdefs.h.  */
40674 _ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h.  */
40678 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40680 #define localtime_r innocuous_localtime_r
40681
40682 /* System header to define __stub macros and hopefully few prototypes,
40683     which can conflict with char localtime_r (); below.
40684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40685     <limits.h> exists even on freestanding compilers.  */
40686
40687 #ifdef __STDC__
40688 # include <limits.h>
40689 #else
40690 # include <assert.h>
40691 #endif
40692
40693 #undef localtime_r
40694
40695 /* Override any GCC internal prototype to avoid an error.
40696    Use char because int might match the return type of a GCC
40697    builtin and then its argument prototype would still apply.  */
40698 #ifdef __cplusplus
40699 extern "C"
40700 #endif
40701 char localtime_r ();
40702 /* The GNU C library defines this for functions which it implements
40703     to always fail with ENOSYS.  Some functions are actually named
40704     something starting with __ and the normal name is an alias.  */
40705 #if defined __stub_localtime_r || defined __stub___localtime_r
40706 choke me
40707 #endif
40708
40709 int
40710 main ()
40711 {
40712 return localtime_r ();
40713   ;
40714   return 0;
40715 }
40716 _ACEOF
40717 rm -f conftest.$ac_objext conftest$ac_exeext
40718 if { (ac_try="$ac_link"
40719 case "(($ac_try" in
40720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40721   *) ac_try_echo=$ac_try;;
40722 esac
40723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40724   (eval "$ac_link") 2>conftest.er1
40725   ac_status=$?
40726   grep -v '^ *+' conftest.er1 >conftest.err
40727   rm -f conftest.er1
40728   cat conftest.err >&5
40729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730   (exit $ac_status); } && {
40731          test -z "$ac_c_werror_flag" ||
40732          test ! -s conftest.err
40733        } && test -s conftest$ac_exeext &&
40734        $as_test_x conftest$ac_exeext; then
40735   ac_cv_func_localtime_r=yes
40736 else
40737   echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40739
40740         ac_cv_func_localtime_r=no
40741 fi
40742
40743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40744       conftest$ac_exeext conftest.$ac_ext
40745 fi
40746 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40747 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40748 if test $ac_cv_func_localtime_r = yes; then
40749    cat >>confdefs.h <<\_ACEOF
40750 #define HAVE_LOCALTIME_R 1
40751 _ACEOF
40752
40753 fi
40754
40755 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40756 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40757 if test "${ac_cv_func_gmtime_r+set}" = set; then
40758   echo $ECHO_N "(cached) $ECHO_C" >&6
40759 else
40760   cat >conftest.$ac_ext <<_ACEOF
40761 /* confdefs.h.  */
40762 _ACEOF
40763 cat confdefs.h >>conftest.$ac_ext
40764 cat >>conftest.$ac_ext <<_ACEOF
40765 /* end confdefs.h.  */
40766 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40768 #define gmtime_r innocuous_gmtime_r
40769
40770 /* System header to define __stub macros and hopefully few prototypes,
40771     which can conflict with char gmtime_r (); below.
40772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40773     <limits.h> exists even on freestanding compilers.  */
40774
40775 #ifdef __STDC__
40776 # include <limits.h>
40777 #else
40778 # include <assert.h>
40779 #endif
40780
40781 #undef gmtime_r
40782
40783 /* Override any GCC internal prototype to avoid an error.
40784    Use char because int might match the return type of a GCC
40785    builtin and then its argument prototype would still apply.  */
40786 #ifdef __cplusplus
40787 extern "C"
40788 #endif
40789 char gmtime_r ();
40790 /* The GNU C library defines this for functions which it implements
40791     to always fail with ENOSYS.  Some functions are actually named
40792     something starting with __ and the normal name is an alias.  */
40793 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40794 choke me
40795 #endif
40796
40797 int
40798 main ()
40799 {
40800 return gmtime_r ();
40801   ;
40802   return 0;
40803 }
40804 _ACEOF
40805 rm -f conftest.$ac_objext conftest$ac_exeext
40806 if { (ac_try="$ac_link"
40807 case "(($ac_try" in
40808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40809   *) ac_try_echo=$ac_try;;
40810 esac
40811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40812   (eval "$ac_link") 2>conftest.er1
40813   ac_status=$?
40814   grep -v '^ *+' conftest.er1 >conftest.err
40815   rm -f conftest.er1
40816   cat conftest.err >&5
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); } && {
40819          test -z "$ac_c_werror_flag" ||
40820          test ! -s conftest.err
40821        } && test -s conftest$ac_exeext &&
40822        $as_test_x conftest$ac_exeext; then
40823   ac_cv_func_gmtime_r=yes
40824 else
40825   echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40827
40828         ac_cv_func_gmtime_r=no
40829 fi
40830
40831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40832       conftest$ac_exeext conftest.$ac_ext
40833 fi
40834 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40835 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40836 if test $ac_cv_func_gmtime_r = yes; then
40837    cat >>confdefs.h <<\_ACEOF
40838 #define HAVE_GMTIME_R 1
40839 _ACEOF
40840
40841 fi
40842
40843
40844
40845
40846     ac_ext=c
40847 ac_cpp='$CPP $CPPFLAGS'
40848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40851
40852     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40853 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40854
40855     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40856   echo $ECHO_N "(cached) $ECHO_C" >&6
40857 else
40858
40859
40860 ################################################################
40861
40862 ac_cv_func_which_gethostbyname_r=unknown
40863
40864 #
40865 # ONE ARGUMENT (sanity check)
40866 #
40867
40868 # This should fail, as there is no variant of gethostbyname_r() that takes
40869 # a single argument. If it actually compiles, then we can assume that
40870 # netdb.h is not declaring the function, and the compiler is thereby
40871 # assuming an implicit prototype. In which case, we're out of luck.
40872 #
40873 cat >conftest.$ac_ext <<_ACEOF
40874 /* confdefs.h.  */
40875 _ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h.  */
40879 #include <netdb.h>
40880 int
40881 main ()
40882 {
40883
40884             char *name = "www.gnu.org";
40885             (void)gethostbyname_r(name) /* ; */
40886
40887   ;
40888   return 0;
40889 }
40890 _ACEOF
40891 rm -f conftest.$ac_objext
40892 if { (ac_try="$ac_compile"
40893 case "(($ac_try" in
40894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40895   *) ac_try_echo=$ac_try;;
40896 esac
40897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40898   (eval "$ac_compile") 2>conftest.er1
40899   ac_status=$?
40900   grep -v '^ *+' conftest.er1 >conftest.err
40901   rm -f conftest.er1
40902   cat conftest.err >&5
40903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904   (exit $ac_status); } && {
40905          test -z "$ac_c_werror_flag" ||
40906          test ! -s conftest.err
40907        } && test -s conftest.$ac_objext; then
40908   ac_cv_func_which_gethostbyname_r=no
40909 else
40910   echo "$as_me: failed program was:" >&5
40911 sed 's/^/| /' conftest.$ac_ext >&5
40912
40913
40914 fi
40915
40916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40917
40918 #
40919 # SIX ARGUMENTS
40920 # (e.g. Linux)
40921 #
40922
40923 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40924
40925 cat >conftest.$ac_ext <<_ACEOF
40926 /* confdefs.h.  */
40927 _ACEOF
40928 cat confdefs.h >>conftest.$ac_ext
40929 cat >>conftest.$ac_ext <<_ACEOF
40930 /* end confdefs.h.  */
40931 #include <netdb.h>
40932 int
40933 main ()
40934 {
40935
40936             char *name = "www.gnu.org";
40937             struct hostent ret, *retp;
40938             char buf[1024];
40939             int buflen = 1024;
40940             int my_h_errno;
40941             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40942
40943   ;
40944   return 0;
40945 }
40946 _ACEOF
40947 rm -f conftest.$ac_objext
40948 if { (ac_try="$ac_compile"
40949 case "(($ac_try" in
40950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40951   *) ac_try_echo=$ac_try;;
40952 esac
40953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40954   (eval "$ac_compile") 2>conftest.er1
40955   ac_status=$?
40956   grep -v '^ *+' conftest.er1 >conftest.err
40957   rm -f conftest.er1
40958   cat conftest.err >&5
40959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960   (exit $ac_status); } && {
40961          test -z "$ac_c_werror_flag" ||
40962          test ! -s conftest.err
40963        } && test -s conftest.$ac_objext; then
40964   ac_cv_func_which_gethostbyname_r=six
40965 else
40966   echo "$as_me: failed program was:" >&5
40967 sed 's/^/| /' conftest.$ac_ext >&5
40968
40969
40970 fi
40971
40972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40973
40974 fi
40975
40976 #
40977 # FIVE ARGUMENTS
40978 # (e.g. Solaris)
40979 #
40980
40981 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40982
40983 cat >conftest.$ac_ext <<_ACEOF
40984 /* confdefs.h.  */
40985 _ACEOF
40986 cat confdefs.h >>conftest.$ac_ext
40987 cat >>conftest.$ac_ext <<_ACEOF
40988 /* end confdefs.h.  */
40989 #include <netdb.h>
40990 int
40991 main ()
40992 {
40993
40994             char *name = "www.gnu.org";
40995             struct hostent ret;
40996             char buf[1024];
40997             int buflen = 1024;
40998             int my_h_errno;
40999             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41000
41001   ;
41002   return 0;
41003 }
41004 _ACEOF
41005 rm -f conftest.$ac_objext
41006 if { (ac_try="$ac_compile"
41007 case "(($ac_try" in
41008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009   *) ac_try_echo=$ac_try;;
41010 esac
41011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41012   (eval "$ac_compile") 2>conftest.er1
41013   ac_status=$?
41014   grep -v '^ *+' conftest.er1 >conftest.err
41015   rm -f conftest.er1
41016   cat conftest.err >&5
41017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018   (exit $ac_status); } && {
41019          test -z "$ac_c_werror_flag" ||
41020          test ! -s conftest.err
41021        } && test -s conftest.$ac_objext; then
41022   ac_cv_func_which_gethostbyname_r=five
41023 else
41024   echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41026
41027
41028 fi
41029
41030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41031
41032 fi
41033
41034 #
41035 # THREE ARGUMENTS
41036 # (e.g. AIX, HP-UX, Tru64)
41037 #
41038
41039 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41040
41041 cat >conftest.$ac_ext <<_ACEOF
41042 /* confdefs.h.  */
41043 _ACEOF
41044 cat confdefs.h >>conftest.$ac_ext
41045 cat >>conftest.$ac_ext <<_ACEOF
41046 /* end confdefs.h.  */
41047 #include <netdb.h>
41048 int
41049 main ()
41050 {
41051
41052             char *name = "www.gnu.org";
41053             struct hostent ret;
41054             struct hostent_data data;
41055             (void)gethostbyname_r(name, &ret, &data) /* ; */
41056
41057   ;
41058   return 0;
41059 }
41060 _ACEOF
41061 rm -f conftest.$ac_objext
41062 if { (ac_try="$ac_compile"
41063 case "(($ac_try" in
41064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41065   *) ac_try_echo=$ac_try;;
41066 esac
41067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41068   (eval "$ac_compile") 2>conftest.er1
41069   ac_status=$?
41070   grep -v '^ *+' conftest.er1 >conftest.err
41071   rm -f conftest.er1
41072   cat conftest.err >&5
41073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074   (exit $ac_status); } && {
41075          test -z "$ac_c_werror_flag" ||
41076          test ! -s conftest.err
41077        } && test -s conftest.$ac_objext; then
41078   ac_cv_func_which_gethostbyname_r=three
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083
41084 fi
41085
41086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41087
41088 fi
41089
41090 ################################################################
41091
41092
41093 fi
41094
41095 case "$ac_cv_func_which_gethostbyname_r" in
41096     three)
41097     { echo "$as_me:$LINENO: result: three" >&5
41098 echo "${ECHO_T}three" >&6; }
41099     cat >>confdefs.h <<\_ACEOF
41100 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41101 _ACEOF
41102
41103     ;;
41104
41105     five)
41106     { echo "$as_me:$LINENO: result: five" >&5
41107 echo "${ECHO_T}five" >&6; }
41108     cat >>confdefs.h <<\_ACEOF
41109 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41110 _ACEOF
41111
41112     ;;
41113
41114     six)
41115     { echo "$as_me:$LINENO: result: six" >&5
41116 echo "${ECHO_T}six" >&6; }
41117     cat >>confdefs.h <<\_ACEOF
41118 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41119 _ACEOF
41120
41121     ;;
41122
41123     no)
41124     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41125 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
41126     ;;
41127
41128     unknown)
41129     { echo "$as_me:$LINENO: result: can't tell" >&5
41130 echo "${ECHO_T}can't tell" >&6; }
41131     ;;
41132
41133     *)
41134     { { echo "$as_me:$LINENO: error: internal error" >&5
41135 echo "$as_me: error: internal error" >&2;}
41136    { (exit 1); exit 1; }; }
41137     ;;
41138 esac
41139
41140 ac_ext=c
41141 ac_cpp='$CPP $CPPFLAGS'
41142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41145
41146
41147
41148       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41149               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41150           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41151 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41152 if test "${ac_cv_func_gethostbyname+set}" = set; then
41153   echo $ECHO_N "(cached) $ECHO_C" >&6
41154 else
41155   cat >conftest.$ac_ext <<_ACEOF
41156 /* confdefs.h.  */
41157 _ACEOF
41158 cat confdefs.h >>conftest.$ac_ext
41159 cat >>conftest.$ac_ext <<_ACEOF
41160 /* end confdefs.h.  */
41161 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41163 #define gethostbyname innocuous_gethostbyname
41164
41165 /* System header to define __stub macros and hopefully few prototypes,
41166     which can conflict with char gethostbyname (); below.
41167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41168     <limits.h> exists even on freestanding compilers.  */
41169
41170 #ifdef __STDC__
41171 # include <limits.h>
41172 #else
41173 # include <assert.h>
41174 #endif
41175
41176 #undef gethostbyname
41177
41178 /* Override any GCC internal prototype to avoid an error.
41179    Use char because int might match the return type of a GCC
41180    builtin and then its argument prototype would still apply.  */
41181 #ifdef __cplusplus
41182 extern "C"
41183 #endif
41184 char gethostbyname ();
41185 /* The GNU C library defines this for functions which it implements
41186     to always fail with ENOSYS.  Some functions are actually named
41187     something starting with __ and the normal name is an alias.  */
41188 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41189 choke me
41190 #endif
41191
41192 int
41193 main ()
41194 {
41195 return gethostbyname ();
41196   ;
41197   return 0;
41198 }
41199 _ACEOF
41200 rm -f conftest.$ac_objext conftest$ac_exeext
41201 if { (ac_try="$ac_link"
41202 case "(($ac_try" in
41203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41204   *) ac_try_echo=$ac_try;;
41205 esac
41206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41207   (eval "$ac_link") 2>conftest.er1
41208   ac_status=$?
41209   grep -v '^ *+' conftest.er1 >conftest.err
41210   rm -f conftest.er1
41211   cat conftest.err >&5
41212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213   (exit $ac_status); } && {
41214          test -z "$ac_c_werror_flag" ||
41215          test ! -s conftest.err
41216        } && test -s conftest$ac_exeext &&
41217        $as_test_x conftest$ac_exeext; then
41218   ac_cv_func_gethostbyname=yes
41219 else
41220   echo "$as_me: failed program was:" >&5
41221 sed 's/^/| /' conftest.$ac_ext >&5
41222
41223         ac_cv_func_gethostbyname=no
41224 fi
41225
41226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41227       conftest$ac_exeext conftest.$ac_ext
41228 fi
41229 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41230 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41231 if test $ac_cv_func_gethostbyname = yes; then
41232    cat >>confdefs.h <<\_ACEOF
41233 #define HAVE_GETHOSTBYNAME 1
41234 _ACEOF
41235
41236 fi
41237
41238       fi
41239
41240 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41241 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41242 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41243   echo $ECHO_N "(cached) $ECHO_C" >&6
41244 else
41245
41246                 ac_ext=cpp
41247 ac_cpp='$CXXCPP $CPPFLAGS'
41248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41251
41252
41253         cat >conftest.$ac_ext <<_ACEOF
41254 /* confdefs.h.  */
41255 _ACEOF
41256 cat confdefs.h >>conftest.$ac_ext
41257 cat >>conftest.$ac_ext <<_ACEOF
41258 /* end confdefs.h.  */
41259 #include <netdb.h>
41260 int
41261 main ()
41262 {
41263
41264                 char *name;
41265                 char *proto;
41266                 struct servent *se, *res;
41267                 char buffer[2048];
41268                 int buflen = 2048;
41269                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41270
41271   ;
41272   return 0;
41273 }
41274 _ACEOF
41275 rm -f conftest.$ac_objext
41276 if { (ac_try="$ac_compile"
41277 case "(($ac_try" in
41278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41279   *) ac_try_echo=$ac_try;;
41280 esac
41281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41282   (eval "$ac_compile") 2>conftest.er1
41283   ac_status=$?
41284   grep -v '^ *+' conftest.er1 >conftest.err
41285   rm -f conftest.er1
41286   cat conftest.err >&5
41287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288   (exit $ac_status); } && {
41289          test -z "$ac_cxx_werror_flag" ||
41290          test ! -s conftest.err
41291        } && test -s conftest.$ac_objext; then
41292   ac_cv_func_which_getservbyname_r=six
41293 else
41294   echo "$as_me: failed program was:" >&5
41295 sed 's/^/| /' conftest.$ac_ext >&5
41296
41297
41298                 cat >conftest.$ac_ext <<_ACEOF
41299 /* confdefs.h.  */
41300 _ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h.  */
41304 #include <netdb.h>
41305 int
41306 main ()
41307 {
41308
41309                         char *name;
41310                         char *proto;
41311                         struct servent *se;
41312                         char buffer[2048];
41313                         int buflen = 2048;
41314                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41315
41316   ;
41317   return 0;
41318 }
41319 _ACEOF
41320 rm -f conftest.$ac_objext
41321 if { (ac_try="$ac_compile"
41322 case "(($ac_try" in
41323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41324   *) ac_try_echo=$ac_try;;
41325 esac
41326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41327   (eval "$ac_compile") 2>conftest.er1
41328   ac_status=$?
41329   grep -v '^ *+' conftest.er1 >conftest.err
41330   rm -f conftest.er1
41331   cat conftest.err >&5
41332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333   (exit $ac_status); } && {
41334          test -z "$ac_cxx_werror_flag" ||
41335          test ! -s conftest.err
41336        } && test -s conftest.$ac_objext; then
41337   ac_cv_func_which_getservbyname_r=five
41338 else
41339   echo "$as_me: failed program was:" >&5
41340 sed 's/^/| /' conftest.$ac_ext >&5
41341
41342
41343                         cat >conftest.$ac_ext <<_ACEOF
41344 /* confdefs.h.  */
41345 _ACEOF
41346 cat confdefs.h >>conftest.$ac_ext
41347 cat >>conftest.$ac_ext <<_ACEOF
41348 /* end confdefs.h.  */
41349 #include <netdb.h>
41350 int
41351 main ()
41352 {
41353
41354                                 char *name;
41355                                 char *proto;
41356                                 struct servent *se;
41357                                 struct servent_data data;
41358                                 (void) getservbyname_r(name, proto, se, &data);
41359
41360   ;
41361   return 0;
41362 }
41363 _ACEOF
41364 rm -f conftest.$ac_objext
41365 if { (ac_try="$ac_compile"
41366 case "(($ac_try" in
41367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41368   *) ac_try_echo=$ac_try;;
41369 esac
41370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41371   (eval "$ac_compile") 2>conftest.er1
41372   ac_status=$?
41373   grep -v '^ *+' conftest.er1 >conftest.err
41374   rm -f conftest.er1
41375   cat conftest.err >&5
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); } && {
41378          test -z "$ac_cxx_werror_flag" ||
41379          test ! -s conftest.err
41380        } && test -s conftest.$ac_objext; then
41381   ac_cv_func_which_getservbyname_r=four
41382 else
41383   echo "$as_me: failed program was:" >&5
41384 sed 's/^/| /' conftest.$ac_ext >&5
41385
41386         ac_cv_func_which_getservbyname_r=no
41387
41388 fi
41389
41390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41391
41392
41393 fi
41394
41395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41396
41397
41398 fi
41399
41400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41401         ac_ext=c
41402 ac_cpp='$CPP $CPPFLAGS'
41403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41406
41407
41408
41409 fi
41410 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41411 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41412
41413 if test $ac_cv_func_which_getservbyname_r = six; then
41414   cat >>confdefs.h <<\_ACEOF
41415 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41416 _ACEOF
41417
41418 elif test $ac_cv_func_which_getservbyname_r = five; then
41419   cat >>confdefs.h <<\_ACEOF
41420 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41421 _ACEOF
41422
41423 elif test $ac_cv_func_which_getservbyname_r = four; then
41424   cat >>confdefs.h <<\_ACEOF
41425 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41426 _ACEOF
41427
41428 fi
41429
41430
41431       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41432               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41433
41434 for ac_func in getservbyname
41435 do
41436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41440   echo $ECHO_N "(cached) $ECHO_C" >&6
41441 else
41442   cat >conftest.$ac_ext <<_ACEOF
41443 /* confdefs.h.  */
41444 _ACEOF
41445 cat confdefs.h >>conftest.$ac_ext
41446 cat >>conftest.$ac_ext <<_ACEOF
41447 /* end confdefs.h.  */
41448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41450 #define $ac_func innocuous_$ac_func
41451
41452 /* System header to define __stub macros and hopefully few prototypes,
41453     which can conflict with char $ac_func (); below.
41454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41455     <limits.h> exists even on freestanding compilers.  */
41456
41457 #ifdef __STDC__
41458 # include <limits.h>
41459 #else
41460 # include <assert.h>
41461 #endif
41462
41463 #undef $ac_func
41464
41465 /* Override any GCC internal prototype to avoid an error.
41466    Use char because int might match the return type of a GCC
41467    builtin and then its argument prototype would still apply.  */
41468 #ifdef __cplusplus
41469 extern "C"
41470 #endif
41471 char $ac_func ();
41472 /* The GNU C library defines this for functions which it implements
41473     to always fail with ENOSYS.  Some functions are actually named
41474     something starting with __ and the normal name is an alias.  */
41475 #if defined __stub_$ac_func || defined __stub___$ac_func
41476 choke me
41477 #endif
41478
41479 int
41480 main ()
41481 {
41482 return $ac_func ();
41483   ;
41484   return 0;
41485 }
41486 _ACEOF
41487 rm -f conftest.$ac_objext conftest$ac_exeext
41488 if { (ac_try="$ac_link"
41489 case "(($ac_try" in
41490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41491   *) ac_try_echo=$ac_try;;
41492 esac
41493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41494   (eval "$ac_link") 2>conftest.er1
41495   ac_status=$?
41496   grep -v '^ *+' conftest.er1 >conftest.err
41497   rm -f conftest.er1
41498   cat conftest.err >&5
41499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41500   (exit $ac_status); } && {
41501          test -z "$ac_c_werror_flag" ||
41502          test ! -s conftest.err
41503        } && test -s conftest$ac_exeext &&
41504        $as_test_x conftest$ac_exeext; then
41505   eval "$as_ac_var=yes"
41506 else
41507   echo "$as_me: failed program was:" >&5
41508 sed 's/^/| /' conftest.$ac_ext >&5
41509
41510         eval "$as_ac_var=no"
41511 fi
41512
41513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41514       conftest$ac_exeext conftest.$ac_ext
41515 fi
41516 ac_res=`eval echo '${'$as_ac_var'}'`
41517                { echo "$as_me:$LINENO: result: $ac_res" >&5
41518 echo "${ECHO_T}$ac_res" >&6; }
41519 if test `eval echo '${'$as_ac_var'}'` = yes; then
41520   cat >>confdefs.h <<_ACEOF
41521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41522 _ACEOF
41523   cat >>confdefs.h <<\_ACEOF
41524 #define HAVE_GETSERVBYNAME 1
41525 _ACEOF
41526
41527 fi
41528 done
41529
41530       fi
41531
41532 if test "$wxUSE_THREADS" = "yes"; then
41533   cat >>confdefs.h <<\_ACEOF
41534 #define wxUSE_THREADS 1
41535 _ACEOF
41536
41537
41538   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41539 else
41540       if test "$wx_cv_func_strtok_r" = "yes"; then
41541     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41542 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41543     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41544         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41545         { echo "$as_me:$LINENO: result: yes" >&5
41546 echo "${ECHO_T}yes" >&6; }
41547     else
41548         { echo "$as_me:$LINENO: result: no" >&5
41549 echo "${ECHO_T}no" >&6; }
41550     fi
41551   fi
41552 fi
41553
41554 if test "$WXGTK2" = 1 ; then
41555   cat >>confdefs.h <<_ACEOF
41556 #define __WXGTK20__ $WXGTK2
41557 _ACEOF
41558
41559   WXGTK12=1
41560 fi
41561
41562 if test "$WXGTK12" = 1 ; then
41563   cat >>confdefs.h <<_ACEOF
41564 #define __WXGTK12__ $WXGTK12
41565 _ACEOF
41566
41567 fi
41568
41569 if test "$WXGTK127" = 1 ; then
41570   cat >>confdefs.h <<_ACEOF
41571 #define __WXGTK127__ $WXGTK127
41572 _ACEOF
41573
41574 fi
41575
41576 if test "$WXGPE" = 1 ; then
41577   cat >>confdefs.h <<_ACEOF
41578 #define __WXGPE__ $WXGPE
41579 _ACEOF
41580
41581 fi
41582
41583 DEBUG_CFLAGS=
41584 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41585                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41586 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41587 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41588     DEBUG_CFLAGS="-g"
41589 fi
41590
41591 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41592     wxUSE_DEBUG_INFO=yes
41593     if test "$GCC" = yes; then
41594         DEBUG_CFLAGS="-ggdb"
41595     fi
41596 fi
41597
41598 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
41599     if test "$wxUSE_GTK" = 1 ; then
41600         if test "x$wxGTK_VERSION" = "x1" ; then
41601             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41602         fi
41603     fi
41604 fi
41605
41606 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41607     cat >>confdefs.h <<\_ACEOF
41608 #define wxUSE_MEMORY_TRACING 1
41609 _ACEOF
41610
41611     cat >>confdefs.h <<\_ACEOF
41612 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41613 _ACEOF
41614
41615     cat >>confdefs.h <<\_ACEOF
41616 #define wxUSE_DEBUG_NEW_ALWAYS 1
41617 _ACEOF
41618
41619     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41620 fi
41621
41622 if test "$wxUSE_DMALLOC" = "yes" ; then
41623     DMALLOC_LIBS="-ldmallocthcxx"
41624 fi
41625
41626 PROFILE_FLAGS=
41627 if test "$wxUSE_PROFILE" = "yes" ; then
41628     PROFILE_FLAGS=" -pg"
41629 fi
41630
41631 if test "$GCC" = "yes" ; then
41632     if test "$wxUSE_NO_RTTI" = "yes" ; then
41633         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41634     fi
41635     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41636         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41637     fi
41638     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41639         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41640     fi
41641
41642                                                 case "${host}" in
41643       powerpc*-*-aix* )
41644         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41645         ;;
41646       *-hppa* )
41647         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41648         ;;
41649     esac
41650 fi
41651
41652 OPTIMISE_CFLAGS=
41653 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41654                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41655 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41656 else
41657     if test "$wxUSE_OPTIMISE" = "no" ; then
41658         if test "$GCC" = yes ; then
41659                                     OPTIMISE_CFLAGS="-O0"
41660         fi
41661     else
41662         if test "$GCC" = yes ; then
41663             case "${host}" in
41664                 *-pc-os2_emx | *-pc-os2-emx )
41665                                                             OPTIMISE_CFLAGS="-O2"
41666                 ;;
41667                 *)
41668                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41669                 ;;
41670             esac
41671         else
41672             OPTIMISE_CFLAGS="-O"
41673         fi
41674     fi
41675 fi
41676
41677
41678 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41679     cat >>confdefs.h <<\_ACEOF
41680 #define WXWIN_COMPATIBILITY_2_6 1
41681 _ACEOF
41682
41683
41684     WXWIN_COMPATIBILITY_2_8="yes"
41685 fi
41686
41687 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41688     cat >>confdefs.h <<\_ACEOF
41689 #define WXWIN_COMPATIBILITY_2_8 1
41690 _ACEOF
41691
41692 fi
41693
41694
41695 if test "$wxUSE_GUI" = "yes"; then
41696     cat >>confdefs.h <<\_ACEOF
41697 #define wxUSE_GUI 1
41698 _ACEOF
41699
41700
41701                                             fi
41702
41703
41704 if test "$wxUSE_UNIX" = "yes"; then
41705   cat >>confdefs.h <<\_ACEOF
41706 #define wxUSE_UNIX 1
41707 _ACEOF
41708
41709 fi
41710
41711
41712 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41713
41714     HAVE_DL_FUNCS=0
41715     HAVE_SHL_FUNCS=0
41716     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41717         if test "$USE_DOS" = 1; then
41718             HAVE_DL_FUNCS=0
41719         else
41720
41721 for ac_func in dlopen
41722 do
41723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41727   echo $ECHO_N "(cached) $ECHO_C" >&6
41728 else
41729   cat >conftest.$ac_ext <<_ACEOF
41730 /* confdefs.h.  */
41731 _ACEOF
41732 cat confdefs.h >>conftest.$ac_ext
41733 cat >>conftest.$ac_ext <<_ACEOF
41734 /* end confdefs.h.  */
41735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41737 #define $ac_func innocuous_$ac_func
41738
41739 /* System header to define __stub macros and hopefully few prototypes,
41740     which can conflict with char $ac_func (); below.
41741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41742     <limits.h> exists even on freestanding compilers.  */
41743
41744 #ifdef __STDC__
41745 # include <limits.h>
41746 #else
41747 # include <assert.h>
41748 #endif
41749
41750 #undef $ac_func
41751
41752 /* Override any GCC internal prototype to avoid an error.
41753    Use char because int might match the return type of a GCC
41754    builtin and then its argument prototype would still apply.  */
41755 #ifdef __cplusplus
41756 extern "C"
41757 #endif
41758 char $ac_func ();
41759 /* The GNU C library defines this for functions which it implements
41760     to always fail with ENOSYS.  Some functions are actually named
41761     something starting with __ and the normal name is an alias.  */
41762 #if defined __stub_$ac_func || defined __stub___$ac_func
41763 choke me
41764 #endif
41765
41766 int
41767 main ()
41768 {
41769 return $ac_func ();
41770   ;
41771   return 0;
41772 }
41773 _ACEOF
41774 rm -f conftest.$ac_objext conftest$ac_exeext
41775 if { (ac_try="$ac_link"
41776 case "(($ac_try" in
41777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41778   *) ac_try_echo=$ac_try;;
41779 esac
41780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41781   (eval "$ac_link") 2>conftest.er1
41782   ac_status=$?
41783   grep -v '^ *+' conftest.er1 >conftest.err
41784   rm -f conftest.er1
41785   cat conftest.err >&5
41786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787   (exit $ac_status); } && {
41788          test -z "$ac_c_werror_flag" ||
41789          test ! -s conftest.err
41790        } && test -s conftest$ac_exeext &&
41791        $as_test_x conftest$ac_exeext; then
41792   eval "$as_ac_var=yes"
41793 else
41794   echo "$as_me: failed program was:" >&5
41795 sed 's/^/| /' conftest.$ac_ext >&5
41796
41797         eval "$as_ac_var=no"
41798 fi
41799
41800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41801       conftest$ac_exeext conftest.$ac_ext
41802 fi
41803 ac_res=`eval echo '${'$as_ac_var'}'`
41804                { echo "$as_me:$LINENO: result: $ac_res" >&5
41805 echo "${ECHO_T}$ac_res" >&6; }
41806 if test `eval echo '${'$as_ac_var'}'` = yes; then
41807   cat >>confdefs.h <<_ACEOF
41808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41809 _ACEOF
41810
41811                 cat >>confdefs.h <<\_ACEOF
41812 #define HAVE_DLOPEN 1
41813 _ACEOF
41814
41815                 HAVE_DL_FUNCS=1
41816
41817 else
41818
41819                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41822   echo $ECHO_N "(cached) $ECHO_C" >&6
41823 else
41824   ac_check_lib_save_LIBS=$LIBS
41825 LIBS="-ldl  $LIBS"
41826 cat >conftest.$ac_ext <<_ACEOF
41827 /* confdefs.h.  */
41828 _ACEOF
41829 cat confdefs.h >>conftest.$ac_ext
41830 cat >>conftest.$ac_ext <<_ACEOF
41831 /* end confdefs.h.  */
41832
41833 /* Override any GCC internal prototype to avoid an error.
41834    Use char because int might match the return type of a GCC
41835    builtin and then its argument prototype would still apply.  */
41836 #ifdef __cplusplus
41837 extern "C"
41838 #endif
41839 char dlopen ();
41840 int
41841 main ()
41842 {
41843 return dlopen ();
41844   ;
41845   return 0;
41846 }
41847 _ACEOF
41848 rm -f conftest.$ac_objext conftest$ac_exeext
41849 if { (ac_try="$ac_link"
41850 case "(($ac_try" in
41851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41852   *) ac_try_echo=$ac_try;;
41853 esac
41854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41855   (eval "$ac_link") 2>conftest.er1
41856   ac_status=$?
41857   grep -v '^ *+' conftest.er1 >conftest.err
41858   rm -f conftest.er1
41859   cat conftest.err >&5
41860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41861   (exit $ac_status); } && {
41862          test -z "$ac_c_werror_flag" ||
41863          test ! -s conftest.err
41864        } && test -s conftest$ac_exeext &&
41865        $as_test_x conftest$ac_exeext; then
41866   ac_cv_lib_dl_dlopen=yes
41867 else
41868   echo "$as_me: failed program was:" >&5
41869 sed 's/^/| /' conftest.$ac_ext >&5
41870
41871         ac_cv_lib_dl_dlopen=no
41872 fi
41873
41874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41875       conftest$ac_exeext conftest.$ac_ext
41876 LIBS=$ac_check_lib_save_LIBS
41877 fi
41878 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41879 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41880 if test $ac_cv_lib_dl_dlopen = yes; then
41881
41882                                 cat >>confdefs.h <<\_ACEOF
41883 #define HAVE_DLOPEN 1
41884 _ACEOF
41885
41886                                 HAVE_DL_FUNCS=1
41887                                 DL_LINK=" -ldl$DL_LINK"
41888
41889 else
41890
41891
41892 for ac_func in shl_load
41893 do
41894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41898   echo $ECHO_N "(cached) $ECHO_C" >&6
41899 else
41900   cat >conftest.$ac_ext <<_ACEOF
41901 /* confdefs.h.  */
41902 _ACEOF
41903 cat confdefs.h >>conftest.$ac_ext
41904 cat >>conftest.$ac_ext <<_ACEOF
41905 /* end confdefs.h.  */
41906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41908 #define $ac_func innocuous_$ac_func
41909
41910 /* System header to define __stub macros and hopefully few prototypes,
41911     which can conflict with char $ac_func (); below.
41912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41913     <limits.h> exists even on freestanding compilers.  */
41914
41915 #ifdef __STDC__
41916 # include <limits.h>
41917 #else
41918 # include <assert.h>
41919 #endif
41920
41921 #undef $ac_func
41922
41923 /* Override any GCC internal prototype to avoid an error.
41924    Use char because int might match the return type of a GCC
41925    builtin and then its argument prototype would still apply.  */
41926 #ifdef __cplusplus
41927 extern "C"
41928 #endif
41929 char $ac_func ();
41930 /* The GNU C library defines this for functions which it implements
41931     to always fail with ENOSYS.  Some functions are actually named
41932     something starting with __ and the normal name is an alias.  */
41933 #if defined __stub_$ac_func || defined __stub___$ac_func
41934 choke me
41935 #endif
41936
41937 int
41938 main ()
41939 {
41940 return $ac_func ();
41941   ;
41942   return 0;
41943 }
41944 _ACEOF
41945 rm -f conftest.$ac_objext conftest$ac_exeext
41946 if { (ac_try="$ac_link"
41947 case "(($ac_try" in
41948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41949   *) ac_try_echo=$ac_try;;
41950 esac
41951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41952   (eval "$ac_link") 2>conftest.er1
41953   ac_status=$?
41954   grep -v '^ *+' conftest.er1 >conftest.err
41955   rm -f conftest.er1
41956   cat conftest.err >&5
41957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958   (exit $ac_status); } && {
41959          test -z "$ac_c_werror_flag" ||
41960          test ! -s conftest.err
41961        } && test -s conftest$ac_exeext &&
41962        $as_test_x conftest$ac_exeext; then
41963   eval "$as_ac_var=yes"
41964 else
41965   echo "$as_me: failed program was:" >&5
41966 sed 's/^/| /' conftest.$ac_ext >&5
41967
41968         eval "$as_ac_var=no"
41969 fi
41970
41971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41972       conftest$ac_exeext conftest.$ac_ext
41973 fi
41974 ac_res=`eval echo '${'$as_ac_var'}'`
41975                { echo "$as_me:$LINENO: result: $ac_res" >&5
41976 echo "${ECHO_T}$ac_res" >&6; }
41977 if test `eval echo '${'$as_ac_var'}'` = yes; then
41978   cat >>confdefs.h <<_ACEOF
41979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41980 _ACEOF
41981
41982                                                 cat >>confdefs.h <<\_ACEOF
41983 #define HAVE_SHL_LOAD 1
41984 _ACEOF
41985
41986                                                 HAVE_SHL_FUNCS=1
41987
41988 else
41989
41990                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41991 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41992 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41993   echo $ECHO_N "(cached) $ECHO_C" >&6
41994 else
41995   ac_check_lib_save_LIBS=$LIBS
41996 LIBS="-lshl_load  $LIBS"
41997 cat >conftest.$ac_ext <<_ACEOF
41998 /* confdefs.h.  */
41999 _ACEOF
42000 cat confdefs.h >>conftest.$ac_ext
42001 cat >>conftest.$ac_ext <<_ACEOF
42002 /* end confdefs.h.  */
42003
42004 /* Override any GCC internal prototype to avoid an error.
42005    Use char because int might match the return type of a GCC
42006    builtin and then its argument prototype would still apply.  */
42007 #ifdef __cplusplus
42008 extern "C"
42009 #endif
42010 char dld ();
42011 int
42012 main ()
42013 {
42014 return dld ();
42015   ;
42016   return 0;
42017 }
42018 _ACEOF
42019 rm -f conftest.$ac_objext conftest$ac_exeext
42020 if { (ac_try="$ac_link"
42021 case "(($ac_try" in
42022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42023   *) ac_try_echo=$ac_try;;
42024 esac
42025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42026   (eval "$ac_link") 2>conftest.er1
42027   ac_status=$?
42028   grep -v '^ *+' conftest.er1 >conftest.err
42029   rm -f conftest.er1
42030   cat conftest.err >&5
42031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42032   (exit $ac_status); } && {
42033          test -z "$ac_c_werror_flag" ||
42034          test ! -s conftest.err
42035        } && test -s conftest$ac_exeext &&
42036        $as_test_x conftest$ac_exeext; then
42037   ac_cv_lib_shl_load_dld=yes
42038 else
42039   echo "$as_me: failed program was:" >&5
42040 sed 's/^/| /' conftest.$ac_ext >&5
42041
42042         ac_cv_lib_shl_load_dld=no
42043 fi
42044
42045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42046       conftest$ac_exeext conftest.$ac_ext
42047 LIBS=$ac_check_lib_save_LIBS
42048 fi
42049 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42050 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
42051 if test $ac_cv_lib_shl_load_dld = yes; then
42052
42053                                                                 HAVE_SHL_FUNCS=1
42054                                                                 DL_LINK=" -ldld$DL_LINK"
42055
42056 fi
42057
42058
42059 fi
42060 done
42061
42062
42063 fi
42064
42065
42066 fi
42067 done
42068
42069
42070                         if test "$HAVE_DL_FUNCS" = 1; then
42071
42072 for ac_func in dlerror
42073 do
42074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42078   echo $ECHO_N "(cached) $ECHO_C" >&6
42079 else
42080   cat >conftest.$ac_ext <<_ACEOF
42081 /* confdefs.h.  */
42082 _ACEOF
42083 cat confdefs.h >>conftest.$ac_ext
42084 cat >>conftest.$ac_ext <<_ACEOF
42085 /* end confdefs.h.  */
42086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42088 #define $ac_func innocuous_$ac_func
42089
42090 /* System header to define __stub macros and hopefully few prototypes,
42091     which can conflict with char $ac_func (); below.
42092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42093     <limits.h> exists even on freestanding compilers.  */
42094
42095 #ifdef __STDC__
42096 # include <limits.h>
42097 #else
42098 # include <assert.h>
42099 #endif
42100
42101 #undef $ac_func
42102
42103 /* Override any GCC internal prototype to avoid an error.
42104    Use char because int might match the return type of a GCC
42105    builtin and then its argument prototype would still apply.  */
42106 #ifdef __cplusplus
42107 extern "C"
42108 #endif
42109 char $ac_func ();
42110 /* The GNU C library defines this for functions which it implements
42111     to always fail with ENOSYS.  Some functions are actually named
42112     something starting with __ and the normal name is an alias.  */
42113 #if defined __stub_$ac_func || defined __stub___$ac_func
42114 choke me
42115 #endif
42116
42117 int
42118 main ()
42119 {
42120 return $ac_func ();
42121   ;
42122   return 0;
42123 }
42124 _ACEOF
42125 rm -f conftest.$ac_objext conftest$ac_exeext
42126 if { (ac_try="$ac_link"
42127 case "(($ac_try" in
42128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42129   *) ac_try_echo=$ac_try;;
42130 esac
42131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42132   (eval "$ac_link") 2>conftest.er1
42133   ac_status=$?
42134   grep -v '^ *+' conftest.er1 >conftest.err
42135   rm -f conftest.er1
42136   cat conftest.err >&5
42137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); } && {
42139          test -z "$ac_c_werror_flag" ||
42140          test ! -s conftest.err
42141        } && test -s conftest$ac_exeext &&
42142        $as_test_x conftest$ac_exeext; then
42143   eval "$as_ac_var=yes"
42144 else
42145   echo "$as_me: failed program was:" >&5
42146 sed 's/^/| /' conftest.$ac_ext >&5
42147
42148         eval "$as_ac_var=no"
42149 fi
42150
42151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42152       conftest$ac_exeext conftest.$ac_ext
42153 fi
42154 ac_res=`eval echo '${'$as_ac_var'}'`
42155                { echo "$as_me:$LINENO: result: $ac_res" >&5
42156 echo "${ECHO_T}$ac_res" >&6; }
42157 if test `eval echo '${'$as_ac_var'}'` = yes; then
42158   cat >>confdefs.h <<_ACEOF
42159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42160 _ACEOF
42161  cat >>confdefs.h <<\_ACEOF
42162 #define HAVE_DLERROR 1
42163 _ACEOF
42164
42165 else
42166
42167                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42168 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42169 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42170   echo $ECHO_N "(cached) $ECHO_C" >&6
42171 else
42172   ac_check_lib_save_LIBS=$LIBS
42173 LIBS="-ldl  $LIBS"
42174 cat >conftest.$ac_ext <<_ACEOF
42175 /* confdefs.h.  */
42176 _ACEOF
42177 cat confdefs.h >>conftest.$ac_ext
42178 cat >>conftest.$ac_ext <<_ACEOF
42179 /* end confdefs.h.  */
42180
42181 /* Override any GCC internal prototype to avoid an error.
42182    Use char because int might match the return type of a GCC
42183    builtin and then its argument prototype would still apply.  */
42184 #ifdef __cplusplus
42185 extern "C"
42186 #endif
42187 char dlerror ();
42188 int
42189 main ()
42190 {
42191 return dlerror ();
42192   ;
42193   return 0;
42194 }
42195 _ACEOF
42196 rm -f conftest.$ac_objext conftest$ac_exeext
42197 if { (ac_try="$ac_link"
42198 case "(($ac_try" in
42199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42200   *) ac_try_echo=$ac_try;;
42201 esac
42202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42203   (eval "$ac_link") 2>conftest.er1
42204   ac_status=$?
42205   grep -v '^ *+' conftest.er1 >conftest.err
42206   rm -f conftest.er1
42207   cat conftest.err >&5
42208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209   (exit $ac_status); } && {
42210          test -z "$ac_c_werror_flag" ||
42211          test ! -s conftest.err
42212        } && test -s conftest$ac_exeext &&
42213        $as_test_x conftest$ac_exeext; then
42214   ac_cv_lib_dl_dlerror=yes
42215 else
42216   echo "$as_me: failed program was:" >&5
42217 sed 's/^/| /' conftest.$ac_ext >&5
42218
42219         ac_cv_lib_dl_dlerror=no
42220 fi
42221
42222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42223       conftest$ac_exeext conftest.$ac_ext
42224 LIBS=$ac_check_lib_save_LIBS
42225 fi
42226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42227 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42228 if test $ac_cv_lib_dl_dlerror = yes; then
42229   cat >>confdefs.h <<\_ACEOF
42230 #define HAVE_DLERROR 1
42231 _ACEOF
42232
42233 fi
42234
42235
42236
42237 fi
42238 done
42239
42240             fi
42241         fi
42242
42243                 if test "$USE_DARWIN" = 1; then
42244                         HAVE_DL_FUNCS=1
42245         fi
42246
42247         if test "$HAVE_DL_FUNCS" = 0; then
42248             if test "$HAVE_SHL_FUNCS" = 0; then
42249               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42250                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42251 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42252                   wxUSE_DYNAMIC_LOADER=no
42253                   wxUSE_DYNLIB_CLASS=no
42254               else
42255                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42256 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42257               fi
42258             fi
42259         fi
42260     fi
42261 fi
42262
42263 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42264     cat >>confdefs.h <<\_ACEOF
42265 #define wxUSE_DYNAMIC_LOADER 1
42266 _ACEOF
42267
42268 fi
42269 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42270     cat >>confdefs.h <<\_ACEOF
42271 #define wxUSE_DYNLIB_CLASS 1
42272 _ACEOF
42273
42274 fi
42275
42276
42277
42278 if test "$wxUSE_PLUGINS" = "yes" ; then
42279     if test "$wxUSE_SHARED" = "no" ; then
42280         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42281 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42282         wxUSE_PLUGINS=no
42283     fi
42284     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42285         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42286 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42287         wxUSE_PLUGINS=no
42288     fi
42289     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42290         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42291 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42292         wxUSE_PLUGINS=no
42293     fi
42294     if test "$wxUSE_PLUGINS" = "yes" ; then
42295         cat >>confdefs.h <<\_ACEOF
42296 #define wxUSE_PLUGINS 1
42297 _ACEOF
42298
42299     fi
42300 fi
42301
42302
42303 if test "$wxUSE_STL" = "yes"; then
42304   cat >>confdefs.h <<\_ACEOF
42305 #define wxUSE_STL 1
42306 _ACEOF
42307
42308 fi
42309
42310 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42311   cat >>confdefs.h <<\_ACEOF
42312 #define wxUSE_EXTENDED_RTTI 1
42313 _ACEOF
42314
42315 fi
42316
42317 if test "$wxUSE_ANY" = "yes"; then
42318     cat >>confdefs.h <<\_ACEOF
42319 #define wxUSE_ANY 1
42320 _ACEOF
42321
42322 fi
42323
42324 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42325   cat >>confdefs.h <<\_ACEOF
42326 #define wxUSE_APPLE_IEEE 1
42327 _ACEOF
42328
42329 fi
42330
42331 if test "$wxUSE_TIMER" = "yes"; then
42332   cat >>confdefs.h <<\_ACEOF
42333 #define wxUSE_TIMER 1
42334 _ACEOF
42335
42336 fi
42337
42338 if test "$USE_UNIX" = 1 ; then
42339         if test "$wxUSE_MGL" != 1; then
42340                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42341 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42342 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42343   echo $ECHO_N "(cached) $ECHO_C" >&6
42344 else
42345
42346             cat >conftest.$ac_ext <<_ACEOF
42347 /* confdefs.h.  */
42348 _ACEOF
42349 cat confdefs.h >>conftest.$ac_ext
42350 cat >>conftest.$ac_ext <<_ACEOF
42351 /* end confdefs.h.  */
42352
42353                     #include <sys/ioctl.h>
42354                     #include <sys/soundcard.h>
42355
42356 int
42357 main ()
42358 {
42359
42360                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42361
42362   ;
42363   return 0;
42364 }
42365 _ACEOF
42366 rm -f conftest.$ac_objext conftest$ac_exeext
42367 if { (ac_try="$ac_link"
42368 case "(($ac_try" in
42369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42370   *) ac_try_echo=$ac_try;;
42371 esac
42372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42373   (eval "$ac_link") 2>conftest.er1
42374   ac_status=$?
42375   grep -v '^ *+' conftest.er1 >conftest.err
42376   rm -f conftest.er1
42377   cat conftest.err >&5
42378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379   (exit $ac_status); } && {
42380          test -z "$ac_c_werror_flag" ||
42381          test ! -s conftest.err
42382        } && test -s conftest$ac_exeext &&
42383        $as_test_x conftest$ac_exeext; then
42384   ac_cv_header_sys_soundcard=yes
42385 else
42386   echo "$as_me: failed program was:" >&5
42387 sed 's/^/| /' conftest.$ac_ext >&5
42388
42389
42390                     saveLibs="$LIBS"
42391                     LIBS="$saveLibs -lossaudio"
42392                     cat >conftest.$ac_ext <<_ACEOF
42393 /* confdefs.h.  */
42394 _ACEOF
42395 cat confdefs.h >>conftest.$ac_ext
42396 cat >>conftest.$ac_ext <<_ACEOF
42397 /* end confdefs.h.  */
42398
42399                             #include <sys/ioctl.h>
42400                             #include <sys/soundcard.h>
42401
42402 int
42403 main ()
42404 {
42405
42406                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42407
42408   ;
42409   return 0;
42410 }
42411 _ACEOF
42412 rm -f conftest.$ac_objext conftest$ac_exeext
42413 if { (ac_try="$ac_link"
42414 case "(($ac_try" in
42415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42416   *) ac_try_echo=$ac_try;;
42417 esac
42418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42419   (eval "$ac_link") 2>conftest.er1
42420   ac_status=$?
42421   grep -v '^ *+' conftest.er1 >conftest.err
42422   rm -f conftest.er1
42423   cat conftest.err >&5
42424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); } && {
42426          test -z "$ac_c_werror_flag" ||
42427          test ! -s conftest.err
42428        } && test -s conftest$ac_exeext &&
42429        $as_test_x conftest$ac_exeext; then
42430   ac_cv_header_sys_soundcard=yes
42431 else
42432   echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435
42436                             LIBS="$saveLibs"
42437                             ac_cv_header_sys_soundcard=no
42438
42439
42440 fi
42441
42442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42443       conftest$ac_exeext conftest.$ac_ext
42444
42445
42446 fi
42447
42448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42449       conftest$ac_exeext conftest.$ac_ext
42450
42451 fi
42452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42453 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42454     fi
42455
42456     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42457         cat >>confdefs.h <<\_ACEOF
42458 #define HAVE_SYS_SOUNDCARD_H 1
42459 _ACEOF
42460
42461     fi
42462 fi
42463
42464 WITH_PLUGIN_SDL=0
42465 if test "$wxUSE_SOUND" = "yes"; then
42466   if test "$USE_UNIX" = 1 ; then
42467     if test "$wxUSE_LIBSDL" != "no"; then
42468
42469 # Check whether --with-sdl-prefix was given.
42470 if test "${with_sdl_prefix+set}" = set; then
42471   withval=$with_sdl_prefix; sdl_prefix="$withval"
42472 else
42473   sdl_prefix=""
42474 fi
42475
42476
42477 # Check whether --with-sdl-exec-prefix was given.
42478 if test "${with_sdl_exec_prefix+set}" = set; then
42479   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42480 else
42481   sdl_exec_prefix=""
42482 fi
42483
42484 # Check whether --enable-sdltest was given.
42485 if test "${enable_sdltest+set}" = set; then
42486   enableval=$enable_sdltest;
42487 else
42488   enable_sdltest=yes
42489 fi
42490
42491
42492   if test x$sdl_exec_prefix != x ; then
42493     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42494     if test x${SDL_CONFIG+set} != xset ; then
42495       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42496     fi
42497   fi
42498   if test x$sdl_prefix != x ; then
42499     sdl_args="$sdl_args --prefix=$sdl_prefix"
42500     if test x${SDL_CONFIG+set} != xset ; then
42501       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42502     fi
42503   fi
42504
42505   if test "x$prefix" != xNONE; then
42506     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42507   fi
42508   # Extract the first word of "sdl-config", so it can be a program name with args.
42509 set dummy sdl-config; ac_word=$2
42510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42512 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42513   echo $ECHO_N "(cached) $ECHO_C" >&6
42514 else
42515   case $SDL_CONFIG in
42516   [\\/]* | ?:[\\/]*)
42517   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42518   ;;
42519   *)
42520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42521 for as_dir in $PATH
42522 do
42523   IFS=$as_save_IFS
42524   test -z "$as_dir" && as_dir=.
42525   for ac_exec_ext in '' $ac_executable_extensions; do
42526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42527     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42529     break 2
42530   fi
42531 done
42532 done
42533 IFS=$as_save_IFS
42534
42535   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42536   ;;
42537 esac
42538 fi
42539 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42540 if test -n "$SDL_CONFIG"; then
42541   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42542 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42543 else
42544   { echo "$as_me:$LINENO: result: no" >&5
42545 echo "${ECHO_T}no" >&6; }
42546 fi
42547
42548
42549   min_sdl_version=1.2.0
42550   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42551 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42552   no_sdl=""
42553   if test "$SDL_CONFIG" = "no" ; then
42554     no_sdl=yes
42555   else
42556     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42557     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42558
42559     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42560            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42561     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42562            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42563     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42564            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42565     if test "x$enable_sdltest" = "xyes" ; then
42566       ac_save_CFLAGS="$CFLAGS"
42567       ac_save_CXXFLAGS="$CXXFLAGS"
42568       ac_save_LIBS="$LIBS"
42569       CFLAGS="$CFLAGS $SDL_CFLAGS"
42570       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42571       LIBS="$LIBS $SDL_LIBS"
42572       rm -f conf.sdltest
42573       if test "$cross_compiling" = yes; then
42574   echo $ac_n "cross compiling; assumed OK... $ac_c"
42575 else
42576   cat >conftest.$ac_ext <<_ACEOF
42577 /* confdefs.h.  */
42578 _ACEOF
42579 cat confdefs.h >>conftest.$ac_ext
42580 cat >>conftest.$ac_ext <<_ACEOF
42581 /* end confdefs.h.  */
42582
42583 #include <stdio.h>
42584 #include <stdlib.h>
42585 #include <string.h>
42586 #include "SDL.h"
42587
42588 char*
42589 my_strdup (char *str)
42590 {
42591   char *new_str;
42592
42593   if (str)
42594     {
42595       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42596       strcpy (new_str, str);
42597     }
42598   else
42599     new_str = NULL;
42600
42601   return new_str;
42602 }
42603
42604 int main (int argc, char *argv[])
42605 {
42606   int major, minor, micro;
42607   char *tmp_version;
42608
42609   /* This hangs on some systems (?)
42610   system ("touch conf.sdltest");
42611   */
42612   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42613
42614   /* HP/UX 9 (%@#!) writes to sscanf strings */
42615   tmp_version = my_strdup("$min_sdl_version");
42616   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42617      printf("%s, bad version string\n", "$min_sdl_version");
42618      exit(1);
42619    }
42620
42621    if (($sdl_major_version > major) ||
42622       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42623       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42624     {
42625       return 0;
42626     }
42627   else
42628     {
42629       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42630       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42631       printf("*** best to upgrade to the required version.\n");
42632       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42633       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42634       printf("*** config.cache before re-running configure\n");
42635       return 1;
42636     }
42637 }
42638
42639
42640 _ACEOF
42641 rm -f conftest$ac_exeext
42642 if { (ac_try="$ac_link"
42643 case "(($ac_try" in
42644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42645   *) ac_try_echo=$ac_try;;
42646 esac
42647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42648   (eval "$ac_link") 2>&5
42649   ac_status=$?
42650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42652   { (case "(($ac_try" in
42653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42654   *) ac_try_echo=$ac_try;;
42655 esac
42656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42657   (eval "$ac_try") 2>&5
42658   ac_status=$?
42659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660   (exit $ac_status); }; }; then
42661   :
42662 else
42663   echo "$as_me: program exited with status $ac_status" >&5
42664 echo "$as_me: failed program was:" >&5
42665 sed 's/^/| /' conftest.$ac_ext >&5
42666
42667 ( exit $ac_status )
42668 no_sdl=yes
42669 fi
42670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42671 fi
42672
42673
42674        CFLAGS="$ac_save_CFLAGS"
42675        CXXFLAGS="$ac_save_CXXFLAGS"
42676        LIBS="$ac_save_LIBS"
42677      fi
42678   fi
42679   if test "x$no_sdl" = x ; then
42680      { echo "$as_me:$LINENO: result: yes" >&5
42681 echo "${ECHO_T}yes" >&6; }
42682
42683                     EXTRALIBS_SDL="$SDL_LIBS"
42684                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42685                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42686                     cat >>confdefs.h <<\_ACEOF
42687 #define wxUSE_LIBSDL 1
42688 _ACEOF
42689
42690
42691   else
42692      { echo "$as_me:$LINENO: result: no" >&5
42693 echo "${ECHO_T}no" >&6; }
42694      if test "$SDL_CONFIG" = "no" ; then
42695        echo "*** The sdl-config script installed by SDL could not be found"
42696        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42697        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42698        echo "*** full path to sdl-config."
42699      else
42700        if test -f conf.sdltest ; then
42701         :
42702        else
42703           echo "*** Could not run SDL test program, checking why..."
42704           CFLAGS="$CFLAGS $SDL_CFLAGS"
42705           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42706           LIBS="$LIBS $SDL_LIBS"
42707           cat >conftest.$ac_ext <<_ACEOF
42708 /* confdefs.h.  */
42709 _ACEOF
42710 cat confdefs.h >>conftest.$ac_ext
42711 cat >>conftest.$ac_ext <<_ACEOF
42712 /* end confdefs.h.  */
42713
42714 #include <stdio.h>
42715 #include "SDL.h"
42716
42717 int main(int argc, char *argv[])
42718 { return 0; }
42719 #undef  main
42720 #define main K_and_R_C_main
42721
42722 int
42723 main ()
42724 {
42725  return 0;
42726   ;
42727   return 0;
42728 }
42729 _ACEOF
42730 rm -f conftest.$ac_objext conftest$ac_exeext
42731 if { (ac_try="$ac_link"
42732 case "(($ac_try" in
42733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42734   *) ac_try_echo=$ac_try;;
42735 esac
42736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42737   (eval "$ac_link") 2>conftest.er1
42738   ac_status=$?
42739   grep -v '^ *+' conftest.er1 >conftest.err
42740   rm -f conftest.er1
42741   cat conftest.err >&5
42742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42743   (exit $ac_status); } && {
42744          test -z "$ac_c_werror_flag" ||
42745          test ! -s conftest.err
42746        } && test -s conftest$ac_exeext &&
42747        $as_test_x conftest$ac_exeext; then
42748    echo "*** The test program compiled, but did not run. This usually means"
42749           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42750           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42751           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42752           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42753           echo "*** is required on your system"
42754           echo "***"
42755           echo "*** If you have an old version installed, it is best to remove it, although"
42756           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42757 else
42758   echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42760
42761          echo "*** The test program failed to compile or link. See the file config.log for the"
42762           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42763           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42764           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42765 fi
42766
42767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42768       conftest$ac_exeext conftest.$ac_ext
42769           CFLAGS="$ac_save_CFLAGS"
42770           CXXFLAGS="$ac_save_CXXFLAGS"
42771           LIBS="$ac_save_LIBS"
42772        fi
42773      fi
42774      SDL_CFLAGS=""
42775      SDL_LIBS=""
42776      wxUSE_LIBSDL="no"
42777   fi
42778
42779
42780   rm -f conf.sdltest
42781
42782       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42783         WITH_PLUGIN_SDL=1
42784       fi
42785     fi
42786   else
42787         if test "$wxUSE_MGL" = 1; then
42788         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42789 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42790         wxUSE_SOUND="no"
42791     fi
42792   fi
42793 fi
42794
42795 if test "$wxUSE_SOUND" = "yes"; then
42796   cat >>confdefs.h <<\_ACEOF
42797 #define wxUSE_SOUND 1
42798 _ACEOF
42799
42800   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42801 fi
42802
42803 if test "$WXGTK2" = 1; then
42804
42805
42806 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42807         if test -n "$ac_tool_prefix"; then
42808   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42809 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42812 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42813   echo $ECHO_N "(cached) $ECHO_C" >&6
42814 else
42815   case $PKG_CONFIG in
42816   [\\/]* | ?:[\\/]*)
42817   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42818   ;;
42819   *)
42820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42821 for as_dir in $PATH
42822 do
42823   IFS=$as_save_IFS
42824   test -z "$as_dir" && as_dir=.
42825   for ac_exec_ext in '' $ac_executable_extensions; do
42826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42827     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42829     break 2
42830   fi
42831 done
42832 done
42833 IFS=$as_save_IFS
42834
42835   ;;
42836 esac
42837 fi
42838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42839 if test -n "$PKG_CONFIG"; then
42840   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42841 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42842 else
42843   { echo "$as_me:$LINENO: result: no" >&5
42844 echo "${ECHO_T}no" >&6; }
42845 fi
42846
42847
42848 fi
42849 if test -z "$ac_cv_path_PKG_CONFIG"; then
42850   ac_pt_PKG_CONFIG=$PKG_CONFIG
42851   # Extract the first word of "pkg-config", so it can be a program name with args.
42852 set dummy pkg-config; ac_word=$2
42853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42855 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42856   echo $ECHO_N "(cached) $ECHO_C" >&6
42857 else
42858   case $ac_pt_PKG_CONFIG in
42859   [\\/]* | ?:[\\/]*)
42860   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42861   ;;
42862   *)
42863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42864 for as_dir in $PATH
42865 do
42866   IFS=$as_save_IFS
42867   test -z "$as_dir" && as_dir=.
42868   for ac_exec_ext in '' $ac_executable_extensions; do
42869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42870     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42872     break 2
42873   fi
42874 done
42875 done
42876 IFS=$as_save_IFS
42877
42878   ;;
42879 esac
42880 fi
42881 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42882 if test -n "$ac_pt_PKG_CONFIG"; then
42883   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42884 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42885 else
42886   { echo "$as_me:$LINENO: result: no" >&5
42887 echo "${ECHO_T}no" >&6; }
42888 fi
42889
42890   if test "x$ac_pt_PKG_CONFIG" = x; then
42891     PKG_CONFIG=""
42892   else
42893     case $cross_compiling:$ac_tool_warned in
42894 yes:)
42895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42896 whose name does not start with the host triplet.  If you think this
42897 configuration is useful to you, please write to autoconf@gnu.org." >&5
42898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42899 whose name does not start with the host triplet.  If you think this
42900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42901 ac_tool_warned=yes ;;
42902 esac
42903     PKG_CONFIG=$ac_pt_PKG_CONFIG
42904   fi
42905 else
42906   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42907 fi
42908
42909 fi
42910 if test -n "$PKG_CONFIG"; then
42911         _pkg_min_version=0.9.0
42912         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42913 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42914         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42915                 { echo "$as_me:$LINENO: result: yes" >&5
42916 echo "${ECHO_T}yes" >&6; }
42917         else
42918                 { echo "$as_me:$LINENO: result: no" >&5
42919 echo "${ECHO_T}no" >&6; }
42920                 PKG_CONFIG=""
42921         fi
42922
42923 fi
42924
42925     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42926
42927         if test "$wxUSE_GTKPRINT" = "yes" ; then
42928
42929
42930 pkg_failed=no
42931 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42932 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42933
42934 if test -n "$PKG_CONFIG"; then
42935     if test -n "$GTKPRINT_CFLAGS"; then
42936         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42937     else
42938         if test -n "$PKG_CONFIG" && \
42939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42940   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42941   ac_status=$?
42942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943   (exit $ac_status); }; then
42944   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42945 else
42946   pkg_failed=yes
42947 fi
42948     fi
42949 else
42950         pkg_failed=untried
42951 fi
42952 if test -n "$PKG_CONFIG"; then
42953     if test -n "$GTKPRINT_LIBS"; then
42954         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42955     else
42956         if test -n "$PKG_CONFIG" && \
42957     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42958   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42959   ac_status=$?
42960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961   (exit $ac_status); }; then
42962   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42963 else
42964   pkg_failed=yes
42965 fi
42966     fi
42967 else
42968         pkg_failed=untried
42969 fi
42970
42971
42972
42973 if test $pkg_failed = yes; then
42974
42975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42976         _pkg_short_errors_supported=yes
42977 else
42978         _pkg_short_errors_supported=no
42979 fi
42980         if test $_pkg_short_errors_supported = yes; then
42981                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42982         else
42983                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42984         fi
42985         # Put the nasty error message in config.log where it belongs
42986         echo "$GTKPRINT_PKG_ERRORS" >&5
42987
42988
42989                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42990 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42991                         wxUSE_GTKPRINT="no"
42992
42993
42994 elif test $pkg_failed = untried; then
42995
42996                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42997 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42998                         wxUSE_GTKPRINT="no"
42999
43000
43001 else
43002         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
43003         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
43004         { echo "$as_me:$LINENO: result: yes" >&5
43005 echo "${ECHO_T}yes" >&6; }
43006
43007                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
43008                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
43009                         cat >>confdefs.h <<\_ACEOF
43010 #define wxUSE_GTKPRINT 1
43011 _ACEOF
43012
43013
43014 fi
43015         fi
43016
43017         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43018
43019
43020 pkg_failed=no
43021 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43022 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
43023
43024 if test -n "$PKG_CONFIG"; then
43025     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43026         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43027     else
43028         if test -n "$PKG_CONFIG" && \
43029     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43030   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43031   ac_status=$?
43032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43033   (exit $ac_status); }; then
43034   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43035 else
43036   pkg_failed=yes
43037 fi
43038     fi
43039 else
43040         pkg_failed=untried
43041 fi
43042 if test -n "$PKG_CONFIG"; then
43043     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43044         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43045     else
43046         if test -n "$PKG_CONFIG" && \
43047     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43048   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43049   ac_status=$?
43050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43051   (exit $ac_status); }; then
43052   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43053 else
43054   pkg_failed=yes
43055 fi
43056     fi
43057 else
43058         pkg_failed=untried
43059 fi
43060
43061
43062
43063 if test $pkg_failed = yes; then
43064
43065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43066         _pkg_short_errors_supported=yes
43067 else
43068         _pkg_short_errors_supported=no
43069 fi
43070         if test $_pkg_short_errors_supported = yes; then
43071                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43072         else
43073                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43074         fi
43075         # Put the nasty error message in config.log where it belongs
43076         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
43077
43078
43079                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43080 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43081                         wxUSE_LIBGNOMEPRINT="no"
43082
43083
43084 elif test $pkg_failed = untried; then
43085
43086                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43087 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43088                         wxUSE_LIBGNOMEPRINT="no"
43089
43090
43091 else
43092         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43093         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43094         { echo "$as_me:$LINENO: result: yes" >&5
43095 echo "${ECHO_T}yes" >&6; }
43096
43097                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
43098                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43099                         cat >>confdefs.h <<\_ACEOF
43100 #define wxUSE_LIBGNOMEPRINT 1
43101 _ACEOF
43102
43103
43104 fi
43105         fi
43106     fi
43107
43108     if test "$wxUSE_MIMETYPE" = "yes" ; then
43109         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43110
43111
43112 pkg_failed=no
43113 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43114 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
43115
43116 if test -n "$PKG_CONFIG"; then
43117     if test -n "$GNOMEVFS_CFLAGS"; then
43118         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43119     else
43120         if test -n "$PKG_CONFIG" && \
43121     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43122   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43123   ac_status=$?
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); }; then
43126   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43127 else
43128   pkg_failed=yes
43129 fi
43130     fi
43131 else
43132         pkg_failed=untried
43133 fi
43134 if test -n "$PKG_CONFIG"; then
43135     if test -n "$GNOMEVFS_LIBS"; then
43136         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43137     else
43138         if test -n "$PKG_CONFIG" && \
43139     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43140   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43141   ac_status=$?
43142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143   (exit $ac_status); }; then
43144   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43145 else
43146   pkg_failed=yes
43147 fi
43148     fi
43149 else
43150         pkg_failed=untried
43151 fi
43152
43153
43154
43155 if test $pkg_failed = yes; then
43156
43157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43158         _pkg_short_errors_supported=yes
43159 else
43160         _pkg_short_errors_supported=no
43161 fi
43162         if test $_pkg_short_errors_supported = yes; then
43163                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43164         else
43165                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43166         fi
43167         # Put the nasty error message in config.log where it belongs
43168         echo "$GNOMEVFS_PKG_ERRORS" >&5
43169
43170
43171                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43172 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43173                         wxUSE_LIBGNOMEVFS="no"
43174
43175
43176 elif test $pkg_failed = untried; then
43177
43178                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43179 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43180                         wxUSE_LIBGNOMEVFS="no"
43181
43182
43183 else
43184         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43185         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43186         { echo "$as_me:$LINENO: result: yes" >&5
43187 echo "${ECHO_T}yes" >&6; }
43188
43189                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43190                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43191                         cat >>confdefs.h <<\_ACEOF
43192 #define wxUSE_LIBGNOMEVFS 1
43193 _ACEOF
43194
43195
43196 fi
43197         fi
43198     fi
43199
43200     if test "$wxUSE_LIBHILDON" = "yes" ; then
43201
43202 pkg_failed=no
43203 { echo "$as_me:$LINENO: checking for HILDON" >&5
43204 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43205
43206 if test -n "$PKG_CONFIG"; then
43207     if test -n "$HILDON_CFLAGS"; then
43208         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43209     else
43210         if test -n "$PKG_CONFIG" && \
43211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43212   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43213   ac_status=$?
43214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43215   (exit $ac_status); }; then
43216   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43217 else
43218   pkg_failed=yes
43219 fi
43220     fi
43221 else
43222         pkg_failed=untried
43223 fi
43224 if test -n "$PKG_CONFIG"; then
43225     if test -n "$HILDON_LIBS"; then
43226         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43227     else
43228         if test -n "$PKG_CONFIG" && \
43229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43230   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43231   ac_status=$?
43232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233   (exit $ac_status); }; then
43234   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43235 else
43236   pkg_failed=yes
43237 fi
43238     fi
43239 else
43240         pkg_failed=untried
43241 fi
43242
43243
43244
43245 if test $pkg_failed = yes; then
43246
43247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43248         _pkg_short_errors_supported=yes
43249 else
43250         _pkg_short_errors_supported=no
43251 fi
43252         if test $_pkg_short_errors_supported = yes; then
43253                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43254         else
43255                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43256         fi
43257         # Put the nasty error message in config.log where it belongs
43258         echo "$HILDON_PKG_ERRORS" >&5
43259
43260
43261                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43262 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43263                         wxUSE_LIBHILDON="no"
43264                         ac_hildon_lgpl=0
43265
43266
43267 elif test $pkg_failed = untried; then
43268
43269                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43270 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43271                         wxUSE_LIBHILDON="no"
43272                         ac_hildon_lgpl=0
43273
43274
43275 else
43276         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43277         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43278         { echo "$as_me:$LINENO: result: yes" >&5
43279 echo "${ECHO_T}yes" >&6; }
43280
43281                 EXTRALIBS_HILDON="$HILDON_LIBS"
43282                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43283                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43284                 cat >>confdefs.h <<\_ACEOF
43285 #define wxUSE_LIBHILDON 1
43286 _ACEOF
43287
43288                 ac_hildon_lgpl=1
43289
43290 fi
43291
43292         if test "$ac_hildon_lgpl" = 0 ; then
43293
43294 pkg_failed=no
43295 { echo "$as_me:$LINENO: checking for HILDON2" >&5
43296 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
43297
43298 if test -n "$PKG_CONFIG"; then
43299     if test -n "$HILDON2_CFLAGS"; then
43300         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
43301     else
43302         if test -n "$PKG_CONFIG" && \
43303     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
43304   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
43305   ac_status=$?
43306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307   (exit $ac_status); }; then
43308   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
43309 else
43310   pkg_failed=yes
43311 fi
43312     fi
43313 else
43314         pkg_failed=untried
43315 fi
43316 if test -n "$PKG_CONFIG"; then
43317     if test -n "$HILDON2_LIBS"; then
43318         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
43319     else
43320         if test -n "$PKG_CONFIG" && \
43321     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
43322   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
43323   ac_status=$?
43324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43325   (exit $ac_status); }; then
43326   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
43327 else
43328   pkg_failed=yes
43329 fi
43330     fi
43331 else
43332         pkg_failed=untried
43333 fi
43334
43335
43336
43337 if test $pkg_failed = yes; then
43338
43339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43340         _pkg_short_errors_supported=yes
43341 else
43342         _pkg_short_errors_supported=no
43343 fi
43344         if test $_pkg_short_errors_supported = yes; then
43345                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
43346         else
43347                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
43348         fi
43349         # Put the nasty error message in config.log where it belongs
43350         echo "$HILDON2_PKG_ERRORS" >&5
43351
43352
43353                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
43354 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
43355                             wxUSE_LIBHILDON2="no"
43356
43357
43358 elif test $pkg_failed = untried; then
43359
43360                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
43361 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
43362                             wxUSE_LIBHILDON2="no"
43363
43364
43365 else
43366         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
43367         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
43368         { echo "$as_me:$LINENO: result: yes" >&5
43369 echo "${ECHO_T}yes" >&6; }
43370
43371                     EXTRALIBS_HILDON="$HILDON2_LIBS"
43372                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
43373                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
43374                     cat >>confdefs.h <<\_ACEOF
43375 #define wxUSE_LIBHILDON2 1
43376 _ACEOF
43377
43378
43379 fi
43380         fi
43381     fi
43382 fi
43383
43384 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43385   cat >>confdefs.h <<\_ACEOF
43386 #define wxUSE_CMDLINE_PARSER 1
43387 _ACEOF
43388
43389 fi
43390
43391 if test "$wxUSE_STOPWATCH" = "yes"; then
43392   cat >>confdefs.h <<\_ACEOF
43393 #define wxUSE_STOPWATCH 1
43394 _ACEOF
43395
43396 fi
43397
43398 if test "$wxUSE_DATETIME" = "yes"; then
43399   cat >>confdefs.h <<\_ACEOF
43400 #define wxUSE_DATETIME 1
43401 _ACEOF
43402
43403 fi
43404
43405 if test "$wxUSE_FILE" = "yes"; then
43406   cat >>confdefs.h <<\_ACEOF
43407 #define wxUSE_FILE 1
43408 _ACEOF
43409
43410 fi
43411
43412 if test "$wxUSE_FFILE" = "yes"; then
43413   cat >>confdefs.h <<\_ACEOF
43414 #define wxUSE_FFILE 1
43415 _ACEOF
43416
43417 fi
43418
43419 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43420   if test "$wxUSE_STREAMS" != yes; then
43421     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43422 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43423     wxUSE_ARCHIVE_STREAMS=no
43424   else
43425     cat >>confdefs.h <<\_ACEOF
43426 #define wxUSE_ARCHIVE_STREAMS 1
43427 _ACEOF
43428
43429   fi
43430 fi
43431
43432 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43433   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43434     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43435 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43436   elif test "$wxUSE_ZLIB" = "no"; then
43437     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43438 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43439   else
43440     cat >>confdefs.h <<\_ACEOF
43441 #define wxUSE_ZIPSTREAM 1
43442 _ACEOF
43443
43444   fi
43445 fi
43446
43447 if test "$wxUSE_TARSTREAM" = "yes"; then
43448   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43449     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43450 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43451   else
43452     cat >>confdefs.h <<\_ACEOF
43453 #define wxUSE_TARSTREAM 1
43454 _ACEOF
43455
43456   fi
43457 fi
43458
43459 if test "$wxUSE_FILESYSTEM" = "yes"; then
43460   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43461     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43462 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43463     wxUSE_FILESYSTEM=no
43464   else
43465     cat >>confdefs.h <<\_ACEOF
43466 #define wxUSE_FILESYSTEM 1
43467 _ACEOF
43468
43469   fi
43470 fi
43471
43472 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43473   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43474     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43475 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43476   else
43477     cat >>confdefs.h <<\_ACEOF
43478 #define wxUSE_FS_ARCHIVE 1
43479 _ACEOF
43480
43481   fi
43482 fi
43483
43484 if test "$wxUSE_FS_ZIP" = "yes"; then
43485   if test "$wxUSE_FS_ARCHIVE" != yes; then
43486     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43487 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43488   else
43489     cat >>confdefs.h <<\_ACEOF
43490 #define wxUSE_FS_ZIP 1
43491 _ACEOF
43492
43493   fi
43494 fi
43495
43496 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43497   if test "$USE_UNIX" != 1; then
43498     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43499 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43500     wxUSE_ON_FATAL_EXCEPTION=no
43501   else
43502     cat >>confdefs.h <<\_ACEOF
43503 #define wxUSE_ON_FATAL_EXCEPTION 1
43504 _ACEOF
43505
43506   fi
43507 fi
43508
43509 if test "$wxUSE_STACKWALKER" = "yes"; then
43510     cat >>confdefs.h <<\_ACEOF
43511 #define wxUSE_STACKWALKER 1
43512 _ACEOF
43513
43514 fi
43515
43516 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43517     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43518         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43519 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43520         wxUSE_DEBUGREPORT=no
43521     else
43522         cat >>confdefs.h <<\_ACEOF
43523 #define wxUSE_DEBUGREPORT 1
43524 _ACEOF
43525
43526         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43527             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43528         fi
43529     fi
43530 fi
43531
43532 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43533   cat >>confdefs.h <<\_ACEOF
43534 #define wxUSE_SNGLINST_CHECKER 1
43535 _ACEOF
43536
43537 fi
43538
43539 if test "$wxUSE_BUSYINFO" = "yes"; then
43540   cat >>confdefs.h <<\_ACEOF
43541 #define wxUSE_BUSYINFO 1
43542 _ACEOF
43543
43544 fi
43545
43546 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43547   cat >>confdefs.h <<\_ACEOF
43548 #define wxUSE_STD_IOSTREAM 1
43549 _ACEOF
43550
43551 fi
43552
43553 if test "$wxUSE_STD_STRING" = "yes"; then
43554   cat >>confdefs.h <<\_ACEOF
43555 #define wxUSE_STD_STRING 1
43556 _ACEOF
43557
43558 fi
43559
43560 if test "$wxUSE_STDPATHS" = "yes"; then
43561   cat >>confdefs.h <<\_ACEOF
43562 #define wxUSE_STDPATHS 1
43563 _ACEOF
43564
43565 fi
43566
43567 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43568     cat >>confdefs.h <<\_ACEOF
43569 #define wxUSE_TEXTBUFFER 1
43570 _ACEOF
43571
43572 fi
43573
43574 if test "$wxUSE_TEXTFILE" = "yes"; then
43575   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43576     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43577 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43578   else
43579     cat >>confdefs.h <<\_ACEOF
43580 #define wxUSE_TEXTFILE 1
43581 _ACEOF
43582
43583   fi
43584 fi
43585
43586 if test "$wxUSE_CONFIG" = "yes" ; then
43587   if test "$wxUSE_TEXTFILE" != "yes"; then
43588     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43589 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43590   else
43591     cat >>confdefs.h <<\_ACEOF
43592 #define wxUSE_CONFIG 1
43593 _ACEOF
43594
43595     cat >>confdefs.h <<\_ACEOF
43596 #define wxUSE_CONFIG_NATIVE 1
43597 _ACEOF
43598
43599     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43600   fi
43601 fi
43602
43603 if test "$wxUSE_INTL" = "yes" ; then
43604   if test "$wxUSE_FILE" != "yes"; then
43605     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43606 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43607   else
43608     cat >>confdefs.h <<\_ACEOF
43609 #define wxUSE_INTL 1
43610 _ACEOF
43611
43612     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43613     GUIDIST="$GUIDIST INTL_DIST"
43614   fi
43615 fi
43616
43617 if test "$wxUSE_XLOCALE" = "yes" ; then
43618     cat >>confdefs.h <<\_ACEOF
43619 #define wxUSE_XLOCALE 1
43620 _ACEOF
43621
43622     { echo "$as_me:$LINENO: checking for locale_t" >&5
43623 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43624 if test "${ac_cv_type_locale_t+set}" = set; then
43625   echo $ECHO_N "(cached) $ECHO_C" >&6
43626 else
43627   cat >conftest.$ac_ext <<_ACEOF
43628 /* confdefs.h.  */
43629 _ACEOF
43630 cat confdefs.h >>conftest.$ac_ext
43631 cat >>conftest.$ac_ext <<_ACEOF
43632 /* end confdefs.h.  */
43633 #include <xlocale.h>
43634                     #include <locale.h>
43635
43636 typedef locale_t ac__type_new_;
43637 int
43638 main ()
43639 {
43640 if ((ac__type_new_ *) 0)
43641   return 0;
43642 if (sizeof (ac__type_new_))
43643   return 0;
43644   ;
43645   return 0;
43646 }
43647 _ACEOF
43648 rm -f conftest.$ac_objext
43649 if { (ac_try="$ac_compile"
43650 case "(($ac_try" in
43651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652   *) ac_try_echo=$ac_try;;
43653 esac
43654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43655   (eval "$ac_compile") 2>conftest.er1
43656   ac_status=$?
43657   grep -v '^ *+' conftest.er1 >conftest.err
43658   rm -f conftest.er1
43659   cat conftest.err >&5
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); } && {
43662          test -z "$ac_c_werror_flag" ||
43663          test ! -s conftest.err
43664        } && test -s conftest.$ac_objext; then
43665   ac_cv_type_locale_t=yes
43666 else
43667   echo "$as_me: failed program was:" >&5
43668 sed 's/^/| /' conftest.$ac_ext >&5
43669
43670         ac_cv_type_locale_t=no
43671 fi
43672
43673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43674 fi
43675 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43676 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43677 if test $ac_cv_type_locale_t = yes; then
43678
43679 cat >>confdefs.h <<_ACEOF
43680 #define HAVE_LOCALE_T 1
43681 _ACEOF
43682
43683
43684 fi
43685
43686 fi
43687
43688 if test "$wxUSE_LOG" = "yes"; then
43689   cat >>confdefs.h <<\_ACEOF
43690 #define wxUSE_LOG 1
43691 _ACEOF
43692
43693
43694     if test "$wxUSE_LOGGUI" = "yes"; then
43695       cat >>confdefs.h <<\_ACEOF
43696 #define wxUSE_LOGGUI 1
43697 _ACEOF
43698
43699     fi
43700
43701     if test "$wxUSE_LOGWINDOW" = "yes"; then
43702       cat >>confdefs.h <<\_ACEOF
43703 #define wxUSE_LOGWINDOW 1
43704 _ACEOF
43705
43706     fi
43707
43708     if test "$wxUSE_LOGDIALOG" = "yes"; then
43709       cat >>confdefs.h <<\_ACEOF
43710 #define wxUSE_LOG_DIALOG 1
43711 _ACEOF
43712
43713     fi
43714
43715         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43716 fi
43717
43718 if test "$wxUSE_LONGLONG" = "yes"; then
43719   cat >>confdefs.h <<\_ACEOF
43720 #define wxUSE_LONGLONG 1
43721 _ACEOF
43722
43723 fi
43724
43725 if test "$wxUSE_GEOMETRY" = "yes"; then
43726   cat >>confdefs.h <<\_ACEOF
43727 #define wxUSE_GEOMETRY 1
43728 _ACEOF
43729
43730 fi
43731
43732 if test "$wxUSE_BASE64" = "yes"; then
43733   cat >>confdefs.h <<\_ACEOF
43734 #define wxUSE_BASE64 1
43735 _ACEOF
43736
43737 fi
43738
43739 if test "$wxUSE_STREAMS" = "yes" ; then
43740   cat >>confdefs.h <<\_ACEOF
43741 #define wxUSE_STREAMS 1
43742 _ACEOF
43743
43744 fi
43745
43746 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43747   cat >>confdefs.h <<\_ACEOF
43748 #define wxUSE_PRINTF_POS_PARAMS 1
43749 _ACEOF
43750
43751 fi
43752
43753 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43754   cat >>confdefs.h <<\_ACEOF
43755 #define wxUSE_OBJC_UNIQUIFYING 1
43756 _ACEOF
43757
43758 fi
43759
43760
43761 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43762     cat >>confdefs.h <<\_ACEOF
43763 #define wxUSE_CONSOLE_EVENTLOOP 1
43764 _ACEOF
43765
43766
43767     if test "$wxUSE_UNIX" = "yes"; then
43768         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43769             cat >>confdefs.h <<\_ACEOF
43770 #define wxUSE_SELECT_DISPATCHER 1
43771 _ACEOF
43772
43773         fi
43774
43775         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43776
43777 for ac_header in sys/epoll.h
43778 do
43779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43783   echo $ECHO_N "(cached) $ECHO_C" >&6
43784 else
43785   cat >conftest.$ac_ext <<_ACEOF
43786 /* confdefs.h.  */
43787 _ACEOF
43788 cat confdefs.h >>conftest.$ac_ext
43789 cat >>conftest.$ac_ext <<_ACEOF
43790 /* end confdefs.h.  */
43791 $ac_includes_default
43792
43793 #include <$ac_header>
43794 _ACEOF
43795 rm -f conftest.$ac_objext
43796 if { (ac_try="$ac_compile"
43797 case "(($ac_try" in
43798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43799   *) ac_try_echo=$ac_try;;
43800 esac
43801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43802   (eval "$ac_compile") 2>conftest.er1
43803   ac_status=$?
43804   grep -v '^ *+' conftest.er1 >conftest.err
43805   rm -f conftest.er1
43806   cat conftest.err >&5
43807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808   (exit $ac_status); } && {
43809          test -z "$ac_c_werror_flag" ||
43810          test ! -s conftest.err
43811        } && test -s conftest.$ac_objext; then
43812   eval "$as_ac_Header=yes"
43813 else
43814   echo "$as_me: failed program was:" >&5
43815 sed 's/^/| /' conftest.$ac_ext >&5
43816
43817         eval "$as_ac_Header=no"
43818 fi
43819
43820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43821 fi
43822 ac_res=`eval echo '${'$as_ac_Header'}'`
43823                { echo "$as_me:$LINENO: result: $ac_res" >&5
43824 echo "${ECHO_T}$ac_res" >&6; }
43825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43826   cat >>confdefs.h <<_ACEOF
43827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43828 _ACEOF
43829
43830 fi
43831
43832 done
43833
43834             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43835                 cat >>confdefs.h <<\_ACEOF
43836 #define wxUSE_EPOLL_DISPATCHER 1
43837 _ACEOF
43838
43839             else
43840                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43841 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43842             fi
43843         fi
43844     fi
43845 fi
43846
43847
43848
43849
43850 for ac_func in gettimeofday ftime
43851 do
43852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43856   echo $ECHO_N "(cached) $ECHO_C" >&6
43857 else
43858   cat >conftest.$ac_ext <<_ACEOF
43859 /* confdefs.h.  */
43860 _ACEOF
43861 cat confdefs.h >>conftest.$ac_ext
43862 cat >>conftest.$ac_ext <<_ACEOF
43863 /* end confdefs.h.  */
43864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43866 #define $ac_func innocuous_$ac_func
43867
43868 /* System header to define __stub macros and hopefully few prototypes,
43869     which can conflict with char $ac_func (); below.
43870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43871     <limits.h> exists even on freestanding compilers.  */
43872
43873 #ifdef __STDC__
43874 # include <limits.h>
43875 #else
43876 # include <assert.h>
43877 #endif
43878
43879 #undef $ac_func
43880
43881 /* Override any GCC internal prototype to avoid an error.
43882    Use char because int might match the return type of a GCC
43883    builtin and then its argument prototype would still apply.  */
43884 #ifdef __cplusplus
43885 extern "C"
43886 #endif
43887 char $ac_func ();
43888 /* The GNU C library defines this for functions which it implements
43889     to always fail with ENOSYS.  Some functions are actually named
43890     something starting with __ and the normal name is an alias.  */
43891 #if defined __stub_$ac_func || defined __stub___$ac_func
43892 choke me
43893 #endif
43894
43895 int
43896 main ()
43897 {
43898 return $ac_func ();
43899   ;
43900   return 0;
43901 }
43902 _ACEOF
43903 rm -f conftest.$ac_objext conftest$ac_exeext
43904 if { (ac_try="$ac_link"
43905 case "(($ac_try" in
43906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43907   *) ac_try_echo=$ac_try;;
43908 esac
43909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43910   (eval "$ac_link") 2>conftest.er1
43911   ac_status=$?
43912   grep -v '^ *+' conftest.er1 >conftest.err
43913   rm -f conftest.er1
43914   cat conftest.err >&5
43915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916   (exit $ac_status); } && {
43917          test -z "$ac_c_werror_flag" ||
43918          test ! -s conftest.err
43919        } && test -s conftest$ac_exeext &&
43920        $as_test_x conftest$ac_exeext; then
43921   eval "$as_ac_var=yes"
43922 else
43923   echo "$as_me: failed program was:" >&5
43924 sed 's/^/| /' conftest.$ac_ext >&5
43925
43926         eval "$as_ac_var=no"
43927 fi
43928
43929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43930       conftest$ac_exeext conftest.$ac_ext
43931 fi
43932 ac_res=`eval echo '${'$as_ac_var'}'`
43933                { echo "$as_me:$LINENO: result: $ac_res" >&5
43934 echo "${ECHO_T}$ac_res" >&6; }
43935 if test `eval echo '${'$as_ac_var'}'` = yes; then
43936   cat >>confdefs.h <<_ACEOF
43937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43938 _ACEOF
43939  break
43940 fi
43941 done
43942
43943
43944 if test "$ac_cv_func_gettimeofday" = "yes"; then
43945     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43946 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43947 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43948   echo $ECHO_N "(cached) $ECHO_C" >&6
43949 else
43950
43951                 cat >conftest.$ac_ext <<_ACEOF
43952 /* confdefs.h.  */
43953 _ACEOF
43954 cat confdefs.h >>conftest.$ac_ext
43955 cat >>conftest.$ac_ext <<_ACEOF
43956 /* end confdefs.h.  */
43957
43958                 #include <sys/time.h>
43959                 #include <unistd.h>
43960
43961 int
43962 main ()
43963 {
43964
43965                 struct timeval tv;
43966                 gettimeofday(&tv, NULL);
43967
43968   ;
43969   return 0;
43970 }
43971 _ACEOF
43972 rm -f conftest.$ac_objext
43973 if { (ac_try="$ac_compile"
43974 case "(($ac_try" in
43975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43976   *) ac_try_echo=$ac_try;;
43977 esac
43978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43979   (eval "$ac_compile") 2>conftest.er1
43980   ac_status=$?
43981   grep -v '^ *+' conftest.er1 >conftest.err
43982   rm -f conftest.er1
43983   cat conftest.err >&5
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); } && {
43986          test -z "$ac_c_werror_flag" ||
43987          test ! -s conftest.err
43988        } && test -s conftest.$ac_objext; then
43989   wx_cv_func_gettimeofday_has_2_args=yes
43990 else
43991   echo "$as_me: failed program was:" >&5
43992 sed 's/^/| /' conftest.$ac_ext >&5
43993
43994         cat >conftest.$ac_ext <<_ACEOF
43995 /* confdefs.h.  */
43996 _ACEOF
43997 cat confdefs.h >>conftest.$ac_ext
43998 cat >>conftest.$ac_ext <<_ACEOF
43999 /* end confdefs.h.  */
44000
44001                     #include <sys/time.h>
44002                     #include <unistd.h>
44003
44004 int
44005 main ()
44006 {
44007
44008                     struct timeval tv;
44009                     gettimeofday(&tv);
44010
44011   ;
44012   return 0;
44013 }
44014 _ACEOF
44015 rm -f conftest.$ac_objext
44016 if { (ac_try="$ac_compile"
44017 case "(($ac_try" in
44018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44019   *) ac_try_echo=$ac_try;;
44020 esac
44021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44022   (eval "$ac_compile") 2>conftest.er1
44023   ac_status=$?
44024   grep -v '^ *+' conftest.er1 >conftest.err
44025   rm -f conftest.er1
44026   cat conftest.err >&5
44027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44028   (exit $ac_status); } && {
44029          test -z "$ac_c_werror_flag" ||
44030          test ! -s conftest.err
44031        } && test -s conftest.$ac_objext; then
44032   wx_cv_func_gettimeofday_has_2_args=no
44033 else
44034   echo "$as_me: failed program was:" >&5
44035 sed 's/^/| /' conftest.$ac_ext >&5
44036
44037
44038                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44039 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44040                     wx_cv_func_gettimeofday_has_2_args=unknown
44041
44042
44043 fi
44044
44045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44046
44047 fi
44048
44049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44050
44051 fi
44052 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44053 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
44054
44055     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44056         cat >>confdefs.h <<\_ACEOF
44057 #define WX_GETTIMEOFDAY_NO_TZ 1
44058 _ACEOF
44059
44060     fi
44061 fi
44062
44063 if test "$wxUSE_DATETIME" = "yes"; then
44064             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44065 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44066 if test "${wx_cv_var_timezone+set}" = set; then
44067   echo $ECHO_N "(cached) $ECHO_C" >&6
44068 else
44069
44070                         ac_ext=cpp
44071 ac_cpp='$CXXCPP $CPPFLAGS'
44072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44075
44076                         cat >conftest.$ac_ext <<_ACEOF
44077 /* confdefs.h.  */
44078 _ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h.  */
44082
44083                                 #include <time.h>
44084
44085 int
44086 main ()
44087 {
44088
44089                                 int tz;
44090                                 tz = timezone;
44091
44092   ;
44093   return 0;
44094 }
44095 _ACEOF
44096 rm -f conftest.$ac_objext
44097 if { (ac_try="$ac_compile"
44098 case "(($ac_try" in
44099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44100   *) ac_try_echo=$ac_try;;
44101 esac
44102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44103   (eval "$ac_compile") 2>conftest.er1
44104   ac_status=$?
44105   grep -v '^ *+' conftest.er1 >conftest.err
44106   rm -f conftest.er1
44107   cat conftest.err >&5
44108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109   (exit $ac_status); } && {
44110          test -z "$ac_cxx_werror_flag" ||
44111          test ! -s conftest.err
44112        } && test -s conftest.$ac_objext; then
44113
44114                                 wx_cv_var_timezone=timezone
44115
44116 else
44117   echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44119
44120
44121                                 cat >conftest.$ac_ext <<_ACEOF
44122 /* confdefs.h.  */
44123 _ACEOF
44124 cat confdefs.h >>conftest.$ac_ext
44125 cat >>conftest.$ac_ext <<_ACEOF
44126 /* end confdefs.h.  */
44127
44128                                         #include <time.h>
44129
44130 int
44131 main ()
44132 {
44133
44134                                         int tz;
44135                                         tz = _timezone;
44136
44137   ;
44138   return 0;
44139 }
44140 _ACEOF
44141 rm -f conftest.$ac_objext
44142 if { (ac_try="$ac_compile"
44143 case "(($ac_try" in
44144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44145   *) ac_try_echo=$ac_try;;
44146 esac
44147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44148   (eval "$ac_compile") 2>conftest.er1
44149   ac_status=$?
44150   grep -v '^ *+' conftest.er1 >conftest.err
44151   rm -f conftest.er1
44152   cat conftest.err >&5
44153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44154   (exit $ac_status); } && {
44155          test -z "$ac_cxx_werror_flag" ||
44156          test ! -s conftest.err
44157        } && test -s conftest.$ac_objext; then
44158
44159                                         wx_cv_var_timezone=_timezone
44160
44161 else
44162   echo "$as_me: failed program was:" >&5
44163 sed 's/^/| /' conftest.$ac_ext >&5
44164
44165
44166                                         cat >conftest.$ac_ext <<_ACEOF
44167 /* confdefs.h.  */
44168 _ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h.  */
44172
44173                                                 #include <time.h>
44174
44175 int
44176 main ()
44177 {
44178
44179                                                 int tz;
44180                                                 tz = __timezone;
44181
44182   ;
44183   return 0;
44184 }
44185 _ACEOF
44186 rm -f conftest.$ac_objext
44187 if { (ac_try="$ac_compile"
44188 case "(($ac_try" in
44189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44190   *) ac_try_echo=$ac_try;;
44191 esac
44192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44193   (eval "$ac_compile") 2>conftest.er1
44194   ac_status=$?
44195   grep -v '^ *+' conftest.er1 >conftest.err
44196   rm -f conftest.er1
44197   cat conftest.err >&5
44198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44199   (exit $ac_status); } && {
44200          test -z "$ac_cxx_werror_flag" ||
44201          test ! -s conftest.err
44202        } && test -s conftest.$ac_objext; then
44203
44204                                                 wx_cv_var_timezone=__timezone
44205
44206 else
44207   echo "$as_me: failed program was:" >&5
44208 sed 's/^/| /' conftest.$ac_ext >&5
44209
44210
44211                                                 if test "$USE_DOS" = 0 ; then
44212                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44213 echo "$as_me: WARNING: no timezone variable" >&2;}
44214                                                 fi
44215
44216
44217 fi
44218
44219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44220
44221
44222 fi
44223
44224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44225
44226
44227 fi
44228
44229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44230                         ac_ext=c
44231 ac_cpp='$CPP $CPPFLAGS'
44232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44235
44236
44237
44238 fi
44239 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44240 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44241
44242         if test "x$wx_cv_var_timezone" != x ; then
44243         cat >>confdefs.h <<_ACEOF
44244 #define WX_TIMEZONE $wx_cv_var_timezone
44245 _ACEOF
44246
44247     fi
44248
44249
44250 for ac_func in localtime
44251 do
44252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44256   echo $ECHO_N "(cached) $ECHO_C" >&6
44257 else
44258   cat >conftest.$ac_ext <<_ACEOF
44259 /* confdefs.h.  */
44260 _ACEOF
44261 cat confdefs.h >>conftest.$ac_ext
44262 cat >>conftest.$ac_ext <<_ACEOF
44263 /* end confdefs.h.  */
44264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44266 #define $ac_func innocuous_$ac_func
44267
44268 /* System header to define __stub macros and hopefully few prototypes,
44269     which can conflict with char $ac_func (); below.
44270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44271     <limits.h> exists even on freestanding compilers.  */
44272
44273 #ifdef __STDC__
44274 # include <limits.h>
44275 #else
44276 # include <assert.h>
44277 #endif
44278
44279 #undef $ac_func
44280
44281 /* Override any GCC internal prototype to avoid an error.
44282    Use char because int might match the return type of a GCC
44283    builtin and then its argument prototype would still apply.  */
44284 #ifdef __cplusplus
44285 extern "C"
44286 #endif
44287 char $ac_func ();
44288 /* The GNU C library defines this for functions which it implements
44289     to always fail with ENOSYS.  Some functions are actually named
44290     something starting with __ and the normal name is an alias.  */
44291 #if defined __stub_$ac_func || defined __stub___$ac_func
44292 choke me
44293 #endif
44294
44295 int
44296 main ()
44297 {
44298 return $ac_func ();
44299   ;
44300   return 0;
44301 }
44302 _ACEOF
44303 rm -f conftest.$ac_objext conftest$ac_exeext
44304 if { (ac_try="$ac_link"
44305 case "(($ac_try" in
44306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44307   *) ac_try_echo=$ac_try;;
44308 esac
44309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44310   (eval "$ac_link") 2>conftest.er1
44311   ac_status=$?
44312   grep -v '^ *+' conftest.er1 >conftest.err
44313   rm -f conftest.er1
44314   cat conftest.err >&5
44315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316   (exit $ac_status); } && {
44317          test -z "$ac_c_werror_flag" ||
44318          test ! -s conftest.err
44319        } && test -s conftest$ac_exeext &&
44320        $as_test_x conftest$ac_exeext; then
44321   eval "$as_ac_var=yes"
44322 else
44323   echo "$as_me: failed program was:" >&5
44324 sed 's/^/| /' conftest.$ac_ext >&5
44325
44326         eval "$as_ac_var=no"
44327 fi
44328
44329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44330       conftest$ac_exeext conftest.$ac_ext
44331 fi
44332 ac_res=`eval echo '${'$as_ac_var'}'`
44333                { echo "$as_me:$LINENO: result: $ac_res" >&5
44334 echo "${ECHO_T}$ac_res" >&6; }
44335 if test `eval echo '${'$as_ac_var'}'` = yes; then
44336   cat >>confdefs.h <<_ACEOF
44337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44338 _ACEOF
44339
44340 fi
44341 done
44342
44343
44344     if test "$ac_cv_func_localtime" = "yes"; then
44345         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44346 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44347 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44348   echo $ECHO_N "(cached) $ECHO_C" >&6
44349 else
44350
44351             cat >conftest.$ac_ext <<_ACEOF
44352 /* confdefs.h.  */
44353 _ACEOF
44354 cat confdefs.h >>conftest.$ac_ext
44355 cat >>conftest.$ac_ext <<_ACEOF
44356 /* end confdefs.h.  */
44357
44358                     #include <time.h>
44359
44360 int
44361 main ()
44362 {
44363
44364                     struct tm tm;
44365                     tm.tm_gmtoff++;
44366
44367   ;
44368   return 0;
44369 }
44370 _ACEOF
44371 rm -f conftest.$ac_objext
44372 if { (ac_try="$ac_compile"
44373 case "(($ac_try" in
44374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44375   *) ac_try_echo=$ac_try;;
44376 esac
44377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44378   (eval "$ac_compile") 2>conftest.er1
44379   ac_status=$?
44380   grep -v '^ *+' conftest.er1 >conftest.err
44381   rm -f conftest.er1
44382   cat conftest.err >&5
44383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384   (exit $ac_status); } && {
44385          test -z "$ac_c_werror_flag" ||
44386          test ! -s conftest.err
44387        } && test -s conftest.$ac_objext; then
44388
44389                     wx_cv_struct_tm_has_gmtoff=yes
44390
44391 else
44392   echo "$as_me: failed program was:" >&5
44393 sed 's/^/| /' conftest.$ac_ext >&5
44394
44395         wx_cv_struct_tm_has_gmtoff=no
44396
44397 fi
44398
44399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44400
44401 fi
44402 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44403 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44404     fi
44405
44406     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44407         cat >>confdefs.h <<\_ACEOF
44408 #define WX_GMTOFF_IN_TM 1
44409 _ACEOF
44410
44411     fi
44412
44413     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44414 fi
44415
44416
44417 if test "$wxUSE_SOCKETS" = "yes"; then
44418     if test "$wxUSE_MGL" = 1; then
44419         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44420 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44421         wxUSE_SOCKETS="no"
44422     fi
44423 fi
44424
44425 if test "$wxUSE_SOCKETS" = "yes"; then
44426         if test "$TOOLKIT" != "MSW"; then
44427                 { echo "$as_me:$LINENO: checking for socket" >&5
44428 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44429 if test "${ac_cv_func_socket+set}" = set; then
44430   echo $ECHO_N "(cached) $ECHO_C" >&6
44431 else
44432   cat >conftest.$ac_ext <<_ACEOF
44433 /* confdefs.h.  */
44434 _ACEOF
44435 cat confdefs.h >>conftest.$ac_ext
44436 cat >>conftest.$ac_ext <<_ACEOF
44437 /* end confdefs.h.  */
44438 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44440 #define socket innocuous_socket
44441
44442 /* System header to define __stub macros and hopefully few prototypes,
44443     which can conflict with char socket (); below.
44444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44445     <limits.h> exists even on freestanding compilers.  */
44446
44447 #ifdef __STDC__
44448 # include <limits.h>
44449 #else
44450 # include <assert.h>
44451 #endif
44452
44453 #undef socket
44454
44455 /* Override any GCC internal prototype to avoid an error.
44456    Use char because int might match the return type of a GCC
44457    builtin and then its argument prototype would still apply.  */
44458 #ifdef __cplusplus
44459 extern "C"
44460 #endif
44461 char socket ();
44462 /* The GNU C library defines this for functions which it implements
44463     to always fail with ENOSYS.  Some functions are actually named
44464     something starting with __ and the normal name is an alias.  */
44465 #if defined __stub_socket || defined __stub___socket
44466 choke me
44467 #endif
44468
44469 int
44470 main ()
44471 {
44472 return socket ();
44473   ;
44474   return 0;
44475 }
44476 _ACEOF
44477 rm -f conftest.$ac_objext conftest$ac_exeext
44478 if { (ac_try="$ac_link"
44479 case "(($ac_try" in
44480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44481   *) ac_try_echo=$ac_try;;
44482 esac
44483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44484   (eval "$ac_link") 2>conftest.er1
44485   ac_status=$?
44486   grep -v '^ *+' conftest.er1 >conftest.err
44487   rm -f conftest.er1
44488   cat conftest.err >&5
44489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490   (exit $ac_status); } && {
44491          test -z "$ac_c_werror_flag" ||
44492          test ! -s conftest.err
44493        } && test -s conftest$ac_exeext &&
44494        $as_test_x conftest$ac_exeext; then
44495   ac_cv_func_socket=yes
44496 else
44497   echo "$as_me: failed program was:" >&5
44498 sed 's/^/| /' conftest.$ac_ext >&5
44499
44500         ac_cv_func_socket=no
44501 fi
44502
44503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44504       conftest$ac_exeext conftest.$ac_ext
44505 fi
44506 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44507 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44508 if test $ac_cv_func_socket = yes; then
44509   :
44510 else
44511
44512                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44513 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44514 if test "${ac_cv_lib_socket_socket+set}" = set; then
44515   echo $ECHO_N "(cached) $ECHO_C" >&6
44516 else
44517   ac_check_lib_save_LIBS=$LIBS
44518 LIBS="-lsocket  $LIBS"
44519 cat >conftest.$ac_ext <<_ACEOF
44520 /* confdefs.h.  */
44521 _ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h.  */
44525
44526 /* Override any GCC internal prototype to avoid an error.
44527    Use char because int might match the return type of a GCC
44528    builtin and then its argument prototype would still apply.  */
44529 #ifdef __cplusplus
44530 extern "C"
44531 #endif
44532 char socket ();
44533 int
44534 main ()
44535 {
44536 return socket ();
44537   ;
44538   return 0;
44539 }
44540 _ACEOF
44541 rm -f conftest.$ac_objext conftest$ac_exeext
44542 if { (ac_try="$ac_link"
44543 case "(($ac_try" in
44544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44545   *) ac_try_echo=$ac_try;;
44546 esac
44547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44548   (eval "$ac_link") 2>conftest.er1
44549   ac_status=$?
44550   grep -v '^ *+' conftest.er1 >conftest.err
44551   rm -f conftest.er1
44552   cat conftest.err >&5
44553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44554   (exit $ac_status); } && {
44555          test -z "$ac_c_werror_flag" ||
44556          test ! -s conftest.err
44557        } && test -s conftest$ac_exeext &&
44558        $as_test_x conftest$ac_exeext; then
44559   ac_cv_lib_socket_socket=yes
44560 else
44561   echo "$as_me: failed program was:" >&5
44562 sed 's/^/| /' conftest.$ac_ext >&5
44563
44564         ac_cv_lib_socket_socket=no
44565 fi
44566
44567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44568       conftest$ac_exeext conftest.$ac_ext
44569 LIBS=$ac_check_lib_save_LIBS
44570 fi
44571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44573 if test $ac_cv_lib_socket_socket = yes; then
44574   if test "$INET_LINK" != " -lsocket"; then
44575                         INET_LINK="$INET_LINK -lsocket"
44576                     fi
44577 else
44578
44579                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44580 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44581                         wxUSE_SOCKETS=no
44582
44583
44584 fi
44585
44586
44587
44588 fi
44589
44590     fi
44591 fi
44592
44593 if test "$wxUSE_SOCKETS" = "yes" ; then
44594                 if test "$TOOLKIT" != "MSW"; then
44595                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44596 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44597 if test "${wx_cv_type_getsockname3+set}" = set; then
44598   echo $ECHO_N "(cached) $ECHO_C" >&6
44599 else
44600
44601                 ac_ext=cpp
44602 ac_cpp='$CXXCPP $CPPFLAGS'
44603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44606
44607                 cat >conftest.$ac_ext <<_ACEOF
44608 /* confdefs.h.  */
44609 _ACEOF
44610 cat confdefs.h >>conftest.$ac_ext
44611 cat >>conftest.$ac_ext <<_ACEOF
44612 /* end confdefs.h.  */
44613
44614                         #include <sys/types.h>
44615                         #include <sys/socket.h>
44616
44617 int
44618 main ()
44619 {
44620
44621                         socklen_t len;
44622                         getsockname(0, 0, &len);
44623
44624   ;
44625   return 0;
44626 }
44627 _ACEOF
44628 rm -f conftest.$ac_objext
44629 if { (ac_try="$ac_compile"
44630 case "(($ac_try" in
44631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44632   *) ac_try_echo=$ac_try;;
44633 esac
44634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44635   (eval "$ac_compile") 2>conftest.er1
44636   ac_status=$?
44637   grep -v '^ *+' conftest.er1 >conftest.err
44638   rm -f conftest.er1
44639   cat conftest.err >&5
44640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641   (exit $ac_status); } && {
44642          test -z "$ac_cxx_werror_flag" ||
44643          test ! -s conftest.err
44644        } && test -s conftest.$ac_objext; then
44645   wx_cv_type_getsockname3=socklen_t
44646 else
44647   echo "$as_me: failed program was:" >&5
44648 sed 's/^/| /' conftest.$ac_ext >&5
44649
44650
44651                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44652                         if test "$GCC" = yes ; then
44653                             CFLAGS="-Werror $CFLAGS"
44654                         fi
44655
44656                         cat >conftest.$ac_ext <<_ACEOF
44657 /* confdefs.h.  */
44658 _ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h.  */
44662
44663                                 #include <sys/types.h>
44664                                 #include <sys/socket.h>
44665
44666 int
44667 main ()
44668 {
44669
44670                                 size_t len;
44671                                 getsockname(0, 0, &len);
44672
44673   ;
44674   return 0;
44675 }
44676 _ACEOF
44677 rm -f conftest.$ac_objext
44678 if { (ac_try="$ac_compile"
44679 case "(($ac_try" in
44680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44681   *) ac_try_echo=$ac_try;;
44682 esac
44683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44684   (eval "$ac_compile") 2>conftest.er1
44685   ac_status=$?
44686   grep -v '^ *+' conftest.er1 >conftest.err
44687   rm -f conftest.er1
44688   cat conftest.err >&5
44689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690   (exit $ac_status); } && {
44691          test -z "$ac_cxx_werror_flag" ||
44692          test ! -s conftest.err
44693        } && test -s conftest.$ac_objext; then
44694   wx_cv_type_getsockname3=size_t
44695 else
44696   echo "$as_me: failed program was:" >&5
44697 sed 's/^/| /' conftest.$ac_ext >&5
44698
44699         cat >conftest.$ac_ext <<_ACEOF
44700 /* confdefs.h.  */
44701 _ACEOF
44702 cat confdefs.h >>conftest.$ac_ext
44703 cat >>conftest.$ac_ext <<_ACEOF
44704 /* end confdefs.h.  */
44705
44706                                     #include <sys/types.h>
44707                                     #include <sys/socket.h>
44708
44709 int
44710 main ()
44711 {
44712
44713                                     int len;
44714                                     getsockname(0, 0, &len);
44715
44716   ;
44717   return 0;
44718 }
44719 _ACEOF
44720 rm -f conftest.$ac_objext
44721 if { (ac_try="$ac_compile"
44722 case "(($ac_try" in
44723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44724   *) ac_try_echo=$ac_try;;
44725 esac
44726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44727   (eval "$ac_compile") 2>conftest.er1
44728   ac_status=$?
44729   grep -v '^ *+' conftest.er1 >conftest.err
44730   rm -f conftest.er1
44731   cat conftest.err >&5
44732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733   (exit $ac_status); } && {
44734          test -z "$ac_cxx_werror_flag" ||
44735          test ! -s conftest.err
44736        } && test -s conftest.$ac_objext; then
44737   wx_cv_type_getsockname3=int
44738 else
44739   echo "$as_me: failed program was:" >&5
44740 sed 's/^/| /' conftest.$ac_ext >&5
44741
44742         wx_cv_type_getsockname3=unknown
44743
44744 fi
44745
44746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44747
44748 fi
44749
44750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44751
44752                         CFLAGS="$CFLAGS_OLD"
44753
44754
44755 fi
44756
44757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44758                 ac_ext=c
44759 ac_cpp='$CPP $CPPFLAGS'
44760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44763
44764
44765 fi
44766 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44767 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44768
44769         if test "$wx_cv_type_getsockname3" = "unknown"; then
44770             wxUSE_SOCKETS=no
44771             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44772 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44773         else
44774             cat >>confdefs.h <<_ACEOF
44775 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44776 _ACEOF
44777
44778         fi
44779                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44780 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44781 if test "${wx_cv_type_getsockopt5+set}" = set; then
44782   echo $ECHO_N "(cached) $ECHO_C" >&6
44783 else
44784
44785                                                                                                 ac_ext=cpp
44786 ac_cpp='$CXXCPP $CPPFLAGS'
44787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44790
44791                 cat >conftest.$ac_ext <<_ACEOF
44792 /* confdefs.h.  */
44793 _ACEOF
44794 cat confdefs.h >>conftest.$ac_ext
44795 cat >>conftest.$ac_ext <<_ACEOF
44796 /* end confdefs.h.  */
44797
44798                         #include <sys/types.h>
44799                         #include <sys/socket.h>
44800
44801 int
44802 main ()
44803 {
44804
44805                         socklen_t len;
44806                         getsockopt(0, 0, 0, 0, &len);
44807
44808   ;
44809   return 0;
44810 }
44811 _ACEOF
44812 rm -f conftest.$ac_objext
44813 if { (ac_try="$ac_compile"
44814 case "(($ac_try" in
44815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44816   *) ac_try_echo=$ac_try;;
44817 esac
44818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44819   (eval "$ac_compile") 2>conftest.er1
44820   ac_status=$?
44821   grep -v '^ *+' conftest.er1 >conftest.err
44822   rm -f conftest.er1
44823   cat conftest.err >&5
44824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825   (exit $ac_status); } && {
44826          test -z "$ac_cxx_werror_flag" ||
44827          test ! -s conftest.err
44828        } && test -s conftest.$ac_objext; then
44829   wx_cv_type_getsockopt5=socklen_t
44830 else
44831   echo "$as_me: failed program was:" >&5
44832 sed 's/^/| /' conftest.$ac_ext >&5
44833
44834
44835                         cat >conftest.$ac_ext <<_ACEOF
44836 /* confdefs.h.  */
44837 _ACEOF
44838 cat confdefs.h >>conftest.$ac_ext
44839 cat >>conftest.$ac_ext <<_ACEOF
44840 /* end confdefs.h.  */
44841
44842                                 #include <sys/types.h>
44843                                 #include <sys/socket.h>
44844
44845 int
44846 main ()
44847 {
44848
44849                                 size_t len;
44850                                 getsockopt(0, 0, 0, 0, &len);
44851
44852   ;
44853   return 0;
44854 }
44855 _ACEOF
44856 rm -f conftest.$ac_objext
44857 if { (ac_try="$ac_compile"
44858 case "(($ac_try" in
44859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44860   *) ac_try_echo=$ac_try;;
44861 esac
44862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44863   (eval "$ac_compile") 2>conftest.er1
44864   ac_status=$?
44865   grep -v '^ *+' conftest.er1 >conftest.err
44866   rm -f conftest.er1
44867   cat conftest.err >&5
44868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44869   (exit $ac_status); } && {
44870          test -z "$ac_cxx_werror_flag" ||
44871          test ! -s conftest.err
44872        } && test -s conftest.$ac_objext; then
44873   wx_cv_type_getsockopt5=size_t
44874 else
44875   echo "$as_me: failed program was:" >&5
44876 sed 's/^/| /' conftest.$ac_ext >&5
44877
44878         cat >conftest.$ac_ext <<_ACEOF
44879 /* confdefs.h.  */
44880 _ACEOF
44881 cat confdefs.h >>conftest.$ac_ext
44882 cat >>conftest.$ac_ext <<_ACEOF
44883 /* end confdefs.h.  */
44884
44885                                     #include <sys/types.h>
44886                                     #include <sys/socket.h>
44887
44888 int
44889 main ()
44890 {
44891
44892                                     int len;
44893                                     getsockopt(0, 0, 0, 0, &len);
44894
44895   ;
44896   return 0;
44897 }
44898 _ACEOF
44899 rm -f conftest.$ac_objext
44900 if { (ac_try="$ac_compile"
44901 case "(($ac_try" in
44902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44903   *) ac_try_echo=$ac_try;;
44904 esac
44905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44906   (eval "$ac_compile") 2>conftest.er1
44907   ac_status=$?
44908   grep -v '^ *+' conftest.er1 >conftest.err
44909   rm -f conftest.er1
44910   cat conftest.err >&5
44911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912   (exit $ac_status); } && {
44913          test -z "$ac_cxx_werror_flag" ||
44914          test ! -s conftest.err
44915        } && test -s conftest.$ac_objext; then
44916   wx_cv_type_getsockopt5=int
44917 else
44918   echo "$as_me: failed program was:" >&5
44919 sed 's/^/| /' conftest.$ac_ext >&5
44920
44921         wx_cv_type_getsockopt5=unknown
44922
44923 fi
44924
44925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44926
44927 fi
44928
44929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44930
44931
44932 fi
44933
44934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44935                 ac_ext=c
44936 ac_cpp='$CPP $CPPFLAGS'
44937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44940
44941
44942 fi
44943 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44944 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44945
44946         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44947             wxUSE_SOCKETS=no
44948             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44949 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44950         else
44951             cat >>confdefs.h <<_ACEOF
44952 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44953 _ACEOF
44954
44955         fi
44956     fi
44957 fi
44958
44959 if test "$wxUSE_SOCKETS" = "yes" ; then
44960     if test "$wxUSE_IPV6" = "yes"; then
44961         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44962 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44963 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44964   echo $ECHO_N "(cached) $ECHO_C" >&6
44965 else
44966
44967                 cat >conftest.$ac_ext <<_ACEOF
44968 /* confdefs.h.  */
44969 _ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h.  */
44973
44974                         #include <sys/types.h>
44975                         #include <sys/socket.h>
44976                         #include <netinet/in.h>
44977
44978 int
44979 main ()
44980 {
44981
44982                         struct sockaddr_in6 sa6;
44983
44984   ;
44985   return 0;
44986 }
44987 _ACEOF
44988 rm -f conftest.$ac_objext
44989 if { (ac_try="$ac_compile"
44990 case "(($ac_try" in
44991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44992   *) ac_try_echo=$ac_try;;
44993 esac
44994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44995   (eval "$ac_compile") 2>conftest.er1
44996   ac_status=$?
44997   grep -v '^ *+' conftest.er1 >conftest.err
44998   rm -f conftest.er1
44999   cat conftest.err >&5
45000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45001   (exit $ac_status); } && {
45002          test -z "$ac_c_werror_flag" ||
45003          test ! -s conftest.err
45004        } && test -s conftest.$ac_objext; then
45005   wx_cv_type_sockaddr_in6=yes
45006 else
45007   echo "$as_me: failed program was:" >&5
45008 sed 's/^/| /' conftest.$ac_ext >&5
45009
45010         wx_cv_type_sockaddr_in6=no
45011
45012 fi
45013
45014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45015
45016
45017 fi
45018 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45019 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
45020
45021         if test "$wx_cv_type_sockaddr_in6"="yes"; then
45022             cat >>confdefs.h <<\_ACEOF
45023 #define wxUSE_IPV6 1
45024 _ACEOF
45025
45026         else
45027             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45028 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45029         fi
45030     fi
45031
45032     cat >>confdefs.h <<\_ACEOF
45033 #define wxUSE_SOCKETS 1
45034 _ACEOF
45035
45036     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45037 fi
45038
45039 if test "$wxUSE_PROTOCOL" = "yes"; then
45040     if test "$wxUSE_SOCKETS" != "yes"; then
45041         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45042 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45043         wxUSE_PROTOCOL=no
45044     fi
45045 fi
45046
45047 if test "$wxUSE_PROTOCOL" = "yes"; then
45048     cat >>confdefs.h <<\_ACEOF
45049 #define wxUSE_PROTOCOL 1
45050 _ACEOF
45051
45052
45053     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45054         cat >>confdefs.h <<\_ACEOF
45055 #define wxUSE_PROTOCOL_HTTP 1
45056 _ACEOF
45057
45058     fi
45059     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45060         cat >>confdefs.h <<\_ACEOF
45061 #define wxUSE_PROTOCOL_FTP 1
45062 _ACEOF
45063
45064     fi
45065     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45066         cat >>confdefs.h <<\_ACEOF
45067 #define wxUSE_PROTOCOL_FILE 1
45068 _ACEOF
45069
45070     fi
45071 else
45072     if test "$wxUSE_FS_INET" = "yes"; then
45073         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45074 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45075         wxUSE_FS_INET="no"
45076     fi
45077 fi
45078
45079 if test "$wxUSE_URL" = "yes"; then
45080     if test "$wxUSE_PROTOCOL" != "yes"; then
45081         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45082 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45083         wxUSE_URL=no
45084     fi
45085     if test "$wxUSE_URL" = "yes"; then
45086         cat >>confdefs.h <<\_ACEOF
45087 #define wxUSE_URL 1
45088 _ACEOF
45089
45090     fi
45091 fi
45092
45093 if test "$wxUSE_VARIANT" = "yes"; then
45094     cat >>confdefs.h <<\_ACEOF
45095 #define wxUSE_VARIANT 1
45096 _ACEOF
45097
45098 fi
45099
45100 if test "$wxUSE_FS_INET" = "yes"; then
45101   cat >>confdefs.h <<\_ACEOF
45102 #define wxUSE_FS_INET 1
45103 _ACEOF
45104
45105 fi
45106
45107
45108 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45109     wxUSE_JOYSTICK=no
45110
45111         if test "$TOOLKIT" = "MSW"; then
45112         wxUSE_JOYSTICK=yes
45113
45114         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45115         if test "$USE_DARWIN" = 1; then
45116                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45117 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45118             ac_ext=cpp
45119 ac_cpp='$CXXCPP $CPPFLAGS'
45120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45123
45124             cat >conftest.$ac_ext <<_ACEOF
45125 /* confdefs.h.  */
45126 _ACEOF
45127 cat confdefs.h >>conftest.$ac_ext
45128 cat >>conftest.$ac_ext <<_ACEOF
45129 /* end confdefs.h.  */
45130  #include <IOKit/hid/IOHIDLib.h>
45131 int
45132 main ()
45133 {
45134  IOHIDQueueInterface *qi = NULL;
45135                               IOHIDCallbackFunction cb = NULL;
45136                               qi->setEventCallout(NULL, cb, NULL, NULL);
45137   ;
45138   return 0;
45139 }
45140 _ACEOF
45141 rm -f conftest.$ac_objext
45142 if { (ac_try="$ac_compile"
45143 case "(($ac_try" in
45144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45145   *) ac_try_echo=$ac_try;;
45146 esac
45147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45148   (eval "$ac_compile") 2>conftest.er1
45149   ac_status=$?
45150   grep -v '^ *+' conftest.er1 >conftest.err
45151   rm -f conftest.er1
45152   cat conftest.err >&5
45153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45154   (exit $ac_status); } && {
45155          test -z "$ac_cxx_werror_flag" ||
45156          test ! -s conftest.err
45157        } && test -s conftest.$ac_objext; then
45158    wxUSE_JOYSTICK=yes
45159
45160 else
45161   echo "$as_me: failed program was:" >&5
45162 sed 's/^/| /' conftest.$ac_ext >&5
45163
45164
45165 fi
45166
45167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45168             ac_ext=c
45169 ac_cpp='$CPP $CPPFLAGS'
45170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45173
45174             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45175 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45176         fi
45177
45178         else
45179                 if test "$wxUSE_MGL" != 1; then
45180
45181 for ac_header in linux/joystick.h
45182 do
45183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45187   echo $ECHO_N "(cached) $ECHO_C" >&6
45188 else
45189   cat >conftest.$ac_ext <<_ACEOF
45190 /* confdefs.h.  */
45191 _ACEOF
45192 cat confdefs.h >>conftest.$ac_ext
45193 cat >>conftest.$ac_ext <<_ACEOF
45194 /* end confdefs.h.  */
45195 $ac_includes_default
45196
45197 #include <$ac_header>
45198 _ACEOF
45199 rm -f conftest.$ac_objext
45200 if { (ac_try="$ac_compile"
45201 case "(($ac_try" in
45202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45203   *) ac_try_echo=$ac_try;;
45204 esac
45205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45206   (eval "$ac_compile") 2>conftest.er1
45207   ac_status=$?
45208   grep -v '^ *+' conftest.er1 >conftest.err
45209   rm -f conftest.er1
45210   cat conftest.err >&5
45211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45212   (exit $ac_status); } && {
45213          test -z "$ac_c_werror_flag" ||
45214          test ! -s conftest.err
45215        } && test -s conftest.$ac_objext; then
45216   eval "$as_ac_Header=yes"
45217 else
45218   echo "$as_me: failed program was:" >&5
45219 sed 's/^/| /' conftest.$ac_ext >&5
45220
45221         eval "$as_ac_Header=no"
45222 fi
45223
45224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45225 fi
45226 ac_res=`eval echo '${'$as_ac_Header'}'`
45227                { echo "$as_me:$LINENO: result: $ac_res" >&5
45228 echo "${ECHO_T}$ac_res" >&6; }
45229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45230   cat >>confdefs.h <<_ACEOF
45231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45232 _ACEOF
45233  wxUSE_JOYSTICK=yes
45234 fi
45235
45236 done
45237
45238         fi
45239     fi
45240
45241     if test "$wxUSE_JOYSTICK" = "yes"; then
45242         cat >>confdefs.h <<\_ACEOF
45243 #define wxUSE_JOYSTICK 1
45244 _ACEOF
45245
45246         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45247     else
45248         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45249 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45250     fi
45251 fi
45252
45253
45254
45255 if test "$wxUSE_FONTENUM" = "yes" ; then
45256   cat >>confdefs.h <<\_ACEOF
45257 #define wxUSE_FONTENUM 1
45258 _ACEOF
45259
45260 fi
45261
45262 if test "$wxUSE_FONTMAP" = "yes" ; then
45263   cat >>confdefs.h <<\_ACEOF
45264 #define wxUSE_FONTMAP 1
45265 _ACEOF
45266
45267 fi
45268
45269 if test "$wxUSE_UNICODE" = "yes" ; then
45270   cat >>confdefs.h <<\_ACEOF
45271 #define wxUSE_UNICODE 1
45272 _ACEOF
45273
45274
45275   if test "$USE_WIN32" != 1; then
45276       wxUSE_UNICODE_MSLU=no
45277   fi
45278
45279   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45280         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45281 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45282 if test "${ac_cv_lib_unicows_main+set}" = set; then
45283   echo $ECHO_N "(cached) $ECHO_C" >&6
45284 else
45285   ac_check_lib_save_LIBS=$LIBS
45286 LIBS="-lunicows  $LIBS"
45287 cat >conftest.$ac_ext <<_ACEOF
45288 /* confdefs.h.  */
45289 _ACEOF
45290 cat confdefs.h >>conftest.$ac_ext
45291 cat >>conftest.$ac_ext <<_ACEOF
45292 /* end confdefs.h.  */
45293
45294
45295 int
45296 main ()
45297 {
45298 return main ();
45299   ;
45300   return 0;
45301 }
45302 _ACEOF
45303 rm -f conftest.$ac_objext conftest$ac_exeext
45304 if { (ac_try="$ac_link"
45305 case "(($ac_try" in
45306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45307   *) ac_try_echo=$ac_try;;
45308 esac
45309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45310   (eval "$ac_link") 2>conftest.er1
45311   ac_status=$?
45312   grep -v '^ *+' conftest.er1 >conftest.err
45313   rm -f conftest.er1
45314   cat conftest.err >&5
45315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45316   (exit $ac_status); } && {
45317          test -z "$ac_c_werror_flag" ||
45318          test ! -s conftest.err
45319        } && test -s conftest$ac_exeext &&
45320        $as_test_x conftest$ac_exeext; then
45321   ac_cv_lib_unicows_main=yes
45322 else
45323   echo "$as_me: failed program was:" >&5
45324 sed 's/^/| /' conftest.$ac_ext >&5
45325
45326         ac_cv_lib_unicows_main=no
45327 fi
45328
45329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45330       conftest$ac_exeext conftest.$ac_ext
45331 LIBS=$ac_check_lib_save_LIBS
45332 fi
45333 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45334 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45335 if test $ac_cv_lib_unicows_main = yes; then
45336
45337                 cat >>confdefs.h <<\_ACEOF
45338 #define wxUSE_UNICODE_MSLU 1
45339 _ACEOF
45340
45341
45342 else
45343
45344                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45345                              Applications will only run on Windows NT/2000/XP!" >&5
45346 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45347                              Applications will only run on Windows NT/2000/XP!" >&2;}
45348                 wxUSE_UNICODE_MSLU=no
45349
45350 fi
45351
45352     fi
45353 fi
45354
45355 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45356     cat >>confdefs.h <<\_ACEOF
45357 #define wxUSE_UNICODE_UTF8 1
45358 _ACEOF
45359
45360
45361     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45362         cat >>confdefs.h <<\_ACEOF
45363 #define wxUSE_UTF8_LOCALE_ONLY 1
45364 _ACEOF
45365
45366     fi
45367 fi
45368
45369
45370 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45371     cat >>confdefs.h <<\_ACEOF
45372 #define wxUSE_CONSTRAINTS 1
45373 _ACEOF
45374
45375     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45376 fi
45377
45378 if test "$wxUSE_MDI" = "yes"; then
45379     cat >>confdefs.h <<\_ACEOF
45380 #define wxUSE_MDI 1
45381 _ACEOF
45382
45383
45384     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45385         cat >>confdefs.h <<\_ACEOF
45386 #define wxUSE_MDI_ARCHITECTURE 1
45387 _ACEOF
45388
45389         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45390     fi
45391 fi
45392
45393 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45394     cat >>confdefs.h <<\_ACEOF
45395 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45396 _ACEOF
45397
45398     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45399 fi
45400
45401 if test "$wxUSE_HELP" = "yes"; then
45402     cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_HELP 1
45404 _ACEOF
45405
45406     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45407
45408     if test "$wxUSE_MSW" = 1; then
45409       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45410         cat >>confdefs.h <<\_ACEOF
45411 #define wxUSE_MS_HTML_HELP 1
45412 _ACEOF
45413
45414       fi
45415     fi
45416
45417     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45418       if test "$wxUSE_HTML" = "yes"; then
45419         cat >>confdefs.h <<\_ACEOF
45420 #define wxUSE_WXHTML_HELP 1
45421 _ACEOF
45422
45423       else
45424         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45425 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45426         wxUSE_WXHTML_HELP=no
45427       fi
45428     fi
45429 fi
45430
45431 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45432     cat >>confdefs.h <<\_ACEOF
45433 #define wxUSE_PRINTING_ARCHITECTURE 1
45434 _ACEOF
45435
45436     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45437 fi
45438
45439 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45440   cat >>confdefs.h <<\_ACEOF
45441 #define wxUSE_POSTSCRIPT 1
45442 _ACEOF
45443
45444 fi
45445
45446 cat >>confdefs.h <<\_ACEOF
45447 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45448 _ACEOF
45449
45450
45451 if test "$wxUSE_SVG" = "yes"; then
45452     cat >>confdefs.h <<\_ACEOF
45453 #define wxUSE_SVG 1
45454 _ACEOF
45455
45456 fi
45457
45458
45459 if test "$wxUSE_METAFILE" = "yes"; then
45460     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45461         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45462 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45463         wxUSE_METAFILE=no
45464     fi
45465 fi
45466
45467
45468 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45469                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45470                           -o "$wxUSE_OLE"     = "yes" \
45471                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45472     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45473 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45474 if test "${ac_cv_header_ole2_h+set}" = set; then
45475   echo $ECHO_N "(cached) $ECHO_C" >&6
45476 else
45477   cat >conftest.$ac_ext <<_ACEOF
45478 /* confdefs.h.  */
45479 _ACEOF
45480 cat confdefs.h >>conftest.$ac_ext
45481 cat >>conftest.$ac_ext <<_ACEOF
45482 /* end confdefs.h.  */
45483
45484
45485 #include <ole2.h>
45486 _ACEOF
45487 rm -f conftest.$ac_objext
45488 if { (ac_try="$ac_compile"
45489 case "(($ac_try" in
45490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45491   *) ac_try_echo=$ac_try;;
45492 esac
45493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45494   (eval "$ac_compile") 2>conftest.er1
45495   ac_status=$?
45496   grep -v '^ *+' conftest.er1 >conftest.err
45497   rm -f conftest.er1
45498   cat conftest.err >&5
45499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45500   (exit $ac_status); } && {
45501          test -z "$ac_c_werror_flag" ||
45502          test ! -s conftest.err
45503        } && test -s conftest.$ac_objext; then
45504   ac_cv_header_ole2_h=yes
45505 else
45506   echo "$as_me: failed program was:" >&5
45507 sed 's/^/| /' conftest.$ac_ext >&5
45508
45509         ac_cv_header_ole2_h=no
45510 fi
45511
45512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45513 fi
45514 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45515 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45516
45517
45518
45519     if test "$ac_cv_header_ole2_h" = "yes" ; then
45520         if test "$GCC" = yes ; then
45521             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45522 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45523             cat >conftest.$ac_ext <<_ACEOF
45524 /* confdefs.h.  */
45525 _ACEOF
45526 cat confdefs.h >>conftest.$ac_ext
45527 cat >>conftest.$ac_ext <<_ACEOF
45528 /* end confdefs.h.  */
45529 #include <windows.h>
45530                             #include <ole2.h>
45531 int
45532 main ()
45533 {
45534
45535   ;
45536   return 0;
45537 }
45538 _ACEOF
45539 rm -f conftest.$ac_objext
45540 if { (ac_try="$ac_compile"
45541 case "(($ac_try" in
45542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45543   *) ac_try_echo=$ac_try;;
45544 esac
45545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45546   (eval "$ac_compile") 2>conftest.er1
45547   ac_status=$?
45548   grep -v '^ *+' conftest.er1 >conftest.err
45549   rm -f conftest.er1
45550   cat conftest.err >&5
45551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45552   (exit $ac_status); } && {
45553          test -z "$ac_c_werror_flag" ||
45554          test ! -s conftest.err
45555        } && test -s conftest.$ac_objext; then
45556   { echo "$as_me:$LINENO: result: no" >&5
45557 echo "${ECHO_T}no" >&6; }
45558 else
45559   echo "$as_me: failed program was:" >&5
45560 sed 's/^/| /' conftest.$ac_ext >&5
45561
45562         { echo "$as_me:$LINENO: result: yes" >&5
45563 echo "${ECHO_T}yes" >&6; }
45564                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45565 fi
45566
45567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45568             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45569             if test "$wxUSE_OLE" = "yes" ; then
45570                 cat >>confdefs.h <<\_ACEOF
45571 #define wxUSE_OLE 1
45572 _ACEOF
45573
45574                 cat >>confdefs.h <<\_ACEOF
45575 #define wxUSE_OLE_AUTOMATION 1
45576 _ACEOF
45577
45578                 cat >>confdefs.h <<\_ACEOF
45579 #define wxUSE_ACTIVEX 1
45580 _ACEOF
45581
45582                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45583             fi
45584         fi
45585
45586                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45587             cat >>confdefs.h <<\_ACEOF
45588 #define wxUSE_DATAOBJ 1
45589 _ACEOF
45590
45591         fi
45592     else
45593         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45594 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45595
45596         wxUSE_CLIPBOARD=no
45597         wxUSE_DRAG_AND_DROP=no
45598         wxUSE_DATAOBJ=no
45599         wxUSE_OLE=no
45600     fi
45601
45602     if test "$wxUSE_METAFILE" = "yes"; then
45603         cat >>confdefs.h <<\_ACEOF
45604 #define wxUSE_METAFILE 1
45605 _ACEOF
45606
45607
45608                 cat >>confdefs.h <<\_ACEOF
45609 #define wxUSE_ENH_METAFILE 1
45610 _ACEOF
45611
45612     fi
45613 fi
45614
45615 if test "$wxUSE_IPC" = "yes"; then
45616     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45617         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45618 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45619         wxUSE_IPC=no
45620     fi
45621
45622     if test "$wxUSE_IPC" = "yes"; then
45623         cat >>confdefs.h <<\_ACEOF
45624 #define wxUSE_IPC 1
45625 _ACEOF
45626
45627         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45628     fi
45629 fi
45630
45631 if test "$wxUSE_DATAOBJ" = "yes"; then
45632     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45633         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45634 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45635         wxUSE_DATAOBJ=no
45636     else
45637         cat >>confdefs.h <<\_ACEOF
45638 #define wxUSE_DATAOBJ 1
45639 _ACEOF
45640
45641     fi
45642 else
45643     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45644 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45645     wxUSE_CLIPBOARD=no
45646     wxUSE_DRAG_AND_DROP=no
45647 fi
45648
45649 if test "$wxUSE_CLIPBOARD" = "yes"; then
45650     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45651         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45652 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45653         wxUSE_CLIPBOARD=no
45654     fi
45655
45656     if test "$wxUSE_CLIPBOARD" = "yes"; then
45657         cat >>confdefs.h <<\_ACEOF
45658 #define wxUSE_CLIPBOARD 1
45659 _ACEOF
45660
45661     fi
45662 fi
45663
45664 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45665     if test "$wxUSE_GTK" = 1; then
45666         if test "$WXGTK12" != 1; then
45667             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45668 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45669             wxUSE_DRAG_AND_DROP=no
45670         fi
45671     fi
45672
45673     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45674             "$wxUSE_DFB" = 1; then
45675         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45676 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45677         wxUSE_DRAG_AND_DROP=no
45678     fi
45679
45680     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45681         cat >>confdefs.h <<\_ACEOF
45682 #define wxUSE_DRAG_AND_DROP 1
45683 _ACEOF
45684
45685     fi
45686
45687 fi
45688
45689 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45690     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45691 fi
45692
45693 if test "$wxUSE_CLIPBOARD" = "yes"; then
45694     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45695 fi
45696
45697 if test "$wxUSE_SPLINES" = "yes" ; then
45698   cat >>confdefs.h <<\_ACEOF
45699 #define wxUSE_SPLINES 1
45700 _ACEOF
45701
45702 fi
45703
45704 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45705   cat >>confdefs.h <<\_ACEOF
45706 #define wxUSE_MOUSEWHEEL 1
45707 _ACEOF
45708
45709 fi
45710
45711
45712 USES_CONTROLS=0
45713 if test "$wxUSE_CONTROLS" = "yes"; then
45714   USES_CONTROLS=1
45715 fi
45716
45717 if test "$wxUSE_ACCEL" = "yes"; then
45718   cat >>confdefs.h <<\_ACEOF
45719 #define wxUSE_ACCEL 1
45720 _ACEOF
45721
45722   USES_CONTROLS=1
45723 fi
45724
45725 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45726   cat >>confdefs.h <<\_ACEOF
45727 #define wxUSE_ANIMATIONCTRL 1
45728 _ACEOF
45729
45730   USES_CONTROLS=1
45731   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45732 fi
45733
45734 if test "$wxUSE_BUTTON" = "yes"; then
45735   cat >>confdefs.h <<\_ACEOF
45736 #define wxUSE_BUTTON 1
45737 _ACEOF
45738
45739   USES_CONTROLS=1
45740 fi
45741
45742 if test "$wxUSE_BMPBUTTON" = "yes"; then
45743   cat >>confdefs.h <<\_ACEOF
45744 #define wxUSE_BMPBUTTON 1
45745 _ACEOF
45746
45747   USES_CONTROLS=1
45748 fi
45749
45750 if test "$wxUSE_CALCTRL" = "yes"; then
45751   cat >>confdefs.h <<\_ACEOF
45752 #define wxUSE_CALENDARCTRL 1
45753 _ACEOF
45754
45755   USES_CONTROLS=1
45756   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45757 fi
45758
45759 if test "$wxUSE_CARET" = "yes"; then
45760   cat >>confdefs.h <<\_ACEOF
45761 #define wxUSE_CARET 1
45762 _ACEOF
45763
45764   USES_CONTROLS=1
45765   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45766 fi
45767
45768 if test "$wxUSE_COLLPANE" = "yes"; then
45769     cat >>confdefs.h <<\_ACEOF
45770 #define wxUSE_COLLPANE 1
45771 _ACEOF
45772
45773     USES_CONTROLS=1
45774     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45775 fi
45776
45777 if test "$wxUSE_COMBOBOX" = "yes"; then
45778   cat >>confdefs.h <<\_ACEOF
45779 #define wxUSE_COMBOBOX 1
45780 _ACEOF
45781
45782   USES_CONTROLS=1
45783 fi
45784
45785 if test "$wxUSE_COMBOCTRL" = "yes"; then
45786   cat >>confdefs.h <<\_ACEOF
45787 #define wxUSE_COMBOCTRL 1
45788 _ACEOF
45789
45790   USES_CONTROLS=1
45791 fi
45792
45793 if test "$wxUSE_CHOICE" = "yes"; then
45794   cat >>confdefs.h <<\_ACEOF
45795 #define wxUSE_CHOICE 1
45796 _ACEOF
45797
45798   USES_CONTROLS=1
45799 fi
45800
45801 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45802     cat >>confdefs.h <<\_ACEOF
45803 #define wxUSE_CHOICEBOOK 1
45804 _ACEOF
45805
45806     USES_CONTROLS=1
45807 fi
45808
45809 if test "$wxUSE_CHECKBOX" = "yes"; then
45810   cat >>confdefs.h <<\_ACEOF
45811 #define wxUSE_CHECKBOX 1
45812 _ACEOF
45813
45814   USES_CONTROLS=1
45815 fi
45816
45817 if test "$wxUSE_CHECKLST" = "yes"; then
45818   cat >>confdefs.h <<\_ACEOF
45819 #define wxUSE_CHECKLISTBOX 1
45820 _ACEOF
45821
45822   USES_CONTROLS=1
45823 fi
45824
45825 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45826   cat >>confdefs.h <<\_ACEOF
45827 #define wxUSE_COLOURPICKERCTRL 1
45828 _ACEOF
45829
45830   USES_CONTROLS=1
45831 fi
45832
45833 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45834   cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_DATEPICKCTRL 1
45836 _ACEOF
45837
45838   USES_CONTROLS=1
45839 fi
45840
45841 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45842   cat >>confdefs.h <<\_ACEOF
45843 #define wxUSE_DIRPICKERCTRL 1
45844 _ACEOF
45845
45846   USES_CONTROLS=1
45847 fi
45848
45849 if test "$wxUSE_FILECTRL" = "yes"; then
45850   cat >>confdefs.h <<\_ACEOF
45851 #define wxUSE_FILECTRL 1
45852 _ACEOF
45853
45854   USES_CONTROLS=1
45855 fi
45856
45857 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45858   cat >>confdefs.h <<\_ACEOF
45859 #define wxUSE_FILEPICKERCTRL 1
45860 _ACEOF
45861
45862   USES_CONTROLS=1
45863 fi
45864
45865 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45866   cat >>confdefs.h <<\_ACEOF
45867 #define wxUSE_FONTPICKERCTRL 1
45868 _ACEOF
45869
45870   USES_CONTROLS=1
45871 fi
45872
45873 if test "$wxUSE_DISPLAY" = "yes"; then
45874     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45875         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45876 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45877         wxUSE_DISPLAY=no
45878     else
45879         cat >>confdefs.h <<\_ACEOF
45880 #define wxUSE_DISPLAY 1
45881 _ACEOF
45882
45883         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45884     fi
45885 fi
45886
45887 if test "$wxUSE_DETECT_SM" = "yes"; then
45888     cat >>confdefs.h <<\_ACEOF
45889 #define wxUSE_DETECT_SM 1
45890 _ACEOF
45891
45892 fi
45893
45894 if test "$wxUSE_GAUGE" = "yes"; then
45895   cat >>confdefs.h <<\_ACEOF
45896 #define wxUSE_GAUGE 1
45897 _ACEOF
45898
45899   USES_CONTROLS=1
45900 fi
45901
45902 if test "$wxUSE_GRID" = "yes"; then
45903   cat >>confdefs.h <<\_ACEOF
45904 #define wxUSE_GRID 1
45905 _ACEOF
45906
45907   USES_CONTROLS=1
45908   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45909 fi
45910
45911 if test "$wxUSE_HEADERCTRL" = "yes"; then
45912   cat >>confdefs.h <<\_ACEOF
45913 #define wxUSE_HEADERCTRL 1
45914 _ACEOF
45915
45916   USES_CONTROLS=1
45917 fi
45918
45919 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45920   cat >>confdefs.h <<\_ACEOF
45921 #define wxUSE_HYPERLINKCTRL 1
45922 _ACEOF
45923
45924   USES_CONTROLS=1
45925 fi
45926
45927 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45928   cat >>confdefs.h <<\_ACEOF
45929 #define wxUSE_BITMAPCOMBOBOX 1
45930 _ACEOF
45931
45932   USES_CONTROLS=1
45933 fi
45934
45935 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45936   cat >>confdefs.h <<\_ACEOF
45937 #define wxUSE_DATAVIEWCTRL 1
45938 _ACEOF
45939
45940   USES_CONTROLS=1
45941   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45942 fi
45943
45944 if test "$wxUSE_IMAGLIST" = "yes"; then
45945     cat >>confdefs.h <<\_ACEOF
45946 #define wxUSE_IMAGLIST 1
45947 _ACEOF
45948
45949 fi
45950
45951 if test "$wxUSE_LISTBOOK" = "yes"; then
45952     cat >>confdefs.h <<\_ACEOF
45953 #define wxUSE_LISTBOOK 1
45954 _ACEOF
45955
45956     USES_CONTROLS=1
45957 fi
45958
45959 if test "$wxUSE_LISTBOX" = "yes"; then
45960     cat >>confdefs.h <<\_ACEOF
45961 #define wxUSE_LISTBOX 1
45962 _ACEOF
45963
45964     USES_CONTROLS=1
45965 fi
45966
45967 if test "$wxUSE_LISTCTRL" = "yes"; then
45968     if test "$wxUSE_IMAGLIST" = "yes"; then
45969         cat >>confdefs.h <<\_ACEOF
45970 #define wxUSE_LISTCTRL 1
45971 _ACEOF
45972
45973         USES_CONTROLS=1
45974         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45975     else
45976         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45977 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45978     fi
45979 fi
45980
45981 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45982     cat >>confdefs.h <<\_ACEOF
45983 #define wxUSE_EDITABLELISTBOX 1
45984 _ACEOF
45985
45986     USES_CONTROLS=1
45987 fi
45988
45989 if test "$wxUSE_NOTEBOOK" = "yes"; then
45990     cat >>confdefs.h <<\_ACEOF
45991 #define wxUSE_NOTEBOOK 1
45992 _ACEOF
45993
45994     USES_CONTROLS=1
45995     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45996 fi
45997
45998 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45999     cat >>confdefs.h <<\_ACEOF
46000 #define wxUSE_NOTIFICATION_MESSAGE 1
46001 _ACEOF
46002
46003 fi
46004
46005 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
46006   cat >>confdefs.h <<\_ACEOF
46007 #define wxUSE_ODCOMBOBOX 1
46008 _ACEOF
46009
46010   USES_CONTROLS=1
46011   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46012 fi
46013
46014 if test "$wxUSE_RADIOBOX" = "yes"; then
46015     cat >>confdefs.h <<\_ACEOF
46016 #define wxUSE_RADIOBOX 1
46017 _ACEOF
46018
46019     USES_CONTROLS=1
46020 fi
46021
46022 if test "$wxUSE_RADIOBTN" = "yes"; then
46023     cat >>confdefs.h <<\_ACEOF
46024 #define wxUSE_RADIOBTN 1
46025 _ACEOF
46026
46027     USES_CONTROLS=1
46028 fi
46029
46030 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46031     cat >>confdefs.h <<\_ACEOF
46032 #define wxUSE_REARRANGECTRL 1
46033 _ACEOF
46034
46035 fi
46036
46037 if test "$wxUSE_SASH" = "yes"; then
46038     cat >>confdefs.h <<\_ACEOF
46039 #define wxUSE_SASH 1
46040 _ACEOF
46041
46042     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46043 fi
46044
46045 if test "$wxUSE_SCROLLBAR" = "yes"; then
46046     cat >>confdefs.h <<\_ACEOF
46047 #define wxUSE_SCROLLBAR 1
46048 _ACEOF
46049
46050     USES_CONTROLS=1
46051     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46052 fi
46053
46054 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46055     cat >>confdefs.h <<\_ACEOF
46056 #define wxUSE_SEARCHCTRL 1
46057 _ACEOF
46058
46059     USES_CONTROLS=1
46060 fi
46061
46062 if test "$wxUSE_SLIDER" = "yes"; then
46063     cat >>confdefs.h <<\_ACEOF
46064 #define wxUSE_SLIDER 1
46065 _ACEOF
46066
46067     USES_CONTROLS=1
46068 fi
46069
46070 if test "$wxUSE_SPINBTN" = "yes"; then
46071     cat >>confdefs.h <<\_ACEOF
46072 #define wxUSE_SPINBTN 1
46073 _ACEOF
46074
46075     USES_CONTROLS=1
46076 fi
46077
46078 if test "$wxUSE_SPINCTRL" = "yes"; then
46079     cat >>confdefs.h <<\_ACEOF
46080 #define wxUSE_SPINCTRL 1
46081 _ACEOF
46082
46083     USES_CONTROLS=1
46084 fi
46085
46086 if test "$wxUSE_SPLITTER" = "yes"; then
46087     cat >>confdefs.h <<\_ACEOF
46088 #define wxUSE_SPLITTER 1
46089 _ACEOF
46090
46091     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46092 fi
46093
46094 if test "$wxUSE_STATBMP" = "yes"; then
46095     cat >>confdefs.h <<\_ACEOF
46096 #define wxUSE_STATBMP 1
46097 _ACEOF
46098
46099     USES_CONTROLS=1
46100 fi
46101
46102 if test "$wxUSE_STATBOX" = "yes"; then
46103     cat >>confdefs.h <<\_ACEOF
46104 #define wxUSE_STATBOX 1
46105 _ACEOF
46106
46107     USES_CONTROLS=1
46108 fi
46109
46110 if test "$wxUSE_STATTEXT" = "yes"; then
46111     cat >>confdefs.h <<\_ACEOF
46112 #define wxUSE_STATTEXT 1
46113 _ACEOF
46114
46115     USES_CONTROLS=1
46116 fi
46117
46118 if test "$wxUSE_STATLINE" = "yes"; then
46119     cat >>confdefs.h <<\_ACEOF
46120 #define wxUSE_STATLINE 1
46121 _ACEOF
46122
46123     USES_CONTROLS=1
46124 fi
46125
46126 if test "$wxUSE_STATUSBAR" = "yes"; then
46127         cat >>confdefs.h <<\_ACEOF
46128 #define wxUSE_NATIVE_STATUSBAR 1
46129 _ACEOF
46130
46131     cat >>confdefs.h <<\_ACEOF
46132 #define wxUSE_STATUSBAR 1
46133 _ACEOF
46134
46135     USES_CONTROLS=1
46136
46137     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46138 fi
46139
46140 if test "$wxUSE_TEXTCTRL" = "yes"; then
46141     cat >>confdefs.h <<\_ACEOF
46142 #define wxUSE_TEXTCTRL 1
46143 _ACEOF
46144
46145     USES_CONTROLS=1
46146     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46147
46148             cat >>confdefs.h <<\_ACEOF
46149 #define wxUSE_RICHEDIT 1
46150 _ACEOF
46151
46152     cat >>confdefs.h <<\_ACEOF
46153 #define wxUSE_RICHEDIT2 1
46154 _ACEOF
46155
46156 fi
46157
46158 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46159     if test "$wxUSE_COCOA" = 1 ; then
46160         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46161 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46162         wxUSE_TOGGLEBTN=no
46163     fi
46164
46165     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46166         cat >>confdefs.h <<\_ACEOF
46167 #define wxUSE_TOGGLEBTN 1
46168 _ACEOF
46169
46170         USES_CONTROLS=1
46171     fi
46172 fi
46173
46174 if test "$wxUSE_TOOLBAR" = "yes"; then
46175     cat >>confdefs.h <<\_ACEOF
46176 #define wxUSE_TOOLBAR 1
46177 _ACEOF
46178
46179     USES_CONTROLS=1
46180
46181     if test "$wxUSE_UNIVERSAL" = "yes"; then
46182         wxUSE_TOOLBAR_NATIVE="no"
46183     else
46184         wxUSE_TOOLBAR_NATIVE="yes"
46185         cat >>confdefs.h <<\_ACEOF
46186 #define wxUSE_TOOLBAR_NATIVE 1
46187 _ACEOF
46188
46189     fi
46190
46191     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46192 fi
46193
46194 if test "$wxUSE_TOOLTIPS" = "yes"; then
46195     if test "$wxUSE_MOTIF" = 1; then
46196         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46197 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46198     else
46199         if test "$wxUSE_UNIVERSAL" = "yes"; then
46200             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46201 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46202         else
46203             cat >>confdefs.h <<\_ACEOF
46204 #define wxUSE_TOOLTIPS 1
46205 _ACEOF
46206
46207         fi
46208     fi
46209 fi
46210
46211 if test "$wxUSE_TREEBOOK" = "yes"; then
46212     cat >>confdefs.h <<\_ACEOF
46213 #define wxUSE_TREEBOOK 1
46214 _ACEOF
46215
46216     USES_CONTROLS=1
46217 fi
46218
46219 if test "$wxUSE_TOOLBOOK" = "yes"; then
46220     cat >>confdefs.h <<\_ACEOF
46221 #define wxUSE_TOOLBOOK 1
46222 _ACEOF
46223
46224     USES_CONTROLS=1
46225 fi
46226
46227 if test "$wxUSE_TREECTRL" = "yes"; then
46228     if test "$wxUSE_IMAGLIST" = "yes"; then
46229         cat >>confdefs.h <<\_ACEOF
46230 #define wxUSE_TREECTRL 1
46231 _ACEOF
46232
46233         USES_CONTROLS=1
46234         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46235     else
46236         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46237 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46238     fi
46239 fi
46240
46241 if test "$wxUSE_POPUPWIN" = "yes"; then
46242     if test "$wxUSE_COCOA" = 1 ; then
46243         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46244 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46245     else
46246         if test "$wxUSE_PM" = 1; then
46247             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46248 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46249         else
46250             cat >>confdefs.h <<\_ACEOF
46251 #define wxUSE_POPUPWIN 1
46252 _ACEOF
46253
46254             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46255
46256             USES_CONTROLS=1
46257         fi
46258     fi
46259 fi
46260
46261 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46262     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46263         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46264 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46265     else
46266         cat >>confdefs.h <<\_ACEOF
46267 #define wxUSE_DIALUP_MANAGER 1
46268 _ACEOF
46269
46270         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46271     fi
46272 fi
46273
46274 if test "$wxUSE_TIPWINDOW" = "yes"; then
46275     if test "$wxUSE_PM" = 1; then
46276         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46277 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46278     else
46279         cat >>confdefs.h <<\_ACEOF
46280 #define wxUSE_TIPWINDOW 1
46281 _ACEOF
46282
46283     fi
46284 fi
46285
46286 if test "$USES_CONTROLS" = 1; then
46287     cat >>confdefs.h <<\_ACEOF
46288 #define wxUSE_CONTROLS 1
46289 _ACEOF
46290
46291 fi
46292
46293
46294 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46295     cat >>confdefs.h <<\_ACEOF
46296 #define wxUSE_ACCESSIBILITY 1
46297 _ACEOF
46298
46299     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46300 fi
46301
46302 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46303     cat >>confdefs.h <<\_ACEOF
46304 #define wxUSE_DRAGIMAGE 1
46305 _ACEOF
46306
46307     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46308 fi
46309
46310 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46311     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46312         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46313 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46314     else
46315         cat >>confdefs.h <<\_ACEOF
46316 #define wxUSE_EXCEPTIONS 1
46317 _ACEOF
46318
46319         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46320     fi
46321 fi
46322
46323 USE_HTML=0
46324 if test "$wxUSE_HTML" = "yes"; then
46325     cat >>confdefs.h <<\_ACEOF
46326 #define wxUSE_HTML 1
46327 _ACEOF
46328
46329     USE_HTML=1
46330     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46331 fi
46332 if test "$wxUSE_WEBKIT" = "yes"; then
46333     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46334         old_CPPFLAGS="$CPPFLAGS"
46335         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46336         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46337 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46338 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46339   echo $ECHO_N "(cached) $ECHO_C" >&6
46340 else
46341   cat >conftest.$ac_ext <<_ACEOF
46342 /* confdefs.h.  */
46343 _ACEOF
46344 cat confdefs.h >>conftest.$ac_ext
46345 cat >>conftest.$ac_ext <<_ACEOF
46346 /* end confdefs.h.  */
46347
46348                            #include <Carbon/Carbon.h>
46349                            #include <WebKit/WebKit.h>
46350
46351
46352 #include <WebKit/HIWebView.h>
46353 _ACEOF
46354 rm -f conftest.$ac_objext
46355 if { (ac_try="$ac_compile"
46356 case "(($ac_try" in
46357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46358   *) ac_try_echo=$ac_try;;
46359 esac
46360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46361   (eval "$ac_compile") 2>conftest.er1
46362   ac_status=$?
46363   grep -v '^ *+' conftest.er1 >conftest.err
46364   rm -f conftest.er1
46365   cat conftest.err >&5
46366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367   (exit $ac_status); } && {
46368          test -z "$ac_c_werror_flag" ||
46369          test ! -s conftest.err
46370        } && test -s conftest.$ac_objext; then
46371   ac_cv_header_WebKit_HIWebView_h=yes
46372 else
46373   echo "$as_me: failed program was:" >&5
46374 sed 's/^/| /' conftest.$ac_ext >&5
46375
46376         ac_cv_header_WebKit_HIWebView_h=no
46377 fi
46378
46379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46380 fi
46381 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46382 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46383 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46384
46385                            cat >>confdefs.h <<\_ACEOF
46386 #define wxUSE_WEBKIT 1
46387 _ACEOF
46388
46389                            WEBKIT_LINK="-framework WebKit"
46390
46391 else
46392
46393                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46394 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46395                            wxUSE_WEBKIT=no
46396
46397 fi
46398
46399
46400         CPPFLAGS="$old_CPPFLAGS"
46401     elif test "$wxUSE_COCOA" = 1; then
46402         cat >>confdefs.h <<\_ACEOF
46403 #define wxUSE_WEBKIT 1
46404 _ACEOF
46405
46406     else
46407         wxUSE_WEBKIT=no
46408     fi
46409     if test "$wxUSE_WEBKIT" = "yes"; then
46410         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46411     fi
46412 fi
46413
46414 USE_XRC=0
46415 if test "$wxUSE_XRC" = "yes"; then
46416     if test "$wxUSE_XML" != "yes"; then
46417         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46418 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46419         wxUSE_XRC=no
46420     else
46421         cat >>confdefs.h <<\_ACEOF
46422 #define wxUSE_XRC 1
46423 _ACEOF
46424
46425         USE_XRC=1
46426         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46427     fi
46428 fi
46429
46430 USE_AUI=0
46431 if test "$wxUSE_AUI" = "yes"; then
46432    cat >>confdefs.h <<\_ACEOF
46433 #define wxUSE_AUI 1
46434 _ACEOF
46435
46436    USE_AUI=1
46437    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46438 fi
46439
46440 USE_PROPGRID=0
46441 if test "$wxUSE_PROPGRID" = "yes"; then
46442    cat >>confdefs.h <<\_ACEOF
46443 #define wxUSE_PROPGRID 1
46444 _ACEOF
46445
46446    USE_PROPGRID=1
46447    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46448 fi
46449
46450 USE_RIBBON=0
46451 if test "$wxUSE_RIBBON" = "yes"; then
46452    cat >>confdefs.h <<\_ACEOF
46453 #define wxUSE_RIBBON 1
46454 _ACEOF
46455
46456    USE_RIBBON=1
46457    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
46458 fi
46459
46460 USE_STC=0
46461 if test "$wxUSE_STC" = "yes"; then
46462    cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_STC 1
46464 _ACEOF
46465
46466    USE_STC=1
46467    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46468
46469       # Extract the first word of "python", so it can be a program name with args.
46470 set dummy python; ac_word=$2
46471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46473 if test "${ac_cv_path_PYTHON+set}" = set; then
46474   echo $ECHO_N "(cached) $ECHO_C" >&6
46475 else
46476   case $PYTHON in
46477   [\\/]* | ?:[\\/]*)
46478   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
46479   ;;
46480   *)
46481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46482 for as_dir in $PATH
46483 do
46484   IFS=$as_save_IFS
46485   test -z "$as_dir" && as_dir=.
46486   for ac_exec_ext in '' $ac_executable_extensions; do
46487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46488     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
46489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46490     break 2
46491   fi
46492 done
46493 done
46494 IFS=$as_save_IFS
46495
46496   ;;
46497 esac
46498 fi
46499 PYTHON=$ac_cv_path_PYTHON
46500 if test -n "$PYTHON"; then
46501   { echo "$as_me:$LINENO: result: $PYTHON" >&5
46502 echo "${ECHO_T}$PYTHON" >&6; }
46503 else
46504   { echo "$as_me:$LINENO: result: no" >&5
46505 echo "${ECHO_T}no" >&6; }
46506 fi
46507
46508
46509    if test "x$PYTHON" = "x"; then
46510      COND_PYTHON="#"
46511    fi
46512
46513 fi
46514
46515 if test "$wxUSE_MENUS" = "yes"; then
46516     cat >>confdefs.h <<\_ACEOF
46517 #define wxUSE_MENUS 1
46518 _ACEOF
46519
46520     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46521 fi
46522
46523 if test "$wxUSE_METAFILE" = "yes"; then
46524     cat >>confdefs.h <<\_ACEOF
46525 #define wxUSE_METAFILE 1
46526 _ACEOF
46527
46528 fi
46529
46530 if test "$wxUSE_MIMETYPE" = "yes"; then
46531     cat >>confdefs.h <<\_ACEOF
46532 #define wxUSE_MIMETYPE 1
46533 _ACEOF
46534
46535 fi
46536
46537 if test "$wxUSE_MINIFRAME" = "yes"; then
46538     cat >>confdefs.h <<\_ACEOF
46539 #define wxUSE_MINIFRAME 1
46540 _ACEOF
46541
46542 fi
46543
46544 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46545     cat >>confdefs.h <<\_ACEOF
46546 #define wxUSE_SYSTEM_OPTIONS 1
46547 _ACEOF
46548
46549 fi
46550
46551 if test "$wxUSE_TASKBARICON" = "yes"; then
46552     cat >>confdefs.h <<\_ACEOF
46553 #define wxUSE_TASKBARICON 1
46554 _ACEOF
46555
46556     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46557 fi
46558
46559
46560 if test "$wxUSE_VALIDATORS" = "yes"; then
46561     cat >>confdefs.h <<\_ACEOF
46562 #define wxUSE_VALIDATORS 1
46563 _ACEOF
46564
46565     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46566 fi
46567
46568 if test "$wxUSE_PALETTE" = "yes" ; then
46569     if test "$wxUSE_DFB" = 1; then
46570         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46571 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46572         wxUSE_PALETTE=no
46573     else
46574         cat >>confdefs.h <<\_ACEOF
46575 #define wxUSE_PALETTE 1
46576 _ACEOF
46577
46578     fi
46579 fi
46580
46581 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46582     LIBS=" -lunicows $LIBS"
46583 fi
46584
46585 USE_RICHTEXT=0
46586 if test "$wxUSE_RICHTEXT" = "yes"; then
46587     cat >>confdefs.h <<\_ACEOF
46588 #define wxUSE_RICHTEXT 1
46589 _ACEOF
46590
46591     USE_RICHTEXT=1
46592     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46593 fi
46594
46595
46596 if test "$wxUSE_IMAGE" = "yes" ; then
46597     cat >>confdefs.h <<\_ACEOF
46598 #define wxUSE_IMAGE 1
46599 _ACEOF
46600
46601
46602     if test "$wxUSE_GIF" = "yes" ; then
46603       cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_GIF 1
46605 _ACEOF
46606
46607     fi
46608
46609     if test "$wxUSE_PCX" = "yes" ; then
46610       cat >>confdefs.h <<\_ACEOF
46611 #define wxUSE_PCX 1
46612 _ACEOF
46613
46614     fi
46615
46616     if test "$wxUSE_TGA" = "yes" ; then
46617       cat >>confdefs.h <<\_ACEOF
46618 #define wxUSE_TGA 1
46619 _ACEOF
46620
46621     fi
46622
46623     if test "$wxUSE_IFF" = "yes" ; then
46624       cat >>confdefs.h <<\_ACEOF
46625 #define wxUSE_IFF 1
46626 _ACEOF
46627
46628     fi
46629
46630     if test "$wxUSE_PNM" = "yes" ; then
46631       cat >>confdefs.h <<\_ACEOF
46632 #define wxUSE_PNM 1
46633 _ACEOF
46634
46635     fi
46636
46637     if test "$wxUSE_XPM" = "yes" ; then
46638       cat >>confdefs.h <<\_ACEOF
46639 #define wxUSE_XPM 1
46640 _ACEOF
46641
46642     fi
46643
46644     if test "$wxUSE_ICO_CUR" = "yes" ; then
46645       cat >>confdefs.h <<\_ACEOF
46646 #define wxUSE_ICO_CUR 1
46647 _ACEOF
46648
46649     fi
46650 fi
46651
46652
46653 if test "$wxUSE_ABOUTDLG" = "yes"; then
46654     cat >>confdefs.h <<\_ACEOF
46655 #define wxUSE_ABOUTDLG 1
46656 _ACEOF
46657
46658 fi
46659
46660 if test "$wxUSE_CHOICEDLG" = "yes"; then
46661     cat >>confdefs.h <<\_ACEOF
46662 #define wxUSE_CHOICEDLG 1
46663 _ACEOF
46664
46665 fi
46666
46667 if test "$wxUSE_COLOURDLG" = "yes"; then
46668     cat >>confdefs.h <<\_ACEOF
46669 #define wxUSE_COLOURDLG 1
46670 _ACEOF
46671
46672 fi
46673
46674 if test "$wxUSE_FILEDLG" = "yes"; then
46675     cat >>confdefs.h <<\_ACEOF
46676 #define wxUSE_FILEDLG 1
46677 _ACEOF
46678
46679 fi
46680
46681 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46682     cat >>confdefs.h <<\_ACEOF
46683 #define wxUSE_FINDREPLDLG 1
46684 _ACEOF
46685
46686 fi
46687
46688 if test "$wxUSE_FONTDLG" = "yes"; then
46689     cat >>confdefs.h <<\_ACEOF
46690 #define wxUSE_FONTDLG 1
46691 _ACEOF
46692
46693 fi
46694
46695 if test "$wxUSE_DIRDLG" = "yes"; then
46696     if test "$wxUSE_TREECTRL" != "yes"; then
46697         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46698 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46699     else
46700         cat >>confdefs.h <<\_ACEOF
46701 #define wxUSE_DIRDLG 1
46702 _ACEOF
46703
46704     fi
46705 fi
46706
46707 if test "$wxUSE_MSGDLG" = "yes"; then
46708     cat >>confdefs.h <<\_ACEOF
46709 #define wxUSE_MSGDLG 1
46710 _ACEOF
46711
46712 fi
46713
46714 if test "$wxUSE_NUMBERDLG" = "yes"; then
46715     cat >>confdefs.h <<\_ACEOF
46716 #define wxUSE_NUMBERDLG 1
46717 _ACEOF
46718
46719 fi
46720
46721 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46722     cat >>confdefs.h <<\_ACEOF
46723 #define wxUSE_PROGRESSDLG 1
46724 _ACEOF
46725
46726 fi
46727
46728 if test "$wxUSE_SPLASH" = "yes"; then
46729     cat >>confdefs.h <<\_ACEOF
46730 #define wxUSE_SPLASH 1
46731 _ACEOF
46732
46733     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46734 fi
46735
46736 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46737     cat >>confdefs.h <<\_ACEOF
46738 #define wxUSE_STARTUP_TIPS 1
46739 _ACEOF
46740
46741 fi
46742
46743 if test "$wxUSE_TEXTDLG" = "yes"; then
46744     cat >>confdefs.h <<\_ACEOF
46745 #define wxUSE_TEXTDLG 1
46746 _ACEOF
46747
46748 fi
46749
46750 if test "$wxUSE_WIZARDDLG" = "yes"; then
46751     cat >>confdefs.h <<\_ACEOF
46752 #define wxUSE_WIZARDDLG 1
46753 _ACEOF
46754
46755     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46756 fi
46757
46758
46759 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46760     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46761         cat >>confdefs.h <<\_ACEOF
46762 #define wxUSE_OWNER_DRAWN 1
46763 _ACEOF
46764
46765     fi
46766 fi
46767
46768
46769 if test "$wxUSE_MSW" = 1 ; then
46770
46771     if test "$wxUSE_DC_CACHEING" = "yes"; then
46772         cat >>confdefs.h <<\_ACEOF
46773 #define wxUSE_DC_CACHEING 1
46774 _ACEOF
46775
46776     fi
46777
46778     if test "$wxUSE_DIB" = "yes"; then
46779         cat >>confdefs.h <<\_ACEOF
46780 #define wxUSE_WXDIB 1
46781 _ACEOF
46782
46783     fi
46784
46785     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46786         cat >>confdefs.h <<\_ACEOF
46787 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46788 _ACEOF
46789
46790     fi
46791
46792     if test "$wxUSE_UXTHEME" = "yes"; then
46793         cat >>confdefs.h <<\_ACEOF
46794 #define wxUSE_UXTHEME 1
46795 _ACEOF
46796
46797     fi
46798
46799 fi
46800
46801 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46802     cat >>confdefs.h <<\_ACEOF
46803 #define wxUSE_AUTOID_MANAGEMENT 1
46804 _ACEOF
46805
46806 fi
46807
46808 if test "$USE_WIN32" = 1 ; then
46809     if test "$wxUSE_INICONF" = "yes"; then
46810         cat >>confdefs.h <<\_ACEOF
46811 #define wxUSE_INICONF 1
46812 _ACEOF
46813
46814     fi
46815
46816     if test "$wxUSE_REGKEY" = "yes"; then
46817         cat >>confdefs.h <<\_ACEOF
46818 #define wxUSE_REGKEY 1
46819 _ACEOF
46820
46821     fi
46822 fi
46823
46824
46825 if test "$wxUSE_MAC" = 1; then
46826         wxUSE_GRAPHICS_CONTEXT="yes"
46827 fi
46828
46829 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46830    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46831       cat >>confdefs.h <<\_ACEOF
46832 #define wxUSE_GRAPHICS_CONTEXT 1
46833 _ACEOF
46834
46835    elif test "$wxUSE_GTK" != 1; then
46836             cat >>confdefs.h <<\_ACEOF
46837 #define wxUSE_GRAPHICS_CONTEXT 1
46838 _ACEOF
46839
46840    else
46841
46842 pkg_failed=no
46843 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46844 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46845
46846 if test -n "$PKG_CONFIG"; then
46847     if test -n "$CAIRO_CFLAGS"; then
46848         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46849     else
46850         if test -n "$PKG_CONFIG" && \
46851     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46852   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46853   ac_status=$?
46854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46855   (exit $ac_status); }; then
46856   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46857 else
46858   pkg_failed=yes
46859 fi
46860     fi
46861 else
46862         pkg_failed=untried
46863 fi
46864 if test -n "$PKG_CONFIG"; then
46865     if test -n "$CAIRO_LIBS"; then
46866         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46867     else
46868         if test -n "$PKG_CONFIG" && \
46869     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46870   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46871   ac_status=$?
46872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46873   (exit $ac_status); }; then
46874   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46875 else
46876   pkg_failed=yes
46877 fi
46878     fi
46879 else
46880         pkg_failed=untried
46881 fi
46882
46883
46884
46885 if test $pkg_failed = yes; then
46886
46887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46888         _pkg_short_errors_supported=yes
46889 else
46890         _pkg_short_errors_supported=no
46891 fi
46892         if test $_pkg_short_errors_supported = yes; then
46893                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46894         else
46895                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46896         fi
46897         # Put the nasty error message in config.log where it belongs
46898         echo "$CAIRO_PKG_ERRORS" >&5
46899
46900         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46901 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46902
46903 elif test $pkg_failed = untried; then
46904         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46905 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46906
46907 else
46908         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46909         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46910         { echo "$as_me:$LINENO: result: yes" >&5
46911 echo "${ECHO_T}yes" >&6; }
46912         cat >>confdefs.h <<\_ACEOF
46913 #define wxUSE_GRAPHICS_CONTEXT 1
46914 _ACEOF
46915
46916 fi
46917    fi
46918 fi
46919
46920
46921 USE_MEDIA=0
46922
46923 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46924     USE_MEDIA=1
46925
46926                 if test "$wxUSE_GTK" = 1; then
46927         wxUSE_GSTREAMER="no"
46928
46929                                                                 GST_VERSION_MAJOR=0
46930         GST_VERSION_MINOR=10
46931         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46932
46933         if test "$wxUSE_GSTREAMER8" = "no"; then
46934
46935 pkg_failed=no
46936 { echo "$as_me:$LINENO: checking for GST" >&5
46937 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46938
46939 if test -n "$PKG_CONFIG"; then
46940     if test -n "$GST_CFLAGS"; then
46941         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46942     else
46943         if test -n "$PKG_CONFIG" && \
46944     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46945   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46946   ac_status=$?
46947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948   (exit $ac_status); }; then
46949   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46950 else
46951   pkg_failed=yes
46952 fi
46953     fi
46954 else
46955         pkg_failed=untried
46956 fi
46957 if test -n "$PKG_CONFIG"; then
46958     if test -n "$GST_LIBS"; then
46959         pkg_cv_GST_LIBS="$GST_LIBS"
46960     else
46961         if test -n "$PKG_CONFIG" && \
46962     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46963   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46964   ac_status=$?
46965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46966   (exit $ac_status); }; then
46967   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46968 else
46969   pkg_failed=yes
46970 fi
46971     fi
46972 else
46973         pkg_failed=untried
46974 fi
46975
46976
46977
46978 if test $pkg_failed = yes; then
46979
46980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46981         _pkg_short_errors_supported=yes
46982 else
46983         _pkg_short_errors_supported=no
46984 fi
46985         if test $_pkg_short_errors_supported = yes; then
46986                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46987         else
46988                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46989         fi
46990         # Put the nasty error message in config.log where it belongs
46991         echo "$GST_PKG_ERRORS" >&5
46992
46993
46994                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46995 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46996                     GST_VERSION_MINOR=8
46997
46998
46999 elif test $pkg_failed = untried; then
47000
47001                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47002 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47003                     GST_VERSION_MINOR=8
47004
47005
47006 else
47007         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47008         GST_LIBS=$pkg_cv_GST_LIBS
47009         { echo "$as_me:$LINENO: result: yes" >&5
47010 echo "${ECHO_T}yes" >&6; }
47011
47012                     wxUSE_GSTREAMER="yes"
47013                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
47014
47015 fi
47016         else
47017                         GST_VERSION_MINOR=8
47018         fi
47019
47020         if test $GST_VERSION_MINOR = "8"; then
47021             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47022
47023 pkg_failed=no
47024 { echo "$as_me:$LINENO: checking for GST" >&5
47025 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
47026
47027 if test -n "$PKG_CONFIG"; then
47028     if test -n "$GST_CFLAGS"; then
47029         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47030     else
47031         if test -n "$PKG_CONFIG" && \
47032     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47033   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47034   ac_status=$?
47035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47036   (exit $ac_status); }; then
47037   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47038 else
47039   pkg_failed=yes
47040 fi
47041     fi
47042 else
47043         pkg_failed=untried
47044 fi
47045 if test -n "$PKG_CONFIG"; then
47046     if test -n "$GST_LIBS"; then
47047         pkg_cv_GST_LIBS="$GST_LIBS"
47048     else
47049         if test -n "$PKG_CONFIG" && \
47050     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47051   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47052   ac_status=$?
47053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47054   (exit $ac_status); }; then
47055   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47056 else
47057   pkg_failed=yes
47058 fi
47059     fi
47060 else
47061         pkg_failed=untried
47062 fi
47063
47064
47065
47066 if test $pkg_failed = yes; then
47067
47068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47069         _pkg_short_errors_supported=yes
47070 else
47071         _pkg_short_errors_supported=no
47072 fi
47073         if test $_pkg_short_errors_supported = yes; then
47074                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47075         else
47076                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47077         fi
47078         # Put the nasty error message in config.log where it belongs
47079         echo "$GST_PKG_ERRORS" >&5
47080
47081
47082                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47083 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47084
47085 elif test $pkg_failed = untried; then
47086
47087                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47088 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47089
47090 else
47091         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47092         GST_LIBS=$pkg_cv_GST_LIBS
47093         { echo "$as_me:$LINENO: result: yes" >&5
47094 echo "${ECHO_T}yes" >&6; }
47095         wxUSE_GSTREAMER="yes"
47096 fi
47097         fi
47098
47099
47100         if test "$wxUSE_GSTREAMER" = "yes"; then
47101             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47102             EXTRALIBS_MEDIA="$GST_LIBS"
47103
47104             cat >>confdefs.h <<\_ACEOF
47105 #define wxUSE_GSTREAMER 1
47106 _ACEOF
47107
47108         else
47109             USE_MEDIA=0
47110         fi
47111     fi
47112
47113     if test $USE_MEDIA = 1; then
47114         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47115         cat >>confdefs.h <<\_ACEOF
47116 #define wxUSE_MEDIACTRL 1
47117 _ACEOF
47118
47119     else
47120         if test "$wxUSE_MEDIACTRL" = "yes"; then
47121             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47122 echo "$as_me: error: GStreamer not available" >&2;}
47123    { (exit 1); exit 1; }; }
47124         else
47125                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47126 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47127         fi
47128     fi
47129 fi
47130
47131
47132 if test "$cross_compiling" != "no"; then
47133         OSINFO="\"$host\""
47134 else
47135         OSINFO=`uname -s -r -m`
47136     OSINFO="\"$OSINFO\""
47137 fi
47138
47139 cat >>confdefs.h <<_ACEOF
47140 #define WXWIN_OS_DESCRIPTION $OSINFO
47141 _ACEOF
47142
47143
47144
47145 if test "x$prefix" != "xNONE"; then
47146     wxPREFIX=$prefix
47147 else
47148     wxPREFIX=$ac_default_prefix
47149 fi
47150
47151 cat >>confdefs.h <<_ACEOF
47152 #define wxINSTALL_PREFIX "$wxPREFIX"
47153 _ACEOF
47154
47155
47156
47157
47158 STD_BASE_LIBS="base"
47159 STD_GUI_LIBS=""
47160 BUILT_WX_LIBS="base"
47161 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47162
47163 if test "$wxUSE_SOCKETS" = "yes" ; then
47164     STD_BASE_LIBS="net $STD_BASE_LIBS"
47165     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47166 fi
47167 if test "$wxUSE_XML" = "yes" ; then
47168     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47169     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47170 fi
47171
47172 if test "$wxUSE_GUI" = "yes"; then
47173     STD_GUI_LIBS="adv core"
47174     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47175
47176     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47177         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47178         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47179     fi
47180     if test "$wxUSE_HTML" = "yes" ; then
47181         STD_GUI_LIBS="html $STD_GUI_LIBS"
47182         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47183     fi
47184     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47185         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47186     fi
47187     if test "$wxUSE_OPENGL" = "yes" ; then
47188         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47189     fi
47190     if test "$wxUSE_AUI" = "yes" ; then
47191         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47192     fi
47193     if test "$wxUSE_PROPGRID" = "yes" ; then
47194         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47195     fi
47196     if test "$wxUSE_RIBBON" = "yes" ; then
47197         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
47198     fi
47199     if test "$wxUSE_RICHTEXT" = "yes" ; then
47200         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47201     fi
47202     if test "$wxUSE_STC" = "yes" ; then
47203         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47204     fi
47205     if test "$wxUSE_XRC" = "yes" ; then
47206         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47207         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47208     fi
47209 fi
47210
47211
47212
47213
47214
47215
47216
47217
47218 if test "$wxUSE_MAC" = 1 ; then
47219     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47220         if test "$USE_DARWIN" = 1; then
47221             LDFLAGS="$LDFLAGS -framework QuickTime"
47222         fi
47223     fi
47224     if test "$USE_DARWIN" = 1; then
47225         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47226     fi
47227 fi
47228 if test "$wxUSE_COCOA" = 1 ; then
47229     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47230     if test "$wxUSE_MEDIACTRL" = "yes"; then
47231         LDFLAGS="$LDFLAGS -framework QuickTime"
47232     fi
47233 fi
47234 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47235     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47236 fi
47237
47238 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47239
47240 if test "$wxUSE_GUI" = "yes"; then
47241
47242
47243         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47244                      erase event exec font image minimal render \
47245                      shaped svg taborder vscroll widgets wrapsizer"
47246
47247     if test "$wxUSE_MONOLITHIC" != "yes"; then
47248         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47249     fi
47250     if test "$TOOLKIT" = "MSW"; then
47251         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47252         if test "$wxUSE_UNIVERSAL" != "yes"; then
47253             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47254         fi
47255     fi
47256     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47257         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47258     fi
47259 else
47260     SAMPLES_SUBDIRS="console"
47261     if test "$wxUSE_SOCKETS" = "yes" ; then
47262         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47263     fi
47264     if test "$wxUSE_IPC" = "yes" ; then
47265         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47266     fi
47267 fi
47268
47269
47270 if test "x$INTELCC" = "xyes" ; then
47271                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47272 elif test "$GCC" = yes ; then
47273     CWARNINGS="-Wall -Wundef"
47274 fi
47275
47276 if test "x$INTELCXX" = "xyes" ; then
47277                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47278 elif test "$GXX" = yes ; then
47279     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47280     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47281 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47282 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47283   echo $ECHO_N "(cached) $ECHO_C" >&6
47284 else
47285   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47286
47287  ac_ext=cpp
47288 ac_cpp='$CXXCPP $CPPFLAGS'
47289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47292
47293  ac_save_CXXFLAGS="$CXXFLAGS"
47294 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47295 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47296    cat >conftest.$ac_ext <<_ACEOF
47297 /* confdefs.h.  */
47298 _ACEOF
47299 cat confdefs.h >>conftest.$ac_ext
47300 cat >>conftest.$ac_ext <<_ACEOF
47301 /* end confdefs.h.  */
47302
47303 int
47304 main ()
47305 {
47306 return 0;
47307   ;
47308   return 0;
47309 }
47310 _ACEOF
47311 rm -f conftest.$ac_objext
47312 if { (ac_try="$ac_compile"
47313 case "(($ac_try" in
47314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47315   *) ac_try_echo=$ac_try;;
47316 esac
47317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47318   (eval "$ac_compile") 2>conftest.er1
47319   ac_status=$?
47320   grep -v '^ *+' conftest.er1 >conftest.err
47321   rm -f conftest.er1
47322   cat conftest.err >&5
47323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47324   (exit $ac_status); } && {
47325          test -z "$ac_cxx_werror_flag" ||
47326          test ! -s conftest.err
47327        } && test -s conftest.$ac_objext; then
47328   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47329 else
47330   echo "$as_me: failed program was:" >&5
47331 sed 's/^/| /' conftest.$ac_ext >&5
47332
47333
47334 fi
47335
47336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47337 done
47338  CXXFLAGS="$ac_save_CXXFLAGS"
47339  ac_ext=c
47340 ac_cpp='$CPP $CPPFLAGS'
47341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47344
47345
47346 fi
47347 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47348 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47349 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47350      .ok|.ok,*)  ;;
47351    .|.no|.no,*)  ;;
47352    *)
47353    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47354    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47355   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47356   ac_status=$?
47357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47358   (exit $ac_status); }
47359    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47360   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47361   ac_status=$?
47362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47363   (exit $ac_status); }
47364                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47365    fi
47366  ;;
47367 esac
47368
47369
47370                     if test "$wxUSE_MAC" = 1 ; then
47371         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
47372     fi
47373 fi
47374
47375
47376 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47377 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47378
47379
47380 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47381  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47382  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47383  $CPPFLAGS `
47384
47385 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47386 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47387 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47388 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47389 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47390
47391 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47392
47393
47394 if test "x$MWCC" = "xyes"; then
47395
47396             CC="$CC -cwd source -I-"
47397     CXX="$CXX -cwd source -I-"
47398 fi
47399
47400
47401 LIBS=`echo $LIBS`
47402 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47403 EXTRALIBS_XML="$EXPAT_LINK"
47404 EXTRALIBS_HTML="$MSPACK_LINK"
47405 EXTRALIBS_MEDIA="$GST_LIBS"
47406 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47407 if test "$wxUSE_GUI" = "yes"; then
47408     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47409 fi
47410 if test "$wxUSE_OPENGL" = "yes"; then
47411     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47412 fi
47413
47414 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47415
47416 WXCONFIG_LIBS="$LIBS"
47417
47418 if test "$wxUSE_REGEX" = "builtin" ; then
47419     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47420 fi
47421 if test "$wxUSE_EXPAT" = "builtin" ; then
47422     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47423 fi
47424 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47425     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47426 fi
47427 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47428     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47429 fi
47430 if test "$wxUSE_LIBPNG" = "builtin" ; then
47431     wxconfig_3rdparty="png $wxconfig_3rdparty"
47432 fi
47433 if test "$wxUSE_ZLIB" = "builtin" ; then
47434     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47435 fi
47436
47437 for i in $wxconfig_3rdparty ; do
47438     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47439 done
47440
47441
47442 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47443     WXUNIV=1
47444
47445     case "$wxUNIV_THEMES" in
47446         ''|all)
47447             cat >>confdefs.h <<\_ACEOF
47448 #define wxUSE_ALL_THEMES 1
47449 _ACEOF
47450
47451             ;;
47452
47453         *)
47454             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47455                 cat >>confdefs.h <<_ACEOF
47456 #define wxUSE_THEME_$t 1
47457 _ACEOF
47458
47459             done
47460     esac
47461 else
47462     WXUNIV=0
47463 fi
47464
47465
47466
47467
47468
47469
47470
47471
47472 if test $wxUSE_MONOLITHIC = "yes" ; then
47473     MONOLITHIC=1
47474 else
47475     MONOLITHIC=0
47476 fi
47477
47478 if test $wxUSE_PLUGINS = "yes" ; then
47479     USE_PLUGINS=1
47480 else
47481     USE_PLUGINS=0
47482 fi
47483
47484 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47485     USE_QA=1
47486 else
47487     USE_QA=0
47488 fi
47489
47490 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47491     OFFICIAL_BUILD=1
47492 else
47493     OFFICIAL_BUILD=0
47494 fi
47495
47496
47497
47498
47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522 TOOLKIT_LOWERCASE=xxx
47523 if test "$TOOLKIT" = "MAC"; then
47524     TOOLKIT_LOWERCASE=osx_carbon
47525 fi
47526 if test "$TOOLKIT" = "OSX_CARBON"; then
47527     TOOLKIT_LOWERCASE=osx_carbon
47528 fi
47529 if test "$TOOLKIT" = "OSX_COCOA"; then
47530     TOOLKIT_LOWERCASE=osx_cocoa
47531 fi
47532 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47533     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47534 fi
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545 case "$TOOLKIT" in
47546     GTK)
47547         TOOLKIT_DESC="GTK+"
47548         if test "$WXGTK2" = 1; then
47549             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47550             if test "$wxUSE_GTKPRINT" = "yes" ; then
47551                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47552             fi
47553             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47554                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47555             fi
47556             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47557                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47558             fi
47559             if test "$wxUSE_LIBHILDON" = "yes"; then
47560                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47561             fi
47562             if test "$wxUSE_LIBHILDON2" = "yes"; then
47563                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47564             fi
47565
47566             if test "$TOOLKIT_EXTRA" != ""; then
47567                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47568             fi
47569         fi
47570         ;;
47571
47572     ?*)
47573         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47574         ;;
47575
47576     *)
47577         TOOLKIT_DESC="base only"
47578         ;;
47579 esac
47580
47581 if test "$wxUSE_WINE" = "yes"; then
47582     BAKEFILE_FORCE_PLATFORM=win32
47583 fi
47584
47585 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47586 then
47587     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47588 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47589 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47590   echo $ECHO_N "(cached) $ECHO_C" >&6
47591 else
47592
47593             echo '#include <stdio.h>
47594                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47595
47596             echo '#include "conftest.h"
47597                   int main()
47598                   {
47599                      printf("%ls", test_var);
47600                      return 0;
47601                   }' > conftest.cpp
47602
47603             wx_cv_gcc_pch_bug="pch not supported"
47604
47605             if $CXX conftest.h >/dev/null 2>&1
47606             then
47607                 wx_cv_gcc_pch_bug=
47608
47609                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47610                 then
47611                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47612                         grep awidetest >/dev/null
47613                     then
47614                         wx_cv_gcc_pch_bug=no
47615                     else
47616                         wx_cv_gcc_pch_bug=yes
47617                     fi
47618                 fi
47619             fi
47620
47621             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47622
47623 fi
47624 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47625 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47626
47627     if test "$wx_cv_gcc_pch_bug" = yes; then
47628                         bk_use_pch=no
47629     fi
47630 fi
47631
47632
47633
47634
47635
47636
47637
47638     if test "x$BAKEFILE_HOST" = "x"; then
47639                if test "x${host}" = "x" ; then
47640                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47641 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47642    { (exit 1); exit 1; }; }
47643                fi
47644
47645         BAKEFILE_HOST="${host}"
47646     fi
47647
47648     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47649
47650     if test -n "$ac_tool_prefix"; then
47651   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47655 if test "${ac_cv_prog_RANLIB+set}" = set; then
47656   echo $ECHO_N "(cached) $ECHO_C" >&6
47657 else
47658   if test -n "$RANLIB"; then
47659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47660 else
47661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47662 for as_dir in $PATH
47663 do
47664   IFS=$as_save_IFS
47665   test -z "$as_dir" && as_dir=.
47666   for ac_exec_ext in '' $ac_executable_extensions; do
47667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47668     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47670     break 2
47671   fi
47672 done
47673 done
47674 IFS=$as_save_IFS
47675
47676 fi
47677 fi
47678 RANLIB=$ac_cv_prog_RANLIB
47679 if test -n "$RANLIB"; then
47680   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47681 echo "${ECHO_T}$RANLIB" >&6; }
47682 else
47683   { echo "$as_me:$LINENO: result: no" >&5
47684 echo "${ECHO_T}no" >&6; }
47685 fi
47686
47687
47688 fi
47689 if test -z "$ac_cv_prog_RANLIB"; then
47690   ac_ct_RANLIB=$RANLIB
47691   # Extract the first word of "ranlib", so it can be a program name with args.
47692 set dummy ranlib; ac_word=$2
47693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47696   echo $ECHO_N "(cached) $ECHO_C" >&6
47697 else
47698   if test -n "$ac_ct_RANLIB"; then
47699   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47700 else
47701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47702 for as_dir in $PATH
47703 do
47704   IFS=$as_save_IFS
47705   test -z "$as_dir" && as_dir=.
47706   for ac_exec_ext in '' $ac_executable_extensions; do
47707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47708     ac_cv_prog_ac_ct_RANLIB="ranlib"
47709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47710     break 2
47711   fi
47712 done
47713 done
47714 IFS=$as_save_IFS
47715
47716 fi
47717 fi
47718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47719 if test -n "$ac_ct_RANLIB"; then
47720   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47721 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47722 else
47723   { echo "$as_me:$LINENO: result: no" >&5
47724 echo "${ECHO_T}no" >&6; }
47725 fi
47726
47727   if test "x$ac_ct_RANLIB" = x; then
47728     RANLIB=":"
47729   else
47730     case $cross_compiling:$ac_tool_warned in
47731 yes:)
47732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47733 whose name does not start with the host triplet.  If you think this
47734 configuration is useful to you, please write to autoconf@gnu.org." >&5
47735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47736 whose name does not start with the host triplet.  If you think this
47737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47738 ac_tool_warned=yes ;;
47739 esac
47740     RANLIB=$ac_ct_RANLIB
47741   fi
47742 else
47743   RANLIB="$ac_cv_prog_RANLIB"
47744 fi
47745
47746     # Find a good install program.  We prefer a C program (faster),
47747 # so one script is as good as another.  But avoid the broken or
47748 # incompatible versions:
47749 # SysV /etc/install, /usr/sbin/install
47750 # SunOS /usr/etc/install
47751 # IRIX /sbin/install
47752 # AIX /bin/install
47753 # AmigaOS /C/install, which installs bootblocks on floppy discs
47754 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47755 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47756 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47757 # OS/2's system install, which has a completely different semantic
47758 # ./install, which can be erroneously created by make from ./install.sh.
47759 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47760 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47761 if test -z "$INSTALL"; then
47762 if test "${ac_cv_path_install+set}" = set; then
47763   echo $ECHO_N "(cached) $ECHO_C" >&6
47764 else
47765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47766 for as_dir in $PATH
47767 do
47768   IFS=$as_save_IFS
47769   test -z "$as_dir" && as_dir=.
47770   # Account for people who put trailing slashes in PATH elements.
47771 case $as_dir/ in
47772   ./ | .// | /cC/* | \
47773   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47774   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47775   /usr/ucb/* ) ;;
47776   *)
47777     # OSF1 and SCO ODT 3.0 have their own names for install.
47778     # Don't use installbsd from OSF since it installs stuff as root
47779     # by default.
47780     for ac_prog in ginstall scoinst install; do
47781       for ac_exec_ext in '' $ac_executable_extensions; do
47782         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47783           if test $ac_prog = install &&
47784             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47785             # AIX install.  It has an incompatible calling convention.
47786             :
47787           elif test $ac_prog = install &&
47788             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47789             # program-specific install script used by HP pwplus--don't use.
47790             :
47791           else
47792             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47793             break 3
47794           fi
47795         fi
47796       done
47797     done
47798     ;;
47799 esac
47800 done
47801 IFS=$as_save_IFS
47802
47803
47804 fi
47805   if test "${ac_cv_path_install+set}" = set; then
47806     INSTALL=$ac_cv_path_install
47807   else
47808     # As a last resort, use the slow shell script.  Don't cache a
47809     # value for INSTALL within a source directory, because that will
47810     # break other packages using the cache if that directory is
47811     # removed, or if the value is a relative name.
47812     INSTALL=$ac_install_sh
47813   fi
47814 fi
47815 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47816 echo "${ECHO_T}$INSTALL" >&6; }
47817
47818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47819 # It thinks the first close brace ends the variable substitution.
47820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47821
47822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47823
47824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47825
47826     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47827 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47828 LN_S=$as_ln_s
47829 if test "$LN_S" = "ln -s"; then
47830   { echo "$as_me:$LINENO: result: yes" >&5
47831 echo "${ECHO_T}yes" >&6; }
47832 else
47833   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47834 echo "${ECHO_T}no, using $LN_S" >&6; }
47835 fi
47836
47837
47838     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47840 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47842   echo $ECHO_N "(cached) $ECHO_C" >&6
47843 else
47844   cat >conftest.make <<\_ACEOF
47845 SHELL = /bin/sh
47846 all:
47847         @echo '@@@%%%=$(MAKE)=@@@%%%'
47848 _ACEOF
47849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47851   *@@@%%%=?*=@@@%%%*)
47852     eval ac_cv_prog_make_${ac_make}_set=yes;;
47853   *)
47854     eval ac_cv_prog_make_${ac_make}_set=no;;
47855 esac
47856 rm -f conftest.make
47857 fi
47858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47859   { echo "$as_me:$LINENO: result: yes" >&5
47860 echo "${ECHO_T}yes" >&6; }
47861   SET_MAKE=
47862 else
47863   { echo "$as_me:$LINENO: result: no" >&5
47864 echo "${ECHO_T}no" >&6; }
47865   SET_MAKE="MAKE=${MAKE-make}"
47866 fi
47867
47868
47869
47870     if test "x$SUNCXX" = "xyes"; then
47871                                 AR=$CXX
47872         AROPTIONS="-xar -o"
47873
47874     elif test "x$SGICC" = "xyes"; then
47875                 AR=$CXX
47876         AROPTIONS="-ar -o"
47877
47878     else
47879         if test -n "$ac_tool_prefix"; then
47880   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47881 set dummy ${ac_tool_prefix}ar; ac_word=$2
47882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47884 if test "${ac_cv_prog_AR+set}" = set; then
47885   echo $ECHO_N "(cached) $ECHO_C" >&6
47886 else
47887   if test -n "$AR"; then
47888   ac_cv_prog_AR="$AR" # Let the user override the test.
47889 else
47890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47891 for as_dir in $PATH
47892 do
47893   IFS=$as_save_IFS
47894   test -z "$as_dir" && as_dir=.
47895   for ac_exec_ext in '' $ac_executable_extensions; do
47896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47897     ac_cv_prog_AR="${ac_tool_prefix}ar"
47898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47899     break 2
47900   fi
47901 done
47902 done
47903 IFS=$as_save_IFS
47904
47905 fi
47906 fi
47907 AR=$ac_cv_prog_AR
47908 if test -n "$AR"; then
47909   { echo "$as_me:$LINENO: result: $AR" >&5
47910 echo "${ECHO_T}$AR" >&6; }
47911 else
47912   { echo "$as_me:$LINENO: result: no" >&5
47913 echo "${ECHO_T}no" >&6; }
47914 fi
47915
47916
47917 fi
47918 if test -z "$ac_cv_prog_AR"; then
47919   ac_ct_AR=$AR
47920   # Extract the first word of "ar", so it can be a program name with args.
47921 set dummy ar; ac_word=$2
47922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47925   echo $ECHO_N "(cached) $ECHO_C" >&6
47926 else
47927   if test -n "$ac_ct_AR"; then
47928   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47929 else
47930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47931 for as_dir in $PATH
47932 do
47933   IFS=$as_save_IFS
47934   test -z "$as_dir" && as_dir=.
47935   for ac_exec_ext in '' $ac_executable_extensions; do
47936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47937     ac_cv_prog_ac_ct_AR="ar"
47938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47939     break 2
47940   fi
47941 done
47942 done
47943 IFS=$as_save_IFS
47944
47945 fi
47946 fi
47947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47948 if test -n "$ac_ct_AR"; then
47949   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47950 echo "${ECHO_T}$ac_ct_AR" >&6; }
47951 else
47952   { echo "$as_me:$LINENO: result: no" >&5
47953 echo "${ECHO_T}no" >&6; }
47954 fi
47955
47956   if test "x$ac_ct_AR" = x; then
47957     AR="ar"
47958   else
47959     case $cross_compiling:$ac_tool_warned in
47960 yes:)
47961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47962 whose name does not start with the host triplet.  If you think this
47963 configuration is useful to you, please write to autoconf@gnu.org." >&5
47964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47965 whose name does not start with the host triplet.  If you think this
47966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47967 ac_tool_warned=yes ;;
47968 esac
47969     AR=$ac_ct_AR
47970   fi
47971 else
47972   AR="$ac_cv_prog_AR"
47973 fi
47974
47975         AROPTIONS=rcu
47976     fi
47977
47978
47979     if test -n "$ac_tool_prefix"; then
47980   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47981 set dummy ${ac_tool_prefix}strip; ac_word=$2
47982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47984 if test "${ac_cv_prog_STRIP+set}" = set; then
47985   echo $ECHO_N "(cached) $ECHO_C" >&6
47986 else
47987   if test -n "$STRIP"; then
47988   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47989 else
47990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47991 for as_dir in $PATH
47992 do
47993   IFS=$as_save_IFS
47994   test -z "$as_dir" && as_dir=.
47995   for ac_exec_ext in '' $ac_executable_extensions; do
47996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47997     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47999     break 2
48000   fi
48001 done
48002 done
48003 IFS=$as_save_IFS
48004
48005 fi
48006 fi
48007 STRIP=$ac_cv_prog_STRIP
48008 if test -n "$STRIP"; then
48009   { echo "$as_me:$LINENO: result: $STRIP" >&5
48010 echo "${ECHO_T}$STRIP" >&6; }
48011 else
48012   { echo "$as_me:$LINENO: result: no" >&5
48013 echo "${ECHO_T}no" >&6; }
48014 fi
48015
48016
48017 fi
48018 if test -z "$ac_cv_prog_STRIP"; then
48019   ac_ct_STRIP=$STRIP
48020   # Extract the first word of "strip", so it can be a program name with args.
48021 set dummy strip; ac_word=$2
48022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48025   echo $ECHO_N "(cached) $ECHO_C" >&6
48026 else
48027   if test -n "$ac_ct_STRIP"; then
48028   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48029 else
48030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48031 for as_dir in $PATH
48032 do
48033   IFS=$as_save_IFS
48034   test -z "$as_dir" && as_dir=.
48035   for ac_exec_ext in '' $ac_executable_extensions; do
48036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48037     ac_cv_prog_ac_ct_STRIP="strip"
48038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48039     break 2
48040   fi
48041 done
48042 done
48043 IFS=$as_save_IFS
48044
48045 fi
48046 fi
48047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48048 if test -n "$ac_ct_STRIP"; then
48049   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48050 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
48051 else
48052   { echo "$as_me:$LINENO: result: no" >&5
48053 echo "${ECHO_T}no" >&6; }
48054 fi
48055
48056   if test "x$ac_ct_STRIP" = x; then
48057     STRIP=":"
48058   else
48059     case $cross_compiling:$ac_tool_warned in
48060 yes:)
48061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48062 whose name does not start with the host triplet.  If you think this
48063 configuration is useful to you, please write to autoconf@gnu.org." >&5
48064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48065 whose name does not start with the host triplet.  If you think this
48066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48067 ac_tool_warned=yes ;;
48068 esac
48069     STRIP=$ac_ct_STRIP
48070   fi
48071 else
48072   STRIP="$ac_cv_prog_STRIP"
48073 fi
48074
48075     if test -n "$ac_tool_prefix"; then
48076   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48077 set dummy ${ac_tool_prefix}nm; ac_word=$2
48078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48080 if test "${ac_cv_prog_NM+set}" = set; then
48081   echo $ECHO_N "(cached) $ECHO_C" >&6
48082 else
48083   if test -n "$NM"; then
48084   ac_cv_prog_NM="$NM" # Let the user override the test.
48085 else
48086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48087 for as_dir in $PATH
48088 do
48089   IFS=$as_save_IFS
48090   test -z "$as_dir" && as_dir=.
48091   for ac_exec_ext in '' $ac_executable_extensions; do
48092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48093     ac_cv_prog_NM="${ac_tool_prefix}nm"
48094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48095     break 2
48096   fi
48097 done
48098 done
48099 IFS=$as_save_IFS
48100
48101 fi
48102 fi
48103 NM=$ac_cv_prog_NM
48104 if test -n "$NM"; then
48105   { echo "$as_me:$LINENO: result: $NM" >&5
48106 echo "${ECHO_T}$NM" >&6; }
48107 else
48108   { echo "$as_me:$LINENO: result: no" >&5
48109 echo "${ECHO_T}no" >&6; }
48110 fi
48111
48112
48113 fi
48114 if test -z "$ac_cv_prog_NM"; then
48115   ac_ct_NM=$NM
48116   # Extract the first word of "nm", so it can be a program name with args.
48117 set dummy nm; ac_word=$2
48118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48120 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48121   echo $ECHO_N "(cached) $ECHO_C" >&6
48122 else
48123   if test -n "$ac_ct_NM"; then
48124   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48125 else
48126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48127 for as_dir in $PATH
48128 do
48129   IFS=$as_save_IFS
48130   test -z "$as_dir" && as_dir=.
48131   for ac_exec_ext in '' $ac_executable_extensions; do
48132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48133     ac_cv_prog_ac_ct_NM="nm"
48134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48135     break 2
48136   fi
48137 done
48138 done
48139 IFS=$as_save_IFS
48140
48141 fi
48142 fi
48143 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48144 if test -n "$ac_ct_NM"; then
48145   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48146 echo "${ECHO_T}$ac_ct_NM" >&6; }
48147 else
48148   { echo "$as_me:$LINENO: result: no" >&5
48149 echo "${ECHO_T}no" >&6; }
48150 fi
48151
48152   if test "x$ac_ct_NM" = x; then
48153     NM=":"
48154   else
48155     case $cross_compiling:$ac_tool_warned in
48156 yes:)
48157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48158 whose name does not start with the host triplet.  If you think this
48159 configuration is useful to you, please write to autoconf@gnu.org." >&5
48160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48161 whose name does not start with the host triplet.  If you think this
48162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48163 ac_tool_warned=yes ;;
48164 esac
48165     NM=$ac_ct_NM
48166   fi
48167 else
48168   NM="$ac_cv_prog_NM"
48169 fi
48170
48171
48172             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48173 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48174     INSTALL_TEST_DIR=acbftest$$
48175     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48176     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48177         rmdir $INSTALL_TEST_DIR
48178                         INSTALL_DIR='$(INSTALL) -d'
48179         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48180 echo "${ECHO_T}$INSTALL -d" >&6; }
48181     else
48182         INSTALL_DIR="mkdir -p"
48183         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48184 echo "${ECHO_T}mkdir -p" >&6; }
48185     fi
48186
48187
48188     LDFLAGS_GUI=
48189     case ${BAKEFILE_HOST} in
48190         *-*-cygwin* | *-*-mingw32* )
48191         LDFLAGS_GUI="-mwindows"
48192     esac
48193
48194
48195     fi
48196
48197         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48198 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48199 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48200   echo $ECHO_N "(cached) $ECHO_C" >&6
48201 else
48202
48203         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48204                 egrep -s GNU > /dev/null); then
48205             bakefile_cv_prog_makeisgnu="yes"
48206         else
48207             bakefile_cv_prog_makeisgnu="no"
48208         fi
48209
48210 fi
48211 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48212 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48213
48214     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48215         IF_GNU_MAKE=""
48216     else
48217         IF_GNU_MAKE="#"
48218     fi
48219
48220
48221
48222     PLATFORM_UNIX=0
48223     PLATFORM_WIN32=0
48224     PLATFORM_MSDOS=0
48225     PLATFORM_MAC=0
48226     PLATFORM_MACOS=0
48227     PLATFORM_MACOSX=0
48228     PLATFORM_OS2=0
48229     PLATFORM_BEOS=0
48230
48231     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48232         case "${BAKEFILE_HOST}" in
48233             *-*-mingw32* )
48234                 PLATFORM_WIN32=1
48235             ;;
48236             *-pc-msdosdjgpp )
48237                 PLATFORM_MSDOS=1
48238             ;;
48239             *-pc-os2_emx | *-pc-os2-emx )
48240                 PLATFORM_OS2=1
48241             ;;
48242             *-*-darwin* )
48243                 PLATFORM_MAC=1
48244                 PLATFORM_MACOSX=1
48245             ;;
48246             *-*-beos* )
48247                 PLATFORM_BEOS=1
48248             ;;
48249             powerpc-apple-macos* )
48250                 PLATFORM_MAC=1
48251                 PLATFORM_MACOS=1
48252             ;;
48253             * )
48254                 PLATFORM_UNIX=1
48255             ;;
48256         esac
48257     else
48258         case "$BAKEFILE_FORCE_PLATFORM" in
48259             win32 )
48260                 PLATFORM_WIN32=1
48261             ;;
48262             msdos )
48263                 PLATFORM_MSDOS=1
48264             ;;
48265             os2 )
48266                 PLATFORM_OS2=1
48267             ;;
48268             darwin )
48269                 PLATFORM_MAC=1
48270                 PLATFORM_MACOSX=1
48271             ;;
48272             unix )
48273                 PLATFORM_UNIX=1
48274             ;;
48275             beos )
48276                 PLATFORM_BEOS=1
48277             ;;
48278             * )
48279                                             ;;
48280         esac
48281     fi
48282
48283
48284
48285
48286
48287
48288
48289
48290
48291
48292
48293     # Check whether --enable-omf was given.
48294 if test "${enable_omf+set}" = set; then
48295   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48296 fi
48297
48298
48299     case "${BAKEFILE_HOST}" in
48300       *-*-darwin* )
48301                         if test "x$GCC" = "xyes"; then
48302             CFLAGS="$CFLAGS -fno-common"
48303             CXXFLAGS="$CXXFLAGS -fno-common"
48304         fi
48305         if test "x$XLCC" = "xyes"; then
48306             CFLAGS="$CFLAGS -qnocommon"
48307             CXXFLAGS="$CXXFLAGS -qnocommon"
48308         fi
48309         ;;
48310
48311       *-pc-os2_emx | *-pc-os2-emx )
48312         if test "x$bk_os2_use_omf" = "xyes" ; then
48313             AR=emxomfar
48314             RANLIB=:
48315             LDFLAGS="-Zomf $LDFLAGS"
48316             CFLAGS="-Zomf $CFLAGS"
48317             CXXFLAGS="-Zomf $CXXFLAGS"
48318             OS2_LIBEXT="lib"
48319         else
48320             OS2_LIBEXT="a"
48321         fi
48322         ;;
48323
48324       i*86-*-beos* )
48325         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48326         ;;
48327     esac
48328
48329
48330     SO_SUFFIX="so"
48331     SO_SUFFIX_MODULE="so"
48332     EXEEXT=""
48333     LIBPREFIX="lib"
48334     LIBEXT=".a"
48335     DLLPREFIX="lib"
48336     DLLPREFIX_MODULE=""
48337     DLLIMP_SUFFIX=""
48338     dlldir="$libdir"
48339
48340     case "${BAKEFILE_HOST}" in
48341                         ia64-hp-hpux* )
48342         ;;
48343         *-hp-hpux* )
48344             SO_SUFFIX="sl"
48345             SO_SUFFIX_MODULE="sl"
48346         ;;
48347         *-*-aix* )
48348                                                                         SO_SUFFIX="a"
48349             SO_SUFFIX_MODULE="a"
48350         ;;
48351         *-*-cygwin* )
48352             SO_SUFFIX="dll"
48353             SO_SUFFIX_MODULE="dll"
48354             DLLIMP_SUFFIX="dll.a"
48355             EXEEXT=".exe"
48356             DLLPREFIX="cyg"
48357             dlldir="$bindir"
48358         ;;
48359         *-*-mingw32* )
48360             SO_SUFFIX="dll"
48361             SO_SUFFIX_MODULE="dll"
48362             DLLIMP_SUFFIX="dll.a"
48363             EXEEXT=".exe"
48364             DLLPREFIX=""
48365             dlldir="$bindir"
48366         ;;
48367         *-pc-msdosdjgpp )
48368             EXEEXT=".exe"
48369             DLLPREFIX=""
48370             dlldir="$bindir"
48371         ;;
48372         *-pc-os2_emx | *-pc-os2-emx )
48373             SO_SUFFIX="dll"
48374             SO_SUFFIX_MODULE="dll"
48375             DLLIMP_SUFFIX=$OS2_LIBEXT
48376             EXEEXT=".exe"
48377             DLLPREFIX=""
48378             LIBPREFIX=""
48379             LIBEXT=".$OS2_LIBEXT"
48380             dlldir="$bindir"
48381         ;;
48382         *-*-darwin* )
48383             SO_SUFFIX="dylib"
48384             SO_SUFFIX_MODULE="bundle"
48385         ;;
48386     esac
48387
48388     if test "x$DLLIMP_SUFFIX" = "x" ; then
48389         DLLIMP_SUFFIX="$SO_SUFFIX"
48390     fi
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403         PIC_FLAG=""
48404     if test "x$GCC" = "xyes"; then
48405                 PIC_FLAG="-fPIC"
48406     fi
48407
48408         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48409     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48410     WINDOWS_IMPLIB=0
48411
48412     case "${BAKEFILE_HOST}" in
48413       *-hp-hpux* )
48414                 if test "x$GCC" != "xyes"; then
48415                         LDFLAGS="$LDFLAGS -L/usr/lib"
48416
48417             SHARED_LD_CC="${CC} -b -o"
48418             SHARED_LD_CXX="${CXX} -b -o"
48419             PIC_FLAG="+Z"
48420         fi
48421       ;;
48422
48423       *-*-linux* )
48424                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48425             PIC_FLAG="-KPIC"
48426         elif test "x$SUNCXX" = "xyes"; then
48427             SHARED_LD_CC="${CC} -G -o"
48428             SHARED_LD_CXX="${CXX} -G -o"
48429             PIC_FLAG="-KPIC"
48430         fi
48431       ;;
48432
48433       *-*-solaris2* )
48434         if test "x$SUNCXX" = xyes ; then
48435             SHARED_LD_CC="${CC} -G -o"
48436             SHARED_LD_CXX="${CXX} -G -o"
48437             PIC_FLAG="-KPIC"
48438         fi
48439       ;;
48440
48441       *-*-darwin* )
48442
48443 D='$'
48444 cat <<EOF >shared-ld-sh
48445 #!/bin/sh
48446 #-----------------------------------------------------------------------------
48447 #-- Name:        distrib/mac/shared-ld-sh
48448 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48449 #-- Author:      Gilles Depeyrot
48450 #-- Copyright:   (c) 2002 Gilles Depeyrot
48451 #-- Licence:     any use permitted
48452 #-----------------------------------------------------------------------------
48453
48454 verbose=0
48455 args=""
48456 objects=""
48457 linking_flag="-dynamiclib"
48458 ldargs="-r -keep_private_externs -nostdlib"
48459
48460 if test "x${D}CXX" = "x"; then
48461     CXX="c++"
48462 fi
48463
48464 while test ${D}# -gt 0; do
48465     case ${D}1 in
48466
48467        -v)
48468         verbose=1
48469         ;;
48470
48471        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48472         # collect these options and values
48473         args="${D}{args} ${D}1 ${D}2"
48474         shift
48475         ;;
48476
48477        -arch|-isysroot)
48478         # collect these options and values
48479         ldargs="${D}{ldargs} ${D}1 ${D}2"
48480         shift
48481         ;;
48482
48483        -s|-Wl,*)
48484         # collect these load args
48485         ldargs="${D}{ldargs} ${D}1"
48486         ;;
48487
48488        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48489         # collect these options
48490         args="${D}{args} ${D}1"
48491         ;;
48492
48493        -dynamiclib|-bundle)
48494         linking_flag="${D}1"
48495         ;;
48496
48497        -*)
48498         echo "shared-ld: unhandled option '${D}1'"
48499         exit 1
48500         ;;
48501
48502         *.o | *.a | *.dylib)
48503         # collect object files
48504         objects="${D}{objects} ${D}1"
48505         ;;
48506
48507         *)
48508         echo "shared-ld: unhandled argument '${D}1'"
48509         exit 1
48510         ;;
48511
48512     esac
48513     shift
48514 done
48515
48516 status=0
48517
48518 #
48519 # Link one module containing all the others
48520 #
48521 if test ${D}{verbose} = 1; then
48522     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48523 fi
48524 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48525 status=${D}?
48526
48527 #
48528 # Link the shared library from the single module created, but only if the
48529 # previous command didn't fail:
48530 #
48531 if test ${D}{status} = 0; then
48532     if test ${D}{verbose} = 1; then
48533         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48534     fi
48535     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48536     status=${D}?
48537 fi
48538
48539 #
48540 # Remove intermediate module
48541 #
48542 rm -f master.${D}${D}.o
48543
48544 exit ${D}status
48545 EOF
48546
48547         chmod +x shared-ld-sh
48548
48549         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48550         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48551
48552
48553                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48554 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48555 if test "${bakefile_cv_gcc31+set}" = set; then
48556   echo $ECHO_N "(cached) $ECHO_C" >&6
48557 else
48558
48559            cat >conftest.$ac_ext <<_ACEOF
48560 /* confdefs.h.  */
48561 _ACEOF
48562 cat confdefs.h >>conftest.$ac_ext
48563 cat >>conftest.$ac_ext <<_ACEOF
48564 /* end confdefs.h.  */
48565
48566 int
48567 main ()
48568 {
48569
48570                    #if (__GNUC__ < 3) || \
48571                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48572                        This is old gcc
48573                    #endif
48574
48575   ;
48576   return 0;
48577 }
48578 _ACEOF
48579 rm -f conftest.$ac_objext
48580 if { (ac_try="$ac_compile"
48581 case "(($ac_try" in
48582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48583   *) ac_try_echo=$ac_try;;
48584 esac
48585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48586   (eval "$ac_compile") 2>conftest.er1
48587   ac_status=$?
48588   grep -v '^ *+' conftest.er1 >conftest.err
48589   rm -f conftest.er1
48590   cat conftest.err >&5
48591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592   (exit $ac_status); } && {
48593          test -z "$ac_c_werror_flag" ||
48594          test ! -s conftest.err
48595        } && test -s conftest.$ac_objext; then
48596
48597                    bakefile_cv_gcc31=yes
48598
48599 else
48600   echo "$as_me: failed program was:" >&5
48601 sed 's/^/| /' conftest.$ac_ext >&5
48602
48603
48604                    bakefile_cv_gcc31=no
48605
48606
48607 fi
48608
48609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48610
48611 fi
48612 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48613 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48614         if test "$bakefile_cv_gcc31" = "no"; then
48615                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48616             SHARED_LD_CXX="$SHARED_LD_CC"
48617         else
48618                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48619             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48620         fi
48621
48622         if test "x$GCC" == "xyes"; then
48623             PIC_FLAG="-dynamic -fPIC"
48624         fi
48625         if test "x$XLCC" = "xyes"; then
48626             PIC_FLAG="-dynamic -DPIC"
48627         fi
48628       ;;
48629
48630       *-*-aix* )
48631         if test "x$GCC" = "xyes"; then
48632                                                             PIC_FLAG=""
48633
48634                                                                                     case "${BAKEFILE_HOST}" in
48635                 *-*-aix5* )
48636                     LD_EXPFULL="-Wl,-bexpfull"
48637                     ;;
48638             esac
48639
48640             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48641             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48642         else
48643                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48644 set dummy makeC++SharedLib; ac_word=$2
48645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48647 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48648   echo $ECHO_N "(cached) $ECHO_C" >&6
48649 else
48650   if test -n "$AIX_CXX_LD"; then
48651   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48652 else
48653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48654 for as_dir in $PATH
48655 do
48656   IFS=$as_save_IFS
48657   test -z "$as_dir" && as_dir=.
48658   for ac_exec_ext in '' $ac_executable_extensions; do
48659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48660     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48662     break 2
48663   fi
48664 done
48665 done
48666 IFS=$as_save_IFS
48667
48668   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48669 fi
48670 fi
48671 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48672 if test -n "$AIX_CXX_LD"; then
48673   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48674 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48675 else
48676   { echo "$as_me:$LINENO: result: no" >&5
48677 echo "${ECHO_T}no" >&6; }
48678 fi
48679
48680
48681             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48682             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48683         fi
48684       ;;
48685
48686       *-*-beos* )
48687                         SHARED_LD_CC="${LD} -nostart -o"
48688         SHARED_LD_CXX="${LD} -nostart -o"
48689       ;;
48690
48691       *-*-irix* )
48692                 if test "x$GCC" != "xyes"; then
48693             PIC_FLAG="-KPIC"
48694         fi
48695       ;;
48696
48697       *-*-cygwin* | *-*-mingw32* )
48698         PIC_FLAG=""
48699         SHARED_LD_CC="\$(CC) -shared -o"
48700         SHARED_LD_CXX="\$(CXX) -shared -o"
48701         WINDOWS_IMPLIB=1
48702       ;;
48703
48704       *-pc-os2_emx | *-pc-os2-emx )
48705         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48706         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48707         PIC_FLAG=""
48708
48709 D='$'
48710 cat <<EOF >dllar.sh
48711 #!/bin/sh
48712 #
48713 # dllar - a tool to build both a .dll and an .a file
48714 # from a set of object (.o) files for EMX/OS2.
48715 #
48716 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48717 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48718 #
48719 #  This script will accept a set of files on the command line.
48720 #  All the public symbols from the .o files will be exported into
48721 #  a .DEF file, then linker will be run (through gcc) against them to
48722 #  build a shared library consisting of all given .o files. All libraries
48723 #  (.a) will be first decompressed into component .o files then act as
48724 #  described above. You can optionally give a description (-d "description")
48725 #  which will be put into .DLL. To see the list of accepted options (as well
48726 #  as command-line format) simply run this program without options. The .DLL
48727 #  is built to be imported by name (there is no guarantee that new versions
48728 #  of the library you build will have same ordinals for same symbols).
48729 #
48730 #  dllar is free software; you can redistribute it and/or modify
48731 #  it under the terms of the GNU General Public License as published by
48732 #  the Free Software Foundation; either version 2, or (at your option)
48733 #  any later version.
48734 #
48735 #  dllar is distributed in the hope that it will be useful,
48736 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48737 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48738 #  GNU General Public License for more details.
48739 #
48740 #  You should have received a copy of the GNU General Public License
48741 #  along with dllar; see the file COPYING.  If not, write to the Free
48742 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48743 #  02111-1307, USA.
48744
48745 # To successfuly run this program you will need:
48746 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48747 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48748 #  - gcc
48749 #    (used to build the .dll)
48750 #  - emxexp
48751 #    (used to create .def file from .o files)
48752 #  - emximp
48753 #    (used to create .a file from .def file)
48754 #  - GNU text utilites (cat, sort, uniq)
48755 #    used to process emxexp output
48756 #  - GNU file utilities (mv, rm)
48757 #  - GNU sed
48758 #  - lxlite (optional, see flag below)
48759 #    (used for general .dll cleanup)
48760 #
48761
48762 flag_USE_LXLITE=1;
48763
48764 #
48765 # helper functions
48766 # basnam, variant of basename, which does _not_ remove the path, _iff_
48767 #                              second argument (suffix to remove) is given
48768 basnam(){
48769     case ${D}# in
48770     1)
48771         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48772         ;;
48773     2)
48774         echo ${D}1 | sed 's/'${D}2'${D}//'
48775         ;;
48776     *)
48777         echo "error in basnam ${D}*"
48778         exit 8
48779         ;;
48780     esac
48781 }
48782
48783 # Cleanup temporary files and output
48784 CleanUp() {
48785     cd ${D}curDir
48786     for i in ${D}inputFiles ; do
48787         case ${D}i in
48788         *!)
48789             rm -rf \`basnam ${D}i !\`
48790             ;;
48791         *)
48792             ;;
48793         esac
48794     done
48795
48796     # Kill result in case of failure as there is just to many stupid make/nmake
48797     # things out there which doesn't do this.
48798     if [ ${D}# -eq 0 ]; then
48799         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48800     fi
48801 }
48802
48803 # Print usage and exit script with rc=1.
48804 PrintHelp() {
48805  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48806  echo '       [-name-mangler-script script.sh]'
48807  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48808  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48809  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48810  echo '       [*.o] [*.a]'
48811  echo '*> "output_file" should have no extension.'
48812  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48813  echo '   The import library name is derived from this and is set to "name".a,'
48814  echo '   unless overridden by -import'
48815  echo '*> "importlib_name" should have no extension.'
48816  echo '   If it has the .o, or .a extension, it is automatically removed.'
48817  echo '   This name is used as the import library name and may be longer and'
48818  echo '   more descriptive than the DLL name which has to follow the old '
48819  echo '   8.3 convention of FAT.'
48820  echo '*> "script.sh may be given to override the output_file name by a'
48821  echo '   different name. It is mainly useful if the regular make process'
48822  echo '   of some package does not take into account OS/2 restriction of'
48823  echo '   DLL name lengths. It takes the importlib name as input and is'
48824  echo '   supposed to procude a shorter name as output. The script should'
48825  echo '   expect to get importlib_name without extension and should produce'
48826  echo '   a (max.) 8 letter name without extension.'
48827  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48828  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48829  echo '   These flags will be put at the start of GCC command line.'
48830  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48831  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48832  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48833  echo '   If the last character of a symbol is "*", all symbols beginning'
48834  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48835  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48836  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48837  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48838  echo '   C runtime DLLs.'
48839  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48840  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48841  echo '   unchanged to GCC at the end of command line.'
48842  echo '*> If you create a DLL from a library and you do not specify -o,'
48843  echo '   the basename for DLL and import library will be set to library name,'
48844  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48845  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48846  echo '   library will be renamed into gcc_s.a.'
48847  echo '--------'
48848  echo 'Example:'
48849  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48850  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48851  CleanUp
48852  exit 1
48853 }
48854
48855 # Execute a command.
48856 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48857 # @Uses    Whatever CleanUp() uses.
48858 doCommand() {
48859     echo "${D}*"
48860     eval ${D}*
48861     rcCmd=${D}?
48862
48863     if [ ${D}rcCmd -ne 0 ]; then
48864         echo "command failed, exit code="${D}rcCmd
48865         CleanUp
48866         exit ${D}rcCmd
48867     fi
48868 }
48869
48870 # main routine
48871 # setup globals
48872 cmdLine=${D}*
48873 outFile=""
48874 outimpFile=""
48875 inputFiles=""
48876 renameScript=""
48877 description=""
48878 CC=gcc.exe
48879 CFLAGS="-s -Zcrtdll"
48880 EXTRA_CFLAGS=""
48881 EXPORT_BY_ORDINALS=0
48882 exclude_symbols=""
48883 library_flags=""
48884 curDir=\`pwd\`
48885 curDirS=curDir
48886 case ${D}curDirS in
48887 */)
48888   ;;
48889 *)
48890   curDirS=${D}{curDirS}"/"
48891   ;;
48892 esac
48893 # Parse commandline
48894 libsToLink=0
48895 omfLinking=0
48896 while [ ${D}1 ]; do
48897     case ${D}1 in
48898     -ord*)
48899         EXPORT_BY_ORDINALS=1;
48900         ;;
48901     -o*)
48902         shift
48903         outFile=${D}1
48904         ;;
48905     -i*)
48906         shift
48907         outimpFile=${D}1
48908         ;;
48909     -name-mangler-script)
48910         shift
48911         renameScript=${D}1
48912         ;;
48913     -d*)
48914         shift
48915         description=${D}1
48916         ;;
48917     -f*)
48918         shift
48919         CFLAGS=${D}1
48920         ;;
48921     -c*)
48922         shift
48923         CC=${D}1
48924         ;;
48925     -h*)
48926         PrintHelp
48927         ;;
48928     -ex*)
48929         shift
48930         exclude_symbols=${D}{exclude_symbols}${D}1" "
48931         ;;
48932     -libf*)
48933         shift
48934         library_flags=${D}{library_flags}${D}1" "
48935         ;;
48936     -nocrt*)
48937         CFLAGS="-s"
48938         ;;
48939     -nolxl*)
48940         flag_USE_LXLITE=0
48941         ;;
48942     -* | /*)
48943         case ${D}1 in
48944         -L* | -l*)
48945             libsToLink=1
48946             ;;
48947         -Zomf)
48948             omfLinking=1
48949             ;;
48950         *)
48951             ;;
48952         esac
48953         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48954         ;;
48955     *.dll)
48956         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48957         if [ ${D}omfLinking -eq 1 ]; then
48958             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48959         else
48960             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48961         fi
48962         ;;
48963     *)
48964         found=0;
48965         if [ ${D}libsToLink -ne 0 ]; then
48966             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48967         else
48968             for file in ${D}1 ; do
48969                 if [ -f ${D}file ]; then
48970                     inputFiles="${D}{inputFiles} ${D}file"
48971                     found=1
48972                 fi
48973             done
48974             if [ ${D}found -eq 0 ]; then
48975                 echo "ERROR: No file(s) found: "${D}1
48976                 exit 8
48977             fi
48978         fi
48979       ;;
48980     esac
48981     shift
48982 done # iterate cmdline words
48983
48984 #
48985 if [ -z "${D}inputFiles" ]; then
48986     echo "dllar: no input files"
48987     PrintHelp
48988 fi
48989
48990 # Now extract all .o files from .a files
48991 newInputFiles=""
48992 for file in ${D}inputFiles ; do
48993     case ${D}file in
48994     *.a | *.lib)
48995         case ${D}file in
48996         *.a)
48997             suffix=".a"
48998             AR="ar"
48999             ;;
49000         *.lib)
49001             suffix=".lib"
49002             AR="emxomfar"
49003             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49004             ;;
49005         *)
49006             ;;
49007         esac
49008         dirname=\`basnam ${D}file ${D}suffix\`"_%"
49009         mkdir ${D}dirname
49010         if [ ${D}? -ne 0 ]; then
49011             echo "Failed to create subdirectory ./${D}dirname"
49012             CleanUp
49013             exit 8;
49014         fi
49015         # Append '!' to indicate archive
49016         newInputFiles="${D}newInputFiles ${D}{dirname}!"
49017         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49018         cd ${D}curDir
49019         found=0;
49020         for subfile in ${D}dirname/*.o* ; do
49021             if [ -f ${D}subfile ]; then
49022                 found=1
49023                 if [ -s ${D}subfile ]; then
49024                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49025                     newInputFiles="${D}newInputFiles ${D}subfile"
49026                 fi
49027             fi
49028         done
49029         if [ ${D}found -eq 0 ]; then
49030             echo "WARNING: there are no files in archive \\'${D}file\\'"
49031         fi
49032         ;;
49033     *)
49034         newInputFiles="${D}{newInputFiles} ${D}file"
49035         ;;
49036     esac
49037 done
49038 inputFiles="${D}newInputFiles"
49039
49040 # Output filename(s).
49041 do_backup=0;
49042 if [ -z ${D}outFile ]; then
49043     do_backup=1;
49044     set outFile ${D}inputFiles; outFile=${D}2
49045 fi
49046
49047 # If it is an archive, remove the '!' and the '_%' suffixes
49048 case ${D}outFile in
49049 *_%!)
49050     outFile=\`basnam ${D}outFile _%!\`
49051     ;;
49052 *)
49053     ;;
49054 esac
49055 case ${D}outFile in
49056 *.dll)
49057     outFile=\`basnam ${D}outFile .dll\`
49058     ;;
49059 *.DLL)
49060     outFile=\`basnam ${D}outFile .DLL\`
49061     ;;
49062 *.o)
49063     outFile=\`basnam ${D}outFile .o\`
49064     ;;
49065 *.obj)
49066     outFile=\`basnam ${D}outFile .obj\`
49067     ;;
49068 *.a)
49069     outFile=\`basnam ${D}outFile .a\`
49070     ;;
49071 *.lib)
49072     outFile=\`basnam ${D}outFile .lib\`
49073     ;;
49074 *)
49075     ;;
49076 esac
49077 case ${D}outimpFile in
49078 *.a)
49079     outimpFile=\`basnam ${D}outimpFile .a\`
49080     ;;
49081 *.lib)
49082     outimpFile=\`basnam ${D}outimpFile .lib\`
49083     ;;
49084 *)
49085     ;;
49086 esac
49087 if [ -z ${D}outimpFile ]; then
49088     outimpFile=${D}outFile
49089 fi
49090 defFile="${D}{outFile}.def"
49091 arcFile="${D}{outimpFile}.a"
49092 arcFile2="${D}{outimpFile}.lib"
49093
49094 #create ${D}dllFile as something matching 8.3 restrictions,
49095 if [ -z ${D}renameScript ] ; then
49096     dllFile="${D}outFile"
49097 else
49098     dllFile=\`${D}renameScript ${D}outimpFile\`
49099 fi
49100
49101 if [ ${D}do_backup -ne 0 ] ; then
49102     if [ -f ${D}arcFile ] ; then
49103         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49104     fi
49105     if [ -f ${D}arcFile2 ] ; then
49106         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49107     fi
49108 fi
49109
49110 # Extract public symbols from all the object files.
49111 tmpdefFile=${D}{defFile}_%
49112 rm -f ${D}tmpdefFile
49113 for file in ${D}inputFiles ; do
49114     case ${D}file in
49115     *!)
49116         ;;
49117     *)
49118         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49119         ;;
49120     esac
49121 done
49122
49123 # Create the def file.
49124 rm -f ${D}defFile
49125 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49126 dllFile="${D}{dllFile}.dll"
49127 if [ ! -z ${D}description ]; then
49128     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49129 fi
49130 echo "EXPORTS" >> ${D}defFile
49131
49132 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49133 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49134
49135 # Checks if the export is ok or not.
49136 for word in ${D}exclude_symbols; do
49137     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49138     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49139 done
49140
49141
49142 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49143     sed "=" < ${D}tmpdefFile | \\
49144     sed '
49145       N
49146       : loop
49147       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49148       t loop
49149     ' > ${D}{tmpdefFile}%
49150     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49151 else
49152     rm -f ${D}{tmpdefFile}%
49153 fi
49154 cat ${D}tmpdefFile >> ${D}defFile
49155 rm -f ${D}tmpdefFile
49156
49157 # Do linking, create implib, and apply lxlite.
49158 gccCmdl="";
49159 for file in ${D}inputFiles ; do
49160     case ${D}file in
49161     *!)
49162         ;;
49163     *)
49164         gccCmdl="${D}gccCmdl ${D}file"
49165         ;;
49166     esac
49167 done
49168 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49169 touch "${D}{outFile}.dll"
49170
49171 doCommand "emximp -o ${D}arcFile ${D}defFile"
49172 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49173     add_flags="";
49174     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49175         add_flags="-ynd"
49176     fi
49177     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49178 fi
49179 doCommand "emxomf -s -l ${D}arcFile"
49180
49181 # Successful exit.
49182 CleanUp 1
49183 exit 0
49184 EOF
49185
49186         chmod +x dllar.sh
49187       ;;
49188
49189       powerpc-apple-macos* | \
49190       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49191       *-*-mirbsd* | \
49192       *-*-sunos4* | \
49193       *-*-osf* | \
49194       *-*-dgux5* | \
49195       *-*-sysv5* | \
49196       *-pc-msdosdjgpp )
49197               ;;
49198
49199       *)
49200         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49201 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49202    { (exit 1); exit 1; }; }
49203     esac
49204
49205     if test "x$PIC_FLAG" != "x" ; then
49206         PIC_FLAG="$PIC_FLAG -DPIC"
49207     fi
49208
49209     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49210         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49211     fi
49212     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49213         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49214     fi
49215
49216
49217
49218
49219
49220
49221
49222
49223
49224     USE_SOVERSION=0
49225     USE_SOVERLINUX=0
49226     USE_SOVERSOLARIS=0
49227     USE_SOVERCYGWIN=0
49228     USE_SOSYMLINKS=0
49229     USE_MACVERSION=0
49230     SONAME_FLAG=
49231
49232     case "${BAKEFILE_HOST}" in
49233       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49234       *-*-k*bsd*-gnu | *-*-mirbsd* )
49235         if test "x$SUNCXX" = "xyes"; then
49236             SONAME_FLAG="-h "
49237         else
49238             SONAME_FLAG="-Wl,-soname,"
49239         fi
49240         USE_SOVERSION=1
49241         USE_SOVERLINUX=1
49242         USE_SOSYMLINKS=1
49243       ;;
49244
49245       *-*-solaris2* )
49246         SONAME_FLAG="-h "
49247         USE_SOVERSION=1
49248         USE_SOVERSOLARIS=1
49249         USE_SOSYMLINKS=1
49250       ;;
49251
49252       *-*-darwin* )
49253         USE_MACVERSION=1
49254         USE_SOVERSION=1
49255         USE_SOSYMLINKS=1
49256       ;;
49257
49258       *-*-cygwin* )
49259         USE_SOVERSION=1
49260         USE_SOVERCYGWIN=1
49261       ;;
49262     esac
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273     # Check whether --enable-dependency-tracking was given.
49274 if test "${enable_dependency_tracking+set}" = set; then
49275   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49276 fi
49277
49278
49279     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49280 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49281
49282     BK_DEPS=""
49283     if test "x$bk_use_trackdeps" = "xno" ; then
49284         DEPS_TRACKING=0
49285         { echo "$as_me:$LINENO: result: disabled" >&5
49286 echo "${ECHO_T}disabled" >&6; }
49287     else
49288         DEPS_TRACKING=1
49289
49290         if test "x$GCC" = "xyes"; then
49291             DEPSMODE=gcc
49292             case "${BAKEFILE_HOST}" in
49293                 *-*-darwin* )
49294                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49295                 ;;
49296                 * )
49297                     DEPSFLAG="-MMD"
49298                 ;;
49299             esac
49300             { echo "$as_me:$LINENO: result: gcc" >&5
49301 echo "${ECHO_T}gcc" >&6; }
49302         elif test "x$MWCC" = "xyes"; then
49303             DEPSMODE=mwcc
49304             DEPSFLAG="-MM"
49305             { echo "$as_me:$LINENO: result: mwcc" >&5
49306 echo "${ECHO_T}mwcc" >&6; }
49307         elif test "x$SUNCC" = "xyes"; then
49308             DEPSMODE=unixcc
49309             DEPSFLAG="-xM1"
49310             { echo "$as_me:$LINENO: result: Sun cc" >&5
49311 echo "${ECHO_T}Sun cc" >&6; }
49312         elif test "x$SGICC" = "xyes"; then
49313             DEPSMODE=unixcc
49314             DEPSFLAG="-M"
49315             { echo "$as_me:$LINENO: result: SGI cc" >&5
49316 echo "${ECHO_T}SGI cc" >&6; }
49317         elif test "x$HPCC" = "xyes"; then
49318             DEPSMODE=unixcc
49319             DEPSFLAG="+make"
49320             { echo "$as_me:$LINENO: result: HP cc" >&5
49321 echo "${ECHO_T}HP cc" >&6; }
49322         elif test "x$COMPAQCC" = "xyes"; then
49323             DEPSMODE=gcc
49324             DEPSFLAG="-MD"
49325             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49326 echo "${ECHO_T}Compaq cc" >&6; }
49327         else
49328             DEPS_TRACKING=0
49329             { echo "$as_me:$LINENO: result: none" >&5
49330 echo "${ECHO_T}none" >&6; }
49331         fi
49332
49333         if test $DEPS_TRACKING = 1 ; then
49334
49335 D='$'
49336 cat <<EOF >bk-deps
49337 #!/bin/sh
49338
49339 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49340 # script. It is used to track C/C++ files dependencies in portable way.
49341 #
49342 # Permission is given to use this file in any way.
49343
49344 DEPSMODE=${DEPSMODE}
49345 DEPSFLAG="${DEPSFLAG}"
49346 DEPSDIRBASE=.deps
49347
49348 if test ${D}DEPSMODE = gcc ; then
49349     ${D}* ${D}{DEPSFLAG}
49350     status=${D}?
49351
49352     # determine location of created files:
49353     while test ${D}# -gt 0; do
49354         case "${D}1" in
49355             -o )
49356                 shift
49357                 objfile=${D}1
49358             ;;
49359             -* )
49360             ;;
49361             * )
49362                 srcfile=${D}1
49363             ;;
49364         esac
49365         shift
49366     done
49367     objfilebase=\`basename ${D}objfile\`
49368     builddir=\`dirname ${D}objfile\`
49369     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49370     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49371     depsdir=${D}builddir/${D}DEPSDIRBASE
49372     mkdir -p ${D}depsdir
49373
49374     # if the compiler failed, we're done:
49375     if test ${D}{status} != 0 ; then
49376         rm -f ${D}depfile
49377         exit ${D}{status}
49378     fi
49379
49380     # move created file to the location we want it in:
49381     if test -f ${D}depfile ; then
49382         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49383         rm -f ${D}depfile
49384     else
49385         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49386         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49387         if test ! -f ${D}depfile ; then
49388             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49389             depfile="${D}objfile.d"
49390         fi
49391         if test -f ${D}depfile ; then
49392             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49393             rm -f ${D}depfile
49394         fi
49395     fi
49396     exit 0
49397
49398 elif test ${D}DEPSMODE = mwcc ; then
49399     ${D}* || exit ${D}?
49400     # Run mwcc again with -MM and redirect into the dep file we want
49401     # NOTE: We can't use shift here because we need ${D}* to be valid
49402     prevarg=
49403     for arg in ${D}* ; do
49404         if test "${D}prevarg" = "-o"; then
49405             objfile=${D}arg
49406         else
49407             case "${D}arg" in
49408                 -* )
49409                 ;;
49410                 * )
49411                     srcfile=${D}arg
49412                 ;;
49413             esac
49414         fi
49415         prevarg="${D}arg"
49416     done
49417
49418     objfilebase=\`basename ${D}objfile\`
49419     builddir=\`dirname ${D}objfile\`
49420     depsdir=${D}builddir/${D}DEPSDIRBASE
49421     mkdir -p ${D}depsdir
49422
49423     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49424     exit 0
49425
49426 elif test ${D}DEPSMODE = unixcc; then
49427     ${D}* || exit ${D}?
49428     # Run compiler again with deps flag and redirect into the dep file.
49429     # It doesn't work if the '-o FILE' option is used, but without it the
49430     # dependency file will contain the wrong name for the object. So it is
49431     # removed from the command line, and the dep file is fixed with sed.
49432     cmd=""
49433     while test ${D}# -gt 0; do
49434         case "${D}1" in
49435             -o )
49436                 shift
49437                 objfile=${D}1
49438             ;;
49439             * )
49440                 eval arg${D}#=\\${D}1
49441                 cmd="${D}cmd \\${D}arg${D}#"
49442             ;;
49443         esac
49444         shift
49445     done
49446
49447     objfilebase=\`basename ${D}objfile\`
49448     builddir=\`dirname ${D}objfile\`
49449     depsdir=${D}builddir/${D}DEPSDIRBASE
49450     mkdir -p ${D}depsdir
49451
49452     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49453     exit 0
49454
49455 else
49456     ${D}*
49457     exit ${D}?
49458 fi
49459 EOF
49460
49461             chmod +x bk-deps
49462                                     BK_DEPS="`pwd`/bk-deps"
49463         fi
49464     fi
49465
49466
49467
49468
49469
49470     case ${BAKEFILE_HOST} in
49471         *-*-cygwin* | *-*-mingw32* )
49472                         if test -n "$ac_tool_prefix"; then
49473   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49474 set dummy ${ac_tool_prefix}windres; ac_word=$2
49475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49477 if test "${ac_cv_prog_WINDRES+set}" = set; then
49478   echo $ECHO_N "(cached) $ECHO_C" >&6
49479 else
49480   if test -n "$WINDRES"; then
49481   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49482 else
49483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49484 for as_dir in $PATH
49485 do
49486   IFS=$as_save_IFS
49487   test -z "$as_dir" && as_dir=.
49488   for ac_exec_ext in '' $ac_executable_extensions; do
49489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49490     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49492     break 2
49493   fi
49494 done
49495 done
49496 IFS=$as_save_IFS
49497
49498 fi
49499 fi
49500 WINDRES=$ac_cv_prog_WINDRES
49501 if test -n "$WINDRES"; then
49502   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49503 echo "${ECHO_T}$WINDRES" >&6; }
49504 else
49505   { echo "$as_me:$LINENO: result: no" >&5
49506 echo "${ECHO_T}no" >&6; }
49507 fi
49508
49509
49510 fi
49511 if test -z "$ac_cv_prog_WINDRES"; then
49512   ac_ct_WINDRES=$WINDRES
49513   # Extract the first word of "windres", so it can be a program name with args.
49514 set dummy windres; ac_word=$2
49515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49517 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49518   echo $ECHO_N "(cached) $ECHO_C" >&6
49519 else
49520   if test -n "$ac_ct_WINDRES"; then
49521   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49522 else
49523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49524 for as_dir in $PATH
49525 do
49526   IFS=$as_save_IFS
49527   test -z "$as_dir" && as_dir=.
49528   for ac_exec_ext in '' $ac_executable_extensions; do
49529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49530     ac_cv_prog_ac_ct_WINDRES="windres"
49531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49532     break 2
49533   fi
49534 done
49535 done
49536 IFS=$as_save_IFS
49537
49538 fi
49539 fi
49540 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49541 if test -n "$ac_ct_WINDRES"; then
49542   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49543 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49544 else
49545   { echo "$as_me:$LINENO: result: no" >&5
49546 echo "${ECHO_T}no" >&6; }
49547 fi
49548
49549   if test "x$ac_ct_WINDRES" = x; then
49550     WINDRES=""
49551   else
49552     case $cross_compiling:$ac_tool_warned in
49553 yes:)
49554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49555 whose name does not start with the host triplet.  If you think this
49556 configuration is useful to you, please write to autoconf@gnu.org." >&5
49557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49558 whose name does not start with the host triplet.  If you think this
49559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49560 ac_tool_warned=yes ;;
49561 esac
49562     WINDRES=$ac_ct_WINDRES
49563   fi
49564 else
49565   WINDRES="$ac_cv_prog_WINDRES"
49566 fi
49567
49568          ;;
49569
49570       *-*-darwin* | powerpc-apple-macos* )
49571             # Extract the first word of "Rez", so it can be a program name with args.
49572 set dummy Rez; ac_word=$2
49573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49575 if test "${ac_cv_prog_REZ+set}" = set; then
49576   echo $ECHO_N "(cached) $ECHO_C" >&6
49577 else
49578   if test -n "$REZ"; then
49579   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49580 else
49581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49582 for as_dir in $PATH
49583 do
49584   IFS=$as_save_IFS
49585   test -z "$as_dir" && as_dir=.
49586   for ac_exec_ext in '' $ac_executable_extensions; do
49587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49588     ac_cv_prog_REZ="Rez"
49589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49590     break 2
49591   fi
49592 done
49593 done
49594 IFS=$as_save_IFS
49595
49596   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49597 fi
49598 fi
49599 REZ=$ac_cv_prog_REZ
49600 if test -n "$REZ"; then
49601   { echo "$as_me:$LINENO: result: $REZ" >&5
49602 echo "${ECHO_T}$REZ" >&6; }
49603 else
49604   { echo "$as_me:$LINENO: result: no" >&5
49605 echo "${ECHO_T}no" >&6; }
49606 fi
49607
49608
49609             # Extract the first word of "SetFile", so it can be a program name with args.
49610 set dummy SetFile; ac_word=$2
49611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49613 if test "${ac_cv_prog_SETFILE+set}" = set; then
49614   echo $ECHO_N "(cached) $ECHO_C" >&6
49615 else
49616   if test -n "$SETFILE"; then
49617   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49618 else
49619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49620 for as_dir in $PATH
49621 do
49622   IFS=$as_save_IFS
49623   test -z "$as_dir" && as_dir=.
49624   for ac_exec_ext in '' $ac_executable_extensions; do
49625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49626     ac_cv_prog_SETFILE="SetFile"
49627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49628     break 2
49629   fi
49630 done
49631 done
49632 IFS=$as_save_IFS
49633
49634   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49635 fi
49636 fi
49637 SETFILE=$ac_cv_prog_SETFILE
49638 if test -n "$SETFILE"; then
49639   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49640 echo "${ECHO_T}$SETFILE" >&6; }
49641 else
49642   { echo "$as_me:$LINENO: result: no" >&5
49643 echo "${ECHO_T}no" >&6; }
49644 fi
49645
49646
49647         ;;
49648     esac
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658     BAKEFILE_BAKEFILE_M4_VERSION="0.2.6"
49659
49660
49661 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.6"
49662
49663
49664
49665     # Check whether --enable-precomp-headers was given.
49666 if test "${enable_precomp_headers+set}" = set; then
49667   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49668 fi
49669
49670
49671     GCC_PCH=0
49672     ICC_PCH=0
49673     USE_PCH=0
49674     BK_MAKE_PCH=""
49675
49676     case ${BAKEFILE_HOST} in
49677         *-*-cygwin* )
49678                                                 bk_use_pch="no"
49679             ;;
49680     esac
49681
49682     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49683         if test "x$GCC" = "xyes"; then
49684                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49685 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49686             cat >conftest.$ac_ext <<_ACEOF
49687 /* confdefs.h.  */
49688 _ACEOF
49689 cat confdefs.h >>conftest.$ac_ext
49690 cat >>conftest.$ac_ext <<_ACEOF
49691 /* end confdefs.h.  */
49692
49693 int
49694 main ()
49695 {
49696
49697                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49698                         There is no PCH support
49699                     #endif
49700                     #if (__GNUC__ < 3)
49701                         There is no PCH support
49702                     #endif
49703                     #if (__GNUC__ == 3) && \
49704                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49705                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49706                        ( defined(__INTEL_COMPILER) )
49707                         There is no PCH support
49708                     #endif
49709
49710   ;
49711   return 0;
49712 }
49713 _ACEOF
49714 rm -f conftest.$ac_objext
49715 if { (ac_try="$ac_compile"
49716 case "(($ac_try" in
49717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49718   *) ac_try_echo=$ac_try;;
49719 esac
49720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49721   (eval "$ac_compile") 2>conftest.er1
49722   ac_status=$?
49723   grep -v '^ *+' conftest.er1 >conftest.err
49724   rm -f conftest.er1
49725   cat conftest.err >&5
49726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49727   (exit $ac_status); } && {
49728          test -z "$ac_c_werror_flag" ||
49729          test ! -s conftest.err
49730        } && test -s conftest.$ac_objext; then
49731
49732                     { echo "$as_me:$LINENO: result: yes" >&5
49733 echo "${ECHO_T}yes" >&6; }
49734                     GCC_PCH=1
49735
49736 else
49737   echo "$as_me: failed program was:" >&5
49738 sed 's/^/| /' conftest.$ac_ext >&5
49739
49740
49741                     if test "$INTELCXX8" = "yes"; then
49742                         { echo "$as_me:$LINENO: result: yes" >&5
49743 echo "${ECHO_T}yes" >&6; }
49744                         ICC_PCH=1
49745                         if test "$INTELCXX10" = "yes"; then
49746                             ICC_PCH_CREATE_SWITCH="-pch-create"
49747                             ICC_PCH_USE_SWITCH="-pch-use"
49748                         else
49749                             ICC_PCH_CREATE_SWITCH="-create-pch"
49750                             ICC_PCH_USE_SWITCH="-use-pch"
49751                         fi
49752                     else
49753                         { echo "$as_me:$LINENO: result: no" >&5
49754 echo "${ECHO_T}no" >&6; }
49755                     fi
49756
49757 fi
49758
49759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49760             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49761                 USE_PCH=1
49762
49763 D='$'
49764 cat <<EOF >bk-make-pch
49765 #!/bin/sh
49766
49767 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49768 # script. It is used to generated precompiled headers.
49769 #
49770 # Permission is given to use this file in any way.
49771
49772 outfile="${D}{1}"
49773 header="${D}{2}"
49774 shift
49775 shift
49776
49777 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49778
49779 compiler=""
49780 headerfile=""
49781
49782 while test ${D}{#} -gt 0; do
49783     add_to_cmdline=1
49784     case "${D}{1}" in
49785         -I* )
49786             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49787             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49788                 headerfile="${D}{incdir}/${D}{header}"
49789             fi
49790         ;;
49791         -use-pch|-use_pch|-pch-use )
49792             shift
49793             add_to_cmdline=0
49794         ;;
49795     esac
49796     if test ${D}add_to_cmdline = 1 ; then
49797         compiler="${D}{compiler} ${D}{1}"
49798     fi
49799     shift
49800 done
49801
49802 if test "x${D}{headerfile}" = "x" ; then
49803     echo "error: can't find header ${D}{header} in include paths" >&2
49804 else
49805     if test -f ${D}{outfile} ; then
49806         rm -f ${D}{outfile}
49807     else
49808         mkdir -p \`dirname ${D}{outfile}\`
49809     fi
49810     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49811     mkdir -p ${D}{builddir}/.deps
49812     if test "x${GCC_PCH}" = "x1" ; then
49813         # can do this because gcc is >= 3.4:
49814         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49815     elif test "x${ICC_PCH}" = "x1" ; then
49816         filename=pch_gen-${D}${D}
49817         file=${D}{filename}.c
49818         dfile=${D}{filename}.d
49819         cat > ${D}file <<EOT
49820 #include "${D}header"
49821 EOT
49822         # using -MF icc complains about differing command lines in creation/use
49823         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49824           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49825           rm -f ${D}file ${D}dfile ${D}{filename}.o
49826     fi
49827     exit ${D}{?}
49828 fi
49829 EOF
49830
49831                 chmod +x bk-make-pch
49832                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49833             fi
49834         fi
49835     fi
49836
49837
49838
49839
49840
49841
49842
49843     COND_BUILD_DEBUG="#"
49844     if test "x$BUILD" = "xdebug" ; then
49845         COND_BUILD_DEBUG=""
49846     fi
49847
49848     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49849     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49850         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49851     fi
49852
49853     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49854     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49855         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49856     fi
49857
49858     COND_BUILD_DEBUG_UNICODE_0="#"
49859     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49860         COND_BUILD_DEBUG_UNICODE_0=""
49861     fi
49862
49863     COND_BUILD_DEBUG_UNICODE_1="#"
49864     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49865         COND_BUILD_DEBUG_UNICODE_1=""
49866     fi
49867
49868     COND_BUILD_RELEASE="#"
49869     if test "x$BUILD" = "xrelease" ; then
49870         COND_BUILD_RELEASE=""
49871     fi
49872
49873     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49874     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49875         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49876     fi
49877
49878     COND_BUILD_RELEASE_UNICODE_0="#"
49879     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49880         COND_BUILD_RELEASE_UNICODE_0=""
49881     fi
49882
49883     COND_BUILD_RELEASE_UNICODE_1="#"
49884     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49885         COND_BUILD_RELEASE_UNICODE_1=""
49886     fi
49887
49888     COND_BUILD_debug="#"
49889     if test "x$BUILD" = "xdebug" ; then
49890         COND_BUILD_debug=""
49891     fi
49892
49893     COND_BUILD_debug_DEBUG_FLAG_default="#"
49894     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49895         COND_BUILD_debug_DEBUG_FLAG_default=""
49896     fi
49897
49898     COND_BUILD_debug_DEBUG_INFO_default="#"
49899     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49900         COND_BUILD_debug_DEBUG_INFO_default=""
49901     fi
49902
49903     COND_BUILD_debug_UNICODE_0="#"
49904     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49905         COND_BUILD_debug_UNICODE_0=""
49906     fi
49907
49908     COND_BUILD_debug_UNICODE_1="#"
49909     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49910         COND_BUILD_debug_UNICODE_1=""
49911     fi
49912
49913     COND_BUILD_release="#"
49914     if test "x$BUILD" = "xrelease" ; then
49915         COND_BUILD_release=""
49916     fi
49917
49918     COND_BUILD_release_DEBUG_INFO_default="#"
49919     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49920         COND_BUILD_release_DEBUG_INFO_default=""
49921     fi
49922
49923     COND_BUILD_release_UNICODE_0="#"
49924     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49925         COND_BUILD_release_UNICODE_0=""
49926     fi
49927
49928     COND_BUILD_release_UNICODE_1="#"
49929     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49930         COND_BUILD_release_UNICODE_1=""
49931     fi
49932
49933     COND_DEBUG_FLAG_0="#"
49934     if test "x$DEBUG_FLAG" = "x0" ; then
49935         COND_DEBUG_FLAG_0=""
49936     fi
49937
49938     COND_DEBUG_FLAG_1="#"
49939     if test "x$DEBUG_FLAG" = "x1" ; then
49940         COND_DEBUG_FLAG_1=""
49941     fi
49942
49943     COND_DEBUG_INFO_0="#"
49944     if test "x$DEBUG_INFO" = "x0" ; then
49945         COND_DEBUG_INFO_0=""
49946     fi
49947
49948     COND_DEBUG_INFO_1="#"
49949     if test "x$DEBUG_INFO" = "x1" ; then
49950         COND_DEBUG_INFO_1=""
49951     fi
49952
49953     COND_DEPS_TRACKING_0="#"
49954     if test "x$DEPS_TRACKING" = "x0" ; then
49955         COND_DEPS_TRACKING_0=""
49956     fi
49957
49958     COND_DEPS_TRACKING_1="#"
49959     if test "x$DEPS_TRACKING" = "x1" ; then
49960         COND_DEPS_TRACKING_1=""
49961     fi
49962
49963     COND_GCC_PCH_1="#"
49964     if test "x$GCC_PCH" = "x1" ; then
49965         COND_GCC_PCH_1=""
49966     fi
49967
49968     COND_ICC_PCH_1="#"
49969     if test "x$ICC_PCH" = "x1" ; then
49970         COND_ICC_PCH_1=""
49971     fi
49972
49973     COND_MONOLITHIC_0="#"
49974     if test "x$MONOLITHIC" = "x0" ; then
49975         COND_MONOLITHIC_0=""
49976     fi
49977
49978     COND_MONOLITHIC_0_SHARED_0="#"
49979     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49980         COND_MONOLITHIC_0_SHARED_0=""
49981     fi
49982
49983     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49984     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49985         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49986     fi
49987
49988     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49989     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49990         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49991     fi
49992
49993     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49994     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49995         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49996     fi
49997
49998     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49999     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50000         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50001     fi
50002
50003     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50004     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50005         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50006     fi
50007
50008     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
50009     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50010         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
50011     fi
50012
50013     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
50014     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50015         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
50016     fi
50017
50018     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50019     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50020         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50021     fi
50022
50023     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50024     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50025         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50026     fi
50027
50028     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50029     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50030         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50031     fi
50032
50033     COND_MONOLITHIC_0_SHARED_1="#"
50034     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50035         COND_MONOLITHIC_0_SHARED_1=""
50036     fi
50037
50038     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50039     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50040         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50041     fi
50042
50043     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50044     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50045         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50046     fi
50047
50048     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50049     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50050         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50051     fi
50052
50053     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50054     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50055         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50056     fi
50057
50058     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50059     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50060         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50061     fi
50062
50063     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
50064     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
50065         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
50066     fi
50067
50068     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
50069     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
50070         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
50071     fi
50072
50073     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50074     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50075         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50076     fi
50077
50078     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50079     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50080         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50081     fi
50082
50083     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50084     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50085         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50086     fi
50087
50088     COND_MONOLITHIC_0_USE_AUI_1="#"
50089     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50090         COND_MONOLITHIC_0_USE_AUI_1=""
50091     fi
50092
50093     COND_MONOLITHIC_0_USE_GUI_1="#"
50094     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50095         COND_MONOLITHIC_0_USE_GUI_1=""
50096     fi
50097
50098     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50099     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50100         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50101     fi
50102
50103     COND_MONOLITHIC_0_USE_HTML_1="#"
50104     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50105         COND_MONOLITHIC_0_USE_HTML_1=""
50106     fi
50107
50108     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50109     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50110         COND_MONOLITHIC_0_USE_MEDIA_1=""
50111     fi
50112
50113     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50114     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50115         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50116     fi
50117
50118     COND_MONOLITHIC_0_USE_QA_1="#"
50119     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50120         COND_MONOLITHIC_0_USE_QA_1=""
50121     fi
50122
50123     COND_MONOLITHIC_0_USE_RIBBON_1="#"
50124     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50125         COND_MONOLITHIC_0_USE_RIBBON_1=""
50126     fi
50127
50128     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50129     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50130         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50131     fi
50132
50133     COND_MONOLITHIC_0_USE_STC_1="#"
50134     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50135         COND_MONOLITHIC_0_USE_STC_1=""
50136     fi
50137
50138     COND_MONOLITHIC_0_USE_XRC_1="#"
50139     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50140         COND_MONOLITHIC_0_USE_XRC_1=""
50141     fi
50142
50143     COND_MONOLITHIC_1="#"
50144     if test "x$MONOLITHIC" = "x1" ; then
50145         COND_MONOLITHIC_1=""
50146     fi
50147
50148     COND_MONOLITHIC_1_SHARED_0="#"
50149     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50150         COND_MONOLITHIC_1_SHARED_0=""
50151     fi
50152
50153     COND_MONOLITHIC_1_SHARED_1="#"
50154     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50155         COND_MONOLITHIC_1_SHARED_1=""
50156     fi
50157
50158     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50159     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50160         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50161     fi
50162
50163     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50164     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50165         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50166     fi
50167
50168     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50169     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50170         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50171     fi
50172
50173     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50174     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50175         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50176     fi
50177
50178     COND_PLATFORM_MACOSX_1="#"
50179     if test "x$PLATFORM_MACOSX" = "x1" ; then
50180         COND_PLATFORM_MACOSX_1=""
50181     fi
50182
50183     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50184     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50185         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50186     fi
50187
50188     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50189     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50190         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50191     fi
50192
50193     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50194     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50195         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50196     fi
50197
50198     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50199     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50200         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50201     fi
50202
50203     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50204     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50205         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50206     fi
50207
50208     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50209     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50210         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50211     fi
50212
50213     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50214     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50215         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50216     fi
50217
50218     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50219     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50220         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50221     fi
50222
50223     COND_PLATFORM_MACOS_1="#"
50224     if test "x$PLATFORM_MACOS" = "x1" ; then
50225         COND_PLATFORM_MACOS_1=""
50226     fi
50227
50228     COND_PLATFORM_MAC_0="#"
50229     if test "x$PLATFORM_MAC" = "x0" ; then
50230         COND_PLATFORM_MAC_0=""
50231     fi
50232
50233     COND_PLATFORM_MAC_1="#"
50234     if test "x$PLATFORM_MAC" = "x1" ; then
50235         COND_PLATFORM_MAC_1=""
50236     fi
50237
50238     COND_PLATFORM_MSDOS_0="#"
50239     if test "x$PLATFORM_MSDOS" = "x0" ; then
50240         COND_PLATFORM_MSDOS_0=""
50241     fi
50242
50243     COND_PLATFORM_MSDOS_1="#"
50244     if test "x$PLATFORM_MSDOS" = "x1" ; then
50245         COND_PLATFORM_MSDOS_1=""
50246     fi
50247
50248     COND_PLATFORM_OS2_1="#"
50249     if test "x$PLATFORM_OS2" = "x1" ; then
50250         COND_PLATFORM_OS2_1=""
50251     fi
50252
50253     COND_PLATFORM_UNIX_0="#"
50254     if test "x$PLATFORM_UNIX" = "x0" ; then
50255         COND_PLATFORM_UNIX_0=""
50256     fi
50257
50258     COND_PLATFORM_UNIX_1="#"
50259     if test "x$PLATFORM_UNIX" = "x1" ; then
50260         COND_PLATFORM_UNIX_1=""
50261     fi
50262
50263     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50264     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50265         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50266     fi
50267
50268     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50269     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50270         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50271     fi
50272
50273     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50274     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50275         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50276     fi
50277
50278     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50279     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50280         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50281     fi
50282
50283     COND_PLATFORM_WIN32_0="#"
50284     if test "x$PLATFORM_WIN32" = "x0" ; then
50285         COND_PLATFORM_WIN32_0=""
50286     fi
50287
50288     COND_PLATFORM_WIN32_1="#"
50289     if test "x$PLATFORM_WIN32" = "x1" ; then
50290         COND_PLATFORM_WIN32_1=""
50291     fi
50292
50293     COND_SHARED_0="#"
50294     if test "x$SHARED" = "x0" ; then
50295         COND_SHARED_0=""
50296     fi
50297
50298     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50299     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50300         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50301     fi
50302
50303     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50304     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50305         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50306     fi
50307
50308     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50309     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50310         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50311     fi
50312
50313     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50314     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50315         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50316     fi
50317
50318     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50319     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50320         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50321     fi
50322
50323     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50324     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50325         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50326     fi
50327
50328     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50329     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50330         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50331     fi
50332
50333     COND_SHARED_0_USE_STC_1="#"
50334     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50335         COND_SHARED_0_USE_STC_1=""
50336     fi
50337
50338     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50339     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50340         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50341     fi
50342
50343     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50344     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50345         COND_SHARED_0_wxUSE_REGEX_builtin=""
50346     fi
50347
50348     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50349     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50350         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50351     fi
50352
50353     COND_SHARED_1="#"
50354     if test "x$SHARED" = "x1" ; then
50355         COND_SHARED_1=""
50356     fi
50357
50358     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50359     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50360         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50361     fi
50362
50363     COND_TOOLKIT_="#"
50364     if test "x$TOOLKIT" = "x" ; then
50365         COND_TOOLKIT_=""
50366     fi
50367
50368     COND_TOOLKIT_COCOA="#"
50369     if test "x$TOOLKIT" = "xCOCOA" ; then
50370         COND_TOOLKIT_COCOA=""
50371     fi
50372
50373     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50374     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50375         COND_TOOLKIT_COCOA_USE_GUI_1=""
50376     fi
50377
50378     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50379     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50380         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50381     fi
50382
50383     COND_TOOLKIT_DFB="#"
50384     if test "x$TOOLKIT" = "xDFB" ; then
50385         COND_TOOLKIT_DFB=""
50386     fi
50387
50388     COND_TOOLKIT_DFB_USE_GUI_1="#"
50389     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50390         COND_TOOLKIT_DFB_USE_GUI_1=""
50391     fi
50392
50393     COND_TOOLKIT_GTK="#"
50394     if test "x$TOOLKIT" = "xGTK" ; then
50395         COND_TOOLKIT_GTK=""
50396     fi
50397
50398     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50399     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50400         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50401     fi
50402
50403     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50404     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50405         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50406     fi
50407
50408     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50409     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50410         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50411     fi
50412
50413     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50414     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50415         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50416     fi
50417
50418     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50419     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50420         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50421     fi
50422
50423     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50424     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50425         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50426     fi
50427
50428     COND_TOOLKIT_GTK_USE_GUI_1="#"
50429     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50430         COND_TOOLKIT_GTK_USE_GUI_1=""
50431     fi
50432
50433     COND_TOOLKIT_MAC="#"
50434     if test "x$TOOLKIT" = "xMAC" ; then
50435         COND_TOOLKIT_MAC=""
50436     fi
50437
50438     COND_TOOLKIT_MGL="#"
50439     if test "x$TOOLKIT" = "xMGL" ; then
50440         COND_TOOLKIT_MGL=""
50441     fi
50442
50443     COND_TOOLKIT_MGL_USE_GUI_1="#"
50444     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50445         COND_TOOLKIT_MGL_USE_GUI_1=""
50446     fi
50447
50448     COND_TOOLKIT_MOTIF="#"
50449     if test "x$TOOLKIT" = "xMOTIF" ; then
50450         COND_TOOLKIT_MOTIF=""
50451     fi
50452
50453     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50454     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50455         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50456     fi
50457
50458     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50459     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50460         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50461     fi
50462
50463     COND_TOOLKIT_MSW="#"
50464     if test "x$TOOLKIT" = "xMSW" ; then
50465         COND_TOOLKIT_MSW=""
50466     fi
50467
50468     COND_TOOLKIT_MSW_USE_GUI_1="#"
50469     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50470         COND_TOOLKIT_MSW_USE_GUI_1=""
50471     fi
50472
50473     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50474     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50475         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50476     fi
50477
50478     COND_TOOLKIT_MSW_WXUNIV_0="#"
50479     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50480         COND_TOOLKIT_MSW_WXUNIV_0=""
50481     fi
50482
50483     COND_TOOLKIT_OSX_CARBON="#"
50484     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50485         COND_TOOLKIT_OSX_CARBON=""
50486     fi
50487
50488     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50489     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50490         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50491     fi
50492
50493     COND_TOOLKIT_OSX_COCOA="#"
50494     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50495         COND_TOOLKIT_OSX_COCOA=""
50496     fi
50497
50498     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50499     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50500         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50501     fi
50502
50503     COND_TOOLKIT_OSX_IPHONE="#"
50504     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50505         COND_TOOLKIT_OSX_IPHONE=""
50506     fi
50507
50508     COND_TOOLKIT_PM="#"
50509     if test "x$TOOLKIT" = "xPM" ; then
50510         COND_TOOLKIT_PM=""
50511     fi
50512
50513     COND_TOOLKIT_PM_USE_GUI_1="#"
50514     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50515         COND_TOOLKIT_PM_USE_GUI_1=""
50516     fi
50517
50518     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50519     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50520         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50521     fi
50522
50523     COND_TOOLKIT_WINCE="#"
50524     if test "x$TOOLKIT" = "xWINCE" ; then
50525         COND_TOOLKIT_WINCE=""
50526     fi
50527
50528     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50529     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50530         COND_TOOLKIT_WINCE_USE_GUI_1=""
50531     fi
50532
50533     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50534     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50535         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50536     fi
50537
50538     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50539     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50540         COND_TOOLKIT_WINCE_WXUNIV_0=""
50541     fi
50542
50543     COND_TOOLKIT_X11="#"
50544     if test "x$TOOLKIT" = "xX11" ; then
50545         COND_TOOLKIT_X11=""
50546     fi
50547
50548     COND_TOOLKIT_X11_USE_GUI_1="#"
50549     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50550         COND_TOOLKIT_X11_USE_GUI_1=""
50551     fi
50552
50553     COND_UNICODE_1="#"
50554     if test "x$UNICODE" = "x1" ; then
50555         COND_UNICODE_1=""
50556     fi
50557
50558     COND_USE_EXCEPTIONS_0="#"
50559     if test "x$USE_EXCEPTIONS" = "x0" ; then
50560         COND_USE_EXCEPTIONS_0=""
50561     fi
50562
50563     COND_USE_EXCEPTIONS_1="#"
50564     if test "x$USE_EXCEPTIONS" = "x1" ; then
50565         COND_USE_EXCEPTIONS_1=""
50566     fi
50567
50568     COND_USE_GUI_0="#"
50569     if test "x$USE_GUI" = "x0" ; then
50570         COND_USE_GUI_0=""
50571     fi
50572
50573     COND_USE_GUI_1="#"
50574     if test "x$USE_GUI" = "x1" ; then
50575         COND_USE_GUI_1=""
50576     fi
50577
50578     COND_USE_GUI_1_USE_OPENGL_1="#"
50579     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50580         COND_USE_GUI_1_USE_OPENGL_1=""
50581     fi
50582
50583     COND_USE_GUI_1_WXUNIV_0="#"
50584     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50585         COND_USE_GUI_1_WXUNIV_0=""
50586     fi
50587
50588     COND_USE_GUI_1_WXUNIV_1="#"
50589     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50590         COND_USE_GUI_1_WXUNIV_1=""
50591     fi
50592
50593     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50594     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50595         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50596     fi
50597
50598     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50599     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50600         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50601     fi
50602
50603     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50604     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50605         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50606     fi
50607
50608     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50609     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50610         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50611     fi
50612
50613     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50614     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50615         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50616     fi
50617
50618     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50619     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50620         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50621     fi
50622
50623     COND_USE_OPENGL_1="#"
50624     if test "x$USE_OPENGL" = "x1" ; then
50625         COND_USE_OPENGL_1=""
50626     fi
50627
50628     COND_USE_PCH_1="#"
50629     if test "x$USE_PCH" = "x1" ; then
50630         COND_USE_PCH_1=""
50631     fi
50632
50633     COND_USE_PLUGINS_0="#"
50634     if test "x$USE_PLUGINS" = "x0" ; then
50635         COND_USE_PLUGINS_0=""
50636     fi
50637
50638     COND_USE_RTTI_0="#"
50639     if test "x$USE_RTTI" = "x0" ; then
50640         COND_USE_RTTI_0=""
50641     fi
50642
50643     COND_USE_RTTI_1="#"
50644     if test "x$USE_RTTI" = "x1" ; then
50645         COND_USE_RTTI_1=""
50646     fi
50647
50648     COND_USE_SOSYMLINKS_1="#"
50649     if test "x$USE_SOSYMLINKS" = "x1" ; then
50650         COND_USE_SOSYMLINKS_1=""
50651     fi
50652
50653     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50654     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50655         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50656     fi
50657
50658     COND_USE_SOVERLINUX_1="#"
50659     if test "x$USE_SOVERLINUX" = "x1" ; then
50660         COND_USE_SOVERLINUX_1=""
50661     fi
50662
50663     COND_USE_SOVERSION_0="#"
50664     if test "x$USE_SOVERSION" = "x0" ; then
50665         COND_USE_SOVERSION_0=""
50666     fi
50667
50668     COND_USE_SOVERSOLARIS_1="#"
50669     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50670         COND_USE_SOVERSOLARIS_1=""
50671     fi
50672
50673     COND_USE_STC_1="#"
50674     if test "x$USE_STC" = "x1" ; then
50675         COND_USE_STC_1=""
50676     fi
50677
50678     COND_USE_THREADS_0="#"
50679     if test "x$USE_THREADS" = "x0" ; then
50680         COND_USE_THREADS_0=""
50681     fi
50682
50683     COND_USE_THREADS_1="#"
50684     if test "x$USE_THREADS" = "x1" ; then
50685         COND_USE_THREADS_1=""
50686     fi
50687
50688     COND_USE_XRC_1="#"
50689     if test "x$USE_XRC" = "x1" ; then
50690         COND_USE_XRC_1=""
50691     fi
50692
50693     COND_WINDOWS_IMPLIB_1="#"
50694     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50695         COND_WINDOWS_IMPLIB_1=""
50696     fi
50697
50698     COND_WITH_PLUGIN_SDL_1="#"
50699     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50700         COND_WITH_PLUGIN_SDL_1=""
50701     fi
50702
50703     COND_WXUNIV_0="#"
50704     if test "x$WXUNIV" = "x0" ; then
50705         COND_WXUNIV_0=""
50706     fi
50707
50708     COND_WXUNIV_1="#"
50709     if test "x$WXUNIV" = "x1" ; then
50710         COND_WXUNIV_1=""
50711     fi
50712
50713     COND_WXUSE_EXPAT_BUILTIN="#"
50714     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50715         COND_WXUSE_EXPAT_BUILTIN=""
50716     fi
50717
50718     COND_WXUSE_LIBJPEG_BUILTIN="#"
50719     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50720         COND_WXUSE_LIBJPEG_BUILTIN=""
50721     fi
50722
50723     COND_WXUSE_LIBPNG_BUILTIN="#"
50724     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50725         COND_WXUSE_LIBPNG_BUILTIN=""
50726     fi
50727
50728     COND_WXUSE_LIBTIFF_BUILTIN="#"
50729     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50730         COND_WXUSE_LIBTIFF_BUILTIN=""
50731     fi
50732
50733     COND_WXUSE_REGEX_BUILTIN="#"
50734     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50735         COND_WXUSE_REGEX_BUILTIN=""
50736     fi
50737
50738     COND_WXUSE_ZLIB_BUILTIN="#"
50739     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50740         COND_WXUSE_ZLIB_BUILTIN=""
50741     fi
50742
50743     COND_wxUSE_EXPAT_builtin="#"
50744     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50745         COND_wxUSE_EXPAT_builtin=""
50746     fi
50747
50748     COND_wxUSE_LIBJPEG_builtin="#"
50749     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50750         COND_wxUSE_LIBJPEG_builtin=""
50751     fi
50752
50753     COND_wxUSE_LIBPNG_builtin="#"
50754     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50755         COND_wxUSE_LIBPNG_builtin=""
50756     fi
50757
50758     COND_wxUSE_LIBTIFF_builtin="#"
50759     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50760         COND_wxUSE_LIBTIFF_builtin=""
50761     fi
50762
50763     COND_wxUSE_REGEX_builtin="#"
50764     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50765         COND_wxUSE_REGEX_builtin=""
50766     fi
50767
50768     COND_wxUSE_ZLIB_builtin="#"
50769     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50770         COND_wxUSE_ZLIB_builtin=""
50771     fi
50772
50773
50774
50775     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50776         { { 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
50777 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;}
50778    { (exit 1); exit 1; }; }
50779     fi
50780
50781     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50782         { { 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
50783 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;}
50784    { (exit 1); exit 1; }; }
50785     fi
50786
50787
50788 case ${INSTALL} in
50789   /* ) # Absolute
50790      ;;
50791   ?:* ) # Drive letter, considered as absolute.
50792      ;;
50793   *)
50794      INSTALL=`pwd`/${INSTALL} ;;
50795 esac
50796
50797 if test "$wxUSE_GUI" = "yes"; then
50798
50799 if test "$wxUSE_MSW" = 1 ; then
50800     if test "x$WINDRES" = "x"; then
50801         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50802 echo "$as_me: error: Required windres program not found" >&2;}
50803    { (exit 1); exit 1; }; }
50804     fi
50805
50806     RESCOMP="$WINDRES"
50807 fi
50808
50809 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50810             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50811     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50812
50813         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50814
50815     # Extract the first word of "DeRez", so it can be a program name with args.
50816 set dummy DeRez; ac_word=$2
50817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50819 if test "${ac_cv_prog_DEREZ+set}" = set; then
50820   echo $ECHO_N "(cached) $ECHO_C" >&6
50821 else
50822   if test -n "$DEREZ"; then
50823   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50824 else
50825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50826 for as_dir in $PATH
50827 do
50828   IFS=$as_save_IFS
50829   test -z "$as_dir" && as_dir=.
50830   for ac_exec_ext in '' $ac_executable_extensions; do
50831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50832     ac_cv_prog_DEREZ="DeRez"
50833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50834     break 2
50835   fi
50836 done
50837 done
50838 IFS=$as_save_IFS
50839
50840   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50841 fi
50842 fi
50843 DEREZ=$ac_cv_prog_DEREZ
50844 if test -n "$DEREZ"; then
50845   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50846 echo "${ECHO_T}$DEREZ" >&6; }
50847 else
50848   { echo "$as_me:$LINENO: result: no" >&5
50849 echo "${ECHO_T}no" >&6; }
50850 fi
50851
50852
50853
50854     MACSETFILE="\$(SETFILE)"
50855
50856             if test "$wxUSE_OSX_CARBON" = 1; then
50857         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50858         RESCOMP="$REZ"
50859         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50860     else
50861         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50862         RESCOMP="cat /dev/null \| $REZ"
50863         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50864     fi
50865
50866 else
50867         MACSETFILE="@true"
50868
50869     if test "$wxUSE_PM" = 1; then
50870         RESCOMP="emxbind"
50871         WXCONFIG_RESFLAGS="-ep"
50872
50873                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50874     else
50875         POSTLINK_COMMAND="@true"
50876     fi
50877 fi
50878
50879 fi
50880
50881
50882 if test $GCC_PCH = 1
50883 then
50884     if test "$wx_cv_gcc_pch_bug" = yes; then
50885         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50886 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50887         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50888 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50889         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50890 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50891     fi
50892
50893     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50894     # the headers that benefit from precompilation are mostly C++ headers.
50895     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50896     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50897     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50898 fi
50899
50900
50901 if test "$wxUSE_MAC" = 1 ; then
50902     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50903         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50904         mv temp bk-deps
50905         chmod +x bk-deps
50906     fi
50907 fi
50908
50909 if test "$wxUSE_SHARED" = "yes"; then
50910                 case "${host}" in
50911       *-pc-os2_emx | *-pc-os2-emx )
50912         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50913         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50914         cp -p ${srcdir}/src/os2/dllnames.sh .
50915         cp -p ${srcdir}/src/os2/dllar.sh .
50916       ;;
50917     esac
50918 fi
50919 if test "$wxUSE_OMF" = "yes"; then
50920     case "${host}" in
50921       *-pc-os2_emx | *-pc-os2-emx )
50922         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50923         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50924         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50925       ;;
50926     esac
50927 fi
50928
50929 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50930
50931
50932 case "${host}" in
50933     *-*-solaris2* )
50934                         if test "$GCC" = yes; then
50935             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50936             LIBS=`echo $LIBS | sed 's/-mt//'`
50937             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50938         fi
50939         ;;
50940
50941     *-*-linux* )
50942                         if test "x$SUNCXX" = xyes; then
50943             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50944             LIBS=`echo $LIBS | sed 's/-pthread//'`
50945             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50946         fi
50947         ;;
50948 esac
50949
50950 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50951 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50952 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50953 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50954
50955 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983
50984
50985
50986
50987
50988
50989
50990
50991
50992
50993
50994
50995
50996
50997
50998
50999
51000
51001
51002
51003
51004
51005
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
51017 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
51018 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
51019   echo $ECHO_N "(cached) $ECHO_C" >&6
51020 else
51021   cat >conftest.make <<\_ACEOF
51022 SHELL = /bin/sh
51023 all:
51024         @echo '@@@%%%=$(MAKE)=@@@%%%'
51025 _ACEOF
51026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
51027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
51028   *@@@%%%=?*=@@@%%%*)
51029     eval ac_cv_prog_make_${ac_make}_set=yes;;
51030   *)
51031     eval ac_cv_prog_make_${ac_make}_set=no;;
51032 esac
51033 rm -f conftest.make
51034 fi
51035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
51036   { echo "$as_me:$LINENO: result: yes" >&5
51037 echo "${ECHO_T}yes" >&6; }
51038   SET_MAKE=
51039 else
51040   { echo "$as_me:$LINENO: result: no" >&5
51041 echo "${ECHO_T}no" >&6; }
51042   SET_MAKE="MAKE=${MAKE-make}"
51043 fi
51044
51045
51046
51047 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
51048
51049
51050 if test "$USE_WIN32" = 1; then
51051     ac_config_commands="$ac_config_commands rcdefs.h"
51052
51053 fi
51054
51055 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
51056
51057
51058 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
51059
51060
51061 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
51062
51063
51064 if test "$wx_cv_version_script" = "yes"; then
51065     ac_config_files="$ac_config_files version-script"
51066
51067 fi
51068 ac_config_files="$ac_config_files Makefile"
51069
51070
51071 ac_config_commands="$ac_config_commands wx-config"
51072
51073
51074
51075 if test "$wxWITH_SUBDIRS" != "no"; then
51076 if test "$wxUSE_GUI" = "yes"; then
51077     SUBDIRS="samples demos utils"
51078 else
51079             SUBDIRS="samples utils"
51080 fi
51081
51082
51083
51084 # Check whether --with-cppunit-prefix was given.
51085 if test "${with_cppunit_prefix+set}" = set; then
51086   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
51087 else
51088   cppunit_config_prefix=""
51089 fi
51090
51091
51092 # Check whether --with-cppunit-exec-prefix was given.
51093 if test "${with_cppunit_exec_prefix+set}" = set; then
51094   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
51095 else
51096   cppunit_config_exec_prefix=""
51097 fi
51098
51099
51100   if test x$cppunit_config_exec_prefix != x ; then
51101      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51102      if test x${CPPUNIT_CONFIG+set} != xset ; then
51103         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51104      fi
51105   fi
51106   if test x$cppunit_config_prefix != x ; then
51107      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51108      if test x${CPPUNIT_CONFIG+set} != xset ; then
51109         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51110      fi
51111   fi
51112
51113   # Extract the first word of "cppunit-config", so it can be a program name with args.
51114 set dummy cppunit-config; ac_word=$2
51115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51117 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51118   echo $ECHO_N "(cached) $ECHO_C" >&6
51119 else
51120   case $CPPUNIT_CONFIG in
51121   [\\/]* | ?:[\\/]*)
51122   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51123   ;;
51124   *)
51125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51126 for as_dir in $PATH
51127 do
51128   IFS=$as_save_IFS
51129   test -z "$as_dir" && as_dir=.
51130   for ac_exec_ext in '' $ac_executable_extensions; do
51131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51132     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51134     break 2
51135   fi
51136 done
51137 done
51138 IFS=$as_save_IFS
51139
51140   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51141   ;;
51142 esac
51143 fi
51144 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51145 if test -n "$CPPUNIT_CONFIG"; then
51146   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51147 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51148 else
51149   { echo "$as_me:$LINENO: result: no" >&5
51150 echo "${ECHO_T}no" >&6; }
51151 fi
51152
51153
51154   cppunit_version_min=1.8.0
51155
51156   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51157 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51158   no_cppunit=""
51159   if test "$CPPUNIT_CONFIG" = "no" ; then
51160     { echo "$as_me:$LINENO: result: no" >&5
51161 echo "${ECHO_T}no" >&6; }
51162     no_cppunit=yes
51163   else
51164     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51165     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51166     cppunit_version=`$CPPUNIT_CONFIG --version`
51167
51168     cppunit_major_version=`echo $cppunit_version | \
51169            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51170     cppunit_minor_version=`echo $cppunit_version | \
51171            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51172     cppunit_micro_version=`echo $cppunit_version | \
51173            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51174
51175     cppunit_major_min=`echo $cppunit_version_min | \
51176            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51177     cppunit_minor_min=`echo $cppunit_version_min | \
51178            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51179     cppunit_micro_min=`echo $cppunit_version_min | \
51180            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51181
51182     cppunit_version_proper=`expr \
51183         $cppunit_major_version \> $cppunit_major_min \| \
51184         $cppunit_major_version \= $cppunit_major_min \& \
51185         $cppunit_minor_version \> $cppunit_minor_min \| \
51186         $cppunit_major_version \= $cppunit_major_min \& \
51187         $cppunit_minor_version \= $cppunit_minor_min \& \
51188         $cppunit_micro_version \>= $cppunit_micro_min `
51189
51190     if test "$cppunit_version_proper" = "1" ; then
51191       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51192 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51193     else
51194       { echo "$as_me:$LINENO: result: no" >&5
51195 echo "${ECHO_T}no" >&6; }
51196       no_cppunit=yes
51197     fi
51198   fi
51199
51200   if test "x$no_cppunit" = x ; then
51201      SUBDIRS="$SUBDIRS tests"
51202   else
51203      CPPUNIT_CFLAGS=""
51204      CPPUNIT_LIBS=""
51205      :
51206   fi
51207
51208
51209
51210
51211
51212 for subdir in $SUBDIRS; do
51213     if test -d ${srcdir}/${subdir} ; then
51214         if test "$wxUSE_GUI" = "yes"; then
51215             if test ${subdir} = "samples"; then
51216                                                 makefiles="samples/Makefile.in $makefiles"
51217                 for sample in $SAMPLES_SUBDIRS; do
51218                     if test -d $srcdir/samples/$sample; then
51219                         makefiles="samples/$sample/Makefile.in $makefiles"
51220                     fi
51221                 done
51222             else
51223                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51224                 eval "disabled=\$$disabled_var"
51225                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51226                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51227             fi
51228         else
51229                                     if test ${subdir} = "samples"; then
51230                                                 makefiles="samples/Makefile.in $makefiles"
51231                 for sample in `echo $SAMPLES_SUBDIRS`; do
51232                     if test -d $srcdir/samples/$sample; then
51233                         makefiles="samples/$sample/Makefile.in $makefiles"
51234                     fi
51235                 done
51236             elif test ${subdir} = "utils"; then
51237                 makefiles=""
51238                 for util in ifacecheck ; do
51239                     if test -d $srcdir/utils/$util ; then
51240                         makefiles="utils/$util/src/Makefile.in \
51241                                    $makefiles"
51242                     fi
51243                 done
51244             else
51245                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51246             fi
51247         fi
51248
51249         for mkin in $makefiles ; do
51250             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51251             ac_config_files="$ac_config_files $mk"
51252
51253         done
51254     fi
51255 done
51256 fi
51257 cat >confcache <<\_ACEOF
51258 # This file is a shell script that caches the results of configure
51259 # tests run on this system so they can be shared between configure
51260 # scripts and configure runs, see configure's option --config-cache.
51261 # It is not useful on other systems.  If it contains results you don't
51262 # want to keep, you may remove or edit it.
51263 #
51264 # config.status only pays attention to the cache file if you give it
51265 # the --recheck option to rerun configure.
51266 #
51267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51269 # following values.
51270
51271 _ACEOF
51272
51273 # The following way of writing the cache mishandles newlines in values,
51274 # but we know of no workaround that is simple, portable, and efficient.
51275 # So, we kill variables containing newlines.
51276 # Ultrix sh set writes to stderr and can't be redirected directly,
51277 # and sets the high bit in the cache file unless we assign to the vars.
51278 (
51279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51280     eval ac_val=\$$ac_var
51281     case $ac_val in #(
51282     *${as_nl}*)
51283       case $ac_var in #(
51284       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51286       esac
51287       case $ac_var in #(
51288       _ | IFS | as_nl) ;; #(
51289       *) $as_unset $ac_var ;;
51290       esac ;;
51291     esac
51292   done
51293
51294   (set) 2>&1 |
51295     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51296     *${as_nl}ac_space=\ *)
51297       # `set' does not quote correctly, so add quotes (double-quote
51298       # substitution turns \\\\ into \\, and sed turns \\ into \).
51299       sed -n \
51300         "s/'/'\\\\''/g;
51301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51302       ;; #(
51303     *)
51304       # `set' quotes correctly as required by POSIX, so do not add quotes.
51305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51306       ;;
51307     esac |
51308     sort
51309 ) |
51310   sed '
51311      /^ac_cv_env_/b end
51312      t clear
51313      :clear
51314      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51315      t end
51316      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51317      :end' >>confcache
51318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51319   if test -w "$cache_file"; then
51320     test "x$cache_file" != "x/dev/null" &&
51321       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51322 echo "$as_me: updating cache $cache_file" >&6;}
51323     cat confcache >$cache_file
51324   else
51325     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51327   fi
51328 fi
51329 rm -f confcache
51330
51331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51332 # Let make expand exec_prefix.
51333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51334
51335 DEFS=-DHAVE_CONFIG_H
51336
51337 ac_libobjs=
51338 ac_ltlibobjs=
51339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51340   # 1. Remove the extension, and $U if already installed.
51341   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51342   ac_i=`echo "$ac_i" | sed "$ac_script"`
51343   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51344   #    will be set to the directory where LIBOBJS objects are built.
51345   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51346   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51347 done
51348 LIBOBJS=$ac_libobjs
51349
51350 LTLIBOBJS=$ac_ltlibobjs
51351
51352
51353
51354 : ${CONFIG_STATUS=./config.status}
51355 ac_clean_files_save=$ac_clean_files
51356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51357 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51358 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51359 cat >$CONFIG_STATUS <<_ACEOF
51360 #! $SHELL
51361 # Generated by $as_me.
51362 # Run this file to recreate the current configuration.
51363 # Compiler output produced by configure, useful for debugging
51364 # configure, is in config.log if it exists.
51365
51366 debug=false
51367 ac_cs_recheck=false
51368 ac_cs_silent=false
51369 SHELL=\${CONFIG_SHELL-$SHELL}
51370 _ACEOF
51371
51372 cat >>$CONFIG_STATUS <<\_ACEOF
51373 ## --------------------- ##
51374 ## M4sh Initialization.  ##
51375 ## --------------------- ##
51376
51377 # Be more Bourne compatible
51378 DUALCASE=1; export DUALCASE # for MKS sh
51379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51380   emulate sh
51381   NULLCMD=:
51382   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51383   # is contrary to our usage.  Disable this feature.
51384   alias -g '${1+"$@"}'='"$@"'
51385   setopt NO_GLOB_SUBST
51386 else
51387   case `(set -o) 2>/dev/null` in
51388   *posix*) set -o posix ;;
51389 esac
51390
51391 fi
51392
51393
51394
51395
51396 # PATH needs CR
51397 # Avoid depending upon Character Ranges.
51398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51401 as_cr_digits='0123456789'
51402 as_cr_alnum=$as_cr_Letters$as_cr_digits
51403
51404 # The user is always right.
51405 if test "${PATH_SEPARATOR+set}" != set; then
51406   echo "#! /bin/sh" >conf$$.sh
51407   echo  "exit 0"   >>conf$$.sh
51408   chmod +x conf$$.sh
51409   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51410     PATH_SEPARATOR=';'
51411   else
51412     PATH_SEPARATOR=:
51413   fi
51414   rm -f conf$$.sh
51415 fi
51416
51417 # Support unset when possible.
51418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51419   as_unset=unset
51420 else
51421   as_unset=false
51422 fi
51423
51424
51425 # IFS
51426 # We need space, tab and new line, in precisely that order.  Quoting is
51427 # there to prevent editors from complaining about space-tab.
51428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51429 # splitting by setting IFS to empty value.)
51430 as_nl='
51431 '
51432 IFS=" ""        $as_nl"
51433
51434 # Find who we are.  Look in the path if we contain no directory separator.
51435 case $0 in
51436   *[\\/]* ) as_myself=$0 ;;
51437   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51438 for as_dir in $PATH
51439 do
51440   IFS=$as_save_IFS
51441   test -z "$as_dir" && as_dir=.
51442   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51443 done
51444 IFS=$as_save_IFS
51445
51446      ;;
51447 esac
51448 # We did not find ourselves, most probably we were run as `sh COMMAND'
51449 # in which case we are not to be found in the path.
51450 if test "x$as_myself" = x; then
51451   as_myself=$0
51452 fi
51453 if test ! -f "$as_myself"; then
51454   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51455   { (exit 1); exit 1; }
51456 fi
51457
51458 # Work around bugs in pre-3.0 UWIN ksh.
51459 for as_var in ENV MAIL MAILPATH
51460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51461 done
51462 PS1='$ '
51463 PS2='> '
51464 PS4='+ '
51465
51466 # NLS nuisances.
51467 for as_var in \
51468   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51469   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51470   LC_TELEPHONE LC_TIME
51471 do
51472   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51473     eval $as_var=C; export $as_var
51474   else
51475     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51476   fi
51477 done
51478
51479 # Required to use basename.
51480 if expr a : '\(a\)' >/dev/null 2>&1 &&
51481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51482   as_expr=expr
51483 else
51484   as_expr=false
51485 fi
51486
51487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51488   as_basename=basename
51489 else
51490   as_basename=false
51491 fi
51492
51493
51494 # Name of the executable.
51495 as_me=`$as_basename -- "$0" ||
51496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51497          X"$0" : 'X\(//\)$' \| \
51498          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51499 echo X/"$0" |
51500     sed '/^.*\/\([^/][^/]*\)\/*$/{
51501             s//\1/
51502             q
51503           }
51504           /^X\/\(\/\/\)$/{
51505             s//\1/
51506             q
51507           }
51508           /^X\/\(\/\).*/{
51509             s//\1/
51510             q
51511           }
51512           s/.*/./; q'`
51513
51514 # CDPATH.
51515 $as_unset CDPATH
51516
51517
51518
51519   as_lineno_1=$LINENO
51520   as_lineno_2=$LINENO
51521   test "x$as_lineno_1" != "x$as_lineno_2" &&
51522   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51523
51524   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51525   # uniformly replaced by the line number.  The first 'sed' inserts a
51526   # line-number line after each line using $LINENO; the second 'sed'
51527   # does the real work.  The second script uses 'N' to pair each
51528   # line-number line with the line containing $LINENO, and appends
51529   # trailing '-' during substitution so that $LINENO is not a special
51530   # case at line end.
51531   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51532   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51533   # E. McMahon (1931-1989) for sed's syntax.  :-)
51534   sed -n '
51535     p
51536     /[$]LINENO/=
51537   ' <$as_myself |
51538     sed '
51539       s/[$]LINENO.*/&-/
51540       t lineno
51541       b
51542       :lineno
51543       N
51544       :loop
51545       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51546       t loop
51547       s/-\n.*//
51548     ' >$as_me.lineno &&
51549   chmod +x "$as_me.lineno" ||
51550     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51551    { (exit 1); exit 1; }; }
51552
51553   # Don't try to exec as it changes $[0], causing all sort of problems
51554   # (the dirname of $[0] is not the place where we might find the
51555   # original and so on.  Autoconf is especially sensitive to this).
51556   . "./$as_me.lineno"
51557   # Exit status is that of the last command.
51558   exit
51559 }
51560
51561
51562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51563   as_dirname=dirname
51564 else
51565   as_dirname=false
51566 fi
51567
51568 ECHO_C= ECHO_N= ECHO_T=
51569 case `echo -n x` in
51570 -n*)
51571   case `echo 'x\c'` in
51572   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51573   *)   ECHO_C='\c';;
51574   esac;;
51575 *)
51576   ECHO_N='-n';;
51577 esac
51578
51579 if expr a : '\(a\)' >/dev/null 2>&1 &&
51580    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51581   as_expr=expr
51582 else
51583   as_expr=false
51584 fi
51585
51586 rm -f conf$$ conf$$.exe conf$$.file
51587 if test -d conf$$.dir; then
51588   rm -f conf$$.dir/conf$$.file
51589 else
51590   rm -f conf$$.dir
51591   mkdir conf$$.dir
51592 fi
51593 echo >conf$$.file
51594 if ln -s conf$$.file conf$$ 2>/dev/null; then
51595   as_ln_s='ln -s'
51596   # ... but there are two gotchas:
51597   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51598   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51599   # In both cases, we have to default to `cp -p'.
51600   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51601     as_ln_s='cp -p'
51602 elif ln conf$$.file conf$$ 2>/dev/null; then
51603   as_ln_s=ln
51604 else
51605   as_ln_s='cp -p'
51606 fi
51607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51608 rmdir conf$$.dir 2>/dev/null
51609
51610 if mkdir -p . 2>/dev/null; then
51611   as_mkdir_p=:
51612 else
51613   test -d ./-p && rmdir ./-p
51614   as_mkdir_p=false
51615 fi
51616
51617 if test -x / >/dev/null 2>&1; then
51618   as_test_x='test -x'
51619 else
51620   if ls -dL / >/dev/null 2>&1; then
51621     as_ls_L_option=L
51622   else
51623     as_ls_L_option=
51624   fi
51625   as_test_x='
51626     eval sh -c '\''
51627       if test -d "$1"; then
51628         test -d "$1/.";
51629       else
51630         case $1 in
51631         -*)set "./$1";;
51632         esac;
51633         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51634         ???[sx]*):;;*)false;;esac;fi
51635     '\'' sh
51636   '
51637 fi
51638 as_executable_p=$as_test_x
51639
51640 # Sed expression to map a string onto a valid CPP name.
51641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51642
51643 # Sed expression to map a string onto a valid variable name.
51644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51645
51646
51647 exec 6>&1
51648
51649 # Save the log message, to keep $[0] and so on meaningful, and to
51650 # report actual input values of CONFIG_FILES etc. instead of their
51651 # values after options handling.
51652 ac_log="
51653 This file was extended by wxWidgets $as_me 2.9.1, which was
51654 generated by GNU Autoconf 2.61.  Invocation command line was
51655
51656   CONFIG_FILES    = $CONFIG_FILES
51657   CONFIG_HEADERS  = $CONFIG_HEADERS
51658   CONFIG_LINKS    = $CONFIG_LINKS
51659   CONFIG_COMMANDS = $CONFIG_COMMANDS
51660   $ $0 $@
51661
51662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51663 "
51664
51665 _ACEOF
51666
51667 cat >>$CONFIG_STATUS <<_ACEOF
51668 # Files that config.status was made for.
51669 config_files="$ac_config_files"
51670 config_headers="$ac_config_headers"
51671 config_commands="$ac_config_commands"
51672
51673 _ACEOF
51674
51675 cat >>$CONFIG_STATUS <<\_ACEOF
51676 ac_cs_usage="\
51677 \`$as_me' instantiates files from templates according to the
51678 current configuration.
51679
51680 Usage: $0 [OPTIONS] [FILE]...
51681
51682   -h, --help       print this help, then exit
51683   -V, --version    print version number and configuration settings, then exit
51684   -q, --quiet      do not print progress messages
51685   -d, --debug      don't remove temporary files
51686       --recheck    update $as_me by reconfiguring in the same conditions
51687   --file=FILE[:TEMPLATE]
51688                    instantiate the configuration file FILE
51689   --header=FILE[:TEMPLATE]
51690                    instantiate the configuration header FILE
51691
51692 Configuration files:
51693 $config_files
51694
51695 Configuration headers:
51696 $config_headers
51697
51698 Configuration commands:
51699 $config_commands
51700
51701 Report bugs to <bug-autoconf@gnu.org>."
51702
51703 _ACEOF
51704 cat >>$CONFIG_STATUS <<_ACEOF
51705 ac_cs_version="\\
51706 wxWidgets config.status 2.9.1
51707 configured by $0, generated by GNU Autoconf 2.61,
51708   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51709
51710 Copyright (C) 2006 Free Software Foundation, Inc.
51711 This config.status script is free software; the Free Software Foundation
51712 gives unlimited permission to copy, distribute and modify it."
51713
51714 ac_pwd='$ac_pwd'
51715 srcdir='$srcdir'
51716 INSTALL='$INSTALL'
51717 _ACEOF
51718
51719 cat >>$CONFIG_STATUS <<\_ACEOF
51720 # If no file are specified by the user, then we need to provide default
51721 # value.  By we need to know if files were specified by the user.
51722 ac_need_defaults=:
51723 while test $# != 0
51724 do
51725   case $1 in
51726   --*=*)
51727     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51728     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51729     ac_shift=:
51730     ;;
51731   *)
51732     ac_option=$1
51733     ac_optarg=$2
51734     ac_shift=shift
51735     ;;
51736   esac
51737
51738   case $ac_option in
51739   # Handling of the options.
51740   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51741     ac_cs_recheck=: ;;
51742   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51743     echo "$ac_cs_version"; exit ;;
51744   --debug | --debu | --deb | --de | --d | -d )
51745     debug=: ;;
51746   --file | --fil | --fi | --f )
51747     $ac_shift
51748     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51749     ac_need_defaults=false;;
51750   --header | --heade | --head | --hea )
51751     $ac_shift
51752     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51753     ac_need_defaults=false;;
51754   --he | --h)
51755     # Conflict between --help and --header
51756     { echo "$as_me: error: ambiguous option: $1
51757 Try \`$0 --help' for more information." >&2
51758    { (exit 1); exit 1; }; };;
51759   --help | --hel | -h )
51760     echo "$ac_cs_usage"; exit ;;
51761   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51762   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51763     ac_cs_silent=: ;;
51764
51765   # This is an error.
51766   -*) { echo "$as_me: error: unrecognized option: $1
51767 Try \`$0 --help' for more information." >&2
51768    { (exit 1); exit 1; }; } ;;
51769
51770   *) ac_config_targets="$ac_config_targets $1"
51771      ac_need_defaults=false ;;
51772
51773   esac
51774   shift
51775 done
51776
51777 ac_configure_extra_args=
51778
51779 if $ac_cs_silent; then
51780   exec 6>/dev/null
51781   ac_configure_extra_args="$ac_configure_extra_args --silent"
51782 fi
51783
51784 _ACEOF
51785 cat >>$CONFIG_STATUS <<_ACEOF
51786 if \$ac_cs_recheck; then
51787   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51788   CONFIG_SHELL=$SHELL
51789   export CONFIG_SHELL
51790   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51791 fi
51792
51793 _ACEOF
51794 cat >>$CONFIG_STATUS <<\_ACEOF
51795 exec 5>>config.log
51796 {
51797   echo
51798   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51799 ## Running $as_me. ##
51800 _ASBOX
51801   echo "$ac_log"
51802 } >&5
51803
51804 _ACEOF
51805 cat >>$CONFIG_STATUS <<_ACEOF
51806 #
51807 # INIT-COMMANDS
51808 #
51809
51810             CPP="$CPP"
51811             infile="$srcdir/include/wx/msw/genrcdefs.h"
51812             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51813
51814
51815  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51816  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51817  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51818                      LN_S="${LN_S}"
51819
51820
51821 _ACEOF
51822
51823 cat >>$CONFIG_STATUS <<\_ACEOF
51824
51825 # Handling of arguments.
51826 for ac_config_target in $ac_config_targets
51827 do
51828   case $ac_config_target in
51829     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51830     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51831     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51832     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51833     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51834     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51835     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51836     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51837     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51838
51839   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51841    { (exit 1); exit 1; }; };;
51842   esac
51843 done
51844
51845
51846 # If the user did not use the arguments to specify the items to instantiate,
51847 # then the envvar interface is used.  Set only those that are not.
51848 # We use the long form for the default assignment because of an extremely
51849 # bizarre bug on SunOS 4.1.3.
51850 if $ac_need_defaults; then
51851   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51852   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51853   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51854 fi
51855
51856 # Have a temporary directory for convenience.  Make it in the build tree
51857 # simply because there is no reason against having it here, and in addition,
51858 # creating and moving files from /tmp can sometimes cause problems.
51859 # Hook for its removal unless debugging.
51860 # Note that there is a small window in which the directory will not be cleaned:
51861 # after its creation but before its name has been assigned to `$tmp'.
51862 $debug ||
51863 {
51864   tmp=
51865   trap 'exit_status=$?
51866   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51867 ' 0
51868   trap '{ (exit 1); exit 1; }' 1 2 13 15
51869 }
51870 # Create a (secure) tmp directory for tmp files.
51871
51872 {
51873   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51874   test -n "$tmp" && test -d "$tmp"
51875 }  ||
51876 {
51877   tmp=./conf$$-$RANDOM
51878   (umask 077 && mkdir "$tmp")
51879 } ||
51880 {
51881    echo "$me: cannot create a temporary directory in ." >&2
51882    { (exit 1); exit 1; }
51883 }
51884
51885 #
51886 # Set up the sed scripts for CONFIG_FILES section.
51887 #
51888
51889 # No need to generate the scripts if there are no CONFIG_FILES.
51890 # This happens for instance when ./config.status config.h
51891 if test -n "$CONFIG_FILES"; then
51892
51893 _ACEOF
51894
51895
51896
51897 ac_delim='%!_!# '
51898 for ac_last_try in false false false false false :; do
51899   cat >conf$$subs.sed <<_ACEOF
51900 SHELL!$SHELL$ac_delim
51901 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51902 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51903 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51904 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51905 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51906 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51907 exec_prefix!$exec_prefix$ac_delim
51908 prefix!$prefix$ac_delim
51909 program_transform_name!$program_transform_name$ac_delim
51910 bindir!$bindir$ac_delim
51911 sbindir!$sbindir$ac_delim
51912 libexecdir!$libexecdir$ac_delim
51913 datarootdir!$datarootdir$ac_delim
51914 datadir!$datadir$ac_delim
51915 sysconfdir!$sysconfdir$ac_delim
51916 sharedstatedir!$sharedstatedir$ac_delim
51917 localstatedir!$localstatedir$ac_delim
51918 includedir!$includedir$ac_delim
51919 oldincludedir!$oldincludedir$ac_delim
51920 docdir!$docdir$ac_delim
51921 infodir!$infodir$ac_delim
51922 htmldir!$htmldir$ac_delim
51923 dvidir!$dvidir$ac_delim
51924 pdfdir!$pdfdir$ac_delim
51925 psdir!$psdir$ac_delim
51926 libdir!$libdir$ac_delim
51927 localedir!$localedir$ac_delim
51928 mandir!$mandir$ac_delim
51929 DEFS!$DEFS$ac_delim
51930 ECHO_C!$ECHO_C$ac_delim
51931 ECHO_N!$ECHO_N$ac_delim
51932 ECHO_T!$ECHO_T$ac_delim
51933 LIBS!$LIBS$ac_delim
51934 build_alias!$build_alias$ac_delim
51935 host_alias!$host_alias$ac_delim
51936 target_alias!$target_alias$ac_delim
51937 build!$build$ac_delim
51938 build_cpu!$build_cpu$ac_delim
51939 build_vendor!$build_vendor$ac_delim
51940 build_os!$build_os$ac_delim
51941 host!$host$ac_delim
51942 host_cpu!$host_cpu$ac_delim
51943 host_vendor!$host_vendor$ac_delim
51944 host_os!$host_os$ac_delim
51945 wx_top_builddir!$wx_top_builddir$ac_delim
51946 CC!$CC$ac_delim
51947 CFLAGS!$CFLAGS$ac_delim
51948 LDFLAGS!$LDFLAGS$ac_delim
51949 CPPFLAGS!$CPPFLAGS$ac_delim
51950 ac_ct_CC!$ac_ct_CC$ac_delim
51951 EXEEXT!$EXEEXT$ac_delim
51952 OBJEXT!$OBJEXT$ac_delim
51953 CPP!$CPP$ac_delim
51954 GREP!$GREP$ac_delim
51955 EGREP!$EGREP$ac_delim
51956 CXX!$CXX$ac_delim
51957 CXXFLAGS!$CXXFLAGS$ac_delim
51958 ac_ct_CXX!$ac_ct_CXX$ac_delim
51959 AR!$AR$ac_delim
51960 subdirs!$subdirs$ac_delim
51961 PKG_CONFIG!$PKG_CONFIG$ac_delim
51962 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51963 GTK_LIBS!$GTK_LIBS$ac_delim
51964 GTK_CONFIG!$GTK_CONFIG$ac_delim
51965 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51966 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51967 XMKMF!$XMKMF$ac_delim
51968 X_CFLAGS!$X_CFLAGS$ac_delim
51969 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51970 X_LIBS!$X_LIBS$ac_delim
51971 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51972 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51973 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51974 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51975 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51976 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51977 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51978 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51979 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51980 LIBICONV!$LIBICONV$ac_delim
51981 GXX_VERSION!$GXX_VERSION$ac_delim
51982 SDL_CONFIG!$SDL_CONFIG$ac_delim
51983 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51984 SDL_LIBS!$SDL_LIBS$ac_delim
51985 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51986 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51987 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51988 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51989 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51990 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51991 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51992 HILDON_LIBS!$HILDON_LIBS$ac_delim
51993 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
51994 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
51995 PYTHON!$PYTHON$ac_delim
51996 COND_PYTHON!$COND_PYTHON$ac_delim
51997 _ACEOF
51998
51999   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52000     break
52001   elif $ac_last_try; then
52002     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52003 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52004    { (exit 1); exit 1; }; }
52005   else
52006     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52007   fi
52008 done
52009
52010 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52011 if test -n "$ac_eof"; then
52012   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52013   ac_eof=`expr $ac_eof + 1`
52014 fi
52015
52016 cat >>$CONFIG_STATUS <<_ACEOF
52017 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
52018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52019 _ACEOF
52020 sed '
52021 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52022 s/^/s,@/; s/!/@,|#_!!_#|/
52023 :n
52024 t n
52025 s/'"$ac_delim"'$/,g/; t
52026 s/$/\\/; p
52027 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52028 ' >>$CONFIG_STATUS <conf$$subs.sed
52029 rm -f conf$$subs.sed
52030 cat >>$CONFIG_STATUS <<_ACEOF
52031 CEOF$ac_eof
52032 _ACEOF
52033
52034
52035 ac_delim='%!_!# '
52036 for ac_last_try in false false false false false :; do
52037   cat >conf$$subs.sed <<_ACEOF
52038 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
52039 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
52040 GST_CFLAGS!$GST_CFLAGS$ac_delim
52041 GST_LIBS!$GST_LIBS$ac_delim
52042 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
52043 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
52044 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
52045 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
52046 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
52047 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
52048 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
52049 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
52050 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
52051 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
52052 VENDOR!$VENDOR$ac_delim
52053 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
52054 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
52055 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
52056 WXUNIV!$WXUNIV$ac_delim
52057 MONOLITHIC!$MONOLITHIC$ac_delim
52058 USE_PLUGINS!$USE_PLUGINS$ac_delim
52059 CXXWARNINGS!$CXXWARNINGS$ac_delim
52060 EXTRALIBS!$EXTRALIBS$ac_delim
52061 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
52062 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
52063 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
52064 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
52065 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
52066 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
52067 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
52068 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
52069 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
52070 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
52071 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
52072 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
52073 UNICODE!$UNICODE$ac_delim
52074 DEBUG_INFO!$DEBUG_INFO$ac_delim
52075 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
52076 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
52077 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
52078 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
52079 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
52080 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
52081 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
52082 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
52083 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
52084 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
52085 RANLIB!$RANLIB$ac_delim
52086 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
52087 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
52088 INSTALL_DATA!$INSTALL_DATA$ac_delim
52089 LN_S!$LN_S$ac_delim
52090 SET_MAKE!$SET_MAKE$ac_delim
52091 MAKE_SET!$MAKE_SET$ac_delim
52092 AROPTIONS!$AROPTIONS$ac_delim
52093 STRIP!$STRIP$ac_delim
52094 NM!$NM$ac_delim
52095 INSTALL_DIR!$INSTALL_DIR$ac_delim
52096 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
52097 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
52098 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
52099 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
52100 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
52101 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52102 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52103 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52104 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52105 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52106 SO_SUFFIX!$SO_SUFFIX$ac_delim
52107 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52108 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52109 LIBPREFIX!$LIBPREFIX$ac_delim
52110 LIBEXT!$LIBEXT$ac_delim
52111 DLLPREFIX!$DLLPREFIX$ac_delim
52112 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52113 dlldir!$dlldir$ac_delim
52114 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52115 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52116 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52117 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52118 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52119 PIC_FLAG!$PIC_FLAG$ac_delim
52120 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52121 USE_SOVERSION!$USE_SOVERSION$ac_delim
52122 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52123 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52124 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52125 USE_MACVERSION!$USE_MACVERSION$ac_delim
52126 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
52127 SONAME_FLAG!$SONAME_FLAG$ac_delim
52128 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52129 BK_DEPS!$BK_DEPS$ac_delim
52130 WINDRES!$WINDRES$ac_delim
52131 REZ!$REZ$ac_delim
52132 SETFILE!$SETFILE$ac_delim
52133 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52134 GCC_PCH!$GCC_PCH$ac_delim
52135 _ACEOF
52136
52137   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52138     break
52139   elif $ac_last_try; then
52140     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52141 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52142    { (exit 1); exit 1; }; }
52143   else
52144     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52145   fi
52146 done
52147
52148 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52149 if test -n "$ac_eof"; then
52150   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52151   ac_eof=`expr $ac_eof + 1`
52152 fi
52153
52154 cat >>$CONFIG_STATUS <<_ACEOF
52155 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52157 _ACEOF
52158 sed '
52159 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52160 s/^/s,@/; s/!/@,|#_!!_#|/
52161 :n
52162 t n
52163 s/'"$ac_delim"'$/,g/; t
52164 s/$/\\/; p
52165 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52166 ' >>$CONFIG_STATUS <conf$$subs.sed
52167 rm -f conf$$subs.sed
52168 cat >>$CONFIG_STATUS <<_ACEOF
52169 CEOF$ac_eof
52170 _ACEOF
52171
52172
52173 ac_delim='%!_!# '
52174 for ac_last_try in false false false false false :; do
52175   cat >conf$$subs.sed <<_ACEOF
52176 ICC_PCH!$ICC_PCH$ac_delim
52177 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
52178 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
52179 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
52180 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
52181 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
52182 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
52183 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
52184 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
52185 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
52186 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
52187 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
52188 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
52189 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
52190 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
52191 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
52192 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
52193 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
52194 COND_BUILD_release!$COND_BUILD_release$ac_delim
52195 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
52196 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
52197 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
52198 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
52199 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
52200 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
52201 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
52202 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
52203 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
52204 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
52205 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
52206 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
52207 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
52208 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
52209 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
52210 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
52211 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52212 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
52213 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
52214 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
52215 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
52216 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
52217 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
52218 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
52219 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
52220 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
52221 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
52222 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
52223 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
52224 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
52225 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
52226 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
52227 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
52228 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
52229 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
52230 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
52231 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52232 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
52233 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
52234 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
52235 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52236 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
52237 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52238 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52239 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52240 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52241 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52242 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52243 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52244 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52245 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52246 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52247 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52248 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52249 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52250 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
52251 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52252 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
52253 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52254 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52255 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52256 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52257 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52258 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52259 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52260 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52261 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52262 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52263 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52264 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52265 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52266 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52267 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52268 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52269 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52270 COND_SHARED_0!$COND_SHARED_0$ac_delim
52271 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52272 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52273 _ACEOF
52274
52275   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52276     break
52277   elif $ac_last_try; then
52278     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52279 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52280    { (exit 1); exit 1; }; }
52281   else
52282     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52283   fi
52284 done
52285
52286 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52287 if test -n "$ac_eof"; then
52288   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52289   ac_eof=`expr $ac_eof + 1`
52290 fi
52291
52292 cat >>$CONFIG_STATUS <<_ACEOF
52293 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52295 _ACEOF
52296 sed '
52297 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52298 s/^/s,@/; s/!/@,|#_!!_#|/
52299 :n
52300 t n
52301 s/'"$ac_delim"'$/,g/; t
52302 s/$/\\/; p
52303 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52304 ' >>$CONFIG_STATUS <conf$$subs.sed
52305 rm -f conf$$subs.sed
52306 cat >>$CONFIG_STATUS <<_ACEOF
52307 CEOF$ac_eof
52308 _ACEOF
52309
52310
52311 ac_delim='%!_!# '
52312 for ac_last_try in false false false false false :; do
52313   cat >conf$$subs.sed <<_ACEOF
52314 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52315 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52316 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52317 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52318 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52319 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52320 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52321 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52322 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52323 COND_SHARED_1!$COND_SHARED_1$ac_delim
52324 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52325 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52326 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52327 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52328 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52329 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52330 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52331 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52332 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52333 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52334 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52335 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52336 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52337 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52338 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52339 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52340 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52341 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52342 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52343 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52344 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52345 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52346 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52347 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52348 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52349 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52350 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52351 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52352 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52353 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52354 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52355 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52356 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52357 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52358 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52359 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52360 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52361 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52362 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52363 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52364 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52365 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52366 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52367 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52368 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52369 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52370 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52371 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52372 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52373 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52374 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52375 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52376 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52377 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52378 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52379 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52380 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52381 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52382 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52383 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52384 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52385 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52386 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52387 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52388 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52389 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52390 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52391 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52392 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52393 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52394 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52395 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52396 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52397 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52398 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52399 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52400 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52401 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52402 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52403 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52404 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52405 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52406 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52407 DEREZ!$DEREZ$ac_delim
52408 SHARED!$SHARED$ac_delim
52409 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52410 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52411 _ACEOF
52412
52413   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52414     break
52415   elif $ac_last_try; then
52416     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52417 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52418    { (exit 1); exit 1; }; }
52419   else
52420     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52421   fi
52422 done
52423
52424 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52425 if test -n "$ac_eof"; then
52426   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52427   ac_eof=`expr $ac_eof + 1`
52428 fi
52429
52430 cat >>$CONFIG_STATUS <<_ACEOF
52431 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52433 _ACEOF
52434 sed '
52435 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52436 s/^/s,@/; s/!/@,|#_!!_#|/
52437 :n
52438 t n
52439 s/'"$ac_delim"'$/,g/; t
52440 s/$/\\/; p
52441 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52442 ' >>$CONFIG_STATUS <conf$$subs.sed
52443 rm -f conf$$subs.sed
52444 cat >>$CONFIG_STATUS <<_ACEOF
52445 CEOF$ac_eof
52446 _ACEOF
52447
52448
52449 ac_delim='%!_!# '
52450 for ac_last_try in false false false false false :; do
52451   cat >conf$$subs.sed <<_ACEOF
52452 USE_GUI!$USE_GUI$ac_delim
52453 AFMINSTALL!$AFMINSTALL$ac_delim
52454 WIN32INSTALL!$WIN32INSTALL$ac_delim
52455 TOOLKIT!$TOOLKIT$ac_delim
52456 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52457 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52458 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52459 cross_compiling!$cross_compiling$ac_delim
52460 WIDGET_SET!$WIDGET_SET$ac_delim
52461 WX_RELEASE!$WX_RELEASE$ac_delim
52462 WX_VERSION!$WX_VERSION$ac_delim
52463 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52464 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52465 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52466 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52467 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52468 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52469 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52470 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52471 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52472 GUIDIST!$GUIDIST$ac_delim
52473 DISTDIR!$DISTDIR$ac_delim
52474 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52475 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52476 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52477 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52478 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52479 RESCOMP!$RESCOMP$ac_delim
52480 RESFLAGS!$RESFLAGS$ac_delim
52481 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52482 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52483 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52484 LIBWXMACRES!$LIBWXMACRES$ac_delim
52485 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52486 MACSETFILE!$MACSETFILE$ac_delim
52487 GCC!$GCC$ac_delim
52488 DLLTOOL!$DLLTOOL$ac_delim
52489 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52490 LIBOBJS!$LIBOBJS$ac_delim
52491 LTLIBOBJS!$LTLIBOBJS$ac_delim
52492 _ACEOF
52493
52494   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
52495     break
52496   elif $ac_last_try; then
52497     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52498 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52499    { (exit 1); exit 1; }; }
52500   else
52501     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52502   fi
52503 done
52504
52505 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52506 if test -n "$ac_eof"; then
52507   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52508   ac_eof=`expr $ac_eof + 1`
52509 fi
52510
52511 cat >>$CONFIG_STATUS <<_ACEOF
52512 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52514 _ACEOF
52515 sed '
52516 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52517 s/^/s,@/; s/!/@,|#_!!_#|/
52518 :n
52519 t n
52520 s/'"$ac_delim"'$/,g/; t
52521 s/$/\\/; p
52522 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52523 ' >>$CONFIG_STATUS <conf$$subs.sed
52524 rm -f conf$$subs.sed
52525 cat >>$CONFIG_STATUS <<_ACEOF
52526 :end
52527 s/|#_!!_#|//g
52528 CEOF$ac_eof
52529 _ACEOF
52530
52531
52532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52534 # trailing colons and then remove the whole line if VPATH becomes empty
52535 # (actually we leave an empty line to preserve line numbers).
52536 if test "x$srcdir" = x.; then
52537   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52538 s/:*\$(srcdir):*/:/
52539 s/:*\${srcdir}:*/:/
52540 s/:*@srcdir@:*/:/
52541 s/^\([^=]*=[     ]*\):*/\1/
52542 s/:*$//
52543 s/^[^=]*=[       ]*$//
52544 }'
52545 fi
52546
52547 cat >>$CONFIG_STATUS <<\_ACEOF
52548 fi # test -n "$CONFIG_FILES"
52549
52550
52551 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52552 do
52553   case $ac_tag in
52554   :[FHLC]) ac_mode=$ac_tag; continue;;
52555   esac
52556   case $ac_mode$ac_tag in
52557   :[FHL]*:*);;
52558   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52559 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52560    { (exit 1); exit 1; }; };;
52561   :[FH]-) ac_tag=-:-;;
52562   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52563   esac
52564   ac_save_IFS=$IFS
52565   IFS=:
52566   set x $ac_tag
52567   IFS=$ac_save_IFS
52568   shift
52569   ac_file=$1
52570   shift
52571
52572   case $ac_mode in
52573   :L) ac_source=$1;;
52574   :[FH])
52575     ac_file_inputs=
52576     for ac_f
52577     do
52578       case $ac_f in
52579       -) ac_f="$tmp/stdin";;
52580       *) # Look for the file first in the build tree, then in the source tree
52581          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52582          # because $ac_f cannot contain `:'.
52583          test -f "$ac_f" ||
52584            case $ac_f in
52585            [\\/$]*) false;;
52586            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52587            esac ||
52588            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52589 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52590    { (exit 1); exit 1; }; };;
52591       esac
52592       ac_file_inputs="$ac_file_inputs $ac_f"
52593     done
52594
52595     # Let's still pretend it is `configure' which instantiates (i.e., don't
52596     # use $as_me), people would be surprised to read:
52597     #    /* config.h.  Generated by config.status.  */
52598     configure_input="Generated from "`IFS=:
52599           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52600     if test x"$ac_file" != x-; then
52601       configure_input="$ac_file.  $configure_input"
52602       { echo "$as_me:$LINENO: creating $ac_file" >&5
52603 echo "$as_me: creating $ac_file" >&6;}
52604     fi
52605
52606     case $ac_tag in
52607     *:-:* | *:-) cat >"$tmp/stdin";;
52608     esac
52609     ;;
52610   esac
52611
52612   ac_dir=`$as_dirname -- "$ac_file" ||
52613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52614          X"$ac_file" : 'X\(//\)[^/]' \| \
52615          X"$ac_file" : 'X\(//\)$' \| \
52616          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52617 echo X"$ac_file" |
52618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52619             s//\1/
52620             q
52621           }
52622           /^X\(\/\/\)[^/].*/{
52623             s//\1/
52624             q
52625           }
52626           /^X\(\/\/\)$/{
52627             s//\1/
52628             q
52629           }
52630           /^X\(\/\).*/{
52631             s//\1/
52632             q
52633           }
52634           s/.*/./; q'`
52635   { as_dir="$ac_dir"
52636   case $as_dir in #(
52637   -*) as_dir=./$as_dir;;
52638   esac
52639   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52640     as_dirs=
52641     while :; do
52642       case $as_dir in #(
52643       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52644       *) as_qdir=$as_dir;;
52645       esac
52646       as_dirs="'$as_qdir' $as_dirs"
52647       as_dir=`$as_dirname -- "$as_dir" ||
52648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52649          X"$as_dir" : 'X\(//\)[^/]' \| \
52650          X"$as_dir" : 'X\(//\)$' \| \
52651          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52652 echo X"$as_dir" |
52653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52654             s//\1/
52655             q
52656           }
52657           /^X\(\/\/\)[^/].*/{
52658             s//\1/
52659             q
52660           }
52661           /^X\(\/\/\)$/{
52662             s//\1/
52663             q
52664           }
52665           /^X\(\/\).*/{
52666             s//\1/
52667             q
52668           }
52669           s/.*/./; q'`
52670       test -d "$as_dir" && break
52671     done
52672     test -z "$as_dirs" || eval "mkdir $as_dirs"
52673   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52674 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52675    { (exit 1); exit 1; }; }; }
52676   ac_builddir=.
52677
52678 case "$ac_dir" in
52679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52680 *)
52681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52682   # A ".." for each directory in $ac_dir_suffix.
52683   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52684   case $ac_top_builddir_sub in
52685   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52686   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52687   esac ;;
52688 esac
52689 ac_abs_top_builddir=$ac_pwd
52690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52691 # for backward compatibility:
52692 ac_top_builddir=$ac_top_build_prefix
52693
52694 case $srcdir in
52695   .)  # We are building in place.
52696     ac_srcdir=.
52697     ac_top_srcdir=$ac_top_builddir_sub
52698     ac_abs_top_srcdir=$ac_pwd ;;
52699   [\\/]* | ?:[\\/]* )  # Absolute name.
52700     ac_srcdir=$srcdir$ac_dir_suffix;
52701     ac_top_srcdir=$srcdir
52702     ac_abs_top_srcdir=$srcdir ;;
52703   *) # Relative name.
52704     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52705     ac_top_srcdir=$ac_top_build_prefix$srcdir
52706     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52707 esac
52708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52709
52710
52711   case $ac_mode in
52712   :F)
52713   #
52714   # CONFIG_FILE
52715   #
52716
52717   case $INSTALL in
52718   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52719   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52720   esac
52721 _ACEOF
52722
52723 cat >>$CONFIG_STATUS <<\_ACEOF
52724 # If the template does not know about datarootdir, expand it.
52725 # FIXME: This hack should be removed a few years after 2.60.
52726 ac_datarootdir_hack=; ac_datarootdir_seen=
52727
52728 case `sed -n '/datarootdir/ {
52729   p
52730   q
52731 }
52732 /@datadir@/p
52733 /@docdir@/p
52734 /@infodir@/p
52735 /@localedir@/p
52736 /@mandir@/p
52737 ' $ac_file_inputs` in
52738 *datarootdir*) ac_datarootdir_seen=yes;;
52739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52740   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52741 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52742 _ACEOF
52743 cat >>$CONFIG_STATUS <<_ACEOF
52744   ac_datarootdir_hack='
52745   s&@datadir@&$datadir&g
52746   s&@docdir@&$docdir&g
52747   s&@infodir@&$infodir&g
52748   s&@localedir@&$localedir&g
52749   s&@mandir@&$mandir&g
52750     s&\\\${datarootdir}&$datarootdir&g' ;;
52751 esac
52752 _ACEOF
52753
52754 # Neutralize VPATH when `$srcdir' = `.'.
52755 # Shell code in configure.ac might set extrasub.
52756 # FIXME: do we really want to maintain this feature?
52757 cat >>$CONFIG_STATUS <<_ACEOF
52758   sed "$ac_vpsub
52759 $extrasub
52760 _ACEOF
52761 cat >>$CONFIG_STATUS <<\_ACEOF
52762 :t
52763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52764 s&@configure_input@&$configure_input&;t t
52765 s&@top_builddir@&$ac_top_builddir_sub&;t t
52766 s&@srcdir@&$ac_srcdir&;t t
52767 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52768 s&@top_srcdir@&$ac_top_srcdir&;t t
52769 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52770 s&@builddir@&$ac_builddir&;t t
52771 s&@abs_builddir@&$ac_abs_builddir&;t t
52772 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52773 s&@INSTALL@&$ac_INSTALL&;t t
52774 $ac_datarootdir_hack
52775 " $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
52776
52777 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52778   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52779   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52780   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52781 which seems to be undefined.  Please make sure it is defined." >&5
52782 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52783 which seems to be undefined.  Please make sure it is defined." >&2;}
52784
52785   rm -f "$tmp/stdin"
52786   case $ac_file in
52787   -) cat "$tmp/out"; rm -f "$tmp/out";;
52788   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52789   esac
52790  ;;
52791   :H)
52792   #
52793   # CONFIG_HEADER
52794   #
52795 _ACEOF
52796
52797 # Transform confdefs.h into a sed script `conftest.defines', that
52798 # substitutes the proper values into config.h.in to produce config.h.
52799 rm -f conftest.defines conftest.tail
52800 # First, append a space to every undef/define line, to ease matching.
52801 echo 's/$/ /' >conftest.defines
52802 # Then, protect against being on the right side of a sed subst, or in
52803 # an unquoted here document, in config.status.  If some macros were
52804 # called several times there might be several #defines for the same
52805 # symbol, which is useless.  But do not sort them, since the last
52806 # AC_DEFINE must be honored.
52807 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52808 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52809 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52810 # PARAMS is the parameter list in the macro definition--in most cases, it's
52811 # just an empty string.
52812 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52813 ac_dB='\\)[      (].*,\\1define\\2'
52814 ac_dC=' '
52815 ac_dD=' ,'
52816
52817 uniq confdefs.h |
52818   sed -n '
52819         t rset
52820         :rset
52821         s/^[     ]*#[    ]*define[       ][      ]*//
52822         t ok
52823         d
52824         :ok
52825         s/[\\&,]/\\&/g
52826         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52827         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52828   ' >>conftest.defines
52829
52830 # Remove the space that was appended to ease matching.
52831 # Then replace #undef with comments.  This is necessary, for
52832 # example, in the case of _POSIX_SOURCE, which is predefined and required
52833 # on some systems where configure will not decide to define it.
52834 # (The regexp can be short, since the line contains either #define or #undef.)
52835 echo 's/ $//
52836 s,^[     #]*u.*,/* & */,' >>conftest.defines
52837
52838 # Break up conftest.defines:
52839 ac_max_sed_lines=50
52840
52841 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52842 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52843 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52844 # et cetera.
52845 ac_in='$ac_file_inputs'
52846 ac_out='"$tmp/out1"'
52847 ac_nxt='"$tmp/out2"'
52848
52849 while :
52850 do
52851   # Write a here document:
52852     cat >>$CONFIG_STATUS <<_ACEOF
52853     # First, check the format of the line:
52854     cat >"\$tmp/defines.sed" <<\\CEOF
52855 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52856 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52857 b
52858 :def
52859 _ACEOF
52860   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52861   echo 'CEOF
52862     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52863   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52864   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52865   grep . conftest.tail >/dev/null || break
52866   rm -f conftest.defines
52867   mv conftest.tail conftest.defines
52868 done
52869 rm -f conftest.defines conftest.tail
52870
52871 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52872 cat >>$CONFIG_STATUS <<\_ACEOF
52873   if test x"$ac_file" != x-; then
52874     echo "/* $configure_input  */" >"$tmp/config.h"
52875     cat "$ac_result" >>"$tmp/config.h"
52876     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52877       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52878 echo "$as_me: $ac_file is unchanged" >&6;}
52879     else
52880       rm -f $ac_file
52881       mv "$tmp/config.h" $ac_file
52882     fi
52883   else
52884     echo "/* $configure_input  */"
52885     cat "$ac_result"
52886   fi
52887   rm -f "$tmp/out12"
52888  ;;
52889
52890   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52891 echo "$as_me: executing $ac_file commands" >&6;}
52892  ;;
52893   esac
52894
52895
52896   case $ac_file$ac_mode in
52897     "rcdefs.h":C)
52898             mkdir -p $outdir &&
52899             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52900          ;;
52901     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52902     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52903     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52904     "wx-config":C)  rm -f wx-config
52905                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52906                     ;;
52907
52908   esac
52909 done # for ac_tag
52910
52911
52912 { (exit 0); exit 0; }
52913 _ACEOF
52914 chmod +x $CONFIG_STATUS
52915 ac_clean_files=$ac_clean_files_save
52916
52917
52918 # configure is writing to config.log, and then calls config.status.
52919 # config.status does its own redirection, appending to config.log.
52920 # Unfortunately, on DOS this fails, as config.log is still kept open
52921 # by configure, so config.status won't be able to write to it; its
52922 # output is simply discarded.  So we exec the FD to /dev/null,
52923 # effectively closing config.log, so it can be properly (re)opened and
52924 # appended to by config.status.  When coming back to configure, we
52925 # need to make the FD available again.
52926 if test "$no_create" != yes; then
52927   ac_cs_success=:
52928   ac_config_status_args=
52929   test "$silent" = yes &&
52930     ac_config_status_args="$ac_config_status_args --quiet"
52931   exec 5>/dev/null
52932   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52933   exec 5>>config.log
52934   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52935   # would make configure fail if this is the last instruction.
52936   $ac_cs_success || { (exit 1); exit 1; }
52937 fi
52938
52939 #
52940 # CONFIG_SUBDIRS section.
52941 #
52942 if test "$no_recursion" != yes; then
52943
52944   # Remove --cache-file and --srcdir arguments so they do not pile up.
52945   ac_sub_configure_args=
52946   ac_prev=
52947   eval "set x $ac_configure_args"
52948   shift
52949   for ac_arg
52950   do
52951     if test -n "$ac_prev"; then
52952       ac_prev=
52953       continue
52954     fi
52955     case $ac_arg in
52956     -cache-file | --cache-file | --cache-fil | --cache-fi \
52957     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52958       ac_prev=cache_file ;;
52959     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52960     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52961     | --c=*)
52962       ;;
52963     --config-cache | -C)
52964       ;;
52965     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52966       ac_prev=srcdir ;;
52967     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52968       ;;
52969     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52970       ac_prev=prefix ;;
52971     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52972       ;;
52973     *)
52974       case $ac_arg in
52975       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52976       esac
52977       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52978     esac
52979   done
52980
52981   # Always prepend --prefix to ensure using the same prefix
52982   # in subdir configurations.
52983   ac_arg="--prefix=$prefix"
52984   case $ac_arg in
52985   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52986   esac
52987   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52988
52989   # Pass --silent
52990   if test "$silent" = yes; then
52991     ac_sub_configure_args="--silent $ac_sub_configure_args"
52992   fi
52993
52994   ac_popdir=`pwd`
52995   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52996
52997     # Do not complain, so a configure script can configure whichever
52998     # parts of a large source tree are present.
52999     test -d "$srcdir/$ac_dir" || continue
53000
53001     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
53002     echo "$as_me:$LINENO: $ac_msg" >&5
53003     echo "$ac_msg" >&6
53004     { as_dir="$ac_dir"
53005   case $as_dir in #(
53006   -*) as_dir=./$as_dir;;
53007   esac
53008   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53009     as_dirs=
53010     while :; do
53011       case $as_dir in #(
53012       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53013       *) as_qdir=$as_dir;;
53014       esac
53015       as_dirs="'$as_qdir' $as_dirs"
53016       as_dir=`$as_dirname -- "$as_dir" ||
53017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53018          X"$as_dir" : 'X\(//\)[^/]' \| \
53019          X"$as_dir" : 'X\(//\)$' \| \
53020          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53021 echo X"$as_dir" |
53022     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53023             s//\1/
53024             q
53025           }
53026           /^X\(\/\/\)[^/].*/{
53027             s//\1/
53028             q
53029           }
53030           /^X\(\/\/\)$/{
53031             s//\1/
53032             q
53033           }
53034           /^X\(\/\).*/{
53035             s//\1/
53036             q
53037           }
53038           s/.*/./; q'`
53039       test -d "$as_dir" && break
53040     done
53041     test -z "$as_dirs" || eval "mkdir $as_dirs"
53042   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53043 echo "$as_me: error: cannot create directory $as_dir" >&2;}
53044    { (exit 1); exit 1; }; }; }
53045     ac_builddir=.
53046
53047 case "$ac_dir" in
53048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53049 *)
53050   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53051   # A ".." for each directory in $ac_dir_suffix.
53052   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
53053   case $ac_top_builddir_sub in
53054   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53055   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53056   esac ;;
53057 esac
53058 ac_abs_top_builddir=$ac_pwd
53059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53060 # for backward compatibility:
53061 ac_top_builddir=$ac_top_build_prefix
53062
53063 case $srcdir in
53064   .)  # We are building in place.
53065     ac_srcdir=.
53066     ac_top_srcdir=$ac_top_builddir_sub
53067     ac_abs_top_srcdir=$ac_pwd ;;
53068   [\\/]* | ?:[\\/]* )  # Absolute name.
53069     ac_srcdir=$srcdir$ac_dir_suffix;
53070     ac_top_srcdir=$srcdir
53071     ac_abs_top_srcdir=$srcdir ;;
53072   *) # Relative name.
53073     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53074     ac_top_srcdir=$ac_top_build_prefix$srcdir
53075     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53076 esac
53077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53078
53079
53080     cd "$ac_dir"
53081
53082     # Check for guested configure; otherwise get Cygnus style configure.
53083     if test -f "$ac_srcdir/configure.gnu"; then
53084       ac_sub_configure=$ac_srcdir/configure.gnu
53085     elif test -f "$ac_srcdir/configure"; then
53086       ac_sub_configure=$ac_srcdir/configure
53087     elif test -f "$ac_srcdir/configure.in"; then
53088       # This should be Cygnus configure.
53089       ac_sub_configure=$ac_aux_dir/configure
53090     else
53091       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53092 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53093       ac_sub_configure=
53094     fi
53095
53096     # The recursion is here.
53097     if test -n "$ac_sub_configure"; then
53098       # Make the cache file name correct relative to the subdirectory.
53099       case $cache_file in
53100       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53101       *) # Relative name.
53102         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53103       esac
53104
53105       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53106 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53107       # The eval makes quoting arguments work.
53108       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53109            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53110         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53111 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53112    { (exit 1); exit 1; }; }
53113     fi
53114
53115     cd "$ac_popdir"
53116   done
53117 fi
53118
53119
53120 echo
53121 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53122 echo ""
53123 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53124 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53125 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53126 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53127 if test "$wxUSE_UNICODE" = "yes"; then
53128     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53129         echo " (using UTF-8)"
53130     else
53131         echo " (using wchar_t)"
53132     fi
53133 else
53134     echo
53135 fi
53136
53137 echo "  What level of wxWidgets compatibility should be enabled?"
53138 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53139 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53140
53141 echo "  Which libraries should wxWidgets use?"
53142 echo "                                       STL                ${wxUSE_STL}"
53143 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53144 echo "                                       png                ${wxUSE_LIBPNG-none}"
53145 echo "                                       regex              ${wxUSE_REGEX}"
53146 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53147 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53148 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53149 fi
53150 echo "                                       zlib               ${wxUSE_ZLIB}"
53151 echo "                                       expat              ${wxUSE_EXPAT}"
53152 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53153 echo "                                       sdl                ${wxUSE_LIBSDL}"
53154
53155 echo ""
53156