default to using graphics context on osx
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 54171 2008-06-12 18:51:50Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_LIBJPEG
727 wxUSE_LIBPNG
728 wxUSE_LIBTIFF
729 VENDOR
730 OFFICIAL_BUILD
731 WX_FLAVOUR
732 WX_LIB_FLAVOUR
733 WXUNIV
734 MONOLITHIC
735 USE_PLUGINS
736 CXXWARNINGS
737 EXTRALIBS
738 EXTRALIBS_XML
739 EXTRALIBS_HTML
740 EXTRALIBS_MEDIA
741 EXTRALIBS_GUI
742 EXTRALIBS_OPENGL
743 EXTRALIBS_SDL
744 EXTRALIBS_STC
745 WITH_PLUGIN_SDL
746 EXTRALIBS_GTKPRINT
747 EXTRALIBS_GNOMEPRINT
748 EXTRALIBS_GNOMEVFS
749 EXTRALIBS_HILDON
750 UNICODE
751 BUILD
752 DEBUG_INFO
753 DEBUG_FLAG
754 TOOLKIT_LOWERCASE
755 TOOLKIT_VERSION
756 SAMPLES_RPATH_FLAG
757 SAMPLES_RPATH_POSTLINK
758 HOST_SUFFIX
759 CPPUNIT_CFLAGS
760 CPPUNIT_LIBS
761 RANLIB
762 INSTALL_PROGRAM
763 INSTALL_SCRIPT
764 INSTALL_DATA
765 LN_S
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 STRIP
770 NM
771 INSTALL_DIR
772 LDFLAGS_GUI
773 IF_GNU_MAKE
774 PLATFORM_UNIX
775 PLATFORM_WIN32
776 PLATFORM_MSDOS
777 PLATFORM_MAC
778 PLATFORM_MACOS
779 PLATFORM_MACOSX
780 PLATFORM_OS2
781 PLATFORM_BEOS
782 SO_SUFFIX
783 SO_SUFFIX_MODULE
784 DLLIMP_SUFFIX
785 LIBPREFIX
786 LIBEXT
787 DLLPREFIX
788 DLLPREFIX_MODULE
789 dlldir
790 AIX_CXX_LD
791 SHARED_LD_CC
792 SHARED_LD_CXX
793 SHARED_LD_MODULE_CC
794 SHARED_LD_MODULE_CXX
795 PIC_FLAG
796 WINDOWS_IMPLIB
797 USE_SOVERSION
798 USE_SOVERLINUX
799 USE_SOVERSOLARIS
800 USE_SOVERCYGWIN
801 USE_MACVERSION
802 USE_SOSYMLINKS
803 SONAME_FLAG
804 DEPS_TRACKING
805 BK_DEPS
806 WINDRES
807 REZ
808 SETFILE
809 GCC_PCH
810 ICC_PCH
811 BK_MAKE_PCH
812 COND_BUILD_DEBUG
813 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
814 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
815 COND_BUILD_DEBUG_UNICODE_0
816 COND_BUILD_DEBUG_UNICODE_1
817 COND_BUILD_RELEASE
818 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
819 COND_BUILD_RELEASE_UNICODE_0
820 COND_BUILD_RELEASE_UNICODE_1
821 COND_DEBUG_FLAG_1
822 COND_DEBUG_INFO_0
823 COND_DEBUG_INFO_1
824 COND_DEPS_TRACKING_0
825 COND_DEPS_TRACKING_1
826 COND_GCC_PCH_1
827 COND_ICC_PCH_1
828 COND_MONOLITHIC_0
829 COND_MONOLITHIC_0_SHARED_0
830 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
836 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
837 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
838 COND_MONOLITHIC_0_SHARED_1
839 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
845 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
846 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
847 COND_MONOLITHIC_0_USE_AUI_1
848 COND_MONOLITHIC_0_USE_GUI_1
849 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
850 COND_MONOLITHIC_0_USE_HTML_1
851 COND_MONOLITHIC_0_USE_MEDIA_1
852 COND_MONOLITHIC_0_USE_QA_1
853 COND_MONOLITHIC_0_USE_RICHTEXT_1
854 COND_MONOLITHIC_0_USE_STC_1
855 COND_MONOLITHIC_0_USE_XRC_1
856 COND_MONOLITHIC_1
857 COND_MONOLITHIC_1_SHARED_0
858 COND_MONOLITHIC_1_SHARED_1
859 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
860 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
861 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
862 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
863 COND_PLATFORM_MACOSX_1
864 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
865 COND_PLATFORM_MACOSX_1_TOOLKIT_
866 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
867 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
869 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
870 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
871 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
872 COND_PLATFORM_MACOSX_1_USE_GUI_1
873 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
874 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
875 COND_PLATFORM_MACOS_1
876 COND_PLATFORM_MAC_0
877 COND_PLATFORM_MAC_1
878 COND_PLATFORM_MSDOS_0
879 COND_PLATFORM_MSDOS_1
880 COND_PLATFORM_OS2_1
881 COND_PLATFORM_UNIX_0
882 COND_PLATFORM_UNIX_1
883 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
884 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
885 COND_PLATFORM_UNIX_1_USE_GUI_1
886 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
887 COND_PLATFORM_WIN32_0
888 COND_PLATFORM_WIN32_1
889 COND_SHARED_0
890 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
891 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
892 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
893 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
895 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
897 COND_SHARED_0_USE_STC_1
898 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
899 COND_SHARED_0_WXUSE_REGEX_BUILTIN
900 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
901 COND_SHARED_1
902 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
903 COND_TOOLKIT_
904 COND_TOOLKIT_COCOA
905 COND_TOOLKIT_COCOA_USE_GUI_1
906 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
907 COND_TOOLKIT_DFB
908 COND_TOOLKIT_DFB_USE_GUI_1
909 COND_TOOLKIT_GTK
910 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
912 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
913 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
914 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_GTK_USE_GUI_1
918 COND_TOOLKIT_MAC
919 COND_TOOLKIT_MAC_USE_GUI_1
920 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_MGL
922 COND_TOOLKIT_MGL_USE_GUI_1
923 COND_TOOLKIT_MOTIF
924 COND_TOOLKIT_MOTIF_USE_GUI_1
925 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_MSW
927 COND_TOOLKIT_MSW_USE_GUI_1
928 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_MSW_WXUNIV_0
930 COND_TOOLKIT_PM
931 COND_TOOLKIT_PM_USE_GUI_1
932 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_WINCE
934 COND_TOOLKIT_WINCE_USE_GUI_1
935 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_WINCE_WXUNIV_0
937 COND_TOOLKIT_X11
938 COND_TOOLKIT_X11_USE_GUI_1
939 COND_UNICODE_1
940 COND_USE_EXCEPTIONS_0
941 COND_USE_EXCEPTIONS_1
942 COND_USE_GUI_0
943 COND_USE_GUI_1
944 COND_USE_GUI_1_USE_OPENGL_1
945 COND_USE_GUI_1_WXUNIV_0
946 COND_USE_GUI_1_WXUNIV_1
947 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
948 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
949 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
950 COND_USE_OPENGL_1
951 COND_USE_PCH_1
952 COND_USE_PLUGINS_0
953 COND_USE_RTTI_0
954 COND_USE_RTTI_1
955 COND_USE_SOSYMLINKS_1
956 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
957 COND_USE_SOVERLINUX_1
958 COND_USE_SOVERSION_0
959 COND_USE_SOVERSOLARIS_1
960 COND_USE_STC_1
961 COND_USE_THREADS_0
962 COND_USE_THREADS_1
963 COND_USE_XRC_1
964 COND_WINDOWS_IMPLIB_1
965 COND_WITH_PLUGIN_SDL_1
966 COND_WXUNIV_0
967 COND_WXUNIV_1
968 COND_WXUSE_EXPAT_BUILTIN
969 COND_WXUSE_LIBJPEG_BUILTIN
970 COND_WXUSE_LIBPNG_BUILTIN
971 COND_WXUSE_LIBTIFF_BUILTIN
972 COND_WXUSE_REGEX_BUILTIN
973 COND_WXUSE_ZLIB_BUILTIN
974 DEREZ
975 SHARED
976 WX_LIBRARY_BASENAME_NOGUI
977 WX_LIBRARY_BASENAME_GUI
978 USE_GUI
979 AFMINSTALL
980 WIN32INSTALL
981 TOOLKIT
982 TOOLKIT_DIR
983 TOOLCHAIN_NAME
984 TOOLCHAIN_FULLNAME
985 cross_compiling
986 WIDGET_SET
987 WX_RELEASE
988 WX_VERSION
989 WX_SUBVERSION
990 WX_CHARTYPE
991 WX_DEBUGTYPE
992 WXCONFIG_CPPFLAGS
993 WXCONFIG_CFLAGS
994 WXCONFIG_CXXFLAGS
995 WXCONFIG_LIBS
996 WXCONFIG_RPATH
997 WXCONFIG_LDFLAGS_GUI
998 WXCONFIG_RESFLAGS
999 GUIDIST
1000 DISTDIR
1001 SAMPLES_SUBDIRS
1002 LDFLAGS_GL
1003 OPENGL_LIBS
1004 DMALLOC_LIBS
1005 WX_VERSION_TAG
1006 RESCOMP
1007 RESFLAGS
1008 RESPROGRAMOBJ
1009 WX_RESOURCES_MACOSX_ASCII
1010 WX_RESOURCES_MACOSX_DATA
1011 LIBWXMACRES
1012 POSTLINK_COMMAND
1013 MACSETFILE
1014 GCC
1015 DLLTOOL
1016 CPPUNIT_CONFIG
1017 LIBOBJS
1018 LTLIBOBJS'
1019 ac_subst_files=''
1020       ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1023 CC
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1028 CPP
1029 CXX
1030 CXXFLAGS
1031 CCC
1032 PKG_CONFIG
1033 DIRECTFB_CFLAGS
1034 DIRECTFB_LIBS
1035 XMKMF
1036 PANGOX_CFLAGS
1037 PANGOX_LIBS
1038 PANGOFT2_CFLAGS
1039 PANGOFT2_LIBS
1040 PANGOXFT_CFLAGS
1041 PANGOXFT_LIBS
1042 GTKPRINT_CFLAGS
1043 GTKPRINT_LIBS
1044 LIBGNOMEPRINTUI_CFLAGS
1045 LIBGNOMEPRINTUI_LIBS
1046 GNOMEVFS_CFLAGS
1047 GNOMEVFS_LIBS
1048 HILDON_CFLAGS
1049 HILDON_LIBS
1050 CAIRO_CFLAGS
1051 CAIRO_LIBS
1052 GST_CFLAGS
1053 GST_LIBS'
1054 ac_subdirs_all='src/tiff
1055 src/expat'
1056
1057 # Initialize some variables set by options.
1058 ac_init_help=
1059 ac_init_version=false
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1076
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1102
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1106 do
1107   # If the previous option needs an argument, assign it.
1108   if test -n "$ac_prev"; then
1109     eval $ac_prev=\$ac_option
1110     ac_prev=
1111     continue
1112   fi
1113
1114   case $ac_option in
1115   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116   *)    ac_optarg=yes ;;
1117   esac
1118
1119   # Accept the important Cygnus configure options, so we can diagnose typos.
1120
1121   case $ac_dashdash$ac_option in
1122   --)
1123     ac_dashdash=yes ;;
1124
1125   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1126     ac_prev=bindir ;;
1127   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1128     bindir=$ac_optarg ;;
1129
1130   -build | --build | --buil | --bui | --bu)
1131     ac_prev=build_alias ;;
1132   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1133     build_alias=$ac_optarg ;;
1134
1135   -cache-file | --cache-file | --cache-fil | --cache-fi \
1136   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1137     ac_prev=cache_file ;;
1138   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1139   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1140     cache_file=$ac_optarg ;;
1141
1142   --config-cache | -C)
1143     cache_file=config.cache ;;
1144
1145   -datadir | --datadir | --datadi | --datad)
1146     ac_prev=datadir ;;
1147   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1148     datadir=$ac_optarg ;;
1149
1150   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1151   | --dataroo | --dataro | --datar)
1152     ac_prev=datarootdir ;;
1153   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1154   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1155     datarootdir=$ac_optarg ;;
1156
1157   -disable-* | --disable-*)
1158     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1164     eval enable_$ac_feature=no ;;
1165
1166   -docdir | --docdir | --docdi | --doc | --do)
1167     ac_prev=docdir ;;
1168   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1169     docdir=$ac_optarg ;;
1170
1171   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1172     ac_prev=dvidir ;;
1173   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1174     dvidir=$ac_optarg ;;
1175
1176   -enable-* | --enable-*)
1177     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181    { (exit 1); exit 1; }; }
1182     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183     eval enable_$ac_feature=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329     ac_prev=sbindir ;;
1330   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331   | --sbi=* | --sb=*)
1332     sbindir=$ac_optarg ;;
1333
1334   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336   | --sharedst | --shareds | --shared | --share | --shar \
1337   | --sha | --sh)
1338     ac_prev=sharedstatedir ;;
1339   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342   | --sha=* | --sh=*)
1343     sharedstatedir=$ac_optarg ;;
1344
1345   -site | --site | --sit)
1346     ac_prev=site ;;
1347   -site=* | --site=* | --sit=*)
1348     site=$ac_optarg ;;
1349
1350   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351     ac_prev=srcdir ;;
1352   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353     srcdir=$ac_optarg ;;
1354
1355   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356   | --syscon | --sysco | --sysc | --sys | --sy)
1357     ac_prev=sysconfdir ;;
1358   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360     sysconfdir=$ac_optarg ;;
1361
1362   -target | --target | --targe | --targ | --tar | --ta | --t)
1363     ac_prev=target_alias ;;
1364   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365     target_alias=$ac_optarg ;;
1366
1367   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368     verbose=yes ;;
1369
1370   -version | --version | --versio | --versi | --vers | -V)
1371     ac_init_version=: ;;
1372
1373   -with-* | --with-*)
1374     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       { echo "$as_me: error: invalid package name: $ac_package" >&2
1378    { (exit 1); exit 1; }; }
1379     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1380     eval with_$ac_package=\$ac_optarg ;;
1381
1382   -without-* | --without-*)
1383     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1384     # Reject names that are not valid shell variable names.
1385     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386       { echo "$as_me: error: invalid package name: $ac_package" >&2
1387    { (exit 1); exit 1; }; }
1388     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1389     eval with_$ac_package=no ;;
1390
1391   --x)
1392     # Obsolete; use --with-x.
1393     with_x=yes ;;
1394
1395   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1396   | --x-incl | --x-inc | --x-in | --x-i)
1397     ac_prev=x_includes ;;
1398   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1399   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1400     x_includes=$ac_optarg ;;
1401
1402   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1403   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1404     ac_prev=x_libraries ;;
1405   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1406   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1407     x_libraries=$ac_optarg ;;
1408
1409   -*) { echo "$as_me: error: unrecognized option: $ac_option
1410 Try \`$0 --help' for more information." >&2
1411    { (exit 1); exit 1; }; }
1412     ;;
1413
1414   *=*)
1415     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416     # Reject names that are not valid shell variable names.
1417     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1418       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1419    { (exit 1); exit 1; }; }
1420     eval $ac_envvar=\$ac_optarg
1421     export $ac_envvar ;;
1422
1423   *)
1424     # FIXME: should be removed in autoconf 3.0.
1425     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1426     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1427       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1428     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1429     ;;
1430
1431   esac
1432 done
1433
1434 if test -n "$ac_prev"; then
1435   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1436   { echo "$as_me: error: missing argument to $ac_option" >&2
1437    { (exit 1); exit 1; }; }
1438 fi
1439
1440 # Be sure to have absolute directory names.
1441 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1442                 datadir sysconfdir sharedstatedir localstatedir includedir \
1443                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1444                 libdir localedir mandir
1445 do
1446   eval ac_val=\$$ac_var
1447   case $ac_val in
1448     [\\/$]* | ?:[\\/]* )  continue;;
1449     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450   esac
1451   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1452    { (exit 1); exit 1; }; }
1453 done
1454
1455 # There might be people who depend on the old broken behavior: `$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1458 build=$build_alias
1459 host=$host_alias
1460 target=$target_alias
1461
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x; then
1464   if test "x$build_alias" = x; then
1465     cross_compiling=maybe
1466     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1467     If a cross compiler is detected then cross compile mode will be used." >&2
1468   elif test "x$build_alias" != "x$host_alias"; then
1469     cross_compiling=yes
1470   fi
1471 fi
1472
1473 ac_tool_prefix=
1474 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475
1476 test "$silent" = yes && exec 6>/dev/null
1477
1478
1479 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480 ac_ls_di=`ls -di .` &&
1481 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482   { echo "$as_me: error: Working directory cannot be determined" >&2
1483    { (exit 1); exit 1; }; }
1484 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1485   { echo "$as_me: error: pwd does not report name of working directory" >&2
1486    { (exit 1); exit 1; }; }
1487
1488
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491   ac_srcdir_defaulted=yes
1492   # Try the directory containing this script, then the parent directory.
1493   ac_confdir=`$as_dirname -- "$0" ||
1494 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495          X"$0" : 'X\(//\)[^/]' \| \
1496          X"$0" : 'X\(//\)$' \| \
1497          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1498 echo X"$0" |
1499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)[^/].*/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\/\)$/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\).*/{
1512             s//\1/
1513             q
1514           }
1515           s/.*/./; q'`
1516   srcdir=$ac_confdir
1517   if test ! -r "$srcdir/$ac_unique_file"; then
1518     srcdir=..
1519   fi
1520 else
1521   ac_srcdir_defaulted=no
1522 fi
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1526    { (exit 1); exit 1; }; }
1527 fi
1528 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 ac_abs_confdir=`(
1530         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1531    { (exit 1); exit 1; }; }
1532         pwd)`
1533 # When building in place, set srcdir=.
1534 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535   srcdir=.
1536 fi
1537 # Remove unnecessary trailing slashes from srcdir.
1538 # Double slashes in file names in object file debugging info
1539 # mess up M-x gdb in Emacs.
1540 case $srcdir in
1541 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1542 esac
1543 for ac_var in $ac_precious_vars; do
1544   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_env_${ac_var}_value=\$${ac_var}
1546   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1548 done
1549
1550 #
1551 # Report the --help message.
1552 #
1553 if test "$ac_init_help" = "long"; then
1554   # Omit some internal or obsolete options to make the list less imposing.
1555   # This message is too long to be a string in the A/UX 3.1 sh.
1556   cat <<_ACEOF
1557 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1558
1559 Usage: $0 [OPTION]... [VAR=VALUE]...
1560
1561 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1562 VAR=VALUE.  See below for descriptions of some of the useful variables.
1563
1564 Defaults for the options are specified in brackets.
1565
1566 Configuration:
1567   -h, --help              display this help and exit
1568       --help=short        display options specific to this package
1569       --help=recursive    display the short help of all the included packages
1570   -V, --version           display version information and exit
1571   -q, --quiet, --silent   do not print \`checking...' messages
1572       --cache-file=FILE   cache test results in FILE [disabled]
1573   -C, --config-cache      alias for \`--cache-file=config.cache'
1574   -n, --no-create         do not create output files
1575       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1576
1577 Installation directories:
1578   --prefix=PREFIX         install architecture-independent files in PREFIX
1579                           [$ac_default_prefix]
1580   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1581                           [PREFIX]
1582
1583 By default, \`make install' will install all the files in
1584 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1585 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1586 for instance \`--prefix=\$HOME'.
1587
1588 For better control, use the options below.
1589
1590 Fine tuning of the installation directories:
1591   --bindir=DIR           user executables [EPREFIX/bin]
1592   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1593   --libexecdir=DIR       program executables [EPREFIX/libexec]
1594   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1595   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1596   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1597   --libdir=DIR           object code libraries [EPREFIX/lib]
1598   --includedir=DIR       C header files [PREFIX/include]
1599   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1600   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1601   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1602   --infodir=DIR          info documentation [DATAROOTDIR/info]
1603   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1604   --mandir=DIR           man documentation [DATAROOTDIR/man]
1605   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1606   --htmldir=DIR          html documentation [DOCDIR]
1607   --dvidir=DIR           dvi documentation [DOCDIR]
1608   --pdfdir=DIR           pdf documentation [DOCDIR]
1609   --psdir=DIR            ps documentation [DOCDIR]
1610 _ACEOF
1611
1612   cat <<\_ACEOF
1613
1614 X features:
1615   --x-includes=DIR    X include files are in DIR
1616   --x-libraries=DIR   X library files are in DIR
1617
1618 System types:
1619   --build=BUILD     configure for building on BUILD [guessed]
1620   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621   --target=TARGET   configure for building compilers for TARGET [HOST]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626   case $ac_init_help in
1627      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1628    esac
1629   cat <<\_ACEOF
1630
1631 Optional Features:
1632   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1633   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1634   --disable-gui           don't build GUI parts of the library
1635   --enable-monolithic     build wxWidgets as single library
1636   --enable-plugins        build parts of wxWidgets as loadable components
1637   --enable-official_build official build of wxWidgets (win32 DLL only)
1638   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1639   --disable-all-features  disable all optional features to build minimal library
1640   --enable-universal      use wxWidgets GUI controls instead of native ones
1641   --enable-nanox          use NanoX
1642   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1643   --enable-gpe            use GNOME PDA Environment features if possible
1644   --disable-shared        create static library instead of shared
1645   --disable-optimise      compile without optimisations
1646   --enable-debug          same as debug_flag and debug_info
1647   --enable-stl            use STL for containers
1648   --enable-std_iostreams  use standard C++ stream classes
1649   --enable-std_string     use standard C++ string classes
1650   --disable-unicode       compile without Unicode support
1651   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1652   --enable-utf8           use UTF-8 representation for strings (Unix only)
1653   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1654   --enable-extended_rtti  use extended RTTI (XTI)
1655   --enable-omf            use OMF object format
1656   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1657   --enable-debug_info     create code with debugging information
1658   --enable-debug_gdb      create code with extra GDB debugging information
1659   --enable-debug_cntxt    use wxDebugContext
1660   --enable-mem_tracing    create code with memory tracing
1661   --enable-profile        create code with profiling information
1662   --enable-no_rtti        create code without RTTI information
1663   --enable-no_exceptions  create code without C++ exceptions handling
1664   --enable-permissive     compile code disregarding strict ANSI
1665   --enable-no_deps        create code without dependency information
1666   --disable-vararg_macros don't use vararg macros, even if they are supported
1667   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1668   --enable-compat26       enable wxWidgets 2.6 compatibility
1669   --disable-compat28      disable wxWidgets 2.8 compatibility
1670   --disable-rpath         disable use of rpath for uninstalled builds
1671   --enable-objc_uniquifying enable Objective-C class name uniquifying
1672   --disable-visibility    disable use of ELF symbols visibility even if supported
1673   --enable-intl           use internationalization system
1674   --enable-xlocale        use x-locale support (requires wxLocale)
1675   --enable-config         use wxConfig (and derived) classes
1676   --enable-protocols      use wxProtocol and derived classes
1677   --enable-ftp            use wxFTP (requires wxProtocol
1678   --enable-http           use wxHTTP (requires wxProtocol
1679   --enable-fileproto      use wxFileProto class (requires wxProtocol
1680   --enable-sockets        use socket/network classes
1681   --enable-ipv6           enable IPv6 support in wxSocket
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1713   --enable-snglinst       use wxSingleInstanceChecker class
1714   --enable-sound          use wxSound class
1715   --enable-stdpaths       use wxStandardPaths class
1716   --enable-stopwatch      use wxStopWatch class
1717   --enable-streams        use wxStream etc classes
1718   --enable-sysoptions     use wxSystemOptions
1719   --enable-tarstream      use wxTar streams
1720   --enable-textbuf        use wxTextBuffer class
1721   --enable-textfile       use wxTextFile class
1722   --enable-timer          use wxTimer class
1723   --enable-variant        use wxVariant class
1724   --enable-zipstream      use wxZip streams
1725   --enable-url            use wxURL class
1726   --enable-protocol       use wxProtocol class
1727   --enable-protocol-http  HTTP support in wxProtocol
1728   --enable-protocol-ftp   FTP support in wxProtocol
1729   --enable-protocol-file  FILE support in wxProtocol
1730   --enable-threads        use threads
1731   --enable-iniconf        use wxIniConfig (Win32 only)
1732   --enable-regkey         use wxRegKey class (Win32 only)
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-loggui         use standard GUI logger
1743   --enable-logwin         use wxLogWindow
1744   --enable-logdialog      use wxLogDialog
1745   --enable-mdi            use multiple document interface architecture
1746   --enable-mdidoc         use docview architecture with MDI
1747   --enable-mediactrl      use wxMediaCtrl class
1748   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1749   --enable-webkit         use wxWebKitCtrl (Mac)
1750   --enable-richtext       use wxRichTextCtrl
1751   --enable-graphics_ctx   use graphics context 2D drawing API
1752   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1753   --enable-printarch      use printing architecture
1754   --enable-svg            use wxSVGFileDC device context
1755   --enable-clipboard      use wxClipboard class
1756   --enable-dnd            use Drag'n'Drop classes
1757   --enable-metafile       use win32 metafiles
1758   --disable-controls      disable compilation of all standard controls
1759   --enable-accel          use accelerators
1760   --enable-animatectrl    use wxAnimationCtrl class
1761   --enable-button         use wxButton class
1762   --enable-bmpbutton      use wxBitmapButton class
1763   --enable-bmpcombobox    use wxBitmapComboBox class
1764   --enable-calendar       use wxCalendarCtrl class
1765   --enable-caret          use wxCaret class
1766   --enable-checkbox       use wxCheckBox class
1767   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1768   --enable-choice         use wxChoice class
1769   --enable-choicebook     use wxChoicebook class
1770   --enable-collpane       use wxCollapsiblePane class
1771   --enable-colourpicker   use wxColourPickerCtrl class
1772   --enable-combobox       use wxComboBox class
1773   --enable-comboctrl      use wxComboCtrl class
1774   --enable-datepick       use wxDatePickerCtrl class
1775   --enable-dirpicker      use wxDirPickerCtrl class
1776   --enable-display        use wxDisplay class
1777   --enable-detect_sm      use code to detect X11 session manager
1778   --enable-editablebox    use wxEditableListBox class
1779   --enable-filepicker     use wxFilePickerCtrl class
1780   --enable-filectrl       use wxFileCtrl class
1781   --enable-fontpicker     use wxFontPickerCtrl class
1782   --enable-gauge          use wxGauge class
1783   --enable-grid           use wxGrid class
1784   --enable-dataviewctrl   use wxDataViewCtrl class
1785   --enable-hyperlink      use wxHyperlinkCtrl class
1786   --enable-imaglist       use wxImageList class
1787   --enable-listbook       use wxListbook class
1788   --enable-listbox        use wxListBox class
1789   --enable-listctrl       use wxListCtrl class
1790   --enable-notebook       use wxNotebook class
1791   --enable-notifmsg       use wxNotificationMessage class
1792   --enable-odcombobox     use wxOwnerDrawnComboBox class
1793   --enable-radiobox       use wxRadioBox class
1794   --enable-radiobtn       use wxRadioButton class
1795   --enable-sash           use wxSashWindow class
1796   --enable-scrollbar      use wxScrollBar class and scrollable windows
1797   --enable-searchctrl     use wxSearchCtrl class
1798   --enable-slider         use wxSlider class
1799   --enable-spinbtn        use wxSpinButton class
1800   --enable-spinctrl       use wxSpinCtrl class
1801   --enable-splitter       use wxSplitterWindow class
1802   --enable-statbmp        use wxStaticBitmap class
1803   --enable-statbox        use wxStaticBox class
1804   --enable-statline       use wxStaticLine class
1805   --enable-stattext       use wxStaticText class
1806   --enable-statusbar      use wxStatusBar class
1807   --enable-tabdialog      use wxTabControl class
1808   --enable-taskbaricon    use wxTaskBarIcon class
1809   --enable-textctrl       use wxTextCtrl class
1810   --enable-togglebtn      use wxToggleButton class
1811   --enable-toolbar        use wxToolBar class
1812   --enable-tbarnative     use native wxToolBar class
1813   --enable-treebook       use wxTreebook class
1814   --enable-toolbook       use wxToolbook class
1815   --enable-treectrl       use wxTreeCtrl class
1816   --enable-tipwindow      use wxTipWindow class
1817   --enable-popupwin       use wxPopUpWindow class
1818   --enable-commondlg      use all common dialogs
1819   --enable-aboutdlg       use wxAboutBox
1820   --enable-choicedlg      use wxChoiceDialog
1821   --enable-coldlg         use wxColourDialog
1822   --enable-filedlg        use wxFileDialog
1823   --enable-finddlg        use wxFindReplaceDialog
1824   --enable-fontdlg        use wxFontDialog
1825   --enable-dirdlg         use wxDirDialog
1826   --enable-msgdlg         use wxMessageDialog
1827   --enable-numberdlg      use wxNumberEntryDialog
1828   --enable-splash         use wxSplashScreen
1829   --enable-textdlg        use wxTextDialog
1830   --enable-tipdlg         use startup tips
1831   --enable-progressdlg    use wxProgressDialog
1832   --enable-wizarddlg      use wxWizard
1833   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1834   --enable-miniframe      use wxMiniFrame class
1835   --enable-tooltips       use wxToolTip class
1836   --enable-splines        use spline drawing code
1837   --enable-mousewheel     use mousewheel
1838   --enable-validators     use wxValidator and derived classes
1839   --enable-busyinfo       use wxBusyInfo
1840   --enable-joystick       use wxJoystick
1841   --enable-metafiles      use wxMetaFile (Win32 only)
1842   --enable-dragimage      use wxDragImage
1843   --enable-accessibility  enable accessibility support
1844   --enable-palette        use wxPalette class
1845   --enable-image          use wxImage class
1846   --enable-gif            use gif images (GIF file format)
1847   --enable-pcx            use pcx images (PCX file format)
1848   --enable-tga            use tga images (TGA file format)
1849   --enable-iff            use iff images (IFF file format)
1850   --enable-pnm            use pnm images (PNM file format)
1851   --enable-xpm            use xpm images (XPM file format)
1852   --enable-ico_cur        use Windows ICO and CUR formats
1853   --enable-dccache        cache temporary wxDC objects (Win32 only)
1854   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1855   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1856   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1857   --enable-wxdib          use wxDIB class (Win32 only)
1858   --enable-autoidman      use automatic ids management
1859   --disable-largefile     omit support for large files
1860   --disable-gtktest       do not try to compile and run a test GTK+ program
1861   --disable-gtktest       Do not try to compile and run a test GTK program
1862   --disable-sdltest       Do not try to compile and run a test SDL program
1863   --enable-omf            use OMF object format (OS/2)
1864   --disable-dependency-tracking
1865                           don't use dependency tracking even if the compiler
1866                           can
1867   --disable-precomp-headers
1868                           don't use precompiled headers even if compiler can
1869
1870 Optional Packages:
1871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1873   --without-subdirs       don't generate makefiles for samples/demos/...
1874   --with-flavour=NAME     specify a name to identify this build
1875   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1876   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1877   --with-motif            use Motif/Lesstif
1878   --with-mac              use Mac OS X
1879   --with-cocoa            use Cocoa
1880   --with-wine             use Wine
1881   --with-msw              use MS-Windows
1882   --with-pm               use OS/2 Presentation Manager
1883   --with-mgl              use SciTech MGL
1884   --with-directfb         use DirectFB
1885   --with-microwin         use MicroWindows
1886   --with-x11              use X11
1887   --with-libpng           use libpng (PNG image format)
1888   --with-libjpeg          use libjpeg (JPEG file format)
1889   --with-libtiff          use libtiff (TIFF file format)
1890   --with-libxpm           use libxpm (XPM file format)
1891   --with-libiconv         use libiconv (character conversion)
1892   --with-libmspack        use libmspack (CHM help files loading)
1893   --without-gtkprint      don't use GTK printing support
1894   --without-gnomeprint    don't use GNOME printing libraries
1895   --with-gnomevfs         use GNOME VFS for associating MIME types
1896   --with-hildon           use Hildon framework for Nokia 770
1897   --with-opengl           use OpenGL (or Mesa)
1898   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1899   --with-sdl              use SDL for audio on Unix
1900   --with-regex            enable support for wxRegEx class
1901   --with-zlib             use zlib for LZW compression
1902   --with-expat            enable XML support using expat parser
1903   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1904   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1905   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1906   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1907   --with-x                use the X Window System
1908   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1909   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1910   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1911   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1912   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1913
1914 Some influential environment variables:
1915   CC          C compiler command
1916   CFLAGS      C compiler flags
1917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1918               nonstandard directory <lib dir>
1919   LIBS        libraries to pass to the linker, e.g. -l<library>
1920   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1921               you have headers in a nonstandard directory <include dir>
1922   CPP         C preprocessor
1923   CXX         C++ compiler command
1924   CXXFLAGS    C++ compiler flags
1925   PKG_CONFIG  path to pkg-config utility
1926   DIRECTFB_CFLAGS
1927               C compiler flags for DIRECTFB, overriding pkg-config
1928   DIRECTFB_LIBS
1929               linker flags for DIRECTFB, overriding pkg-config
1930   XMKMF       Path to xmkmf, Makefile generator for X Window System
1931   PANGOX_CFLAGS
1932               C compiler flags for PANGOX, overriding pkg-config
1933   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1934   PANGOFT2_CFLAGS
1935               C compiler flags for PANGOFT2, overriding pkg-config
1936   PANGOFT2_LIBS
1937               linker flags for PANGOFT2, overriding pkg-config
1938   PANGOXFT_CFLAGS
1939               C compiler flags for PANGOXFT, overriding pkg-config
1940   PANGOXFT_LIBS
1941               linker flags for PANGOXFT, overriding pkg-config
1942   GTKPRINT_CFLAGS
1943               C compiler flags for GTKPRINT, overriding pkg-config
1944   GTKPRINT_LIBS
1945               linker flags for GTKPRINT, overriding pkg-config
1946   LIBGNOMEPRINTUI_CFLAGS
1947               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1948   LIBGNOMEPRINTUI_LIBS
1949               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1950   GNOMEVFS_CFLAGS
1951               C compiler flags for GNOMEVFS, overriding pkg-config
1952   GNOMEVFS_LIBS
1953               linker flags for GNOMEVFS, overriding pkg-config
1954   HILDON_CFLAGS
1955               C compiler flags for HILDON, overriding pkg-config
1956   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1957   CAIRO_CFLAGS
1958               C compiler flags for CAIRO, overriding pkg-config
1959   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1960   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1961   GST_LIBS    linker flags for GST, overriding pkg-config
1962
1963 Use these variables to override the choices made by `configure' or to help
1964 it to find libraries and programs with nonstandard names/locations.
1965
1966 Report bugs to <wx-dev@lists.wxwidgets.org>.
1967 _ACEOF
1968 ac_status=$?
1969 fi
1970
1971 if test "$ac_init_help" = "recursive"; then
1972   # If there are subdirs, report their specific --help.
1973   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1974     test -d "$ac_dir" || continue
1975     ac_builddir=.
1976
1977 case "$ac_dir" in
1978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *)
1980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1981   # A ".." for each directory in $ac_dir_suffix.
1982   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1983   case $ac_top_builddir_sub in
1984   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1986   esac ;;
1987 esac
1988 ac_abs_top_builddir=$ac_pwd
1989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1990 # for backward compatibility:
1991 ac_top_builddir=$ac_top_build_prefix
1992
1993 case $srcdir in
1994   .)  # We are building in place.
1995     ac_srcdir=.
1996     ac_top_srcdir=$ac_top_builddir_sub
1997     ac_abs_top_srcdir=$ac_pwd ;;
1998   [\\/]* | ?:[\\/]* )  # Absolute name.
1999     ac_srcdir=$srcdir$ac_dir_suffix;
2000     ac_top_srcdir=$srcdir
2001     ac_abs_top_srcdir=$srcdir ;;
2002   *) # Relative name.
2003     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2004     ac_top_srcdir=$ac_top_build_prefix$srcdir
2005     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2006 esac
2007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2008
2009     cd "$ac_dir" || { ac_status=$?; continue; }
2010     # Check for guested configure.
2011     if test -f "$ac_srcdir/configure.gnu"; then
2012       echo &&
2013       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2014     elif test -f "$ac_srcdir/configure"; then
2015       echo &&
2016       $SHELL "$ac_srcdir/configure" --help=recursive
2017     else
2018       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2019     fi || ac_status=$?
2020     cd "$ac_pwd" || { ac_status=$?; break; }
2021   done
2022 fi
2023
2024 test -n "$ac_init_help" && exit $ac_status
2025 if $ac_init_version; then
2026   cat <<\_ACEOF
2027 wxWidgets configure 2.9.0
2028 generated by GNU Autoconf 2.61
2029
2030 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2031 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2032 This configure script is free software; the Free Software Foundation
2033 gives unlimited permission to copy, distribute and modify it.
2034 _ACEOF
2035   exit
2036 fi
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by wxWidgets $as_me 2.9.0, which was
2042 generated by GNU Autoconf 2.61.  Invocation command line was
2043
2044   $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2062
2063 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2064 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2067 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2068 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2069 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078   echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105   for ac_arg
2106   do
2107     case $ac_arg in
2108     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110     | -silent | --silent | --silen | --sile | --sil)
2111       continue ;;
2112     *\'*)
2113       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114     esac
2115     case $ac_pass in
2116     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2117     2)
2118       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2119       if test $ac_must_keep_next = true; then
2120         ac_must_keep_next=false # Got value, back to normal.
2121       else
2122         case $ac_arg in
2123           *=* | --config-cache | -C | -disable-* | --disable-* \
2124           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126           | -with-* | --with-* | -without-* | --without-* | --x)
2127             case "$ac_configure_args0 " in
2128               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129             esac
2130             ;;
2131           -* ) ac_must_keep_next=true ;;
2132         esac
2133       fi
2134       ac_configure_args="$ac_configure_args '$ac_arg'"
2135       ;;
2136     esac
2137   done
2138 done
2139 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2140 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log.  We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148   # Save into config.log some information that might help in debugging.
2149   {
2150     echo
2151
2152     cat <<\_ASBOX
2153 ## ---------------- ##
2154 ## Cache variables. ##
2155 ## ---------------- ##
2156 _ASBOX
2157     echo
2158     # The following way of writing the cache mishandles newlines in values,
2159 (
2160   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161     eval ac_val=\$$ac_var
2162     case $ac_val in #(
2163     *${as_nl}*)
2164       case $ac_var in #(
2165       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2166 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2167       esac
2168       case $ac_var in #(
2169       _ | IFS | as_nl) ;; #(
2170       *) $as_unset $ac_var ;;
2171       esac ;;
2172     esac
2173   done
2174   (set) 2>&1 |
2175     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176     *${as_nl}ac_space=\ *)
2177       sed -n \
2178         "s/'\''/'\''\\\\'\'''\''/g;
2179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180       ;; #(
2181     *)
2182       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183       ;;
2184     esac |
2185     sort
2186 )
2187     echo
2188
2189     cat <<\_ASBOX
2190 ## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##
2193 _ASBOX
2194     echo
2195     for ac_var in $ac_subst_vars
2196     do
2197       eval ac_val=\$$ac_var
2198       case $ac_val in
2199       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200       esac
2201       echo "$ac_var='\''$ac_val'\''"
2202     done | sort
2203     echo
2204
2205     if test -n "$ac_subst_files"; then
2206       cat <<\_ASBOX
2207 ## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##
2210 _ASBOX
2211       echo
2212       for ac_var in $ac_subst_files
2213       do
2214         eval ac_val=\$$ac_var
2215         case $ac_val in
2216         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217         esac
2218         echo "$ac_var='\''$ac_val'\''"
2219       done | sort
2220       echo
2221     fi
2222
2223     if test -s confdefs.h; then
2224       cat <<\_ASBOX
2225 ## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##
2228 _ASBOX
2229       echo
2230       cat confdefs.h
2231       echo
2232     fi
2233     test "$ac_signal" != 0 &&
2234       echo "$as_me: caught signal $ac_signal"
2235     echo "$as_me: exit $exit_status"
2236   } >&5
2237   rm -f core *.core core.conftest.* &&
2238     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239     exit $exit_status
2240 ' 0
2241 for ac_signal in 1 2 13 15; do
2242   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2243 done
2244 ac_signal=0
2245
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2248
2249 # Predefined preprocessor variables.
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2253 _ACEOF
2254
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 _ACEOF
2259
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 _ACEOF
2264
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_STRING "$PACKAGE_STRING"
2268 _ACEOF
2269
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 _ACEOF
2274
2275
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer explicitly selected file to automatically selected ones.
2278 if test -n "$CONFIG_SITE"; then
2279   set x "$CONFIG_SITE"
2280 elif test "x$prefix" != xNONE; then
2281   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2282 else
2283   set x "$ac_default_prefix/share/config.site" \
2284         "$ac_default_prefix/etc/config.site"
2285 fi
2286 shift
2287 for ac_site_file
2288 do
2289   if test -r "$ac_site_file"; then
2290     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2291 echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file"
2294   fi
2295 done
2296
2297 if test -r "$cache_file"; then
2298   # Some versions of bash will fail to source /dev/null (special
2299   # files actually), so we avoid doing that.
2300   if test -f "$cache_file"; then
2301     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2302 echo "$as_me: loading cache $cache_file" >&6;}
2303     case $cache_file in
2304       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305       *)                      . "./$cache_file";;
2306     esac
2307   fi
2308 else
2309   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2310 echo "$as_me: creating cache $cache_file" >&6;}
2311   >$cache_file
2312 fi
2313
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319   eval ac_new_set=\$ac_env_${ac_var}_set
2320   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321   eval ac_new_val=\$ac_env_${ac_var}_value
2322   case $ac_old_set,$ac_new_set in
2323     set,)
2324       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326       ac_cache_corrupted=: ;;
2327     ,set)
2328       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2329 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330       ac_cache_corrupted=: ;;
2331     ,);;
2332     *)
2333       if test "x$ac_old_val" != "x$ac_new_val"; then
2334         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2335 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2337 echo "$as_me:   former value:  $ac_old_val" >&2;}
2338         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2339 echo "$as_me:   current value: $ac_new_val" >&2;}
2340         ac_cache_corrupted=:
2341       fi;;
2342   esac
2343   # Pass precious variables to config.status.
2344   if test "$ac_new_set" = set; then
2345     case $ac_new_val in
2346     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2347     *) ac_arg=$ac_var=$ac_new_val ;;
2348     esac
2349     case " $ac_configure_args " in
2350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2352     esac
2353   fi
2354 done
2355 if $ac_cache_corrupted; then
2356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2360    { (exit 1); exit 1; }; }
2361 fi
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395
2396
2397 ac_aux_dir=
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399   if test -f "$ac_dir/install-sh"; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/install-sh -c"
2402     break
2403   elif test -f "$ac_dir/install.sh"; then
2404     ac_aux_dir=$ac_dir
2405     ac_install_sh="$ac_aux_dir/install.sh -c"
2406     break
2407   elif test -f "$ac_dir/shtool"; then
2408     ac_aux_dir=$ac_dir
2409     ac_install_sh="$ac_aux_dir/shtool install -c"
2410     break
2411   fi
2412 done
2413 if test -z "$ac_aux_dir"; then
2414   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2415 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2425 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426
2427
2428 # Make sure we can run config.sub.
2429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2431 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2432    { (exit 1); exit 1; }; }
2433
2434 { echo "$as_me:$LINENO: checking build system type" >&5
2435 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2436 if test "${ac_cv_build+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   ac_build_alias=$build_alias
2440 test "x$ac_build_alias" = x &&
2441   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2442 test "x$ac_build_alias" = x &&
2443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2445    { (exit 1); exit 1; }; }
2446 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2447   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2448 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2449    { (exit 1); exit 1; }; }
2450
2451 fi
2452 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2453 echo "${ECHO_T}$ac_cv_build" >&6; }
2454 case $ac_cv_build in
2455 *-*-*) ;;
2456 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2457 echo "$as_me: error: invalid value of canonical build" >&2;}
2458    { (exit 1); exit 1; }; };;
2459 esac
2460 build=$ac_cv_build
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_build
2463 shift
2464 build_cpu=$1
2465 build_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 build_os=$*
2470 IFS=$ac_save_IFS
2471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 { echo "$as_me:$LINENO: checking host system type" >&5
2475 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2476 if test "${ac_cv_host+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test "x$host_alias" = x; then
2480   ac_cv_host=$ac_cv_build
2481 else
2482   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2484 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2485    { (exit 1); exit 1; }; }
2486 fi
2487
2488 fi
2489 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2490 echo "${ECHO_T}$ac_cv_host" >&6; }
2491 case $ac_cv_host in
2492 *-*-*) ;;
2493 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2494 echo "$as_me: error: invalid value of canonical host" >&2;}
2495    { (exit 1); exit 1; }; };;
2496 esac
2497 host=$ac_cv_host
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_host
2500 shift
2501 host_cpu=$1
2502 host_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 host_os=$*
2507 IFS=$ac_save_IFS
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 { echo "$as_me:$LINENO: checking target system type" >&5
2512 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_target+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   if test "x$target_alias" = x; then
2517   ac_cv_target=$ac_cv_host
2518 else
2519   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2520     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524
2525 fi
2526 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2527 echo "${ECHO_T}$ac_cv_target" >&6; }
2528 case $ac_cv_target in
2529 *-*-*) ;;
2530 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2531 echo "$as_me: error: invalid value of canonical target" >&2;}
2532    { (exit 1); exit 1; }; };;
2533 esac
2534 target=$ac_cv_target
2535 ac_save_IFS=$IFS; IFS='-'
2536 set x $ac_cv_target
2537 shift
2538 target_cpu=$1
2539 target_vendor=$2
2540 shift; shift
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2543 target_os=$*
2544 IFS=$ac_save_IFS
2545 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2546
2547
2548 # The aliases save the names the user supplied, while $host etc.
2549 # will get canonicalized.
2550 test -n "$target_alias" &&
2551   test "$program_prefix$program_suffix$program_transform_name" = \
2552     NONENONEs,x,x, &&
2553   program_prefix=${target_alias}-
2554
2555
2556
2557 wx_major_version_number=2
2558 wx_minor_version_number=9
2559 wx_release_number=0
2560 wx_subrelease_number=0
2561
2562 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2563 WX_VERSION=$WX_RELEASE.$wx_release_number
2564 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2565
2566 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2567
2568
2569 wx_top_builddir="`pwd`"
2570
2571
2572
2573
2574 USE_UNIX=1
2575 USE_OS2=0
2576 USE_WIN32=0
2577 USE_DOS=0
2578 USE_BEOS=0
2579 USE_MAC=0
2580
2581 USE_AIX=
2582 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2583 USE_GNU=                            USE_HPUX=
2584 USE_LINUX=
2585 USE_NETBSD=
2586 USE_OPENBSD=
2587 USE_OSF=                            USE_SGI=
2588 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2589 USE_ULTRIX=
2590 USE_UNIXWARE=
2591
2592 USE_ALPHA=
2593
2594 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2595
2596 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2597
2598 DEFAULT_wxUSE_COCOA=0
2599 DEFAULT_wxUSE_GTK=0
2600 DEFAULT_wxUSE_MAC=0
2601 DEFAULT_wxUSE_MGL=0
2602 DEFAULT_wxUSE_MICROWIN=0
2603 DEFAULT_wxUSE_MOTIF=0
2604 DEFAULT_wxUSE_MSW=0
2605 DEFAULT_wxUSE_PM=0
2606 DEFAULT_wxUSE_X11=0
2607 DEFAULT_wxUSE_DFB=0
2608
2609 DEFAULT_DEFAULT_wxUSE_COCOA=0
2610 DEFAULT_DEFAULT_wxUSE_GTK=0
2611 DEFAULT_DEFAULT_wxUSE_MAC=0
2612 DEFAULT_DEFAULT_wxUSE_MGL=0
2613 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2614 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2615 DEFAULT_DEFAULT_wxUSE_MSW=0
2616 DEFAULT_DEFAULT_wxUSE_PM=0
2617 DEFAULT_DEFAULT_wxUSE_X11=0
2618 DEFAULT_DEFAULT_wxUSE_DFB=0
2619
2620 PROGRAM_EXT=
2621 SO_SUFFIX=so
2622 SAMPLES_RPATH_FLAG=
2623 SAMPLES_RPATH_POSTLINK=
2624
2625 DEFAULT_STD_FLAG=yes
2626
2627 case "${host}" in
2628   *-hp-hpux* )
2629     USE_HPUX=1
2630     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2631     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2632     SO_SUFFIX=sl
2633     cat >>confdefs.h <<\_ACEOF
2634 #define __HPUX__ 1
2635 _ACEOF
2636
2637
2638             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2639   ;;
2640   *-*-linux* )
2641     USE_LINUX=1
2642     cat >>confdefs.h <<\_ACEOF
2643 #define __LINUX__ 1
2644 _ACEOF
2645
2646     TMP=`uname -m`
2647     if test "x$TMP" = "xalpha"; then
2648       USE_ALPHA=1
2649       cat >>confdefs.h <<\_ACEOF
2650 #define __ALPHA__ 1
2651 _ACEOF
2652
2653     fi
2654     DEFAULT_DEFAULT_wxUSE_GTK=1
2655   ;;
2656   *-*-gnu* | *-*-k*bsd*-gnu )
2657     USE_GNU=1
2658     TMP=`uname -m`
2659     if test "x$TMP" = "xalpha"; then
2660       USE_ALPHA=1
2661       cat >>confdefs.h <<\_ACEOF
2662 #define __ALPHA__ 1
2663 _ACEOF
2664
2665     fi
2666     DEFAULT_DEFAULT_wxUSE_GTK=1
2667   ;;
2668   *-*-irix5* | *-*-irix6* )
2669     USE_SGI=1
2670     USE_SVR4=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __SGI__ 1
2673 _ACEOF
2674
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SVR4__ 1
2677 _ACEOF
2678
2679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2680   ;;
2681   *-*-solaris2* )
2682     USE_SUN=1
2683     USE_SOLARIS=1
2684     USE_SVR4=1
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SUN__ 1
2687 _ACEOF
2688
2689     cat >>confdefs.h <<\_ACEOF
2690 #define __SOLARIS__ 1
2691 _ACEOF
2692
2693     cat >>confdefs.h <<\_ACEOF
2694 #define __SVR4__ 1
2695 _ACEOF
2696
2697     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2698     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2699   ;;
2700   *-*-sunos4* )
2701     USE_SUN=1
2702     USE_SUNOS=1
2703     USE_BSD=1
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __SUN__ 1
2706 _ACEOF
2707
2708     cat >>confdefs.h <<\_ACEOF
2709 #define __SUNOS__ 1
2710 _ACEOF
2711
2712     cat >>confdefs.h <<\_ACEOF
2713 #define __BSD__ 1
2714 _ACEOF
2715
2716     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2717   ;;
2718   *-*-freebsd*)
2719     USE_BSD=1
2720     USE_FREEBSD=1
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __FREEBSD__ 1
2723 _ACEOF
2724
2725     cat >>confdefs.h <<\_ACEOF
2726 #define __BSD__ 1
2727 _ACEOF
2728
2729     DEFAULT_DEFAULT_wxUSE_GTK=1
2730   ;;
2731   *-*-openbsd*|*-*-mirbsd*)
2732     USE_BSD=1
2733     USE_OPENBSD=1
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __OPENBSD__ 1
2736 _ACEOF
2737
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __BSD__ 1
2740 _ACEOF
2741
2742     DEFAULT_DEFAULT_wxUSE_GTK=1
2743   ;;
2744   *-*-netbsd*)
2745     USE_BSD=1
2746     USE_NETBSD=1
2747     cat >>confdefs.h <<\_ACEOF
2748 #define __NETBSD__ 1
2749 _ACEOF
2750
2751     cat >>confdefs.h <<\_ACEOF
2752 #define __BSD__ 1
2753 _ACEOF
2754
2755     DEFAULT_DEFAULT_wxUSE_GTK=1
2756     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2757
2758             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2759   ;;
2760   *-*-osf* )
2761     USE_ALPHA=1
2762     USE_OSF=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __ALPHA__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __OSF__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2772     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2773   ;;
2774   *-*-dgux5* )
2775     USE_ALPHA=1
2776     USE_SVR4=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __ALPHA__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __SVR4__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2786   ;;
2787   *-*-sysv5* )
2788     USE_SYSV=1
2789     USE_SVR4=1
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __SYSV__ 1
2792 _ACEOF
2793
2794     cat >>confdefs.h <<\_ACEOF
2795 #define __SVR4__ 1
2796 _ACEOF
2797
2798     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2799   ;;
2800   *-*-aix* )
2801     USE_AIX=1
2802     USE_SYSV=1
2803     USE_SVR4=1
2804                         SO_SUFFIX=a
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __AIX__ 1
2807 _ACEOF
2808
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __SYSV__ 1
2811 _ACEOF
2812
2813     cat >>confdefs.h <<\_ACEOF
2814 #define __SVR4__ 1
2815 _ACEOF
2816
2817     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2818   ;;
2819
2820   *-*-*UnixWare*)
2821     USE_SYSV=1
2822     USE_SVR4=1
2823     USE_UNIXWARE=1
2824     cat >>confdefs.h <<\_ACEOF
2825 #define __UNIXWARE__ 1
2826 _ACEOF
2827
2828   ;;
2829
2830   *-*-cygwin* | *-*-mingw32* )
2831                 SO_SUFFIX=dll
2832     PROGRAM_EXT=".exe"
2833     DEFAULT_DEFAULT_wxUSE_MSW=1
2834   ;;
2835
2836   *-pc-msdosdjgpp )
2837     USE_UNIX=0
2838     USE_DOS=1
2839     cat >>confdefs.h <<\_ACEOF
2840 #define __DOS__ 1
2841 _ACEOF
2842
2843     PROGRAM_EXT=".exe"
2844     DEFAULT_DEFAULT_wxUSE_MGL=1
2845   ;;
2846
2847   *-pc-os2_emx | *-pc-os2-emx )
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __EMX__ 1
2850 _ACEOF
2851
2852     USE_OS2=1
2853     cat >>confdefs.h <<\_ACEOF
2854 #define __OS2__ 1
2855 _ACEOF
2856
2857     PROGRAM_EXT=".exe"
2858     DEFAULT_DEFAULT_wxUSE_PM=1
2859         CXX=gcc
2860     LDFLAGS="$LDFLAGS -Zcrtdll"
2861                         ac_executable_extensions=".exe"
2862     export ac_executable_extensions
2863             ac_save_IFS="$IFS"
2864     IFS='\\'
2865     ac_TEMP_PATH=
2866     for ac_dir in $PATH; do
2867       IFS=$ac_save_IFS
2868       if test -z "$ac_TEMP_PATH"; then
2869         ac_TEMP_PATH="$ac_dir"
2870       else
2871         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2872       fi
2873     done
2874     export PATH="$ac_TEMP_PATH"
2875     unset ac_TEMP_PATH
2876     DEFAULT_STD_FLAG=no
2877   ;;
2878
2879   *-*-darwin* )
2880         USE_BSD=1
2881     USE_DARWIN=1
2882     SO_SUFFIX=dylib
2883     cat >>confdefs.h <<\_ACEOF
2884 #define __BSD__ 1
2885 _ACEOF
2886
2887     cat >>confdefs.h <<\_ACEOF
2888 #define __DARWIN__ 1
2889 _ACEOF
2890
2891     cat >>confdefs.h <<\_ACEOF
2892 #define TARGET_CARBON 1
2893 _ACEOF
2894
2895     DEFAULT_DEFAULT_wxUSE_MAC=1
2896     DEFAULT_STD_FLAG=no
2897   ;;
2898   powerpc-apple-macos* )
2899         USE_UNIX=0
2900             ac_cv_c_bigendian=yes
2901     SO_SUFFIX=shlib
2902             DEFAULT_DEFAULT_wxUSE_MAC=1
2903     DEFAULT_STD_FLAG=no
2904   ;;
2905
2906   *-*-beos* )
2907         USE_BEOS=1
2908     cat >>confdefs.h <<\_ACEOF
2909 #define __BEOS__ 1
2910 _ACEOF
2911
2912   ;;
2913
2914   *)
2915     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2916 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2917     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2918 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2919
2920     DEFAULT_DEFAULT_wxUSE_X11=1
2921     DEFAULT_wxUSE_SHARED=no
2922 esac
2923
2924
2925
2926 DEFAULT_wxUSE_ALL_FEATURES=yes
2927
2928 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2929 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2930
2931 DEFAULT_wxUSE_DMALLOC=no
2932 DEFAULT_wxUSE_LIBGNOMEVFS=no
2933 DEFAULT_wxUSE_LIBHILDON=no
2934 DEFAULT_wxUSE_LIBMSPACK=no
2935 DEFAULT_wxUSE_LIBSDL=no
2936 DEFAULT_wxUSE_OPENGL=no
2937
2938 DEFAULT_wxUSE_ACCESSIBILITY=no
2939 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2940 DEFAULT_wxUSE_IPV6=no
2941 DEFAULT_wxUSE_MEDIACTRL=no
2942 DEFAULT_wxUSE_TAB_DIALOG=no
2943 DEFAULT_wxUSE_GSTREAMER8=no
2944
2945 DEFAULT_wxUSE_UNICODE_UTF8=auto
2946 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2947
2948 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2949
2950 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2951
2952 DEFAULT_wxUSE_GTK2=yes
2953
2954 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2955
2956
2957
2958
2959
2960           enablestring=disable
2961           defaultval=
2962           if test -z "$defaultval"; then
2963               if test x"$enablestring" = xdisable; then
2964                   defaultval=yes
2965               else
2966                   defaultval=no
2967               fi
2968           fi
2969
2970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2971 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2972           # Check whether --enable-gui was given.
2973 if test "${enable_gui+set}" = set; then
2974   enableval=$enable_gui;
2975                           if test "$enableval" = yes; then
2976                             wx_cv_use_gui='wxUSE_GUI=yes'
2977                           else
2978                             wx_cv_use_gui='wxUSE_GUI=no'
2979                           fi
2980
2981 else
2982
2983                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2984
2985 fi
2986
2987
2988           eval "$wx_cv_use_gui"
2989
2990           if test x"$enablestring" = xdisable; then
2991             if test $wxUSE_GUI = yes; then
2992               result=no
2993             else
2994               result=yes
2995             fi
2996           else
2997             result=$wxUSE_GUI
2998           fi
2999
3000           { echo "$as_me:$LINENO: result: $result" >&5
3001 echo "${ECHO_T}$result" >&6; }
3002
3003
3004           enablestring=
3005           defaultval=
3006           if test -z "$defaultval"; then
3007               if test x"$enablestring" = xdisable; then
3008                   defaultval=yes
3009               else
3010                   defaultval=no
3011               fi
3012           fi
3013
3014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3015 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3016           # Check whether --enable-monolithic was given.
3017 if test "${enable_monolithic+set}" = set; then
3018   enableval=$enable_monolithic;
3019                           if test "$enableval" = yes; then
3020                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3021                           else
3022                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3023                           fi
3024
3025 else
3026
3027                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3028
3029 fi
3030
3031
3032           eval "$wx_cv_use_monolithic"
3033
3034           if test x"$enablestring" = xdisable; then
3035             if test $wxUSE_MONOLITHIC = yes; then
3036               result=no
3037             else
3038               result=yes
3039             fi
3040           else
3041             result=$wxUSE_MONOLITHIC
3042           fi
3043
3044           { echo "$as_me:$LINENO: result: $result" >&5
3045 echo "${ECHO_T}$result" >&6; }
3046
3047
3048           enablestring=
3049           defaultval=
3050           if test -z "$defaultval"; then
3051               if test x"$enablestring" = xdisable; then
3052                   defaultval=yes
3053               else
3054                   defaultval=no
3055               fi
3056           fi
3057
3058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3059 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3060           # Check whether --enable-plugins was given.
3061 if test "${enable_plugins+set}" = set; then
3062   enableval=$enable_plugins;
3063                           if test "$enableval" = yes; then
3064                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3065                           else
3066                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3067                           fi
3068
3069 else
3070
3071                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3072
3073 fi
3074
3075
3076           eval "$wx_cv_use_plugins"
3077
3078           if test x"$enablestring" = xdisable; then
3079             if test $wxUSE_PLUGINS = yes; then
3080               result=no
3081             else
3082               result=yes
3083             fi
3084           else
3085             result=$wxUSE_PLUGINS
3086           fi
3087
3088           { echo "$as_me:$LINENO: result: $result" >&5
3089 echo "${ECHO_T}$result" >&6; }
3090
3091
3092           withstring=without
3093           defaultval=$wxUSE_ALL_FEATURES
3094           if test -z "$defaultval"; then
3095               if test x"$withstring" = xwithout; then
3096                   defaultval=yes
3097               else
3098                   defaultval=no
3099               fi
3100           fi
3101           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3102 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3103
3104 # Check whether --with-subdirs was given.
3105 if test "${with_subdirs+set}" = set; then
3106   withval=$with_subdirs;
3107                         if test "$withval" = yes; then
3108                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3109                         else
3110                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3111                         fi
3112
3113 else
3114
3115                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3116
3117 fi
3118
3119
3120           eval "$wx_cv_use_subdirs"
3121
3122           if test x"$withstring" = xwithout; then
3123             if test $wxWITH_SUBDIRS = yes; then
3124               result=no
3125             else
3126               result=yes
3127             fi
3128           else
3129             result=$wxWITH_SUBDIRS
3130           fi
3131
3132           { echo "$as_me:$LINENO: result: $result" >&5
3133 echo "${ECHO_T}$result" >&6; }
3134
3135
3136 # Check whether --with-flavour was given.
3137 if test "${with_flavour+set}" = set; then
3138   withval=$with_flavour; WX_FLAVOUR="$withval"
3139 fi
3140
3141
3142           enablestring=
3143           defaultval=
3144           if test -z "$defaultval"; then
3145               if test x"$enablestring" = xdisable; then
3146                   defaultval=yes
3147               else
3148                   defaultval=no
3149               fi
3150           fi
3151
3152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3153 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3154           # Check whether --enable-official_build was given.
3155 if test "${enable_official_build+set}" = set; then
3156   enableval=$enable_official_build;
3157                           if test "$enableval" = yes; then
3158                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3159                           else
3160                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3161                           fi
3162
3163 else
3164
3165                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3166
3167 fi
3168
3169
3170           eval "$wx_cv_use_official_build"
3171
3172           if test x"$enablestring" = xdisable; then
3173             if test $wxUSE_OFFICIAL_BUILD = yes; then
3174               result=no
3175             else
3176               result=yes
3177             fi
3178           else
3179             result=$wxUSE_OFFICIAL_BUILD
3180           fi
3181
3182           { echo "$as_me:$LINENO: result: $result" >&5
3183 echo "${ECHO_T}$result" >&6; }
3184
3185 # Check whether --enable-vendor was given.
3186 if test "${enable_vendor+set}" = set; then
3187   enableval=$enable_vendor; VENDOR="$enableval"
3188 fi
3189
3190 if test "x$VENDOR" = "x"; then
3191     VENDOR="custom"
3192 fi
3193
3194
3195           enablestring=disable
3196           defaultval=
3197           if test -z "$defaultval"; then
3198               if test x"$enablestring" = xdisable; then
3199                   defaultval=yes
3200               else
3201                   defaultval=no
3202               fi
3203           fi
3204
3205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3206 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3207           # Check whether --enable-all-features was given.
3208 if test "${enable_all_features+set}" = set; then
3209   enableval=$enable_all_features;
3210                           if test "$enableval" = yes; then
3211                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3212                           else
3213                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3214                           fi
3215
3216 else
3217
3218                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3219
3220 fi
3221
3222
3223           eval "$wx_cv_use_all_features"
3224
3225           if test x"$enablestring" = xdisable; then
3226             if test $wxUSE_ALL_FEATURES = yes; then
3227               result=no
3228             else
3229               result=yes
3230             fi
3231           else
3232             result=$wxUSE_ALL_FEATURES
3233           fi
3234
3235           { echo "$as_me:$LINENO: result: $result" >&5
3236 echo "${ECHO_T}$result" >&6; }
3237
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 = yes; then
3275               result=no
3276             else
3277               result=yes
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-mac was given.
3309 if test "${with_mac+set}" = set; then
3310   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3311 fi
3312
3313
3314 # Check whether --with-cocoa was given.
3315 if test "${with_cocoa+set}" = set; then
3316   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3317 fi
3318
3319
3320 # Check whether --with-wine was given.
3321 if test "${with_wine+set}" = set; then
3322   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3323 fi
3324
3325
3326 # Check whether --with-msw was given.
3327 if test "${with_msw+set}" = set; then
3328   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3329 fi
3330
3331
3332 # Check whether --with-pm was given.
3333 if test "${with_pm+set}" = set; then
3334   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3335 fi
3336
3337
3338 # Check whether --with-mgl was given.
3339 if test "${with_mgl+set}" = set; then
3340   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3341 fi
3342
3343
3344 # Check whether --with-directfb was given.
3345 if test "${with_directfb+set}" = set; then
3346   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3347 fi
3348
3349
3350 # Check whether --with-microwin was given.
3351 if test "${with_microwin+set}" = set; then
3352   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3353 fi
3354
3355
3356 # Check whether --with-x11 was given.
3357 if test "${with_x11+set}" = set; then
3358   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3359 fi
3360
3361
3362           enablestring=
3363           defaultval=
3364           if test -z "$defaultval"; then
3365               if test x"$enablestring" = xdisable; then
3366                   defaultval=yes
3367               else
3368                   defaultval=no
3369               fi
3370           fi
3371
3372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3373 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3374           # Check whether --enable-nanox was given.
3375 if test "${enable_nanox+set}" = set; then
3376   enableval=$enable_nanox;
3377                           if test "$enableval" = yes; then
3378                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3379                           else
3380                             wx_cv_use_nanox='wxUSE_NANOX=no'
3381                           fi
3382
3383 else
3384
3385                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3386
3387 fi
3388
3389
3390           eval "$wx_cv_use_nanox"
3391
3392           if test x"$enablestring" = xdisable; then
3393             if test $wxUSE_NANOX = yes; then
3394               result=no
3395             else
3396               result=yes
3397             fi
3398           else
3399             result=$wxUSE_NANOX
3400           fi
3401
3402           { echo "$as_me:$LINENO: result: $result" >&5
3403 echo "${ECHO_T}$result" >&6; }
3404
3405
3406 # Check whether --enable-gtk2 was given.
3407 if test "${enable_gtk2+set}" = set; then
3408   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3409 fi
3410
3411
3412           enablestring=
3413           defaultval=
3414           if test -z "$defaultval"; then
3415               if test x"$enablestring" = xdisable; then
3416                   defaultval=yes
3417               else
3418                   defaultval=no
3419               fi
3420           fi
3421
3422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3423 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3424           # Check whether --enable-gpe was given.
3425 if test "${enable_gpe+set}" = set; then
3426   enableval=$enable_gpe;
3427                           if test "$enableval" = yes; then
3428                             wx_cv_use_gpe='wxUSE_GPE=yes'
3429                           else
3430                             wx_cv_use_gpe='wxUSE_GPE=no'
3431                           fi
3432
3433 else
3434
3435                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3436
3437 fi
3438
3439
3440           eval "$wx_cv_use_gpe"
3441
3442           if test x"$enablestring" = xdisable; then
3443             if test $wxUSE_GPE = yes; then
3444               result=no
3445             else
3446               result=yes
3447             fi
3448           else
3449             result=$wxUSE_GPE
3450           fi
3451
3452           { echo "$as_me:$LINENO: result: $result" >&5
3453 echo "${ECHO_T}$result" >&6; }
3454
3455
3456
3457 { echo "$as_me:$LINENO: checking for toolkit" >&5
3458 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3459
3460 # In Wine, we need to default to MSW, not GTK or MOTIF
3461 if test "$wxUSE_WINE" = "yes"; then
3462     DEFAULT_DEFAULT_wxUSE_GTK=0
3463     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3464     DEFAULT_DEFAULT_wxUSE_MSW=1
3465     wxUSE_SHARED=no
3466     CC=${CC:-winegcc}
3467     CXX=${CXX:-wineg++}
3468 fi
3469
3470
3471 if test "$wxUSE_GUI" = "yes"; then
3472
3473     if test "$USE_BEOS" = 1; then
3474         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3475 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3476    { (exit 1); exit 1; }; }
3477     fi
3478
3479     if test "$TOOLKIT_GIVEN" = 1; then
3480             for toolkit in $ALL_TOOLKITS; do
3481         var=wxUSE_$toolkit
3482         eval "value=\$${var}"
3483         if test "x$value" = "xno"; then
3484           eval "$var=0"
3485         elif test "x$value" != "x"; then
3486           eval "$var=1"
3487         fi
3488
3489         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3490           eval "wx${toolkit}_VERSION=$value"
3491         fi
3492       done
3493     else
3494             for toolkit in $ALL_TOOLKITS; do
3495         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3496         eval "wxUSE_$toolkit=\$${var}"
3497       done
3498     fi
3499
3500             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
3501                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
3502                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3503
3504         case "${host}" in
3505       *-pc-os2_emx | *-pc-os2-emx )
3506         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3507     esac
3508
3509     case "$NUM_TOOLKITS" in
3510       1)
3511       ;;
3512       0)
3513         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3514 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3515    { (exit 1); exit 1; }; }
3516       ;;
3517       *)
3518         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3519 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3520    { (exit 1); exit 1; }; }
3521     esac
3522
3523     # to be removed when --disable-gtk2 isn't needed
3524     if test "x$wxUSE_GTK2" = "xyes"; then
3525         wxGTK_VERSION=2
3526     elif test "x$wxUSE_GTK2" = "xno"; then
3527         wxGTK_VERSION=1
3528     fi
3529
3530     for toolkit in $ALL_TOOLKITS; do
3531         var=wxUSE_$toolkit
3532         eval "value=\$${var}"
3533         if test "$value" = 1; then
3534           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3535           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3536 echo "${ECHO_T}$toolkit_echo" >&6; }
3537         fi
3538     done
3539 else
3540     if test "x$host_alias" != "x"; then
3541         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3542 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3543     else
3544         { echo "$as_me:$LINENO: result: base only" >&5
3545 echo "${ECHO_T}base only" >&6; }
3546     fi
3547 fi
3548
3549
3550
3551           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3552 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3553
3554 # Check whether --with-libpng was given.
3555 if test "${with_libpng+set}" = set; then
3556   withval=$with_libpng;
3557                         if test "$withval" = yes; then
3558                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3559                         elif test "$withval" = no; then
3560                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3561                         elif test "$withval" = sys; then
3562                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3563                         elif test "$withval" = builtin; then
3564                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3565                         else
3566                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3567 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3568    { (exit 1); exit 1; }; }
3569                         fi
3570
3571 else
3572
3573                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3574
3575 fi
3576
3577
3578           eval "$wx_cv_use_libpng"
3579
3580           if test "$wxUSE_LIBPNG" = yes; then
3581             { echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6; }
3583           elif test "$wxUSE_LIBPNG" = no; then
3584             { echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6; }
3586           elif test "$wxUSE_LIBPNG" = sys; then
3587             { echo "$as_me:$LINENO: result: system version" >&5
3588 echo "${ECHO_T}system version" >&6; }
3589           elif test "$wxUSE_LIBPNG" = builtin; then
3590             { echo "$as_me:$LINENO: result: builtin version" >&5
3591 echo "${ECHO_T}builtin version" >&6; }
3592           else
3593             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3594 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3595    { (exit 1); exit 1; }; }
3596           fi
3597
3598
3599           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3600 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3601
3602 # Check whether --with-libjpeg was given.
3603 if test "${with_libjpeg+set}" = set; then
3604   withval=$with_libjpeg;
3605                         if test "$withval" = yes; then
3606                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3607                         elif test "$withval" = no; then
3608                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3609                         elif test "$withval" = sys; then
3610                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3611                         elif test "$withval" = builtin; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3613                         else
3614                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3615 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3616    { (exit 1); exit 1; }; }
3617                         fi
3618
3619 else
3620
3621                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3622
3623 fi
3624
3625
3626           eval "$wx_cv_use_libjpeg"
3627
3628           if test "$wxUSE_LIBJPEG" = yes; then
3629             { echo "$as_me:$LINENO: result: yes" >&5
3630 echo "${ECHO_T}yes" >&6; }
3631           elif test "$wxUSE_LIBJPEG" = no; then
3632             { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; }
3634           elif test "$wxUSE_LIBJPEG" = sys; then
3635             { echo "$as_me:$LINENO: result: system version" >&5
3636 echo "${ECHO_T}system version" >&6; }
3637           elif test "$wxUSE_LIBJPEG" = builtin; then
3638             { echo "$as_me:$LINENO: result: builtin version" >&5
3639 echo "${ECHO_T}builtin version" >&6; }
3640           else
3641             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3642 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3643    { (exit 1); exit 1; }; }
3644           fi
3645
3646
3647           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3648 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3649
3650 # Check whether --with-libtiff was given.
3651 if test "${with_libtiff+set}" = set; then
3652   withval=$with_libtiff;
3653                         if test "$withval" = yes; then
3654                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3655                         elif test "$withval" = no; then
3656                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3657                         elif test "$withval" = sys; then
3658                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3659                         elif test "$withval" = builtin; then
3660                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3661                         else
3662                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3663 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3664    { (exit 1); exit 1; }; }
3665                         fi
3666
3667 else
3668
3669                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3670
3671 fi
3672
3673
3674           eval "$wx_cv_use_libtiff"
3675
3676           if test "$wxUSE_LIBTIFF" = yes; then
3677             { echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6; }
3679           elif test "$wxUSE_LIBTIFF" = no; then
3680             { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682           elif test "$wxUSE_LIBTIFF" = sys; then
3683             { echo "$as_me:$LINENO: result: system version" >&5
3684 echo "${ECHO_T}system version" >&6; }
3685           elif test "$wxUSE_LIBTIFF" = builtin; then
3686             { echo "$as_me:$LINENO: result: builtin version" >&5
3687 echo "${ECHO_T}builtin version" >&6; }
3688           else
3689             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692           fi
3693
3694
3695           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3696 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3697
3698 # Check whether --with-libxpm was given.
3699 if test "${with_libxpm+set}" = set; then
3700   withval=$with_libxpm;
3701                         if test "$withval" = yes; then
3702                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3703                         elif test "$withval" = no; then
3704                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3705                         elif test "$withval" = sys; then
3706                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3707                         elif test "$withval" = builtin; then
3708                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3709                         else
3710                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3711 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3712    { (exit 1); exit 1; }; }
3713                         fi
3714
3715 else
3716
3717                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3718
3719 fi
3720
3721
3722           eval "$wx_cv_use_libxpm"
3723
3724           if test "$wxUSE_LIBXPM" = yes; then
3725             { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727           elif test "$wxUSE_LIBXPM" = no; then
3728             { echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6; }
3730           elif test "$wxUSE_LIBXPM" = sys; then
3731             { echo "$as_me:$LINENO: result: system version" >&5
3732 echo "${ECHO_T}system version" >&6; }
3733           elif test "$wxUSE_LIBXPM" = builtin; then
3734             { echo "$as_me:$LINENO: result: builtin version" >&5
3735 echo "${ECHO_T}builtin version" >&6; }
3736           else
3737             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3738 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3739    { (exit 1); exit 1; }; }
3740           fi
3741
3742
3743           withstring=
3744           defaultval=$wxUSE_ALL_FEATURES
3745           if test -z "$defaultval"; then
3746               if test x"$withstring" = xwithout; then
3747                   defaultval=yes
3748               else
3749                   defaultval=no
3750               fi
3751           fi
3752           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3753 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3754
3755 # Check whether --with-libiconv was given.
3756 if test "${with_libiconv+set}" = set; then
3757   withval=$with_libiconv;
3758                         if test "$withval" = yes; then
3759                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3760                         else
3761                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3762                         fi
3763
3764 else
3765
3766                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3767
3768 fi
3769
3770
3771           eval "$wx_cv_use_libiconv"
3772
3773           if test x"$withstring" = xwithout; then
3774             if test $wxUSE_LIBICONV = yes; then
3775               result=no
3776             else
3777               result=yes
3778             fi
3779           else
3780             result=$wxUSE_LIBICONV
3781           fi
3782
3783           { echo "$as_me:$LINENO: result: $result" >&5
3784 echo "${ECHO_T}$result" >&6; }
3785
3786
3787           withstring=
3788           defaultval=$wxUSE_ALL_FEATURES
3789           if test -z "$defaultval"; then
3790               if test x"$withstring" = xwithout; then
3791                   defaultval=yes
3792               else
3793                   defaultval=no
3794               fi
3795           fi
3796           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3797 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3798
3799 # Check whether --with-libmspack was given.
3800 if test "${with_libmspack+set}" = set; then
3801   withval=$with_libmspack;
3802                         if test "$withval" = yes; then
3803                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3804                         else
3805                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3806                         fi
3807
3808 else
3809
3810                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3811
3812 fi
3813
3814
3815           eval "$wx_cv_use_libmspack"
3816
3817           if test x"$withstring" = xwithout; then
3818             if test $wxUSE_LIBMSPACK = yes; then
3819               result=no
3820             else
3821               result=yes
3822             fi
3823           else
3824             result=$wxUSE_LIBMSPACK
3825           fi
3826
3827           { echo "$as_me:$LINENO: result: $result" >&5
3828 echo "${ECHO_T}$result" >&6; }
3829
3830
3831           withstring=without
3832           defaultval=$wxUSE_ALL_FEATURES
3833           if test -z "$defaultval"; then
3834               if test x"$withstring" = xwithout; then
3835                   defaultval=yes
3836               else
3837                   defaultval=no
3838               fi
3839           fi
3840           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3841 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3842
3843 # Check whether --with-gtkprint was given.
3844 if test "${with_gtkprint+set}" = set; then
3845   withval=$with_gtkprint;
3846                         if test "$withval" = yes; then
3847                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3848                         else
3849                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3850                         fi
3851
3852 else
3853
3854                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3855
3856 fi
3857
3858
3859           eval "$wx_cv_use_gtkprint"
3860
3861           if test x"$withstring" = xwithout; then
3862             if test $wxUSE_GTKPRINT = yes; then
3863               result=no
3864             else
3865               result=yes
3866             fi
3867           else
3868             result=$wxUSE_GTKPRINT
3869           fi
3870
3871           { echo "$as_me:$LINENO: result: $result" >&5
3872 echo "${ECHO_T}$result" >&6; }
3873
3874
3875           withstring=without
3876           defaultval=$wxUSE_ALL_FEATURES
3877           if test -z "$defaultval"; then
3878               if test x"$withstring" = xwithout; then
3879                   defaultval=yes
3880               else
3881                   defaultval=no
3882               fi
3883           fi
3884           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3885 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3886
3887 # Check whether --with-gnomeprint was given.
3888 if test "${with_gnomeprint+set}" = set; then
3889   withval=$with_gnomeprint;
3890                         if test "$withval" = yes; then
3891                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3892                         else
3893                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3894                         fi
3895
3896 else
3897
3898                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3899
3900 fi
3901
3902
3903           eval "$wx_cv_use_gnomeprint"
3904
3905           if test x"$withstring" = xwithout; then
3906             if test $wxUSE_LIBGNOMEPRINT = yes; then
3907               result=no
3908             else
3909               result=yes
3910             fi
3911           else
3912             result=$wxUSE_LIBGNOMEPRINT
3913           fi
3914
3915           { echo "$as_me:$LINENO: result: $result" >&5
3916 echo "${ECHO_T}$result" >&6; }
3917
3918
3919           withstring=
3920           defaultval=$wxUSE_ALL_FEATURES
3921           if test -z "$defaultval"; then
3922               if test x"$withstring" = xwithout; then
3923                   defaultval=yes
3924               else
3925                   defaultval=no
3926               fi
3927           fi
3928           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3929 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3930
3931 # Check whether --with-gnomevfs was given.
3932 if test "${with_gnomevfs+set}" = set; then
3933   withval=$with_gnomevfs;
3934                         if test "$withval" = yes; then
3935                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3936                         else
3937                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3938                         fi
3939
3940 else
3941
3942                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3943
3944 fi
3945
3946
3947           eval "$wx_cv_use_gnomevfs"
3948
3949           if test x"$withstring" = xwithout; then
3950             if test $wxUSE_LIBGNOMEVFS = yes; then
3951               result=no
3952             else
3953               result=yes
3954             fi
3955           else
3956             result=$wxUSE_LIBGNOMEVFS
3957           fi
3958
3959           { echo "$as_me:$LINENO: result: $result" >&5
3960 echo "${ECHO_T}$result" >&6; }
3961
3962
3963           withstring=
3964           defaultval=$wxUSE_ALL_FEATURES
3965           if test -z "$defaultval"; then
3966               if test x"$withstring" = xwithout; then
3967                   defaultval=yes
3968               else
3969                   defaultval=no
3970               fi
3971           fi
3972           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3973 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3974
3975 # Check whether --with-hildon was given.
3976 if test "${with_hildon+set}" = set; then
3977   withval=$with_hildon;
3978                         if test "$withval" = yes; then
3979                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3980                         else
3981                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3982                         fi
3983
3984 else
3985
3986                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3987
3988 fi
3989
3990
3991           eval "$wx_cv_use_hildon"
3992
3993           if test x"$withstring" = xwithout; then
3994             if test $wxUSE_LIBHILDON = yes; then
3995               result=no
3996             else
3997               result=yes
3998             fi
3999           else
4000             result=$wxUSE_LIBHILDON
4001           fi
4002
4003           { echo "$as_me:$LINENO: result: $result" >&5
4004 echo "${ECHO_T}$result" >&6; }
4005
4006
4007           withstring=
4008           defaultval=$wxUSE_ALL_FEATURES
4009           if test -z "$defaultval"; then
4010               if test x"$withstring" = xwithout; then
4011                   defaultval=yes
4012               else
4013                   defaultval=no
4014               fi
4015           fi
4016           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4017 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4018
4019 # Check whether --with-opengl was given.
4020 if test "${with_opengl+set}" = set; then
4021   withval=$with_opengl;
4022                         if test "$withval" = yes; then
4023                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4024                         else
4025                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4026                         fi
4027
4028 else
4029
4030                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4031
4032 fi
4033
4034
4035           eval "$wx_cv_use_opengl"
4036
4037           if test x"$withstring" = xwithout; then
4038             if test $wxUSE_OPENGL = yes; then
4039               result=no
4040             else
4041               result=yes
4042             fi
4043           else
4044             result=$wxUSE_OPENGL
4045           fi
4046
4047           { echo "$as_me:$LINENO: result: $result" >&5
4048 echo "${ECHO_T}$result" >&6; }
4049
4050
4051 fi
4052
4053
4054           withstring=
4055           defaultval=$wxUSE_ALL_FEATURES
4056           if test -z "$defaultval"; then
4057               if test x"$withstring" = xwithout; then
4058                   defaultval=yes
4059               else
4060                   defaultval=no
4061               fi
4062           fi
4063           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4064 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4065
4066 # Check whether --with-dmalloc was given.
4067 if test "${with_dmalloc+set}" = set; then
4068   withval=$with_dmalloc;
4069                         if test "$withval" = yes; then
4070                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4071                         else
4072                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4073                         fi
4074
4075 else
4076
4077                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4078
4079 fi
4080
4081
4082           eval "$wx_cv_use_dmalloc"
4083
4084           if test x"$withstring" = xwithout; then
4085             if test $wxUSE_DMALLOC = yes; then
4086               result=no
4087             else
4088               result=yes
4089             fi
4090           else
4091             result=$wxUSE_DMALLOC
4092           fi
4093
4094           { echo "$as_me:$LINENO: result: $result" >&5
4095 echo "${ECHO_T}$result" >&6; }
4096
4097
4098           withstring=
4099           defaultval=$wxUSE_ALL_FEATURES
4100           if test -z "$defaultval"; then
4101               if test x"$withstring" = xwithout; then
4102                   defaultval=yes
4103               else
4104                   defaultval=no
4105               fi
4106           fi
4107           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4108 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4109
4110 # Check whether --with-sdl was given.
4111 if test "${with_sdl+set}" = set; then
4112   withval=$with_sdl;
4113                         if test "$withval" = yes; then
4114                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4115                         else
4116                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4117                         fi
4118
4119 else
4120
4121                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4122
4123 fi
4124
4125
4126           eval "$wx_cv_use_sdl"
4127
4128           if test x"$withstring" = xwithout; then
4129             if test $wxUSE_LIBSDL = yes; then
4130               result=no
4131             else
4132               result=yes
4133             fi
4134           else
4135             result=$wxUSE_LIBSDL
4136           fi
4137
4138           { echo "$as_me:$LINENO: result: $result" >&5
4139 echo "${ECHO_T}$result" >&6; }
4140
4141
4142           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4143 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4144
4145 # Check whether --with-regex was given.
4146 if test "${with_regex+set}" = set; then
4147   withval=$with_regex;
4148                         if test "$withval" = yes; then
4149                           wx_cv_use_regex='wxUSE_REGEX=yes'
4150                         elif test "$withval" = no; then
4151                           wx_cv_use_regex='wxUSE_REGEX=no'
4152                         elif test "$withval" = sys; then
4153                           wx_cv_use_regex='wxUSE_REGEX=sys'
4154                         elif test "$withval" = builtin; then
4155                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4156                         else
4157                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4158 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4159    { (exit 1); exit 1; }; }
4160                         fi
4161
4162 else
4163
4164                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4165
4166 fi
4167
4168
4169           eval "$wx_cv_use_regex"
4170
4171           if test "$wxUSE_REGEX" = yes; then
4172             { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4174           elif test "$wxUSE_REGEX" = no; then
4175             { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177           elif test "$wxUSE_REGEX" = sys; then
4178             { echo "$as_me:$LINENO: result: system version" >&5
4179 echo "${ECHO_T}system version" >&6; }
4180           elif test "$wxUSE_REGEX" = builtin; then
4181             { echo "$as_me:$LINENO: result: builtin version" >&5
4182 echo "${ECHO_T}builtin version" >&6; }
4183           else
4184             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4185 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4186    { (exit 1); exit 1; }; }
4187           fi
4188
4189
4190           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4191 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4192
4193 # Check whether --with-zlib was given.
4194 if test "${with_zlib+set}" = set; then
4195   withval=$with_zlib;
4196                         if test "$withval" = yes; then
4197                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4198                         elif test "$withval" = no; then
4199                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4200                         elif test "$withval" = sys; then
4201                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4202                         elif test "$withval" = builtin; then
4203                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4204                         else
4205                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4206 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4207    { (exit 1); exit 1; }; }
4208                         fi
4209
4210 else
4211
4212                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4213
4214 fi
4215
4216
4217           eval "$wx_cv_use_zlib"
4218
4219           if test "$wxUSE_ZLIB" = yes; then
4220             { echo "$as_me:$LINENO: result: yes" >&5
4221 echo "${ECHO_T}yes" >&6; }
4222           elif test "$wxUSE_ZLIB" = no; then
4223             { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4225           elif test "$wxUSE_ZLIB" = sys; then
4226             { echo "$as_me:$LINENO: result: system version" >&5
4227 echo "${ECHO_T}system version" >&6; }
4228           elif test "$wxUSE_ZLIB" = builtin; then
4229             { echo "$as_me:$LINENO: result: builtin version" >&5
4230 echo "${ECHO_T}builtin version" >&6; }
4231           else
4232             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4233 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4234    { (exit 1); exit 1; }; }
4235           fi
4236
4237
4238           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4239 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4240
4241 # Check whether --with-expat was given.
4242 if test "${with_expat+set}" = set; then
4243   withval=$with_expat;
4244                         if test "$withval" = yes; then
4245                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4246                         elif test "$withval" = no; then
4247                           wx_cv_use_expat='wxUSE_EXPAT=no'
4248                         elif test "$withval" = sys; then
4249                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4250                         elif test "$withval" = builtin; then
4251                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4252                         else
4253                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4254 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4255    { (exit 1); exit 1; }; }
4256                         fi
4257
4258 else
4259
4260                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4261
4262 fi
4263
4264
4265           eval "$wx_cv_use_expat"
4266
4267           if test "$wxUSE_EXPAT" = yes; then
4268             { echo "$as_me:$LINENO: result: yes" >&5
4269 echo "${ECHO_T}yes" >&6; }
4270           elif test "$wxUSE_EXPAT" = no; then
4271             { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273           elif test "$wxUSE_EXPAT" = sys; then
4274             { echo "$as_me:$LINENO: result: system version" >&5
4275 echo "${ECHO_T}system version" >&6; }
4276           elif test "$wxUSE_EXPAT" = builtin; then
4277             { echo "$as_me:$LINENO: result: builtin version" >&5
4278 echo "${ECHO_T}builtin version" >&6; }
4279           else
4280             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4281 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4282    { (exit 1); exit 1; }; }
4283           fi
4284
4285
4286 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4287 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4288
4289 # Check whether --with-macosx-sdk was given.
4290 if test "${with_macosx_sdk+set}" = set; then
4291   withval=$with_macosx_sdk;
4292         wxUSE_MACOSX_SDK=$withval
4293         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4294
4295 fi
4296
4297 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4298 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4299
4300 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4301 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4302
4303 # Check whether --with-macosx-version-min was given.
4304 if test "${with_macosx_version_min+set}" = set; then
4305   withval=$with_macosx_version_min;
4306         wxUSE_MACOSX_VERSION_MIN=$withval
4307         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4308
4309 fi
4310
4311 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4312 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4313
4314
4315
4316           enablestring=disable
4317           defaultval=
4318           if test -z "$defaultval"; then
4319               if test x"$enablestring" = xdisable; then
4320                   defaultval=yes
4321               else
4322                   defaultval=no
4323               fi
4324           fi
4325
4326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4327 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4328           # Check whether --enable-shared was given.
4329 if test "${enable_shared+set}" = set; then
4330   enableval=$enable_shared;
4331                           if test "$enableval" = yes; then
4332                             wx_cv_use_shared='wxUSE_SHARED=yes'
4333                           else
4334                             wx_cv_use_shared='wxUSE_SHARED=no'
4335                           fi
4336
4337 else
4338
4339                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4340
4341 fi
4342
4343
4344           eval "$wx_cv_use_shared"
4345
4346           if test x"$enablestring" = xdisable; then
4347             if test $wxUSE_SHARED = yes; then
4348               result=no
4349             else
4350               result=yes
4351             fi
4352           else
4353             result=$wxUSE_SHARED
4354           fi
4355
4356           { echo "$as_me:$LINENO: result: $result" >&5
4357 echo "${ECHO_T}$result" >&6; }
4358
4359
4360           enablestring=disable
4361           defaultval=
4362           if test -z "$defaultval"; then
4363               if test x"$enablestring" = xdisable; then
4364                   defaultval=yes
4365               else
4366                   defaultval=no
4367               fi
4368           fi
4369
4370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4371 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4372           # Check whether --enable-optimise was given.
4373 if test "${enable_optimise+set}" = set; then
4374   enableval=$enable_optimise;
4375                           if test "$enableval" = yes; then
4376                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4377                           else
4378                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4379                           fi
4380
4381 else
4382
4383                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4384
4385 fi
4386
4387
4388           eval "$wx_cv_use_optimise"
4389
4390           if test x"$enablestring" = xdisable; then
4391             if test $wxUSE_OPTIMISE = yes; then
4392               result=no
4393             else
4394               result=yes
4395             fi
4396           else
4397             result=$wxUSE_OPTIMISE
4398           fi
4399
4400           { echo "$as_me:$LINENO: result: $result" >&5
4401 echo "${ECHO_T}$result" >&6; }
4402
4403
4404           enablestring=
4405           defaultval=
4406           if test -z "$defaultval"; then
4407               if test x"$enablestring" = xdisable; then
4408                   defaultval=yes
4409               else
4410                   defaultval=no
4411               fi
4412           fi
4413
4414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4415 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4416           # Check whether --enable-debug was given.
4417 if test "${enable_debug+set}" = set; then
4418   enableval=$enable_debug;
4419                           if test "$enableval" = yes; then
4420                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4421                           else
4422                             wx_cv_use_debug='wxUSE_DEBUG=no'
4423                           fi
4424
4425 else
4426
4427                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4428
4429 fi
4430
4431
4432           eval "$wx_cv_use_debug"
4433
4434           if test x"$enablestring" = xdisable; then
4435             if test $wxUSE_DEBUG = yes; then
4436               result=no
4437             else
4438               result=yes
4439             fi
4440           else
4441             result=$wxUSE_DEBUG
4442           fi
4443
4444           { echo "$as_me:$LINENO: result: $result" >&5
4445 echo "${ECHO_T}$result" >&6; }
4446
4447
4448           enablestring=
4449           defaultval=
4450           if test -z "$defaultval"; then
4451               if test x"$enablestring" = xdisable; then
4452                   defaultval=yes
4453               else
4454                   defaultval=no
4455               fi
4456           fi
4457
4458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4459 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4460           # Check whether --enable-stl was given.
4461 if test "${enable_stl+set}" = set; then
4462   enableval=$enable_stl;
4463                           if test "$enableval" = yes; then
4464                             wx_cv_use_stl='wxUSE_STL=yes'
4465                           else
4466                             wx_cv_use_stl='wxUSE_STL=no'
4467                           fi
4468
4469 else
4470
4471                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4472
4473 fi
4474
4475
4476           eval "$wx_cv_use_stl"
4477
4478           if test x"$enablestring" = xdisable; then
4479             if test $wxUSE_STL = yes; then
4480               result=no
4481             else
4482               result=yes
4483             fi
4484           else
4485             result=$wxUSE_STL
4486           fi
4487
4488           { echo "$as_me:$LINENO: result: $result" >&5
4489 echo "${ECHO_T}$result" >&6; }
4490
4491
4492           enablestring=
4493           defaultval=
4494           if test -z "$defaultval"; then
4495               if test x"$enablestring" = xdisable; then
4496                   defaultval=yes
4497               else
4498                   defaultval=no
4499               fi
4500           fi
4501
4502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4503 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4504           # Check whether --enable-std_iostreams was given.
4505 if test "${enable_std_iostreams+set}" = set; then
4506   enableval=$enable_std_iostreams;
4507                           if test "$enableval" = yes; then
4508                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4509                           else
4510                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4511                           fi
4512
4513 else
4514
4515                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4516
4517 fi
4518
4519
4520           eval "$wx_cv_use_std_iostreams"
4521
4522           if test x"$enablestring" = xdisable; then
4523             if test $wxUSE_STD_IOSTREAM = yes; then
4524               result=no
4525             else
4526               result=yes
4527             fi
4528           else
4529             result=$wxUSE_STD_IOSTREAM
4530           fi
4531
4532           { echo "$as_me:$LINENO: result: $result" >&5
4533 echo "${ECHO_T}$result" >&6; }
4534
4535
4536           enablestring=
4537           defaultval=
4538           if test -z "$defaultval"; then
4539               if test x"$enablestring" = xdisable; then
4540                   defaultval=yes
4541               else
4542                   defaultval=no
4543               fi
4544           fi
4545
4546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4547 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4548           # Check whether --enable-std_string was given.
4549 if test "${enable_std_string+set}" = set; then
4550   enableval=$enable_std_string;
4551                           if test "$enableval" = yes; then
4552                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4553                           else
4554                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4555                           fi
4556
4557 else
4558
4559                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4560
4561 fi
4562
4563
4564           eval "$wx_cv_use_std_string"
4565
4566           if test x"$enablestring" = xdisable; then
4567             if test $wxUSE_STD_STRING = yes; then
4568               result=no
4569             else
4570               result=yes
4571             fi
4572           else
4573             result=$wxUSE_STD_STRING
4574           fi
4575
4576           { echo "$as_me:$LINENO: result: $result" >&5
4577 echo "${ECHO_T}$result" >&6; }
4578
4579
4580           enablestring=disable
4581           defaultval=
4582           if test -z "$defaultval"; then
4583               if test x"$enablestring" = xdisable; then
4584                   defaultval=yes
4585               else
4586                   defaultval=no
4587               fi
4588           fi
4589
4590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4591 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4592           # Check whether --enable-unicode was given.
4593 if test "${enable_unicode+set}" = set; then
4594   enableval=$enable_unicode;
4595                           if test "$enableval" = yes; then
4596                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4597                           else
4598                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4599                           fi
4600
4601 else
4602
4603                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4604
4605 fi
4606
4607
4608           eval "$wx_cv_use_unicode"
4609
4610           if test x"$enablestring" = xdisable; then
4611             if test $wxUSE_UNICODE = yes; then
4612               result=no
4613             else
4614               result=yes
4615             fi
4616           else
4617             result=$wxUSE_UNICODE
4618           fi
4619
4620           { echo "$as_me:$LINENO: result: $result" >&5
4621 echo "${ECHO_T}$result" >&6; }
4622
4623
4624           enablestring=
4625           defaultval=
4626           if test -z "$defaultval"; then
4627               if test x"$enablestring" = xdisable; then
4628                   defaultval=yes
4629               else
4630                   defaultval=no
4631               fi
4632           fi
4633
4634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4635 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4636           # Check whether --enable-mslu was given.
4637 if test "${enable_mslu+set}" = set; then
4638   enableval=$enable_mslu;
4639                           if test "$enableval" = yes; then
4640                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4641                           else
4642                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4643                           fi
4644
4645 else
4646
4647                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4648
4649 fi
4650
4651
4652           eval "$wx_cv_use_mslu"
4653
4654           if test x"$enablestring" = xdisable; then
4655             if test $wxUSE_UNICODE_MSLU = yes; then
4656               result=no
4657             else
4658               result=yes
4659             fi
4660           else
4661             result=$wxUSE_UNICODE_MSLU
4662           fi
4663
4664           { echo "$as_me:$LINENO: result: $result" >&5
4665 echo "${ECHO_T}$result" >&6; }
4666
4667
4668           enablestring=
4669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4670 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4671           # Check whether --enable-utf8 was given.
4672 if test "${enable_utf8+set}" = set; then
4673   enableval=$enable_utf8;
4674                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4675
4676 else
4677
4678                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4679
4680 fi
4681
4682
4683           eval "$wx_cv_use_utf8"
4684
4685           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4686 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4687
4688
4689           enablestring=
4690           defaultval=
4691           if test -z "$defaultval"; then
4692               if test x"$enablestring" = xdisable; then
4693                   defaultval=yes
4694               else
4695                   defaultval=no
4696               fi
4697           fi
4698
4699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4700 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4701           # Check whether --enable-utf8only was given.
4702 if test "${enable_utf8only+set}" = set; then
4703   enableval=$enable_utf8only;
4704                           if test "$enableval" = yes; then
4705                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4706                           else
4707                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4708                           fi
4709
4710 else
4711
4712                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4713
4714 fi
4715
4716
4717           eval "$wx_cv_use_utf8only"
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_UNICODE_UTF8_LOCALE
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732
4733           enablestring=
4734           defaultval=
4735           if test -z "$defaultval"; then
4736               if test x"$enablestring" = xdisable; then
4737                   defaultval=yes
4738               else
4739                   defaultval=no
4740               fi
4741           fi
4742
4743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4745           # Check whether --enable-extended_rtti was given.
4746 if test "${enable_extended_rtti+set}" = set; then
4747   enableval=$enable_extended_rtti;
4748                           if test "$enableval" = yes; then
4749                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4750                           else
4751                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4752                           fi
4753
4754 else
4755
4756                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4757
4758 fi
4759
4760
4761           eval "$wx_cv_use_extended_rtti"
4762
4763           if test x"$enablestring" = xdisable; then
4764             if test $wxUSE_EXTENDED_RTTI = yes; then
4765               result=no
4766             else
4767               result=yes
4768             fi
4769           else
4770             result=$wxUSE_EXTENDED_RTTI
4771           fi
4772
4773           { echo "$as_me:$LINENO: result: $result" >&5
4774 echo "${ECHO_T}$result" >&6; }
4775
4776 if test "$USE_OS2" = 1; then
4777     DEFAULT_wxUSE_OMF=no
4778
4779           enablestring=
4780           defaultval=
4781           if test -z "$defaultval"; then
4782               if test x"$enablestring" = xdisable; then
4783                   defaultval=yes
4784               else
4785                   defaultval=no
4786               fi
4787           fi
4788
4789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4790 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4791           # Check whether --enable-omf was given.
4792 if test "${enable_omf+set}" = set; then
4793   enableval=$enable_omf;
4794                           if test "$enableval" = yes; then
4795                             wx_cv_use_omf='wxUSE_OMF=yes'
4796                           else
4797                             wx_cv_use_omf='wxUSE_OMF=no'
4798                           fi
4799
4800 else
4801
4802                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4803
4804 fi
4805
4806
4807           eval "$wx_cv_use_omf"
4808
4809           if test x"$enablestring" = xdisable; then
4810             if test $wxUSE_OMF = yes; then
4811               result=no
4812             else
4813               result=yes
4814             fi
4815           else
4816             result=$wxUSE_OMF
4817           fi
4818
4819           { echo "$as_me:$LINENO: result: $result" >&5
4820 echo "${ECHO_T}$result" >&6; }
4821
4822 fi
4823
4824 if test "$wxUSE_DEBUG" = "yes"; then
4825     DEFAULT_wxUSE_DEBUG_FLAG=yes
4826     DEFAULT_wxUSE_DEBUG_INFO=yes
4827     BUILD=debug
4828 elif test "$wxUSE_DEBUG" = "no"; then
4829     DEFAULT_wxUSE_DEBUG_FLAG=no
4830     DEFAULT_wxUSE_DEBUG_INFO=no
4831     BUILD=release
4832 fi
4833
4834
4835           enablestring=
4836           defaultval=
4837           if test -z "$defaultval"; then
4838               if test x"$enablestring" = xdisable; then
4839                   defaultval=yes
4840               else
4841                   defaultval=no
4842               fi
4843           fi
4844
4845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4846 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4847           # Check whether --enable-debug_flag was given.
4848 if test "${enable_debug_flag+set}" = set; then
4849   enableval=$enable_debug_flag;
4850                           if test "$enableval" = yes; then
4851                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4852                           else
4853                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4854                           fi
4855
4856 else
4857
4858                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4859
4860 fi
4861
4862
4863           eval "$wx_cv_use_debug_flag"
4864
4865           if test x"$enablestring" = xdisable; then
4866             if test $wxUSE_DEBUG_FLAG = yes; then
4867               result=no
4868             else
4869               result=yes
4870             fi
4871           else
4872             result=$wxUSE_DEBUG_FLAG
4873           fi
4874
4875           { echo "$as_me:$LINENO: result: $result" >&5
4876 echo "${ECHO_T}$result" >&6; }
4877
4878
4879           enablestring=
4880           defaultval=
4881           if test -z "$defaultval"; then
4882               if test x"$enablestring" = xdisable; then
4883                   defaultval=yes
4884               else
4885                   defaultval=no
4886               fi
4887           fi
4888
4889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4890 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4891           # Check whether --enable-debug_info was given.
4892 if test "${enable_debug_info+set}" = set; then
4893   enableval=$enable_debug_info;
4894                           if test "$enableval" = yes; then
4895                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4896                           else
4897                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4898                           fi
4899
4900 else
4901
4902                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4903
4904 fi
4905
4906
4907           eval "$wx_cv_use_debug_info"
4908
4909           if test x"$enablestring" = xdisable; then
4910             if test $wxUSE_DEBUG_INFO = yes; then
4911               result=no
4912             else
4913               result=yes
4914             fi
4915           else
4916             result=$wxUSE_DEBUG_INFO
4917           fi
4918
4919           { echo "$as_me:$LINENO: result: $result" >&5
4920 echo "${ECHO_T}$result" >&6; }
4921
4922
4923 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4924     wxUSE_DEBUG=yes
4925     BUILD=debug
4926 fi
4927
4928
4929           enablestring=
4930           defaultval=
4931           if test -z "$defaultval"; then
4932               if test x"$enablestring" = xdisable; then
4933                   defaultval=yes
4934               else
4935                   defaultval=no
4936               fi
4937           fi
4938
4939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4940 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4941           # Check whether --enable-debug_gdb was given.
4942 if test "${enable_debug_gdb+set}" = set; then
4943   enableval=$enable_debug_gdb;
4944                           if test "$enableval" = yes; then
4945                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4946                           else
4947                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4948                           fi
4949
4950 else
4951
4952                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4953
4954 fi
4955
4956
4957           eval "$wx_cv_use_debug_gdb"
4958
4959           if test x"$enablestring" = xdisable; then
4960             if test $wxUSE_DEBUG_GDB = yes; then
4961               result=no
4962             else
4963               result=yes
4964             fi
4965           else
4966             result=$wxUSE_DEBUG_GDB
4967           fi
4968
4969           { echo "$as_me:$LINENO: result: $result" >&5
4970 echo "${ECHO_T}$result" >&6; }
4971
4972
4973           enablestring=
4974           defaultval=
4975           if test -z "$defaultval"; then
4976               if test x"$enablestring" = xdisable; then
4977                   defaultval=yes
4978               else
4979                   defaultval=no
4980               fi
4981           fi
4982
4983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4984 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4985           # Check whether --enable-debug_cntxt was given.
4986 if test "${enable_debug_cntxt+set}" = set; then
4987   enableval=$enable_debug_cntxt;
4988                           if test "$enableval" = yes; then
4989                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4990                           else
4991                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4992                           fi
4993
4994 else
4995
4996                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4997
4998 fi
4999
5000
5001           eval "$wx_cv_use_debug_cntxt"
5002
5003           if test x"$enablestring" = xdisable; then
5004             if test $wxUSE_DEBUG_CONTEXT = yes; then
5005               result=no
5006             else
5007               result=yes
5008             fi
5009           else
5010             result=$wxUSE_DEBUG_CONTEXT
5011           fi
5012
5013           { echo "$as_me:$LINENO: result: $result" >&5
5014 echo "${ECHO_T}$result" >&6; }
5015
5016
5017           enablestring=
5018           defaultval=
5019           if test -z "$defaultval"; then
5020               if test x"$enablestring" = xdisable; then
5021                   defaultval=yes
5022               else
5023                   defaultval=no
5024               fi
5025           fi
5026
5027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5028 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5029           # Check whether --enable-mem_tracing was given.
5030 if test "${enable_mem_tracing+set}" = set; then
5031   enableval=$enable_mem_tracing;
5032                           if test "$enableval" = yes; then
5033                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5034                           else
5035                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5036                           fi
5037
5038 else
5039
5040                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5041
5042 fi
5043
5044
5045           eval "$wx_cv_use_mem_tracing"
5046
5047           if test x"$enablestring" = xdisable; then
5048             if test $wxUSE_MEM_TRACING = yes; then
5049               result=no
5050             else
5051               result=yes
5052             fi
5053           else
5054             result=$wxUSE_MEM_TRACING
5055           fi
5056
5057           { echo "$as_me:$LINENO: result: $result" >&5
5058 echo "${ECHO_T}$result" >&6; }
5059
5060
5061           enablestring=
5062           defaultval=
5063           if test -z "$defaultval"; then
5064               if test x"$enablestring" = xdisable; then
5065                   defaultval=yes
5066               else
5067                   defaultval=no
5068               fi
5069           fi
5070
5071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5072 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5073           # Check whether --enable-profile was given.
5074 if test "${enable_profile+set}" = set; then
5075   enableval=$enable_profile;
5076                           if test "$enableval" = yes; then
5077                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5078                           else
5079                             wx_cv_use_profile='wxUSE_PROFILE=no'
5080                           fi
5081
5082 else
5083
5084                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5085
5086 fi
5087
5088
5089           eval "$wx_cv_use_profile"
5090
5091           if test x"$enablestring" = xdisable; then
5092             if test $wxUSE_PROFILE = yes; then
5093               result=no
5094             else
5095               result=yes
5096             fi
5097           else
5098             result=$wxUSE_PROFILE
5099           fi
5100
5101           { echo "$as_me:$LINENO: result: $result" >&5
5102 echo "${ECHO_T}$result" >&6; }
5103
5104
5105           enablestring=
5106           defaultval=
5107           if test -z "$defaultval"; then
5108               if test x"$enablestring" = xdisable; then
5109                   defaultval=yes
5110               else
5111                   defaultval=no
5112               fi
5113           fi
5114
5115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5116 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5117           # Check whether --enable-no_rtti was given.
5118 if test "${enable_no_rtti+set}" = set; then
5119   enableval=$enable_no_rtti;
5120                           if test "$enableval" = yes; then
5121                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5122                           else
5123                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5124                           fi
5125
5126 else
5127
5128                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5129
5130 fi
5131
5132
5133           eval "$wx_cv_use_no_rtti"
5134
5135           if test x"$enablestring" = xdisable; then
5136             if test $wxUSE_NO_RTTI = yes; then
5137               result=no
5138             else
5139               result=yes
5140             fi
5141           else
5142             result=$wxUSE_NO_RTTI
5143           fi
5144
5145           { echo "$as_me:$LINENO: result: $result" >&5
5146 echo "${ECHO_T}$result" >&6; }
5147
5148
5149           enablestring=
5150           defaultval=
5151           if test -z "$defaultval"; then
5152               if test x"$enablestring" = xdisable; then
5153                   defaultval=yes
5154               else
5155                   defaultval=no
5156               fi
5157           fi
5158
5159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5160 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5161           # Check whether --enable-no_exceptions was given.
5162 if test "${enable_no_exceptions+set}" = set; then
5163   enableval=$enable_no_exceptions;
5164                           if test "$enableval" = yes; then
5165                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5166                           else
5167                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5168                           fi
5169
5170 else
5171
5172                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5173
5174 fi
5175
5176
5177           eval "$wx_cv_use_no_exceptions"
5178
5179           if test x"$enablestring" = xdisable; then
5180             if test $wxUSE_NO_EXCEPTIONS = yes; then
5181               result=no
5182             else
5183               result=yes
5184             fi
5185           else
5186             result=$wxUSE_NO_EXCEPTIONS
5187           fi
5188
5189           { echo "$as_me:$LINENO: result: $result" >&5
5190 echo "${ECHO_T}$result" >&6; }
5191
5192
5193           enablestring=
5194           defaultval=
5195           if test -z "$defaultval"; then
5196               if test x"$enablestring" = xdisable; then
5197                   defaultval=yes
5198               else
5199                   defaultval=no
5200               fi
5201           fi
5202
5203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5204 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5205           # Check whether --enable-permissive was given.
5206 if test "${enable_permissive+set}" = set; then
5207   enableval=$enable_permissive;
5208                           if test "$enableval" = yes; then
5209                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5210                           else
5211                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5212                           fi
5213
5214 else
5215
5216                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5217
5218 fi
5219
5220
5221           eval "$wx_cv_use_permissive"
5222
5223           if test x"$enablestring" = xdisable; then
5224             if test $wxUSE_PERMISSIVE = yes; then
5225               result=no
5226             else
5227               result=yes
5228             fi
5229           else
5230             result=$wxUSE_PERMISSIVE
5231           fi
5232
5233           { echo "$as_me:$LINENO: result: $result" >&5
5234 echo "${ECHO_T}$result" >&6; }
5235
5236
5237           enablestring=
5238           defaultval=
5239           if test -z "$defaultval"; then
5240               if test x"$enablestring" = xdisable; then
5241                   defaultval=yes
5242               else
5243                   defaultval=no
5244               fi
5245           fi
5246
5247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5248 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5249           # Check whether --enable-no_deps was given.
5250 if test "${enable_no_deps+set}" = set; then
5251   enableval=$enable_no_deps;
5252                           if test "$enableval" = yes; then
5253                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5254                           else
5255                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5256                           fi
5257
5258 else
5259
5260                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5261
5262 fi
5263
5264
5265           eval "$wx_cv_use_no_deps"
5266
5267           if test x"$enablestring" = xdisable; then
5268             if test $wxUSE_NO_DEPS = yes; then
5269               result=no
5270             else
5271               result=yes
5272             fi
5273           else
5274             result=$wxUSE_NO_DEPS
5275           fi
5276
5277           { echo "$as_me:$LINENO: result: $result" >&5
5278 echo "${ECHO_T}$result" >&6; }
5279
5280
5281           enablestring=disable
5282           defaultval=
5283           if test -z "$defaultval"; then
5284               if test x"$enablestring" = xdisable; then
5285                   defaultval=yes
5286               else
5287                   defaultval=no
5288               fi
5289           fi
5290
5291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5292 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5293           # Check whether --enable-vararg_macros was given.
5294 if test "${enable_vararg_macros+set}" = set; then
5295   enableval=$enable_vararg_macros;
5296                           if test "$enableval" = yes; then
5297                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5298                           else
5299                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5300                           fi
5301
5302 else
5303
5304                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5305
5306 fi
5307
5308
5309           eval "$wx_cv_use_vararg_macros"
5310
5311           if test x"$enablestring" = xdisable; then
5312             if test $wxUSE_VARARG_MACROS = yes; then
5313               result=no
5314             else
5315               result=yes
5316             fi
5317           else
5318             result=$wxUSE_VARARG_MACROS
5319           fi
5320
5321           { echo "$as_me:$LINENO: result: $result" >&5
5322 echo "${ECHO_T}$result" >&6; }
5323
5324
5325           enablestring=
5326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5327 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5328           # Check whether --enable-universal_binary was given.
5329 if test "${enable_universal_binary+set}" = set; then
5330   enableval=$enable_universal_binary;
5331                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5332
5333 else
5334
5335                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5336
5337 fi
5338
5339
5340           eval "$wx_cv_use_universal_binary"
5341
5342           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5343 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5344
5345
5346
5347           enablestring=
5348           defaultval=
5349           if test -z "$defaultval"; then
5350               if test x"$enablestring" = xdisable; then
5351                   defaultval=yes
5352               else
5353                   defaultval=no
5354               fi
5355           fi
5356
5357           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5358 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5359           # Check whether --enable-compat26 was given.
5360 if test "${enable_compat26+set}" = set; then
5361   enableval=$enable_compat26;
5362                           if test "$enableval" = yes; then
5363                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5364                           else
5365                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5366                           fi
5367
5368 else
5369
5370                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5371
5372 fi
5373
5374
5375           eval "$wx_cv_use_compat26"
5376
5377           if test x"$enablestring" = xdisable; then
5378             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5379               result=no
5380             else
5381               result=yes
5382             fi
5383           else
5384             result=$WXWIN_COMPATIBILITY_2_6
5385           fi
5386
5387           { echo "$as_me:$LINENO: result: $result" >&5
5388 echo "${ECHO_T}$result" >&6; }
5389
5390
5391           enablestring=disable
5392           defaultval=
5393           if test -z "$defaultval"; then
5394               if test x"$enablestring" = xdisable; then
5395                   defaultval=yes
5396               else
5397                   defaultval=no
5398               fi
5399           fi
5400
5401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5402 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5403           # Check whether --enable-compat28 was given.
5404 if test "${enable_compat28+set}" = set; then
5405   enableval=$enable_compat28;
5406                           if test "$enableval" = yes; then
5407                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5408                           else
5409                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5410                           fi
5411
5412 else
5413
5414                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5415
5416 fi
5417
5418
5419           eval "$wx_cv_use_compat28"
5420
5421           if test x"$enablestring" = xdisable; then
5422             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5423               result=no
5424             else
5425               result=yes
5426             fi
5427           else
5428             result=$WXWIN_COMPATIBILITY_2_8
5429           fi
5430
5431           { echo "$as_me:$LINENO: result: $result" >&5
5432 echo "${ECHO_T}$result" >&6; }
5433
5434
5435
5436           enablestring=disable
5437           defaultval=
5438           if test -z "$defaultval"; then
5439               if test x"$enablestring" = xdisable; then
5440                   defaultval=yes
5441               else
5442                   defaultval=no
5443               fi
5444           fi
5445
5446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5447 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5448           # Check whether --enable-rpath was given.
5449 if test "${enable_rpath+set}" = set; then
5450   enableval=$enable_rpath;
5451                           if test "$enableval" = yes; then
5452                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5453                           else
5454                             wx_cv_use_rpath='wxUSE_RPATH=no'
5455                           fi
5456
5457 else
5458
5459                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5460
5461 fi
5462
5463
5464           eval "$wx_cv_use_rpath"
5465
5466           if test x"$enablestring" = xdisable; then
5467             if test $wxUSE_RPATH = yes; then
5468               result=no
5469             else
5470               result=yes
5471             fi
5472           else
5473             result=$wxUSE_RPATH
5474           fi
5475
5476           { echo "$as_me:$LINENO: result: $result" >&5
5477 echo "${ECHO_T}$result" >&6; }
5478
5479
5480
5481           enablestring=
5482           defaultval=
5483           if test -z "$defaultval"; then
5484               if test x"$enablestring" = xdisable; then
5485                   defaultval=yes
5486               else
5487                   defaultval=no
5488               fi
5489           fi
5490
5491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5492 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5493           # Check whether --enable-objc_uniquifying was given.
5494 if test "${enable_objc_uniquifying+set}" = set; then
5495   enableval=$enable_objc_uniquifying;
5496                           if test "$enableval" = yes; then
5497                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5498                           else
5499                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5500                           fi
5501
5502 else
5503
5504                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5505
5506 fi
5507
5508
5509           eval "$wx_cv_use_objc_uniquifying"
5510
5511           if test x"$enablestring" = xdisable; then
5512             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5513               result=no
5514             else
5515               result=yes
5516             fi
5517           else
5518             result=$wxUSE_OBJC_UNIQUIFYING
5519           fi
5520
5521           { echo "$as_me:$LINENO: result: $result" >&5
5522 echo "${ECHO_T}$result" >&6; }
5523
5524
5525
5526           enablestring=disable
5527           defaultval=
5528           if test -z "$defaultval"; then
5529               if test x"$enablestring" = xdisable; then
5530                   defaultval=yes
5531               else
5532                   defaultval=no
5533               fi
5534           fi
5535
5536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5537 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5538           # Check whether --enable-visibility was given.
5539 if test "${enable_visibility+set}" = set; then
5540   enableval=$enable_visibility;
5541                           if test "$enableval" = yes; then
5542                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5543                           else
5544                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5545                           fi
5546
5547 else
5548
5549                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5550
5551 fi
5552
5553
5554           eval "$wx_cv_use_visibility"
5555
5556           if test x"$enablestring" = xdisable; then
5557             if test $wxUSE_VISIBILITY = yes; then
5558               result=no
5559             else
5560               result=yes
5561             fi
5562           else
5563             result=$wxUSE_VISIBILITY
5564           fi
5565
5566           { echo "$as_me:$LINENO: result: $result" >&5
5567 echo "${ECHO_T}$result" >&6; }
5568
5569
5570
5571
5572           enablestring=
5573           defaultval=$wxUSE_ALL_FEATURES
5574           if test -z "$defaultval"; then
5575               if test x"$enablestring" = xdisable; then
5576                   defaultval=yes
5577               else
5578                   defaultval=no
5579               fi
5580           fi
5581
5582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5583 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5584           # Check whether --enable-intl was given.
5585 if test "${enable_intl+set}" = set; then
5586   enableval=$enable_intl;
5587                           if test "$enableval" = yes; then
5588                             wx_cv_use_intl='wxUSE_INTL=yes'
5589                           else
5590                             wx_cv_use_intl='wxUSE_INTL=no'
5591                           fi
5592
5593 else
5594
5595                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5596
5597 fi
5598
5599
5600           eval "$wx_cv_use_intl"
5601
5602           if test x"$enablestring" = xdisable; then
5603             if test $wxUSE_INTL = yes; then
5604               result=no
5605             else
5606               result=yes
5607             fi
5608           else
5609             result=$wxUSE_INTL
5610           fi
5611
5612           { echo "$as_me:$LINENO: result: $result" >&5
5613 echo "${ECHO_T}$result" >&6; }
5614
5615
5616           enablestring=
5617           defaultval=$wxUSE_ALL_FEATURES
5618           if test -z "$defaultval"; then
5619               if test x"$enablestring" = xdisable; then
5620                   defaultval=yes
5621               else
5622                   defaultval=no
5623               fi
5624           fi
5625
5626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5627 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5628           # Check whether --enable-xlocale was given.
5629 if test "${enable_xlocale+set}" = set; then
5630   enableval=$enable_xlocale;
5631                           if test "$enableval" = yes; then
5632                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5633                           else
5634                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5635                           fi
5636
5637 else
5638
5639                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5640
5641 fi
5642
5643
5644           eval "$wx_cv_use_xlocale"
5645
5646           if test x"$enablestring" = xdisable; then
5647             if test $wxUSE_XLOCALE = yes; then
5648               result=no
5649             else
5650               result=yes
5651             fi
5652           else
5653             result=$wxUSE_XLOCALE
5654           fi
5655
5656           { echo "$as_me:$LINENO: result: $result" >&5
5657 echo "${ECHO_T}$result" >&6; }
5658
5659
5660           enablestring=
5661           defaultval=$wxUSE_ALL_FEATURES
5662           if test -z "$defaultval"; then
5663               if test x"$enablestring" = xdisable; then
5664                   defaultval=yes
5665               else
5666                   defaultval=no
5667               fi
5668           fi
5669
5670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5671 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5672           # Check whether --enable-config was given.
5673 if test "${enable_config+set}" = set; then
5674   enableval=$enable_config;
5675                           if test "$enableval" = yes; then
5676                             wx_cv_use_config='wxUSE_CONFIG=yes'
5677                           else
5678                             wx_cv_use_config='wxUSE_CONFIG=no'
5679                           fi
5680
5681 else
5682
5683                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5684
5685 fi
5686
5687
5688           eval "$wx_cv_use_config"
5689
5690           if test x"$enablestring" = xdisable; then
5691             if test $wxUSE_CONFIG = yes; then
5692               result=no
5693             else
5694               result=yes
5695             fi
5696           else
5697             result=$wxUSE_CONFIG
5698           fi
5699
5700           { echo "$as_me:$LINENO: result: $result" >&5
5701 echo "${ECHO_T}$result" >&6; }
5702
5703
5704
5705           enablestring=
5706           defaultval=$wxUSE_ALL_FEATURES
5707           if test -z "$defaultval"; then
5708               if test x"$enablestring" = xdisable; then
5709                   defaultval=yes
5710               else
5711                   defaultval=no
5712               fi
5713           fi
5714
5715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5716 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5717           # Check whether --enable-protocols was given.
5718 if test "${enable_protocols+set}" = set; then
5719   enableval=$enable_protocols;
5720                           if test "$enableval" = yes; then
5721                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5722                           else
5723                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5724                           fi
5725
5726 else
5727
5728                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5729
5730 fi
5731
5732
5733           eval "$wx_cv_use_protocols"
5734
5735           if test x"$enablestring" = xdisable; then
5736             if test $wxUSE_PROTOCOL = yes; then
5737               result=no
5738             else
5739               result=yes
5740             fi
5741           else
5742             result=$wxUSE_PROTOCOL
5743           fi
5744
5745           { echo "$as_me:$LINENO: result: $result" >&5
5746 echo "${ECHO_T}$result" >&6; }
5747
5748
5749           enablestring=
5750           defaultval=$wxUSE_ALL_FEATURES
5751           if test -z "$defaultval"; then
5752               if test x"$enablestring" = xdisable; then
5753                   defaultval=yes
5754               else
5755                   defaultval=no
5756               fi
5757           fi
5758
5759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5760 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5761           # Check whether --enable-ftp was given.
5762 if test "${enable_ftp+set}" = set; then
5763   enableval=$enable_ftp;
5764                           if test "$enableval" = yes; then
5765                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5766                           else
5767                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5768                           fi
5769
5770 else
5771
5772                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5773
5774 fi
5775
5776
5777           eval "$wx_cv_use_ftp"
5778
5779           if test x"$enablestring" = xdisable; then
5780             if test $wxUSE_PROTOCOL_FTP = yes; then
5781               result=no
5782             else
5783               result=yes
5784             fi
5785           else
5786             result=$wxUSE_PROTOCOL_FTP
5787           fi
5788
5789           { echo "$as_me:$LINENO: result: $result" >&5
5790 echo "${ECHO_T}$result" >&6; }
5791
5792
5793           enablestring=
5794           defaultval=$wxUSE_ALL_FEATURES
5795           if test -z "$defaultval"; then
5796               if test x"$enablestring" = xdisable; then
5797                   defaultval=yes
5798               else
5799                   defaultval=no
5800               fi
5801           fi
5802
5803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5804 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5805           # Check whether --enable-http was given.
5806 if test "${enable_http+set}" = set; then
5807   enableval=$enable_http;
5808                           if test "$enableval" = yes; then
5809                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5810                           else
5811                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5812                           fi
5813
5814 else
5815
5816                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5817
5818 fi
5819
5820
5821           eval "$wx_cv_use_http"
5822
5823           if test x"$enablestring" = xdisable; then
5824             if test $wxUSE_PROTOCOL_HTTP = yes; then
5825               result=no
5826             else
5827               result=yes
5828             fi
5829           else
5830             result=$wxUSE_PROTOCOL_HTTP
5831           fi
5832
5833           { echo "$as_me:$LINENO: result: $result" >&5
5834 echo "${ECHO_T}$result" >&6; }
5835
5836
5837           enablestring=
5838           defaultval=$wxUSE_ALL_FEATURES
5839           if test -z "$defaultval"; then
5840               if test x"$enablestring" = xdisable; then
5841                   defaultval=yes
5842               else
5843                   defaultval=no
5844               fi
5845           fi
5846
5847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5848 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5849           # Check whether --enable-fileproto was given.
5850 if test "${enable_fileproto+set}" = set; then
5851   enableval=$enable_fileproto;
5852                           if test "$enableval" = yes; then
5853                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5854                           else
5855                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5856                           fi
5857
5858 else
5859
5860                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5861
5862 fi
5863
5864
5865           eval "$wx_cv_use_fileproto"
5866
5867           if test x"$enablestring" = xdisable; then
5868             if test $wxUSE_PROTOCOL_FILE = yes; then
5869               result=no
5870             else
5871               result=yes
5872             fi
5873           else
5874             result=$wxUSE_PROTOCOL_FILE
5875           fi
5876
5877           { echo "$as_me:$LINENO: result: $result" >&5
5878 echo "${ECHO_T}$result" >&6; }
5879
5880
5881           enablestring=
5882           defaultval=$wxUSE_ALL_FEATURES
5883           if test -z "$defaultval"; then
5884               if test x"$enablestring" = xdisable; then
5885                   defaultval=yes
5886               else
5887                   defaultval=no
5888               fi
5889           fi
5890
5891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5892 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5893           # Check whether --enable-sockets was given.
5894 if test "${enable_sockets+set}" = set; then
5895   enableval=$enable_sockets;
5896                           if test "$enableval" = yes; then
5897                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5898                           else
5899                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5900                           fi
5901
5902 else
5903
5904                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5905
5906 fi
5907
5908
5909           eval "$wx_cv_use_sockets"
5910
5911           if test x"$enablestring" = xdisable; then
5912             if test $wxUSE_SOCKETS = yes; then
5913               result=no
5914             else
5915               result=yes
5916             fi
5917           else
5918             result=$wxUSE_SOCKETS
5919           fi
5920
5921           { echo "$as_me:$LINENO: result: $result" >&5
5922 echo "${ECHO_T}$result" >&6; }
5923
5924
5925           enablestring=
5926           defaultval=$wxUSE_ALL_FEATURES
5927           if test -z "$defaultval"; then
5928               if test x"$enablestring" = xdisable; then
5929                   defaultval=yes
5930               else
5931                   defaultval=no
5932               fi
5933           fi
5934
5935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5936 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5937           # Check whether --enable-ipv6 was given.
5938 if test "${enable_ipv6+set}" = set; then
5939   enableval=$enable_ipv6;
5940                           if test "$enableval" = yes; then
5941                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5942                           else
5943                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5944                           fi
5945
5946 else
5947
5948                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5949
5950 fi
5951
5952
5953           eval "$wx_cv_use_ipv6"
5954
5955           if test x"$enablestring" = xdisable; then
5956             if test $wxUSE_IPV6 = yes; then
5957               result=no
5958             else
5959               result=yes
5960             fi
5961           else
5962             result=$wxUSE_IPV6
5963           fi
5964
5965           { echo "$as_me:$LINENO: result: $result" >&5
5966 echo "${ECHO_T}$result" >&6; }
5967
5968
5969           enablestring=
5970           defaultval=$wxUSE_ALL_FEATURES
5971           if test -z "$defaultval"; then
5972               if test x"$enablestring" = xdisable; then
5973                   defaultval=yes
5974               else
5975                   defaultval=no
5976               fi
5977           fi
5978
5979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5980 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5981           # Check whether --enable-ole was given.
5982 if test "${enable_ole+set}" = set; then
5983   enableval=$enable_ole;
5984                           if test "$enableval" = yes; then
5985                             wx_cv_use_ole='wxUSE_OLE=yes'
5986                           else
5987                             wx_cv_use_ole='wxUSE_OLE=no'
5988                           fi
5989
5990 else
5991
5992                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5993
5994 fi
5995
5996
5997           eval "$wx_cv_use_ole"
5998
5999           if test x"$enablestring" = xdisable; then
6000             if test $wxUSE_OLE = yes; then
6001               result=no
6002             else
6003               result=yes
6004             fi
6005           else
6006             result=$wxUSE_OLE
6007           fi
6008
6009           { echo "$as_me:$LINENO: result: $result" >&5
6010 echo "${ECHO_T}$result" >&6; }
6011
6012
6013           enablestring=
6014           defaultval=$wxUSE_ALL_FEATURES
6015           if test -z "$defaultval"; then
6016               if test x"$enablestring" = xdisable; then
6017                   defaultval=yes
6018               else
6019                   defaultval=no
6020               fi
6021           fi
6022
6023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6024 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6025           # Check whether --enable-dataobj was given.
6026 if test "${enable_dataobj+set}" = set; then
6027   enableval=$enable_dataobj;
6028                           if test "$enableval" = yes; then
6029                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6030                           else
6031                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6032                           fi
6033
6034 else
6035
6036                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6037
6038 fi
6039
6040
6041           eval "$wx_cv_use_dataobj"
6042
6043           if test x"$enablestring" = xdisable; then
6044             if test $wxUSE_DATAOBJ = yes; then
6045               result=no
6046             else
6047               result=yes
6048             fi
6049           else
6050             result=$wxUSE_DATAOBJ
6051           fi
6052
6053           { echo "$as_me:$LINENO: result: $result" >&5
6054 echo "${ECHO_T}$result" >&6; }
6055
6056
6057
6058           enablestring=
6059           defaultval=$wxUSE_ALL_FEATURES
6060           if test -z "$defaultval"; then
6061               if test x"$enablestring" = xdisable; then
6062                   defaultval=yes
6063               else
6064                   defaultval=no
6065               fi
6066           fi
6067
6068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6069 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6070           # Check whether --enable-ipc was given.
6071 if test "${enable_ipc+set}" = set; then
6072   enableval=$enable_ipc;
6073                           if test "$enableval" = yes; then
6074                             wx_cv_use_ipc='wxUSE_IPC=yes'
6075                           else
6076                             wx_cv_use_ipc='wxUSE_IPC=no'
6077                           fi
6078
6079 else
6080
6081                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6082
6083 fi
6084
6085
6086           eval "$wx_cv_use_ipc"
6087
6088           if test x"$enablestring" = xdisable; then
6089             if test $wxUSE_IPC = yes; then
6090               result=no
6091             else
6092               result=yes
6093             fi
6094           else
6095             result=$wxUSE_IPC
6096           fi
6097
6098           { echo "$as_me:$LINENO: result: $result" >&5
6099 echo "${ECHO_T}$result" >&6; }
6100
6101
6102
6103           enablestring=
6104           defaultval=$wxUSE_ALL_FEATURES
6105           if test -z "$defaultval"; then
6106               if test x"$enablestring" = xdisable; then
6107                   defaultval=yes
6108               else
6109                   defaultval=no
6110               fi
6111           fi
6112
6113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6114 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6115           # Check whether --enable-baseevtloop was given.
6116 if test "${enable_baseevtloop+set}" = set; then
6117   enableval=$enable_baseevtloop;
6118                           if test "$enableval" = yes; then
6119                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6120                           else
6121                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6122                           fi
6123
6124 else
6125
6126                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6127
6128 fi
6129
6130
6131           eval "$wx_cv_use_baseevtloop"
6132
6133           if test x"$enablestring" = xdisable; then
6134             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6135               result=no
6136             else
6137               result=yes
6138             fi
6139           else
6140             result=$wxUSE_CONSOLE_EVENTLOOP
6141           fi
6142
6143           { echo "$as_me:$LINENO: result: $result" >&5
6144 echo "${ECHO_T}$result" >&6; }
6145
6146
6147           enablestring=
6148           defaultval=$wxUSE_ALL_FEATURES
6149           if test -z "$defaultval"; then
6150               if test x"$enablestring" = xdisable; then
6151                   defaultval=yes
6152               else
6153                   defaultval=no
6154               fi
6155           fi
6156
6157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6158 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6159           # Check whether --enable-epollloop was given.
6160 if test "${enable_epollloop+set}" = set; then
6161   enableval=$enable_epollloop;
6162                           if test "$enableval" = yes; then
6163                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6164                           else
6165                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6166                           fi
6167
6168 else
6169
6170                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6171
6172 fi
6173
6174
6175           eval "$wx_cv_use_epollloop"
6176
6177           if test x"$enablestring" = xdisable; then
6178             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6179               result=no
6180             else
6181               result=yes
6182             fi
6183           else
6184             result=$wxUSE_EPOLL_DISPATCHER
6185           fi
6186
6187           { echo "$as_me:$LINENO: result: $result" >&5
6188 echo "${ECHO_T}$result" >&6; }
6189
6190
6191           enablestring=
6192           defaultval=$wxUSE_ALL_FEATURES
6193           if test -z "$defaultval"; then
6194               if test x"$enablestring" = xdisable; then
6195                   defaultval=yes
6196               else
6197                   defaultval=no
6198               fi
6199           fi
6200
6201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6202 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6203           # Check whether --enable-selectloop was given.
6204 if test "${enable_selectloop+set}" = set; then
6205   enableval=$enable_selectloop;
6206                           if test "$enableval" = yes; then
6207                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6208                           else
6209                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6210                           fi
6211
6212 else
6213
6214                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6215
6216 fi
6217
6218
6219           eval "$wx_cv_use_selectloop"
6220
6221           if test x"$enablestring" = xdisable; then
6222             if test $wxUSE_SELECT_DISPATCHER = yes; then
6223               result=no
6224             else
6225               result=yes
6226             fi
6227           else
6228             result=$wxUSE_SELECT_DISPATCHER
6229           fi
6230
6231           { echo "$as_me:$LINENO: result: $result" >&5
6232 echo "${ECHO_T}$result" >&6; }
6233
6234
6235
6236           enablestring=
6237           defaultval=$wxUSE_ALL_FEATURES
6238           if test -z "$defaultval"; then
6239               if test x"$enablestring" = xdisable; then
6240                   defaultval=yes
6241               else
6242                   defaultval=no
6243               fi
6244           fi
6245
6246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6247 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6248           # Check whether --enable-apple_ieee was given.
6249 if test "${enable_apple_ieee+set}" = set; then
6250   enableval=$enable_apple_ieee;
6251                           if test "$enableval" = yes; then
6252                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6253                           else
6254                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6255                           fi
6256
6257 else
6258
6259                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6260
6261 fi
6262
6263
6264           eval "$wx_cv_use_apple_ieee"
6265
6266           if test x"$enablestring" = xdisable; then
6267             if test $wxUSE_APPLE_IEEE = yes; then
6268               result=no
6269             else
6270               result=yes
6271             fi
6272           else
6273             result=$wxUSE_APPLE_IEEE
6274           fi
6275
6276           { echo "$as_me:$LINENO: result: $result" >&5
6277 echo "${ECHO_T}$result" >&6; }
6278
6279
6280           enablestring=
6281           defaultval=$wxUSE_ALL_FEATURES
6282           if test -z "$defaultval"; then
6283               if test x"$enablestring" = xdisable; then
6284                   defaultval=yes
6285               else
6286                   defaultval=no
6287               fi
6288           fi
6289
6290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6291 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6292           # Check whether --enable-arcstream was given.
6293 if test "${enable_arcstream+set}" = set; then
6294   enableval=$enable_arcstream;
6295                           if test "$enableval" = yes; then
6296                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6297                           else
6298                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6299                           fi
6300
6301 else
6302
6303                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6304
6305 fi
6306
6307
6308           eval "$wx_cv_use_arcstream"
6309
6310           if test x"$enablestring" = xdisable; then
6311             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6312               result=no
6313             else
6314               result=yes
6315             fi
6316           else
6317             result=$wxUSE_ARCHIVE_STREAMS
6318           fi
6319
6320           { echo "$as_me:$LINENO: result: $result" >&5
6321 echo "${ECHO_T}$result" >&6; }
6322
6323
6324           enablestring=
6325           defaultval=$wxUSE_ALL_FEATURES
6326           if test -z "$defaultval"; then
6327               if test x"$enablestring" = xdisable; then
6328                   defaultval=yes
6329               else
6330                   defaultval=no
6331               fi
6332           fi
6333
6334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6336           # Check whether --enable-base64 was given.
6337 if test "${enable_base64+set}" = set; then
6338   enableval=$enable_base64;
6339                           if test "$enableval" = yes; then
6340                             wx_cv_use_base64='wxUSE_BASE64=yes'
6341                           else
6342                             wx_cv_use_base64='wxUSE_BASE64=no'
6343                           fi
6344
6345 else
6346
6347                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6348
6349 fi
6350
6351
6352           eval "$wx_cv_use_base64"
6353
6354           if test x"$enablestring" = xdisable; then
6355             if test $wxUSE_BASE64 = yes; then
6356               result=no
6357             else
6358               result=yes
6359             fi
6360           else
6361             result=$wxUSE_BASE64
6362           fi
6363
6364           { echo "$as_me:$LINENO: result: $result" >&5
6365 echo "${ECHO_T}$result" >&6; }
6366
6367
6368           enablestring=
6369           defaultval=$wxUSE_ALL_FEATURES
6370           if test -z "$defaultval"; then
6371               if test x"$enablestring" = xdisable; then
6372                   defaultval=yes
6373               else
6374                   defaultval=no
6375               fi
6376           fi
6377
6378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6379 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6380           # Check whether --enable-backtrace was given.
6381 if test "${enable_backtrace+set}" = set; then
6382   enableval=$enable_backtrace;
6383                           if test "$enableval" = yes; then
6384                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6385                           else
6386                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6387                           fi
6388
6389 else
6390
6391                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6392
6393 fi
6394
6395
6396           eval "$wx_cv_use_backtrace"
6397
6398           if test x"$enablestring" = xdisable; then
6399             if test $wxUSE_STACKWALKER = yes; then
6400               result=no
6401             else
6402               result=yes
6403             fi
6404           else
6405             result=$wxUSE_STACKWALKER
6406           fi
6407
6408           { echo "$as_me:$LINENO: result: $result" >&5
6409 echo "${ECHO_T}$result" >&6; }
6410
6411
6412           enablestring=
6413           defaultval=$wxUSE_ALL_FEATURES
6414           if test -z "$defaultval"; then
6415               if test x"$enablestring" = xdisable; then
6416                   defaultval=yes
6417               else
6418                   defaultval=no
6419               fi
6420           fi
6421
6422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6423 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6424           # Check whether --enable-catch_segvs was given.
6425 if test "${enable_catch_segvs+set}" = set; then
6426   enableval=$enable_catch_segvs;
6427                           if test "$enableval" = yes; then
6428                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6429                           else
6430                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6431                           fi
6432
6433 else
6434
6435                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6436
6437 fi
6438
6439
6440           eval "$wx_cv_use_catch_segvs"
6441
6442           if test x"$enablestring" = xdisable; then
6443             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6444               result=no
6445             else
6446               result=yes
6447             fi
6448           else
6449             result=$wxUSE_ON_FATAL_EXCEPTION
6450           fi
6451
6452           { echo "$as_me:$LINENO: result: $result" >&5
6453 echo "${ECHO_T}$result" >&6; }
6454
6455
6456           enablestring=
6457           defaultval=$wxUSE_ALL_FEATURES
6458           if test -z "$defaultval"; then
6459               if test x"$enablestring" = xdisable; then
6460                   defaultval=yes
6461               else
6462                   defaultval=no
6463               fi
6464           fi
6465
6466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6467 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6468           # Check whether --enable-cmdline was given.
6469 if test "${enable_cmdline+set}" = set; then
6470   enableval=$enable_cmdline;
6471                           if test "$enableval" = yes; then
6472                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6473                           else
6474                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6475                           fi
6476
6477 else
6478
6479                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6480
6481 fi
6482
6483
6484           eval "$wx_cv_use_cmdline"
6485
6486           if test x"$enablestring" = xdisable; then
6487             if test $wxUSE_CMDLINE_PARSER = yes; then
6488               result=no
6489             else
6490               result=yes
6491             fi
6492           else
6493             result=$wxUSE_CMDLINE_PARSER
6494           fi
6495
6496           { echo "$as_me:$LINENO: result: $result" >&5
6497 echo "${ECHO_T}$result" >&6; }
6498
6499
6500           enablestring=
6501           defaultval=$wxUSE_ALL_FEATURES
6502           if test -z "$defaultval"; then
6503               if test x"$enablestring" = xdisable; then
6504                   defaultval=yes
6505               else
6506                   defaultval=no
6507               fi
6508           fi
6509
6510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6511 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6512           # Check whether --enable-datetime was given.
6513 if test "${enable_datetime+set}" = set; then
6514   enableval=$enable_datetime;
6515                           if test "$enableval" = yes; then
6516                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6517                           else
6518                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6519                           fi
6520
6521 else
6522
6523                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6524
6525 fi
6526
6527
6528           eval "$wx_cv_use_datetime"
6529
6530           if test x"$enablestring" = xdisable; then
6531             if test $wxUSE_DATETIME = yes; then
6532               result=no
6533             else
6534               result=yes
6535             fi
6536           else
6537             result=$wxUSE_DATETIME
6538           fi
6539
6540           { echo "$as_me:$LINENO: result: $result" >&5
6541 echo "${ECHO_T}$result" >&6; }
6542
6543
6544           enablestring=
6545           defaultval=$wxUSE_ALL_FEATURES
6546           if test -z "$defaultval"; then
6547               if test x"$enablestring" = xdisable; then
6548                   defaultval=yes
6549               else
6550                   defaultval=no
6551               fi
6552           fi
6553
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6556           # Check whether --enable-debugreport was given.
6557 if test "${enable_debugreport+set}" = set; then
6558   enableval=$enable_debugreport;
6559                           if test "$enableval" = yes; then
6560                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6561                           else
6562                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6563                           fi
6564
6565 else
6566
6567                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6568
6569 fi
6570
6571
6572           eval "$wx_cv_use_debugreport"
6573
6574           if test x"$enablestring" = xdisable; then
6575             if test $wxUSE_DEBUGREPORT = yes; then
6576               result=no
6577             else
6578               result=yes
6579             fi
6580           else
6581             result=$wxUSE_DEBUGREPORT
6582           fi
6583
6584           { echo "$as_me:$LINENO: result: $result" >&5
6585 echo "${ECHO_T}$result" >&6; }
6586
6587
6588           enablestring=
6589           defaultval=$wxUSE_ALL_FEATURES
6590           if test -z "$defaultval"; then
6591               if test x"$enablestring" = xdisable; then
6592                   defaultval=yes
6593               else
6594                   defaultval=no
6595               fi
6596           fi
6597
6598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6599 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6600           # Check whether --enable-dialupman was given.
6601 if test "${enable_dialupman+set}" = set; then
6602   enableval=$enable_dialupman;
6603                           if test "$enableval" = yes; then
6604                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6605                           else
6606                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6607                           fi
6608
6609 else
6610
6611                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6612
6613 fi
6614
6615
6616           eval "$wx_cv_use_dialupman"
6617
6618           if test x"$enablestring" = xdisable; then
6619             if test $wxUSE_DIALUP_MANAGER = yes; then
6620               result=no
6621             else
6622               result=yes
6623             fi
6624           else
6625             result=$wxUSE_DIALUP_MANAGER
6626           fi
6627
6628           { echo "$as_me:$LINENO: result: $result" >&5
6629 echo "${ECHO_T}$result" >&6; }
6630
6631
6632           enablestring=
6633           defaultval=$wxUSE_ALL_FEATURES
6634           if test -z "$defaultval"; then
6635               if test x"$enablestring" = xdisable; then
6636                   defaultval=yes
6637               else
6638                   defaultval=no
6639               fi
6640           fi
6641
6642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6643 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6644           # Check whether --enable-dynlib was given.
6645 if test "${enable_dynlib+set}" = set; then
6646   enableval=$enable_dynlib;
6647                           if test "$enableval" = yes; then
6648                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6649                           else
6650                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6651                           fi
6652
6653 else
6654
6655                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6656
6657 fi
6658
6659
6660           eval "$wx_cv_use_dynlib"
6661
6662           if test x"$enablestring" = xdisable; then
6663             if test $wxUSE_DYNLIB_CLASS = yes; then
6664               result=no
6665             else
6666               result=yes
6667             fi
6668           else
6669             result=$wxUSE_DYNLIB_CLASS
6670           fi
6671
6672           { echo "$as_me:$LINENO: result: $result" >&5
6673 echo "${ECHO_T}$result" >&6; }
6674
6675
6676           enablestring=
6677           defaultval=$wxUSE_ALL_FEATURES
6678           if test -z "$defaultval"; then
6679               if test x"$enablestring" = xdisable; then
6680                   defaultval=yes
6681               else
6682                   defaultval=no
6683               fi
6684           fi
6685
6686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6687 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6688           # Check whether --enable-dynamicloader was given.
6689 if test "${enable_dynamicloader+set}" = set; then
6690   enableval=$enable_dynamicloader;
6691                           if test "$enableval" = yes; then
6692                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6693                           else
6694                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6695                           fi
6696
6697 else
6698
6699                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6700
6701 fi
6702
6703
6704           eval "$wx_cv_use_dynamicloader"
6705
6706           if test x"$enablestring" = xdisable; then
6707             if test $wxUSE_DYNAMIC_LOADER = yes; then
6708               result=no
6709             else
6710               result=yes
6711             fi
6712           else
6713             result=$wxUSE_DYNAMIC_LOADER
6714           fi
6715
6716           { echo "$as_me:$LINENO: result: $result" >&5
6717 echo "${ECHO_T}$result" >&6; }
6718
6719
6720           enablestring=
6721           defaultval=$wxUSE_ALL_FEATURES
6722           if test -z "$defaultval"; then
6723               if test x"$enablestring" = xdisable; then
6724                   defaultval=yes
6725               else
6726                   defaultval=no
6727               fi
6728           fi
6729
6730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6731 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6732           # Check whether --enable-exceptions was given.
6733 if test "${enable_exceptions+set}" = set; then
6734   enableval=$enable_exceptions;
6735                           if test "$enableval" = yes; then
6736                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6737                           else
6738                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6739                           fi
6740
6741 else
6742
6743                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6744
6745 fi
6746
6747
6748           eval "$wx_cv_use_exceptions"
6749
6750           if test x"$enablestring" = xdisable; then
6751             if test $wxUSE_EXCEPTIONS = yes; then
6752               result=no
6753             else
6754               result=yes
6755             fi
6756           else
6757             result=$wxUSE_EXCEPTIONS
6758           fi
6759
6760           { echo "$as_me:$LINENO: result: $result" >&5
6761 echo "${ECHO_T}$result" >&6; }
6762
6763
6764           enablestring=
6765           defaultval=$wxUSE_ALL_FEATURES
6766           if test -z "$defaultval"; then
6767               if test x"$enablestring" = xdisable; then
6768                   defaultval=yes
6769               else
6770                   defaultval=no
6771               fi
6772           fi
6773
6774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6775 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6776           # Check whether --enable-ffile was given.
6777 if test "${enable_ffile+set}" = set; then
6778   enableval=$enable_ffile;
6779                           if test "$enableval" = yes; then
6780                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6781                           else
6782                             wx_cv_use_ffile='wxUSE_FFILE=no'
6783                           fi
6784
6785 else
6786
6787                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6788
6789 fi
6790
6791
6792           eval "$wx_cv_use_ffile"
6793
6794           if test x"$enablestring" = xdisable; then
6795             if test $wxUSE_FFILE = yes; then
6796               result=no
6797             else
6798               result=yes
6799             fi
6800           else
6801             result=$wxUSE_FFILE
6802           fi
6803
6804           { echo "$as_me:$LINENO: result: $result" >&5
6805 echo "${ECHO_T}$result" >&6; }
6806
6807
6808           enablestring=
6809           defaultval=$wxUSE_ALL_FEATURES
6810           if test -z "$defaultval"; then
6811               if test x"$enablestring" = xdisable; then
6812                   defaultval=yes
6813               else
6814                   defaultval=no
6815               fi
6816           fi
6817
6818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6819 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6820           # Check whether --enable-file was given.
6821 if test "${enable_file+set}" = set; then
6822   enableval=$enable_file;
6823                           if test "$enableval" = yes; then
6824                             wx_cv_use_file='wxUSE_FILE=yes'
6825                           else
6826                             wx_cv_use_file='wxUSE_FILE=no'
6827                           fi
6828
6829 else
6830
6831                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6832
6833 fi
6834
6835
6836           eval "$wx_cv_use_file"
6837
6838           if test x"$enablestring" = xdisable; then
6839             if test $wxUSE_FILE = yes; then
6840               result=no
6841             else
6842               result=yes
6843             fi
6844           else
6845             result=$wxUSE_FILE
6846           fi
6847
6848           { echo "$as_me:$LINENO: result: $result" >&5
6849 echo "${ECHO_T}$result" >&6; }
6850
6851
6852           enablestring=
6853           defaultval=$wxUSE_ALL_FEATURES
6854           if test -z "$defaultval"; then
6855               if test x"$enablestring" = xdisable; then
6856                   defaultval=yes
6857               else
6858                   defaultval=no
6859               fi
6860           fi
6861
6862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6863 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6864           # Check whether --enable-filesystem was given.
6865 if test "${enable_filesystem+set}" = set; then
6866   enableval=$enable_filesystem;
6867                           if test "$enableval" = yes; then
6868                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6869                           else
6870                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6871                           fi
6872
6873 else
6874
6875                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6876
6877 fi
6878
6879
6880           eval "$wx_cv_use_filesystem"
6881
6882           if test x"$enablestring" = xdisable; then
6883             if test $wxUSE_FILESYSTEM = yes; then
6884               result=no
6885             else
6886               result=yes
6887             fi
6888           else
6889             result=$wxUSE_FILESYSTEM
6890           fi
6891
6892           { echo "$as_me:$LINENO: result: $result" >&5
6893 echo "${ECHO_T}$result" >&6; }
6894
6895
6896           enablestring=
6897           defaultval=$wxUSE_ALL_FEATURES
6898           if test -z "$defaultval"; then
6899               if test x"$enablestring" = xdisable; then
6900                   defaultval=yes
6901               else
6902                   defaultval=no
6903               fi
6904           fi
6905
6906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6907 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6908           # Check whether --enable-fontenum was given.
6909 if test "${enable_fontenum+set}" = set; then
6910   enableval=$enable_fontenum;
6911                           if test "$enableval" = yes; then
6912                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6913                           else
6914                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6915                           fi
6916
6917 else
6918
6919                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6920
6921 fi
6922
6923
6924           eval "$wx_cv_use_fontenum"
6925
6926           if test x"$enablestring" = xdisable; then
6927             if test $wxUSE_FONTENUM = yes; then
6928               result=no
6929             else
6930               result=yes
6931             fi
6932           else
6933             result=$wxUSE_FONTENUM
6934           fi
6935
6936           { echo "$as_me:$LINENO: result: $result" >&5
6937 echo "${ECHO_T}$result" >&6; }
6938
6939
6940           enablestring=
6941           defaultval=$wxUSE_ALL_FEATURES
6942           if test -z "$defaultval"; then
6943               if test x"$enablestring" = xdisable; then
6944                   defaultval=yes
6945               else
6946                   defaultval=no
6947               fi
6948           fi
6949
6950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6951 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6952           # Check whether --enable-fontmap was given.
6953 if test "${enable_fontmap+set}" = set; then
6954   enableval=$enable_fontmap;
6955                           if test "$enableval" = yes; then
6956                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6957                           else
6958                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6959                           fi
6960
6961 else
6962
6963                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6964
6965 fi
6966
6967
6968           eval "$wx_cv_use_fontmap"
6969
6970           if test x"$enablestring" = xdisable; then
6971             if test $wxUSE_FONTMAP = yes; then
6972               result=no
6973             else
6974               result=yes
6975             fi
6976           else
6977             result=$wxUSE_FONTMAP
6978           fi
6979
6980           { echo "$as_me:$LINENO: result: $result" >&5
6981 echo "${ECHO_T}$result" >&6; }
6982
6983
6984           enablestring=
6985           defaultval=$wxUSE_ALL_FEATURES
6986           if test -z "$defaultval"; then
6987               if test x"$enablestring" = xdisable; then
6988                   defaultval=yes
6989               else
6990                   defaultval=no
6991               fi
6992           fi
6993
6994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6995 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6996           # Check whether --enable-fs_archive was given.
6997 if test "${enable_fs_archive+set}" = set; then
6998   enableval=$enable_fs_archive;
6999                           if test "$enableval" = yes; then
7000                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7001                           else
7002                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7003                           fi
7004
7005 else
7006
7007                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7008
7009 fi
7010
7011
7012           eval "$wx_cv_use_fs_archive"
7013
7014           if test x"$enablestring" = xdisable; then
7015             if test $wxUSE_FS_ARCHIVE = yes; then
7016               result=no
7017             else
7018               result=yes
7019             fi
7020           else
7021             result=$wxUSE_FS_ARCHIVE
7022           fi
7023
7024           { echo "$as_me:$LINENO: result: $result" >&5
7025 echo "${ECHO_T}$result" >&6; }
7026
7027
7028           enablestring=
7029           defaultval=$wxUSE_ALL_FEATURES
7030           if test -z "$defaultval"; then
7031               if test x"$enablestring" = xdisable; then
7032                   defaultval=yes
7033               else
7034                   defaultval=no
7035               fi
7036           fi
7037
7038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7039 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7040           # Check whether --enable-fs_inet was given.
7041 if test "${enable_fs_inet+set}" = set; then
7042   enableval=$enable_fs_inet;
7043                           if test "$enableval" = yes; then
7044                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7045                           else
7046                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7047                           fi
7048
7049 else
7050
7051                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7052
7053 fi
7054
7055
7056           eval "$wx_cv_use_fs_inet"
7057
7058           if test x"$enablestring" = xdisable; then
7059             if test $wxUSE_FS_INET = yes; then
7060               result=no
7061             else
7062               result=yes
7063             fi
7064           else
7065             result=$wxUSE_FS_INET
7066           fi
7067
7068           { echo "$as_me:$LINENO: result: $result" >&5
7069 echo "${ECHO_T}$result" >&6; }
7070
7071
7072           enablestring=
7073           defaultval=$wxUSE_ALL_FEATURES
7074           if test -z "$defaultval"; then
7075               if test x"$enablestring" = xdisable; then
7076                   defaultval=yes
7077               else
7078                   defaultval=no
7079               fi
7080           fi
7081
7082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7083 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7084           # Check whether --enable-fs_zip was given.
7085 if test "${enable_fs_zip+set}" = set; then
7086   enableval=$enable_fs_zip;
7087                           if test "$enableval" = yes; then
7088                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7089                           else
7090                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7091                           fi
7092
7093 else
7094
7095                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7096
7097 fi
7098
7099
7100           eval "$wx_cv_use_fs_zip"
7101
7102           if test x"$enablestring" = xdisable; then
7103             if test $wxUSE_FS_ZIP = yes; then
7104               result=no
7105             else
7106               result=yes
7107             fi
7108           else
7109             result=$wxUSE_FS_ZIP
7110           fi
7111
7112           { echo "$as_me:$LINENO: result: $result" >&5
7113 echo "${ECHO_T}$result" >&6; }
7114
7115
7116           enablestring=
7117           defaultval=$wxUSE_ALL_FEATURES
7118           if test -z "$defaultval"; then
7119               if test x"$enablestring" = xdisable; then
7120                   defaultval=yes
7121               else
7122                   defaultval=no
7123               fi
7124           fi
7125
7126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7127 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7128           # Check whether --enable-geometry was given.
7129 if test "${enable_geometry+set}" = set; then
7130   enableval=$enable_geometry;
7131                           if test "$enableval" = yes; then
7132                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7133                           else
7134                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7135                           fi
7136
7137 else
7138
7139                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7140
7141 fi
7142
7143
7144           eval "$wx_cv_use_geometry"
7145
7146           if test x"$enablestring" = xdisable; then
7147             if test $wxUSE_GEOMETRY = yes; then
7148               result=no
7149             else
7150               result=yes
7151             fi
7152           else
7153             result=$wxUSE_GEOMETRY
7154           fi
7155
7156           { echo "$as_me:$LINENO: result: $result" >&5
7157 echo "${ECHO_T}$result" >&6; }
7158
7159
7160           enablestring=
7161           defaultval=$wxUSE_ALL_FEATURES
7162           if test -z "$defaultval"; then
7163               if test x"$enablestring" = xdisable; then
7164                   defaultval=yes
7165               else
7166                   defaultval=no
7167               fi
7168           fi
7169
7170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7171 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7172           # Check whether --enable-log was given.
7173 if test "${enable_log+set}" = set; then
7174   enableval=$enable_log;
7175                           if test "$enableval" = yes; then
7176                             wx_cv_use_log='wxUSE_LOG=yes'
7177                           else
7178                             wx_cv_use_log='wxUSE_LOG=no'
7179                           fi
7180
7181 else
7182
7183                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7184
7185 fi
7186
7187
7188           eval "$wx_cv_use_log"
7189
7190           if test x"$enablestring" = xdisable; then
7191             if test $wxUSE_LOG = yes; then
7192               result=no
7193             else
7194               result=yes
7195             fi
7196           else
7197             result=$wxUSE_LOG
7198           fi
7199
7200           { echo "$as_me:$LINENO: result: $result" >&5
7201 echo "${ECHO_T}$result" >&6; }
7202
7203
7204           enablestring=
7205           defaultval=$wxUSE_ALL_FEATURES
7206           if test -z "$defaultval"; then
7207               if test x"$enablestring" = xdisable; then
7208                   defaultval=yes
7209               else
7210                   defaultval=no
7211               fi
7212           fi
7213
7214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7215 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7216           # Check whether --enable-longlong was given.
7217 if test "${enable_longlong+set}" = set; then
7218   enableval=$enable_longlong;
7219                           if test "$enableval" = yes; then
7220                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7221                           else
7222                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7223                           fi
7224
7225 else
7226
7227                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7228
7229 fi
7230
7231
7232           eval "$wx_cv_use_longlong"
7233
7234           if test x"$enablestring" = xdisable; then
7235             if test $wxUSE_LONGLONG = yes; then
7236               result=no
7237             else
7238               result=yes
7239             fi
7240           else
7241             result=$wxUSE_LONGLONG
7242           fi
7243
7244           { echo "$as_me:$LINENO: result: $result" >&5
7245 echo "${ECHO_T}$result" >&6; }
7246
7247
7248           enablestring=
7249           defaultval=$wxUSE_ALL_FEATURES
7250           if test -z "$defaultval"; then
7251               if test x"$enablestring" = xdisable; then
7252                   defaultval=yes
7253               else
7254                   defaultval=no
7255               fi
7256           fi
7257
7258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7259 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7260           # Check whether --enable-mimetype was given.
7261 if test "${enable_mimetype+set}" = set; then
7262   enableval=$enable_mimetype;
7263                           if test "$enableval" = yes; then
7264                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7265                           else
7266                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7267                           fi
7268
7269 else
7270
7271                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7272
7273 fi
7274
7275
7276           eval "$wx_cv_use_mimetype"
7277
7278           if test x"$enablestring" = xdisable; then
7279             if test $wxUSE_MIMETYPE = yes; then
7280               result=no
7281             else
7282               result=yes
7283             fi
7284           else
7285             result=$wxUSE_MIMETYPE
7286           fi
7287
7288           { echo "$as_me:$LINENO: result: $result" >&5
7289 echo "${ECHO_T}$result" >&6; }
7290
7291
7292           enablestring=
7293           defaultval=$wxUSE_ALL_FEATURES
7294           if test -z "$defaultval"; then
7295               if test x"$enablestring" = xdisable; then
7296                   defaultval=yes
7297               else
7298                   defaultval=no
7299               fi
7300           fi
7301
7302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7303 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7304           # Check whether --enable-printfposparam was given.
7305 if test "${enable_printfposparam+set}" = set; then
7306   enableval=$enable_printfposparam;
7307                           if test "$enableval" = yes; then
7308                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7309                           else
7310                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7311                           fi
7312
7313 else
7314
7315                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7316
7317 fi
7318
7319
7320           eval "$wx_cv_use_printfposparam"
7321
7322           if test x"$enablestring" = xdisable; then
7323             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7324               result=no
7325             else
7326               result=yes
7327             fi
7328           else
7329             result=$wxUSE_PRINTF_POS_PARAMS
7330           fi
7331
7332           { echo "$as_me:$LINENO: result: $result" >&5
7333 echo "${ECHO_T}$result" >&6; }
7334
7335
7336           enablestring=
7337           defaultval=$wxUSE_ALL_FEATURES
7338           if test -z "$defaultval"; then
7339               if test x"$enablestring" = xdisable; then
7340                   defaultval=yes
7341               else
7342                   defaultval=no
7343               fi
7344           fi
7345
7346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7347 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7348           # Check whether --enable-snglinst was given.
7349 if test "${enable_snglinst+set}" = set; then
7350   enableval=$enable_snglinst;
7351                           if test "$enableval" = yes; then
7352                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7353                           else
7354                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7355                           fi
7356
7357 else
7358
7359                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7360
7361 fi
7362
7363
7364           eval "$wx_cv_use_snglinst"
7365
7366           if test x"$enablestring" = xdisable; then
7367             if test $wxUSE_SNGLINST_CHECKER = yes; then
7368               result=no
7369             else
7370               result=yes
7371             fi
7372           else
7373             result=$wxUSE_SNGLINST_CHECKER
7374           fi
7375
7376           { echo "$as_me:$LINENO: result: $result" >&5
7377 echo "${ECHO_T}$result" >&6; }
7378
7379
7380           enablestring=
7381           defaultval=$wxUSE_ALL_FEATURES
7382           if test -z "$defaultval"; then
7383               if test x"$enablestring" = xdisable; then
7384                   defaultval=yes
7385               else
7386                   defaultval=no
7387               fi
7388           fi
7389
7390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7391 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7392           # Check whether --enable-sound was given.
7393 if test "${enable_sound+set}" = set; then
7394   enableval=$enable_sound;
7395                           if test "$enableval" = yes; then
7396                             wx_cv_use_sound='wxUSE_SOUND=yes'
7397                           else
7398                             wx_cv_use_sound='wxUSE_SOUND=no'
7399                           fi
7400
7401 else
7402
7403                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7404
7405 fi
7406
7407
7408           eval "$wx_cv_use_sound"
7409
7410           if test x"$enablestring" = xdisable; then
7411             if test $wxUSE_SOUND = yes; then
7412               result=no
7413             else
7414               result=yes
7415             fi
7416           else
7417             result=$wxUSE_SOUND
7418           fi
7419
7420           { echo "$as_me:$LINENO: result: $result" >&5
7421 echo "${ECHO_T}$result" >&6; }
7422
7423
7424           enablestring=
7425           defaultval=$wxUSE_ALL_FEATURES
7426           if test -z "$defaultval"; then
7427               if test x"$enablestring" = xdisable; then
7428                   defaultval=yes
7429               else
7430                   defaultval=no
7431               fi
7432           fi
7433
7434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7435 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7436           # Check whether --enable-stdpaths was given.
7437 if test "${enable_stdpaths+set}" = set; then
7438   enableval=$enable_stdpaths;
7439                           if test "$enableval" = yes; then
7440                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7441                           else
7442                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7443                           fi
7444
7445 else
7446
7447                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7448
7449 fi
7450
7451
7452           eval "$wx_cv_use_stdpaths"
7453
7454           if test x"$enablestring" = xdisable; then
7455             if test $wxUSE_STDPATHS = yes; then
7456               result=no
7457             else
7458               result=yes
7459             fi
7460           else
7461             result=$wxUSE_STDPATHS
7462           fi
7463
7464           { echo "$as_me:$LINENO: result: $result" >&5
7465 echo "${ECHO_T}$result" >&6; }
7466
7467
7468           enablestring=
7469           defaultval=$wxUSE_ALL_FEATURES
7470           if test -z "$defaultval"; then
7471               if test x"$enablestring" = xdisable; then
7472                   defaultval=yes
7473               else
7474                   defaultval=no
7475               fi
7476           fi
7477
7478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7479 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7480           # Check whether --enable-stopwatch was given.
7481 if test "${enable_stopwatch+set}" = set; then
7482   enableval=$enable_stopwatch;
7483                           if test "$enableval" = yes; then
7484                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7485                           else
7486                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7487                           fi
7488
7489 else
7490
7491                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7492
7493 fi
7494
7495
7496           eval "$wx_cv_use_stopwatch"
7497
7498           if test x"$enablestring" = xdisable; then
7499             if test $wxUSE_STOPWATCH = yes; then
7500               result=no
7501             else
7502               result=yes
7503             fi
7504           else
7505             result=$wxUSE_STOPWATCH
7506           fi
7507
7508           { echo "$as_me:$LINENO: result: $result" >&5
7509 echo "${ECHO_T}$result" >&6; }
7510
7511
7512           enablestring=
7513           defaultval=$wxUSE_ALL_FEATURES
7514           if test -z "$defaultval"; then
7515               if test x"$enablestring" = xdisable; then
7516                   defaultval=yes
7517               else
7518                   defaultval=no
7519               fi
7520           fi
7521
7522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7523 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7524           # Check whether --enable-streams was given.
7525 if test "${enable_streams+set}" = set; then
7526   enableval=$enable_streams;
7527                           if test "$enableval" = yes; then
7528                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7529                           else
7530                             wx_cv_use_streams='wxUSE_STREAMS=no'
7531                           fi
7532
7533 else
7534
7535                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7536
7537 fi
7538
7539
7540           eval "$wx_cv_use_streams"
7541
7542           if test x"$enablestring" = xdisable; then
7543             if test $wxUSE_STREAMS = yes; then
7544               result=no
7545             else
7546               result=yes
7547             fi
7548           else
7549             result=$wxUSE_STREAMS
7550           fi
7551
7552           { echo "$as_me:$LINENO: result: $result" >&5
7553 echo "${ECHO_T}$result" >&6; }
7554
7555
7556           enablestring=
7557           defaultval=$wxUSE_ALL_FEATURES
7558           if test -z "$defaultval"; then
7559               if test x"$enablestring" = xdisable; then
7560                   defaultval=yes
7561               else
7562                   defaultval=no
7563               fi
7564           fi
7565
7566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7567 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7568           # Check whether --enable-system_options was given.
7569 if test "${enable_system_options+set}" = set; then
7570   enableval=$enable_system_options;
7571                           if test "$enableval" = yes; then
7572                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7573                           else
7574                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7575                           fi
7576
7577 else
7578
7579                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7580
7581 fi
7582
7583
7584           eval "$wx_cv_use_system_options"
7585
7586           if test x"$enablestring" = xdisable; then
7587             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7588               result=no
7589             else
7590               result=yes
7591             fi
7592           else
7593             result=$wxUSE_SYSTEM_OPTIONS
7594           fi
7595
7596           { echo "$as_me:$LINENO: result: $result" >&5
7597 echo "${ECHO_T}$result" >&6; }
7598
7599
7600           enablestring=
7601           defaultval=$wxUSE_ALL_FEATURES
7602           if test -z "$defaultval"; then
7603               if test x"$enablestring" = xdisable; then
7604                   defaultval=yes
7605               else
7606                   defaultval=no
7607               fi
7608           fi
7609
7610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7611 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7612           # Check whether --enable-tarstream was given.
7613 if test "${enable_tarstream+set}" = set; then
7614   enableval=$enable_tarstream;
7615                           if test "$enableval" = yes; then
7616                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7617                           else
7618                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7619                           fi
7620
7621 else
7622
7623                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7624
7625 fi
7626
7627
7628           eval "$wx_cv_use_tarstream"
7629
7630           if test x"$enablestring" = xdisable; then
7631             if test $wxUSE_TARSTREAM = yes; then
7632               result=no
7633             else
7634               result=yes
7635             fi
7636           else
7637             result=$wxUSE_TARSTREAM
7638           fi
7639
7640           { echo "$as_me:$LINENO: result: $result" >&5
7641 echo "${ECHO_T}$result" >&6; }
7642
7643
7644           enablestring=
7645           defaultval=$wxUSE_ALL_FEATURES
7646           if test -z "$defaultval"; then
7647               if test x"$enablestring" = xdisable; then
7648                   defaultval=yes
7649               else
7650                   defaultval=no
7651               fi
7652           fi
7653
7654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7655 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7656           # Check whether --enable-textbuf was given.
7657 if test "${enable_textbuf+set}" = set; then
7658   enableval=$enable_textbuf;
7659                           if test "$enableval" = yes; then
7660                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7661                           else
7662                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7663                           fi
7664
7665 else
7666
7667                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7668
7669 fi
7670
7671
7672           eval "$wx_cv_use_textbuf"
7673
7674           if test x"$enablestring" = xdisable; then
7675             if test $wxUSE_TEXTBUFFER = yes; then
7676               result=no
7677             else
7678               result=yes
7679             fi
7680           else
7681             result=$wxUSE_TEXTBUFFER
7682           fi
7683
7684           { echo "$as_me:$LINENO: result: $result" >&5
7685 echo "${ECHO_T}$result" >&6; }
7686
7687
7688           enablestring=
7689           defaultval=$wxUSE_ALL_FEATURES
7690           if test -z "$defaultval"; then
7691               if test x"$enablestring" = xdisable; then
7692                   defaultval=yes
7693               else
7694                   defaultval=no
7695               fi
7696           fi
7697
7698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7699 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7700           # Check whether --enable-textfile was given.
7701 if test "${enable_textfile+set}" = set; then
7702   enableval=$enable_textfile;
7703                           if test "$enableval" = yes; then
7704                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7705                           else
7706                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7707                           fi
7708
7709 else
7710
7711                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7712
7713 fi
7714
7715
7716           eval "$wx_cv_use_textfile"
7717
7718           if test x"$enablestring" = xdisable; then
7719             if test $wxUSE_TEXTFILE = yes; then
7720               result=no
7721             else
7722               result=yes
7723             fi
7724           else
7725             result=$wxUSE_TEXTFILE
7726           fi
7727
7728           { echo "$as_me:$LINENO: result: $result" >&5
7729 echo "${ECHO_T}$result" >&6; }
7730
7731
7732           enablestring=
7733           defaultval=$wxUSE_ALL_FEATURES
7734           if test -z "$defaultval"; then
7735               if test x"$enablestring" = xdisable; then
7736                   defaultval=yes
7737               else
7738                   defaultval=no
7739               fi
7740           fi
7741
7742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7743 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7744           # Check whether --enable-timer was given.
7745 if test "${enable_timer+set}" = set; then
7746   enableval=$enable_timer;
7747                           if test "$enableval" = yes; then
7748                             wx_cv_use_timer='wxUSE_TIMER=yes'
7749                           else
7750                             wx_cv_use_timer='wxUSE_TIMER=no'
7751                           fi
7752
7753 else
7754
7755                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7756
7757 fi
7758
7759
7760           eval "$wx_cv_use_timer"
7761
7762           if test x"$enablestring" = xdisable; then
7763             if test $wxUSE_TIMER = yes; then
7764               result=no
7765             else
7766               result=yes
7767             fi
7768           else
7769             result=$wxUSE_TIMER
7770           fi
7771
7772           { echo "$as_me:$LINENO: result: $result" >&5
7773 echo "${ECHO_T}$result" >&6; }
7774
7775
7776           enablestring=
7777           defaultval=$wxUSE_ALL_FEATURES
7778           if test -z "$defaultval"; then
7779               if test x"$enablestring" = xdisable; then
7780                   defaultval=yes
7781               else
7782                   defaultval=no
7783               fi
7784           fi
7785
7786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7787 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7788           # Check whether --enable-variant was given.
7789 if test "${enable_variant+set}" = set; then
7790   enableval=$enable_variant;
7791                           if test "$enableval" = yes; then
7792                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7793                           else
7794                             wx_cv_use_variant='wxUSE_VARIANT=no'
7795                           fi
7796
7797 else
7798
7799                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7800
7801 fi
7802
7803
7804           eval "$wx_cv_use_variant"
7805
7806           if test x"$enablestring" = xdisable; then
7807             if test $wxUSE_VARIANT = yes; then
7808               result=no
7809             else
7810               result=yes
7811             fi
7812           else
7813             result=$wxUSE_VARIANT
7814           fi
7815
7816           { echo "$as_me:$LINENO: result: $result" >&5
7817 echo "${ECHO_T}$result" >&6; }
7818
7819
7820           enablestring=
7821           defaultval=$wxUSE_ALL_FEATURES
7822           if test -z "$defaultval"; then
7823               if test x"$enablestring" = xdisable; then
7824                   defaultval=yes
7825               else
7826                   defaultval=no
7827               fi
7828           fi
7829
7830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7831 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7832           # Check whether --enable-zipstream was given.
7833 if test "${enable_zipstream+set}" = set; then
7834   enableval=$enable_zipstream;
7835                           if test "$enableval" = yes; then
7836                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7837                           else
7838                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7839                           fi
7840
7841 else
7842
7843                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7844
7845 fi
7846
7847
7848           eval "$wx_cv_use_zipstream"
7849
7850           if test x"$enablestring" = xdisable; then
7851             if test $wxUSE_ZIPSTREAM = yes; then
7852               result=no
7853             else
7854               result=yes
7855             fi
7856           else
7857             result=$wxUSE_ZIPSTREAM
7858           fi
7859
7860           { echo "$as_me:$LINENO: result: $result" >&5
7861 echo "${ECHO_T}$result" >&6; }
7862
7863
7864
7865           enablestring=
7866           defaultval=$wxUSE_ALL_FEATURES
7867           if test -z "$defaultval"; then
7868               if test x"$enablestring" = xdisable; then
7869                   defaultval=yes
7870               else
7871                   defaultval=no
7872               fi
7873           fi
7874
7875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7876 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7877           # Check whether --enable-url was given.
7878 if test "${enable_url+set}" = set; then
7879   enableval=$enable_url;
7880                           if test "$enableval" = yes; then
7881                             wx_cv_use_url='wxUSE_URL=yes'
7882                           else
7883                             wx_cv_use_url='wxUSE_URL=no'
7884                           fi
7885
7886 else
7887
7888                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7889
7890 fi
7891
7892
7893           eval "$wx_cv_use_url"
7894
7895           if test x"$enablestring" = xdisable; then
7896             if test $wxUSE_URL = yes; then
7897               result=no
7898             else
7899               result=yes
7900             fi
7901           else
7902             result=$wxUSE_URL
7903           fi
7904
7905           { echo "$as_me:$LINENO: result: $result" >&5
7906 echo "${ECHO_T}$result" >&6; }
7907
7908
7909           enablestring=
7910           defaultval=$wxUSE_ALL_FEATURES
7911           if test -z "$defaultval"; then
7912               if test x"$enablestring" = xdisable; then
7913                   defaultval=yes
7914               else
7915                   defaultval=no
7916               fi
7917           fi
7918
7919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7920 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7921           # Check whether --enable-protocol was given.
7922 if test "${enable_protocol+set}" = set; then
7923   enableval=$enable_protocol;
7924                           if test "$enableval" = yes; then
7925                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7926                           else
7927                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7928                           fi
7929
7930 else
7931
7932                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7933
7934 fi
7935
7936
7937           eval "$wx_cv_use_protocol"
7938
7939           if test x"$enablestring" = xdisable; then
7940             if test $wxUSE_PROTOCOL = yes; then
7941               result=no
7942             else
7943               result=yes
7944             fi
7945           else
7946             result=$wxUSE_PROTOCOL
7947           fi
7948
7949           { echo "$as_me:$LINENO: result: $result" >&5
7950 echo "${ECHO_T}$result" >&6; }
7951
7952
7953           enablestring=
7954           defaultval=$wxUSE_ALL_FEATURES
7955           if test -z "$defaultval"; then
7956               if test x"$enablestring" = xdisable; then
7957                   defaultval=yes
7958               else
7959                   defaultval=no
7960               fi
7961           fi
7962
7963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7964 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7965           # Check whether --enable-protocol_http was given.
7966 if test "${enable_protocol_http+set}" = set; then
7967   enableval=$enable_protocol_http;
7968                           if test "$enableval" = yes; then
7969                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7970                           else
7971                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7972                           fi
7973
7974 else
7975
7976                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7977
7978 fi
7979
7980
7981           eval "$wx_cv_use_protocol_http"
7982
7983           if test x"$enablestring" = xdisable; then
7984             if test $wxUSE_PROTOCOL_HTTP = yes; then
7985               result=no
7986             else
7987               result=yes
7988             fi
7989           else
7990             result=$wxUSE_PROTOCOL_HTTP
7991           fi
7992
7993           { echo "$as_me:$LINENO: result: $result" >&5
7994 echo "${ECHO_T}$result" >&6; }
7995
7996
7997           enablestring=
7998           defaultval=$wxUSE_ALL_FEATURES
7999           if test -z "$defaultval"; then
8000               if test x"$enablestring" = xdisable; then
8001                   defaultval=yes
8002               else
8003                   defaultval=no
8004               fi
8005           fi
8006
8007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8008 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8009           # Check whether --enable-protocol_ftp was given.
8010 if test "${enable_protocol_ftp+set}" = set; then
8011   enableval=$enable_protocol_ftp;
8012                           if test "$enableval" = yes; then
8013                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8014                           else
8015                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8016                           fi
8017
8018 else
8019
8020                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8021
8022 fi
8023
8024
8025           eval "$wx_cv_use_protocol_ftp"
8026
8027           if test x"$enablestring" = xdisable; then
8028             if test $wxUSE_PROTOCOL_FTP = yes; then
8029               result=no
8030             else
8031               result=yes
8032             fi
8033           else
8034             result=$wxUSE_PROTOCOL_FTP
8035           fi
8036
8037           { echo "$as_me:$LINENO: result: $result" >&5
8038 echo "${ECHO_T}$result" >&6; }
8039
8040
8041           enablestring=
8042           defaultval=$wxUSE_ALL_FEATURES
8043           if test -z "$defaultval"; then
8044               if test x"$enablestring" = xdisable; then
8045                   defaultval=yes
8046               else
8047                   defaultval=no
8048               fi
8049           fi
8050
8051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8052 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8053           # Check whether --enable-protocol_file was given.
8054 if test "${enable_protocol_file+set}" = set; then
8055   enableval=$enable_protocol_file;
8056                           if test "$enableval" = yes; then
8057                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8058                           else
8059                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8060                           fi
8061
8062 else
8063
8064                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8065
8066 fi
8067
8068
8069           eval "$wx_cv_use_protocol_file"
8070
8071           if test x"$enablestring" = xdisable; then
8072             if test $wxUSE_PROTOCOL_FILE = yes; then
8073               result=no
8074             else
8075               result=yes
8076             fi
8077           else
8078             result=$wxUSE_PROTOCOL_FILE
8079           fi
8080
8081           { echo "$as_me:$LINENO: result: $result" >&5
8082 echo "${ECHO_T}$result" >&6; }
8083
8084
8085
8086           enablestring=
8087           defaultval=$wxUSE_ALL_FEATURES
8088           if test -z "$defaultval"; then
8089               if test x"$enablestring" = xdisable; then
8090                   defaultval=yes
8091               else
8092                   defaultval=no
8093               fi
8094           fi
8095
8096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8097 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8098           # Check whether --enable-threads was given.
8099 if test "${enable_threads+set}" = set; then
8100   enableval=$enable_threads;
8101                           if test "$enableval" = yes; then
8102                             wx_cv_use_threads='wxUSE_THREADS=yes'
8103                           else
8104                             wx_cv_use_threads='wxUSE_THREADS=no'
8105                           fi
8106
8107 else
8108
8109                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8110
8111 fi
8112
8113
8114           eval "$wx_cv_use_threads"
8115
8116           if test x"$enablestring" = xdisable; then
8117             if test $wxUSE_THREADS = yes; then
8118               result=no
8119             else
8120               result=yes
8121             fi
8122           else
8123             result=$wxUSE_THREADS
8124           fi
8125
8126           { echo "$as_me:$LINENO: result: $result" >&5
8127 echo "${ECHO_T}$result" >&6; }
8128
8129
8130
8131           enablestring=
8132           defaultval=
8133           if test -z "$defaultval"; then
8134               if test x"$enablestring" = xdisable; then
8135                   defaultval=yes
8136               else
8137                   defaultval=no
8138               fi
8139           fi
8140
8141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8142 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8143           # Check whether --enable-iniconf was given.
8144 if test "${enable_iniconf+set}" = set; then
8145   enableval=$enable_iniconf;
8146                           if test "$enableval" = yes; then
8147                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8148                           else
8149                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8150                           fi
8151
8152 else
8153
8154                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8155
8156 fi
8157
8158
8159           eval "$wx_cv_use_iniconf"
8160
8161           if test x"$enablestring" = xdisable; then
8162             if test $wxUSE_INICONF = yes; then
8163               result=no
8164             else
8165               result=yes
8166             fi
8167           else
8168             result=$wxUSE_INICONF
8169           fi
8170
8171           { echo "$as_me:$LINENO: result: $result" >&5
8172 echo "${ECHO_T}$result" >&6; }
8173
8174
8175           enablestring=
8176           defaultval=$wxUSE_ALL_FEATURES
8177           if test -z "$defaultval"; then
8178               if test x"$enablestring" = xdisable; then
8179                   defaultval=yes
8180               else
8181                   defaultval=no
8182               fi
8183           fi
8184
8185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8186 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8187           # Check whether --enable-regkey was given.
8188 if test "${enable_regkey+set}" = set; then
8189   enableval=$enable_regkey;
8190                           if test "$enableval" = yes; then
8191                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8192                           else
8193                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8194                           fi
8195
8196 else
8197
8198                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8199
8200 fi
8201
8202
8203           eval "$wx_cv_use_regkey"
8204
8205           if test x"$enablestring" = xdisable; then
8206             if test $wxUSE_REGKEY = yes; then
8207               result=no
8208             else
8209               result=yes
8210             fi
8211           else
8212             result=$wxUSE_REGKEY
8213           fi
8214
8215           { echo "$as_me:$LINENO: result: $result" >&5
8216 echo "${ECHO_T}$result" >&6; }
8217
8218
8219 if test "$wxUSE_GUI" = "yes"; then
8220
8221
8222
8223           enablestring=
8224           defaultval=$wxUSE_ALL_FEATURES
8225           if test -z "$defaultval"; then
8226               if test x"$enablestring" = xdisable; then
8227                   defaultval=yes
8228               else
8229                   defaultval=no
8230               fi
8231           fi
8232
8233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8234 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8235           # Check whether --enable-docview was given.
8236 if test "${enable_docview+set}" = set; then
8237   enableval=$enable_docview;
8238                           if test "$enableval" = yes; then
8239                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8240                           else
8241                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8242                           fi
8243
8244 else
8245
8246                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8247
8248 fi
8249
8250
8251           eval "$wx_cv_use_docview"
8252
8253           if test x"$enablestring" = xdisable; then
8254             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8255               result=no
8256             else
8257               result=yes
8258             fi
8259           else
8260             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8261           fi
8262
8263           { echo "$as_me:$LINENO: result: $result" >&5
8264 echo "${ECHO_T}$result" >&6; }
8265
8266
8267           enablestring=
8268           defaultval=$wxUSE_ALL_FEATURES
8269           if test -z "$defaultval"; then
8270               if test x"$enablestring" = xdisable; then
8271                   defaultval=yes
8272               else
8273                   defaultval=no
8274               fi
8275           fi
8276
8277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8278 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8279           # Check whether --enable-help was given.
8280 if test "${enable_help+set}" = set; then
8281   enableval=$enable_help;
8282                           if test "$enableval" = yes; then
8283                             wx_cv_use_help='wxUSE_HELP=yes'
8284                           else
8285                             wx_cv_use_help='wxUSE_HELP=no'
8286                           fi
8287
8288 else
8289
8290                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8291
8292 fi
8293
8294
8295           eval "$wx_cv_use_help"
8296
8297           if test x"$enablestring" = xdisable; then
8298             if test $wxUSE_HELP = yes; then
8299               result=no
8300             else
8301               result=yes
8302             fi
8303           else
8304             result=$wxUSE_HELP
8305           fi
8306
8307           { echo "$as_me:$LINENO: result: $result" >&5
8308 echo "${ECHO_T}$result" >&6; }
8309
8310
8311           enablestring=
8312           defaultval=$wxUSE_ALL_FEATURES
8313           if test -z "$defaultval"; then
8314               if test x"$enablestring" = xdisable; then
8315                   defaultval=yes
8316               else
8317                   defaultval=no
8318               fi
8319           fi
8320
8321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8322 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8323           # Check whether --enable-mshtmlhelp was given.
8324 if test "${enable_mshtmlhelp+set}" = set; then
8325   enableval=$enable_mshtmlhelp;
8326                           if test "$enableval" = yes; then
8327                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8328                           else
8329                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8330                           fi
8331
8332 else
8333
8334                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8335
8336 fi
8337
8338
8339           eval "$wx_cv_use_mshtmlhelp"
8340
8341           if test x"$enablestring" = xdisable; then
8342             if test $wxUSE_MS_HTML_HELP = yes; then
8343               result=no
8344             else
8345               result=yes
8346             fi
8347           else
8348             result=$wxUSE_MS_HTML_HELP
8349           fi
8350
8351           { echo "$as_me:$LINENO: result: $result" >&5
8352 echo "${ECHO_T}$result" >&6; }
8353
8354
8355           enablestring=
8356           defaultval=$wxUSE_ALL_FEATURES
8357           if test -z "$defaultval"; then
8358               if test x"$enablestring" = xdisable; then
8359                   defaultval=yes
8360               else
8361                   defaultval=no
8362               fi
8363           fi
8364
8365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8366 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8367           # Check whether --enable-html was given.
8368 if test "${enable_html+set}" = set; then
8369   enableval=$enable_html;
8370                           if test "$enableval" = yes; then
8371                             wx_cv_use_html='wxUSE_HTML=yes'
8372                           else
8373                             wx_cv_use_html='wxUSE_HTML=no'
8374                           fi
8375
8376 else
8377
8378                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8379
8380 fi
8381
8382
8383           eval "$wx_cv_use_html"
8384
8385           if test x"$enablestring" = xdisable; then
8386             if test $wxUSE_HTML = yes; then
8387               result=no
8388             else
8389               result=yes
8390             fi
8391           else
8392             result=$wxUSE_HTML
8393           fi
8394
8395           { echo "$as_me:$LINENO: result: $result" >&5
8396 echo "${ECHO_T}$result" >&6; }
8397
8398
8399           enablestring=
8400           defaultval=$wxUSE_ALL_FEATURES
8401           if test -z "$defaultval"; then
8402               if test x"$enablestring" = xdisable; then
8403                   defaultval=yes
8404               else
8405                   defaultval=no
8406               fi
8407           fi
8408
8409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8411           # Check whether --enable-htmlhelp was given.
8412 if test "${enable_htmlhelp+set}" = set; then
8413   enableval=$enable_htmlhelp;
8414                           if test "$enableval" = yes; then
8415                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8416                           else
8417                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8418                           fi
8419
8420 else
8421
8422                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8423
8424 fi
8425
8426
8427           eval "$wx_cv_use_htmlhelp"
8428
8429           if test x"$enablestring" = xdisable; then
8430             if test $wxUSE_WXHTML_HELP = yes; then
8431               result=no
8432             else
8433               result=yes
8434             fi
8435           else
8436             result=$wxUSE_WXHTML_HELP
8437           fi
8438
8439           { echo "$as_me:$LINENO: result: $result" >&5
8440 echo "${ECHO_T}$result" >&6; }
8441
8442
8443           enablestring=
8444           defaultval=$wxUSE_ALL_FEATURES
8445           if test -z "$defaultval"; then
8446               if test x"$enablestring" = xdisable; then
8447                   defaultval=yes
8448               else
8449                   defaultval=no
8450               fi
8451           fi
8452
8453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8454 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8455           # Check whether --enable-xrc was given.
8456 if test "${enable_xrc+set}" = set; then
8457   enableval=$enable_xrc;
8458                           if test "$enableval" = yes; then
8459                             wx_cv_use_xrc='wxUSE_XRC=yes'
8460                           else
8461                             wx_cv_use_xrc='wxUSE_XRC=no'
8462                           fi
8463
8464 else
8465
8466                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8467
8468 fi
8469
8470
8471           eval "$wx_cv_use_xrc"
8472
8473           if test x"$enablestring" = xdisable; then
8474             if test $wxUSE_XRC = yes; then
8475               result=no
8476             else
8477               result=yes
8478             fi
8479           else
8480             result=$wxUSE_XRC
8481           fi
8482
8483           { echo "$as_me:$LINENO: result: $result" >&5
8484 echo "${ECHO_T}$result" >&6; }
8485
8486
8487           enablestring=
8488           defaultval=$wxUSE_ALL_FEATURES
8489           if test -z "$defaultval"; then
8490               if test x"$enablestring" = xdisable; then
8491                   defaultval=yes
8492               else
8493                   defaultval=no
8494               fi
8495           fi
8496
8497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8498 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8499           # Check whether --enable-aui was given.
8500 if test "${enable_aui+set}" = set; then
8501   enableval=$enable_aui;
8502                           if test "$enableval" = yes; then
8503                             wx_cv_use_aui='wxUSE_AUI=yes'
8504                           else
8505                             wx_cv_use_aui='wxUSE_AUI=no'
8506                           fi
8507
8508 else
8509
8510                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8511
8512 fi
8513
8514
8515           eval "$wx_cv_use_aui"
8516
8517           if test x"$enablestring" = xdisable; then
8518             if test $wxUSE_AUI = yes; then
8519               result=no
8520             else
8521               result=yes
8522             fi
8523           else
8524             result=$wxUSE_AUI
8525           fi
8526
8527           { echo "$as_me:$LINENO: result: $result" >&5
8528 echo "${ECHO_T}$result" >&6; }
8529
8530
8531           enablestring=
8532           defaultval=$wxUSE_ALL_FEATURES
8533           if test -z "$defaultval"; then
8534               if test x"$enablestring" = xdisable; then
8535                   defaultval=yes
8536               else
8537                   defaultval=no
8538               fi
8539           fi
8540
8541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8542 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8543           # Check whether --enable-stc was given.
8544 if test "${enable_stc+set}" = set; then
8545   enableval=$enable_stc;
8546                           if test "$enableval" = yes; then
8547                             wx_cv_use_stc='wxUSE_STC=yes'
8548                           else
8549                             wx_cv_use_stc='wxUSE_STC=no'
8550                           fi
8551
8552 else
8553
8554                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8555
8556 fi
8557
8558
8559           eval "$wx_cv_use_stc"
8560
8561           if test x"$enablestring" = xdisable; then
8562             if test $wxUSE_STC = yes; then
8563               result=no
8564             else
8565               result=yes
8566             fi
8567           else
8568             result=$wxUSE_STC
8569           fi
8570
8571           { echo "$as_me:$LINENO: result: $result" >&5
8572 echo "${ECHO_T}$result" >&6; }
8573
8574
8575           enablestring=
8576           defaultval=$wxUSE_ALL_FEATURES
8577           if test -z "$defaultval"; then
8578               if test x"$enablestring" = xdisable; then
8579                   defaultval=yes
8580               else
8581                   defaultval=no
8582               fi
8583           fi
8584
8585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8586 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8587           # Check whether --enable-constraints was given.
8588 if test "${enable_constraints+set}" = set; then
8589   enableval=$enable_constraints;
8590                           if test "$enableval" = yes; then
8591                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8592                           else
8593                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8594                           fi
8595
8596 else
8597
8598                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8599
8600 fi
8601
8602
8603           eval "$wx_cv_use_constraints"
8604
8605           if test x"$enablestring" = xdisable; then
8606             if test $wxUSE_CONSTRAINTS = yes; then
8607               result=no
8608             else
8609               result=yes
8610             fi
8611           else
8612             result=$wxUSE_CONSTRAINTS
8613           fi
8614
8615           { echo "$as_me:$LINENO: result: $result" >&5
8616 echo "${ECHO_T}$result" >&6; }
8617
8618
8619           enablestring=
8620           defaultval=$wxUSE_ALL_FEATURES
8621           if test -z "$defaultval"; then
8622               if test x"$enablestring" = xdisable; then
8623                   defaultval=yes
8624               else
8625                   defaultval=no
8626               fi
8627           fi
8628
8629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8630 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8631           # Check whether --enable-loggui was given.
8632 if test "${enable_loggui+set}" = set; then
8633   enableval=$enable_loggui;
8634                           if test "$enableval" = yes; then
8635                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8636                           else
8637                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8638                           fi
8639
8640 else
8641
8642                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8643
8644 fi
8645
8646
8647           eval "$wx_cv_use_loggui"
8648
8649           if test x"$enablestring" = xdisable; then
8650             if test $wxUSE_LOGGUI = yes; then
8651               result=no
8652             else
8653               result=yes
8654             fi
8655           else
8656             result=$wxUSE_LOGGUI
8657           fi
8658
8659           { echo "$as_me:$LINENO: result: $result" >&5
8660 echo "${ECHO_T}$result" >&6; }
8661
8662
8663           enablestring=
8664           defaultval=$wxUSE_ALL_FEATURES
8665           if test -z "$defaultval"; then
8666               if test x"$enablestring" = xdisable; then
8667                   defaultval=yes
8668               else
8669                   defaultval=no
8670               fi
8671           fi
8672
8673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8674 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8675           # Check whether --enable-logwin was given.
8676 if test "${enable_logwin+set}" = set; then
8677   enableval=$enable_logwin;
8678                           if test "$enableval" = yes; then
8679                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8680                           else
8681                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8682                           fi
8683
8684 else
8685
8686                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8687
8688 fi
8689
8690
8691           eval "$wx_cv_use_logwin"
8692
8693           if test x"$enablestring" = xdisable; then
8694             if test $wxUSE_LOGWINDOW = yes; then
8695               result=no
8696             else
8697               result=yes
8698             fi
8699           else
8700             result=$wxUSE_LOGWINDOW
8701           fi
8702
8703           { echo "$as_me:$LINENO: result: $result" >&5
8704 echo "${ECHO_T}$result" >&6; }
8705
8706
8707           enablestring=
8708           defaultval=$wxUSE_ALL_FEATURES
8709           if test -z "$defaultval"; then
8710               if test x"$enablestring" = xdisable; then
8711                   defaultval=yes
8712               else
8713                   defaultval=no
8714               fi
8715           fi
8716
8717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8718 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8719           # Check whether --enable-logdialog was given.
8720 if test "${enable_logdialog+set}" = set; then
8721   enableval=$enable_logdialog;
8722                           if test "$enableval" = yes; then
8723                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8724                           else
8725                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8726                           fi
8727
8728 else
8729
8730                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8731
8732 fi
8733
8734
8735           eval "$wx_cv_use_logdialog"
8736
8737           if test x"$enablestring" = xdisable; then
8738             if test $wxUSE_LOGDIALOG = yes; then
8739               result=no
8740             else
8741               result=yes
8742             fi
8743           else
8744             result=$wxUSE_LOGDIALOG
8745           fi
8746
8747           { echo "$as_me:$LINENO: result: $result" >&5
8748 echo "${ECHO_T}$result" >&6; }
8749
8750
8751           enablestring=
8752           defaultval=$wxUSE_ALL_FEATURES
8753           if test -z "$defaultval"; then
8754               if test x"$enablestring" = xdisable; then
8755                   defaultval=yes
8756               else
8757                   defaultval=no
8758               fi
8759           fi
8760
8761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8762 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8763           # Check whether --enable-mdi was given.
8764 if test "${enable_mdi+set}" = set; then
8765   enableval=$enable_mdi;
8766                           if test "$enableval" = yes; then
8767                             wx_cv_use_mdi='wxUSE_MDI=yes'
8768                           else
8769                             wx_cv_use_mdi='wxUSE_MDI=no'
8770                           fi
8771
8772 else
8773
8774                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8775
8776 fi
8777
8778
8779           eval "$wx_cv_use_mdi"
8780
8781           if test x"$enablestring" = xdisable; then
8782             if test $wxUSE_MDI = yes; then
8783               result=no
8784             else
8785               result=yes
8786             fi
8787           else
8788             result=$wxUSE_MDI
8789           fi
8790
8791           { echo "$as_me:$LINENO: result: $result" >&5
8792 echo "${ECHO_T}$result" >&6; }
8793
8794
8795           enablestring=
8796           defaultval=$wxUSE_ALL_FEATURES
8797           if test -z "$defaultval"; then
8798               if test x"$enablestring" = xdisable; then
8799                   defaultval=yes
8800               else
8801                   defaultval=no
8802               fi
8803           fi
8804
8805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8806 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8807           # Check whether --enable-mdidoc was given.
8808 if test "${enable_mdidoc+set}" = set; then
8809   enableval=$enable_mdidoc;
8810                           if test "$enableval" = yes; then
8811                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8812                           else
8813                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8814                           fi
8815
8816 else
8817
8818                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8819
8820 fi
8821
8822
8823           eval "$wx_cv_use_mdidoc"
8824
8825           if test x"$enablestring" = xdisable; then
8826             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8827               result=no
8828             else
8829               result=yes
8830             fi
8831           else
8832             result=$wxUSE_MDI_ARCHITECTURE
8833           fi
8834
8835           { echo "$as_me:$LINENO: result: $result" >&5
8836 echo "${ECHO_T}$result" >&6; }
8837
8838
8839           enablestring=
8840           defaultval=$wxUSE_ALL_FEATURES
8841           if test -z "$defaultval"; then
8842               if test x"$enablestring" = xdisable; then
8843                   defaultval=yes
8844               else
8845                   defaultval=no
8846               fi
8847           fi
8848
8849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8850 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8851           # Check whether --enable-mediactrl was given.
8852 if test "${enable_mediactrl+set}" = set; then
8853   enableval=$enable_mediactrl;
8854                           if test "$enableval" = yes; then
8855                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8856                           else
8857                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8858                           fi
8859
8860 else
8861
8862                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8863
8864 fi
8865
8866
8867           eval "$wx_cv_use_mediactrl"
8868
8869           if test x"$enablestring" = xdisable; then
8870             if test $wxUSE_MEDIACTRL = yes; then
8871               result=no
8872             else
8873               result=yes
8874             fi
8875           else
8876             result=$wxUSE_MEDIACTRL
8877           fi
8878
8879           { echo "$as_me:$LINENO: result: $result" >&5
8880 echo "${ECHO_T}$result" >&6; }
8881
8882
8883           enablestring=
8884           defaultval=$wxUSE_ALL_FEATURES
8885           if test -z "$defaultval"; then
8886               if test x"$enablestring" = xdisable; then
8887                   defaultval=yes
8888               else
8889                   defaultval=no
8890               fi
8891           fi
8892
8893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8894 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8895           # Check whether --enable-gstreamer8 was given.
8896 if test "${enable_gstreamer8+set}" = set; then
8897   enableval=$enable_gstreamer8;
8898                           if test "$enableval" = yes; then
8899                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8900                           else
8901                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8902                           fi
8903
8904 else
8905
8906                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8907
8908 fi
8909
8910
8911           eval "$wx_cv_use_gstreamer8"
8912
8913           if test x"$enablestring" = xdisable; then
8914             if test $wxUSE_GSTREAMER8 = yes; then
8915               result=no
8916             else
8917               result=yes
8918             fi
8919           else
8920             result=$wxUSE_GSTREAMER8
8921           fi
8922
8923           { echo "$as_me:$LINENO: result: $result" >&5
8924 echo "${ECHO_T}$result" >&6; }
8925
8926
8927           enablestring=
8928           defaultval=$wxUSE_ALL_FEATURES
8929           if test -z "$defaultval"; then
8930               if test x"$enablestring" = xdisable; then
8931                   defaultval=yes
8932               else
8933                   defaultval=no
8934               fi
8935           fi
8936
8937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8938 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8939           # Check whether --enable-webkit was given.
8940 if test "${enable_webkit+set}" = set; then
8941   enableval=$enable_webkit;
8942                           if test "$enableval" = yes; then
8943                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
8944                           else
8945                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
8946                           fi
8947
8948 else
8949
8950                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8951
8952 fi
8953
8954
8955           eval "$wx_cv_use_webkit"
8956
8957           if test x"$enablestring" = xdisable; then
8958             if test $wxUSE_WEBKIT = yes; then
8959               result=no
8960             else
8961               result=yes
8962             fi
8963           else
8964             result=$wxUSE_WEBKIT
8965           fi
8966
8967           { echo "$as_me:$LINENO: result: $result" >&5
8968 echo "${ECHO_T}$result" >&6; }
8969
8970
8971           enablestring=
8972           defaultval=$wxUSE_ALL_FEATURES
8973           if test -z "$defaultval"; then
8974               if test x"$enablestring" = xdisable; then
8975                   defaultval=yes
8976               else
8977                   defaultval=no
8978               fi
8979           fi
8980
8981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8982 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8983           # Check whether --enable-richtext was given.
8984 if test "${enable_richtext+set}" = set; then
8985   enableval=$enable_richtext;
8986                           if test "$enableval" = yes; then
8987                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
8988                           else
8989                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
8990                           fi
8991
8992 else
8993
8994                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
8995
8996 fi
8997
8998
8999           eval "$wx_cv_use_richtext"
9000
9001           if test x"$enablestring" = xdisable; then
9002             if test $wxUSE_RICHTEXT = yes; then
9003               result=no
9004             else
9005               result=yes
9006             fi
9007           else
9008             result=$wxUSE_RICHTEXT
9009           fi
9010
9011           { echo "$as_me:$LINENO: result: $result" >&5
9012 echo "${ECHO_T}$result" >&6; }
9013
9014
9015           enablestring=
9016           defaultval=$wxUSE_ALL_FEATURES
9017           if test -z "$defaultval"; then
9018               if test x"$enablestring" = xdisable; then
9019                   defaultval=yes
9020               else
9021                   defaultval=no
9022               fi
9023           fi
9024
9025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9026 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9027           # Check whether --enable-graphics_ctx was given.
9028 if test "${enable_graphics_ctx+set}" = set; then
9029   enableval=$enable_graphics_ctx;
9030                           if test "$enableval" = yes; then
9031                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9032                           else
9033                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9034                           fi
9035
9036 else
9037
9038                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9039
9040 fi
9041
9042
9043           eval "$wx_cv_use_graphics_ctx"
9044
9045           if test x"$enablestring" = xdisable; then
9046             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9047               result=no
9048             else
9049               result=yes
9050             fi
9051           else
9052             result=$wxUSE_GRAPHICS_CONTEXT
9053           fi
9054
9055           { echo "$as_me:$LINENO: result: $result" >&5
9056 echo "${ECHO_T}$result" >&6; }
9057
9058
9059           enablestring=
9060           defaultval=$wxUSE_ALL_FEATURES
9061           if test -z "$defaultval"; then
9062               if test x"$enablestring" = xdisable; then
9063                   defaultval=yes
9064               else
9065                   defaultval=no
9066               fi
9067           fi
9068
9069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9070 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9071           # Check whether --enable-postscript was given.
9072 if test "${enable_postscript+set}" = set; then
9073   enableval=$enable_postscript;
9074                           if test "$enableval" = yes; then
9075                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9076                           else
9077                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9078                           fi
9079
9080 else
9081
9082                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9083
9084 fi
9085
9086
9087           eval "$wx_cv_use_postscript"
9088
9089           if test x"$enablestring" = xdisable; then
9090             if test $wxUSE_POSTSCRIPT = yes; then
9091               result=no
9092             else
9093               result=yes
9094             fi
9095           else
9096             result=$wxUSE_POSTSCRIPT
9097           fi
9098
9099           { echo "$as_me:$LINENO: result: $result" >&5
9100 echo "${ECHO_T}$result" >&6; }
9101
9102
9103           enablestring=
9104           defaultval=$wxUSE_ALL_FEATURES
9105           if test -z "$defaultval"; then
9106               if test x"$enablestring" = xdisable; then
9107                   defaultval=yes
9108               else
9109                   defaultval=no
9110               fi
9111           fi
9112
9113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9114 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9115           # Check whether --enable-printarch was given.
9116 if test "${enable_printarch+set}" = set; then
9117   enableval=$enable_printarch;
9118                           if test "$enableval" = yes; then
9119                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9120                           else
9121                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9122                           fi
9123
9124 else
9125
9126                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9127
9128 fi
9129
9130
9131           eval "$wx_cv_use_printarch"
9132
9133           if test x"$enablestring" = xdisable; then
9134             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9135               result=no
9136             else
9137               result=yes
9138             fi
9139           else
9140             result=$wxUSE_PRINTING_ARCHITECTURE
9141           fi
9142
9143           { echo "$as_me:$LINENO: result: $result" >&5
9144 echo "${ECHO_T}$result" >&6; }
9145
9146
9147           enablestring=
9148           defaultval=$wxUSE_ALL_FEATURES
9149           if test -z "$defaultval"; then
9150               if test x"$enablestring" = xdisable; then
9151                   defaultval=yes
9152               else
9153                   defaultval=no
9154               fi
9155           fi
9156
9157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9158 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9159           # Check whether --enable-svg was given.
9160 if test "${enable_svg+set}" = set; then
9161   enableval=$enable_svg;
9162                           if test "$enableval" = yes; then
9163                             wx_cv_use_svg='wxUSE_SVG=yes'
9164                           else
9165                             wx_cv_use_svg='wxUSE_SVG=no'
9166                           fi
9167
9168 else
9169
9170                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9171
9172 fi
9173
9174
9175           eval "$wx_cv_use_svg"
9176
9177           if test x"$enablestring" = xdisable; then
9178             if test $wxUSE_SVG = yes; then
9179               result=no
9180             else
9181               result=yes
9182             fi
9183           else
9184             result=$wxUSE_SVG
9185           fi
9186
9187           { echo "$as_me:$LINENO: result: $result" >&5
9188 echo "${ECHO_T}$result" >&6; }
9189
9190
9191
9192
9193           enablestring=
9194           defaultval=$wxUSE_ALL_FEATURES
9195           if test -z "$defaultval"; then
9196               if test x"$enablestring" = xdisable; then
9197                   defaultval=yes
9198               else
9199                   defaultval=no
9200               fi
9201           fi
9202
9203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9204 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9205           # Check whether --enable-clipboard was given.
9206 if test "${enable_clipboard+set}" = set; then
9207   enableval=$enable_clipboard;
9208                           if test "$enableval" = yes; then
9209                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9210                           else
9211                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9212                           fi
9213
9214 else
9215
9216                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9217
9218 fi
9219
9220
9221           eval "$wx_cv_use_clipboard"
9222
9223           if test x"$enablestring" = xdisable; then
9224             if test $wxUSE_CLIPBOARD = yes; then
9225               result=no
9226             else
9227               result=yes
9228             fi
9229           else
9230             result=$wxUSE_CLIPBOARD
9231           fi
9232
9233           { echo "$as_me:$LINENO: result: $result" >&5
9234 echo "${ECHO_T}$result" >&6; }
9235
9236
9237           enablestring=
9238           defaultval=$wxUSE_ALL_FEATURES
9239           if test -z "$defaultval"; then
9240               if test x"$enablestring" = xdisable; then
9241                   defaultval=yes
9242               else
9243                   defaultval=no
9244               fi
9245           fi
9246
9247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9248 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9249           # Check whether --enable-dnd was given.
9250 if test "${enable_dnd+set}" = set; then
9251   enableval=$enable_dnd;
9252                           if test "$enableval" = yes; then
9253                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9254                           else
9255                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9256                           fi
9257
9258 else
9259
9260                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9261
9262 fi
9263
9264
9265           eval "$wx_cv_use_dnd"
9266
9267           if test x"$enablestring" = xdisable; then
9268             if test $wxUSE_DRAG_AND_DROP = yes; then
9269               result=no
9270             else
9271               result=yes
9272             fi
9273           else
9274             result=$wxUSE_DRAG_AND_DROP
9275           fi
9276
9277           { echo "$as_me:$LINENO: result: $result" >&5
9278 echo "${ECHO_T}$result" >&6; }
9279
9280
9281           enablestring=
9282           defaultval=$wxUSE_ALL_FEATURES
9283           if test -z "$defaultval"; then
9284               if test x"$enablestring" = xdisable; then
9285                   defaultval=yes
9286               else
9287                   defaultval=no
9288               fi
9289           fi
9290
9291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9292 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9293           # Check whether --enable-metafile was given.
9294 if test "${enable_metafile+set}" = set; then
9295   enableval=$enable_metafile;
9296                           if test "$enableval" = yes; then
9297                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9298                           else
9299                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9300                           fi
9301
9302 else
9303
9304                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9305
9306 fi
9307
9308
9309           eval "$wx_cv_use_metafile"
9310
9311           if test x"$enablestring" = xdisable; then
9312             if test $wxUSE_METAFILE = yes; then
9313               result=no
9314             else
9315               result=yes
9316             fi
9317           else
9318             result=$wxUSE_METAFILE
9319           fi
9320
9321           { echo "$as_me:$LINENO: result: $result" >&5
9322 echo "${ECHO_T}$result" >&6; }
9323
9324
9325
9326 DEFAULT_wxUSE_CONTROLS=none
9327
9328           enablestring=disable
9329           defaultval=
9330           if test -z "$defaultval"; then
9331               if test x"$enablestring" = xdisable; then
9332                   defaultval=yes
9333               else
9334                   defaultval=no
9335               fi
9336           fi
9337
9338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9339 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9340           # Check whether --enable-controls was given.
9341 if test "${enable_controls+set}" = set; then
9342   enableval=$enable_controls;
9343                           if test "$enableval" = yes; then
9344                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9345                           else
9346                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9347                           fi
9348
9349 else
9350
9351                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9352
9353 fi
9354
9355
9356           eval "$wx_cv_use_controls"
9357
9358           if test x"$enablestring" = xdisable; then
9359             if test $wxUSE_CONTROLS = yes; then
9360               result=no
9361             else
9362               result=yes
9363             fi
9364           else
9365             result=$wxUSE_CONTROLS
9366           fi
9367
9368           { echo "$as_me:$LINENO: result: $result" >&5
9369 echo "${ECHO_T}$result" >&6; }
9370
9371
9372 if test "$wxUSE_CONTROLS" = "yes"; then
9373   DEFAULT_wxUSE_ACCEL=yes
9374   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9375   DEFAULT_wxUSE_BMPBUTTON=yes
9376   DEFAULT_wxUSE_BUTTON=yes
9377   DEFAULT_wxUSE_CALCTRL=yes
9378   DEFAULT_wxUSE_CARET=yes
9379   DEFAULT_wxUSE_COMBOBOX=yes
9380   DEFAULT_wxUSE_CHECKBOX=yes
9381   DEFAULT_wxUSE_CHECKLISTBOX=yes
9382   DEFAULT_wxUSE_CHOICE=yes
9383   DEFAULT_wxUSE_CHOICEBOOK=yes
9384   DEFAULT_wxUSE_COLLPANE=yes
9385   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9386   DEFAULT_wxUSE_COMBOBOX=yes
9387   DEFAULT_wxUSE_DATEPICKCTRL=yes
9388   DEFAULT_wxUSE_DISPLAY=yes
9389   DEFAULT_wxUSE_DETECT_SM=yes
9390   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9391   DEFAULT_wxUSE_FILECTRL=yes
9392   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9393   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9394   DEFAULT_wxUSE_GAUGE=yes
9395   DEFAULT_wxUSE_GRID=yes
9396   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9397   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9398   DEFAULT_wxUSE_IMAGLIST=yes
9399   DEFAULT_wxUSE_LISTBOOK=yes
9400   DEFAULT_wxUSE_LISTBOX=yes
9401   DEFAULT_wxUSE_LISTCTRL=yes
9402   DEFAULT_wxUSE_NOTEBOOK=yes
9403   DEFAULT_wxUSE_RADIOBOX=yes
9404   DEFAULT_wxUSE_RADIOBTN=yes
9405   DEFAULT_wxUSE_SASH=yes
9406   DEFAULT_wxUSE_SCROLLBAR=yes
9407   DEFAULT_wxUSE_SEARCHCTRL=yes
9408   DEFAULT_wxUSE_SLIDER=yes
9409   DEFAULT_wxUSE_SPINBTN=yes
9410   DEFAULT_wxUSE_SPINCTRL=yes
9411   DEFAULT_wxUSE_SPLITTER=yes
9412   DEFAULT_wxUSE_STATBMP=yes
9413   DEFAULT_wxUSE_STATBOX=yes
9414   DEFAULT_wxUSE_STATLINE=yes
9415   DEFAULT_wxUSE_STATUSBAR=yes
9416   DEFAULT_wxUSE_TAB_DIALOG=yes
9417   DEFAULT_wxUSE_TOGGLEBTN=yes
9418   DEFAULT_wxUSE_TOOLBAR=yes
9419   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9420   DEFAULT_wxUSE_TOOLTIPS=yes
9421   DEFAULT_wxUSE_TREEBOOK=yes
9422   DEFAULT_wxUSE_TOOLBOOK=yes
9423   DEFAULT_wxUSE_TREECTRL=yes
9424   DEFAULT_wxUSE_POPUPWIN=yes
9425   DEFAULT_wxUSE_TIPWINDOW=yes
9426 elif test "$wxUSE_CONTROLS" = "no"; then
9427   DEFAULT_wxUSE_ACCEL=no
9428   DEFAULT_wxUSE_ANIMATIONCTRL=no
9429   DEFAULT_wxUSE_BMPBUTTON=no
9430   DEFAULT_wxUSE_BUTTON=no
9431   DEFAULT_wxUSE_CALCTRL=no
9432   DEFAULT_wxUSE_CARET=no
9433   DEFAULT_wxUSE_COLLPANE=no
9434   DEFAULT_wxUSE_COMBOBOX=no
9435   DEFAULT_wxUSE_CHECKBOX=no
9436   DEFAULT_wxUSE_CHECKLISTBOX=no
9437   DEFAULT_wxUSE_CHOICE=no
9438   DEFAULT_wxUSE_CHOICEBOOK=no
9439   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9440   DEFAULT_wxUSE_COMBOBOX=no
9441   DEFAULT_wxUSE_DATEPICKCTRL=no
9442   DEFAULT_wxUSE_DISPLAY=no
9443   DEFAULT_wxUSE_DETECT_SM=no
9444   DEFAULT_wxUSE_DIRPICKERCTRL=no
9445   DEFAULT_wxUSE_FILECTRL=no
9446   DEFAULT_wxUSE_FILEPICKERCTRL=no
9447   DEFAULT_wxUSE_FONTPICKERCTRL=no
9448   DEFAULT_wxUSE_GAUGE=no
9449   DEFAULT_wxUSE_GRID=no
9450   DEFAULT_wxUSE_HYPERLINKCTRL=no
9451   DEFAULT_wxUSE_DATAVIEWCTRL=no
9452   DEFAULT_wxUSE_IMAGLIST=no
9453   DEFAULT_wxUSE_LISTBOOK=no
9454   DEFAULT_wxUSE_LISTBOX=no
9455   DEFAULT_wxUSE_LISTCTRL=no
9456   DEFAULT_wxUSE_NOTEBOOK=no
9457   DEFAULT_wxUSE_RADIOBOX=no
9458   DEFAULT_wxUSE_RADIOBTN=no
9459   DEFAULT_wxUSE_SASH=no
9460   DEFAULT_wxUSE_SCROLLBAR=no
9461   DEFAULT_wxUSE_SEARCHCTRL=no
9462   DEFAULT_wxUSE_SLIDER=no
9463   DEFAULT_wxUSE_SPINBTN=no
9464   DEFAULT_wxUSE_SPINCTRL=no
9465   DEFAULT_wxUSE_SPLITTER=no
9466   DEFAULT_wxUSE_STATBMP=no
9467   DEFAULT_wxUSE_STATBOX=no
9468   DEFAULT_wxUSE_STATLINE=no
9469   DEFAULT_wxUSE_STATUSBAR=no
9470   DEFAULT_wxUSE_TAB_DIALOG=no
9471   DEFAULT_wxUSE_TOGGLEBTN=no
9472   DEFAULT_wxUSE_TOOLBAR=no
9473   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9474   DEFAULT_wxUSE_TOOLTIPS=no
9475   DEFAULT_wxUSE_TREEBOOK=no
9476   DEFAULT_wxUSE_TOOLBOOK=no
9477   DEFAULT_wxUSE_TREECTRL=no
9478   DEFAULT_wxUSE_POPUPWIN=no
9479   DEFAULT_wxUSE_TIPWINDOW=no
9480 fi
9481
9482
9483           enablestring=
9484           defaultval=$wxUSE_ALL_FEATURES
9485           if test -z "$defaultval"; then
9486               if test x"$enablestring" = xdisable; then
9487                   defaultval=yes
9488               else
9489                   defaultval=no
9490               fi
9491           fi
9492
9493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9494 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9495           # Check whether --enable-accel was given.
9496 if test "${enable_accel+set}" = set; then
9497   enableval=$enable_accel;
9498                           if test "$enableval" = yes; then
9499                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9500                           else
9501                             wx_cv_use_accel='wxUSE_ACCEL=no'
9502                           fi
9503
9504 else
9505
9506                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9507
9508 fi
9509
9510
9511           eval "$wx_cv_use_accel"
9512
9513           if test x"$enablestring" = xdisable; then
9514             if test $wxUSE_ACCEL = yes; then
9515               result=no
9516             else
9517               result=yes
9518             fi
9519           else
9520             result=$wxUSE_ACCEL
9521           fi
9522
9523           { echo "$as_me:$LINENO: result: $result" >&5
9524 echo "${ECHO_T}$result" >&6; }
9525
9526
9527           enablestring=
9528           defaultval=$wxUSE_ALL_FEATURES
9529           if test -z "$defaultval"; then
9530               if test x"$enablestring" = xdisable; then
9531                   defaultval=yes
9532               else
9533                   defaultval=no
9534               fi
9535           fi
9536
9537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9538 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9539           # Check whether --enable-animatectrl was given.
9540 if test "${enable_animatectrl+set}" = set; then
9541   enableval=$enable_animatectrl;
9542                           if test "$enableval" = yes; then
9543                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9544                           else
9545                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9546                           fi
9547
9548 else
9549
9550                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9551
9552 fi
9553
9554
9555           eval "$wx_cv_use_animatectrl"
9556
9557           if test x"$enablestring" = xdisable; then
9558             if test $wxUSE_ANIMATIONCTRL = yes; then
9559               result=no
9560             else
9561               result=yes
9562             fi
9563           else
9564             result=$wxUSE_ANIMATIONCTRL
9565           fi
9566
9567           { echo "$as_me:$LINENO: result: $result" >&5
9568 echo "${ECHO_T}$result" >&6; }
9569
9570
9571           enablestring=
9572           defaultval=$wxUSE_ALL_FEATURES
9573           if test -z "$defaultval"; then
9574               if test x"$enablestring" = xdisable; then
9575                   defaultval=yes
9576               else
9577                   defaultval=no
9578               fi
9579           fi
9580
9581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9582 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9583           # Check whether --enable-button was given.
9584 if test "${enable_button+set}" = set; then
9585   enableval=$enable_button;
9586                           if test "$enableval" = yes; then
9587                             wx_cv_use_button='wxUSE_BUTTON=yes'
9588                           else
9589                             wx_cv_use_button='wxUSE_BUTTON=no'
9590                           fi
9591
9592 else
9593
9594                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9595
9596 fi
9597
9598
9599           eval "$wx_cv_use_button"
9600
9601           if test x"$enablestring" = xdisable; then
9602             if test $wxUSE_BUTTON = yes; then
9603               result=no
9604             else
9605               result=yes
9606             fi
9607           else
9608             result=$wxUSE_BUTTON
9609           fi
9610
9611           { echo "$as_me:$LINENO: result: $result" >&5
9612 echo "${ECHO_T}$result" >&6; }
9613
9614
9615           enablestring=
9616           defaultval=$wxUSE_ALL_FEATURES
9617           if test -z "$defaultval"; then
9618               if test x"$enablestring" = xdisable; then
9619                   defaultval=yes
9620               else
9621                   defaultval=no
9622               fi
9623           fi
9624
9625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9626 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9627           # Check whether --enable-bmpbutton was given.
9628 if test "${enable_bmpbutton+set}" = set; then
9629   enableval=$enable_bmpbutton;
9630                           if test "$enableval" = yes; then
9631                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9632                           else
9633                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9634                           fi
9635
9636 else
9637
9638                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9639
9640 fi
9641
9642
9643           eval "$wx_cv_use_bmpbutton"
9644
9645           if test x"$enablestring" = xdisable; then
9646             if test $wxUSE_BMPBUTTON = yes; then
9647               result=no
9648             else
9649               result=yes
9650             fi
9651           else
9652             result=$wxUSE_BMPBUTTON
9653           fi
9654
9655           { echo "$as_me:$LINENO: result: $result" >&5
9656 echo "${ECHO_T}$result" >&6; }
9657
9658
9659           enablestring=
9660           defaultval=$wxUSE_ALL_FEATURES
9661           if test -z "$defaultval"; then
9662               if test x"$enablestring" = xdisable; then
9663                   defaultval=yes
9664               else
9665                   defaultval=no
9666               fi
9667           fi
9668
9669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9670 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9671           # Check whether --enable-bmpcombobox was given.
9672 if test "${enable_bmpcombobox+set}" = set; then
9673   enableval=$enable_bmpcombobox;
9674                           if test "$enableval" = yes; then
9675                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9676                           else
9677                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9678                           fi
9679
9680 else
9681
9682                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9683
9684 fi
9685
9686
9687           eval "$wx_cv_use_bmpcombobox"
9688
9689           if test x"$enablestring" = xdisable; then
9690             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9691               result=no
9692             else
9693               result=yes
9694             fi
9695           else
9696             result=$wxUSE_BITMAPCOMBOBOX
9697           fi
9698
9699           { echo "$as_me:$LINENO: result: $result" >&5
9700 echo "${ECHO_T}$result" >&6; }
9701
9702
9703           enablestring=
9704           defaultval=$wxUSE_ALL_FEATURES
9705           if test -z "$defaultval"; then
9706               if test x"$enablestring" = xdisable; then
9707                   defaultval=yes
9708               else
9709                   defaultval=no
9710               fi
9711           fi
9712
9713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9714 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9715           # Check whether --enable-calendar was given.
9716 if test "${enable_calendar+set}" = set; then
9717   enableval=$enable_calendar;
9718                           if test "$enableval" = yes; then
9719                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9720                           else
9721                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9722                           fi
9723
9724 else
9725
9726                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9727
9728 fi
9729
9730
9731           eval "$wx_cv_use_calendar"
9732
9733           if test x"$enablestring" = xdisable; then
9734             if test $wxUSE_CALCTRL = yes; then
9735               result=no
9736             else
9737               result=yes
9738             fi
9739           else
9740             result=$wxUSE_CALCTRL
9741           fi
9742
9743           { echo "$as_me:$LINENO: result: $result" >&5
9744 echo "${ECHO_T}$result" >&6; }
9745
9746
9747           enablestring=
9748           defaultval=$wxUSE_ALL_FEATURES
9749           if test -z "$defaultval"; then
9750               if test x"$enablestring" = xdisable; then
9751                   defaultval=yes
9752               else
9753                   defaultval=no
9754               fi
9755           fi
9756
9757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9758 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9759           # Check whether --enable-caret was given.
9760 if test "${enable_caret+set}" = set; then
9761   enableval=$enable_caret;
9762                           if test "$enableval" = yes; then
9763                             wx_cv_use_caret='wxUSE_CARET=yes'
9764                           else
9765                             wx_cv_use_caret='wxUSE_CARET=no'
9766                           fi
9767
9768 else
9769
9770                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9771
9772 fi
9773
9774
9775           eval "$wx_cv_use_caret"
9776
9777           if test x"$enablestring" = xdisable; then
9778             if test $wxUSE_CARET = yes; then
9779               result=no
9780             else
9781               result=yes
9782             fi
9783           else
9784             result=$wxUSE_CARET
9785           fi
9786
9787           { echo "$as_me:$LINENO: result: $result" >&5
9788 echo "${ECHO_T}$result" >&6; }
9789
9790
9791           enablestring=
9792           defaultval=$wxUSE_ALL_FEATURES
9793           if test -z "$defaultval"; then
9794               if test x"$enablestring" = xdisable; then
9795                   defaultval=yes
9796               else
9797                   defaultval=no
9798               fi
9799           fi
9800
9801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9802 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9803           # Check whether --enable-checkbox was given.
9804 if test "${enable_checkbox+set}" = set; then
9805   enableval=$enable_checkbox;
9806                           if test "$enableval" = yes; then
9807                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9808                           else
9809                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9810                           fi
9811
9812 else
9813
9814                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9815
9816 fi
9817
9818
9819           eval "$wx_cv_use_checkbox"
9820
9821           if test x"$enablestring" = xdisable; then
9822             if test $wxUSE_CHECKBOX = yes; then
9823               result=no
9824             else
9825               result=yes
9826             fi
9827           else
9828             result=$wxUSE_CHECKBOX
9829           fi
9830
9831           { echo "$as_me:$LINENO: result: $result" >&5
9832 echo "${ECHO_T}$result" >&6; }
9833
9834
9835           enablestring=
9836           defaultval=$wxUSE_ALL_FEATURES
9837           if test -z "$defaultval"; then
9838               if test x"$enablestring" = xdisable; then
9839                   defaultval=yes
9840               else
9841                   defaultval=no
9842               fi
9843           fi
9844
9845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9846 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9847           # Check whether --enable-checklst was given.
9848 if test "${enable_checklst+set}" = set; then
9849   enableval=$enable_checklst;
9850                           if test "$enableval" = yes; then
9851                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9852                           else
9853                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9854                           fi
9855
9856 else
9857
9858                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9859
9860 fi
9861
9862
9863           eval "$wx_cv_use_checklst"
9864
9865           if test x"$enablestring" = xdisable; then
9866             if test $wxUSE_CHECKLST = yes; then
9867               result=no
9868             else
9869               result=yes
9870             fi
9871           else
9872             result=$wxUSE_CHECKLST
9873           fi
9874
9875           { echo "$as_me:$LINENO: result: $result" >&5
9876 echo "${ECHO_T}$result" >&6; }
9877
9878
9879           enablestring=
9880           defaultval=$wxUSE_ALL_FEATURES
9881           if test -z "$defaultval"; then
9882               if test x"$enablestring" = xdisable; then
9883                   defaultval=yes
9884               else
9885                   defaultval=no
9886               fi
9887           fi
9888
9889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9890 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9891           # Check whether --enable-choice was given.
9892 if test "${enable_choice+set}" = set; then
9893   enableval=$enable_choice;
9894                           if test "$enableval" = yes; then
9895                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9896                           else
9897                             wx_cv_use_choice='wxUSE_CHOICE=no'
9898                           fi
9899
9900 else
9901
9902                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9903
9904 fi
9905
9906
9907           eval "$wx_cv_use_choice"
9908
9909           if test x"$enablestring" = xdisable; then
9910             if test $wxUSE_CHOICE = yes; then
9911               result=no
9912             else
9913               result=yes
9914             fi
9915           else
9916             result=$wxUSE_CHOICE
9917           fi
9918
9919           { echo "$as_me:$LINENO: result: $result" >&5
9920 echo "${ECHO_T}$result" >&6; }
9921
9922
9923           enablestring=
9924           defaultval=$wxUSE_ALL_FEATURES
9925           if test -z "$defaultval"; then
9926               if test x"$enablestring" = xdisable; then
9927                   defaultval=yes
9928               else
9929                   defaultval=no
9930               fi
9931           fi
9932
9933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9934 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9935           # Check whether --enable-choicebook was given.
9936 if test "${enable_choicebook+set}" = set; then
9937   enableval=$enable_choicebook;
9938                           if test "$enableval" = yes; then
9939                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9940                           else
9941                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9942                           fi
9943
9944 else
9945
9946                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9947
9948 fi
9949
9950
9951           eval "$wx_cv_use_choicebook"
9952
9953           if test x"$enablestring" = xdisable; then
9954             if test $wxUSE_CHOICEBOOK = yes; then
9955               result=no
9956             else
9957               result=yes
9958             fi
9959           else
9960             result=$wxUSE_CHOICEBOOK
9961           fi
9962
9963           { echo "$as_me:$LINENO: result: $result" >&5
9964 echo "${ECHO_T}$result" >&6; }
9965
9966
9967           enablestring=
9968           defaultval=$wxUSE_ALL_FEATURES
9969           if test -z "$defaultval"; then
9970               if test x"$enablestring" = xdisable; then
9971                   defaultval=yes
9972               else
9973                   defaultval=no
9974               fi
9975           fi
9976
9977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9978 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9979           # Check whether --enable-collpane was given.
9980 if test "${enable_collpane+set}" = set; then
9981   enableval=$enable_collpane;
9982                           if test "$enableval" = yes; then
9983                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9984                           else
9985                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9986                           fi
9987
9988 else
9989
9990                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9991
9992 fi
9993
9994
9995           eval "$wx_cv_use_collpane"
9996
9997           if test x"$enablestring" = xdisable; then
9998             if test $wxUSE_COLLPANE = yes; then
9999               result=no
10000             else
10001               result=yes
10002             fi
10003           else
10004             result=$wxUSE_COLLPANE
10005           fi
10006
10007           { echo "$as_me:$LINENO: result: $result" >&5
10008 echo "${ECHO_T}$result" >&6; }
10009
10010
10011           enablestring=
10012           defaultval=$wxUSE_ALL_FEATURES
10013           if test -z "$defaultval"; then
10014               if test x"$enablestring" = xdisable; then
10015                   defaultval=yes
10016               else
10017                   defaultval=no
10018               fi
10019           fi
10020
10021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10022 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10023           # Check whether --enable-colourpicker was given.
10024 if test "${enable_colourpicker+set}" = set; then
10025   enableval=$enable_colourpicker;
10026                           if test "$enableval" = yes; then
10027                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10028                           else
10029                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10030                           fi
10031
10032 else
10033
10034                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10035
10036 fi
10037
10038
10039           eval "$wx_cv_use_colourpicker"
10040
10041           if test x"$enablestring" = xdisable; then
10042             if test $wxUSE_COLOURPICKERCTRL = yes; then
10043               result=no
10044             else
10045               result=yes
10046             fi
10047           else
10048             result=$wxUSE_COLOURPICKERCTRL
10049           fi
10050
10051           { echo "$as_me:$LINENO: result: $result" >&5
10052 echo "${ECHO_T}$result" >&6; }
10053
10054
10055           enablestring=
10056           defaultval=$wxUSE_ALL_FEATURES
10057           if test -z "$defaultval"; then
10058               if test x"$enablestring" = xdisable; then
10059                   defaultval=yes
10060               else
10061                   defaultval=no
10062               fi
10063           fi
10064
10065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10066 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10067           # Check whether --enable-combobox was given.
10068 if test "${enable_combobox+set}" = set; then
10069   enableval=$enable_combobox;
10070                           if test "$enableval" = yes; then
10071                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10072                           else
10073                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10074                           fi
10075
10076 else
10077
10078                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10079
10080 fi
10081
10082
10083           eval "$wx_cv_use_combobox"
10084
10085           if test x"$enablestring" = xdisable; then
10086             if test $wxUSE_COMBOBOX = yes; then
10087               result=no
10088             else
10089               result=yes
10090             fi
10091           else
10092             result=$wxUSE_COMBOBOX
10093           fi
10094
10095           { echo "$as_me:$LINENO: result: $result" >&5
10096 echo "${ECHO_T}$result" >&6; }
10097
10098
10099           enablestring=
10100           defaultval=$wxUSE_ALL_FEATURES
10101           if test -z "$defaultval"; then
10102               if test x"$enablestring" = xdisable; then
10103                   defaultval=yes
10104               else
10105                   defaultval=no
10106               fi
10107           fi
10108
10109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10110 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10111           # Check whether --enable-comboctrl was given.
10112 if test "${enable_comboctrl+set}" = set; then
10113   enableval=$enable_comboctrl;
10114                           if test "$enableval" = yes; then
10115                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10116                           else
10117                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10118                           fi
10119
10120 else
10121
10122                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10123
10124 fi
10125
10126
10127           eval "$wx_cv_use_comboctrl"
10128
10129           if test x"$enablestring" = xdisable; then
10130             if test $wxUSE_COMBOCTRL = yes; then
10131               result=no
10132             else
10133               result=yes
10134             fi
10135           else
10136             result=$wxUSE_COMBOCTRL
10137           fi
10138
10139           { echo "$as_me:$LINENO: result: $result" >&5
10140 echo "${ECHO_T}$result" >&6; }
10141
10142
10143           enablestring=
10144           defaultval=$wxUSE_ALL_FEATURES
10145           if test -z "$defaultval"; then
10146               if test x"$enablestring" = xdisable; then
10147                   defaultval=yes
10148               else
10149                   defaultval=no
10150               fi
10151           fi
10152
10153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10154 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10155           # Check whether --enable-datepick was given.
10156 if test "${enable_datepick+set}" = set; then
10157   enableval=$enable_datepick;
10158                           if test "$enableval" = yes; then
10159                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10160                           else
10161                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10162                           fi
10163
10164 else
10165
10166                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10167
10168 fi
10169
10170
10171           eval "$wx_cv_use_datepick"
10172
10173           if test x"$enablestring" = xdisable; then
10174             if test $wxUSE_DATEPICKCTRL = yes; then
10175               result=no
10176             else
10177               result=yes
10178             fi
10179           else
10180             result=$wxUSE_DATEPICKCTRL
10181           fi
10182
10183           { echo "$as_me:$LINENO: result: $result" >&5
10184 echo "${ECHO_T}$result" >&6; }
10185
10186
10187           enablestring=
10188           defaultval=$wxUSE_ALL_FEATURES
10189           if test -z "$defaultval"; then
10190               if test x"$enablestring" = xdisable; then
10191                   defaultval=yes
10192               else
10193                   defaultval=no
10194               fi
10195           fi
10196
10197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10198 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10199           # Check whether --enable-dirpicker was given.
10200 if test "${enable_dirpicker+set}" = set; then
10201   enableval=$enable_dirpicker;
10202                           if test "$enableval" = yes; then
10203                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10204                           else
10205                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10206                           fi
10207
10208 else
10209
10210                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10211
10212 fi
10213
10214
10215           eval "$wx_cv_use_dirpicker"
10216
10217           if test x"$enablestring" = xdisable; then
10218             if test $wxUSE_DIRPICKERCTRL = yes; then
10219               result=no
10220             else
10221               result=yes
10222             fi
10223           else
10224             result=$wxUSE_DIRPICKERCTRL
10225           fi
10226
10227           { echo "$as_me:$LINENO: result: $result" >&5
10228 echo "${ECHO_T}$result" >&6; }
10229
10230
10231           enablestring=
10232           defaultval=$wxUSE_ALL_FEATURES
10233           if test -z "$defaultval"; then
10234               if test x"$enablestring" = xdisable; then
10235                   defaultval=yes
10236               else
10237                   defaultval=no
10238               fi
10239           fi
10240
10241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10242 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10243           # Check whether --enable-display was given.
10244 if test "${enable_display+set}" = set; then
10245   enableval=$enable_display;
10246                           if test "$enableval" = yes; then
10247                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10248                           else
10249                             wx_cv_use_display='wxUSE_DISPLAY=no'
10250                           fi
10251
10252 else
10253
10254                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10255
10256 fi
10257
10258
10259           eval "$wx_cv_use_display"
10260
10261           if test x"$enablestring" = xdisable; then
10262             if test $wxUSE_DISPLAY = yes; then
10263               result=no
10264             else
10265               result=yes
10266             fi
10267           else
10268             result=$wxUSE_DISPLAY
10269           fi
10270
10271           { echo "$as_me:$LINENO: result: $result" >&5
10272 echo "${ECHO_T}$result" >&6; }
10273
10274
10275           enablestring=
10276           defaultval=$wxUSE_ALL_FEATURES
10277           if test -z "$defaultval"; then
10278               if test x"$enablestring" = xdisable; then
10279                   defaultval=yes
10280               else
10281                   defaultval=no
10282               fi
10283           fi
10284
10285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10286 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10287           # Check whether --enable-detect_sm was given.
10288 if test "${enable_detect_sm+set}" = set; then
10289   enableval=$enable_detect_sm;
10290                           if test "$enableval" = yes; then
10291                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10292                           else
10293                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10294                           fi
10295
10296 else
10297
10298                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10299
10300 fi
10301
10302
10303           eval "$wx_cv_use_detect_sm"
10304
10305           if test x"$enablestring" = xdisable; then
10306             if test $wxUSE_DETECT_SM = yes; then
10307               result=no
10308             else
10309               result=yes
10310             fi
10311           else
10312             result=$wxUSE_DETECT_SM
10313           fi
10314
10315           { echo "$as_me:$LINENO: result: $result" >&5
10316 echo "${ECHO_T}$result" >&6; }
10317
10318
10319           enablestring=
10320           defaultval=$wxUSE_ALL_FEATURES
10321           if test -z "$defaultval"; then
10322               if test x"$enablestring" = xdisable; then
10323                   defaultval=yes
10324               else
10325                   defaultval=no
10326               fi
10327           fi
10328
10329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10330 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10331           # Check whether --enable-editablebox was given.
10332 if test "${enable_editablebox+set}" = set; then
10333   enableval=$enable_editablebox;
10334                           if test "$enableval" = yes; then
10335                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10336                           else
10337                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10338                           fi
10339
10340 else
10341
10342                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10343
10344 fi
10345
10346
10347           eval "$wx_cv_use_editablebox"
10348
10349           if test x"$enablestring" = xdisable; then
10350             if test $wxUSE_EDITABLELISTBOX = yes; then
10351               result=no
10352             else
10353               result=yes
10354             fi
10355           else
10356             result=$wxUSE_EDITABLELISTBOX
10357           fi
10358
10359           { echo "$as_me:$LINENO: result: $result" >&5
10360 echo "${ECHO_T}$result" >&6; }
10361
10362
10363           enablestring=
10364           defaultval=$wxUSE_ALL_FEATURES
10365           if test -z "$defaultval"; then
10366               if test x"$enablestring" = xdisable; then
10367                   defaultval=yes
10368               else
10369                   defaultval=no
10370               fi
10371           fi
10372
10373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10374 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10375           # Check whether --enable-filepicker was given.
10376 if test "${enable_filepicker+set}" = set; then
10377   enableval=$enable_filepicker;
10378                           if test "$enableval" = yes; then
10379                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10380                           else
10381                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10382                           fi
10383
10384 else
10385
10386                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10387
10388 fi
10389
10390
10391           eval "$wx_cv_use_filepicker"
10392
10393           if test x"$enablestring" = xdisable; then
10394             if test $wxUSE_FILEPICKERCTRL = yes; then
10395               result=no
10396             else
10397               result=yes
10398             fi
10399           else
10400             result=$wxUSE_FILEPICKERCTRL
10401           fi
10402
10403           { echo "$as_me:$LINENO: result: $result" >&5
10404 echo "${ECHO_T}$result" >&6; }
10405
10406
10407           enablestring=
10408           defaultval=$wxUSE_ALL_FEATURES
10409           if test -z "$defaultval"; then
10410               if test x"$enablestring" = xdisable; then
10411                   defaultval=yes
10412               else
10413                   defaultval=no
10414               fi
10415           fi
10416
10417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10418 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10419           # Check whether --enable-filectrl was given.
10420 if test "${enable_filectrl+set}" = set; then
10421   enableval=$enable_filectrl;
10422                           if test "$enableval" = yes; then
10423                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10424                           else
10425                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10426                           fi
10427
10428 else
10429
10430                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10431
10432 fi
10433
10434
10435           eval "$wx_cv_use_filectrl"
10436
10437           if test x"$enablestring" = xdisable; then
10438             if test $wxUSE_FILECTRL = yes; then
10439               result=no
10440             else
10441               result=yes
10442             fi
10443           else
10444             result=$wxUSE_FILECTRL
10445           fi
10446
10447           { echo "$as_me:$LINENO: result: $result" >&5
10448 echo "${ECHO_T}$result" >&6; }
10449
10450
10451           enablestring=
10452           defaultval=$wxUSE_ALL_FEATURES
10453           if test -z "$defaultval"; then
10454               if test x"$enablestring" = xdisable; then
10455                   defaultval=yes
10456               else
10457                   defaultval=no
10458               fi
10459           fi
10460
10461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10462 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10463           # Check whether --enable-fontpicker was given.
10464 if test "${enable_fontpicker+set}" = set; then
10465   enableval=$enable_fontpicker;
10466                           if test "$enableval" = yes; then
10467                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10468                           else
10469                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10470                           fi
10471
10472 else
10473
10474                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10475
10476 fi
10477
10478
10479           eval "$wx_cv_use_fontpicker"
10480
10481           if test x"$enablestring" = xdisable; then
10482             if test $wxUSE_FONTPICKERCTRL = yes; then
10483               result=no
10484             else
10485               result=yes
10486             fi
10487           else
10488             result=$wxUSE_FONTPICKERCTRL
10489           fi
10490
10491           { echo "$as_me:$LINENO: result: $result" >&5
10492 echo "${ECHO_T}$result" >&6; }
10493
10494
10495           enablestring=
10496           defaultval=$wxUSE_ALL_FEATURES
10497           if test -z "$defaultval"; then
10498               if test x"$enablestring" = xdisable; then
10499                   defaultval=yes
10500               else
10501                   defaultval=no
10502               fi
10503           fi
10504
10505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10506 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10507           # Check whether --enable-gauge was given.
10508 if test "${enable_gauge+set}" = set; then
10509   enableval=$enable_gauge;
10510                           if test "$enableval" = yes; then
10511                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10512                           else
10513                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10514                           fi
10515
10516 else
10517
10518                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10519
10520 fi
10521
10522
10523           eval "$wx_cv_use_gauge"
10524
10525           if test x"$enablestring" = xdisable; then
10526             if test $wxUSE_GAUGE = yes; then
10527               result=no
10528             else
10529               result=yes
10530             fi
10531           else
10532             result=$wxUSE_GAUGE
10533           fi
10534
10535           { echo "$as_me:$LINENO: result: $result" >&5
10536 echo "${ECHO_T}$result" >&6; }
10537
10538
10539           enablestring=
10540           defaultval=$wxUSE_ALL_FEATURES
10541           if test -z "$defaultval"; then
10542               if test x"$enablestring" = xdisable; then
10543                   defaultval=yes
10544               else
10545                   defaultval=no
10546               fi
10547           fi
10548
10549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10550 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10551           # Check whether --enable-grid was given.
10552 if test "${enable_grid+set}" = set; then
10553   enableval=$enable_grid;
10554                           if test "$enableval" = yes; then
10555                             wx_cv_use_grid='wxUSE_GRID=yes'
10556                           else
10557                             wx_cv_use_grid='wxUSE_GRID=no'
10558                           fi
10559
10560 else
10561
10562                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10563
10564 fi
10565
10566
10567           eval "$wx_cv_use_grid"
10568
10569           if test x"$enablestring" = xdisable; then
10570             if test $wxUSE_GRID = yes; then
10571               result=no
10572             else
10573               result=yes
10574             fi
10575           else
10576             result=$wxUSE_GRID
10577           fi
10578
10579           { echo "$as_me:$LINENO: result: $result" >&5
10580 echo "${ECHO_T}$result" >&6; }
10581
10582
10583           enablestring=
10584           defaultval=$wxUSE_ALL_FEATURES
10585           if test -z "$defaultval"; then
10586               if test x"$enablestring" = xdisable; then
10587                   defaultval=yes
10588               else
10589                   defaultval=no
10590               fi
10591           fi
10592
10593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10594 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10595           # Check whether --enable-dataviewctrl was given.
10596 if test "${enable_dataviewctrl+set}" = set; then
10597   enableval=$enable_dataviewctrl;
10598                           if test "$enableval" = yes; then
10599                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10600                           else
10601                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10602                           fi
10603
10604 else
10605
10606                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10607
10608 fi
10609
10610
10611           eval "$wx_cv_use_dataviewctrl"
10612
10613           if test x"$enablestring" = xdisable; then
10614             if test $wxUSE_DATAVIEWCTRL = yes; then
10615               result=no
10616             else
10617               result=yes
10618             fi
10619           else
10620             result=$wxUSE_DATAVIEWCTRL
10621           fi
10622
10623           { echo "$as_me:$LINENO: result: $result" >&5
10624 echo "${ECHO_T}$result" >&6; }
10625
10626
10627           enablestring=
10628           defaultval=$wxUSE_ALL_FEATURES
10629           if test -z "$defaultval"; then
10630               if test x"$enablestring" = xdisable; then
10631                   defaultval=yes
10632               else
10633                   defaultval=no
10634               fi
10635           fi
10636
10637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10638 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10639           # Check whether --enable-hyperlink was given.
10640 if test "${enable_hyperlink+set}" = set; then
10641   enableval=$enable_hyperlink;
10642                           if test "$enableval" = yes; then
10643                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10644                           else
10645                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10646                           fi
10647
10648 else
10649
10650                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10651
10652 fi
10653
10654
10655           eval "$wx_cv_use_hyperlink"
10656
10657           if test x"$enablestring" = xdisable; then
10658             if test $wxUSE_HYPERLINKCTRL = yes; then
10659               result=no
10660             else
10661               result=yes
10662             fi
10663           else
10664             result=$wxUSE_HYPERLINKCTRL
10665           fi
10666
10667           { echo "$as_me:$LINENO: result: $result" >&5
10668 echo "${ECHO_T}$result" >&6; }
10669
10670
10671           enablestring=
10672           defaultval=$wxUSE_ALL_FEATURES
10673           if test -z "$defaultval"; then
10674               if test x"$enablestring" = xdisable; then
10675                   defaultval=yes
10676               else
10677                   defaultval=no
10678               fi
10679           fi
10680
10681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10682 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10683           # Check whether --enable-imaglist was given.
10684 if test "${enable_imaglist+set}" = set; then
10685   enableval=$enable_imaglist;
10686                           if test "$enableval" = yes; then
10687                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10688                           else
10689                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10690                           fi
10691
10692 else
10693
10694                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10695
10696 fi
10697
10698
10699           eval "$wx_cv_use_imaglist"
10700
10701           if test x"$enablestring" = xdisable; then
10702             if test $wxUSE_IMAGLIST = yes; then
10703               result=no
10704             else
10705               result=yes
10706             fi
10707           else
10708             result=$wxUSE_IMAGLIST
10709           fi
10710
10711           { echo "$as_me:$LINENO: result: $result" >&5
10712 echo "${ECHO_T}$result" >&6; }
10713
10714
10715           enablestring=
10716           defaultval=$wxUSE_ALL_FEATURES
10717           if test -z "$defaultval"; then
10718               if test x"$enablestring" = xdisable; then
10719                   defaultval=yes
10720               else
10721                   defaultval=no
10722               fi
10723           fi
10724
10725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10726 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10727           # Check whether --enable-listbook was given.
10728 if test "${enable_listbook+set}" = set; then
10729   enableval=$enable_listbook;
10730                           if test "$enableval" = yes; then
10731                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10732                           else
10733                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10734                           fi
10735
10736 else
10737
10738                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10739
10740 fi
10741
10742
10743           eval "$wx_cv_use_listbook"
10744
10745           if test x"$enablestring" = xdisable; then
10746             if test $wxUSE_LISTBOOK = yes; then
10747               result=no
10748             else
10749               result=yes
10750             fi
10751           else
10752             result=$wxUSE_LISTBOOK
10753           fi
10754
10755           { echo "$as_me:$LINENO: result: $result" >&5
10756 echo "${ECHO_T}$result" >&6; }
10757
10758
10759           enablestring=
10760           defaultval=$wxUSE_ALL_FEATURES
10761           if test -z "$defaultval"; then
10762               if test x"$enablestring" = xdisable; then
10763                   defaultval=yes
10764               else
10765                   defaultval=no
10766               fi
10767           fi
10768
10769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10770 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10771           # Check whether --enable-listbox was given.
10772 if test "${enable_listbox+set}" = set; then
10773   enableval=$enable_listbox;
10774                           if test "$enableval" = yes; then
10775                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10776                           else
10777                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10778                           fi
10779
10780 else
10781
10782                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10783
10784 fi
10785
10786
10787           eval "$wx_cv_use_listbox"
10788
10789           if test x"$enablestring" = xdisable; then
10790             if test $wxUSE_LISTBOX = yes; then
10791               result=no
10792             else
10793               result=yes
10794             fi
10795           else
10796             result=$wxUSE_LISTBOX
10797           fi
10798
10799           { echo "$as_me:$LINENO: result: $result" >&5
10800 echo "${ECHO_T}$result" >&6; }
10801
10802
10803           enablestring=
10804           defaultval=$wxUSE_ALL_FEATURES
10805           if test -z "$defaultval"; then
10806               if test x"$enablestring" = xdisable; then
10807                   defaultval=yes
10808               else
10809                   defaultval=no
10810               fi
10811           fi
10812
10813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10814 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10815           # Check whether --enable-listctrl was given.
10816 if test "${enable_listctrl+set}" = set; then
10817   enableval=$enable_listctrl;
10818                           if test "$enableval" = yes; then
10819                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10820                           else
10821                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10822                           fi
10823
10824 else
10825
10826                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10827
10828 fi
10829
10830
10831           eval "$wx_cv_use_listctrl"
10832
10833           if test x"$enablestring" = xdisable; then
10834             if test $wxUSE_LISTCTRL = yes; then
10835               result=no
10836             else
10837               result=yes
10838             fi
10839           else
10840             result=$wxUSE_LISTCTRL
10841           fi
10842
10843           { echo "$as_me:$LINENO: result: $result" >&5
10844 echo "${ECHO_T}$result" >&6; }
10845
10846
10847           enablestring=
10848           defaultval=$wxUSE_ALL_FEATURES
10849           if test -z "$defaultval"; then
10850               if test x"$enablestring" = xdisable; then
10851                   defaultval=yes
10852               else
10853                   defaultval=no
10854               fi
10855           fi
10856
10857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10858 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10859           # Check whether --enable-notebook was given.
10860 if test "${enable_notebook+set}" = set; then
10861   enableval=$enable_notebook;
10862                           if test "$enableval" = yes; then
10863                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10864                           else
10865                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10866                           fi
10867
10868 else
10869
10870                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10871
10872 fi
10873
10874
10875           eval "$wx_cv_use_notebook"
10876
10877           if test x"$enablestring" = xdisable; then
10878             if test $wxUSE_NOTEBOOK = yes; then
10879               result=no
10880             else
10881               result=yes
10882             fi
10883           else
10884             result=$wxUSE_NOTEBOOK
10885           fi
10886
10887           { echo "$as_me:$LINENO: result: $result" >&5
10888 echo "${ECHO_T}$result" >&6; }
10889
10890
10891           enablestring=
10892           defaultval=$wxUSE_ALL_FEATURES
10893           if test -z "$defaultval"; then
10894               if test x"$enablestring" = xdisable; then
10895                   defaultval=yes
10896               else
10897                   defaultval=no
10898               fi
10899           fi
10900
10901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10902 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10903           # Check whether --enable-notifmsg was given.
10904 if test "${enable_notifmsg+set}" = set; then
10905   enableval=$enable_notifmsg;
10906                           if test "$enableval" = yes; then
10907                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10908                           else
10909                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10910                           fi
10911
10912 else
10913
10914                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10915
10916 fi
10917
10918
10919           eval "$wx_cv_use_notifmsg"
10920
10921           if test x"$enablestring" = xdisable; then
10922             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10923               result=no
10924             else
10925               result=yes
10926             fi
10927           else
10928             result=$wxUSE_NOTIFICATION_MESSAGE
10929           fi
10930
10931           { echo "$as_me:$LINENO: result: $result" >&5
10932 echo "${ECHO_T}$result" >&6; }
10933
10934
10935           enablestring=
10936           defaultval=$wxUSE_ALL_FEATURES
10937           if test -z "$defaultval"; then
10938               if test x"$enablestring" = xdisable; then
10939                   defaultval=yes
10940               else
10941                   defaultval=no
10942               fi
10943           fi
10944
10945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10946 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10947           # Check whether --enable-odcombobox was given.
10948 if test "${enable_odcombobox+set}" = set; then
10949   enableval=$enable_odcombobox;
10950                           if test "$enableval" = yes; then
10951                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10952                           else
10953                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10954                           fi
10955
10956 else
10957
10958                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
10959
10960 fi
10961
10962
10963           eval "$wx_cv_use_odcombobox"
10964
10965           if test x"$enablestring" = xdisable; then
10966             if test $wxUSE_ODCOMBOBOX = yes; then
10967               result=no
10968             else
10969               result=yes
10970             fi
10971           else
10972             result=$wxUSE_ODCOMBOBOX
10973           fi
10974
10975           { echo "$as_me:$LINENO: result: $result" >&5
10976 echo "${ECHO_T}$result" >&6; }
10977
10978
10979           enablestring=
10980           defaultval=$wxUSE_ALL_FEATURES
10981           if test -z "$defaultval"; then
10982               if test x"$enablestring" = xdisable; then
10983                   defaultval=yes
10984               else
10985                   defaultval=no
10986               fi
10987           fi
10988
10989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10990 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10991           # Check whether --enable-radiobox was given.
10992 if test "${enable_radiobox+set}" = set; then
10993   enableval=$enable_radiobox;
10994                           if test "$enableval" = yes; then
10995                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10996                           else
10997                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
10998                           fi
10999
11000 else
11001
11002                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11003
11004 fi
11005
11006
11007           eval "$wx_cv_use_radiobox"
11008
11009           if test x"$enablestring" = xdisable; then
11010             if test $wxUSE_RADIOBOX = yes; then
11011               result=no
11012             else
11013               result=yes
11014             fi
11015           else
11016             result=$wxUSE_RADIOBOX
11017           fi
11018
11019           { echo "$as_me:$LINENO: result: $result" >&5
11020 echo "${ECHO_T}$result" >&6; }
11021
11022
11023           enablestring=
11024           defaultval=$wxUSE_ALL_FEATURES
11025           if test -z "$defaultval"; then
11026               if test x"$enablestring" = xdisable; then
11027                   defaultval=yes
11028               else
11029                   defaultval=no
11030               fi
11031           fi
11032
11033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11034 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11035           # Check whether --enable-radiobtn was given.
11036 if test "${enable_radiobtn+set}" = set; then
11037   enableval=$enable_radiobtn;
11038                           if test "$enableval" = yes; then
11039                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11040                           else
11041                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11042                           fi
11043
11044 else
11045
11046                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11047
11048 fi
11049
11050
11051           eval "$wx_cv_use_radiobtn"
11052
11053           if test x"$enablestring" = xdisable; then
11054             if test $wxUSE_RADIOBTN = yes; then
11055               result=no
11056             else
11057               result=yes
11058             fi
11059           else
11060             result=$wxUSE_RADIOBTN
11061           fi
11062
11063           { echo "$as_me:$LINENO: result: $result" >&5
11064 echo "${ECHO_T}$result" >&6; }
11065
11066
11067           enablestring=
11068           defaultval=$wxUSE_ALL_FEATURES
11069           if test -z "$defaultval"; then
11070               if test x"$enablestring" = xdisable; then
11071                   defaultval=yes
11072               else
11073                   defaultval=no
11074               fi
11075           fi
11076
11077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11078 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11079           # Check whether --enable-sash was given.
11080 if test "${enable_sash+set}" = set; then
11081   enableval=$enable_sash;
11082                           if test "$enableval" = yes; then
11083                             wx_cv_use_sash='wxUSE_SASH=yes'
11084                           else
11085                             wx_cv_use_sash='wxUSE_SASH=no'
11086                           fi
11087
11088 else
11089
11090                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11091
11092 fi
11093
11094
11095           eval "$wx_cv_use_sash"
11096
11097           if test x"$enablestring" = xdisable; then
11098             if test $wxUSE_SASH = yes; then
11099               result=no
11100             else
11101               result=yes
11102             fi
11103           else
11104             result=$wxUSE_SASH
11105           fi
11106
11107           { echo "$as_me:$LINENO: result: $result" >&5
11108 echo "${ECHO_T}$result" >&6; }
11109
11110
11111           enablestring=
11112           defaultval=$wxUSE_ALL_FEATURES
11113           if test -z "$defaultval"; then
11114               if test x"$enablestring" = xdisable; then
11115                   defaultval=yes
11116               else
11117                   defaultval=no
11118               fi
11119           fi
11120
11121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11122 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11123           # Check whether --enable-scrollbar was given.
11124 if test "${enable_scrollbar+set}" = set; then
11125   enableval=$enable_scrollbar;
11126                           if test "$enableval" = yes; then
11127                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11128                           else
11129                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11130                           fi
11131
11132 else
11133
11134                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11135
11136 fi
11137
11138
11139           eval "$wx_cv_use_scrollbar"
11140
11141           if test x"$enablestring" = xdisable; then
11142             if test $wxUSE_SCROLLBAR = yes; then
11143               result=no
11144             else
11145               result=yes
11146             fi
11147           else
11148             result=$wxUSE_SCROLLBAR
11149           fi
11150
11151           { echo "$as_me:$LINENO: result: $result" >&5
11152 echo "${ECHO_T}$result" >&6; }
11153
11154
11155           enablestring=
11156           defaultval=$wxUSE_ALL_FEATURES
11157           if test -z "$defaultval"; then
11158               if test x"$enablestring" = xdisable; then
11159                   defaultval=yes
11160               else
11161                   defaultval=no
11162               fi
11163           fi
11164
11165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11166 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11167           # Check whether --enable-searchctrl was given.
11168 if test "${enable_searchctrl+set}" = set; then
11169   enableval=$enable_searchctrl;
11170                           if test "$enableval" = yes; then
11171                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11172                           else
11173                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11174                           fi
11175
11176 else
11177
11178                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11179
11180 fi
11181
11182
11183           eval "$wx_cv_use_searchctrl"
11184
11185           if test x"$enablestring" = xdisable; then
11186             if test $wxUSE_SEARCHCTRL = yes; then
11187               result=no
11188             else
11189               result=yes
11190             fi
11191           else
11192             result=$wxUSE_SEARCHCTRL
11193           fi
11194
11195           { echo "$as_me:$LINENO: result: $result" >&5
11196 echo "${ECHO_T}$result" >&6; }
11197
11198
11199           enablestring=
11200           defaultval=$wxUSE_ALL_FEATURES
11201           if test -z "$defaultval"; then
11202               if test x"$enablestring" = xdisable; then
11203                   defaultval=yes
11204               else
11205                   defaultval=no
11206               fi
11207           fi
11208
11209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11210 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11211           # Check whether --enable-slider was given.
11212 if test "${enable_slider+set}" = set; then
11213   enableval=$enable_slider;
11214                           if test "$enableval" = yes; then
11215                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11216                           else
11217                             wx_cv_use_slider='wxUSE_SLIDER=no'
11218                           fi
11219
11220 else
11221
11222                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11223
11224 fi
11225
11226
11227           eval "$wx_cv_use_slider"
11228
11229           if test x"$enablestring" = xdisable; then
11230             if test $wxUSE_SLIDER = yes; then
11231               result=no
11232             else
11233               result=yes
11234             fi
11235           else
11236             result=$wxUSE_SLIDER
11237           fi
11238
11239           { echo "$as_me:$LINENO: result: $result" >&5
11240 echo "${ECHO_T}$result" >&6; }
11241
11242
11243           enablestring=
11244           defaultval=$wxUSE_ALL_FEATURES
11245           if test -z "$defaultval"; then
11246               if test x"$enablestring" = xdisable; then
11247                   defaultval=yes
11248               else
11249                   defaultval=no
11250               fi
11251           fi
11252
11253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11254 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11255           # Check whether --enable-spinbtn was given.
11256 if test "${enable_spinbtn+set}" = set; then
11257   enableval=$enable_spinbtn;
11258                           if test "$enableval" = yes; then
11259                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11260                           else
11261                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11262                           fi
11263
11264 else
11265
11266                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11267
11268 fi
11269
11270
11271           eval "$wx_cv_use_spinbtn"
11272
11273           if test x"$enablestring" = xdisable; then
11274             if test $wxUSE_SPINBTN = yes; then
11275               result=no
11276             else
11277               result=yes
11278             fi
11279           else
11280             result=$wxUSE_SPINBTN
11281           fi
11282
11283           { echo "$as_me:$LINENO: result: $result" >&5
11284 echo "${ECHO_T}$result" >&6; }
11285
11286
11287           enablestring=
11288           defaultval=$wxUSE_ALL_FEATURES
11289           if test -z "$defaultval"; then
11290               if test x"$enablestring" = xdisable; then
11291                   defaultval=yes
11292               else
11293                   defaultval=no
11294               fi
11295           fi
11296
11297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11298 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11299           # Check whether --enable-spinctrl was given.
11300 if test "${enable_spinctrl+set}" = set; then
11301   enableval=$enable_spinctrl;
11302                           if test "$enableval" = yes; then
11303                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11304                           else
11305                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11306                           fi
11307
11308 else
11309
11310                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11311
11312 fi
11313
11314
11315           eval "$wx_cv_use_spinctrl"
11316
11317           if test x"$enablestring" = xdisable; then
11318             if test $wxUSE_SPINCTRL = yes; then
11319               result=no
11320             else
11321               result=yes
11322             fi
11323           else
11324             result=$wxUSE_SPINCTRL
11325           fi
11326
11327           { echo "$as_me:$LINENO: result: $result" >&5
11328 echo "${ECHO_T}$result" >&6; }
11329
11330
11331           enablestring=
11332           defaultval=$wxUSE_ALL_FEATURES
11333           if test -z "$defaultval"; then
11334               if test x"$enablestring" = xdisable; then
11335                   defaultval=yes
11336               else
11337                   defaultval=no
11338               fi
11339           fi
11340
11341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11342 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11343           # Check whether --enable-splitter was given.
11344 if test "${enable_splitter+set}" = set; then
11345   enableval=$enable_splitter;
11346                           if test "$enableval" = yes; then
11347                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11348                           else
11349                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11350                           fi
11351
11352 else
11353
11354                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11355
11356 fi
11357
11358
11359           eval "$wx_cv_use_splitter"
11360
11361           if test x"$enablestring" = xdisable; then
11362             if test $wxUSE_SPLITTER = yes; then
11363               result=no
11364             else
11365               result=yes
11366             fi
11367           else
11368             result=$wxUSE_SPLITTER
11369           fi
11370
11371           { echo "$as_me:$LINENO: result: $result" >&5
11372 echo "${ECHO_T}$result" >&6; }
11373
11374
11375           enablestring=
11376           defaultval=$wxUSE_ALL_FEATURES
11377           if test -z "$defaultval"; then
11378               if test x"$enablestring" = xdisable; then
11379                   defaultval=yes
11380               else
11381                   defaultval=no
11382               fi
11383           fi
11384
11385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11386 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11387           # Check whether --enable-statbmp was given.
11388 if test "${enable_statbmp+set}" = set; then
11389   enableval=$enable_statbmp;
11390                           if test "$enableval" = yes; then
11391                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11392                           else
11393                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11394                           fi
11395
11396 else
11397
11398                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11399
11400 fi
11401
11402
11403           eval "$wx_cv_use_statbmp"
11404
11405           if test x"$enablestring" = xdisable; then
11406             if test $wxUSE_STATBMP = yes; then
11407               result=no
11408             else
11409               result=yes
11410             fi
11411           else
11412             result=$wxUSE_STATBMP
11413           fi
11414
11415           { echo "$as_me:$LINENO: result: $result" >&5
11416 echo "${ECHO_T}$result" >&6; }
11417
11418
11419           enablestring=
11420           defaultval=$wxUSE_ALL_FEATURES
11421           if test -z "$defaultval"; then
11422               if test x"$enablestring" = xdisable; then
11423                   defaultval=yes
11424               else
11425                   defaultval=no
11426               fi
11427           fi
11428
11429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11430 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11431           # Check whether --enable-statbox was given.
11432 if test "${enable_statbox+set}" = set; then
11433   enableval=$enable_statbox;
11434                           if test "$enableval" = yes; then
11435                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11436                           else
11437                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11438                           fi
11439
11440 else
11441
11442                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11443
11444 fi
11445
11446
11447           eval "$wx_cv_use_statbox"
11448
11449           if test x"$enablestring" = xdisable; then
11450             if test $wxUSE_STATBOX = yes; then
11451               result=no
11452             else
11453               result=yes
11454             fi
11455           else
11456             result=$wxUSE_STATBOX
11457           fi
11458
11459           { echo "$as_me:$LINENO: result: $result" >&5
11460 echo "${ECHO_T}$result" >&6; }
11461
11462
11463           enablestring=
11464           defaultval=$wxUSE_ALL_FEATURES
11465           if test -z "$defaultval"; then
11466               if test x"$enablestring" = xdisable; then
11467                   defaultval=yes
11468               else
11469                   defaultval=no
11470               fi
11471           fi
11472
11473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11474 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11475           # Check whether --enable-statline was given.
11476 if test "${enable_statline+set}" = set; then
11477   enableval=$enable_statline;
11478                           if test "$enableval" = yes; then
11479                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11480                           else
11481                             wx_cv_use_statline='wxUSE_STATLINE=no'
11482                           fi
11483
11484 else
11485
11486                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11487
11488 fi
11489
11490
11491           eval "$wx_cv_use_statline"
11492
11493           if test x"$enablestring" = xdisable; then
11494             if test $wxUSE_STATLINE = yes; then
11495               result=no
11496             else
11497               result=yes
11498             fi
11499           else
11500             result=$wxUSE_STATLINE
11501           fi
11502
11503           { echo "$as_me:$LINENO: result: $result" >&5
11504 echo "${ECHO_T}$result" >&6; }
11505
11506
11507           enablestring=
11508           defaultval=$wxUSE_ALL_FEATURES
11509           if test -z "$defaultval"; then
11510               if test x"$enablestring" = xdisable; then
11511                   defaultval=yes
11512               else
11513                   defaultval=no
11514               fi
11515           fi
11516
11517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11518 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11519           # Check whether --enable-stattext was given.
11520 if test "${enable_stattext+set}" = set; then
11521   enableval=$enable_stattext;
11522                           if test "$enableval" = yes; then
11523                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11524                           else
11525                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11526                           fi
11527
11528 else
11529
11530                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11531
11532 fi
11533
11534
11535           eval "$wx_cv_use_stattext"
11536
11537           if test x"$enablestring" = xdisable; then
11538             if test $wxUSE_STATTEXT = yes; then
11539               result=no
11540             else
11541               result=yes
11542             fi
11543           else
11544             result=$wxUSE_STATTEXT
11545           fi
11546
11547           { echo "$as_me:$LINENO: result: $result" >&5
11548 echo "${ECHO_T}$result" >&6; }
11549
11550
11551           enablestring=
11552           defaultval=$wxUSE_ALL_FEATURES
11553           if test -z "$defaultval"; then
11554               if test x"$enablestring" = xdisable; then
11555                   defaultval=yes
11556               else
11557                   defaultval=no
11558               fi
11559           fi
11560
11561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11562 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11563           # Check whether --enable-statusbar was given.
11564 if test "${enable_statusbar+set}" = set; then
11565   enableval=$enable_statusbar;
11566                           if test "$enableval" = yes; then
11567                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11568                           else
11569                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11570                           fi
11571
11572 else
11573
11574                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11575
11576 fi
11577
11578
11579           eval "$wx_cv_use_statusbar"
11580
11581           if test x"$enablestring" = xdisable; then
11582             if test $wxUSE_STATUSBAR = yes; then
11583               result=no
11584             else
11585               result=yes
11586             fi
11587           else
11588             result=$wxUSE_STATUSBAR
11589           fi
11590
11591           { echo "$as_me:$LINENO: result: $result" >&5
11592 echo "${ECHO_T}$result" >&6; }
11593
11594
11595           enablestring=
11596           defaultval=$wxUSE_ALL_FEATURES
11597           if test -z "$defaultval"; then
11598               if test x"$enablestring" = xdisable; then
11599                   defaultval=yes
11600               else
11601                   defaultval=no
11602               fi
11603           fi
11604
11605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11606 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11607           # Check whether --enable-tabdialog was given.
11608 if test "${enable_tabdialog+set}" = set; then
11609   enableval=$enable_tabdialog;
11610                           if test "$enableval" = yes; then
11611                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11612                           else
11613                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11614                           fi
11615
11616 else
11617
11618                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11619
11620 fi
11621
11622
11623           eval "$wx_cv_use_tabdialog"
11624
11625           if test x"$enablestring" = xdisable; then
11626             if test $wxUSE_TAB_DIALOG = yes; then
11627               result=no
11628             else
11629               result=yes
11630             fi
11631           else
11632             result=$wxUSE_TAB_DIALOG
11633           fi
11634
11635           { echo "$as_me:$LINENO: result: $result" >&5
11636 echo "${ECHO_T}$result" >&6; }
11637
11638
11639           enablestring=
11640           defaultval=$wxUSE_ALL_FEATURES
11641           if test -z "$defaultval"; then
11642               if test x"$enablestring" = xdisable; then
11643                   defaultval=yes
11644               else
11645                   defaultval=no
11646               fi
11647           fi
11648
11649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11650 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11651           # Check whether --enable-taskbaricon was given.
11652 if test "${enable_taskbaricon+set}" = set; then
11653   enableval=$enable_taskbaricon;
11654                           if test "$enableval" = yes; then
11655                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11656                           else
11657                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11658                           fi
11659
11660 else
11661
11662                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11663
11664 fi
11665
11666
11667           eval "$wx_cv_use_taskbaricon"
11668
11669           if test x"$enablestring" = xdisable; then
11670             if test $wxUSE_TASKBARICON = yes; then
11671               result=no
11672             else
11673               result=yes
11674             fi
11675           else
11676             result=$wxUSE_TASKBARICON
11677           fi
11678
11679           { echo "$as_me:$LINENO: result: $result" >&5
11680 echo "${ECHO_T}$result" >&6; }
11681
11682
11683           enablestring=
11684           defaultval=$wxUSE_ALL_FEATURES
11685           if test -z "$defaultval"; then
11686               if test x"$enablestring" = xdisable; then
11687                   defaultval=yes
11688               else
11689                   defaultval=no
11690               fi
11691           fi
11692
11693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11694 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11695           # Check whether --enable-textctrl was given.
11696 if test "${enable_textctrl+set}" = set; then
11697   enableval=$enable_textctrl;
11698                           if test "$enableval" = yes; then
11699                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11700                           else
11701                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11702                           fi
11703
11704 else
11705
11706                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11707
11708 fi
11709
11710
11711           eval "$wx_cv_use_textctrl"
11712
11713           if test x"$enablestring" = xdisable; then
11714             if test $wxUSE_TEXTCTRL = yes; then
11715               result=no
11716             else
11717               result=yes
11718             fi
11719           else
11720             result=$wxUSE_TEXTCTRL
11721           fi
11722
11723           { echo "$as_me:$LINENO: result: $result" >&5
11724 echo "${ECHO_T}$result" >&6; }
11725
11726
11727           enablestring=
11728           defaultval=$wxUSE_ALL_FEATURES
11729           if test -z "$defaultval"; then
11730               if test x"$enablestring" = xdisable; then
11731                   defaultval=yes
11732               else
11733                   defaultval=no
11734               fi
11735           fi
11736
11737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11738 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11739           # Check whether --enable-togglebtn was given.
11740 if test "${enable_togglebtn+set}" = set; then
11741   enableval=$enable_togglebtn;
11742                           if test "$enableval" = yes; then
11743                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11744                           else
11745                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11746                           fi
11747
11748 else
11749
11750                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11751
11752 fi
11753
11754
11755           eval "$wx_cv_use_togglebtn"
11756
11757           if test x"$enablestring" = xdisable; then
11758             if test $wxUSE_TOGGLEBTN = yes; then
11759               result=no
11760             else
11761               result=yes
11762             fi
11763           else
11764             result=$wxUSE_TOGGLEBTN
11765           fi
11766
11767           { echo "$as_me:$LINENO: result: $result" >&5
11768 echo "${ECHO_T}$result" >&6; }
11769
11770
11771           enablestring=
11772           defaultval=$wxUSE_ALL_FEATURES
11773           if test -z "$defaultval"; then
11774               if test x"$enablestring" = xdisable; then
11775                   defaultval=yes
11776               else
11777                   defaultval=no
11778               fi
11779           fi
11780
11781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11782 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11783           # Check whether --enable-toolbar was given.
11784 if test "${enable_toolbar+set}" = set; then
11785   enableval=$enable_toolbar;
11786                           if test "$enableval" = yes; then
11787                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11788                           else
11789                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11790                           fi
11791
11792 else
11793
11794                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11795
11796 fi
11797
11798
11799           eval "$wx_cv_use_toolbar"
11800
11801           if test x"$enablestring" = xdisable; then
11802             if test $wxUSE_TOOLBAR = yes; then
11803               result=no
11804             else
11805               result=yes
11806             fi
11807           else
11808             result=$wxUSE_TOOLBAR
11809           fi
11810
11811           { echo "$as_me:$LINENO: result: $result" >&5
11812 echo "${ECHO_T}$result" >&6; }
11813
11814
11815           enablestring=
11816           defaultval=$wxUSE_ALL_FEATURES
11817           if test -z "$defaultval"; then
11818               if test x"$enablestring" = xdisable; then
11819                   defaultval=yes
11820               else
11821                   defaultval=no
11822               fi
11823           fi
11824
11825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11826 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11827           # Check whether --enable-tbarnative was given.
11828 if test "${enable_tbarnative+set}" = set; then
11829   enableval=$enable_tbarnative;
11830                           if test "$enableval" = yes; then
11831                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11832                           else
11833                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11834                           fi
11835
11836 else
11837
11838                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11839
11840 fi
11841
11842
11843           eval "$wx_cv_use_tbarnative"
11844
11845           if test x"$enablestring" = xdisable; then
11846             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11847               result=no
11848             else
11849               result=yes
11850             fi
11851           else
11852             result=$wxUSE_TOOLBAR_NATIVE
11853           fi
11854
11855           { echo "$as_me:$LINENO: result: $result" >&5
11856 echo "${ECHO_T}$result" >&6; }
11857
11858
11859           enablestring=
11860           defaultval=$wxUSE_ALL_FEATURES
11861           if test -z "$defaultval"; then
11862               if test x"$enablestring" = xdisable; then
11863                   defaultval=yes
11864               else
11865                   defaultval=no
11866               fi
11867           fi
11868
11869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11870 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11871           # Check whether --enable-treebook was given.
11872 if test "${enable_treebook+set}" = set; then
11873   enableval=$enable_treebook;
11874                           if test "$enableval" = yes; then
11875                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11876                           else
11877                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11878                           fi
11879
11880 else
11881
11882                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11883
11884 fi
11885
11886
11887           eval "$wx_cv_use_treebook"
11888
11889           if test x"$enablestring" = xdisable; then
11890             if test $wxUSE_TREEBOOK = yes; then
11891               result=no
11892             else
11893               result=yes
11894             fi
11895           else
11896             result=$wxUSE_TREEBOOK
11897           fi
11898
11899           { echo "$as_me:$LINENO: result: $result" >&5
11900 echo "${ECHO_T}$result" >&6; }
11901
11902
11903           enablestring=
11904           defaultval=$wxUSE_ALL_FEATURES
11905           if test -z "$defaultval"; then
11906               if test x"$enablestring" = xdisable; then
11907                   defaultval=yes
11908               else
11909                   defaultval=no
11910               fi
11911           fi
11912
11913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11914 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11915           # Check whether --enable-toolbook was given.
11916 if test "${enable_toolbook+set}" = set; then
11917   enableval=$enable_toolbook;
11918                           if test "$enableval" = yes; then
11919                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11920                           else
11921                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11922                           fi
11923
11924 else
11925
11926                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
11927
11928 fi
11929
11930
11931           eval "$wx_cv_use_toolbook"
11932
11933           if test x"$enablestring" = xdisable; then
11934             if test $wxUSE_TOOLBOOK = yes; then
11935               result=no
11936             else
11937               result=yes
11938             fi
11939           else
11940             result=$wxUSE_TOOLBOOK
11941           fi
11942
11943           { echo "$as_me:$LINENO: result: $result" >&5
11944 echo "${ECHO_T}$result" >&6; }
11945
11946
11947           enablestring=
11948           defaultval=$wxUSE_ALL_FEATURES
11949           if test -z "$defaultval"; then
11950               if test x"$enablestring" = xdisable; then
11951                   defaultval=yes
11952               else
11953                   defaultval=no
11954               fi
11955           fi
11956
11957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11958 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11959           # Check whether --enable-treectrl was given.
11960 if test "${enable_treectrl+set}" = set; then
11961   enableval=$enable_treectrl;
11962                           if test "$enableval" = yes; then
11963                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
11964                           else
11965                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
11966                           fi
11967
11968 else
11969
11970                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
11971
11972 fi
11973
11974
11975           eval "$wx_cv_use_treectrl"
11976
11977           if test x"$enablestring" = xdisable; then
11978             if test $wxUSE_TREECTRL = yes; then
11979               result=no
11980             else
11981               result=yes
11982             fi
11983           else
11984             result=$wxUSE_TREECTRL
11985           fi
11986
11987           { echo "$as_me:$LINENO: result: $result" >&5
11988 echo "${ECHO_T}$result" >&6; }
11989
11990
11991           enablestring=
11992           defaultval=$wxUSE_ALL_FEATURES
11993           if test -z "$defaultval"; then
11994               if test x"$enablestring" = xdisable; then
11995                   defaultval=yes
11996               else
11997                   defaultval=no
11998               fi
11999           fi
12000
12001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12002 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12003           # Check whether --enable-tipwindow was given.
12004 if test "${enable_tipwindow+set}" = set; then
12005   enableval=$enable_tipwindow;
12006                           if test "$enableval" = yes; then
12007                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12008                           else
12009                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12010                           fi
12011
12012 else
12013
12014                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12015
12016 fi
12017
12018
12019           eval "$wx_cv_use_tipwindow"
12020
12021           if test x"$enablestring" = xdisable; then
12022             if test $wxUSE_TIPWINDOW = yes; then
12023               result=no
12024             else
12025               result=yes
12026             fi
12027           else
12028             result=$wxUSE_TIPWINDOW
12029           fi
12030
12031           { echo "$as_me:$LINENO: result: $result" >&5
12032 echo "${ECHO_T}$result" >&6; }
12033
12034
12035           enablestring=
12036           defaultval=$wxUSE_ALL_FEATURES
12037           if test -z "$defaultval"; then
12038               if test x"$enablestring" = xdisable; then
12039                   defaultval=yes
12040               else
12041                   defaultval=no
12042               fi
12043           fi
12044
12045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12046 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12047           # Check whether --enable-popupwin was given.
12048 if test "${enable_popupwin+set}" = set; then
12049   enableval=$enable_popupwin;
12050                           if test "$enableval" = yes; then
12051                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12052                           else
12053                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12054                           fi
12055
12056 else
12057
12058                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12059
12060 fi
12061
12062
12063           eval "$wx_cv_use_popupwin"
12064
12065           if test x"$enablestring" = xdisable; then
12066             if test $wxUSE_POPUPWIN = yes; then
12067               result=no
12068             else
12069               result=yes
12070             fi
12071           else
12072             result=$wxUSE_POPUPWIN
12073           fi
12074
12075           { echo "$as_me:$LINENO: result: $result" >&5
12076 echo "${ECHO_T}$result" >&6; }
12077
12078
12079
12080
12081           enablestring=
12082           defaultval=$wxUSE_ALL_FEATURES
12083           if test -z "$defaultval"; then
12084               if test x"$enablestring" = xdisable; then
12085                   defaultval=yes
12086               else
12087                   defaultval=no
12088               fi
12089           fi
12090
12091           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12092 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12093           # Check whether --enable-commondlg was given.
12094 if test "${enable_commondlg+set}" = set; then
12095   enableval=$enable_commondlg;
12096                           if test "$enableval" = yes; then
12097                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12098                           else
12099                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12100                           fi
12101
12102 else
12103
12104                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12105
12106 fi
12107
12108
12109           eval "$wx_cv_use_commondlg"
12110
12111           if test x"$enablestring" = xdisable; then
12112             if test $wxUSE_COMMONDLGS = yes; then
12113               result=no
12114             else
12115               result=yes
12116             fi
12117           else
12118             result=$wxUSE_COMMONDLGS
12119           fi
12120
12121           { echo "$as_me:$LINENO: result: $result" >&5
12122 echo "${ECHO_T}$result" >&6; }
12123
12124
12125           enablestring=
12126           defaultval=$wxUSE_ALL_FEATURES
12127           if test -z "$defaultval"; then
12128               if test x"$enablestring" = xdisable; then
12129                   defaultval=yes
12130               else
12131                   defaultval=no
12132               fi
12133           fi
12134
12135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12136 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12137           # Check whether --enable-aboutdlg was given.
12138 if test "${enable_aboutdlg+set}" = set; then
12139   enableval=$enable_aboutdlg;
12140                           if test "$enableval" = yes; then
12141                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12142                           else
12143                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12144                           fi
12145
12146 else
12147
12148                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12149
12150 fi
12151
12152
12153           eval "$wx_cv_use_aboutdlg"
12154
12155           if test x"$enablestring" = xdisable; then
12156             if test $wxUSE_ABOUTDLG = yes; then
12157               result=no
12158             else
12159               result=yes
12160             fi
12161           else
12162             result=$wxUSE_ABOUTDLG
12163           fi
12164
12165           { echo "$as_me:$LINENO: result: $result" >&5
12166 echo "${ECHO_T}$result" >&6; }
12167
12168
12169           enablestring=
12170           defaultval=$wxUSE_ALL_FEATURES
12171           if test -z "$defaultval"; then
12172               if test x"$enablestring" = xdisable; then
12173                   defaultval=yes
12174               else
12175                   defaultval=no
12176               fi
12177           fi
12178
12179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12180 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12181           # Check whether --enable-choicedlg was given.
12182 if test "${enable_choicedlg+set}" = set; then
12183   enableval=$enable_choicedlg;
12184                           if test "$enableval" = yes; then
12185                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12186                           else
12187                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12188                           fi
12189
12190 else
12191
12192                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12193
12194 fi
12195
12196
12197           eval "$wx_cv_use_choicedlg"
12198
12199           if test x"$enablestring" = xdisable; then
12200             if test $wxUSE_CHOICEDLG = yes; then
12201               result=no
12202             else
12203               result=yes
12204             fi
12205           else
12206             result=$wxUSE_CHOICEDLG
12207           fi
12208
12209           { echo "$as_me:$LINENO: result: $result" >&5
12210 echo "${ECHO_T}$result" >&6; }
12211
12212
12213           enablestring=
12214           defaultval=$wxUSE_ALL_FEATURES
12215           if test -z "$defaultval"; then
12216               if test x"$enablestring" = xdisable; then
12217                   defaultval=yes
12218               else
12219                   defaultval=no
12220               fi
12221           fi
12222
12223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12224 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12225           # Check whether --enable-coldlg was given.
12226 if test "${enable_coldlg+set}" = set; then
12227   enableval=$enable_coldlg;
12228                           if test "$enableval" = yes; then
12229                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12230                           else
12231                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12232                           fi
12233
12234 else
12235
12236                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12237
12238 fi
12239
12240
12241           eval "$wx_cv_use_coldlg"
12242
12243           if test x"$enablestring" = xdisable; then
12244             if test $wxUSE_COLOURDLG = yes; then
12245               result=no
12246             else
12247               result=yes
12248             fi
12249           else
12250             result=$wxUSE_COLOURDLG
12251           fi
12252
12253           { echo "$as_me:$LINENO: result: $result" >&5
12254 echo "${ECHO_T}$result" >&6; }
12255
12256
12257           enablestring=
12258           defaultval=$wxUSE_ALL_FEATURES
12259           if test -z "$defaultval"; then
12260               if test x"$enablestring" = xdisable; then
12261                   defaultval=yes
12262               else
12263                   defaultval=no
12264               fi
12265           fi
12266
12267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12268 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12269           # Check whether --enable-filedlg was given.
12270 if test "${enable_filedlg+set}" = set; then
12271   enableval=$enable_filedlg;
12272                           if test "$enableval" = yes; then
12273                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12274                           else
12275                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12276                           fi
12277
12278 else
12279
12280                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12281
12282 fi
12283
12284
12285           eval "$wx_cv_use_filedlg"
12286
12287           if test x"$enablestring" = xdisable; then
12288             if test $wxUSE_FILEDLG = yes; then
12289               result=no
12290             else
12291               result=yes
12292             fi
12293           else
12294             result=$wxUSE_FILEDLG
12295           fi
12296
12297           { echo "$as_me:$LINENO: result: $result" >&5
12298 echo "${ECHO_T}$result" >&6; }
12299
12300
12301           enablestring=
12302           defaultval=$wxUSE_ALL_FEATURES
12303           if test -z "$defaultval"; then
12304               if test x"$enablestring" = xdisable; then
12305                   defaultval=yes
12306               else
12307                   defaultval=no
12308               fi
12309           fi
12310
12311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12312 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12313           # Check whether --enable-finddlg was given.
12314 if test "${enable_finddlg+set}" = set; then
12315   enableval=$enable_finddlg;
12316                           if test "$enableval" = yes; then
12317                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12318                           else
12319                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12320                           fi
12321
12322 else
12323
12324                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12325
12326 fi
12327
12328
12329           eval "$wx_cv_use_finddlg"
12330
12331           if test x"$enablestring" = xdisable; then
12332             if test $wxUSE_FINDREPLDLG = yes; then
12333               result=no
12334             else
12335               result=yes
12336             fi
12337           else
12338             result=$wxUSE_FINDREPLDLG
12339           fi
12340
12341           { echo "$as_me:$LINENO: result: $result" >&5
12342 echo "${ECHO_T}$result" >&6; }
12343
12344
12345           enablestring=
12346           defaultval=$wxUSE_ALL_FEATURES
12347           if test -z "$defaultval"; then
12348               if test x"$enablestring" = xdisable; then
12349                   defaultval=yes
12350               else
12351                   defaultval=no
12352               fi
12353           fi
12354
12355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12356 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12357           # Check whether --enable-fontdlg was given.
12358 if test "${enable_fontdlg+set}" = set; then
12359   enableval=$enable_fontdlg;
12360                           if test "$enableval" = yes; then
12361                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12362                           else
12363                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12364                           fi
12365
12366 else
12367
12368                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12369
12370 fi
12371
12372
12373           eval "$wx_cv_use_fontdlg"
12374
12375           if test x"$enablestring" = xdisable; then
12376             if test $wxUSE_FONTDLG = yes; then
12377               result=no
12378             else
12379               result=yes
12380             fi
12381           else
12382             result=$wxUSE_FONTDLG
12383           fi
12384
12385           { echo "$as_me:$LINENO: result: $result" >&5
12386 echo "${ECHO_T}$result" >&6; }
12387
12388
12389           enablestring=
12390           defaultval=$wxUSE_ALL_FEATURES
12391           if test -z "$defaultval"; then
12392               if test x"$enablestring" = xdisable; then
12393                   defaultval=yes
12394               else
12395                   defaultval=no
12396               fi
12397           fi
12398
12399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12400 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12401           # Check whether --enable-dirdlg was given.
12402 if test "${enable_dirdlg+set}" = set; then
12403   enableval=$enable_dirdlg;
12404                           if test "$enableval" = yes; then
12405                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12406                           else
12407                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12408                           fi
12409
12410 else
12411
12412                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12413
12414 fi
12415
12416
12417           eval "$wx_cv_use_dirdlg"
12418
12419           if test x"$enablestring" = xdisable; then
12420             if test $wxUSE_DIRDLG = yes; then
12421               result=no
12422             else
12423               result=yes
12424             fi
12425           else
12426             result=$wxUSE_DIRDLG
12427           fi
12428
12429           { echo "$as_me:$LINENO: result: $result" >&5
12430 echo "${ECHO_T}$result" >&6; }
12431
12432
12433           enablestring=
12434           defaultval=$wxUSE_ALL_FEATURES
12435           if test -z "$defaultval"; then
12436               if test x"$enablestring" = xdisable; then
12437                   defaultval=yes
12438               else
12439                   defaultval=no
12440               fi
12441           fi
12442
12443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12444 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12445           # Check whether --enable-msgdlg was given.
12446 if test "${enable_msgdlg+set}" = set; then
12447   enableval=$enable_msgdlg;
12448                           if test "$enableval" = yes; then
12449                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12450                           else
12451                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12452                           fi
12453
12454 else
12455
12456                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12457
12458 fi
12459
12460
12461           eval "$wx_cv_use_msgdlg"
12462
12463           if test x"$enablestring" = xdisable; then
12464             if test $wxUSE_MSGDLG = yes; then
12465               result=no
12466             else
12467               result=yes
12468             fi
12469           else
12470             result=$wxUSE_MSGDLG
12471           fi
12472
12473           { echo "$as_me:$LINENO: result: $result" >&5
12474 echo "${ECHO_T}$result" >&6; }
12475
12476
12477           enablestring=
12478           defaultval=$wxUSE_ALL_FEATURES
12479           if test -z "$defaultval"; then
12480               if test x"$enablestring" = xdisable; then
12481                   defaultval=yes
12482               else
12483                   defaultval=no
12484               fi
12485           fi
12486
12487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12488 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12489           # Check whether --enable-numberdlg was given.
12490 if test "${enable_numberdlg+set}" = set; then
12491   enableval=$enable_numberdlg;
12492                           if test "$enableval" = yes; then
12493                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12494                           else
12495                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12496                           fi
12497
12498 else
12499
12500                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12501
12502 fi
12503
12504
12505           eval "$wx_cv_use_numberdlg"
12506
12507           if test x"$enablestring" = xdisable; then
12508             if test $wxUSE_NUMBERDLG = yes; then
12509               result=no
12510             else
12511               result=yes
12512             fi
12513           else
12514             result=$wxUSE_NUMBERDLG
12515           fi
12516
12517           { echo "$as_me:$LINENO: result: $result" >&5
12518 echo "${ECHO_T}$result" >&6; }
12519
12520
12521           enablestring=
12522           defaultval=$wxUSE_ALL_FEATURES
12523           if test -z "$defaultval"; then
12524               if test x"$enablestring" = xdisable; then
12525                   defaultval=yes
12526               else
12527                   defaultval=no
12528               fi
12529           fi
12530
12531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12532 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12533           # Check whether --enable-splash was given.
12534 if test "${enable_splash+set}" = set; then
12535   enableval=$enable_splash;
12536                           if test "$enableval" = yes; then
12537                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12538                           else
12539                             wx_cv_use_splash='wxUSE_SPLASH=no'
12540                           fi
12541
12542 else
12543
12544                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12545
12546 fi
12547
12548
12549           eval "$wx_cv_use_splash"
12550
12551           if test x"$enablestring" = xdisable; then
12552             if test $wxUSE_SPLASH = yes; then
12553               result=no
12554             else
12555               result=yes
12556             fi
12557           else
12558             result=$wxUSE_SPLASH
12559           fi
12560
12561           { echo "$as_me:$LINENO: result: $result" >&5
12562 echo "${ECHO_T}$result" >&6; }
12563
12564
12565           enablestring=
12566           defaultval=$wxUSE_ALL_FEATURES
12567           if test -z "$defaultval"; then
12568               if test x"$enablestring" = xdisable; then
12569                   defaultval=yes
12570               else
12571                   defaultval=no
12572               fi
12573           fi
12574
12575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12576 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12577           # Check whether --enable-textdlg was given.
12578 if test "${enable_textdlg+set}" = set; then
12579   enableval=$enable_textdlg;
12580                           if test "$enableval" = yes; then
12581                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12582                           else
12583                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12584                           fi
12585
12586 else
12587
12588                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12589
12590 fi
12591
12592
12593           eval "$wx_cv_use_textdlg"
12594
12595           if test x"$enablestring" = xdisable; then
12596             if test $wxUSE_TEXTDLG = yes; then
12597               result=no
12598             else
12599               result=yes
12600             fi
12601           else
12602             result=$wxUSE_TEXTDLG
12603           fi
12604
12605           { echo "$as_me:$LINENO: result: $result" >&5
12606 echo "${ECHO_T}$result" >&6; }
12607
12608
12609           enablestring=
12610           defaultval=$wxUSE_ALL_FEATURES
12611           if test -z "$defaultval"; then
12612               if test x"$enablestring" = xdisable; then
12613                   defaultval=yes
12614               else
12615                   defaultval=no
12616               fi
12617           fi
12618
12619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12620 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12621           # Check whether --enable-tipdlg was given.
12622 if test "${enable_tipdlg+set}" = set; then
12623   enableval=$enable_tipdlg;
12624                           if test "$enableval" = yes; then
12625                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12626                           else
12627                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12628                           fi
12629
12630 else
12631
12632                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12633
12634 fi
12635
12636
12637           eval "$wx_cv_use_tipdlg"
12638
12639           if test x"$enablestring" = xdisable; then
12640             if test $wxUSE_STARTUP_TIPS = yes; then
12641               result=no
12642             else
12643               result=yes
12644             fi
12645           else
12646             result=$wxUSE_STARTUP_TIPS
12647           fi
12648
12649           { echo "$as_me:$LINENO: result: $result" >&5
12650 echo "${ECHO_T}$result" >&6; }
12651
12652
12653           enablestring=
12654           defaultval=$wxUSE_ALL_FEATURES
12655           if test -z "$defaultval"; then
12656               if test x"$enablestring" = xdisable; then
12657                   defaultval=yes
12658               else
12659                   defaultval=no
12660               fi
12661           fi
12662
12663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12664 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12665           # Check whether --enable-progressdlg was given.
12666 if test "${enable_progressdlg+set}" = set; then
12667   enableval=$enable_progressdlg;
12668                           if test "$enableval" = yes; then
12669                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12670                           else
12671                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12672                           fi
12673
12674 else
12675
12676                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12677
12678 fi
12679
12680
12681           eval "$wx_cv_use_progressdlg"
12682
12683           if test x"$enablestring" = xdisable; then
12684             if test $wxUSE_PROGRESSDLG = yes; then
12685               result=no
12686             else
12687               result=yes
12688             fi
12689           else
12690             result=$wxUSE_PROGRESSDLG
12691           fi
12692
12693           { echo "$as_me:$LINENO: result: $result" >&5
12694 echo "${ECHO_T}$result" >&6; }
12695
12696
12697           enablestring=
12698           defaultval=$wxUSE_ALL_FEATURES
12699           if test -z "$defaultval"; then
12700               if test x"$enablestring" = xdisable; then
12701                   defaultval=yes
12702               else
12703                   defaultval=no
12704               fi
12705           fi
12706
12707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12708 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12709           # Check whether --enable-wizarddlg was given.
12710 if test "${enable_wizarddlg+set}" = set; then
12711   enableval=$enable_wizarddlg;
12712                           if test "$enableval" = yes; then
12713                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12714                           else
12715                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12716                           fi
12717
12718 else
12719
12720                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12721
12722 fi
12723
12724
12725           eval "$wx_cv_use_wizarddlg"
12726
12727           if test x"$enablestring" = xdisable; then
12728             if test $wxUSE_WIZARDDLG = yes; then
12729               result=no
12730             else
12731               result=yes
12732             fi
12733           else
12734             result=$wxUSE_WIZARDDLG
12735           fi
12736
12737           { echo "$as_me:$LINENO: result: $result" >&5
12738 echo "${ECHO_T}$result" >&6; }
12739
12740
12741
12742
12743           enablestring=
12744           defaultval=$wxUSE_ALL_FEATURES
12745           if test -z "$defaultval"; then
12746               if test x"$enablestring" = xdisable; then
12747                   defaultval=yes
12748               else
12749                   defaultval=no
12750               fi
12751           fi
12752
12753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12754 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12755           # Check whether --enable-menus was given.
12756 if test "${enable_menus+set}" = set; then
12757   enableval=$enable_menus;
12758                           if test "$enableval" = yes; then
12759                             wx_cv_use_menus='wxUSE_MENUS=yes'
12760                           else
12761                             wx_cv_use_menus='wxUSE_MENUS=no'
12762                           fi
12763
12764 else
12765
12766                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12767
12768 fi
12769
12770
12771           eval "$wx_cv_use_menus"
12772
12773           if test x"$enablestring" = xdisable; then
12774             if test $wxUSE_MENUS = yes; then
12775               result=no
12776             else
12777               result=yes
12778             fi
12779           else
12780             result=$wxUSE_MENUS
12781           fi
12782
12783           { echo "$as_me:$LINENO: result: $result" >&5
12784 echo "${ECHO_T}$result" >&6; }
12785
12786
12787           enablestring=
12788           defaultval=$wxUSE_ALL_FEATURES
12789           if test -z "$defaultval"; then
12790               if test x"$enablestring" = xdisable; then
12791                   defaultval=yes
12792               else
12793                   defaultval=no
12794               fi
12795           fi
12796
12797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12798 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12799           # Check whether --enable-miniframe was given.
12800 if test "${enable_miniframe+set}" = set; then
12801   enableval=$enable_miniframe;
12802                           if test "$enableval" = yes; then
12803                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12804                           else
12805                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12806                           fi
12807
12808 else
12809
12810                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12811
12812 fi
12813
12814
12815           eval "$wx_cv_use_miniframe"
12816
12817           if test x"$enablestring" = xdisable; then
12818             if test $wxUSE_MINIFRAME = yes; then
12819               result=no
12820             else
12821               result=yes
12822             fi
12823           else
12824             result=$wxUSE_MINIFRAME
12825           fi
12826
12827           { echo "$as_me:$LINENO: result: $result" >&5
12828 echo "${ECHO_T}$result" >&6; }
12829
12830
12831           enablestring=
12832           defaultval=$wxUSE_ALL_FEATURES
12833           if test -z "$defaultval"; then
12834               if test x"$enablestring" = xdisable; then
12835                   defaultval=yes
12836               else
12837                   defaultval=no
12838               fi
12839           fi
12840
12841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12842 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12843           # Check whether --enable-tooltips was given.
12844 if test "${enable_tooltips+set}" = set; then
12845   enableval=$enable_tooltips;
12846                           if test "$enableval" = yes; then
12847                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12848                           else
12849                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12850                           fi
12851
12852 else
12853
12854                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12855
12856 fi
12857
12858
12859           eval "$wx_cv_use_tooltips"
12860
12861           if test x"$enablestring" = xdisable; then
12862             if test $wxUSE_TOOLTIPS = yes; then
12863               result=no
12864             else
12865               result=yes
12866             fi
12867           else
12868             result=$wxUSE_TOOLTIPS
12869           fi
12870
12871           { echo "$as_me:$LINENO: result: $result" >&5
12872 echo "${ECHO_T}$result" >&6; }
12873
12874
12875           enablestring=
12876           defaultval=$wxUSE_ALL_FEATURES
12877           if test -z "$defaultval"; then
12878               if test x"$enablestring" = xdisable; then
12879                   defaultval=yes
12880               else
12881                   defaultval=no
12882               fi
12883           fi
12884
12885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12886 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12887           # Check whether --enable-splines was given.
12888 if test "${enable_splines+set}" = set; then
12889   enableval=$enable_splines;
12890                           if test "$enableval" = yes; then
12891                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12892                           else
12893                             wx_cv_use_splines='wxUSE_SPLINES=no'
12894                           fi
12895
12896 else
12897
12898                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12899
12900 fi
12901
12902
12903           eval "$wx_cv_use_splines"
12904
12905           if test x"$enablestring" = xdisable; then
12906             if test $wxUSE_SPLINES = yes; then
12907               result=no
12908             else
12909               result=yes
12910             fi
12911           else
12912             result=$wxUSE_SPLINES
12913           fi
12914
12915           { echo "$as_me:$LINENO: result: $result" >&5
12916 echo "${ECHO_T}$result" >&6; }
12917
12918
12919           enablestring=
12920           defaultval=$wxUSE_ALL_FEATURES
12921           if test -z "$defaultval"; then
12922               if test x"$enablestring" = xdisable; then
12923                   defaultval=yes
12924               else
12925                   defaultval=no
12926               fi
12927           fi
12928
12929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12930 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12931           # Check whether --enable-mousewheel was given.
12932 if test "${enable_mousewheel+set}" = set; then
12933   enableval=$enable_mousewheel;
12934                           if test "$enableval" = yes; then
12935                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12936                           else
12937                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12938                           fi
12939
12940 else
12941
12942                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12943
12944 fi
12945
12946
12947           eval "$wx_cv_use_mousewheel"
12948
12949           if test x"$enablestring" = xdisable; then
12950             if test $wxUSE_MOUSEWHEEL = yes; then
12951               result=no
12952             else
12953               result=yes
12954             fi
12955           else
12956             result=$wxUSE_MOUSEWHEEL
12957           fi
12958
12959           { echo "$as_me:$LINENO: result: $result" >&5
12960 echo "${ECHO_T}$result" >&6; }
12961
12962
12963           enablestring=
12964           defaultval=$wxUSE_ALL_FEATURES
12965           if test -z "$defaultval"; then
12966               if test x"$enablestring" = xdisable; then
12967                   defaultval=yes
12968               else
12969                   defaultval=no
12970               fi
12971           fi
12972
12973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12974 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12975           # Check whether --enable-validators was given.
12976 if test "${enable_validators+set}" = set; then
12977   enableval=$enable_validators;
12978                           if test "$enableval" = yes; then
12979                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
12980                           else
12981                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
12982                           fi
12983
12984 else
12985
12986                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
12987
12988 fi
12989
12990
12991           eval "$wx_cv_use_validators"
12992
12993           if test x"$enablestring" = xdisable; then
12994             if test $wxUSE_VALIDATORS = yes; then
12995               result=no
12996             else
12997               result=yes
12998             fi
12999           else
13000             result=$wxUSE_VALIDATORS
13001           fi
13002
13003           { echo "$as_me:$LINENO: result: $result" >&5
13004 echo "${ECHO_T}$result" >&6; }
13005
13006
13007           enablestring=
13008           defaultval=$wxUSE_ALL_FEATURES
13009           if test -z "$defaultval"; then
13010               if test x"$enablestring" = xdisable; then
13011                   defaultval=yes
13012               else
13013                   defaultval=no
13014               fi
13015           fi
13016
13017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13018 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13019           # Check whether --enable-busyinfo was given.
13020 if test "${enable_busyinfo+set}" = set; then
13021   enableval=$enable_busyinfo;
13022                           if test "$enableval" = yes; then
13023                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13024                           else
13025                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13026                           fi
13027
13028 else
13029
13030                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13031
13032 fi
13033
13034
13035           eval "$wx_cv_use_busyinfo"
13036
13037           if test x"$enablestring" = xdisable; then
13038             if test $wxUSE_BUSYINFO = yes; then
13039               result=no
13040             else
13041               result=yes
13042             fi
13043           else
13044             result=$wxUSE_BUSYINFO
13045           fi
13046
13047           { echo "$as_me:$LINENO: result: $result" >&5
13048 echo "${ECHO_T}$result" >&6; }
13049
13050
13051           enablestring=
13052           defaultval=$wxUSE_ALL_FEATURES
13053           if test -z "$defaultval"; then
13054               if test x"$enablestring" = xdisable; then
13055                   defaultval=yes
13056               else
13057                   defaultval=no
13058               fi
13059           fi
13060
13061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13062 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13063           # Check whether --enable-joystick was given.
13064 if test "${enable_joystick+set}" = set; then
13065   enableval=$enable_joystick;
13066                           if test "$enableval" = yes; then
13067                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13068                           else
13069                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13070                           fi
13071
13072 else
13073
13074                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13075
13076 fi
13077
13078
13079           eval "$wx_cv_use_joystick"
13080
13081           if test x"$enablestring" = xdisable; then
13082             if test $wxUSE_JOYSTICK = yes; then
13083               result=no
13084             else
13085               result=yes
13086             fi
13087           else
13088             result=$wxUSE_JOYSTICK
13089           fi
13090
13091           { echo "$as_me:$LINENO: result: $result" >&5
13092 echo "${ECHO_T}$result" >&6; }
13093
13094
13095           enablestring=
13096           defaultval=$wxUSE_ALL_FEATURES
13097           if test -z "$defaultval"; then
13098               if test x"$enablestring" = xdisable; then
13099                   defaultval=yes
13100               else
13101                   defaultval=no
13102               fi
13103           fi
13104
13105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13106 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13107           # Check whether --enable-metafile was given.
13108 if test "${enable_metafile+set}" = set; then
13109   enableval=$enable_metafile;
13110                           if test "$enableval" = yes; then
13111                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13112                           else
13113                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13114                           fi
13115
13116 else
13117
13118                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13119
13120 fi
13121
13122
13123           eval "$wx_cv_use_metafile"
13124
13125           if test x"$enablestring" = xdisable; then
13126             if test $wxUSE_METAFILE = yes; then
13127               result=no
13128             else
13129               result=yes
13130             fi
13131           else
13132             result=$wxUSE_METAFILE
13133           fi
13134
13135           { echo "$as_me:$LINENO: result: $result" >&5
13136 echo "${ECHO_T}$result" >&6; }
13137
13138
13139           enablestring=
13140           defaultval=$wxUSE_ALL_FEATURES
13141           if test -z "$defaultval"; then
13142               if test x"$enablestring" = xdisable; then
13143                   defaultval=yes
13144               else
13145                   defaultval=no
13146               fi
13147           fi
13148
13149           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13150 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13151           # Check whether --enable-dragimage was given.
13152 if test "${enable_dragimage+set}" = set; then
13153   enableval=$enable_dragimage;
13154                           if test "$enableval" = yes; then
13155                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13156                           else
13157                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13158                           fi
13159
13160 else
13161
13162                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13163
13164 fi
13165
13166
13167           eval "$wx_cv_use_dragimage"
13168
13169           if test x"$enablestring" = xdisable; then
13170             if test $wxUSE_DRAGIMAGE = yes; then
13171               result=no
13172             else
13173               result=yes
13174             fi
13175           else
13176             result=$wxUSE_DRAGIMAGE
13177           fi
13178
13179           { echo "$as_me:$LINENO: result: $result" >&5
13180 echo "${ECHO_T}$result" >&6; }
13181
13182
13183           enablestring=
13184           defaultval=$wxUSE_ALL_FEATURES
13185           if test -z "$defaultval"; then
13186               if test x"$enablestring" = xdisable; then
13187                   defaultval=yes
13188               else
13189                   defaultval=no
13190               fi
13191           fi
13192
13193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13194 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13195           # Check whether --enable-accessibility was given.
13196 if test "${enable_accessibility+set}" = set; then
13197   enableval=$enable_accessibility;
13198                           if test "$enableval" = yes; then
13199                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13200                           else
13201                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13202                           fi
13203
13204 else
13205
13206                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13207
13208 fi
13209
13210
13211           eval "$wx_cv_use_accessibility"
13212
13213           if test x"$enablestring" = xdisable; then
13214             if test $wxUSE_ACCESSIBILITY = yes; then
13215               result=no
13216             else
13217               result=yes
13218             fi
13219           else
13220             result=$wxUSE_ACCESSIBILITY
13221           fi
13222
13223           { echo "$as_me:$LINENO: result: $result" >&5
13224 echo "${ECHO_T}$result" >&6; }
13225
13226
13227
13228
13229           enablestring=
13230           defaultval=$wxUSE_ALL_FEATURES
13231           if test -z "$defaultval"; then
13232               if test x"$enablestring" = xdisable; then
13233                   defaultval=yes
13234               else
13235                   defaultval=no
13236               fi
13237           fi
13238
13239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13240 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13241           # Check whether --enable-palette was given.
13242 if test "${enable_palette+set}" = set; then
13243   enableval=$enable_palette;
13244                           if test "$enableval" = yes; then
13245                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13246                           else
13247                             wx_cv_use_palette='wxUSE_PALETTE=no'
13248                           fi
13249
13250 else
13251
13252                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13253
13254 fi
13255
13256
13257           eval "$wx_cv_use_palette"
13258
13259           if test x"$enablestring" = xdisable; then
13260             if test $wxUSE_PALETTE = yes; then
13261               result=no
13262             else
13263               result=yes
13264             fi
13265           else
13266             result=$wxUSE_PALETTE
13267           fi
13268
13269           { echo "$as_me:$LINENO: result: $result" >&5
13270 echo "${ECHO_T}$result" >&6; }
13271
13272
13273           enablestring=
13274           defaultval=$wxUSE_ALL_FEATURES
13275           if test -z "$defaultval"; then
13276               if test x"$enablestring" = xdisable; then
13277                   defaultval=yes
13278               else
13279                   defaultval=no
13280               fi
13281           fi
13282
13283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13284 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13285           # Check whether --enable-image was given.
13286 if test "${enable_image+set}" = set; then
13287   enableval=$enable_image;
13288                           if test "$enableval" = yes; then
13289                             wx_cv_use_image='wxUSE_IMAGE=yes'
13290                           else
13291                             wx_cv_use_image='wxUSE_IMAGE=no'
13292                           fi
13293
13294 else
13295
13296                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13297
13298 fi
13299
13300
13301           eval "$wx_cv_use_image"
13302
13303           if test x"$enablestring" = xdisable; then
13304             if test $wxUSE_IMAGE = yes; then
13305               result=no
13306             else
13307               result=yes
13308             fi
13309           else
13310             result=$wxUSE_IMAGE
13311           fi
13312
13313           { echo "$as_me:$LINENO: result: $result" >&5
13314 echo "${ECHO_T}$result" >&6; }
13315
13316
13317           enablestring=
13318           defaultval=$wxUSE_ALL_FEATURES
13319           if test -z "$defaultval"; then
13320               if test x"$enablestring" = xdisable; then
13321                   defaultval=yes
13322               else
13323                   defaultval=no
13324               fi
13325           fi
13326
13327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13328 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13329           # Check whether --enable-gif was given.
13330 if test "${enable_gif+set}" = set; then
13331   enableval=$enable_gif;
13332                           if test "$enableval" = yes; then
13333                             wx_cv_use_gif='wxUSE_GIF=yes'
13334                           else
13335                             wx_cv_use_gif='wxUSE_GIF=no'
13336                           fi
13337
13338 else
13339
13340                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13341
13342 fi
13343
13344
13345           eval "$wx_cv_use_gif"
13346
13347           if test x"$enablestring" = xdisable; then
13348             if test $wxUSE_GIF = yes; then
13349               result=no
13350             else
13351               result=yes
13352             fi
13353           else
13354             result=$wxUSE_GIF
13355           fi
13356
13357           { echo "$as_me:$LINENO: result: $result" >&5
13358 echo "${ECHO_T}$result" >&6; }
13359
13360
13361           enablestring=
13362           defaultval=$wxUSE_ALL_FEATURES
13363           if test -z "$defaultval"; then
13364               if test x"$enablestring" = xdisable; then
13365                   defaultval=yes
13366               else
13367                   defaultval=no
13368               fi
13369           fi
13370
13371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13372 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13373           # Check whether --enable-pcx was given.
13374 if test "${enable_pcx+set}" = set; then
13375   enableval=$enable_pcx;
13376                           if test "$enableval" = yes; then
13377                             wx_cv_use_pcx='wxUSE_PCX=yes'
13378                           else
13379                             wx_cv_use_pcx='wxUSE_PCX=no'
13380                           fi
13381
13382 else
13383
13384                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13385
13386 fi
13387
13388
13389           eval "$wx_cv_use_pcx"
13390
13391           if test x"$enablestring" = xdisable; then
13392             if test $wxUSE_PCX = yes; then
13393               result=no
13394             else
13395               result=yes
13396             fi
13397           else
13398             result=$wxUSE_PCX
13399           fi
13400
13401           { echo "$as_me:$LINENO: result: $result" >&5
13402 echo "${ECHO_T}$result" >&6; }
13403
13404
13405           enablestring=
13406           defaultval=$wxUSE_ALL_FEATURES
13407           if test -z "$defaultval"; then
13408               if test x"$enablestring" = xdisable; then
13409                   defaultval=yes
13410               else
13411                   defaultval=no
13412               fi
13413           fi
13414
13415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13416 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13417           # Check whether --enable-tga was given.
13418 if test "${enable_tga+set}" = set; then
13419   enableval=$enable_tga;
13420                           if test "$enableval" = yes; then
13421                             wx_cv_use_tga='wxUSE_TGA=yes'
13422                           else
13423                             wx_cv_use_tga='wxUSE_TGA=no'
13424                           fi
13425
13426 else
13427
13428                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13429
13430 fi
13431
13432
13433           eval "$wx_cv_use_tga"
13434
13435           if test x"$enablestring" = xdisable; then
13436             if test $wxUSE_TGA = yes; then
13437               result=no
13438             else
13439               result=yes
13440             fi
13441           else
13442             result=$wxUSE_TGA
13443           fi
13444
13445           { echo "$as_me:$LINENO: result: $result" >&5
13446 echo "${ECHO_T}$result" >&6; }
13447
13448
13449           enablestring=
13450           defaultval=$wxUSE_ALL_FEATURES
13451           if test -z "$defaultval"; then
13452               if test x"$enablestring" = xdisable; then
13453                   defaultval=yes
13454               else
13455                   defaultval=no
13456               fi
13457           fi
13458
13459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13460 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13461           # Check whether --enable-iff was given.
13462 if test "${enable_iff+set}" = set; then
13463   enableval=$enable_iff;
13464                           if test "$enableval" = yes; then
13465                             wx_cv_use_iff='wxUSE_IFF=yes'
13466                           else
13467                             wx_cv_use_iff='wxUSE_IFF=no'
13468                           fi
13469
13470 else
13471
13472                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13473
13474 fi
13475
13476
13477           eval "$wx_cv_use_iff"
13478
13479           if test x"$enablestring" = xdisable; then
13480             if test $wxUSE_IFF = yes; then
13481               result=no
13482             else
13483               result=yes
13484             fi
13485           else
13486             result=$wxUSE_IFF
13487           fi
13488
13489           { echo "$as_me:$LINENO: result: $result" >&5
13490 echo "${ECHO_T}$result" >&6; }
13491
13492
13493           enablestring=
13494           defaultval=$wxUSE_ALL_FEATURES
13495           if test -z "$defaultval"; then
13496               if test x"$enablestring" = xdisable; then
13497                   defaultval=yes
13498               else
13499                   defaultval=no
13500               fi
13501           fi
13502
13503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13504 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13505           # Check whether --enable-pnm was given.
13506 if test "${enable_pnm+set}" = set; then
13507   enableval=$enable_pnm;
13508                           if test "$enableval" = yes; then
13509                             wx_cv_use_pnm='wxUSE_PNM=yes'
13510                           else
13511                             wx_cv_use_pnm='wxUSE_PNM=no'
13512                           fi
13513
13514 else
13515
13516                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13517
13518 fi
13519
13520
13521           eval "$wx_cv_use_pnm"
13522
13523           if test x"$enablestring" = xdisable; then
13524             if test $wxUSE_PNM = yes; then
13525               result=no
13526             else
13527               result=yes
13528             fi
13529           else
13530             result=$wxUSE_PNM
13531           fi
13532
13533           { echo "$as_me:$LINENO: result: $result" >&5
13534 echo "${ECHO_T}$result" >&6; }
13535
13536
13537           enablestring=
13538           defaultval=$wxUSE_ALL_FEATURES
13539           if test -z "$defaultval"; then
13540               if test x"$enablestring" = xdisable; then
13541                   defaultval=yes
13542               else
13543                   defaultval=no
13544               fi
13545           fi
13546
13547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13548 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13549           # Check whether --enable-xpm was given.
13550 if test "${enable_xpm+set}" = set; then
13551   enableval=$enable_xpm;
13552                           if test "$enableval" = yes; then
13553                             wx_cv_use_xpm='wxUSE_XPM=yes'
13554                           else
13555                             wx_cv_use_xpm='wxUSE_XPM=no'
13556                           fi
13557
13558 else
13559
13560                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13561
13562 fi
13563
13564
13565           eval "$wx_cv_use_xpm"
13566
13567           if test x"$enablestring" = xdisable; then
13568             if test $wxUSE_XPM = yes; then
13569               result=no
13570             else
13571               result=yes
13572             fi
13573           else
13574             result=$wxUSE_XPM
13575           fi
13576
13577           { echo "$as_me:$LINENO: result: $result" >&5
13578 echo "${ECHO_T}$result" >&6; }
13579
13580
13581           enablestring=
13582           defaultval=$wxUSE_ALL_FEATURES
13583           if test -z "$defaultval"; then
13584               if test x"$enablestring" = xdisable; then
13585                   defaultval=yes
13586               else
13587                   defaultval=no
13588               fi
13589           fi
13590
13591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13592 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13593           # Check whether --enable-ico_cur was given.
13594 if test "${enable_ico_cur+set}" = set; then
13595   enableval=$enable_ico_cur;
13596                           if test "$enableval" = yes; then
13597                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13598                           else
13599                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13600                           fi
13601
13602 else
13603
13604                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13605
13606 fi
13607
13608
13609           eval "$wx_cv_use_ico_cur"
13610
13611           if test x"$enablestring" = xdisable; then
13612             if test $wxUSE_ICO_CUR = yes; then
13613               result=no
13614             else
13615               result=yes
13616             fi
13617           else
13618             result=$wxUSE_ICO_CUR
13619           fi
13620
13621           { echo "$as_me:$LINENO: result: $result" >&5
13622 echo "${ECHO_T}$result" >&6; }
13623
13624
13625
13626
13627           enablestring=
13628           defaultval=$wxUSE_ALL_FEATURES
13629           if test -z "$defaultval"; then
13630               if test x"$enablestring" = xdisable; then
13631                   defaultval=yes
13632               else
13633                   defaultval=no
13634               fi
13635           fi
13636
13637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13638 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13639           # Check whether --enable-dccache was given.
13640 if test "${enable_dccache+set}" = set; then
13641   enableval=$enable_dccache;
13642                           if test "$enableval" = yes; then
13643                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13644                           else
13645                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13646                           fi
13647
13648 else
13649
13650                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13651
13652 fi
13653
13654
13655           eval "$wx_cv_use_dccache"
13656
13657           if test x"$enablestring" = xdisable; then
13658             if test $wxUSE_DC_CACHEING = yes; then
13659               result=no
13660             else
13661               result=yes
13662             fi
13663           else
13664             result=$wxUSE_DC_CACHEING
13665           fi
13666
13667           { echo "$as_me:$LINENO: result: $result" >&5
13668 echo "${ECHO_T}$result" >&6; }
13669
13670
13671           enablestring=
13672           defaultval=$wxUSE_ALL_FEATURES
13673           if test -z "$defaultval"; then
13674               if test x"$enablestring" = xdisable; then
13675                   defaultval=yes
13676               else
13677                   defaultval=no
13678               fi
13679           fi
13680
13681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13682 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13683           # Check whether --enable-ps-in-msw was given.
13684 if test "${enable_ps_in_msw+set}" = set; then
13685   enableval=$enable_ps_in_msw;
13686                           if test "$enableval" = yes; then
13687                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13688                           else
13689                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13690                           fi
13691
13692 else
13693
13694                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13695
13696 fi
13697
13698
13699           eval "$wx_cv_use_ps_in_msw"
13700
13701           if test x"$enablestring" = xdisable; then
13702             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13703               result=no
13704             else
13705               result=yes
13706             fi
13707           else
13708             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13709           fi
13710
13711           { echo "$as_me:$LINENO: result: $result" >&5
13712 echo "${ECHO_T}$result" >&6; }
13713
13714
13715           enablestring=
13716           defaultval=$wxUSE_ALL_FEATURES
13717           if test -z "$defaultval"; then
13718               if test x"$enablestring" = xdisable; then
13719                   defaultval=yes
13720               else
13721                   defaultval=no
13722               fi
13723           fi
13724
13725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13726 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13727           # Check whether --enable-ownerdrawn was given.
13728 if test "${enable_ownerdrawn+set}" = set; then
13729   enableval=$enable_ownerdrawn;
13730                           if test "$enableval" = yes; then
13731                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13732                           else
13733                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13734                           fi
13735
13736 else
13737
13738                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13739
13740 fi
13741
13742
13743           eval "$wx_cv_use_ownerdrawn"
13744
13745           if test x"$enablestring" = xdisable; then
13746             if test $wxUSE_OWNER_DRAWN = yes; then
13747               result=no
13748             else
13749               result=yes
13750             fi
13751           else
13752             result=$wxUSE_OWNER_DRAWN
13753           fi
13754
13755           { echo "$as_me:$LINENO: result: $result" >&5
13756 echo "${ECHO_T}$result" >&6; }
13757
13758
13759           enablestring=
13760           defaultval=$wxUSE_ALL_FEATURES
13761           if test -z "$defaultval"; then
13762               if test x"$enablestring" = xdisable; then
13763                   defaultval=yes
13764               else
13765                   defaultval=no
13766               fi
13767           fi
13768
13769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13770 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13771           # Check whether --enable-uxtheme was given.
13772 if test "${enable_uxtheme+set}" = set; then
13773   enableval=$enable_uxtheme;
13774                           if test "$enableval" = yes; then
13775                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13776                           else
13777                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13778                           fi
13779
13780 else
13781
13782                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13783
13784 fi
13785
13786
13787           eval "$wx_cv_use_uxtheme"
13788
13789           if test x"$enablestring" = xdisable; then
13790             if test $wxUSE_UXTHEME = yes; then
13791               result=no
13792             else
13793               result=yes
13794             fi
13795           else
13796             result=$wxUSE_UXTHEME
13797           fi
13798
13799           { echo "$as_me:$LINENO: result: $result" >&5
13800 echo "${ECHO_T}$result" >&6; }
13801
13802
13803           enablestring=
13804           defaultval=$wxUSE_ALL_FEATURES
13805           if test -z "$defaultval"; then
13806               if test x"$enablestring" = xdisable; then
13807                   defaultval=yes
13808               else
13809                   defaultval=no
13810               fi
13811           fi
13812
13813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13814 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13815           # Check whether --enable-wxdib was given.
13816 if test "${enable_wxdib+set}" = set; then
13817   enableval=$enable_wxdib;
13818                           if test "$enableval" = yes; then
13819                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13820                           else
13821                             wx_cv_use_wxdib='wxUSE_DIB=no'
13822                           fi
13823
13824 else
13825
13826                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13827
13828 fi
13829
13830
13831           eval "$wx_cv_use_wxdib"
13832
13833           if test x"$enablestring" = xdisable; then
13834             if test $wxUSE_DIB = yes; then
13835               result=no
13836             else
13837               result=yes
13838             fi
13839           else
13840             result=$wxUSE_DIB
13841           fi
13842
13843           { echo "$as_me:$LINENO: result: $result" >&5
13844 echo "${ECHO_T}$result" >&6; }
13845
13846
13847 if test "$wxUSE_MSW" != 1; then
13848     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13849 fi
13850
13851
13852           enablestring=
13853           defaultval=$wxUSE_ALL_FEATURES
13854           if test -z "$defaultval"; then
13855               if test x"$enablestring" = xdisable; then
13856                   defaultval=yes
13857               else
13858                   defaultval=no
13859               fi
13860           fi
13861
13862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13863 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13864           # Check whether --enable-autoidman was given.
13865 if test "${enable_autoidman+set}" = set; then
13866   enableval=$enable_autoidman;
13867                           if test "$enableval" = yes; then
13868                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13869                           else
13870                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13871                           fi
13872
13873 else
13874
13875                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13876
13877 fi
13878
13879
13880           eval "$wx_cv_use_autoidman"
13881
13882           if test x"$enablestring" = xdisable; then
13883             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13884               result=no
13885             else
13886               result=yes
13887             fi
13888           else
13889             result=$wxUSE_AUTOID_MANAGEMENT
13890           fi
13891
13892           { echo "$as_me:$LINENO: result: $result" >&5
13893 echo "${ECHO_T}$result" >&6; }
13894
13895
13896 fi
13897
13898
13899 cat >confcache <<\_ACEOF
13900 # This file is a shell script that caches the results of configure
13901 # tests run on this system so they can be shared between configure
13902 # scripts and configure runs, see configure's option --config-cache.
13903 # It is not useful on other systems.  If it contains results you don't
13904 # want to keep, you may remove or edit it.
13905 #
13906 # config.status only pays attention to the cache file if you give it
13907 # the --recheck option to rerun configure.
13908 #
13909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13911 # following values.
13912
13913 _ACEOF
13914
13915 # The following way of writing the cache mishandles newlines in values,
13916 # but we know of no workaround that is simple, portable, and efficient.
13917 # So, we kill variables containing newlines.
13918 # Ultrix sh set writes to stderr and can't be redirected directly,
13919 # and sets the high bit in the cache file unless we assign to the vars.
13920 (
13921   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13922     eval ac_val=\$$ac_var
13923     case $ac_val in #(
13924     *${as_nl}*)
13925       case $ac_var in #(
13926       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13927 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13928       esac
13929       case $ac_var in #(
13930       _ | IFS | as_nl) ;; #(
13931       *) $as_unset $ac_var ;;
13932       esac ;;
13933     esac
13934   done
13935
13936   (set) 2>&1 |
13937     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13938     *${as_nl}ac_space=\ *)
13939       # `set' does not quote correctly, so add quotes (double-quote
13940       # substitution turns \\\\ into \\, and sed turns \\ into \).
13941       sed -n \
13942         "s/'/'\\\\''/g;
13943           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13944       ;; #(
13945     *)
13946       # `set' quotes correctly as required by POSIX, so do not add quotes.
13947       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13948       ;;
13949     esac |
13950     sort
13951 ) |
13952   sed '
13953      /^ac_cv_env_/b end
13954      t clear
13955      :clear
13956      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13957      t end
13958      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13959      :end' >>confcache
13960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13961   if test -w "$cache_file"; then
13962     test "x$cache_file" != "x/dev/null" &&
13963       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13964 echo "$as_me: updating cache $cache_file" >&6;}
13965     cat confcache >$cache_file
13966   else
13967     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13968 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13969   fi
13970 fi
13971 rm -f confcache
13972
13973 CFLAGS=${CFLAGS:=}
13974
13975
13976
13977     ac_ext=c
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982 if test -n "$ac_tool_prefix"; then
13983   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13987 if test "${ac_cv_prog_CC+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   if test -n "$CC"; then
13991   ac_cv_prog_CC="$CC" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996   IFS=$as_save_IFS
13997   test -z "$as_dir" && as_dir=.
13998   for ac_exec_ext in '' $ac_executable_extensions; do
13999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002     break 2
14003   fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 CC=$ac_cv_prog_CC
14011 if test -n "$CC"; then
14012   { echo "$as_me:$LINENO: result: $CC" >&5
14013 echo "${ECHO_T}$CC" >&6; }
14014 else
14015   { echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6; }
14017 fi
14018
14019
14020 fi
14021 if test -z "$ac_cv_prog_CC"; then
14022   ac_ct_CC=$CC
14023   # Extract the first word of "gcc", so it can be a program name with args.
14024 set dummy gcc; ac_word=$2
14025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   if test -n "$ac_ct_CC"; then
14031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14032 else
14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034 for as_dir in $PATH
14035 do
14036   IFS=$as_save_IFS
14037   test -z "$as_dir" && as_dir=.
14038   for ac_exec_ext in '' $ac_executable_extensions; do
14039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14040     ac_cv_prog_ac_ct_CC="gcc"
14041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14042     break 2
14043   fi
14044 done
14045 done
14046 IFS=$as_save_IFS
14047
14048 fi
14049 fi
14050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14051 if test -n "$ac_ct_CC"; then
14052   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14053 echo "${ECHO_T}$ac_ct_CC" >&6; }
14054 else
14055   { echo "$as_me:$LINENO: result: no" >&5
14056 echo "${ECHO_T}no" >&6; }
14057 fi
14058
14059   if test "x$ac_ct_CC" = x; then
14060     CC=""
14061   else
14062     case $cross_compiling:$ac_tool_warned in
14063 yes:)
14064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14065 whose name does not start with the host triplet.  If you think this
14066 configuration is useful to you, please write to autoconf@gnu.org." >&5
14067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14068 whose name does not start with the host triplet.  If you think this
14069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14070 ac_tool_warned=yes ;;
14071 esac
14072     CC=$ac_ct_CC
14073   fi
14074 else
14075   CC="$ac_cv_prog_CC"
14076 fi
14077
14078 if test -z "$CC"; then
14079           if test -n "$ac_tool_prefix"; then
14080     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14081 set dummy ${ac_tool_prefix}cc; ac_word=$2
14082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14084 if test "${ac_cv_prog_CC+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   if test -n "$CC"; then
14088   ac_cv_prog_CC="$CC" # Let the user override the test.
14089 else
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14092 do
14093   IFS=$as_save_IFS
14094   test -z "$as_dir" && as_dir=.
14095   for ac_exec_ext in '' $ac_executable_extensions; do
14096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14097     ac_cv_prog_CC="${ac_tool_prefix}cc"
14098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14099     break 2
14100   fi
14101 done
14102 done
14103 IFS=$as_save_IFS
14104
14105 fi
14106 fi
14107 CC=$ac_cv_prog_CC
14108 if test -n "$CC"; then
14109   { echo "$as_me:$LINENO: result: $CC" >&5
14110 echo "${ECHO_T}$CC" >&6; }
14111 else
14112   { echo "$as_me:$LINENO: result: no" >&5
14113 echo "${ECHO_T}no" >&6; }
14114 fi
14115
14116
14117   fi
14118 fi
14119 if test -z "$CC"; then
14120   # Extract the first word of "cc", so it can be a program name with args.
14121 set dummy cc; ac_word=$2
14122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14124 if test "${ac_cv_prog_CC+set}" = set; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   if test -n "$CC"; then
14128   ac_cv_prog_CC="$CC" # Let the user override the test.
14129 else
14130   ac_prog_rejected=no
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14133 do
14134   IFS=$as_save_IFS
14135   test -z "$as_dir" && as_dir=.
14136   for ac_exec_ext in '' $ac_executable_extensions; do
14137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14139        ac_prog_rejected=yes
14140        continue
14141      fi
14142     ac_cv_prog_CC="cc"
14143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14144     break 2
14145   fi
14146 done
14147 done
14148 IFS=$as_save_IFS
14149
14150 if test $ac_prog_rejected = yes; then
14151   # We found a bogon in the path, so make sure we never use it.
14152   set dummy $ac_cv_prog_CC
14153   shift
14154   if test $# != 0; then
14155     # We chose a different compiler from the bogus one.
14156     # However, it has the same basename, so the bogon will be chosen
14157     # first if we set CC to just the basename; use the full file name.
14158     shift
14159     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14160   fi
14161 fi
14162 fi
14163 fi
14164 CC=$ac_cv_prog_CC
14165 if test -n "$CC"; then
14166   { echo "$as_me:$LINENO: result: $CC" >&5
14167 echo "${ECHO_T}$CC" >&6; }
14168 else
14169   { echo "$as_me:$LINENO: result: no" >&5
14170 echo "${ECHO_T}no" >&6; }
14171 fi
14172
14173
14174 fi
14175 if test -z "$CC"; then
14176   if test -n "$ac_tool_prefix"; then
14177   for ac_prog in cl.exe
14178   do
14179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14183 if test "${ac_cv_prog_CC+set}" = set; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   if test -n "$CC"; then
14187   ac_cv_prog_CC="$CC" # Let the user override the test.
14188 else
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14191 do
14192   IFS=$as_save_IFS
14193   test -z "$as_dir" && as_dir=.
14194   for ac_exec_ext in '' $ac_executable_extensions; do
14195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14196     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14198     break 2
14199   fi
14200 done
14201 done
14202 IFS=$as_save_IFS
14203
14204 fi
14205 fi
14206 CC=$ac_cv_prog_CC
14207 if test -n "$CC"; then
14208   { echo "$as_me:$LINENO: result: $CC" >&5
14209 echo "${ECHO_T}$CC" >&6; }
14210 else
14211   { echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6; }
14213 fi
14214
14215
14216     test -n "$CC" && break
14217   done
14218 fi
14219 if test -z "$CC"; then
14220   ac_ct_CC=$CC
14221   for ac_prog in cl.exe
14222 do
14223   # Extract the first word of "$ac_prog", so it can be a program name with args.
14224 set dummy $ac_prog; ac_word=$2
14225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   if test -n "$ac_ct_CC"; then
14231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14232 else
14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14235 do
14236   IFS=$as_save_IFS
14237   test -z "$as_dir" && as_dir=.
14238   for ac_exec_ext in '' $ac_executable_extensions; do
14239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14240     ac_cv_prog_ac_ct_CC="$ac_prog"
14241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242     break 2
14243   fi
14244 done
14245 done
14246 IFS=$as_save_IFS
14247
14248 fi
14249 fi
14250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14251 if test -n "$ac_ct_CC"; then
14252   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14253 echo "${ECHO_T}$ac_ct_CC" >&6; }
14254 else
14255   { echo "$as_me:$LINENO: result: no" >&5
14256 echo "${ECHO_T}no" >&6; }
14257 fi
14258
14259
14260   test -n "$ac_ct_CC" && break
14261 done
14262
14263   if test "x$ac_ct_CC" = x; then
14264     CC=""
14265   else
14266     case $cross_compiling:$ac_tool_warned in
14267 yes:)
14268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14269 whose name does not start with the host triplet.  If you think this
14270 configuration is useful to you, please write to autoconf@gnu.org." >&5
14271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14272 whose name does not start with the host triplet.  If you think this
14273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14274 ac_tool_warned=yes ;;
14275 esac
14276     CC=$ac_ct_CC
14277   fi
14278 fi
14279
14280 fi
14281
14282
14283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14284 See \`config.log' for more details." >&5
14285 echo "$as_me: error: no acceptable C compiler found in \$PATH
14286 See \`config.log' for more details." >&2;}
14287    { (exit 1); exit 1; }; }
14288
14289 # Provide some information about the compiler.
14290 echo "$as_me:$LINENO: checking for C compiler version" >&5
14291 ac_compiler=`set X $ac_compile; echo $2`
14292 { (ac_try="$ac_compiler --version >&5"
14293 case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_compiler --version >&5") 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }
14302 { (ac_try="$ac_compiler -v >&5"
14303 case "(($ac_try" in
14304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305   *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308   (eval "$ac_compiler -v >&5") 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }
14312 { (ac_try="$ac_compiler -V >&5"
14313 case "(($ac_try" in
14314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315   *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318   (eval "$ac_compiler -V >&5") 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }
14322
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329
14330 int
14331 main ()
14332 {
14333
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 ac_clean_files_save=$ac_clean_files
14339 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14340 # Try to create an executable without -o first, disregard a.out.
14341 # It will help us diagnose broken compilers, and finding out an intuition
14342 # of exeext.
14343 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14344 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14345 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14346 #
14347 # List of possible output files, starting from the most likely.
14348 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14349 # only as a last resort.  b.out is created by i960 compilers.
14350 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14351 #
14352 # The IRIX 6 linker writes into existing files which may not be
14353 # executable, retaining their permissions.  Remove them first so a
14354 # subsequent execution test works.
14355 ac_rmfiles=
14356 for ac_file in $ac_files
14357 do
14358   case $ac_file in
14359     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14360     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14361   esac
14362 done
14363 rm -f $ac_rmfiles
14364
14365 if { (ac_try="$ac_link_default"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_link_default") 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; then
14375   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14377 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14378 # so that the user can short-circuit this test for compilers unknown to
14379 # Autoconf.
14380 for ac_file in $ac_files ''
14381 do
14382   test -f "$ac_file" || continue
14383   case $ac_file in
14384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14385         ;;
14386     [ab].out )
14387         # We found the default executable, but exeext='' is most
14388         # certainly right.
14389         break;;
14390     *.* )
14391         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14392         then :; else
14393            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14394         fi
14395         # We set ac_cv_exeext here because the later test for it is not
14396         # safe: cross compilers may not add the suffix if given an `-o'
14397         # argument, so we may need to know it at that point already.
14398         # Even if this section looks crufty: it has the advantage of
14399         # actually working.
14400         break;;
14401     * )
14402         break;;
14403   esac
14404 done
14405 test "$ac_cv_exeext" = no && ac_cv_exeext=
14406
14407 else
14408   ac_file=''
14409 fi
14410
14411 { echo "$as_me:$LINENO: result: $ac_file" >&5
14412 echo "${ECHO_T}$ac_file" >&6; }
14413 if test -z "$ac_file"; then
14414   echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14418 See \`config.log' for more details." >&5
14419 echo "$as_me: error: C compiler cannot create executables
14420 See \`config.log' for more details." >&2;}
14421    { (exit 77); exit 77; }; }
14422 fi
14423
14424 ac_exeext=$ac_cv_exeext
14425
14426 # Check that the compiler produces executables we can run.  If not, either
14427 # the compiler is broken, or we cross compile.
14428 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14429 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14430 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14431 # If not cross compiling, check that we can run a simple program.
14432 if test "$cross_compiling" != yes; then
14433   if { ac_try='./$ac_file'
14434   { (case "(($ac_try" in
14435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436   *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439   (eval "$ac_try") 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443     cross_compiling=no
14444   else
14445     if test "$cross_compiling" = maybe; then
14446         cross_compiling=yes
14447     else
14448         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14449 If you meant to cross compile, use \`--host'.
14450 See \`config.log' for more details." >&5
14451 echo "$as_me: error: cannot run C compiled programs.
14452 If you meant to cross compile, use \`--host'.
14453 See \`config.log' for more details." >&2;}
14454    { (exit 1); exit 1; }; }
14455     fi
14456   fi
14457 fi
14458 { echo "$as_me:$LINENO: result: yes" >&5
14459 echo "${ECHO_T}yes" >&6; }
14460
14461 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14462 ac_clean_files=$ac_clean_files_save
14463 # Check that the compiler produces executables we can run.  If not, either
14464 # the compiler is broken, or we cross compile.
14465 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14466 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14467 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14468 echo "${ECHO_T}$cross_compiling" >&6; }
14469
14470 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14471 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_link") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; then
14482   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14483 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14484 # work properly (i.e., refer to `conftest.exe'), while it won't with
14485 # `rm'.
14486 for ac_file in conftest.exe conftest conftest.*; do
14487   test -f "$ac_file" || continue
14488   case $ac_file in
14489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14490     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14491           break;;
14492     * ) break;;
14493   esac
14494 done
14495 else
14496   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14497 See \`config.log' for more details." >&5
14498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14499 See \`config.log' for more details." >&2;}
14500    { (exit 1); exit 1; }; }
14501 fi
14502
14503 rm -f conftest$ac_cv_exeext
14504 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14505 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14506
14507 rm -f conftest.$ac_ext
14508 EXEEXT=$ac_cv_exeext
14509 ac_exeext=$EXEEXT
14510 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14512 if test "${ac_cv_objext+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 int
14523 main ()
14524 {
14525
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.o conftest.obj
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_compile") 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; then
14541   for ac_file in conftest.o conftest.obj conftest.*; do
14542   test -f "$ac_file" || continue;
14543   case $ac_file in
14544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14545     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14546        break;;
14547   esac
14548 done
14549 else
14550   echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14554 See \`config.log' for more details." >&5
14555 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14556 See \`config.log' for more details." >&2;}
14557    { (exit 1); exit 1; }; }
14558 fi
14559
14560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14561 fi
14562 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14563 echo "${ECHO_T}$ac_cv_objext" >&6; }
14564 OBJEXT=$ac_cv_objext
14565 ac_objext=$OBJEXT
14566 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14567 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577
14578 int
14579 main ()
14580 {
14581 #ifndef __GNUC__
14582        choke me
14583 #endif
14584
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_compile") 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } && {
14603          test -z "$ac_c_werror_flag" ||
14604          test ! -s conftest.err
14605        } && test -s conftest.$ac_objext; then
14606   ac_compiler_gnu=yes
14607 else
14608   echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611         ac_compiler_gnu=no
14612 fi
14613
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14616
14617 fi
14618 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14620 GCC=`test $ac_compiler_gnu = yes && echo yes`
14621 ac_test_CFLAGS=${CFLAGS+set}
14622 ac_save_CFLAGS=$CFLAGS
14623 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14625 if test "${ac_cv_prog_cc_g+set}" = set; then
14626   echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628   ac_save_c_werror_flag=$ac_c_werror_flag
14629    ac_c_werror_flag=yes
14630    ac_cv_prog_cc_g=no
14631    CFLAGS="-g"
14632    cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h.  */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h.  */
14638
14639 int
14640 main ()
14641 {
14642
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_compile") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } && {
14661          test -z "$ac_c_werror_flag" ||
14662          test ! -s conftest.err
14663        } && test -s conftest.$ac_objext; then
14664   ac_cv_prog_cc_g=yes
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669         CFLAGS=""
14670       cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676
14677 int
14678 main ()
14679 {
14680
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689   *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692   (eval "$ac_compile") 2>conftest.er1
14693   ac_status=$?
14694   grep -v '^ *+' conftest.er1 >conftest.err
14695   rm -f conftest.er1
14696   cat conftest.err >&5
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } && {
14699          test -z "$ac_c_werror_flag" ||
14700          test ! -s conftest.err
14701        } && test -s conftest.$ac_objext; then
14702   :
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707         ac_c_werror_flag=$ac_save_c_werror_flag
14708          CFLAGS="-g"
14709          cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715
14716 int
14717 main ()
14718 {
14719
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (ac_try="$ac_compile"
14726 case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_compile") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && {
14738          test -z "$ac_c_werror_flag" ||
14739          test ! -s conftest.err
14740        } && test -s conftest.$ac_objext; then
14741   ac_cv_prog_cc_g=yes
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746
14747 fi
14748
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 fi
14754
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756    ac_c_werror_flag=$ac_save_c_werror_flag
14757 fi
14758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14760 if test "$ac_test_CFLAGS" = set; then
14761   CFLAGS=$ac_save_CFLAGS
14762 elif test $ac_cv_prog_cc_g = yes; then
14763   if test "$GCC" = yes; then
14764     CFLAGS="-g -O2"
14765   else
14766     CFLAGS="-g"
14767   fi
14768 else
14769   if test "$GCC" = yes; then
14770     CFLAGS="-O2"
14771   else
14772     CFLAGS=
14773   fi
14774 fi
14775 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14776 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14777 if test "${ac_cv_prog_cc_c89+set}" = set; then
14778   echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780   ac_cv_prog_cc_c89=no
14781 ac_save_CC=$CC
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <stdarg.h>
14789 #include <stdio.h>
14790 #include <sys/types.h>
14791 #include <sys/stat.h>
14792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14793 struct buf { int x; };
14794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14795 static char *e (p, i)
14796      char **p;
14797      int i;
14798 {
14799   return p[i];
14800 }
14801 static char *f (char * (*g) (char **, int), char **p, ...)
14802 {
14803   char *s;
14804   va_list v;
14805   va_start (v,p);
14806   s = g (p, va_arg (v,int));
14807   va_end (v);
14808   return s;
14809 }
14810
14811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14812    function prototypes and stuff, but not '\xHH' hex character constants.
14813    These don't provoke an error unfortunately, instead are silently treated
14814    as 'x'.  The following induces an error, until -std is added to get
14815    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14816    array size at least.  It's necessary to write '\x00'==0 to get something
14817    that's true only with -std.  */
14818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14819
14820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14821    inside strings and character constants.  */
14822 #define FOO(x) 'x'
14823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14824
14825 int test (int i, double x);
14826 struct s1 {int (*f) (int a);};
14827 struct s2 {int (*f) (double a);};
14828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14829 int argc;
14830 char **argv;
14831 int
14832 main ()
14833 {
14834 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14840         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14841 do
14842   CC="$ac_save_CC $ac_arg"
14843   rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_compile") 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } && {
14857          test -z "$ac_c_werror_flag" ||
14858          test ! -s conftest.err
14859        } && test -s conftest.$ac_objext; then
14860   ac_cv_prog_cc_c89=$ac_arg
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865
14866 fi
14867
14868 rm -f core conftest.err conftest.$ac_objext
14869   test "x$ac_cv_prog_cc_c89" != "xno" && break
14870 done
14871 rm -f conftest.$ac_ext
14872 CC=$ac_save_CC
14873
14874 fi
14875 # AC_CACHE_VAL
14876 case "x$ac_cv_prog_cc_c89" in
14877   x)
14878     { echo "$as_me:$LINENO: result: none needed" >&5
14879 echo "${ECHO_T}none needed" >&6; } ;;
14880   xno)
14881     { echo "$as_me:$LINENO: result: unsupported" >&5
14882 echo "${ECHO_T}unsupported" >&6; } ;;
14883   *)
14884     CC="$CC $ac_cv_prog_cc_c89"
14885     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14886 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14887 esac
14888
14889
14890 ac_ext=c
14891 ac_cpp='$CPP $CPPFLAGS'
14892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895
14896
14897
14898
14899     ac_ext=c
14900 ac_cpp='$CPP $CPPFLAGS'
14901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14904
14905     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14906 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14907 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910   cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916
14917 int
14918 main ()
14919 {
14920
14921              #ifndef __INTEL_COMPILER
14922                 choke me
14923              #endif
14924
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (ac_try="$ac_compile"
14931 case "(($ac_try" in
14932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933   *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936   (eval "$ac_compile") 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } && {
14943          test -z "$ac_c_werror_flag" ||
14944          test ! -s conftest.err
14945        } && test -s conftest.$ac_objext; then
14946   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14947 else
14948   echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951         bakefile_cv_c_compiler___INTEL_COMPILER=no
14952
14953 fi
14954
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956
14957
14958 fi
14959 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
14960 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
14961     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14962         :; INTELCC=yes
14963     else
14964         :;
14965     fi
14966     ac_ext=c
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972
14973
14974
14975         if test "x$GCC" != "xyes"; then
14976         if test "xCC" = "xC"; then
14977             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14978 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
14979 if test "${bakefile_cv_c_exto+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988
14989 int
14990 main ()
14991 {
14992
14993   ;
14994   return 0;
14995 }
14996 _ACEOF
14997 rm -f conftest.$ac_objext conftest.$ac_ext.o
14998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14999   (eval $ac_compile) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; then
15003   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15004     case $ac_file in
15005         conftest.$ac_ext.o)
15006             bakefile_cv_c_exto="-ext o"
15007             ;;
15008         *)
15009             ;;
15010     esac
15011 done
15012 else
15013   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15014 See \`config.log' for more details." >&5
15015 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15016 See \`config.log' for more details." >&2;}
15017    { (exit 1); exit 1; }; }
15018
15019 fi
15020
15021 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15022
15023 fi
15024 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15025 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15026 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15027     if test "c" = "c"; then
15028         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15029     fi
15030     if test "c" = "cxx"; then
15031         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15032     fi
15033 fi
15034
15035             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15036                 unset ac_cv_prog_cc_g
15037                 ac_test_CFLAGS=${CFLAGS+set}
15038 ac_save_CFLAGS=$CFLAGS
15039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15041 if test "${ac_cv_prog_cc_g+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   ac_save_c_werror_flag=$ac_c_werror_flag
15045    ac_c_werror_flag=yes
15046    ac_cv_prog_cc_g=no
15047    CFLAGS="-g"
15048    cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h.  */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h.  */
15054
15055 int
15056 main ()
15057 {
15058
15059   ;
15060   return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (ac_try="$ac_compile"
15065 case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_compile") 2>conftest.er1
15071   ac_status=$?
15072   grep -v '^ *+' conftest.er1 >conftest.err
15073   rm -f conftest.er1
15074   cat conftest.err >&5
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } && {
15077          test -z "$ac_c_werror_flag" ||
15078          test ! -s conftest.err
15079        } && test -s conftest.$ac_objext; then
15080   ac_cv_prog_cc_g=yes
15081 else
15082   echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085         CFLAGS=""
15086       cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092
15093 int
15094 main ()
15095 {
15096
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (ac_try="$ac_compile"
15103 case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_compile") 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } && {
15115          test -z "$ac_c_werror_flag" ||
15116          test ! -s conftest.err
15117        } && test -s conftest.$ac_objext; then
15118   :
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123         ac_c_werror_flag=$ac_save_c_werror_flag
15124          CFLAGS="-g"
15125          cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131
15132 int
15133 main ()
15134 {
15135
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext
15141 if { (ac_try="$ac_compile"
15142 case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_compile") 2>conftest.er1
15148   ac_status=$?
15149   grep -v '^ *+' conftest.er1 >conftest.err
15150   rm -f conftest.er1
15151   cat conftest.err >&5
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); } && {
15154          test -z "$ac_c_werror_flag" ||
15155          test ! -s conftest.err
15156        } && test -s conftest.$ac_objext; then
15157   ac_cv_prog_cc_g=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162
15163 fi
15164
15165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15166 fi
15167
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172    ac_c_werror_flag=$ac_save_c_werror_flag
15173 fi
15174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15175 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15176 if test "$ac_test_CFLAGS" = set; then
15177   CFLAGS=$ac_save_CFLAGS
15178 elif test $ac_cv_prog_cc_g = yes; then
15179   if test "$GCC" = yes; then
15180     CFLAGS="-g -O2"
15181   else
15182     CFLAGS="-g"
15183   fi
15184 else
15185   if test "$GCC" = yes; then
15186     CFLAGS="-O2"
15187   else
15188     CFLAGS=
15189   fi
15190 fi
15191             fi
15192         fi
15193
15194                         case `uname -s` in
15195             AIX*)
15196
15197
15198     ac_ext=c
15199 ac_cpp='$CPP $CPPFLAGS'
15200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15203
15204     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15205 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15206 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15207   echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209   cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215
15216 int
15217 main ()
15218 {
15219
15220              #ifndef __xlC__
15221                 choke me
15222              #endif
15223
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext
15229 if { (ac_try="$ac_compile"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_compile") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_c_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest.$ac_objext; then
15245   bakefile_cv_c_compiler___xlC__=yes
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250         bakefile_cv_c_compiler___xlC__=no
15251
15252 fi
15253
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255
15256
15257 fi
15258 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15259 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15260     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15261         :; XLCC=yes
15262     else
15263         :;
15264     fi
15265     ac_ext=c
15266 ac_cpp='$CPP $CPPFLAGS'
15267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15270
15271
15272
15273                 ;;
15274
15275             Darwin)
15276
15277
15278     ac_ext=c
15279 ac_cpp='$CPP $CPPFLAGS'
15280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15283
15284     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15285 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15286 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295
15296 int
15297 main ()
15298 {
15299
15300              #ifndef __MWERKS__
15301                 choke me
15302              #endif
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_compile") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } && {
15322          test -z "$ac_c_werror_flag" ||
15323          test ! -s conftest.err
15324        } && test -s conftest.$ac_objext; then
15325   bakefile_cv_c_compiler___MWERKS__=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330         bakefile_cv_c_compiler___MWERKS__=no
15331
15332 fi
15333
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335
15336
15337 fi
15338 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15339 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15340     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15341         :; MWCC=yes
15342     else
15343         :;
15344     fi
15345     ac_ext=c
15346 ac_cpp='$CPP $CPPFLAGS'
15347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15350
15351
15352
15353
15354
15355     ac_ext=c
15356 ac_cpp='$CPP $CPPFLAGS'
15357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15360
15361     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15362 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15363 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372
15373 int
15374 main ()
15375 {
15376
15377              #ifndef __xlC__
15378                 choke me
15379              #endif
15380
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_compile") 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } && {
15399          test -z "$ac_c_werror_flag" ||
15400          test ! -s conftest.err
15401        } && test -s conftest.$ac_objext; then
15402   bakefile_cv_c_compiler___xlC__=yes
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407         bakefile_cv_c_compiler___xlC__=no
15408
15409 fi
15410
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412
15413
15414 fi
15415 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15416 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15417     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15418         :; XLCC=yes
15419     else
15420         :;
15421     fi
15422     ac_ext=c
15423 ac_cpp='$CPP $CPPFLAGS'
15424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15427
15428
15429
15430                 ;;
15431
15432             IRIX*)
15433
15434
15435     ac_ext=c
15436 ac_cpp='$CPP $CPPFLAGS'
15437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15440
15441     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15442 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15443 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452
15453 int
15454 main ()
15455 {
15456
15457              #ifndef _SGI_COMPILER_VERSION
15458                 choke me
15459              #endif
15460
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext
15466 if { (ac_try="$ac_compile"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_compile") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } && {
15479          test -z "$ac_c_werror_flag" ||
15480          test ! -s conftest.err
15481        } && test -s conftest.$ac_objext; then
15482   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15488
15489 fi
15490
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492
15493
15494 fi
15495 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15496 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15497     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15498         :; SGICC=yes
15499     else
15500         :;
15501     fi
15502     ac_ext=c
15503 ac_cpp='$CPP $CPPFLAGS'
15504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507
15508
15509
15510                 ;;
15511
15512             Linux*)
15513
15514
15515     ac_ext=c
15516 ac_cpp='$CPP $CPPFLAGS'
15517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15520
15521     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15522 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15523 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532
15533 int
15534 main ()
15535 {
15536
15537              #ifndef __SUNPRO_C
15538                 choke me
15539              #endif
15540
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549   *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552   (eval "$ac_compile") 2>conftest.er1
15553   ac_status=$?
15554   grep -v '^ *+' conftest.er1 >conftest.err
15555   rm -f conftest.er1
15556   cat conftest.err >&5
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); } && {
15559          test -z "$ac_c_werror_flag" ||
15560          test ! -s conftest.err
15561        } && test -s conftest.$ac_objext; then
15562   bakefile_cv_c_compiler___SUNPRO_C=yes
15563 else
15564   echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567         bakefile_cv_c_compiler___SUNPRO_C=no
15568
15569 fi
15570
15571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572
15573
15574 fi
15575 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15576 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15577     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15578         :; SUNCC=yes
15579     else
15580         :;
15581     fi
15582     ac_ext=c
15583 ac_cpp='$CPP $CPPFLAGS'
15584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15587
15588
15589
15590                 ;;
15591
15592             HP-UX*)
15593
15594
15595     ac_ext=c
15596 ac_cpp='$CPP $CPPFLAGS'
15597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15600
15601     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15602 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15603 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15604   echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606   cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h.  */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h.  */
15612
15613 int
15614 main ()
15615 {
15616
15617              #ifndef __HP_cc
15618                 choke me
15619              #endif
15620
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629   *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632   (eval "$ac_compile") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } && {
15639          test -z "$ac_c_werror_flag" ||
15640          test ! -s conftest.err
15641        } && test -s conftest.$ac_objext; then
15642   bakefile_cv_c_compiler___HP_cc=yes
15643 else
15644   echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647         bakefile_cv_c_compiler___HP_cc=no
15648
15649 fi
15650
15651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652
15653
15654 fi
15655 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15656 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15657     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15658         :; HPCC=yes
15659     else
15660         :;
15661     fi
15662     ac_ext=c
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15667
15668
15669
15670                 ;;
15671
15672             OSF1)
15673
15674
15675     ac_ext=c
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15680
15681     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15682 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15683 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15684   echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686   cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h.  */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h.  */
15692
15693 int
15694 main ()
15695 {
15696
15697              #ifndef __DECC
15698                 choke me
15699              #endif
15700
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext
15706 if { (ac_try="$ac_compile"
15707 case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_compile") 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } && {
15719          test -z "$ac_c_werror_flag" ||
15720          test ! -s conftest.err
15721        } && test -s conftest.$ac_objext; then
15722   bakefile_cv_c_compiler___DECC=yes
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727         bakefile_cv_c_compiler___DECC=no
15728
15729 fi
15730
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732
15733
15734 fi
15735 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15736 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15737     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15738         :; COMPAQCC=yes
15739     else
15740         :;
15741     fi
15742     ac_ext=c
15743 ac_cpp='$CPP $CPPFLAGS'
15744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15747
15748
15749
15750                 ;;
15751
15752             SunOS)
15753
15754
15755     ac_ext=c
15756 ac_cpp='$CPP $CPPFLAGS'
15757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15760
15761     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15762 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15763 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772
15773 int
15774 main ()
15775 {
15776
15777              #ifndef __SUNPRO_C
15778                 choke me
15779              #endif
15780
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_compile") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } && {
15799          test -z "$ac_c_werror_flag" ||
15800          test ! -s conftest.err
15801        } && test -s conftest.$ac_objext; then
15802   bakefile_cv_c_compiler___SUNPRO_C=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807         bakefile_cv_c_compiler___SUNPRO_C=no
15808
15809 fi
15810
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812
15813
15814 fi
15815 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15816 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15817     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15818         :; SUNCC=yes
15819     else
15820         :;
15821     fi
15822     ac_ext=c
15823 ac_cpp='$CPP $CPPFLAGS'
15824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827
15828
15829
15830                 ;;
15831         esac
15832     fi
15833
15834
15835
15836 ac_ext=c
15837 ac_cpp='$CPP $CPPFLAGS'
15838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15842 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15843 # On Suns, sometimes $CPP names a directory.
15844 if test -n "$CPP" && test -d "$CPP"; then
15845   CPP=
15846 fi
15847 if test -z "$CPP"; then
15848   if test "${ac_cv_prog_CPP+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851       # Double quotes because CPP needs to be expanded
15852     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15853     do
15854       ac_preproc_ok=false
15855 for ac_c_preproc_warn_flag in '' yes
15856 do
15857   # Use a header file that comes with gcc, so configuring glibc
15858   # with a fresh cross-compiler works.
15859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15860   # <limits.h> exists even on freestanding compilers.
15861   # On the NeXT, cc -E runs the code through the compiler's parser,
15862   # not just through cpp. "Syntax error" is here to catch this case.
15863   cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 #ifdef __STDC__
15870 # include <limits.h>
15871 #else
15872 # include <assert.h>
15873 #endif
15874                      Syntax error
15875 _ACEOF
15876 if { (ac_try="$ac_cpp conftest.$ac_ext"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } >/dev/null && {
15889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        }; then
15892   :
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897   # Broken: fails on valid input.
15898 continue
15899 fi
15900
15901 rm -f conftest.err conftest.$ac_ext
15902
15903   # OK, works on sane cases.  Now check whether nonexistent headers
15904   # can be detected and how.
15905   cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 #include <ac_nonexistent.h>
15912 _ACEOF
15913 if { (ac_try="$ac_cpp conftest.$ac_ext"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } >/dev/null && {
15926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15927          test ! -s conftest.err
15928        }; then
15929   # Broken: success on invalid input.
15930 continue
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935   # Passes both tests.
15936 ac_preproc_ok=:
15937 break
15938 fi
15939
15940 rm -f conftest.err conftest.$ac_ext
15941
15942 done
15943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15944 rm -f conftest.err conftest.$ac_ext
15945 if $ac_preproc_ok; then
15946   break
15947 fi
15948
15949     done
15950     ac_cv_prog_CPP=$CPP
15951
15952 fi
15953   CPP=$ac_cv_prog_CPP
15954 else
15955   ac_cv_prog_CPP=$CPP
15956 fi
15957 { echo "$as_me:$LINENO: result: $CPP" >&5
15958 echo "${ECHO_T}$CPP" >&6; }
15959 ac_preproc_ok=false
15960 for ac_c_preproc_warn_flag in '' yes
15961 do
15962   # Use a header file that comes with gcc, so configuring glibc
15963   # with a fresh cross-compiler works.
15964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15965   # <limits.h> exists even on freestanding compilers.
15966   # On the NeXT, cc -E runs the code through the compiler's parser,
15967   # not just through cpp. "Syntax error" is here to catch this case.
15968   cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 #ifdef __STDC__
15975 # include <limits.h>
15976 #else
15977 # include <assert.h>
15978 #endif
15979                      Syntax error
15980 _ACEOF
15981 if { (ac_try="$ac_cpp conftest.$ac_ext"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } >/dev/null && {
15994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15995          test ! -s conftest.err
15996        }; then
15997   :
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002   # Broken: fails on valid input.
16003 continue
16004 fi
16005
16006 rm -f conftest.err conftest.$ac_ext
16007
16008   # OK, works on sane cases.  Now check whether nonexistent headers
16009   # can be detected and how.
16010   cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016 #include <ac_nonexistent.h>
16017 _ACEOF
16018 if { (ac_try="$ac_cpp conftest.$ac_ext"
16019 case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } >/dev/null && {
16031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16032          test ! -s conftest.err
16033        }; then
16034   # Broken: success on invalid input.
16035 continue
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040   # Passes both tests.
16041 ac_preproc_ok=:
16042 break
16043 fi
16044
16045 rm -f conftest.err conftest.$ac_ext
16046
16047 done
16048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16049 rm -f conftest.err conftest.$ac_ext
16050 if $ac_preproc_ok; then
16051   :
16052 else
16053   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16054 See \`config.log' for more details." >&5
16055 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16056 See \`config.log' for more details." >&2;}
16057    { (exit 1); exit 1; }; }
16058 fi
16059
16060 ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16065
16066
16067 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16068 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16069 if test "${ac_cv_path_GREP+set}" = set; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   # Extract the first word of "grep ggrep" to use in msg output
16073 if test -z "$GREP"; then
16074 set dummy grep ggrep; ac_prog_name=$2
16075 if test "${ac_cv_path_GREP+set}" = set; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078   ac_path_GREP_found=false
16079 # Loop through the user's path and test for each of PROGNAME-LIST
16080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16082 do
16083   IFS=$as_save_IFS
16084   test -z "$as_dir" && as_dir=.
16085   for ac_prog in grep ggrep; do
16086   for ac_exec_ext in '' $ac_executable_extensions; do
16087     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16088     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16089     # Check for GNU ac_path_GREP and select it if it is found.
16090   # Check for GNU $ac_path_GREP
16091 case `"$ac_path_GREP" --version 2>&1` in
16092 *GNU*)
16093   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16094 *)
16095   ac_count=0
16096   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16097   while :
16098   do
16099     cat "conftest.in" "conftest.in" >"conftest.tmp"
16100     mv "conftest.tmp" "conftest.in"
16101     cp "conftest.in" "conftest.nl"
16102     echo 'GREP' >> "conftest.nl"
16103     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16105     ac_count=`expr $ac_count + 1`
16106     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16107       # Best one so far, save it but keep looking for a better one
16108       ac_cv_path_GREP="$ac_path_GREP"
16109       ac_path_GREP_max=$ac_count
16110     fi
16111     # 10*(2^10) chars as input seems more than enough
16112     test $ac_count -gt 10 && break
16113   done
16114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16115 esac
16116
16117
16118     $ac_path_GREP_found && break 3
16119   done
16120 done
16121
16122 done
16123 IFS=$as_save_IFS
16124
16125
16126 fi
16127
16128 GREP="$ac_cv_path_GREP"
16129 if test -z "$GREP"; then
16130   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16131 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16132    { (exit 1); exit 1; }; }
16133 fi
16134
16135 else
16136   ac_cv_path_GREP=$GREP
16137 fi
16138
16139
16140 fi
16141 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16142 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16143  GREP="$ac_cv_path_GREP"
16144
16145
16146 { echo "$as_me:$LINENO: checking for egrep" >&5
16147 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16148 if test "${ac_cv_path_EGREP+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16152    then ac_cv_path_EGREP="$GREP -E"
16153    else
16154      # Extract the first word of "egrep" to use in msg output
16155 if test -z "$EGREP"; then
16156 set dummy egrep; ac_prog_name=$2
16157 if test "${ac_cv_path_EGREP+set}" = set; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   ac_path_EGREP_found=false
16161 # Loop through the user's path and test for each of PROGNAME-LIST
16162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16164 do
16165   IFS=$as_save_IFS
16166   test -z "$as_dir" && as_dir=.
16167   for ac_prog in egrep; do
16168   for ac_exec_ext in '' $ac_executable_extensions; do
16169     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16170     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16171     # Check for GNU ac_path_EGREP and select it if it is found.
16172   # Check for GNU $ac_path_EGREP
16173 case `"$ac_path_EGREP" --version 2>&1` in
16174 *GNU*)
16175   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16176 *)
16177   ac_count=0
16178   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16179   while :
16180   do
16181     cat "conftest.in" "conftest.in" >"conftest.tmp"
16182     mv "conftest.tmp" "conftest.in"
16183     cp "conftest.in" "conftest.nl"
16184     echo 'EGREP' >> "conftest.nl"
16185     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16187     ac_count=`expr $ac_count + 1`
16188     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16189       # Best one so far, save it but keep looking for a better one
16190       ac_cv_path_EGREP="$ac_path_EGREP"
16191       ac_path_EGREP_max=$ac_count
16192     fi
16193     # 10*(2^10) chars as input seems more than enough
16194     test $ac_count -gt 10 && break
16195   done
16196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16197 esac
16198
16199
16200     $ac_path_EGREP_found && break 3
16201   done
16202 done
16203
16204 done
16205 IFS=$as_save_IFS
16206
16207
16208 fi
16209
16210 EGREP="$ac_cv_path_EGREP"
16211 if test -z "$EGREP"; then
16212   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16214    { (exit 1); exit 1; }; }
16215 fi
16216
16217 else
16218   ac_cv_path_EGREP=$EGREP
16219 fi
16220
16221
16222    fi
16223 fi
16224 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16225 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16226  EGREP="$ac_cv_path_EGREP"
16227
16228
16229 if test $ac_cv_c_compiler_gnu = yes; then
16230     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16231 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16232 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235     ac_pattern="Autoconf.*'x'"
16236   cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242 #include <sgtty.h>
16243 Autoconf TIOCGETP
16244 _ACEOF
16245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16246   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16247   ac_cv_prog_gcc_traditional=yes
16248 else
16249   ac_cv_prog_gcc_traditional=no
16250 fi
16251 rm -f conftest*
16252
16253
16254   if test $ac_cv_prog_gcc_traditional = no; then
16255     cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 #include <termio.h>
16262 Autoconf TCGETA
16263 _ACEOF
16264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16265   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16266   ac_cv_prog_gcc_traditional=yes
16267 fi
16268 rm -f conftest*
16269
16270   fi
16271 fi
16272 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16273 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16274   if test $ac_cv_prog_gcc_traditional = yes; then
16275     CC="$CC -traditional"
16276   fi
16277 fi
16278
16279
16280 CXXFLAGS=${CXXFLAGS:=}
16281
16282
16283
16284     ac_ext=cpp
16285 ac_cpp='$CXXCPP $CPPFLAGS'
16286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16289 if test -z "$CXX"; then
16290   if test -n "$CCC"; then
16291     CXX=$CCC
16292   else
16293     if test -n "$ac_tool_prefix"; then
16294   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16295   do
16296     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16300 if test "${ac_cv_prog_CXX+set}" = set; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303   if test -n "$CXX"; then
16304   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16305 else
16306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307 for as_dir in $PATH
16308 do
16309   IFS=$as_save_IFS
16310   test -z "$as_dir" && as_dir=.
16311   for ac_exec_ext in '' $ac_executable_extensions; do
16312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16313     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16315     break 2
16316   fi
16317 done
16318 done
16319 IFS=$as_save_IFS
16320
16321 fi
16322 fi
16323 CXX=$ac_cv_prog_CXX
16324 if test -n "$CXX"; then
16325   { echo "$as_me:$LINENO: result: $CXX" >&5
16326 echo "${ECHO_T}$CXX" >&6; }
16327 else
16328   { echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6; }
16330 fi
16331
16332
16333     test -n "$CXX" && break
16334   done
16335 fi
16336 if test -z "$CXX"; then
16337   ac_ct_CXX=$CXX
16338   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16339 do
16340   # Extract the first word of "$ac_prog", so it can be a program name with args.
16341 set dummy $ac_prog; ac_word=$2
16342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16344 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16345   echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347   if test -n "$ac_ct_CXX"; then
16348   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16349 else
16350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16351 for as_dir in $PATH
16352 do
16353   IFS=$as_save_IFS
16354   test -z "$as_dir" && as_dir=.
16355   for ac_exec_ext in '' $ac_executable_extensions; do
16356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16357     ac_cv_prog_ac_ct_CXX="$ac_prog"
16358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16359     break 2
16360   fi
16361 done
16362 done
16363 IFS=$as_save_IFS
16364
16365 fi
16366 fi
16367 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16368 if test -n "$ac_ct_CXX"; then
16369   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16370 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16371 else
16372   { echo "$as_me:$LINENO: result: no" >&5
16373 echo "${ECHO_T}no" >&6; }
16374 fi
16375
16376
16377   test -n "$ac_ct_CXX" && break
16378 done
16379
16380   if test "x$ac_ct_CXX" = x; then
16381     CXX="g++"
16382   else
16383     case $cross_compiling:$ac_tool_warned in
16384 yes:)
16385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16386 whose name does not start with the host triplet.  If you think this
16387 configuration is useful to you, please write to autoconf@gnu.org." >&5
16388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16389 whose name does not start with the host triplet.  If you think this
16390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16391 ac_tool_warned=yes ;;
16392 esac
16393     CXX=$ac_ct_CXX
16394   fi
16395 fi
16396
16397   fi
16398 fi
16399 # Provide some information about the compiler.
16400 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16401 ac_compiler=`set X $ac_compile; echo $2`
16402 { (ac_try="$ac_compiler --version >&5"
16403 case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_compiler --version >&5") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }
16412 { (ac_try="$ac_compiler -v >&5"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_compiler -v >&5") 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }
16422 { (ac_try="$ac_compiler -V >&5"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_compiler -V >&5") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }
16432
16433 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16434 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16435 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444
16445 int
16446 main ()
16447 {
16448 #ifndef __GNUC__
16449        choke me
16450 #endif
16451
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_compile") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } && {
16470          test -z "$ac_cxx_werror_flag" ||
16471          test ! -s conftest.err
16472        } && test -s conftest.$ac_objext; then
16473   ac_compiler_gnu=yes
16474 else
16475   echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478         ac_compiler_gnu=no
16479 fi
16480
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16483
16484 fi
16485 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16486 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16487 GXX=`test $ac_compiler_gnu = yes && echo yes`
16488 ac_test_CXXFLAGS=${CXXFLAGS+set}
16489 ac_save_CXXFLAGS=$CXXFLAGS
16490 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16491 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16492 if test "${ac_cv_prog_cxx_g+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16496    ac_cxx_werror_flag=yes
16497    ac_cv_prog_cxx_g=no
16498    CXXFLAGS="-g"
16499    cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h.  */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h.  */
16505
16506 int
16507 main ()
16508 {
16509
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518   *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521   (eval "$ac_compile") 2>conftest.er1
16522   ac_status=$?
16523   grep -v '^ *+' conftest.er1 >conftest.err
16524   rm -f conftest.er1
16525   cat conftest.err >&5
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } && {
16528          test -z "$ac_cxx_werror_flag" ||
16529          test ! -s conftest.err
16530        } && test -s conftest.$ac_objext; then
16531   ac_cv_prog_cxx_g=yes
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536         CXXFLAGS=""
16537       cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h.  */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h.  */
16543
16544 int
16545 main ()
16546 {
16547
16548   ;
16549   return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_compile") 2>conftest.er1
16560   ac_status=$?
16561   grep -v '^ *+' conftest.er1 >conftest.err
16562   rm -f conftest.er1
16563   cat conftest.err >&5
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } && {
16566          test -z "$ac_cxx_werror_flag" ||
16567          test ! -s conftest.err
16568        } && test -s conftest.$ac_objext; then
16569   :
16570 else
16571   echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16575          CXXFLAGS="-g"
16576          cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582
16583 int
16584 main ()
16585 {
16586
16587   ;
16588   return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
16593 case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_compile") 2>conftest.er1
16599   ac_status=$?
16600   grep -v '^ *+' conftest.er1 >conftest.err
16601   rm -f conftest.er1
16602   cat conftest.err >&5
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); } && {
16605          test -z "$ac_cxx_werror_flag" ||
16606          test ! -s conftest.err
16607        } && test -s conftest.$ac_objext; then
16608   ac_cv_prog_cxx_g=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 fi
16618
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16624 fi
16625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16626 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16627 if test "$ac_test_CXXFLAGS" = set; then
16628   CXXFLAGS=$ac_save_CXXFLAGS
16629 elif test $ac_cv_prog_cxx_g = yes; then
16630   if test "$GXX" = yes; then
16631     CXXFLAGS="-g -O2"
16632   else
16633     CXXFLAGS="-g"
16634   fi
16635 else
16636   if test "$GXX" = yes; then
16637     CXXFLAGS="-O2"
16638   else
16639     CXXFLAGS=
16640   fi
16641 fi
16642 ac_ext=c
16643 ac_cpp='$CPP $CPPFLAGS'
16644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648
16649
16650
16651     ac_ext=cpp
16652 ac_cpp='$CXXCPP $CPPFLAGS'
16653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16658 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16659 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16660   echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662   cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668
16669 int
16670 main ()
16671 {
16672
16673              #ifndef __INTEL_COMPILER
16674                 choke me
16675              #endif
16676
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 rm -f conftest.$ac_objext
16682 if { (ac_try="$ac_compile"
16683 case "(($ac_try" in
16684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685   *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688   (eval "$ac_compile") 2>conftest.er1
16689   ac_status=$?
16690   grep -v '^ *+' conftest.er1 >conftest.err
16691   rm -f conftest.er1
16692   cat conftest.err >&5
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } && {
16695          test -z "$ac_cxx_werror_flag" ||
16696          test ! -s conftest.err
16697        } && test -s conftest.$ac_objext; then
16698   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16704
16705 fi
16706
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708
16709
16710 fi
16711 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16712 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16713     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16714         :; INTELCXX=yes
16715     else
16716         :;
16717     fi
16718     ac_ext=c
16719 ac_cpp='$CPP $CPPFLAGS'
16720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723
16724
16725
16726
16727         if test "x$GCXX" != "xyes"; then
16728         if test "xCXX" = "xC"; then
16729             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16730 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16731 if test "${bakefile_cv_c_exto+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740
16741 int
16742 main ()
16743 {
16744
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest.$ac_ext.o
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751   (eval $ac_compile) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; then
16755   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16756     case $ac_file in
16757         conftest.$ac_ext.o)
16758             bakefile_cv_c_exto="-ext o"
16759             ;;
16760         *)
16761             ;;
16762     esac
16763 done
16764 else
16765   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16766 See \`config.log' for more details." >&5
16767 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16768 See \`config.log' for more details." >&2;}
16769    { (exit 1); exit 1; }; }
16770
16771 fi
16772
16773 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16774
16775 fi
16776 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16777 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16778 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16779     if test "c" = "c"; then
16780         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16781     fi
16782     if test "c" = "cxx"; then
16783         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16784     fi
16785 fi
16786
16787             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16788                 unset ac_cv_prog_cc_g
16789                 ac_test_CFLAGS=${CFLAGS+set}
16790 ac_save_CFLAGS=$CFLAGS
16791 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16792 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16793 if test "${ac_cv_prog_cc_g+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   ac_save_c_werror_flag=$ac_c_werror_flag
16797    ac_c_werror_flag=yes
16798    ac_cv_prog_cc_g=no
16799    CFLAGS="-g"
16800    cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806
16807 int
16808 main ()
16809 {
16810
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (ac_try="$ac_compile"
16817 case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_compile") 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } && {
16829          test -z "$ac_c_werror_flag" ||
16830          test ! -s conftest.err
16831        } && test -s conftest.$ac_objext; then
16832   ac_cv_prog_cc_g=yes
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837         CFLAGS=""
16838       cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844
16845 int
16846 main ()
16847 {
16848
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext
16854 if { (ac_try="$ac_compile"
16855 case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_compile") 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } && {
16867          test -z "$ac_c_werror_flag" ||
16868          test ! -s conftest.err
16869        } && test -s conftest.$ac_objext; then
16870   :
16871 else
16872   echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875         ac_c_werror_flag=$ac_save_c_werror_flag
16876          CFLAGS="-g"
16877          cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883
16884 int
16885 main ()
16886 {
16887
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext
16893 if { (ac_try="$ac_compile"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_compile") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } && {
16906          test -z "$ac_c_werror_flag" ||
16907          test ! -s conftest.err
16908        } && test -s conftest.$ac_objext; then
16909   ac_cv_prog_cc_g=yes
16910 else
16911   echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914
16915 fi
16916
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 fi
16919
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 fi
16922
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924    ac_c_werror_flag=$ac_save_c_werror_flag
16925 fi
16926 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16927 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16928 if test "$ac_test_CFLAGS" = set; then
16929   CFLAGS=$ac_save_CFLAGS
16930 elif test $ac_cv_prog_cc_g = yes; then
16931   if test "$GCC" = yes; then
16932     CFLAGS="-g -O2"
16933   else
16934     CFLAGS="-g"
16935   fi
16936 else
16937   if test "$GCC" = yes; then
16938     CFLAGS="-O2"
16939   else
16940     CFLAGS=
16941   fi
16942 fi
16943             fi
16944         fi
16945
16946                         case `uname -s` in
16947             AIX*)
16948
16949
16950     ac_ext=cpp
16951 ac_cpp='$CXXCPP $CPPFLAGS'
16952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16955
16956     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16957 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16958 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 int
16969 main ()
16970 {
16971
16972              #ifndef __xlC__
16973                 choke me
16974              #endif
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_compile") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && {
16994          test -z "$ac_cxx_werror_flag" ||
16995          test ! -s conftest.err
16996        } && test -s conftest.$ac_objext; then
16997   bakefile_cv_cxx_compiler___xlC__=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         bakefile_cv_cxx_compiler___xlC__=no
17003
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007
17008
17009 fi
17010 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17011 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17012     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17013         :; XLCXX=yes
17014     else
17015         :;
17016     fi
17017     ac_ext=c
17018 ac_cpp='$CPP $CPPFLAGS'
17019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17022
17023
17024
17025                 ;;
17026
17027             Darwin)
17028
17029
17030     ac_ext=cpp
17031 ac_cpp='$CXXCPP $CPPFLAGS'
17032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17035
17036     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17037 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17038 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047
17048 int
17049 main ()
17050 {
17051
17052              #ifndef __MWERKS__
17053                 choke me
17054              #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_cxx_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   bakefile_cv_cxx_compiler___MWERKS__=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         bakefile_cv_cxx_compiler___MWERKS__=no
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17091 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17092     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17093         :; MWCXX=yes
17094     else
17095         :;
17096     fi
17097     ac_ext=c
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102
17103
17104
17105
17106
17107     ac_ext=cpp
17108 ac_cpp='$CXXCPP $CPPFLAGS'
17109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17112
17113     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17114 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17115 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17116   echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118   cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124
17125 int
17126 main ()
17127 {
17128
17129              #ifndef __xlC__
17130                 choke me
17131              #endif
17132
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (ac_try="$ac_compile"
17139 case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_compile") 2>conftest.er1
17145   ac_status=$?
17146   grep -v '^ *+' conftest.er1 >conftest.err
17147   rm -f conftest.er1
17148   cat conftest.err >&5
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } && {
17151          test -z "$ac_cxx_werror_flag" ||
17152          test ! -s conftest.err
17153        } && test -s conftest.$ac_objext; then
17154   bakefile_cv_cxx_compiler___xlC__=yes
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159         bakefile_cv_cxx_compiler___xlC__=no
17160
17161 fi
17162
17163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164
17165
17166 fi
17167 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17168 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17169     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17170         :; XLCXX=yes
17171     else
17172         :;
17173     fi
17174     ac_ext=c
17175 ac_cpp='$CPP $CPPFLAGS'
17176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17179
17180
17181
17182                 ;;
17183
17184             IRIX*)
17185
17186
17187     ac_ext=cpp
17188 ac_cpp='$CXXCPP $CPPFLAGS'
17189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17192
17193     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17194 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17195 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204
17205 int
17206 main ()
17207 {
17208
17209              #ifndef _SGI_COMPILER_VERSION
17210                 choke me
17211              #endif
17212
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_compile") 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } && {
17231          test -z "$ac_cxx_werror_flag" ||
17232          test ! -s conftest.err
17233        } && test -s conftest.$ac_objext; then
17234   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17235 else
17236   echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17240
17241 fi
17242
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244
17245
17246 fi
17247 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17248 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17249     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17250         :; SGICXX=yes
17251     else
17252         :;
17253     fi
17254     ac_ext=c
17255 ac_cpp='$CPP $CPPFLAGS'
17256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17259
17260
17261
17262                 ;;
17263
17264             Linux*)
17265
17266
17267     ac_ext=cpp
17268 ac_cpp='$CXXCPP $CPPFLAGS'
17269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17272
17273     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17274 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17275 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284
17285 int
17286 main ()
17287 {
17288
17289              #ifndef __SUNPRO_CC
17290                 choke me
17291              #endif
17292
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_compile") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } && {
17311          test -z "$ac_cxx_werror_flag" ||
17312          test ! -s conftest.err
17313        } && test -s conftest.$ac_objext; then
17314   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17320
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324
17325
17326 fi
17327 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17328 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17329     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17330         :; SUNCXX=yes
17331     else
17332         :;
17333     fi
17334     ac_ext=c
17335 ac_cpp='$CPP $CPPFLAGS'
17336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339
17340
17341
17342                 ;;
17343
17344             HP-UX*)
17345
17346
17347     ac_ext=cpp
17348 ac_cpp='$CXXCPP $CPPFLAGS'
17349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17352
17353     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17354 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17355 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364
17365 int
17366 main ()
17367 {
17368
17369              #ifndef __HP_aCC
17370                 choke me
17371              #endif
17372
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_compile") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && {
17391          test -z "$ac_cxx_werror_flag" ||
17392          test ! -s conftest.err
17393        } && test -s conftest.$ac_objext; then
17394   bakefile_cv_cxx_compiler___HP_aCC=yes
17395 else
17396   echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399         bakefile_cv_cxx_compiler___HP_aCC=no
17400
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404
17405
17406 fi
17407 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17408 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17409     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17410         :; HPCXX=yes
17411     else
17412         :;
17413     fi
17414     ac_ext=c
17415 ac_cpp='$CPP $CPPFLAGS'
17416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17419
17420
17421
17422                 ;;
17423
17424             OSF1)
17425
17426
17427     ac_ext=cpp
17428 ac_cpp='$CXXCPP $CPPFLAGS'
17429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17432
17433     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17434 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17435 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444
17445 int
17446 main ()
17447 {
17448
17449              #ifndef __DECCXX
17450                 choke me
17451              #endif
17452
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (ac_try="$ac_compile"
17459 case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_compile") 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } && {
17471          test -z "$ac_cxx_werror_flag" ||
17472          test ! -s conftest.err
17473        } && test -s conftest.$ac_objext; then
17474   bakefile_cv_cxx_compiler___DECCXX=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479         bakefile_cv_cxx_compiler___DECCXX=no
17480
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484
17485
17486 fi
17487 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17488 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17489     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17490         :; COMPAQCXX=yes
17491     else
17492         :;
17493     fi
17494     ac_ext=c
17495 ac_cpp='$CPP $CPPFLAGS'
17496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17499
17500
17501
17502                 ;;
17503
17504             SunOS)
17505
17506
17507     ac_ext=cpp
17508 ac_cpp='$CXXCPP $CPPFLAGS'
17509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17512
17513     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17514 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17515 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17516   echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518   cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524
17525 int
17526 main ()
17527 {
17528
17529              #ifndef __SUNPRO_CC
17530                 choke me
17531              #endif
17532
17533   ;
17534   return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541   *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544   (eval "$ac_compile") 2>conftest.er1
17545   ac_status=$?
17546   grep -v '^ *+' conftest.er1 >conftest.err
17547   rm -f conftest.er1
17548   cat conftest.err >&5
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); } && {
17551          test -z "$ac_cxx_werror_flag" ||
17552          test ! -s conftest.err
17553        } && test -s conftest.$ac_objext; then
17554   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17555 else
17556   echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17560
17561 fi
17562
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564
17565
17566 fi
17567 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17568 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17569     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17570         :; SUNCXX=yes
17571     else
17572         :;
17573     fi
17574     ac_ext=c
17575 ac_cpp='$CPP $CPPFLAGS'
17576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17579
17580
17581
17582                 ;;
17583         esac
17584     fi
17585
17586
17587
17588 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17589     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17590 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17591    { (exit 1); exit 1; }; }
17592 fi
17593
17594 if test "x$SUNCXX" != xyes; then
17595     if test -n "$ac_tool_prefix"; then
17596   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17597 set dummy ${ac_tool_prefix}ar; ac_word=$2
17598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17600 if test "${ac_cv_prog_AR+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   if test -n "$AR"; then
17604   ac_cv_prog_AR="$AR" # Let the user override the test.
17605 else
17606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17607 for as_dir in $PATH
17608 do
17609   IFS=$as_save_IFS
17610   test -z "$as_dir" && as_dir=.
17611   for ac_exec_ext in '' $ac_executable_extensions; do
17612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17613     ac_cv_prog_AR="${ac_tool_prefix}ar"
17614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17615     break 2
17616   fi
17617 done
17618 done
17619 IFS=$as_save_IFS
17620
17621 fi
17622 fi
17623 AR=$ac_cv_prog_AR
17624 if test -n "$AR"; then
17625   { echo "$as_me:$LINENO: result: $AR" >&5
17626 echo "${ECHO_T}$AR" >&6; }
17627 else
17628   { echo "$as_me:$LINENO: result: no" >&5
17629 echo "${ECHO_T}no" >&6; }
17630 fi
17631
17632
17633 fi
17634 if test -z "$ac_cv_prog_AR"; then
17635   ac_ct_AR=$AR
17636   # Extract the first word of "ar", so it can be a program name with args.
17637 set dummy ar; ac_word=$2
17638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17640 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   if test -n "$ac_ct_AR"; then
17644   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17645 else
17646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17648 do
17649   IFS=$as_save_IFS
17650   test -z "$as_dir" && as_dir=.
17651   for ac_exec_ext in '' $ac_executable_extensions; do
17652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17653     ac_cv_prog_ac_ct_AR="ar"
17654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17655     break 2
17656   fi
17657 done
17658 done
17659 IFS=$as_save_IFS
17660
17661 fi
17662 fi
17663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17664 if test -n "$ac_ct_AR"; then
17665   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17666 echo "${ECHO_T}$ac_ct_AR" >&6; }
17667 else
17668   { echo "$as_me:$LINENO: result: no" >&5
17669 echo "${ECHO_T}no" >&6; }
17670 fi
17671
17672   if test "x$ac_ct_AR" = x; then
17673     AR=""
17674   else
17675     case $cross_compiling:$ac_tool_warned in
17676 yes:)
17677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17678 whose name does not start with the host triplet.  If you think this
17679 configuration is useful to you, please write to autoconf@gnu.org." >&5
17680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17681 whose name does not start with the host triplet.  If you think this
17682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17683 ac_tool_warned=yes ;;
17684 esac
17685     AR=$ac_ct_AR
17686   fi
17687 else
17688   AR="$ac_cv_prog_AR"
17689 fi
17690
17691     if test "x$AR" = "x" ; then
17692         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17693 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17694    { (exit 1); exit 1; }; }
17695     fi
17696 fi
17697
17698 retest_macosx_linking=no
17699
17700 #if test "$wxUSE_MAC" = 1; then
17701     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17702                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17703             # Implicitly turn on the new --with-macosx-sdk using the default
17704             # SDK which provides the behavior this option has always had.
17705             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17706                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17707 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17708                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17709 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17710                 wxUSE_MACOSX_SDK=yes
17711             fi
17712         else
17713             # Complain to user if he specified an argument to --enable-universal_binary
17714             # and also 1) specified --with-macosx-sdk using the default (yes) or
17715             # 2) specified --with-macosx-sdk using a path or 3) specified
17716             # --without-macosx-sdk (no).
17717             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17718                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17719 See \`config.log' for more details." >&5
17720 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17721 See \`config.log' for more details." >&2;}
17722    { (exit 1); exit 1; }; }
17723             else
17724                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17725                 # special-case the empty string because the below test simply
17726                 # converts "no" to the empty string anyway.
17727                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17728                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17729 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17730             fi
17731         fi
17732                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17733         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17734         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17735         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
17736         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
17737         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17738                                                                                                                 retest_macosx_linking=yes
17739
17740                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17741 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17742         bk_use_pch=no
17743     fi
17744 #fi
17745
17746 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17747     wxUSE_MACOSX_SDK=
17748 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17749     # TODO: Search for most recent SDK and use it.
17750     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17751 fi
17752
17753
17754 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17755     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17756 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17757     if ! test -d "$wxUSE_MACOSX_SDK"; then
17758         { { echo "$as_me:$LINENO: error: not found
17759 See \`config.log' for more details." >&5
17760 echo "$as_me: error: not found
17761 See \`config.log' for more details." >&2;}
17762    { (exit 1); exit 1; }; }
17763     else
17764         { echo "$as_me:$LINENO: result: exists" >&5
17765 echo "${ECHO_T}exists" >&6; }
17766     fi
17767     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17768     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17769     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17770     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17771     retest_macosx_linking=yes
17772             fi
17773
17774 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17775     wxUSE_MACOSX_VERSION_MIN=
17776 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17777     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17778         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17779 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17780
17781         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/'`
17782
17783         # If that failed, try again with the new key
17784         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17785
17786             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/'`
17787
17788         fi
17789
17790         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17791             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17792             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17793 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17794         else
17795             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17796 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17797             wxUSE_MACOSX_VERSION_MIN=
17798         fi
17799     else
17800         wxUSE_MACOSX_VERSION_MIN=
17801     fi
17802 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
17803     if test "$wxUSE_MAC" = 1; then
17804         # otherwise configure stops on leopard for universal_binary
17805         wxUSE_MACOSX_VERSION_MIN=10.4
17806     fi
17807 fi
17808
17809 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17810     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17811     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17812     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17813     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17814     retest_macosx_linking=yes
17815 fi
17816
17817 if test "x$retest_macosx_linking" = "xyes"; then
17818     ac_ext=c
17819 ac_cpp='$CPP $CPPFLAGS'
17820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17823
17824     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17825 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17826     cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h.  */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h.  */
17832
17833 int
17834 main ()
17835 {
17836
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_link") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } && {
17855          test -z "$ac_c_werror_flag" ||
17856          test ! -s conftest.err
17857        } && test -s conftest$ac_exeext &&
17858        $as_test_x conftest$ac_exeext; then
17859   { echo "$as_me:$LINENO: result: yes" >&5
17860 echo "${ECHO_T}yes" >&6; }
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17866 See \`config.log' for more details." >&5
17867 echo "$as_me: error: no.  Try a different SDK
17868 See \`config.log' for more details." >&2;}
17869    { (exit 1); exit 1; }; }; exit 1
17870 fi
17871
17872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17873       conftest$ac_exeext conftest.$ac_ext
17874     ac_ext=c
17875 ac_cpp='$CPP $CPPFLAGS'
17876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17879
17880
17881     ac_ext=cpp
17882 ac_cpp='$CXXCPP $CPPFLAGS'
17883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17886
17887     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17888 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17889     cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 int
17897 main ()
17898 {
17899
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (ac_try="$ac_link"
17906 case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_link") 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } && {
17918          test -z "$ac_cxx_werror_flag" ||
17919          test ! -s conftest.err
17920        } && test -s conftest$ac_exeext &&
17921        $as_test_x conftest$ac_exeext; then
17922   { echo "$as_me:$LINENO: result: yes" >&5
17923 echo "${ECHO_T}yes" >&6; }
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17929 See \`config.log' for more details." >&5
17930 echo "$as_me: error: no.  Try a different SDK
17931 See \`config.log' for more details." >&2;}
17932    { (exit 1); exit 1; }; }; exit 1
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17936       conftest$ac_exeext conftest.$ac_ext
17937     ac_ext=c
17938 ac_cpp='$CPP $CPPFLAGS'
17939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17942
17943 fi
17944
17945
17946 case "${host}" in
17947
17948                 *-*-darwin* )
17949         INSTALL_PROGRAM="cp -fp"
17950         INSTALL_DATA="cp -fp"
17951         ;;
17952     *)
17953         ;;
17954 esac
17955
17956
17957 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17958     CXXFLAGS="-qunique $CXXFLAGS"
17959 fi
17960
17961 case "${host}" in
17962   powerpc-*-darwin* )
17963     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17964 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17965     cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 int
17973 main ()
17974 {
17975 #ifndef __POWERPC__
17976         choke me for lack of PowerPC
17977 #endif
17978
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_compile") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } && {
17997          test -z "$ac_c_werror_flag" ||
17998          test ! -s conftest.err
17999        } && test -s conftest.$ac_objext; then
18000   { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18002 else
18003   echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006         { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18008         cat >>confdefs.h <<\_ACEOF
18009 #define __POWERPC__ 1
18010 _ACEOF
18011
18012
18013 fi
18014
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016   ;;
18017 esac
18018
18019 case "${host}" in
18020   *-*-darwin* )
18021     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18022 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18023     cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029 #include <CoreFoundation/CFBase.h>
18030
18031 int
18032 main ()
18033 {
18034
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (ac_try="$ac_compile"
18041 case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_compile") 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } && {
18053          test -z "$ac_c_werror_flag" ||
18054          test ! -s conftest.err
18055        } && test -s conftest.$ac_objext; then
18056   { echo "$as_me:$LINENO: result: yes" >&5
18057 echo "${ECHO_T}yes" >&6; }
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062         { echo "$as_me:$LINENO: result: no" >&5
18063 echo "${ECHO_T}no" >&6; }
18064         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18065 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18066         cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072 #define __CF_USE_FRAMEWORK_INCLUDES__
18073 #include <CoreFoundation/CFBase.h>
18074
18075 int
18076 main ()
18077 {
18078
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_compile") 2>conftest.er1
18091   ac_status=$?
18092   grep -v '^ *+' conftest.er1 >conftest.err
18093   rm -f conftest.er1
18094   cat conftest.err >&5
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } && {
18097          test -z "$ac_c_werror_flag" ||
18098          test ! -s conftest.err
18099        } && test -s conftest.$ac_objext; then
18100   { echo "$as_me:$LINENO: result: yes" >&5
18101 echo "${ECHO_T}yes" >&6; }
18102                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18108 See \`config.log' for more details." >&5
18109 echo "$as_me: error: no.  CoreFoundation not available.
18110 See \`config.log' for more details." >&2;}
18111    { (exit 1); exit 1; }; }
18112
18113 fi
18114
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116
18117
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121   ;;
18122 esac
18123
18124 wants_win32=0
18125 doesnt_want_win32=0
18126 case "${host}" in
18127   *-*-cygwin*)
18128       if test "$wxUSE_MSW" = 1 ; then
18129         wants_win32=1
18130       else
18131                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18132 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18133 if test "${wx_cv_nocygwin+set}" = set; then
18134   echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18136
18137                 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143
18144 int
18145 main ()
18146 {
18147
18148                         #ifdef __MINGW32__
18149                             choke me
18150                         #endif
18151
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext
18157 if { (ac_try="$ac_compile"
18158 case "(($ac_try" in
18159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160   *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163   (eval "$ac_compile") 2>conftest.er1
18164   ac_status=$?
18165   grep -v '^ *+' conftest.er1 >conftest.err
18166   rm -f conftest.er1
18167   cat conftest.err >&5
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); } && {
18170          test -z "$ac_c_werror_flag" ||
18171          test ! -s conftest.err
18172        } && test -s conftest.$ac_objext; then
18173   wx_cv_nocygwin=no
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178         wx_cv_nocygwin=yes
18179
18180 fi
18181
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183
18184
18185 fi
18186 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18187 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18188
18189         if test "$wx_cv_nocygwin" = "yes"; then
18190             wants_win32=1
18191         else
18192             doesnt_want_win32=1
18193         fi
18194       fi
18195       if test "$wants_win32" = 1 ; then
18196         BAKEFILE_FORCE_PLATFORM=win32
18197       fi
18198   ;;
18199   *-*-mingw*)
18200       wants_win32=1
18201   ;;
18202 esac
18203
18204 if test "$wxUSE_WINE" = "yes"; then
18205     wants_win32=1
18206     LDFLAGS_GUI="-mwindows"
18207 fi
18208
18209 if test "$wants_win32" = 1 ; then
18210     USE_UNIX=0
18211     USE_WIN32=1
18212     cat >>confdefs.h <<\_ACEOF
18213 #define __WIN32__ 1
18214 _ACEOF
18215
18216     cat >>confdefs.h <<\_ACEOF
18217 #define __WIN95__ 1
18218 _ACEOF
18219
18220     cat >>confdefs.h <<\_ACEOF
18221 #define __WINDOWS__ 1
18222 _ACEOF
18223
18224     cat >>confdefs.h <<\_ACEOF
18225 #define __GNUWIN32__ 1
18226 _ACEOF
18227
18228     cat >>confdefs.h <<\_ACEOF
18229 #define STRICT 1
18230 _ACEOF
18231
18232 fi
18233 if test "$doesnt_want_win32" = 1 ; then
18234     USE_UNIX=1
18235     USE_WIN32=0
18236 fi
18237
18238 if test "$USE_UNIX" = 1 ; then
18239     wxUSE_UNIX=yes
18240     cat >>confdefs.h <<\_ACEOF
18241 #define __UNIX__ 1
18242 _ACEOF
18243
18244 fi
18245
18246 case "${host}" in
18247   *-pc-os2_emx | *-pc-os2-emx )
18248                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18249                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18250 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18251 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18252   echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254   ac_check_lib_save_LIBS=$LIBS
18255 LIBS="-lcExt  $LIBS"
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262
18263 /* Override any GCC internal prototype to avoid an error.
18264    Use char because int might match the return type of a GCC
18265    builtin and then its argument prototype would still apply.  */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char drand48 ();
18270 int
18271 main ()
18272 {
18273 return drand48 ();
18274   ;
18275   return 0;
18276 }
18277 _ACEOF
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (ac_try="$ac_link"
18280 case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_link") 2>conftest.er1
18286   ac_status=$?
18287   grep -v '^ *+' conftest.er1 >conftest.err
18288   rm -f conftest.er1
18289   cat conftest.err >&5
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } && {
18292          test -z "$ac_c_werror_flag" ||
18293          test ! -s conftest.err
18294        } && test -s conftest$ac_exeext &&
18295        $as_test_x conftest$ac_exeext; then
18296   ac_cv_lib_cExt_drand48=yes
18297 else
18298   echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301         ac_cv_lib_cExt_drand48=no
18302 fi
18303
18304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18305       conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18307 fi
18308 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18309 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18310 if test $ac_cv_lib_cExt_drand48 = yes; then
18311   LIBS="$LIBS -lcExt"
18312 fi
18313
18314       else
18315                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18316       fi
18317                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18318 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18319 if test "${wx_cv_gccversion+set}" = set; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322
18323           if test "$cross_compiling" = yes; then
18324                 wx_cv_gccversion="EMX2"
18325
18326 else
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333
18334                   #include <stdio.h>
18335
18336                   int main()
18337                   {
18338                       FILE *f=fopen("conftestval", "w");
18339                       if (!f) exit(1);
18340                       fprintf(f,
18341                   #if (__GNUC__ < 3)
18342                               "EMX2"
18343                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18344                               "EMX3"
18345                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18346                               "Innotek5"
18347                   #else
18348                               "Innotek6"
18349                   #endif
18350                       );
18351                       exit(0);
18352                   }
18353
18354 _ACEOF
18355 rm -f conftest$ac_exeext
18356 if { (ac_try="$ac_link"
18357 case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_link") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18366   { (case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_try") 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; }; then
18375   wx_cv_gccversion=`cat conftestval`
18376 else
18377   echo "$as_me: program exited with status $ac_status" >&5
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ( exit $ac_status )
18382 wx_cv_gccversion="EMX2"
18383 fi
18384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18385 fi
18386
18387
18388
18389 fi
18390 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18391 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18392       if test "$wx_cv_gccversion" = "EMX2"; then
18393           LIBS="$LIBS -lstdcpp"
18394           LDFLAGS="$LDFLAGS -Zsysv-signals"
18395       else
18396           if test "$wx_cv_gccversion" = "EMX3"; then
18397               LIBS="$LIBS -lstdcxx -lgcc"
18398               LDFLAGS="$LDFLAGS -Zsysv-signals"
18399           else
18400               LIBS="$LIBS -lstdc++"
18401           fi
18402       fi
18403       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18404         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18405 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18406         wxUSE_OMF=yes
18407         enable_omf=yes
18408       fi
18409         ;;
18410   *)
18411
18412       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18413 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18414 if test "${ac_cv_string_strcasecmp+set}" = set; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417
18418           cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424
18425               #include <string.h>
18426
18427 int
18428 main ()
18429 {
18430
18431                   strcasecmp("foo", "bar");
18432
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441   *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444   (eval "$ac_link") 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } && {
18451          test -z "$ac_c_werror_flag" ||
18452          test ! -s conftest.err
18453        } && test -s conftest$ac_exeext &&
18454        $as_test_x conftest$ac_exeext; then
18455   ac_cv_string_strcasecmp=yes
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460         ac_cv_string_strcasecmp=no
18461
18462 fi
18463
18464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18465       conftest$ac_exeext conftest.$ac_ext
18466
18467 fi
18468 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18469 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18470
18471       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18472           cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_STRCASECMP_IN_STRING_H 1
18474 _ACEOF
18475
18476       else
18477           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18478 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18479 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482
18483               cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490                   #include <strings.h>
18491
18492 int
18493 main ()
18494 {
18495
18496                       strcasecmp("foo", "bar");
18497
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_link") 2>conftest.er1
18510   ac_status=$?
18511   grep -v '^ *+' conftest.er1 >conftest.err
18512   rm -f conftest.er1
18513   cat conftest.err >&5
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } && {
18516          test -z "$ac_c_werror_flag" ||
18517          test ! -s conftest.err
18518        } && test -s conftest$ac_exeext &&
18519        $as_test_x conftest$ac_exeext; then
18520   ac_cv_strings_strcasecmp=yes
18521 else
18522   echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525         ac_cv_strings_strcasecmp=no
18526
18527 fi
18528
18529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18530       conftest$ac_exeext conftest.$ac_ext
18531
18532 fi
18533 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18534 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18535
18536           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18537               cat >>confdefs.h <<\_ACEOF
18538 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18539 _ACEOF
18540
18541           else
18542               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18543 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18544    { (exit 1); exit 1; }; }
18545           fi
18546       fi
18547
18548         ;;
18549 esac
18550
18551
18552 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18553 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18554 if test "${ac_cv_header_stdc+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 #include <stdlib.h>
18564 #include <stdarg.h>
18565 #include <string.h>
18566 #include <float.h>
18567
18568 int
18569 main ()
18570 {
18571
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext
18577 if { (ac_try="$ac_compile"
18578 case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_compile") 2>conftest.er1
18584   ac_status=$?
18585   grep -v '^ *+' conftest.er1 >conftest.err
18586   rm -f conftest.er1
18587   cat conftest.err >&5
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); } && {
18590          test -z "$ac_c_werror_flag" ||
18591          test ! -s conftest.err
18592        } && test -s conftest.$ac_objext; then
18593   ac_cv_header_stdc=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598         ac_cv_header_stdc=no
18599 fi
18600
18601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602
18603 if test $ac_cv_header_stdc = yes; then
18604   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18605   cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611 #include <string.h>
18612
18613 _ACEOF
18614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18615   $EGREP "memchr" >/dev/null 2>&1; then
18616   :
18617 else
18618   ac_cv_header_stdc=no
18619 fi
18620 rm -f conftest*
18621
18622 fi
18623
18624 if test $ac_cv_header_stdc = yes; then
18625   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 #include <stdlib.h>
18633
18634 _ACEOF
18635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18636   $EGREP "free" >/dev/null 2>&1; then
18637   :
18638 else
18639   ac_cv_header_stdc=no
18640 fi
18641 rm -f conftest*
18642
18643 fi
18644
18645 if test $ac_cv_header_stdc = yes; then
18646   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18647   if test "$cross_compiling" = yes; then
18648   :
18649 else
18650   cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656 #include <ctype.h>
18657 #include <stdlib.h>
18658 #if ((' ' & 0x0FF) == 0x020)
18659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18661 #else
18662 # define ISLOWER(c) \
18663                    (('a' <= (c) && (c) <= 'i') \
18664                      || ('j' <= (c) && (c) <= 'r') \
18665                      || ('s' <= (c) && (c) <= 'z'))
18666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18667 #endif
18668
18669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18670 int
18671 main ()
18672 {
18673   int i;
18674   for (i = 0; i < 256; i++)
18675     if (XOR (islower (i), ISLOWER (i))
18676         || toupper (i) != TOUPPER (i))
18677       return 2;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685   *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688   (eval "$ac_link") 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18692   { (case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_try") 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); }; }; then
18701   :
18702 else
18703   echo "$as_me: program exited with status $ac_status" >&5
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 ( exit $ac_status )
18708 ac_cv_header_stdc=no
18709 fi
18710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18711 fi
18712
18713
18714 fi
18715 fi
18716 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18717 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18718 if test $ac_cv_header_stdc = yes; then
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define STDC_HEADERS 1
18722 _ACEOF
18723
18724 fi
18725
18726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18737                   inttypes.h stdint.h unistd.h
18738 do
18739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751 $ac_includes_default
18752
18753 #include <$ac_header>
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762   (eval "$ac_compile") 2>conftest.er1
18763   ac_status=$?
18764   grep -v '^ *+' conftest.er1 >conftest.err
18765   rm -f conftest.er1
18766   cat conftest.err >&5
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); } && {
18769          test -z "$ac_c_werror_flag" ||
18770          test ! -s conftest.err
18771        } && test -s conftest.$ac_objext; then
18772   eval "$as_ac_Header=yes"
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777         eval "$as_ac_Header=no"
18778 fi
18779
18780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 fi
18782 ac_res=`eval echo '${'$as_ac_Header'}'`
18783                { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18786   cat >>confdefs.h <<_ACEOF
18787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18788 _ACEOF
18789
18790 fi
18791
18792 done
18793
18794
18795
18796
18797 for ac_header in langinfo.h wchar.h
18798 do
18799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h.  */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h.  */
18811 $ac_includes_default
18812
18813 #include <$ac_header>
18814 _ACEOF
18815 rm -f conftest.$ac_objext
18816 if { (ac_try="$ac_compile"
18817 case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_compile") 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } && {
18829          test -z "$ac_c_werror_flag" ||
18830          test ! -s conftest.err
18831        } && test -s conftest.$ac_objext; then
18832   eval "$as_ac_Header=yes"
18833 else
18834   echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837         eval "$as_ac_Header=no"
18838 fi
18839
18840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18841 fi
18842 ac_res=`eval echo '${'$as_ac_Header'}'`
18843                { echo "$as_me:$LINENO: result: $ac_res" >&5
18844 echo "${ECHO_T}$ac_res" >&6; }
18845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18846   cat >>confdefs.h <<_ACEOF
18847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18848 _ACEOF
18849
18850 fi
18851
18852 done
18853
18854
18855 if test "$ac_cv_header_wchar_h" != "yes"; then
18856
18857 for ac_header in wcstr.h
18858 do
18859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871 $ac_includes_default
18872
18873 #include <$ac_header>
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_compile") 2>conftest.er1
18883   ac_status=$?
18884   grep -v '^ *+' conftest.er1 >conftest.err
18885   rm -f conftest.er1
18886   cat conftest.err >&5
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } && {
18889          test -z "$ac_c_werror_flag" ||
18890          test ! -s conftest.err
18891        } && test -s conftest.$ac_objext; then
18892   eval "$as_ac_Header=yes"
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897         eval "$as_ac_Header=no"
18898 fi
18899
18900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18901 fi
18902 ac_res=`eval echo '${'$as_ac_Header'}'`
18903                { echo "$as_me:$LINENO: result: $ac_res" >&5
18904 echo "${ECHO_T}$ac_res" >&6; }
18905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18906   cat >>confdefs.h <<_ACEOF
18907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18908 _ACEOF
18909
18910 fi
18911
18912 done
18913
18914 fi
18915
18916 case "${host}" in
18917   *-pc-os2_emx | *-pc-os2-emx )
18918                   if test $ac_cv_header_langinfo_h = "yes" \
18919                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18920                      -o "$wx_cv_gccversion" = "EMX3" \
18921                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18922           LIBS="$LIBS -lintl"
18923       fi
18924   ;;
18925 esac
18926
18927 if test "$USE_UNIX" = 1 ; then
18928
18929 for ac_header in sys/select.h
18930 do
18931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 $ac_includes_default
18944
18945 #include <$ac_header>
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_compile") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest.$ac_objext; then
18964   eval "$as_ac_Header=yes"
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         eval "$as_ac_Header=no"
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 fi
18974 ac_res=`eval echo '${'$as_ac_Header'}'`
18975                { echo "$as_me:$LINENO: result: $ac_res" >&5
18976 echo "${ECHO_T}$ac_res" >&6; }
18977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18978   cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18980 _ACEOF
18981
18982 fi
18983
18984 done
18985
18986 fi
18987
18988
18989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18991 if test "${ac_cv_c_const+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 int
19002 main ()
19003 {
19004 /* FIXME: Include the comments suggested by Paul. */
19005 #ifndef __cplusplus
19006   /* Ultrix mips cc rejects this.  */
19007   typedef int charset[2];
19008   const charset cs;
19009   /* SunOS 4.1.1 cc rejects this.  */
19010   char const *const *pcpcc;
19011   char **ppc;
19012   /* NEC SVR4.0.2 mips cc rejects this.  */
19013   struct point {int x, y;};
19014   static struct point const zero = {0,0};
19015   /* AIX XL C 1.02.0.0 rejects this.
19016      It does not let you subtract one const X* pointer from another in
19017      an arm of an if-expression whose if-part is not a constant
19018      expression */
19019   const char *g = "string";
19020   pcpcc = &g + (g ? g-g : 0);
19021   /* HPUX 7.0 cc rejects these. */
19022   ++pcpcc;
19023   ppc = (char**) pcpcc;
19024   pcpcc = (char const *const *) ppc;
19025   { /* SCO 3.2v4 cc rejects this.  */
19026     char *t;
19027     char const *s = 0 ? (char *) 0 : (char const *) 0;
19028
19029     *t++ = 0;
19030     if (s) return 0;
19031   }
19032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19033     int x[] = {25, 17};
19034     const int *foo = &x[0];
19035     ++foo;
19036   }
19037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19038     typedef const int *iptr;
19039     iptr p = 0;
19040     ++p;
19041   }
19042   { /* AIX XL C 1.02.0.0 rejects this saying
19043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19044     struct s { int j; const int *ap[3]; };
19045     struct s *b; b->j = 5;
19046   }
19047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19048     const int foo = 10;
19049     if (!foo) return 0;
19050   }
19051   return !cs[0] && !zero.x;
19052 #endif
19053
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (ac_try="$ac_compile"
19060 case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_compile") 2>conftest.er1
19066   ac_status=$?
19067   grep -v '^ *+' conftest.er1 >conftest.err
19068   rm -f conftest.er1
19069   cat conftest.err >&5
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } && {
19072          test -z "$ac_c_werror_flag" ||
19073          test ! -s conftest.err
19074        } && test -s conftest.$ac_objext; then
19075   ac_cv_c_const=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080         ac_cv_c_const=no
19081 fi
19082
19083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084 fi
19085 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19086 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19087 if test $ac_cv_c_const = no; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define const
19091 _ACEOF
19092
19093 fi
19094
19095 { echo "$as_me:$LINENO: checking for inline" >&5
19096 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19097 if test "${ac_cv_c_inline+set}" = set; then
19098   echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100   ac_cv_c_inline=no
19101 for ac_kw in inline __inline__ __inline; do
19102   cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108 #ifndef __cplusplus
19109 typedef int foo_t;
19110 static $ac_kw foo_t static_foo () {return 0; }
19111 $ac_kw foo_t foo () {return 0; }
19112 #endif
19113
19114 _ACEOF
19115 rm -f conftest.$ac_objext
19116 if { (ac_try="$ac_compile"
19117 case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_compile") 2>conftest.er1
19123   ac_status=$?
19124   grep -v '^ *+' conftest.er1 >conftest.err
19125   rm -f conftest.er1
19126   cat conftest.err >&5
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); } && {
19129          test -z "$ac_c_werror_flag" ||
19130          test ! -s conftest.err
19131        } && test -s conftest.$ac_objext; then
19132   ac_cv_c_inline=$ac_kw
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137
19138 fi
19139
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141   test "$ac_cv_c_inline" != no && break
19142 done
19143
19144 fi
19145 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19146 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19147
19148
19149 case $ac_cv_c_inline in
19150   inline | yes) ;;
19151   *)
19152     case $ac_cv_c_inline in
19153       no) ac_val=;;
19154       *) ac_val=$ac_cv_c_inline;;
19155     esac
19156     cat >>confdefs.h <<_ACEOF
19157 #ifndef __cplusplus
19158 #define inline $ac_val
19159 #endif
19160 _ACEOF
19161     ;;
19162 esac
19163
19164
19165 { echo "$as_me:$LINENO: checking for short" >&5
19166 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19167 if test "${ac_cv_type_short+set}" = set; then
19168   echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170   cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 $ac_includes_default
19177 typedef short ac__type_new_;
19178 int
19179 main ()
19180 {
19181 if ((ac__type_new_ *) 0)
19182   return 0;
19183 if (sizeof (ac__type_new_))
19184   return 0;
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193   *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196   (eval "$ac_compile") 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } && {
19203          test -z "$ac_c_werror_flag" ||
19204          test ! -s conftest.err
19205        } && test -s conftest.$ac_objext; then
19206   ac_cv_type_short=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211         ac_cv_type_short=no
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 fi
19216 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19217 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19218
19219 # The cast to long int works around a bug in the HP C Compiler
19220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19222 # This bug is HP SR number 8606223364.
19223 { echo "$as_me:$LINENO: checking size of short" >&5
19224 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19225 if test "${ac_cv_sizeof_short+set}" = set; then
19226   echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228   if test "$cross_compiling" = yes; then
19229   # Depending upon the size, compute the lo and hi bounds.
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236 $ac_includes_default
19237    typedef short ac__type_sizeof_;
19238 int
19239 main ()
19240 {
19241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19242 test_array [0] = 0
19243
19244   ;
19245   return 0;
19246 }
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   ac_lo=0 ac_mid=0
19266   while :; do
19267     cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 $ac_includes_default
19274    typedef short ac__type_sizeof_;
19275 int
19276 main ()
19277 {
19278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19279 test_array [0] = 0
19280
19281   ;
19282   return 0;
19283 }
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   ac_hi=$ac_mid; break
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         ac_lo=`expr $ac_mid + 1`
19308                         if test $ac_lo -le $ac_mid; then
19309                           ac_lo= ac_hi=
19310                           break
19311                         fi
19312                         ac_mid=`expr 2 '*' $ac_mid + 1`
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316   done
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321         cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327 $ac_includes_default
19328    typedef short ac__type_sizeof_;
19329 int
19330 main ()
19331 {
19332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19333 test_array [0] = 0
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_compile") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest.$ac_objext; then
19356   ac_hi=-1 ac_mid=-1
19357   while :; do
19358     cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 $ac_includes_default
19365    typedef short ac__type_sizeof_;
19366 int
19367 main ()
19368 {
19369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19370 test_array [0] = 0
19371
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_compile") 2>conftest.er1
19384   ac_status=$?
19385   grep -v '^ *+' conftest.er1 >conftest.err
19386   rm -f conftest.er1
19387   cat conftest.err >&5
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); } && {
19390          test -z "$ac_c_werror_flag" ||
19391          test ! -s conftest.err
19392        } && test -s conftest.$ac_objext; then
19393   ac_lo=$ac_mid; break
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398         ac_hi=`expr '(' $ac_mid ')' - 1`
19399                         if test $ac_mid -le $ac_hi; then
19400                           ac_lo= ac_hi=
19401                           break
19402                         fi
19403                         ac_mid=`expr 2 '*' $ac_mid`
19404 fi
19405
19406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407   done
19408 else
19409   echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412         ac_lo= ac_hi=
19413 fi
19414
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19416 fi
19417
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 # Binary search between lo and hi bounds.
19420 while test "x$ac_lo" != "x$ac_hi"; do
19421   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19422   cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428 $ac_includes_default
19429    typedef short ac__type_sizeof_;
19430 int
19431 main ()
19432 {
19433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19434 test_array [0] = 0
19435
19436   ;
19437   return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (ac_try="$ac_compile"
19442 case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_compile") 2>conftest.er1
19448   ac_status=$?
19449   grep -v '^ *+' conftest.er1 >conftest.err
19450   rm -f conftest.er1
19451   cat conftest.err >&5
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } && {
19454          test -z "$ac_c_werror_flag" ||
19455          test ! -s conftest.err
19456        } && test -s conftest.$ac_objext; then
19457   ac_hi=$ac_mid
19458 else
19459   echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462         ac_lo=`expr '(' $ac_mid ')' + 1`
19463 fi
19464
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 done
19467 case $ac_lo in
19468 ?*) ac_cv_sizeof_short=$ac_lo;;
19469 '') if test "$ac_cv_type_short" = yes; then
19470      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19471 See \`config.log' for more details." >&5
19472 echo "$as_me: error: cannot compute sizeof (short)
19473 See \`config.log' for more details." >&2;}
19474    { (exit 77); exit 77; }; }
19475    else
19476      ac_cv_sizeof_short=0
19477    fi ;;
19478 esac
19479 else
19480   cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486 $ac_includes_default
19487    typedef short ac__type_sizeof_;
19488 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19489 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19490 #include <stdio.h>
19491 #include <stdlib.h>
19492 int
19493 main ()
19494 {
19495
19496   FILE *f = fopen ("conftest.val", "w");
19497   if (! f)
19498     return 1;
19499   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19500     {
19501       long int i = longval ();
19502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19503         return 1;
19504       fprintf (f, "%ld\n", i);
19505     }
19506   else
19507     {
19508       unsigned long int i = ulongval ();
19509       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19510         return 1;
19511       fprintf (f, "%lu\n", i);
19512     }
19513   return ferror (f) || fclose (f) != 0;
19514
19515   ;
19516   return 0;
19517 }
19518 _ACEOF
19519 rm -f conftest$ac_exeext
19520 if { (ac_try="$ac_link"
19521 case "(($ac_try" in
19522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523   *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526   (eval "$ac_link") 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   ac_cv_sizeof_short=`cat conftest.val`
19540 else
19541   echo "$as_me: program exited with status $ac_status" >&5
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ( exit $ac_status )
19546 if test "$ac_cv_type_short" = yes; then
19547      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19548 See \`config.log' for more details." >&5
19549 echo "$as_me: error: cannot compute sizeof (short)
19550 See \`config.log' for more details." >&2;}
19551    { (exit 77); exit 77; }; }
19552    else
19553      ac_cv_sizeof_short=0
19554    fi
19555 fi
19556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19557 fi
19558 rm -f conftest.val
19559 fi
19560 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19561 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19562
19563
19564
19565 cat >>confdefs.h <<_ACEOF
19566 #define SIZEOF_SHORT $ac_cv_sizeof_short
19567 _ACEOF
19568
19569
19570 { echo "$as_me:$LINENO: checking for void *" >&5
19571 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19572 if test "${ac_cv_type_void_p+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581 $ac_includes_default
19582 typedef void * ac__type_new_;
19583 int
19584 main ()
19585 {
19586 if ((ac__type_new_ *) 0)
19587   return 0;
19588 if (sizeof (ac__type_new_))
19589   return 0;
19590   ;
19591   return 0;
19592 }
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_compile") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } && {
19608          test -z "$ac_c_werror_flag" ||
19609          test ! -s conftest.err
19610        } && test -s conftest.$ac_objext; then
19611   ac_cv_type_void_p=yes
19612 else
19613   echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616         ac_cv_type_void_p=no
19617 fi
19618
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19620 fi
19621 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19622 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19623
19624 # The cast to long int works around a bug in the HP C Compiler
19625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19627 # This bug is HP SR number 8606223364.
19628 { echo "$as_me:$LINENO: checking size of void *" >&5
19629 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19630 if test "${ac_cv_sizeof_void_p+set}" = set; then
19631   echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633   if test "$cross_compiling" = yes; then
19634   # Depending upon the size, compute the lo and hi bounds.
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 $ac_includes_default
19642    typedef void * ac__type_sizeof_;
19643 int
19644 main ()
19645 {
19646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19647 test_array [0] = 0
19648
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_compile") 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } && {
19667          test -z "$ac_c_werror_flag" ||
19668          test ! -s conftest.err
19669        } && test -s conftest.$ac_objext; then
19670   ac_lo=0 ac_mid=0
19671   while :; do
19672     cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h.  */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h.  */
19678 $ac_includes_default
19679    typedef void * ac__type_sizeof_;
19680 int
19681 main ()
19682 {
19683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19684 test_array [0] = 0
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697   (eval "$ac_compile") 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } && {
19704          test -z "$ac_c_werror_flag" ||
19705          test ! -s conftest.err
19706        } && test -s conftest.$ac_objext; then
19707   ac_hi=$ac_mid; break
19708 else
19709   echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712         ac_lo=`expr $ac_mid + 1`
19713                         if test $ac_lo -le $ac_mid; then
19714                           ac_lo= ac_hi=
19715                           break
19716                         fi
19717                         ac_mid=`expr 2 '*' $ac_mid + 1`
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721   done
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h.  */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h.  */
19732 $ac_includes_default
19733    typedef void * ac__type_sizeof_;
19734 int
19735 main ()
19736 {
19737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19738 test_array [0] = 0
19739
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   ac_hi=-1 ac_mid=-1
19762   while :; do
19763     cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 $ac_includes_default
19770    typedef void * ac__type_sizeof_;
19771 int
19772 main ()
19773 {
19774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19775 test_array [0] = 0
19776
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_compile") 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } && {
19795          test -z "$ac_c_werror_flag" ||
19796          test ! -s conftest.err
19797        } && test -s conftest.$ac_objext; then
19798   ac_lo=$ac_mid; break
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803         ac_hi=`expr '(' $ac_mid ')' - 1`
19804                         if test $ac_mid -le $ac_hi; then
19805                           ac_lo= ac_hi=
19806                           break
19807                         fi
19808                         ac_mid=`expr 2 '*' $ac_mid`
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812   done
19813 else
19814   echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817         ac_lo= ac_hi=
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821 fi
19822
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824 # Binary search between lo and hi bounds.
19825 while test "x$ac_lo" != "x$ac_hi"; do
19826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19827   cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h.  */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h.  */
19833 $ac_includes_default
19834    typedef void * ac__type_sizeof_;
19835 int
19836 main ()
19837 {
19838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19839 test_array [0] = 0
19840
19841   ;
19842   return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_compile") 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } && {
19859          test -z "$ac_c_werror_flag" ||
19860          test ! -s conftest.err
19861        } && test -s conftest.$ac_objext; then
19862   ac_hi=$ac_mid
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867         ac_lo=`expr '(' $ac_mid ')' + 1`
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 done
19872 case $ac_lo in
19873 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19874 '') if test "$ac_cv_type_void_p" = yes; then
19875      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19876 See \`config.log' for more details." >&5
19877 echo "$as_me: error: cannot compute sizeof (void *)
19878 See \`config.log' for more details." >&2;}
19879    { (exit 77); exit 77; }; }
19880    else
19881      ac_cv_sizeof_void_p=0
19882    fi ;;
19883 esac
19884 else
19885   cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 $ac_includes_default
19892    typedef void * ac__type_sizeof_;
19893 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19894 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19895 #include <stdio.h>
19896 #include <stdlib.h>
19897 int
19898 main ()
19899 {
19900
19901   FILE *f = fopen ("conftest.val", "w");
19902   if (! f)
19903     return 1;
19904   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19905     {
19906       long int i = longval ();
19907       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19908         return 1;
19909       fprintf (f, "%ld\n", i);
19910     }
19911   else
19912     {
19913       unsigned long int i = ulongval ();
19914       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19915         return 1;
19916       fprintf (f, "%lu\n", i);
19917     }
19918   return ferror (f) || fclose (f) != 0;
19919
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931   (eval "$ac_link") 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19935   { (case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_try") 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_cv_sizeof_void_p=`cat conftest.val`
19945 else
19946   echo "$as_me: program exited with status $ac_status" >&5
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 ( exit $ac_status )
19951 if test "$ac_cv_type_void_p" = yes; then
19952      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19953 See \`config.log' for more details." >&5
19954 echo "$as_me: error: cannot compute sizeof (void *)
19955 See \`config.log' for more details." >&2;}
19956    { (exit 77); exit 77; }; }
19957    else
19958      ac_cv_sizeof_void_p=0
19959    fi
19960 fi
19961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19962 fi
19963 rm -f conftest.val
19964 fi
19965 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19966 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19967
19968
19969
19970 cat >>confdefs.h <<_ACEOF
19971 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19972 _ACEOF
19973
19974
19975 { echo "$as_me:$LINENO: checking for int" >&5
19976 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19977 if test "${ac_cv_type_int+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 $ac_includes_default
19987 typedef int ac__type_new_;
19988 int
19989 main ()
19990 {
19991 if ((ac__type_new_ *) 0)
19992   return 0;
19993 if (sizeof (ac__type_new_))
19994   return 0;
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_compile") 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } && {
20013          test -z "$ac_c_werror_flag" ||
20014          test ! -s conftest.err
20015        } && test -s conftest.$ac_objext; then
20016   ac_cv_type_int=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         ac_cv_type_int=no
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 fi
20026 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20027 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20028
20029 # The cast to long int works around a bug in the HP C Compiler
20030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20032 # This bug is HP SR number 8606223364.
20033 { echo "$as_me:$LINENO: checking size of int" >&5
20034 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20035 if test "${ac_cv_sizeof_int+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   if test "$cross_compiling" = yes; then
20039   # Depending upon the size, compute the lo and hi bounds.
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 $ac_includes_default
20047    typedef int ac__type_sizeof_;
20048 int
20049 main ()
20050 {
20051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20052 test_array [0] = 0
20053
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } && {
20072          test -z "$ac_c_werror_flag" ||
20073          test ! -s conftest.err
20074        } && test -s conftest.$ac_objext; then
20075   ac_lo=0 ac_mid=0
20076   while :; do
20077     cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 $ac_includes_default
20084    typedef int ac__type_sizeof_;
20085 int
20086 main ()
20087 {
20088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20089 test_array [0] = 0
20090
20091   ;
20092   return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext
20096 if { (ac_try="$ac_compile"
20097 case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102   (eval "$ac_compile") 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } && {
20109          test -z "$ac_c_werror_flag" ||
20110          test ! -s conftest.err
20111        } && test -s conftest.$ac_objext; then
20112   ac_hi=$ac_mid; break
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117         ac_lo=`expr $ac_mid + 1`
20118                         if test $ac_lo -le $ac_mid; then
20119                           ac_lo= ac_hi=
20120                           break
20121                         fi
20122                         ac_mid=`expr 2 '*' $ac_mid + 1`
20123 fi
20124
20125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126   done
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131         cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 $ac_includes_default
20138    typedef int ac__type_sizeof_;
20139 int
20140 main ()
20141 {
20142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20143 test_array [0] = 0
20144
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } && {
20163          test -z "$ac_c_werror_flag" ||
20164          test ! -s conftest.err
20165        } && test -s conftest.$ac_objext; then
20166   ac_hi=-1 ac_mid=-1
20167   while :; do
20168     cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 $ac_includes_default
20175    typedef int ac__type_sizeof_;
20176 int
20177 main ()
20178 {
20179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20180 test_array [0] = 0
20181
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext
20187 if { (ac_try="$ac_compile"
20188 case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_compile") 2>conftest.er1
20194   ac_status=$?
20195   grep -v '^ *+' conftest.er1 >conftest.err
20196   rm -f conftest.er1
20197   cat conftest.err >&5
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } && {
20200          test -z "$ac_c_werror_flag" ||
20201          test ! -s conftest.err
20202        } && test -s conftest.$ac_objext; then
20203   ac_lo=$ac_mid; break
20204 else
20205   echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208         ac_hi=`expr '(' $ac_mid ')' - 1`
20209                         if test $ac_mid -le $ac_hi; then
20210                           ac_lo= ac_hi=
20211                           break
20212                         fi
20213                         ac_mid=`expr 2 '*' $ac_mid`
20214 fi
20215
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217   done
20218 else
20219   echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222         ac_lo= ac_hi=
20223 fi
20224
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 fi
20227
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 # Binary search between lo and hi bounds.
20230 while test "x$ac_lo" != "x$ac_hi"; do
20231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 $ac_includes_default
20239    typedef int ac__type_sizeof_;
20240 int
20241 main ()
20242 {
20243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20244 test_array [0] = 0
20245
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257   (eval "$ac_compile") 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } && {
20264          test -z "$ac_c_werror_flag" ||
20265          test ! -s conftest.err
20266        } && test -s conftest.$ac_objext; then
20267   ac_hi=$ac_mid
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272         ac_lo=`expr '(' $ac_mid ')' + 1`
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 done
20277 case $ac_lo in
20278 ?*) ac_cv_sizeof_int=$ac_lo;;
20279 '') if test "$ac_cv_type_int" = yes; then
20280      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20281 See \`config.log' for more details." >&5
20282 echo "$as_me: error: cannot compute sizeof (int)
20283 See \`config.log' for more details." >&2;}
20284    { (exit 77); exit 77; }; }
20285    else
20286      ac_cv_sizeof_int=0
20287    fi ;;
20288 esac
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 $ac_includes_default
20297    typedef int ac__type_sizeof_;
20298 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20299 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20300 #include <stdio.h>
20301 #include <stdlib.h>
20302 int
20303 main ()
20304 {
20305
20306   FILE *f = fopen ("conftest.val", "w");
20307   if (! f)
20308     return 1;
20309   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20310     {
20311       long int i = longval ();
20312       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20313         return 1;
20314       fprintf (f, "%ld\n", i);
20315     }
20316   else
20317     {
20318       unsigned long int i = ulongval ();
20319       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20320         return 1;
20321       fprintf (f, "%lu\n", i);
20322     }
20323   return ferror (f) || fclose (f) != 0;
20324
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_link") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340   { (case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_try") 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   ac_cv_sizeof_int=`cat conftest.val`
20350 else
20351   echo "$as_me: program exited with status $ac_status" >&5
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ( exit $ac_status )
20356 if test "$ac_cv_type_int" = yes; then
20357      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20358 See \`config.log' for more details." >&5
20359 echo "$as_me: error: cannot compute sizeof (int)
20360 See \`config.log' for more details." >&2;}
20361    { (exit 77); exit 77; }; }
20362    else
20363      ac_cv_sizeof_int=0
20364    fi
20365 fi
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367 fi
20368 rm -f conftest.val
20369 fi
20370 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20371 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20372
20373
20374
20375 cat >>confdefs.h <<_ACEOF
20376 #define SIZEOF_INT $ac_cv_sizeof_int
20377 _ACEOF
20378
20379
20380 { echo "$as_me:$LINENO: checking for long" >&5
20381 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20382 if test "${ac_cv_type_long+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392 typedef long ac__type_new_;
20393 int
20394 main ()
20395 {
20396 if ((ac__type_new_ *) 0)
20397   return 0;
20398 if (sizeof (ac__type_new_))
20399   return 0;
20400   ;
20401   return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext
20405 if { (ac_try="$ac_compile"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_compile") 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && {
20418          test -z "$ac_c_werror_flag" ||
20419          test ! -s conftest.err
20420        } && test -s conftest.$ac_objext; then
20421   ac_cv_type_long=yes
20422 else
20423   echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426         ac_cv_type_long=no
20427 fi
20428
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 fi
20431 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20432 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20433
20434 # The cast to long int works around a bug in the HP C Compiler
20435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20437 # This bug is HP SR number 8606223364.
20438 { echo "$as_me:$LINENO: checking size of long" >&5
20439 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20440 if test "${ac_cv_sizeof_long+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   if test "$cross_compiling" = yes; then
20444   # Depending upon the size, compute the lo and hi bounds.
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 $ac_includes_default
20452    typedef long ac__type_sizeof_;
20453 int
20454 main ()
20455 {
20456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20457 test_array [0] = 0
20458
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_compile") 2>conftest.er1
20471   ac_status=$?
20472   grep -v '^ *+' conftest.er1 >conftest.err
20473   rm -f conftest.er1
20474   cat conftest.err >&5
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); } && {
20477          test -z "$ac_c_werror_flag" ||
20478          test ! -s conftest.err
20479        } && test -s conftest.$ac_objext; then
20480   ac_lo=0 ac_mid=0
20481   while :; do
20482     cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 $ac_includes_default
20489    typedef long ac__type_sizeof_;
20490 int
20491 main ()
20492 {
20493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20494 test_array [0] = 0
20495
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_compile") 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } && {
20514          test -z "$ac_c_werror_flag" ||
20515          test ! -s conftest.err
20516        } && test -s conftest.$ac_objext; then
20517   ac_hi=$ac_mid; break
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522         ac_lo=`expr $ac_mid + 1`
20523                         if test $ac_lo -le $ac_mid; then
20524                           ac_lo= ac_hi=
20525                           break
20526                         fi
20527                         ac_mid=`expr 2 '*' $ac_mid + 1`
20528 fi
20529
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531   done
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536         cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 $ac_includes_default
20543    typedef long ac__type_sizeof_;
20544 int
20545 main ()
20546 {
20547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20548 test_array [0] = 0
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_compile") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } && {
20568          test -z "$ac_c_werror_flag" ||
20569          test ! -s conftest.err
20570        } && test -s conftest.$ac_objext; then
20571   ac_hi=-1 ac_mid=-1
20572   while :; do
20573     cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579 $ac_includes_default
20580    typedef long ac__type_sizeof_;
20581 int
20582 main ()
20583 {
20584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20585 test_array [0] = 0
20586
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_compile") 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } && {
20605          test -z "$ac_c_werror_flag" ||
20606          test ! -s conftest.err
20607        } && test -s conftest.$ac_objext; then
20608   ac_lo=$ac_mid; break
20609 else
20610   echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613         ac_hi=`expr '(' $ac_mid ')' - 1`
20614                         if test $ac_mid -le $ac_hi; then
20615                           ac_lo= ac_hi=
20616                           break
20617                         fi
20618                         ac_mid=`expr 2 '*' $ac_mid`
20619 fi
20620
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622   done
20623 else
20624   echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627         ac_lo= ac_hi=
20628 fi
20629
20630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 # Binary search between lo and hi bounds.
20635 while test "x$ac_lo" != "x$ac_hi"; do
20636   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 $ac_includes_default
20644    typedef long ac__type_sizeof_;
20645 int
20646 main ()
20647 {
20648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20649 test_array [0] = 0
20650
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 rm -f conftest.$ac_objext
20656 if { (ac_try="$ac_compile"
20657 case "(($ac_try" in
20658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659   *) ac_try_echo=$ac_try;;
20660 esac
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662   (eval "$ac_compile") 2>conftest.er1
20663   ac_status=$?
20664   grep -v '^ *+' conftest.er1 >conftest.err
20665   rm -f conftest.er1
20666   cat conftest.err >&5
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } && {
20669          test -z "$ac_c_werror_flag" ||
20670          test ! -s conftest.err
20671        } && test -s conftest.$ac_objext; then
20672   ac_hi=$ac_mid
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677         ac_lo=`expr '(' $ac_mid ')' + 1`
20678 fi
20679
20680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20681 done
20682 case $ac_lo in
20683 ?*) ac_cv_sizeof_long=$ac_lo;;
20684 '') if test "$ac_cv_type_long" = yes; then
20685      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20686 See \`config.log' for more details." >&5
20687 echo "$as_me: error: cannot compute sizeof (long)
20688 See \`config.log' for more details." >&2;}
20689    { (exit 77); exit 77; }; }
20690    else
20691      ac_cv_sizeof_long=0
20692    fi ;;
20693 esac
20694 else
20695   cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702    typedef long ac__type_sizeof_;
20703 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20704 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20705 #include <stdio.h>
20706 #include <stdlib.h>
20707 int
20708 main ()
20709 {
20710
20711   FILE *f = fopen ("conftest.val", "w");
20712   if (! f)
20713     return 1;
20714   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20715     {
20716       long int i = longval ();
20717       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20718         return 1;
20719       fprintf (f, "%ld\n", i);
20720     }
20721   else
20722     {
20723       unsigned long int i = ulongval ();
20724       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20725         return 1;
20726       fprintf (f, "%lu\n", i);
20727     }
20728   return ferror (f) || fclose (f) != 0;
20729
20730   ;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738   *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741   (eval "$ac_link") 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745   { (case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_try") 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   ac_cv_sizeof_long=`cat conftest.val`
20755 else
20756   echo "$as_me: program exited with status $ac_status" >&5
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ( exit $ac_status )
20761 if test "$ac_cv_type_long" = yes; then
20762      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20763 See \`config.log' for more details." >&5
20764 echo "$as_me: error: cannot compute sizeof (long)
20765 See \`config.log' for more details." >&2;}
20766    { (exit 77); exit 77; }; }
20767    else
20768      ac_cv_sizeof_long=0
20769    fi
20770 fi
20771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20772 fi
20773 rm -f conftest.val
20774 fi
20775 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20776 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20777
20778
20779
20780 cat >>confdefs.h <<_ACEOF
20781 #define SIZEOF_LONG $ac_cv_sizeof_long
20782 _ACEOF
20783
20784
20785 { echo "$as_me:$LINENO: checking for size_t" >&5
20786 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20787 if test "${ac_cv_type_size_t+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 $ac_includes_default
20797 typedef size_t ac__type_new_;
20798 int
20799 main ()
20800 {
20801 if ((ac__type_new_ *) 0)
20802   return 0;
20803 if (sizeof (ac__type_new_))
20804   return 0;
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_compile") 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } && {
20823          test -z "$ac_c_werror_flag" ||
20824          test ! -s conftest.err
20825        } && test -s conftest.$ac_objext; then
20826   ac_cv_type_size_t=yes
20827 else
20828   echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831         ac_cv_type_size_t=no
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835 fi
20836 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20837 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20838
20839 # The cast to long int works around a bug in the HP C Compiler
20840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20842 # This bug is HP SR number 8606223364.
20843 { echo "$as_me:$LINENO: checking size of size_t" >&5
20844 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20845 if test "${ac_cv_sizeof_size_t+set}" = set; then
20846   echo $ECHO_N "(cached) $ECHO_C" >&6
20847 else
20848   if test "$cross_compiling" = yes; then
20849   # Depending upon the size, compute the lo and hi bounds.
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 $ac_includes_default
20857    typedef size_t ac__type_sizeof_;
20858 int
20859 main ()
20860 {
20861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20862 test_array [0] = 0
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_lo=0 ac_mid=0
20886   while :; do
20887     cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 $ac_includes_default
20894    typedef size_t ac__type_sizeof_;
20895 int
20896 main ()
20897 {
20898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20899 test_array [0] = 0
20900
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && {
20919          test -z "$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        } && test -s conftest.$ac_objext; then
20922   ac_hi=$ac_mid; break
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_lo=`expr $ac_mid + 1`
20928                         if test $ac_lo -le $ac_mid; then
20929                           ac_lo= ac_hi=
20930                           break
20931                         fi
20932                         ac_mid=`expr 2 '*' $ac_mid + 1`
20933 fi
20934
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936   done
20937 else
20938   echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941         cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 $ac_includes_default
20948    typedef size_t ac__type_sizeof_;
20949 int
20950 main ()
20951 {
20952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20953 test_array [0] = 0
20954
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_compile") 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } && {
20973          test -z "$ac_c_werror_flag" ||
20974          test ! -s conftest.err
20975        } && test -s conftest.$ac_objext; then
20976   ac_hi=-1 ac_mid=-1
20977   while :; do
20978     cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 $ac_includes_default
20985    typedef size_t ac__type_sizeof_;
20986 int
20987 main ()
20988 {
20989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20990 test_array [0] = 0
20991
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_compile") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } && {
21010          test -z "$ac_c_werror_flag" ||
21011          test ! -s conftest.err
21012        } && test -s conftest.$ac_objext; then
21013   ac_lo=$ac_mid; break
21014 else
21015   echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018         ac_hi=`expr '(' $ac_mid ')' - 1`
21019                         if test $ac_mid -le $ac_hi; then
21020                           ac_lo= ac_hi=
21021                           break
21022                         fi
21023                         ac_mid=`expr 2 '*' $ac_mid`
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027   done
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032         ac_lo= ac_hi=
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 # Binary search between lo and hi bounds.
21040 while test "x$ac_lo" != "x$ac_hi"; do
21041   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21042   cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048 $ac_includes_default
21049    typedef size_t ac__type_sizeof_;
21050 int
21051 main ()
21052 {
21053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21054 test_array [0] = 0
21055
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_compile") 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } && {
21074          test -z "$ac_c_werror_flag" ||
21075          test ! -s conftest.err
21076        } && test -s conftest.$ac_objext; then
21077   ac_hi=$ac_mid
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082         ac_lo=`expr '(' $ac_mid ')' + 1`
21083 fi
21084
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 done
21087 case $ac_lo in
21088 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21089 '') if test "$ac_cv_type_size_t" = yes; then
21090      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21091 See \`config.log' for more details." >&5
21092 echo "$as_me: error: cannot compute sizeof (size_t)
21093 See \`config.log' for more details." >&2;}
21094    { (exit 77); exit 77; }; }
21095    else
21096      ac_cv_sizeof_size_t=0
21097    fi ;;
21098 esac
21099 else
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 $ac_includes_default
21107    typedef size_t ac__type_sizeof_;
21108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21110 #include <stdio.h>
21111 #include <stdlib.h>
21112 int
21113 main ()
21114 {
21115
21116   FILE *f = fopen ("conftest.val", "w");
21117   if (! f)
21118     return 1;
21119   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21120     {
21121       long int i = longval ();
21122       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21123         return 1;
21124       fprintf (f, "%ld\n", i);
21125     }
21126   else
21127     {
21128       unsigned long int i = ulongval ();
21129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21130         return 1;
21131       fprintf (f, "%lu\n", i);
21132     }
21133   return ferror (f) || fclose (f) != 0;
21134
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest$ac_exeext
21140 if { (ac_try="$ac_link"
21141 case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_link") 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150   { (case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_try") 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_cv_sizeof_size_t=`cat conftest.val`
21160 else
21161   echo "$as_me: program exited with status $ac_status" >&5
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 ( exit $ac_status )
21166 if test "$ac_cv_type_size_t" = yes; then
21167      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21168 See \`config.log' for more details." >&5
21169 echo "$as_me: error: cannot compute sizeof (size_t)
21170 See \`config.log' for more details." >&2;}
21171    { (exit 77); exit 77; }; }
21172    else
21173      ac_cv_sizeof_size_t=0
21174    fi
21175 fi
21176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21177 fi
21178 rm -f conftest.val
21179 fi
21180 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21181 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21182
21183
21184
21185 cat >>confdefs.h <<_ACEOF
21186 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21187 _ACEOF
21188
21189
21190
21191 case "${host}" in
21192     arm-*-linux* )
21193         { echo "$as_me:$LINENO: checking for long long" >&5
21194 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21195 if test "${ac_cv_type_long_long+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 $ac_includes_default
21205 typedef long long ac__type_new_;
21206 int
21207 main ()
21208 {
21209 if ((ac__type_new_ *) 0)
21210   return 0;
21211 if (sizeof (ac__type_new_))
21212   return 0;
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_compile") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest.$ac_objext; then
21234   ac_cv_type_long_long=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         ac_cv_type_long_long=no
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 fi
21244 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21245 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21246
21247 # The cast to long int works around a bug in the HP C Compiler
21248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21250 # This bug is HP SR number 8606223364.
21251 { echo "$as_me:$LINENO: checking size of long long" >&5
21252 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21253 if test "${ac_cv_sizeof_long_long+set}" = set; then
21254   echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256   if test "$cross_compiling" = yes; then
21257   # Depending upon the size, compute the lo and hi bounds.
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 $ac_includes_default
21265    typedef long long ac__type_sizeof_;
21266 int
21267 main ()
21268 {
21269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21270 test_array [0] = 0
21271
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_compile") 2>conftest.er1
21284   ac_status=$?
21285   grep -v '^ *+' conftest.er1 >conftest.err
21286   rm -f conftest.er1
21287   cat conftest.err >&5
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } && {
21290          test -z "$ac_c_werror_flag" ||
21291          test ! -s conftest.err
21292        } && test -s conftest.$ac_objext; then
21293   ac_lo=0 ac_mid=0
21294   while :; do
21295     cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301 $ac_includes_default
21302    typedef long long ac__type_sizeof_;
21303 int
21304 main ()
21305 {
21306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21307 test_array [0] = 0
21308
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317   *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320   (eval "$ac_compile") 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } && {
21327          test -z "$ac_c_werror_flag" ||
21328          test ! -s conftest.err
21329        } && test -s conftest.$ac_objext; then
21330   ac_hi=$ac_mid; break
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         ac_lo=`expr $ac_mid + 1`
21336                         if test $ac_lo -le $ac_mid; then
21337                           ac_lo= ac_hi=
21338                           break
21339                         fi
21340                         ac_mid=`expr 2 '*' $ac_mid + 1`
21341 fi
21342
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344   done
21345 else
21346   echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349         cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 $ac_includes_default
21356    typedef long long ac__type_sizeof_;
21357 int
21358 main ()
21359 {
21360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21361 test_array [0] = 0
21362
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (ac_try="$ac_compile"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_compile") 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } && {
21381          test -z "$ac_c_werror_flag" ||
21382          test ! -s conftest.err
21383        } && test -s conftest.$ac_objext; then
21384   ac_hi=-1 ac_mid=-1
21385   while :; do
21386     cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392 $ac_includes_default
21393    typedef long long ac__type_sizeof_;
21394 int
21395 main ()
21396 {
21397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21398 test_array [0] = 0
21399
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (ac_try="$ac_compile"
21406 case "(($ac_try" in
21407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408   *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411   (eval "$ac_compile") 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && {
21418          test -z "$ac_c_werror_flag" ||
21419          test ! -s conftest.err
21420        } && test -s conftest.$ac_objext; then
21421   ac_lo=$ac_mid; break
21422 else
21423   echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426         ac_hi=`expr '(' $ac_mid ')' - 1`
21427                         if test $ac_mid -le $ac_hi; then
21428                           ac_lo= ac_hi=
21429                           break
21430                         fi
21431                         ac_mid=`expr 2 '*' $ac_mid`
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435   done
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440         ac_lo= ac_hi=
21441 fi
21442
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444 fi
21445
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 # Binary search between lo and hi bounds.
21448 while test "x$ac_lo" != "x$ac_hi"; do
21449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21450   cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 $ac_includes_default
21457    typedef long long ac__type_sizeof_;
21458 int
21459 main ()
21460 {
21461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21462 test_array [0] = 0
21463
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_compile") 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } && {
21482          test -z "$ac_c_werror_flag" ||
21483          test ! -s conftest.err
21484        } && test -s conftest.$ac_objext; then
21485   ac_hi=$ac_mid
21486 else
21487   echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490         ac_lo=`expr '(' $ac_mid ')' + 1`
21491 fi
21492
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 done
21495 case $ac_lo in
21496 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21497 '') if test "$ac_cv_type_long_long" = yes; then
21498      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21499 See \`config.log' for more details." >&5
21500 echo "$as_me: error: cannot compute sizeof (long long)
21501 See \`config.log' for more details." >&2;}
21502    { (exit 77); exit 77; }; }
21503    else
21504      ac_cv_sizeof_long_long=0
21505    fi ;;
21506 esac
21507 else
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 long long ac__type_sizeof_;
21516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21518 #include <stdio.h>
21519 #include <stdlib.h>
21520 int
21521 main ()
21522 {
21523
21524   FILE *f = fopen ("conftest.val", "w");
21525   if (! f)
21526     return 1;
21527   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21528     {
21529       long int i = longval ();
21530       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21531         return 1;
21532       fprintf (f, "%ld\n", i);
21533     }
21534   else
21535     {
21536       unsigned long int i = ulongval ();
21537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21538         return 1;
21539       fprintf (f, "%lu\n", i);
21540     }
21541   return ferror (f) || fclose (f) != 0;
21542
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_link") 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558   { (case "(($ac_try" in
21559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560   *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563   (eval "$ac_try") 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_cv_sizeof_long_long=`cat conftest.val`
21568 else
21569   echo "$as_me: program exited with status $ac_status" >&5
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 ( exit $ac_status )
21574 if test "$ac_cv_type_long_long" = yes; then
21575      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21576 See \`config.log' for more details." >&5
21577 echo "$as_me: error: cannot compute sizeof (long long)
21578 See \`config.log' for more details." >&2;}
21579    { (exit 77); exit 77; }; }
21580    else
21581      ac_cv_sizeof_long_long=0
21582    fi
21583 fi
21584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21585 fi
21586 rm -f conftest.val
21587 fi
21588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21589 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21590
21591
21592
21593 cat >>confdefs.h <<_ACEOF
21594 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21595 _ACEOF
21596
21597
21598     ;;
21599     *-hp-hpux* )
21600         { echo "$as_me:$LINENO: checking for long long" >&5
21601 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21602 if test "${ac_cv_type_long_long+set}" = set; then
21603   echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605   cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h.  */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h.  */
21611 $ac_includes_default
21612 typedef long long ac__type_new_;
21613 int
21614 main ()
21615 {
21616 if ((ac__type_new_ *) 0)
21617   return 0;
21618 if (sizeof (ac__type_new_))
21619   return 0;
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631   (eval "$ac_compile") 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && {
21638          test -z "$ac_c_werror_flag" ||
21639          test ! -s conftest.err
21640        } && test -s conftest.$ac_objext; then
21641   ac_cv_type_long_long=yes
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646         ac_cv_type_long_long=no
21647 fi
21648
21649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 fi
21651 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21652 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21653
21654 # The cast to long int works around a bug in the HP C Compiler
21655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21657 # This bug is HP SR number 8606223364.
21658 { echo "$as_me:$LINENO: checking size of long long" >&5
21659 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21660 if test "${ac_cv_sizeof_long_long+set}" = set; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663   if test "$cross_compiling" = yes; then
21664   # Depending upon the size, compute the lo and hi bounds.
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 $ac_includes_default
21672    typedef long long ac__type_sizeof_;
21673 int
21674 main ()
21675 {
21676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21677 test_array [0] = 0
21678
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_compile") 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && {
21697          test -z "$ac_c_werror_flag" ||
21698          test ! -s conftest.err
21699        } && test -s conftest.$ac_objext; then
21700   ac_lo=0 ac_mid=0
21701   while :; do
21702     cat >conftest.$ac_ext <<_ACEOF
21703 /* confdefs.h.  */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h.  */
21708 $ac_includes_default
21709    typedef long long ac__type_sizeof_;
21710 int
21711 main ()
21712 {
21713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21714 test_array [0] = 0
21715
21716   ;
21717   return 0;
21718 }
21719 _ACEOF
21720 rm -f conftest.$ac_objext
21721 if { (ac_try="$ac_compile"
21722 case "(($ac_try" in
21723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724   *) ac_try_echo=$ac_try;;
21725 esac
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727   (eval "$ac_compile") 2>conftest.er1
21728   ac_status=$?
21729   grep -v '^ *+' conftest.er1 >conftest.err
21730   rm -f conftest.er1
21731   cat conftest.err >&5
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); } && {
21734          test -z "$ac_c_werror_flag" ||
21735          test ! -s conftest.err
21736        } && test -s conftest.$ac_objext; then
21737   ac_hi=$ac_mid; break
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742         ac_lo=`expr $ac_mid + 1`
21743                         if test $ac_lo -le $ac_mid; then
21744                           ac_lo= ac_hi=
21745                           break
21746                         fi
21747                         ac_mid=`expr 2 '*' $ac_mid + 1`
21748 fi
21749
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751   done
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756         cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 $ac_includes_default
21763    typedef long long ac__type_sizeof_;
21764 int
21765 main ()
21766 {
21767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21768 test_array [0] = 0
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } && {
21788          test -z "$ac_c_werror_flag" ||
21789          test ! -s conftest.err
21790        } && test -s conftest.$ac_objext; then
21791   ac_hi=-1 ac_mid=-1
21792   while :; do
21793     cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h.  */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h.  */
21799 $ac_includes_default
21800    typedef long long ac__type_sizeof_;
21801 int
21802 main ()
21803 {
21804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21805 test_array [0] = 0
21806
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (ac_try="$ac_compile"
21813 case "(($ac_try" in
21814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815   *) ac_try_echo=$ac_try;;
21816 esac
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818   (eval "$ac_compile") 2>conftest.er1
21819   ac_status=$?
21820   grep -v '^ *+' conftest.er1 >conftest.err
21821   rm -f conftest.er1
21822   cat conftest.err >&5
21823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824   (exit $ac_status); } && {
21825          test -z "$ac_c_werror_flag" ||
21826          test ! -s conftest.err
21827        } && test -s conftest.$ac_objext; then
21828   ac_lo=$ac_mid; break
21829 else
21830   echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833         ac_hi=`expr '(' $ac_mid ')' - 1`
21834                         if test $ac_mid -le $ac_hi; then
21835                           ac_lo= ac_hi=
21836                           break
21837                         fi
21838                         ac_mid=`expr 2 '*' $ac_mid`
21839 fi
21840
21841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842   done
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847         ac_lo= ac_hi=
21848 fi
21849
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 fi
21852
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 # Binary search between lo and hi bounds.
21855 while test "x$ac_lo" != "x$ac_hi"; do
21856   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21857   cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863 $ac_includes_default
21864    typedef long long ac__type_sizeof_;
21865 int
21866 main ()
21867 {
21868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21869 test_array [0] = 0
21870
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext
21876 if { (ac_try="$ac_compile"
21877 case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_compile") 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } && {
21889          test -z "$ac_c_werror_flag" ||
21890          test ! -s conftest.err
21891        } && test -s conftest.$ac_objext; then
21892   ac_hi=$ac_mid
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897         ac_lo=`expr '(' $ac_mid ')' + 1`
21898 fi
21899
21900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901 done
21902 case $ac_lo in
21903 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21904 '') if test "$ac_cv_type_long_long" = yes; then
21905      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21906 See \`config.log' for more details." >&5
21907 echo "$as_me: error: cannot compute sizeof (long long)
21908 See \`config.log' for more details." >&2;}
21909    { (exit 77); exit 77; }; }
21910    else
21911      ac_cv_sizeof_long_long=0
21912    fi ;;
21913 esac
21914 else
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921 $ac_includes_default
21922    typedef long long ac__type_sizeof_;
21923 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21924 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21925 #include <stdio.h>
21926 #include <stdlib.h>
21927 int
21928 main ()
21929 {
21930
21931   FILE *f = fopen ("conftest.val", "w");
21932   if (! f)
21933     return 1;
21934   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21935     {
21936       long int i = longval ();
21937       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21938         return 1;
21939       fprintf (f, "%ld\n", i);
21940     }
21941   else
21942     {
21943       unsigned long int i = ulongval ();
21944       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21945         return 1;
21946       fprintf (f, "%lu\n", i);
21947     }
21948   return ferror (f) || fclose (f) != 0;
21949
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958   *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961   (eval "$ac_link") 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965   { (case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_try") 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; }; then
21974   ac_cv_sizeof_long_long=`cat conftest.val`
21975 else
21976   echo "$as_me: program exited with status $ac_status" >&5
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 ( exit $ac_status )
21981 if test "$ac_cv_type_long_long" = yes; then
21982      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21983 See \`config.log' for more details." >&5
21984 echo "$as_me: error: cannot compute sizeof (long long)
21985 See \`config.log' for more details." >&2;}
21986    { (exit 77); exit 77; }; }
21987    else
21988      ac_cv_sizeof_long_long=0
21989    fi
21990 fi
21991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21992 fi
21993 rm -f conftest.val
21994 fi
21995 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21996 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21997
21998
21999
22000 cat >>confdefs.h <<_ACEOF
22001 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22002 _ACEOF
22003
22004
22005         if test "$ac_cv_sizeof_long_long" != 0; then
22006                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22007         fi
22008     ;;
22009     * )
22010         { echo "$as_me:$LINENO: checking for long long" >&5
22011 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22012 if test "${ac_cv_type_long_long+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021 $ac_includes_default
22022 typedef long long ac__type_new_;
22023 int
22024 main ()
22025 {
22026 if ((ac__type_new_ *) 0)
22027   return 0;
22028 if (sizeof (ac__type_new_))
22029   return 0;
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 rm -f conftest.$ac_objext
22035 if { (ac_try="$ac_compile"
22036 case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_compile") 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } && {
22048          test -z "$ac_c_werror_flag" ||
22049          test ! -s conftest.err
22050        } && test -s conftest.$ac_objext; then
22051   ac_cv_type_long_long=yes
22052 else
22053   echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056         ac_cv_type_long_long=no
22057 fi
22058
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22062 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22063
22064 # The cast to long int works around a bug in the HP C Compiler
22065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22067 # This bug is HP SR number 8606223364.
22068 { echo "$as_me:$LINENO: checking size of long long" >&5
22069 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22070 if test "${ac_cv_sizeof_long_long+set}" = set; then
22071   echo $ECHO_N "(cached) $ECHO_C" >&6
22072 else
22073   if test "$cross_compiling" = yes; then
22074   # Depending upon the size, compute the lo and hi bounds.
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 $ac_includes_default
22082    typedef long long ac__type_sizeof_;
22083 int
22084 main ()
22085 {
22086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22087 test_array [0] = 0
22088
22089   ;
22090   return 0;
22091 }
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_compile") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } && {
22107          test -z "$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        } && test -s conftest.$ac_objext; then
22110   ac_lo=0 ac_mid=0
22111   while :; do
22112     cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 $ac_includes_default
22119    typedef long long ac__type_sizeof_;
22120 int
22121 main ()
22122 {
22123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22124 test_array [0] = 0
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134   *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137   (eval "$ac_compile") 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } && {
22144          test -z "$ac_c_werror_flag" ||
22145          test ! -s conftest.err
22146        } && test -s conftest.$ac_objext; then
22147   ac_hi=$ac_mid; break
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         ac_lo=`expr $ac_mid + 1`
22153                         if test $ac_lo -le $ac_mid; then
22154                           ac_lo= ac_hi=
22155                           break
22156                         fi
22157                         ac_mid=`expr 2 '*' $ac_mid + 1`
22158 fi
22159
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161   done
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 $ac_includes_default
22173    typedef long long ac__type_sizeof_;
22174 int
22175 main ()
22176 {
22177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22178 test_array [0] = 0
22179
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (ac_try="$ac_compile"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_compile") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } && {
22198          test -z "$ac_c_werror_flag" ||
22199          test ! -s conftest.err
22200        } && test -s conftest.$ac_objext; then
22201   ac_hi=-1 ac_mid=-1
22202   while :; do
22203     cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 $ac_includes_default
22210    typedef long long ac__type_sizeof_;
22211 int
22212 main ()
22213 {
22214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22215 test_array [0] = 0
22216
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext
22222 if { (ac_try="$ac_compile"
22223 case "(($ac_try" in
22224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225   *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228   (eval "$ac_compile") 2>conftest.er1
22229   ac_status=$?
22230   grep -v '^ *+' conftest.er1 >conftest.err
22231   rm -f conftest.er1
22232   cat conftest.err >&5
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); } && {
22235          test -z "$ac_c_werror_flag" ||
22236          test ! -s conftest.err
22237        } && test -s conftest.$ac_objext; then
22238   ac_lo=$ac_mid; break
22239 else
22240   echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243         ac_hi=`expr '(' $ac_mid ')' - 1`
22244                         if test $ac_mid -le $ac_hi; then
22245                           ac_lo= ac_hi=
22246                           break
22247                         fi
22248                         ac_mid=`expr 2 '*' $ac_mid`
22249 fi
22250
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252   done
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257         ac_lo= ac_hi=
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 fi
22262
22263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 # Binary search between lo and hi bounds.
22265 while test "x$ac_lo" != "x$ac_hi"; do
22266   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22267   cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 $ac_includes_default
22274    typedef long long ac__type_sizeof_;
22275 int
22276 main ()
22277 {
22278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22279 test_array [0] = 0
22280
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289   *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292   (eval "$ac_compile") 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } && {
22299          test -z "$ac_c_werror_flag" ||
22300          test ! -s conftest.err
22301        } && test -s conftest.$ac_objext; then
22302   ac_hi=$ac_mid
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307         ac_lo=`expr '(' $ac_mid ')' + 1`
22308 fi
22309
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 done
22312 case $ac_lo in
22313 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22314 '') if test "$ac_cv_type_long_long" = yes; then
22315      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22316 See \`config.log' for more details." >&5
22317 echo "$as_me: error: cannot compute sizeof (long long)
22318 See \`config.log' for more details." >&2;}
22319    { (exit 77); exit 77; }; }
22320    else
22321      ac_cv_sizeof_long_long=0
22322    fi ;;
22323 esac
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 $ac_includes_default
22332    typedef long long ac__type_sizeof_;
22333 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22334 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22335 #include <stdio.h>
22336 #include <stdlib.h>
22337 int
22338 main ()
22339 {
22340
22341   FILE *f = fopen ("conftest.val", "w");
22342   if (! f)
22343     return 1;
22344   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22345     {
22346       long int i = longval ();
22347       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22348         return 1;
22349       fprintf (f, "%ld\n", i);
22350     }
22351   else
22352     {
22353       unsigned long int i = ulongval ();
22354       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22355         return 1;
22356       fprintf (f, "%lu\n", i);
22357     }
22358   return ferror (f) || fclose (f) != 0;
22359
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368   *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371   (eval "$ac_link") 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22375   { (case "(($ac_try" in
22376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377   *) ac_try_echo=$ac_try;;
22378 esac
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380   (eval "$ac_try") 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; }; then
22384   ac_cv_sizeof_long_long=`cat conftest.val`
22385 else
22386   echo "$as_me: program exited with status $ac_status" >&5
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390 ( exit $ac_status )
22391 if test "$ac_cv_type_long_long" = yes; then
22392      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22393 See \`config.log' for more details." >&5
22394 echo "$as_me: error: cannot compute sizeof (long long)
22395 See \`config.log' for more details." >&2;}
22396    { (exit 77); exit 77; }; }
22397    else
22398      ac_cv_sizeof_long_long=0
22399    fi
22400 fi
22401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22402 fi
22403 rm -f conftest.val
22404 fi
22405 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22406 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22407
22408
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22412 _ACEOF
22413
22414
22415 esac
22416
22417 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22418 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22419 if test "${ac_cv_type_wchar_t+set}" = set; then
22420   echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422   cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428
22429         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22430         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22431         #  error "fake wchar_t"
22432         #endif
22433         #ifdef HAVE_WCHAR_H
22434         #  ifdef __CYGWIN__
22435         #    include <stddef.h>
22436         #  endif
22437         #  include <wchar.h>
22438         #endif
22439         #ifdef HAVE_STDLIB_H
22440         #  include <stdlib.h>
22441         #endif
22442         #include <stdio.h>
22443
22444
22445
22446 typedef wchar_t ac__type_new_;
22447 int
22448 main ()
22449 {
22450 if ((ac__type_new_ *) 0)
22451   return 0;
22452 if (sizeof (ac__type_new_))
22453   return 0;
22454   ;
22455   return 0;
22456 }
22457 _ACEOF
22458 rm -f conftest.$ac_objext
22459 if { (ac_try="$ac_compile"
22460 case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_compile") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } && {
22472          test -z "$ac_c_werror_flag" ||
22473          test ! -s conftest.err
22474        } && test -s conftest.$ac_objext; then
22475   ac_cv_type_wchar_t=yes
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480         ac_cv_type_wchar_t=no
22481 fi
22482
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 fi
22485 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22486 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22487
22488 # The cast to long int works around a bug in the HP C Compiler
22489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22491 # This bug is HP SR number 8606223364.
22492 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22493 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22494 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22495   echo $ECHO_N "(cached) $ECHO_C" >&6
22496 else
22497   if test "$cross_compiling" = yes; then
22498   # Depending upon the size, compute the lo and hi bounds.
22499 cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505
22506         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22507         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22508         #  error "fake wchar_t"
22509         #endif
22510         #ifdef HAVE_WCHAR_H
22511         #  ifdef __CYGWIN__
22512         #    include <stddef.h>
22513         #  endif
22514         #  include <wchar.h>
22515         #endif
22516         #ifdef HAVE_STDLIB_H
22517         #  include <stdlib.h>
22518         #endif
22519         #include <stdio.h>
22520
22521
22522
22523    typedef wchar_t ac__type_sizeof_;
22524 int
22525 main ()
22526 {
22527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22528 test_array [0] = 0
22529
22530   ;
22531   return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest.$ac_objext
22535 if { (ac_try="$ac_compile"
22536 case "(($ac_try" in
22537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538   *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541   (eval "$ac_compile") 2>conftest.er1
22542   ac_status=$?
22543   grep -v '^ *+' conftest.er1 >conftest.err
22544   rm -f conftest.er1
22545   cat conftest.err >&5
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); } && {
22548          test -z "$ac_c_werror_flag" ||
22549          test ! -s conftest.err
22550        } && test -s conftest.$ac_objext; then
22551   ac_lo=0 ac_mid=0
22552   while :; do
22553     cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559
22560         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22561         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22562         #  error "fake wchar_t"
22563         #endif
22564         #ifdef HAVE_WCHAR_H
22565         #  ifdef __CYGWIN__
22566         #    include <stddef.h>
22567         #  endif
22568         #  include <wchar.h>
22569         #endif
22570         #ifdef HAVE_STDLIB_H
22571         #  include <stdlib.h>
22572         #endif
22573         #include <stdio.h>
22574
22575
22576
22577    typedef wchar_t ac__type_sizeof_;
22578 int
22579 main ()
22580 {
22581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22582 test_array [0] = 0
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_compile") 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } && {
22602          test -z "$ac_c_werror_flag" ||
22603          test ! -s conftest.err
22604        } && test -s conftest.$ac_objext; then
22605   ac_hi=$ac_mid; break
22606 else
22607   echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610         ac_lo=`expr $ac_mid + 1`
22611                         if test $ac_lo -le $ac_mid; then
22612                           ac_lo= ac_hi=
22613                           break
22614                         fi
22615                         ac_mid=`expr 2 '*' $ac_mid + 1`
22616 fi
22617
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619   done
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630
22631         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22632         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22633         #  error "fake wchar_t"
22634         #endif
22635         #ifdef HAVE_WCHAR_H
22636         #  ifdef __CYGWIN__
22637         #    include <stddef.h>
22638         #  endif
22639         #  include <wchar.h>
22640         #endif
22641         #ifdef HAVE_STDLIB_H
22642         #  include <stdlib.h>
22643         #endif
22644         #include <stdio.h>
22645
22646
22647
22648    typedef wchar_t ac__type_sizeof_;
22649 int
22650 main ()
22651 {
22652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22653 test_array [0] = 0
22654
22655   ;
22656   return 0;
22657 }
22658 _ACEOF
22659 rm -f conftest.$ac_objext
22660 if { (ac_try="$ac_compile"
22661 case "(($ac_try" in
22662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663   *) ac_try_echo=$ac_try;;
22664 esac
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666   (eval "$ac_compile") 2>conftest.er1
22667   ac_status=$?
22668   grep -v '^ *+' conftest.er1 >conftest.err
22669   rm -f conftest.er1
22670   cat conftest.err >&5
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); } && {
22673          test -z "$ac_c_werror_flag" ||
22674          test ! -s conftest.err
22675        } && test -s conftest.$ac_objext; then
22676   ac_hi=-1 ac_mid=-1
22677   while :; do
22678     cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684
22685         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22686         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22687         #  error "fake wchar_t"
22688         #endif
22689         #ifdef HAVE_WCHAR_H
22690         #  ifdef __CYGWIN__
22691         #    include <stddef.h>
22692         #  endif
22693         #  include <wchar.h>
22694         #endif
22695         #ifdef HAVE_STDLIB_H
22696         #  include <stdlib.h>
22697         #endif
22698         #include <stdio.h>
22699
22700
22701
22702    typedef wchar_t ac__type_sizeof_;
22703 int
22704 main ()
22705 {
22706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22707 test_array [0] = 0
22708
22709   ;
22710   return 0;
22711 }
22712 _ACEOF
22713 rm -f conftest.$ac_objext
22714 if { (ac_try="$ac_compile"
22715 case "(($ac_try" in
22716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717   *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720   (eval "$ac_compile") 2>conftest.er1
22721   ac_status=$?
22722   grep -v '^ *+' conftest.er1 >conftest.err
22723   rm -f conftest.er1
22724   cat conftest.err >&5
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); } && {
22727          test -z "$ac_c_werror_flag" ||
22728          test ! -s conftest.err
22729        } && test -s conftest.$ac_objext; then
22730   ac_lo=$ac_mid; break
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735         ac_hi=`expr '(' $ac_mid ')' - 1`
22736                         if test $ac_mid -le $ac_hi; then
22737                           ac_lo= ac_hi=
22738                           break
22739                         fi
22740                         ac_mid=`expr 2 '*' $ac_mid`
22741 fi
22742
22743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22744   done
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749         ac_lo= ac_hi=
22750 fi
22751
22752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 # Binary search between lo and hi bounds.
22757 while test "x$ac_lo" != "x$ac_hi"; do
22758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22759   cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765
22766         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22767         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22768         #  error "fake wchar_t"
22769         #endif
22770         #ifdef HAVE_WCHAR_H
22771         #  ifdef __CYGWIN__
22772         #    include <stddef.h>
22773         #  endif
22774         #  include <wchar.h>
22775         #endif
22776         #ifdef HAVE_STDLIB_H
22777         #  include <stdlib.h>
22778         #endif
22779         #include <stdio.h>
22780
22781
22782
22783    typedef wchar_t ac__type_sizeof_;
22784 int
22785 main ()
22786 {
22787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22788 test_array [0] = 0
22789
22790   ;
22791   return 0;
22792 }
22793 _ACEOF
22794 rm -f conftest.$ac_objext
22795 if { (ac_try="$ac_compile"
22796 case "(($ac_try" in
22797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798   *) ac_try_echo=$ac_try;;
22799 esac
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801   (eval "$ac_compile") 2>conftest.er1
22802   ac_status=$?
22803   grep -v '^ *+' conftest.er1 >conftest.err
22804   rm -f conftest.er1
22805   cat conftest.err >&5
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } && {
22808          test -z "$ac_c_werror_flag" ||
22809          test ! -s conftest.err
22810        } && test -s conftest.$ac_objext; then
22811   ac_hi=$ac_mid
22812 else
22813   echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816         ac_lo=`expr '(' $ac_mid ')' + 1`
22817 fi
22818
22819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 done
22821 case $ac_lo in
22822 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22823 '') if test "$ac_cv_type_wchar_t" = yes; then
22824      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22825 See \`config.log' for more details." >&5
22826 echo "$as_me: error: cannot compute sizeof (wchar_t)
22827 See \`config.log' for more details." >&2;}
22828    { (exit 77); exit 77; }; }
22829    else
22830      ac_cv_sizeof_wchar_t=0
22831    fi ;;
22832 esac
22833 else
22834   cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840
22841         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22842         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22843         #  error "fake wchar_t"
22844         #endif
22845         #ifdef HAVE_WCHAR_H
22846         #  ifdef __CYGWIN__
22847         #    include <stddef.h>
22848         #  endif
22849         #  include <wchar.h>
22850         #endif
22851         #ifdef HAVE_STDLIB_H
22852         #  include <stdlib.h>
22853         #endif
22854         #include <stdio.h>
22855
22856
22857
22858    typedef wchar_t ac__type_sizeof_;
22859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22861 #include <stdio.h>
22862 #include <stdlib.h>
22863 int
22864 main ()
22865 {
22866
22867   FILE *f = fopen ("conftest.val", "w");
22868   if (! f)
22869     return 1;
22870   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22871     {
22872       long int i = longval ();
22873       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22874         return 1;
22875       fprintf (f, "%ld\n", i);
22876     }
22877   else
22878     {
22879       unsigned long int i = ulongval ();
22880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22881         return 1;
22882       fprintf (f, "%lu\n", i);
22883     }
22884   return ferror (f) || fclose (f) != 0;
22885
22886   ;
22887   return 0;
22888 }
22889 _ACEOF
22890 rm -f conftest$ac_exeext
22891 if { (ac_try="$ac_link"
22892 case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897   (eval "$ac_link") 2>&5
22898   ac_status=$?
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22901   { (case "(($ac_try" in
22902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903   *) ac_try_echo=$ac_try;;
22904 esac
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906   (eval "$ac_try") 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; }; then
22910   ac_cv_sizeof_wchar_t=`cat conftest.val`
22911 else
22912   echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22915
22916 ( exit $ac_status )
22917 if test "$ac_cv_type_wchar_t" = yes; then
22918      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22919 See \`config.log' for more details." >&5
22920 echo "$as_me: error: cannot compute sizeof (wchar_t)
22921 See \`config.log' for more details." >&2;}
22922    { (exit 77); exit 77; }; }
22923    else
22924      ac_cv_sizeof_wchar_t=0
22925    fi
22926 fi
22927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22928 fi
22929 rm -f conftest.val
22930 fi
22931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22932 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22933
22934
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22938 _ACEOF
22939
22940
22941 if test "$ac_cv_sizeof_wchar_t" != 0; then
22942     wxUSE_WCHAR_T=yes
22943 else
22944     wxUSE_WCHAR_T=no
22945 fi
22946
22947 { echo "$as_me:$LINENO: checking for va_copy" >&5
22948 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22949 if test "${wx_cv_func_va_copy+set}" = set; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952
22953         ac_ext=cpp
22954 ac_cpp='$CXXCPP $CPPFLAGS'
22955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22958
22959         cat >conftest.$ac_ext <<_ACEOF
22960
22961             #include <stdarg.h>
22962             void foo(char *f, ...)
22963             {
22964                 va_list ap1, ap2;
22965                 va_start(ap1, f);
22966                 va_copy(ap2, ap1);
22967                 va_end(ap2);
22968                 va_end(ap1);
22969             }
22970             int main()
22971             {
22972                 foo("hi", 17);
22973                 return 0;
22974             }
22975 _ACEOF
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (ac_try="$ac_link"
22978 case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_link") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_cxx_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest$ac_exeext &&
22993        $as_test_x conftest$ac_exeext; then
22994   wx_cv_func_va_copy=yes
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999         wx_cv_func_va_copy=no
23000
23001 fi
23002
23003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23004       conftest$ac_exeext conftest.$ac_ext
23005         ac_ext=c
23006 ac_cpp='$CPP $CPPFLAGS'
23007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23010
23011
23012
23013 fi
23014 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23015 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23016
23017 if test $wx_cv_func_va_copy = "yes"; then
23018     cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_VA_COPY 1
23020 _ACEOF
23021
23022 else
23023         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23024 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23025 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23026   echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028
23029             if test "$cross_compiling" = yes; then
23030                   wx_cv_type_va_list_lvalue=yes
23031
23032 else
23033   cat >conftest.$ac_ext <<_ACEOF
23034
23035                 #include <stdarg.h>
23036                 int foo(char *f, ...)
23037                 {
23038                     va_list ap1, ap2;
23039                     va_start(ap1, f);
23040                     ap2 = ap1;
23041                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23042                         return 1;
23043                     va_end(ap2);
23044                     va_end(ap1);
23045                     return 0;
23046                 }
23047                 int main()
23048                 {
23049                     return foo("hi", 17);
23050                 }
23051 _ACEOF
23052 rm -f conftest$ac_exeext
23053 if { (ac_try="$ac_link"
23054 case "(($ac_try" in
23055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056   *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059   (eval "$ac_link") 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23063   { (case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_try") 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; }; then
23072   wx_cv_type_va_list_lvalue=yes
23073 else
23074   echo "$as_me: program exited with status $ac_status" >&5
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ( exit $ac_status )
23079 wx_cv_type_va_list_lvalue=no
23080 fi
23081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23082 fi
23083
23084
23085
23086
23087 fi
23088 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23089 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23090
23091     if test $wx_cv_type_va_list_lvalue != "yes"; then
23092                         cat >>confdefs.h <<\_ACEOF
23093 #define VA_LIST_IS_ARRAY 1
23094 _ACEOF
23095
23096     fi
23097 fi
23098
23099 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23100
23101 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23102 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23103 if test "${wx_cv_have_variadic_macros+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106
23107                         ac_ext=cpp
23108 ac_cpp='$CXXCPP $CPPFLAGS'
23109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23112
23113         cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119
23120                     #include <stdio.h>
23121                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23122
23123 int
23124 main ()
23125 {
23126
23127                     test("%s %d %p", "test", 1, 0);
23128
23129
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138   *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141   (eval "$ac_compile") 2>conftest.er1
23142   ac_status=$?
23143   grep -v '^ *+' conftest.er1 >conftest.err
23144   rm -f conftest.er1
23145   cat conftest.err >&5
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } && {
23148          test -z "$ac_cxx_werror_flag" ||
23149          test ! -s conftest.err
23150        } && test -s conftest.$ac_objext; then
23151   wx_cv_have_variadic_macros=yes
23152 else
23153   echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156         wx_cv_have_variadic_macros=no
23157
23158 fi
23159
23160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161         ac_ext=c
23162 ac_cpp='$CPP $CPPFLAGS'
23163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23166
23167
23168
23169 fi
23170 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23171 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23172
23173 if test $wx_cv_have_variadic_macros = "yes"; then
23174     cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_VARIADIC_MACROS 1
23176 _ACEOF
23177
23178 fi
23179
23180 fi
23181 # Check whether --enable-largefile was given.
23182 if test "${enable_largefile+set}" = set; then
23183   enableval=$enable_largefile;
23184 fi
23185
23186 if test "$enable_largefile" != no; then
23187             wx_largefile=no
23188
23189     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23190 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23191 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23192   echo $ECHO_N "(cached) $ECHO_C" >&6
23193 else
23194
23195           cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201 #define _FILE_OFFSET_BITS 64
23202                           #include <sys/types.h>
23203 int
23204 main ()
23205 {
23206 typedef struct {
23207     unsigned int field: sizeof(off_t) == 8;
23208 } wxlf;
23209
23210   ;
23211   return 0;
23212 }
23213 _ACEOF
23214 rm -f conftest.$ac_objext
23215 if { (ac_try="$ac_compile"
23216 case "(($ac_try" in
23217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218   *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221   (eval "$ac_compile") 2>conftest.er1
23222   ac_status=$?
23223   grep -v '^ *+' conftest.er1 >conftest.err
23224   rm -f conftest.er1
23225   cat conftest.err >&5
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } && {
23228          test -z "$ac_c_werror_flag" ||
23229          test ! -s conftest.err
23230        } && test -s conftest.$ac_objext; then
23231   ac_cv_sys_file_offset_bits=64
23232 else
23233   echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236         ac_cv_sys_file_offset_bits=no
23237 fi
23238
23239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23240
23241
23242 fi
23243 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23244 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23245
23246     if test "$ac_cv_sys_file_offset_bits" != no; then
23247         wx_largefile=yes
23248         cat >>confdefs.h <<_ACEOF
23249 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23250 _ACEOF
23251
23252     fi
23253
23254     if test "x$wx_largefile" != "xyes"; then
23255
23256     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23257 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23258 if test "${ac_cv_sys_large_files+set}" = set; then
23259   echo $ECHO_N "(cached) $ECHO_C" >&6
23260 else
23261
23262           cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h.  */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h.  */
23268 #define _LARGE_FILES 1
23269                           #include <sys/types.h>
23270 int
23271 main ()
23272 {
23273 typedef struct {
23274     unsigned int field: sizeof(off_t) == 8;
23275 } wxlf;
23276
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext
23282 if { (ac_try="$ac_compile"
23283 case "(($ac_try" in
23284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285   *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288   (eval "$ac_compile") 2>conftest.er1
23289   ac_status=$?
23290   grep -v '^ *+' conftest.er1 >conftest.err
23291   rm -f conftest.er1
23292   cat conftest.err >&5
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); } && {
23295          test -z "$ac_c_werror_flag" ||
23296          test ! -s conftest.err
23297        } && test -s conftest.$ac_objext; then
23298   ac_cv_sys_large_files=1
23299 else
23300   echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23302
23303         ac_cv_sys_large_files=no
23304 fi
23305
23306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307
23308
23309 fi
23310 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23311 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23312
23313     if test "$ac_cv_sys_large_files" != no; then
23314         wx_largefile=yes
23315         cat >>confdefs.h <<_ACEOF
23316 #define _LARGE_FILES $ac_cv_sys_large_files
23317 _ACEOF
23318
23319     fi
23320
23321     fi
23322
23323     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23324 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23325     if test "x$wx_largefile" = "xyes"; then
23326         cat >>confdefs.h <<\_ACEOF
23327 #define HAVE_LARGEFILE_SUPPORT 1
23328 _ACEOF
23329
23330     fi
23331     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23332 echo "${ECHO_T}$wx_largefile" >&6; }
23333 fi
23334
23335
23336 if test "x$wx_largefile" = "xyes"; then
23337     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23338         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23339
23340                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23341             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23342 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23343 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23344   echo $ECHO_N "(cached) $ECHO_C" >&6
23345 else
23346
23347                     ac_ext=cpp
23348 ac_cpp='$CXXCPP $CPPFLAGS'
23349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23352
23353                     cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359
23360 int
23361 main ()
23362 {
23363
23364                             #ifndef __STDC_EXT__
23365                                 choke me
23366                             #endif
23367
23368   ;
23369   return 0;
23370 }
23371 _ACEOF
23372 rm -f conftest.$ac_objext
23373 if { (ac_try="$ac_compile"
23374 case "(($ac_try" in
23375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376   *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379   (eval "$ac_compile") 2>conftest.er1
23380   ac_status=$?
23381   grep -v '^ *+' conftest.er1 >conftest.err
23382   rm -f conftest.er1
23383   cat conftest.err >&5
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); } && {
23386          test -z "$ac_cxx_werror_flag" ||
23387          test ! -s conftest.err
23388        } && test -s conftest.$ac_objext; then
23389   wx_cv_STDC_EXT_required=no
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394         wx_cv_STDC_EXT_required=yes
23395
23396 fi
23397
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399                     ac_ext=c
23400 ac_cpp='$CPP $CPPFLAGS'
23401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23404
23405
23406
23407 fi
23408 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23409 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23410             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23411                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23412             fi
23413         fi
23414     else
23415         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23416     fi
23417         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23418 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23419 if test "${ac_cv_sys_largefile_source+set}" = set; then
23420   echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422   while :; do
23423   cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429 #include <sys/types.h> /* for off_t */
23430      #include <stdio.h>
23431 int
23432 main ()
23433 {
23434 int (*fp) (FILE *, off_t, int) = fseeko;
23435      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23436   ;
23437   return 0;
23438 }
23439 _ACEOF
23440 rm -f conftest.$ac_objext conftest$ac_exeext
23441 if { (ac_try="$ac_link"
23442 case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_link") 2>conftest.er1
23448   ac_status=$?
23449   grep -v '^ *+' conftest.er1 >conftest.err
23450   rm -f conftest.er1
23451   cat conftest.err >&5
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); } && {
23454          test -z "$ac_c_werror_flag" ||
23455          test ! -s conftest.err
23456        } && test -s conftest$ac_exeext &&
23457        $as_test_x conftest$ac_exeext; then
23458   ac_cv_sys_largefile_source=no; break
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463
23464 fi
23465
23466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23467       conftest$ac_exeext conftest.$ac_ext
23468   cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474 #define _LARGEFILE_SOURCE 1
23475 #include <sys/types.h> /* for off_t */
23476      #include <stdio.h>
23477 int
23478 main ()
23479 {
23480 int (*fp) (FILE *, off_t, int) = fseeko;
23481      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 rm -f conftest.$ac_objext conftest$ac_exeext
23487 if { (ac_try="$ac_link"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493   (eval "$ac_link") 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && {
23500          test -z "$ac_c_werror_flag" ||
23501          test ! -s conftest.err
23502        } && test -s conftest$ac_exeext &&
23503        $as_test_x conftest$ac_exeext; then
23504   ac_cv_sys_largefile_source=1; break
23505 else
23506   echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509
23510 fi
23511
23512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23513       conftest$ac_exeext conftest.$ac_ext
23514   ac_cv_sys_largefile_source=unknown
23515   break
23516 done
23517 fi
23518 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23519 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23520 case $ac_cv_sys_largefile_source in #(
23521   no | unknown) ;;
23522   *)
23523 cat >>confdefs.h <<_ACEOF
23524 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23525 _ACEOF
23526 ;;
23527 esac
23528 rm -f conftest*
23529
23530 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23531 # in glibc 2.1.3, but that breaks too many other things.
23532 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23533 if test $ac_cv_sys_largefile_source != unknown; then
23534
23535 cat >>confdefs.h <<\_ACEOF
23536 #define HAVE_FSEEKO 1
23537 _ACEOF
23538
23539 fi
23540
23541     if test "$ac_cv_sys_largefile_source" != no; then
23542         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23543     fi
23544 fi
23545
23546 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23547 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23548 if test "${ac_cv_c_bigendian+set}" = set; then
23549   echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551   ac_cv_c_bigendian=unknown
23552 # See if sys/param.h defines the BYTE_ORDER macro.
23553 cat >conftest.$ac_ext <<_ACEOF
23554 /* confdefs.h.  */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h.  */
23559 #include <sys/types.h>
23560 #include <sys/param.h>
23561 int
23562 main ()
23563 {
23564
23565 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23566  bogus endian macros
23567 #endif
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576   *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579   (eval "$ac_compile") 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } && {
23586          test -z "$ac_c_werror_flag" ||
23587          test ! -s conftest.err
23588        } && test -s conftest.$ac_objext; then
23589   # It does; now see whether it defined to BIG_ENDIAN or not.
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596 #include <sys/types.h>
23597 #include <sys/param.h>
23598 int
23599 main ()
23600 {
23601
23602 #if BYTE_ORDER != BIG_ENDIAN
23603  not big endian
23604 #endif
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 rm -f conftest.$ac_objext
23610 if { (ac_try="$ac_compile"
23611 case "(($ac_try" in
23612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613   *) ac_try_echo=$ac_try;;
23614 esac
23615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23616   (eval "$ac_compile") 2>conftest.er1
23617   ac_status=$?
23618   grep -v '^ *+' conftest.er1 >conftest.err
23619   rm -f conftest.er1
23620   cat conftest.err >&5
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); } && {
23623          test -z "$ac_c_werror_flag" ||
23624          test ! -s conftest.err
23625        } && test -s conftest.$ac_objext; then
23626   ac_cv_c_bigendian=yes
23627 else
23628   echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23630
23631         ac_cv_c_bigendian=no
23632 fi
23633
23634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639
23640 fi
23641
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 if test $ac_cv_c_bigendian = unknown; then
23644 if test "$cross_compiling" = yes; then
23645   ac_cv_c_bigendian=unknown
23646 else
23647   cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 main () {
23654   /* Are we little or big endian?  From Harbison&Steele.  */
23655   union
23656   {
23657     long l;
23658     char c[sizeof (long)];
23659   } u;
23660   u.l = 1;
23661   exit (u.c[sizeof (long) - 1] == 1);
23662 }
23663 _ACEOF
23664 rm -f conftest$ac_exeext
23665 if { (ac_try="$ac_link"
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_link") 2>&5
23672   ac_status=$?
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23675   { (case "(($ac_try" in
23676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677   *) ac_try_echo=$ac_try;;
23678 esac
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680   (eval "$ac_try") 2>&5
23681   ac_status=$?
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); }; }; then
23684   ac_cv_c_bigendian=no
23685 else
23686   echo "$as_me: program exited with status $ac_status" >&5
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 ( exit $ac_status )
23691 ac_cv_c_bigendian=yes
23692 fi
23693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23694 fi
23695
23696
23697 fi
23698 fi
23699 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23700 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23701 if test $ac_cv_c_bigendian = unknown; then
23702   { 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
23703 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;}
23704 fi
23705 if test $ac_cv_c_bigendian = yes; then
23706   cat >>confdefs.h <<\_ACEOF
23707 #define WORDS_BIGENDIAN 1
23708 _ACEOF
23709
23710 fi
23711
23712
23713
23714
23715     ac_ext=cpp
23716 ac_cpp='$CXXCPP $CPPFLAGS'
23717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23720
23721
23722
23723 for ac_header in iostream
23724 do
23725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23729   echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731   cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737
23738
23739 #include <$ac_header>
23740 _ACEOF
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745   *) ac_try_echo=$ac_try;;
23746 esac
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748   (eval "$ac_compile") 2>conftest.er1
23749   ac_status=$?
23750   grep -v '^ *+' conftest.er1 >conftest.err
23751   rm -f conftest.er1
23752   cat conftest.err >&5
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } && {
23755          test -z "$ac_cxx_werror_flag" ||
23756          test ! -s conftest.err
23757        } && test -s conftest.$ac_objext; then
23758   eval "$as_ac_Header=yes"
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763         eval "$as_ac_Header=no"
23764 fi
23765
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 fi
23768 ac_res=`eval echo '${'$as_ac_Header'}'`
23769                { echo "$as_me:$LINENO: result: $ac_res" >&5
23770 echo "${ECHO_T}$ac_res" >&6; }
23771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23772   cat >>confdefs.h <<_ACEOF
23773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23774 _ACEOF
23775
23776 fi
23777
23778 done
23779
23780
23781     if test "$ac_cv_header_iostream" = "yes" ; then
23782       :
23783     else
23784       cat >>confdefs.h <<\_ACEOF
23785 #define wxUSE_IOSTREAMH 1
23786 _ACEOF
23787
23788     fi
23789
23790     ac_ext=c
23791 ac_cpp='$CPP $CPPFLAGS'
23792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23795
23796
23797
23798
23799   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23800 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23801 if test "${wx_cv_cpp_bool+set}" = set; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804
23805
23806     ac_ext=cpp
23807 ac_cpp='$CXXCPP $CPPFLAGS'
23808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23811
23812
23813     cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819
23820
23821 int
23822 main ()
23823 {
23824
23825         bool b = true;
23826
23827         return 0;
23828
23829   ;
23830   return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837   *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840   (eval "$ac_compile") 2>conftest.er1
23841   ac_status=$?
23842   grep -v '^ *+' conftest.er1 >conftest.err
23843   rm -f conftest.er1
23844   cat conftest.err >&5
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); } && {
23847          test -z "$ac_cxx_werror_flag" ||
23848          test ! -s conftest.err
23849        } && test -s conftest.$ac_objext; then
23850
23851         wx_cv_cpp_bool=yes
23852
23853 else
23854   echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857
23858         wx_cv_cpp_bool=no
23859
23860
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864
23865     ac_ext=c
23866 ac_cpp='$CPP $CPPFLAGS'
23867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23870
23871
23872 fi
23873 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23874 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23875
23876   if test "$wx_cv_cpp_bool" = "yes"; then
23877     cat >>confdefs.h <<\_ACEOF
23878 #define HAVE_BOOL 1
23879 _ACEOF
23880
23881   fi
23882
23883
23884
23885   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23886 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23887 if test "${wx_cv_explicit+set}" = set; then
23888   echo $ECHO_N "(cached) $ECHO_C" >&6
23889 else
23890
23891
23892     ac_ext=cpp
23893 ac_cpp='$CXXCPP $CPPFLAGS'
23894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23897
23898
23899             cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h.  */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h.  */
23905
23906         class Foo { public: explicit Foo(int) {} };
23907
23908 int
23909 main ()
23910 {
23911
23912         return 0;
23913
23914   ;
23915   return 0;
23916 }
23917 _ACEOF
23918 rm -f conftest.$ac_objext
23919 if { (ac_try="$ac_compile"
23920 case "(($ac_try" in
23921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922   *) ac_try_echo=$ac_try;;
23923 esac
23924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23925   (eval "$ac_compile") 2>conftest.er1
23926   ac_status=$?
23927   grep -v '^ *+' conftest.er1 >conftest.err
23928   rm -f conftest.er1
23929   cat conftest.err >&5
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); } && {
23932          test -z "$ac_cxx_werror_flag" ||
23933          test ! -s conftest.err
23934        } && test -s conftest.$ac_objext; then
23935
23936         cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942
23943                 class Foo { public: explicit Foo(int) {} };
23944                 static void TakeFoo(const Foo& foo) { }
23945
23946 int
23947 main ()
23948 {
23949
23950                 TakeFoo(17);
23951                 return 0;
23952
23953   ;
23954   return 0;
23955 }
23956 _ACEOF
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961   *) ac_try_echo=$ac_try;;
23962 esac
23963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23964   (eval "$ac_compile") 2>conftest.er1
23965   ac_status=$?
23966   grep -v '^ *+' conftest.er1 >conftest.err
23967   rm -f conftest.er1
23968   cat conftest.err >&5
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && {
23971          test -z "$ac_cxx_werror_flag" ||
23972          test ! -s conftest.err
23973        } && test -s conftest.$ac_objext; then
23974   wx_cv_explicit=no
23975 else
23976   echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979         wx_cv_explicit=yes
23980
23981 fi
23982
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23988
23989         wx_cv_explicit=no
23990
23991 fi
23992
23993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994
23995     ac_ext=c
23996 ac_cpp='$CPP $CPPFLAGS'
23997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24000
24001
24002 fi
24003 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24004 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24005
24006   if test "$wx_cv_explicit" = "yes"; then
24007     cat >>confdefs.h <<\_ACEOF
24008 #define HAVE_EXPLICIT 1
24009 _ACEOF
24010
24011   fi
24012
24013
24014 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
24015 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
24016 if test "${ac_cv_cxx_const_cast+set}" = set; then
24017   echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019
24020  ac_ext=cpp
24021 ac_cpp='$CXXCPP $CPPFLAGS'
24022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24025
24026  cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h.  */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h.  */
24032
24033 int
24034 main ()
24035 {
24036 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
24037   ;
24038   return 0;
24039 }
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_cxx_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   ac_cv_cxx_const_cast=yes
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063         ac_cv_cxx_const_cast=no
24064 fi
24065
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067  ac_ext=c
24068 ac_cpp='$CPP $CPPFLAGS'
24069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24072
24073
24074 fi
24075 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
24076 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
24077 if test "$ac_cv_cxx_const_cast" = yes; then
24078
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE_CONST_CAST
24081 _ACEOF
24082
24083 fi
24084
24085 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
24086 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
24087 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
24088   echo $ECHO_N "(cached) $ECHO_C" >&6
24089 else
24090
24091  ac_ext=cpp
24092 ac_cpp='$CXXCPP $CPPFLAGS'
24093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24096
24097  cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 #include <typeinfo>
24104 class Base { public : Base () {} virtual void f () = 0;};
24105 class Derived : public Base { public : Derived () {} virtual void f () {} };
24106 class Unrelated { public : Unrelated () {} };
24107 int g (Unrelated&) { return 0; }
24108 int
24109 main ()
24110 {
24111
24112 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121   *) ac_try_echo=$ac_try;;
24122 esac
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124   (eval "$ac_compile") 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } && {
24131          test -z "$ac_cxx_werror_flag" ||
24132          test ! -s conftest.err
24133        } && test -s conftest.$ac_objext; then
24134   ac_cv_cxx_reinterpret_cast=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139         ac_cv_cxx_reinterpret_cast=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143  ac_ext=c
24144 ac_cpp='$CPP $CPPFLAGS'
24145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24148
24149
24150 fi
24151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24152 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24153 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24154
24155 cat >>confdefs.h <<\_ACEOF
24156 #define HAVE_REINTERPRET_CAST
24157 _ACEOF
24158
24159 fi
24160
24161 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24162 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24163 if test "${ac_cv_cxx_static_cast+set}" = set; then
24164   echo $ECHO_N "(cached) $ECHO_C" >&6
24165 else
24166
24167  ac_ext=cpp
24168 ac_cpp='$CXXCPP $CPPFLAGS'
24169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24172
24173  cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h.  */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h.  */
24179 #include <typeinfo>
24180 class Base { public : Base () {} virtual void f () = 0; };
24181 class Derived : public Base { public : Derived () {} virtual void f () {} };
24182 int g (Derived&) { return 0; }
24183 int
24184 main ()
24185 {
24186
24187 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24188   ;
24189   return 0;
24190 }
24191 _ACEOF
24192 rm -f conftest.$ac_objext
24193 if { (ac_try="$ac_compile"
24194 case "(($ac_try" in
24195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196   *) ac_try_echo=$ac_try;;
24197 esac
24198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24199   (eval "$ac_compile") 2>conftest.er1
24200   ac_status=$?
24201   grep -v '^ *+' conftest.er1 >conftest.err
24202   rm -f conftest.er1
24203   cat conftest.err >&5
24204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205   (exit $ac_status); } && {
24206          test -z "$ac_cxx_werror_flag" ||
24207          test ! -s conftest.err
24208        } && test -s conftest.$ac_objext; then
24209   ac_cv_cxx_static_cast=yes
24210 else
24211   echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214         ac_cv_cxx_static_cast=no
24215 fi
24216
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218  ac_ext=c
24219 ac_cpp='$CPP $CPPFLAGS'
24220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24223
24224
24225 fi
24226 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24227 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24228 if test "$ac_cv_cxx_static_cast" = yes; then
24229
24230 cat >>confdefs.h <<\_ACEOF
24231 #define HAVE_STATIC_CAST
24232 _ACEOF
24233
24234 fi
24235
24236
24237 if test "x$SUNCXX" = xyes; then
24238     CXXFLAGS="-features=tmplife $CXXFLAGS"
24239 fi
24240
24241 if test "x$SUNCC" = xyes; then
24242     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24243 fi
24244
24245 if test "x$SGICC" = "xyes"; then
24246     CFLAGS="-woff 3970 $CFLAGS"
24247 fi
24248 if test "x$SGICXX" = "xyes"; then
24249     CXXFLAGS="-woff 3970 $CXXFLAGS"
24250 fi
24251
24252 if test "x$HPCC" = "xyes"; then
24253                     CFLAGS="+W 2011,2450 $CFLAGS"
24254 fi
24255 if test "x$HPCXX" = "xyes"; then
24256             CXXFLAGS="+W 2340 $CXXFLAGS"
24257 fi
24258
24259 if test "x$COMPAQCXX" = "xyes"; then
24260                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24261 fi
24262
24263 ac_ext=cpp
24264 ac_cpp='$CXXCPP $CPPFLAGS'
24265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24268
24269
24270 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24271     if test "$wxUSE_UNICODE" = "yes"; then
24272         std_string="std::wstring"
24273         char_type="wchar_t"
24274     else
24275         std_string="std::string"
24276         char_type="char"
24277     fi
24278
24279         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24280 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24281 if test "${wx_cv_class_stdstring+set}" = set; then
24282   echo $ECHO_N "(cached) $ECHO_C" >&6
24283 else
24284
24285             cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 #include <string>
24292 int
24293 main ()
24294 {
24295 $std_string foo;
24296   ;
24297   return 0;
24298 }
24299 _ACEOF
24300 rm -f conftest.$ac_objext
24301 if { (ac_try="$ac_compile"
24302 case "(($ac_try" in
24303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304   *) ac_try_echo=$ac_try;;
24305 esac
24306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24307   (eval "$ac_compile") 2>conftest.er1
24308   ac_status=$?
24309   grep -v '^ *+' conftest.er1 >conftest.err
24310   rm -f conftest.er1
24311   cat conftest.err >&5
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); } && {
24314          test -z "$ac_cxx_werror_flag" ||
24315          test ! -s conftest.err
24316        } && test -s conftest.$ac_objext; then
24317   wx_cv_class_stdstring=yes
24318 else
24319   echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24321
24322         wx_cv_class_stdstring=no
24323
24324 fi
24325
24326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327
24328
24329 fi
24330 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24331 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24332
24333     if test "$wx_cv_class_stdstring" = yes; then
24334         if test "$wxUSE_UNICODE" = "yes"; then
24335             cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_STD_WSTRING 1
24337 _ACEOF
24338
24339         fi
24340                     else
24341         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24342 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24343 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24344   echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346
24347                 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354                     #ifdef HAVE_WCHAR_H
24355                     #  ifdef __CYGWIN__
24356                     #    include <stddef.h>
24357                     #  endif
24358                     #  include <wchar.h>
24359                     #endif
24360                     #ifdef HAVE_STDLIB_H
24361                     #  include <stdlib.h>
24362                     #endif
24363                     #include <stdio.h>
24364                     #include <string>
24365
24366 int
24367 main ()
24368 {
24369 std::basic_string<$char_type> foo;
24370                      const $char_type* dummy = foo.c_str();
24371   ;
24372   return 0;
24373 }
24374 _ACEOF
24375 rm -f conftest.$ac_objext
24376 if { (ac_try="$ac_compile"
24377 case "(($ac_try" in
24378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379   *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382   (eval "$ac_compile") 2>conftest.er1
24383   ac_status=$?
24384   grep -v '^ *+' conftest.er1 >conftest.err
24385   rm -f conftest.er1
24386   cat conftest.err >&5
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); } && {
24389          test -z "$ac_cxx_werror_flag" ||
24390          test ! -s conftest.err
24391        } && test -s conftest.$ac_objext; then
24392   wx_cv_class_stdbasicstring=yes
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         wx_cv_class_stdbasicstring=no
24398
24399 fi
24400
24401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24402
24403
24404 fi
24405 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24406 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24407
24408         if test "$wx_cv_class_stdbasicstring" != yes; then
24409             if test "$wxUSE_STL" = "yes"; then
24410                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24411 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24412    { (exit 1); exit 1; }; }
24413             elif test "$wxUSE_STD_STRING" = "yes"; then
24414                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24415 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24416    { (exit 1); exit 1; }; }
24417             else
24418                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24419 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24420                 wxUSE_STD_STRING=no
24421             fi
24422         fi
24423     fi
24424 fi
24425
24426 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24427     { echo "$as_me:$LINENO: checking for std::istream" >&5
24428 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24429 if test "${ac_cv_type_std__istream+set}" = set; then
24430   echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24432   cat >conftest.$ac_ext <<_ACEOF
24433 /* confdefs.h.  */
24434 _ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h.  */
24438 #include <iostream>
24439
24440 typedef std::istream ac__type_new_;
24441 int
24442 main ()
24443 {
24444 if ((ac__type_new_ *) 0)
24445   return 0;
24446 if (sizeof (ac__type_new_))
24447   return 0;
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 rm -f conftest.$ac_objext
24453 if { (ac_try="$ac_compile"
24454 case "(($ac_try" in
24455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456   *) ac_try_echo=$ac_try;;
24457 esac
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459   (eval "$ac_compile") 2>conftest.er1
24460   ac_status=$?
24461   grep -v '^ *+' conftest.er1 >conftest.err
24462   rm -f conftest.er1
24463   cat conftest.err >&5
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); } && {
24466          test -z "$ac_cxx_werror_flag" ||
24467          test ! -s conftest.err
24468        } && test -s conftest.$ac_objext; then
24469   ac_cv_type_std__istream=yes
24470 else
24471   echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24473
24474         ac_cv_type_std__istream=no
24475 fi
24476
24477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24478 fi
24479 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24480 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24481 if test $ac_cv_type_std__istream = yes; then
24482
24483 cat >>confdefs.h <<_ACEOF
24484 #define HAVE_STD__ISTREAM 1
24485 _ACEOF
24486
24487
24488 else
24489   wxUSE_STD_IOSTREAM=no
24490 fi
24491 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24492 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24493 if test "${ac_cv_type_std__ostream+set}" = set; then
24494   echo $ECHO_N "(cached) $ECHO_C" >&6
24495 else
24496   cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502 #include <iostream>
24503
24504 typedef std::ostream ac__type_new_;
24505 int
24506 main ()
24507 {
24508 if ((ac__type_new_ *) 0)
24509   return 0;
24510 if (sizeof (ac__type_new_))
24511   return 0;
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520   *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523   (eval "$ac_compile") 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && {
24530          test -z "$ac_cxx_werror_flag" ||
24531          test ! -s conftest.err
24532        } && test -s conftest.$ac_objext; then
24533   ac_cv_type_std__ostream=yes
24534 else
24535   echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538         ac_cv_type_std__ostream=no
24539 fi
24540
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 fi
24543 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24544 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24545 if test $ac_cv_type_std__ostream = yes; then
24546
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_STD__OSTREAM 1
24549 _ACEOF
24550
24551
24552 else
24553   wxUSE_STD_IOSTREAM=no
24554 fi
24555
24556
24557     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24558         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24559             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24560 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24561    { (exit 1); exit 1; }; }
24562         else
24563             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24564 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24565         fi
24566     fi
24567 fi
24568
24569 if test "$wxUSE_STL" = "yes"; then
24570         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24571 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24572 if test "${wx_cv_lib_stl+set}" = set; then
24573   echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575   cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h.  */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h.  */
24581 #include <string>
24582             #include <functional>
24583             #include <algorithm>
24584             #include <vector>
24585             #include <list>
24586 int
24587 main ()
24588 {
24589 std::vector<int> moo;
24590              std::list<int> foo;
24591              std::vector<int>::iterator it =
24592                  std::find_if(moo.begin(), moo.end(),
24593                               std::bind2nd(std::less<int>(), 3));
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest.$ac_objext
24599 if { (ac_try="$ac_compile"
24600 case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_compile") 2>conftest.er1
24606   ac_status=$?
24607   grep -v '^ *+' conftest.er1 >conftest.err
24608   rm -f conftest.er1
24609   cat conftest.err >&5
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); } && {
24612          test -z "$ac_cxx_werror_flag" ||
24613          test ! -s conftest.err
24614        } && test -s conftest.$ac_objext; then
24615   wx_cv_lib_stl=yes
24616 else
24617   echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620         wx_cv_lib_stl=no
24621
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625
24626 fi
24627 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24628 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24629
24630     if test "$wx_cv_lib_stl" != yes; then
24631          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24632 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24633    { (exit 1); exit 1; }; }
24634     fi
24635
24636         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24637 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24638 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24639   echo $ECHO_N "(cached) $ECHO_C" >&6
24640 else
24641   cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647 #include <string>
24648 int
24649 main ()
24650 {
24651 std::string foo, bar;
24652             foo.compare(bar);
24653             foo.compare(1, 1, bar);
24654             foo.compare(1, 1, bar, 1, 1);
24655             foo.compare("");
24656             foo.compare(1, 1, "");
24657             foo.compare(1, 1, "", 2);
24658   ;
24659   return 0;
24660 }
24661 _ACEOF
24662 rm -f conftest.$ac_objext
24663 if { (ac_try="$ac_compile"
24664 case "(($ac_try" in
24665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666   *) ac_try_echo=$ac_try;;
24667 esac
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669   (eval "$ac_compile") 2>conftest.er1
24670   ac_status=$?
24671   grep -v '^ *+' conftest.er1 >conftest.err
24672   rm -f conftest.er1
24673   cat conftest.err >&5
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); } && {
24676          test -z "$ac_cxx_werror_flag" ||
24677          test ! -s conftest.err
24678        } && test -s conftest.$ac_objext; then
24679   wx_cv_func_stdstring_compare=yes
24680 else
24681   echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684         wx_cv_func_stdstring_compare=no
24685
24686 fi
24687
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689
24690 fi
24691 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24692 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24693
24694     if test "$wx_cv_func_stdstring_compare" = yes; then
24695         cat >>confdefs.h <<\_ACEOF
24696 #define HAVE_STD_STRING_COMPARE 1
24697 _ACEOF
24698
24699     fi
24700
24701     if test "$wx_cv_class_gnuhashmapset" = yes; then
24702          cat >>confdefs.h <<\_ACEOF
24703 #define HAVE_EXT_HASH_MAP 1
24704 _ACEOF
24705
24706          cat >>confdefs.h <<\_ACEOF
24707 #define HAVE_GNU_CXX_HASH_MAP 1
24708 _ACEOF
24709
24710     fi
24711
24712     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24713 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24714 if test "${ac_cv_header_unordered_map+set}" = set; then
24715   echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717   cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723
24724
24725
24726 #include <unordered_map>
24727 _ACEOF
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_compile") 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } && {
24742          test -z "$ac_cxx_werror_flag" ||
24743          test ! -s conftest.err
24744        } && test -s conftest.$ac_objext; then
24745   ac_cv_header_unordered_map=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750         ac_cv_header_unordered_map=no
24751 fi
24752
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24756 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24757 if test $ac_cv_header_unordered_map = yes; then
24758   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24759 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24760 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763   cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h.  */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h.  */
24769 #include <unordered_map>
24770                 #include <unordered_set>
24771 int
24772 main ()
24773 {
24774 std::unordered_map<double*, char*> test1;
24775                  std::unordered_set<char*> test2;
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest.$ac_objext
24781 if { (ac_try="$ac_compile"
24782 case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_compile") 2>conftest.er1
24788   ac_status=$?
24789   grep -v '^ *+' conftest.er1 >conftest.err
24790   rm -f conftest.er1
24791   cat conftest.err >&5
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); } && {
24794          test -z "$ac_cxx_werror_flag" ||
24795          test ! -s conftest.err
24796        } && test -s conftest.$ac_objext; then
24797   wx_cv_class_stdunorderedmapset=yes
24798 else
24799   echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24801
24802         wx_cv_class_stdunorderedmapset=no
24803 fi
24804
24805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806
24807
24808 fi
24809 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24810 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24811 fi
24812
24813
24814
24815     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24816          cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_STD_UNORDERED_MAP 1
24818 _ACEOF
24819
24820          cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_STD_UNORDERED_SET 1
24822 _ACEOF
24823
24824     else
24825         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24826 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24827 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 else
24830   cat >conftest.$ac_ext <<_ACEOF
24831 /* confdefs.h.  */
24832 _ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h.  */
24836
24837
24838
24839 #include <tr1/unordered_map>
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848   (eval "$ac_compile") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } && {
24855          test -z "$ac_cxx_werror_flag" ||
24856          test ! -s conftest.err
24857        } && test -s conftest.$ac_objext; then
24858   ac_cv_header_tr1_unordered_map=yes
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863         ac_cv_header_tr1_unordered_map=no
24864 fi
24865
24866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867 fi
24868 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24869 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24870 if test $ac_cv_header_tr1_unordered_map = yes; then
24871   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24872 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24873 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24874   echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876   cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 #include <tr1/unordered_map>
24883                     #include <tr1/unordered_set>
24884 int
24885 main ()
24886 {
24887 std::tr1::unordered_map<double*, char*> test1;
24888                      std::tr1::unordered_set<char*> test2;
24889             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24890             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24891             #endif
24892   ;
24893   return 0;
24894 }
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900   *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903   (eval "$ac_compile") 2>conftest.er1
24904   ac_status=$?
24905   grep -v '^ *+' conftest.er1 >conftest.err
24906   rm -f conftest.er1
24907   cat conftest.err >&5
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } && {
24910          test -z "$ac_cxx_werror_flag" ||
24911          test ! -s conftest.err
24912        } && test -s conftest.$ac_objext; then
24913   wx_cv_class_tr1unorderedmapset=yes
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918         wx_cv_class_tr1unorderedmapset=no
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922
24923
24924 fi
24925 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
24926 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
24927 fi
24928
24929
24930
24931         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
24932             cat >>confdefs.h <<\_ACEOF
24933 #define HAVE_TR1_UNORDERED_MAP 1
24934 _ACEOF
24935
24936             cat >>confdefs.h <<\_ACEOF
24937 #define HAVE_TR1_UNORDERED_SET 1
24938 _ACEOF
24939
24940         else
24941                         { echo "$as_me:$LINENO: checking for hash_map" >&5
24942 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24943 if test "${ac_cv_header_hash_map+set}" = set; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946   cat >conftest.$ac_ext <<_ACEOF
24947 /* confdefs.h.  */
24948 _ACEOF
24949 cat confdefs.h >>conftest.$ac_ext
24950 cat >>conftest.$ac_ext <<_ACEOF
24951 /* end confdefs.h.  */
24952
24953
24954
24955 #include <hash_map>
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961   *) ac_try_echo=$ac_try;;
24962 esac
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964   (eval "$ac_compile") 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } && {
24971          test -z "$ac_cxx_werror_flag" ||
24972          test ! -s conftest.err
24973        } && test -s conftest.$ac_objext; then
24974   ac_cv_header_hash_map=yes
24975 else
24976   echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979         ac_cv_header_hash_map=no
24980 fi
24981
24982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 fi
24984 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24985 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24986 if test $ac_cv_header_hash_map = yes; then
24987   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
24988 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
24989 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992   cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998 #include <hash_map>
24999                         #include <hash_set>
25000 int
25001 main ()
25002 {
25003 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25004                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_compile") 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } && {
25023          test -z "$ac_cxx_werror_flag" ||
25024          test ! -s conftest.err
25025        } && test -s conftest.$ac_objext; then
25026   wx_cv_class_stdhashmapset=yes
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031         wx_cv_class_stdhashmapset=no
25032 fi
25033
25034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25035
25036
25037 fi
25038 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25039 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25040 fi
25041
25042
25043
25044             if test "$wx_cv_class_stdhashmapset" = yes; then
25045                 cat >>confdefs.h <<\_ACEOF
25046 #define HAVE_HASH_MAP 1
25047 _ACEOF
25048
25049                 cat >>confdefs.h <<\_ACEOF
25050 #define HAVE_STD_HASH_MAP 1
25051 _ACEOF
25052
25053             fi
25054
25055             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25056 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25057 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25058   echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060   cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h.  */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h.  */
25066
25067
25068
25069 #include <ext/hash_map>
25070 _ACEOF
25071 rm -f conftest.$ac_objext
25072 if { (ac_try="$ac_compile"
25073 case "(($ac_try" in
25074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25075   *) ac_try_echo=$ac_try;;
25076 esac
25077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25078   (eval "$ac_compile") 2>conftest.er1
25079   ac_status=$?
25080   grep -v '^ *+' conftest.er1 >conftest.err
25081   rm -f conftest.er1
25082   cat conftest.err >&5
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); } && {
25085          test -z "$ac_cxx_werror_flag" ||
25086          test ! -s conftest.err
25087        } && test -s conftest.$ac_objext; then
25088   ac_cv_header_ext_hash_map=yes
25089 else
25090   echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093         ac_cv_header_ext_hash_map=no
25094 fi
25095
25096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25097 fi
25098 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25099 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25100 if test $ac_cv_header_ext_hash_map = yes; then
25101   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25102 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25103 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25104   echo $ECHO_N "(cached) $ECHO_C" >&6
25105 else
25106   cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112 #include <ext/hash_map>
25113                         #include <ext/hash_set>
25114 int
25115 main ()
25116 {
25117 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25118                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25119   ;
25120   return 0;
25121 }
25122 _ACEOF
25123 rm -f conftest.$ac_objext
25124 if { (ac_try="$ac_compile"
25125 case "(($ac_try" in
25126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127   *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130   (eval "$ac_compile") 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } && {
25137          test -z "$ac_cxx_werror_flag" ||
25138          test ! -s conftest.err
25139        } && test -s conftest.$ac_objext; then
25140   wx_cv_class_gnuhashmapset=yes
25141 else
25142   echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25144
25145         wx_cv_class_gnuhashmapset=no
25146 fi
25147
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149
25150
25151 fi
25152 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25153 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25154 fi
25155
25156
25157
25158         fi
25159     fi
25160 fi
25161
25162
25163
25164   if test -n "$GCC"; then
25165     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25166 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25167     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25168   echo $ECHO_N "(cached) $ECHO_C" >&6
25169 else
25170
25171       cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177
25178 int
25179 main ()
25180 {
25181
25182           unsigned int value=0;
25183           /* wxAtomicInc doesn't use return value here */
25184           __sync_fetch_and_add(&value, 2);
25185           __sync_sub_and_fetch(&value, 1);
25186           /* but wxAtomicDec does, so mimic that: */
25187           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25188
25189   ;
25190   return 0;
25191 }
25192 _ACEOF
25193 rm -f conftest.$ac_objext conftest$ac_exeext
25194 if { (ac_try="$ac_link"
25195 case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_link") 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } && {
25207          test -z "$ac_cxx_werror_flag" ||
25208          test ! -s conftest.err
25209        } && test -s conftest$ac_exeext &&
25210        $as_test_x conftest$ac_exeext; then
25211   wx_cv_cc_gcc_atomic_builtins=yes
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216         wx_cv_cc_gcc_atomic_builtins=no
25217 fi
25218
25219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25220       conftest$ac_exeext conftest.$ac_ext
25221
25222 fi
25223
25224     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25225 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25226     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25227       cat >>confdefs.h <<\_ACEOF
25228 #define HAVE_GCC_ATOMIC_BUILTINS 1
25229 _ACEOF
25230
25231     fi
25232   fi
25233
25234
25235 ac_ext=c
25236 ac_cpp='$CPP $CPPFLAGS'
25237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25240
25241
25242
25243 SEARCH_INCLUDE="\
25244     /usr/local/include        \
25245     /usr/local/X11/include    \
25246     /usr/local/include/X11    \
25247     /usr/local/X11R6/include  \
25248     /usr/local/include/X11R6  \
25249                               \
25250     /usr/Motif-2.1/include    \
25251     /usr/Motif-1.2/include    \
25252     /usr/include/Motif1.2     \
25253                               \
25254     /usr/dt/include           \
25255     /usr/openwin/include      \
25256                               \
25257     /usr/include/Xm           \
25258                               \
25259     /usr/X11R6/include        \
25260     /usr/X11R6.4/include      \
25261                               \
25262     /usr/include/X11R6        \
25263                               \
25264     /usr/X11/include          \
25265     /usr/include/X11          \
25266                               \
25267     /usr/XFree86/include/X11  \
25268     /usr/pkg/include          \
25269                               \
25270     /usr/local/X1R5/include  \
25271     /usr/local/include/X11R5  \
25272     /usr/X11R5/include        \
25273     /usr/include/X11R5        \
25274                               \
25275     /usr/local/X11R4/include  \
25276     /usr/local/include/X11R4  \
25277     /usr/X11R4/include        \
25278     /usr/include/X11R4        \
25279                               \
25280     /usr/openwin/share/include"
25281
25282 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25283 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25284
25285 case "${host}" in
25286     *-*-irix6* )
25287         if test "${wx_cv_std_libpath+set}" = set; then
25288   echo $ECHO_N "(cached) $ECHO_C" >&6
25289 else
25290
25291                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25292                     for e in a so sl dylib dll.a; do
25293                         libc="$d/libc.$e"
25294                         if test -f $libc; then
25295                             save_LIBS="$LIBS"
25296                             LIBS="$libc"
25297                             cat >conftest.$ac_ext <<_ACEOF
25298 int main() { return 0; }
25299 _ACEOF
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301 if { (ac_try="$ac_link"
25302 case "(($ac_try" in
25303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304   *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307   (eval "$ac_link") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest$ac_exeext &&
25317        $as_test_x conftest$ac_exeext; then
25318   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25319 else
25320   echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25322
25323
25324 fi
25325
25326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25327       conftest$ac_exeext conftest.$ac_ext
25328                             LIBS="$save_LIBS"
25329                             if test "x$wx_cv_std_libpath" != "x"; then
25330                                 break 2
25331                             fi
25332                         fi
25333                     done
25334                 done
25335                 if test "x$wx_cv_std_libpath" = "x"; then
25336                     wx_cv_std_libpath="lib"
25337                 fi
25338
25339
25340 fi
25341
25342         ;;
25343
25344     *-*-solaris2* )
25345                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25346             wx_cv_std_libpath="lib/64"
25347         else
25348             wx_cv_std_libpath="lib"
25349         fi
25350         ;;
25351
25352     *-*-linux* )
25353                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25354                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25355             wx_cv_std_libpath="lib64"
25356         else
25357             wx_cv_std_libpath="lib"
25358         fi
25359         ;;
25360
25361     *)
25362         wx_cv_std_libpath="lib";
25363         ;;
25364 esac
25365
25366 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25367 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25368
25369 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25370
25371 if test "$build" != "$host" -a "$GCC" = yes; then
25372                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25373         cross_root=`dirname $cross_root`
25374         cross_root=`dirname $cross_root`
25375
25376                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25377         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25378         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25379
25380                 if test -z "$PKG_CONFIG_PATH"; then
25381             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25382             export PKG_CONFIG_PATH
25383         fi
25384
25385                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25386
25387 ac_find_includes=
25388 for ac_dir in $SEARCH_INCLUDE /usr/include;
25389   do
25390     if test -f "$ac_dir/X11/Intrinsic.h"; then
25391       ac_find_includes=$ac_dir
25392       break
25393     fi
25394   done
25395
25396             x_includes=$ac_find_includes
25397         fi
25398         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25399
25400   ac_find_libraries=
25401   for ac_dir in $SEARCH_LIB;
25402   do
25403     for ac_extension in a so sl dylib dll.a; do
25404       if test -f "$ac_dir/libXt.$ac_extension"; then
25405         ac_find_libraries=$ac_dir
25406         break 2
25407       fi
25408     done
25409   done
25410
25411             x_libraries=$ac_find_libraries
25412         fi
25413     fi
25414 fi
25415
25416
25417 cat >confcache <<\_ACEOF
25418 # This file is a shell script that caches the results of configure
25419 # tests run on this system so they can be shared between configure
25420 # scripts and configure runs, see configure's option --config-cache.
25421 # It is not useful on other systems.  If it contains results you don't
25422 # want to keep, you may remove or edit it.
25423 #
25424 # config.status only pays attention to the cache file if you give it
25425 # the --recheck option to rerun configure.
25426 #
25427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25429 # following values.
25430
25431 _ACEOF
25432
25433 # The following way of writing the cache mishandles newlines in values,
25434 # but we know of no workaround that is simple, portable, and efficient.
25435 # So, we kill variables containing newlines.
25436 # Ultrix sh set writes to stderr and can't be redirected directly,
25437 # and sets the high bit in the cache file unless we assign to the vars.
25438 (
25439   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25440     eval ac_val=\$$ac_var
25441     case $ac_val in #(
25442     *${as_nl}*)
25443       case $ac_var in #(
25444       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25445 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25446       esac
25447       case $ac_var in #(
25448       _ | IFS | as_nl) ;; #(
25449       *) $as_unset $ac_var ;;
25450       esac ;;
25451     esac
25452   done
25453
25454   (set) 2>&1 |
25455     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25456     *${as_nl}ac_space=\ *)
25457       # `set' does not quote correctly, so add quotes (double-quote
25458       # substitution turns \\\\ into \\, and sed turns \\ into \).
25459       sed -n \
25460         "s/'/'\\\\''/g;
25461           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25462       ;; #(
25463     *)
25464       # `set' quotes correctly as required by POSIX, so do not add quotes.
25465       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25466       ;;
25467     esac |
25468     sort
25469 ) |
25470   sed '
25471      /^ac_cv_env_/b end
25472      t clear
25473      :clear
25474      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25475      t end
25476      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25477      :end' >>confcache
25478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25479   if test -w "$cache_file"; then
25480     test "x$cache_file" != "x/dev/null" &&
25481       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25482 echo "$as_me: updating cache $cache_file" >&6;}
25483     cat confcache >$cache_file
25484   else
25485     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25486 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25487   fi
25488 fi
25489 rm -f confcache
25490
25491 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25492     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25493 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25494 if test "${wx_cv_lib_glibc21+set}" = set; then
25495   echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497
25498         cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h.  */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h.  */
25504 #include <features.h>
25505 int
25506 main ()
25507 {
25508
25509                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25510                 not glibc 2.1
25511                 #endif
25512
25513   ;
25514   return 0;
25515 }
25516 _ACEOF
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521   *) ac_try_echo=$ac_try;;
25522 esac
25523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25524   (eval "$ac_compile") 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } && {
25531          test -z "$ac_c_werror_flag" ||
25532          test ! -s conftest.err
25533        } && test -s conftest.$ac_objext; then
25534
25535                 wx_cv_lib_glibc21=yes
25536
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25540
25541
25542                 wx_cv_lib_glibc21=no
25543
25544
25545 fi
25546
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25548
25549 fi
25550 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25551 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25552     if test "$wx_cv_lib_glibc21" = "yes"; then
25553         cat >>confdefs.h <<\_ACEOF
25554 #define wxHAVE_GLIBC2 1
25555 _ACEOF
25556
25557     fi
25558 fi
25559
25560 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25561     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25562         cat >>confdefs.h <<\_ACEOF
25563 #define _GNU_SOURCE 1
25564 _ACEOF
25565
25566     fi
25567 fi
25568
25569 have_cos=0
25570 have_floor=0
25571
25572 for ac_func in cos
25573 do
25574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h.  */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h.  */
25586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25588 #define $ac_func innocuous_$ac_func
25589
25590 /* System header to define __stub macros and hopefully few prototypes,
25591     which can conflict with char $ac_func (); below.
25592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593     <limits.h> exists even on freestanding compilers.  */
25594
25595 #ifdef __STDC__
25596 # include <limits.h>
25597 #else
25598 # include <assert.h>
25599 #endif
25600
25601 #undef $ac_func
25602
25603 /* Override any GCC internal prototype to avoid an error.
25604    Use char because int might match the return type of a GCC
25605    builtin and then its argument prototype would still apply.  */
25606 #ifdef __cplusplus
25607 extern "C"
25608 #endif
25609 char $ac_func ();
25610 /* The GNU C library defines this for functions which it implements
25611     to always fail with ENOSYS.  Some functions are actually named
25612     something starting with __ and the normal name is an alias.  */
25613 #if defined __stub_$ac_func || defined __stub___$ac_func
25614 choke me
25615 #endif
25616
25617 int
25618 main ()
25619 {
25620 return $ac_func ();
25621   ;
25622   return 0;
25623 }
25624 _ACEOF
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (ac_try="$ac_link"
25627 case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_link") 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && {
25639          test -z "$ac_c_werror_flag" ||
25640          test ! -s conftest.err
25641        } && test -s conftest$ac_exeext &&
25642        $as_test_x conftest$ac_exeext; then
25643   eval "$as_ac_var=yes"
25644 else
25645   echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648         eval "$as_ac_var=no"
25649 fi
25650
25651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25652       conftest$ac_exeext conftest.$ac_ext
25653 fi
25654 ac_res=`eval echo '${'$as_ac_var'}'`
25655                { echo "$as_me:$LINENO: result: $ac_res" >&5
25656 echo "${ECHO_T}$ac_res" >&6; }
25657 if test `eval echo '${'$as_ac_var'}'` = yes; then
25658   cat >>confdefs.h <<_ACEOF
25659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25660 _ACEOF
25661  have_cos=1
25662 fi
25663 done
25664
25665
25666 for ac_func in floor
25667 do
25668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25682 #define $ac_func innocuous_$ac_func
25683
25684 /* System header to define __stub macros and hopefully few prototypes,
25685     which can conflict with char $ac_func (); below.
25686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25687     <limits.h> exists even on freestanding compilers.  */
25688
25689 #ifdef __STDC__
25690 # include <limits.h>
25691 #else
25692 # include <assert.h>
25693 #endif
25694
25695 #undef $ac_func
25696
25697 /* Override any GCC internal prototype to avoid an error.
25698    Use char because int might match the return type of a GCC
25699    builtin and then its argument prototype would still apply.  */
25700 #ifdef __cplusplus
25701 extern "C"
25702 #endif
25703 char $ac_func ();
25704 /* The GNU C library defines this for functions which it implements
25705     to always fail with ENOSYS.  Some functions are actually named
25706     something starting with __ and the normal name is an alias.  */
25707 #if defined __stub_$ac_func || defined __stub___$ac_func
25708 choke me
25709 #endif
25710
25711 int
25712 main ()
25713 {
25714 return $ac_func ();
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 rm -f conftest.$ac_objext conftest$ac_exeext
25720 if { (ac_try="$ac_link"
25721 case "(($ac_try" in
25722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723   *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726   (eval "$ac_link") 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } && {
25733          test -z "$ac_c_werror_flag" ||
25734          test ! -s conftest.err
25735        } && test -s conftest$ac_exeext &&
25736        $as_test_x conftest$ac_exeext; then
25737   eval "$as_ac_var=yes"
25738 else
25739   echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742         eval "$as_ac_var=no"
25743 fi
25744
25745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25746       conftest$ac_exeext conftest.$ac_ext
25747 fi
25748 ac_res=`eval echo '${'$as_ac_var'}'`
25749                { echo "$as_me:$LINENO: result: $ac_res" >&5
25750 echo "${ECHO_T}$ac_res" >&6; }
25751 if test `eval echo '${'$as_ac_var'}'` = yes; then
25752   cat >>confdefs.h <<_ACEOF
25753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25754 _ACEOF
25755  have_floor=1
25756 fi
25757 done
25758
25759 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25760 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25761 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25762     { echo "$as_me:$LINENO: result: yes" >&5
25763 echo "${ECHO_T}yes" >&6; }
25764 else
25765     { echo "$as_me:$LINENO: result: no" >&5
25766 echo "${ECHO_T}no" >&6; }
25767     LIBS="$LIBS -lm"
25768     # use different functions to avoid configure caching
25769     have_sin=0
25770     have_ceil=0
25771
25772 for ac_func in sin
25773 do
25774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25778   echo $ECHO_N "(cached) $ECHO_C" >&6
25779 else
25780   cat >conftest.$ac_ext <<_ACEOF
25781 /* confdefs.h.  */
25782 _ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h.  */
25786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25788 #define $ac_func innocuous_$ac_func
25789
25790 /* System header to define __stub macros and hopefully few prototypes,
25791     which can conflict with char $ac_func (); below.
25792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25793     <limits.h> exists even on freestanding compilers.  */
25794
25795 #ifdef __STDC__
25796 # include <limits.h>
25797 #else
25798 # include <assert.h>
25799 #endif
25800
25801 #undef $ac_func
25802
25803 /* Override any GCC internal prototype to avoid an error.
25804    Use char because int might match the return type of a GCC
25805    builtin and then its argument prototype would still apply.  */
25806 #ifdef __cplusplus
25807 extern "C"
25808 #endif
25809 char $ac_func ();
25810 /* The GNU C library defines this for functions which it implements
25811     to always fail with ENOSYS.  Some functions are actually named
25812     something starting with __ and the normal name is an alias.  */
25813 #if defined __stub_$ac_func || defined __stub___$ac_func
25814 choke me
25815 #endif
25816
25817 int
25818 main ()
25819 {
25820 return $ac_func ();
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (ac_try="$ac_link"
25827 case "(($ac_try" in
25828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25829   *) ac_try_echo=$ac_try;;
25830 esac
25831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25832   (eval "$ac_link") 2>conftest.er1
25833   ac_status=$?
25834   grep -v '^ *+' conftest.er1 >conftest.err
25835   rm -f conftest.er1
25836   cat conftest.err >&5
25837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838   (exit $ac_status); } && {
25839          test -z "$ac_c_werror_flag" ||
25840          test ! -s conftest.err
25841        } && test -s conftest$ac_exeext &&
25842        $as_test_x conftest$ac_exeext; then
25843   eval "$as_ac_var=yes"
25844 else
25845   echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25847
25848         eval "$as_ac_var=no"
25849 fi
25850
25851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25852       conftest$ac_exeext conftest.$ac_ext
25853 fi
25854 ac_res=`eval echo '${'$as_ac_var'}'`
25855                { echo "$as_me:$LINENO: result: $ac_res" >&5
25856 echo "${ECHO_T}$ac_res" >&6; }
25857 if test `eval echo '${'$as_ac_var'}'` = yes; then
25858   cat >>confdefs.h <<_ACEOF
25859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25860 _ACEOF
25861  have_sin=1
25862 fi
25863 done
25864
25865
25866 for ac_func in ceil
25867 do
25868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874   cat >conftest.$ac_ext <<_ACEOF
25875 /* confdefs.h.  */
25876 _ACEOF
25877 cat confdefs.h >>conftest.$ac_ext
25878 cat >>conftest.$ac_ext <<_ACEOF
25879 /* end confdefs.h.  */
25880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25882 #define $ac_func innocuous_$ac_func
25883
25884 /* System header to define __stub macros and hopefully few prototypes,
25885     which can conflict with char $ac_func (); below.
25886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25887     <limits.h> exists even on freestanding compilers.  */
25888
25889 #ifdef __STDC__
25890 # include <limits.h>
25891 #else
25892 # include <assert.h>
25893 #endif
25894
25895 #undef $ac_func
25896
25897 /* Override any GCC internal prototype to avoid an error.
25898    Use char because int might match the return type of a GCC
25899    builtin and then its argument prototype would still apply.  */
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 char $ac_func ();
25904 /* The GNU C library defines this for functions which it implements
25905     to always fail with ENOSYS.  Some functions are actually named
25906     something starting with __ and the normal name is an alias.  */
25907 #if defined __stub_$ac_func || defined __stub___$ac_func
25908 choke me
25909 #endif
25910
25911 int
25912 main ()
25913 {
25914 return $ac_func ();
25915   ;
25916   return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (ac_try="$ac_link"
25921 case "(($ac_try" in
25922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923   *) ac_try_echo=$ac_try;;
25924 esac
25925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25926   (eval "$ac_link") 2>conftest.er1
25927   ac_status=$?
25928   grep -v '^ *+' conftest.er1 >conftest.err
25929   rm -f conftest.er1
25930   cat conftest.err >&5
25931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932   (exit $ac_status); } && {
25933          test -z "$ac_c_werror_flag" ||
25934          test ! -s conftest.err
25935        } && test -s conftest$ac_exeext &&
25936        $as_test_x conftest$ac_exeext; then
25937   eval "$as_ac_var=yes"
25938 else
25939   echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942         eval "$as_ac_var=no"
25943 fi
25944
25945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25946       conftest$ac_exeext conftest.$ac_ext
25947 fi
25948 ac_res=`eval echo '${'$as_ac_var'}'`
25949                { echo "$as_me:$LINENO: result: $ac_res" >&5
25950 echo "${ECHO_T}$ac_res" >&6; }
25951 if test `eval echo '${'$as_ac_var'}'` = yes; then
25952   cat >>confdefs.h <<_ACEOF
25953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25954 _ACEOF
25955  have_ceil=1
25956 fi
25957 done
25958
25959     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25960 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25961     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25962         { echo "$as_me:$LINENO: result: yes" >&5
25963 echo "${ECHO_T}yes" >&6; }
25964     else
25965         { echo "$as_me:$LINENO: result: no" >&5
25966 echo "${ECHO_T}no" >&6; }
25967         # not sure we should warn the user, crash, etc.
25968     fi
25969 fi
25970
25971 ac_ext=cpp
25972 ac_cpp='$CXXCPP $CPPFLAGS'
25973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25976
25977 if test "wxUSE_UNICODE" = "yes"; then
25978
25979   for wx_func in wcstoull
25980   do
25981     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25982 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25983 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986
25987         cat >conftest.$ac_ext <<_ACEOF
25988
25989             /* confdefs.h.  */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h.  */
25994
25995
25996                 $ac_includes_default
25997
25998 int
25999 main ()
26000 {
26001
26002                 #ifndef $wx_func
26003                   &$wx_func;
26004                 #endif
26005
26006
26007   ;
26008   return 0;
26009 }
26010
26011 _ACEOF
26012 rm -f conftest.$ac_objext conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_link") 2>conftest.er1
26020   ac_status=$?
26021   grep -v '^ *+' conftest.er1 >conftest.err
26022   rm -f conftest.er1
26023   cat conftest.err >&5
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); } && {
26026          test -z "$ac_cxx_werror_flag" ||
26027          test ! -s conftest.err
26028        } && test -s conftest$ac_exeext &&
26029        $as_test_x conftest$ac_exeext; then
26030   eval wx_cv_func_$wx_func=yes
26031 else
26032   echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26034
26035         eval wx_cv_func_$wx_func=no
26036 fi
26037
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26039       conftest$ac_exeext conftest.$ac_ext
26040
26041 fi
26042 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26043                { echo "$as_me:$LINENO: result: $ac_res" >&5
26044 echo "${ECHO_T}$ac_res" >&6; }
26045
26046     if eval test \$wx_cv_func_$wx_func = yes
26047     then
26048       cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26050 _ACEOF
26051
26052
26053     else
26054       :
26055
26056     fi
26057   done
26058
26059 else
26060
26061   for wx_func in strtoull
26062   do
26063     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26064 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26065 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26066   echo $ECHO_N "(cached) $ECHO_C" >&6
26067 else
26068
26069         cat >conftest.$ac_ext <<_ACEOF
26070
26071             /* confdefs.h.  */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h.  */
26076
26077
26078                 $ac_includes_default
26079
26080 int
26081 main ()
26082 {
26083
26084                 #ifndef $wx_func
26085                   &$wx_func;
26086                 #endif
26087
26088
26089   ;
26090   return 0;
26091 }
26092
26093 _ACEOF
26094 rm -f conftest.$ac_objext conftest$ac_exeext
26095 if { (ac_try="$ac_link"
26096 case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26101   (eval "$ac_link") 2>conftest.er1
26102   ac_status=$?
26103   grep -v '^ *+' conftest.er1 >conftest.err
26104   rm -f conftest.er1
26105   cat conftest.err >&5
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); } && {
26108          test -z "$ac_cxx_werror_flag" ||
26109          test ! -s conftest.err
26110        } && test -s conftest$ac_exeext &&
26111        $as_test_x conftest$ac_exeext; then
26112   eval wx_cv_func_$wx_func=yes
26113 else
26114   echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117         eval wx_cv_func_$wx_func=no
26118 fi
26119
26120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26121       conftest$ac_exeext conftest.$ac_ext
26122
26123 fi
26124 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26125                { echo "$as_me:$LINENO: result: $ac_res" >&5
26126 echo "${ECHO_T}$ac_res" >&6; }
26127
26128     if eval test \$wx_cv_func_$wx_func = yes
26129     then
26130       cat >>confdefs.h <<_ACEOF
26131 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26132 _ACEOF
26133
26134
26135     else
26136       :
26137
26138     fi
26139   done
26140
26141 fi
26142 ac_ext=c
26143 ac_cpp='$CPP $CPPFLAGS'
26144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26147
26148
26149
26150
26151 if test "$wxUSE_REGEX" != "no"; then
26152     cat >>confdefs.h <<\_ACEOF
26153 #define wxUSE_REGEX 1
26154 _ACEOF
26155
26156
26157     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26158         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26159 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26160         wxUSE_REGEX=builtin
26161     fi
26162
26163     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26164                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26165 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26166 if test "${ac_cv_header_regex_h+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h.  */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h.  */
26175
26176
26177 #include <regex.h>
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } && {
26193          test -z "$ac_c_werror_flag" ||
26194          test ! -s conftest.err
26195        } && test -s conftest.$ac_objext; then
26196   ac_cv_header_regex_h=yes
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201         ac_cv_header_regex_h=no
26202 fi
26203
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205 fi
26206 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26207 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26208 if test $ac_cv_header_regex_h = yes; then
26209
26210
26211 for ac_func in regcomp re_search
26212 do
26213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26217   echo $ECHO_N "(cached) $ECHO_C" >&6
26218 else
26219   cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26227 #define $ac_func innocuous_$ac_func
26228
26229 /* System header to define __stub macros and hopefully few prototypes,
26230     which can conflict with char $ac_func (); below.
26231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26232     <limits.h> exists even on freestanding compilers.  */
26233
26234 #ifdef __STDC__
26235 # include <limits.h>
26236 #else
26237 # include <assert.h>
26238 #endif
26239
26240 #undef $ac_func
26241
26242 /* Override any GCC internal prototype to avoid an error.
26243    Use char because int might match the return type of a GCC
26244    builtin and then its argument prototype would still apply.  */
26245 #ifdef __cplusplus
26246 extern "C"
26247 #endif
26248 char $ac_func ();
26249 /* The GNU C library defines this for functions which it implements
26250     to always fail with ENOSYS.  Some functions are actually named
26251     something starting with __ and the normal name is an alias.  */
26252 #if defined __stub_$ac_func || defined __stub___$ac_func
26253 choke me
26254 #endif
26255
26256 int
26257 main ()
26258 {
26259 return $ac_func ();
26260   ;
26261   return 0;
26262 }
26263 _ACEOF
26264 rm -f conftest.$ac_objext conftest$ac_exeext
26265 if { (ac_try="$ac_link"
26266 case "(($ac_try" in
26267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268   *) ac_try_echo=$ac_try;;
26269 esac
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271   (eval "$ac_link") 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } && {
26278          test -z "$ac_c_werror_flag" ||
26279          test ! -s conftest.err
26280        } && test -s conftest$ac_exeext &&
26281        $as_test_x conftest$ac_exeext; then
26282   eval "$as_ac_var=yes"
26283 else
26284   echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287         eval "$as_ac_var=no"
26288 fi
26289
26290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26291       conftest$ac_exeext conftest.$ac_ext
26292 fi
26293 ac_res=`eval echo '${'$as_ac_var'}'`
26294                { echo "$as_me:$LINENO: result: $ac_res" >&5
26295 echo "${ECHO_T}$ac_res" >&6; }
26296 if test `eval echo '${'$as_ac_var'}'` = yes; then
26297   cat >>confdefs.h <<_ACEOF
26298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26299 _ACEOF
26300
26301 fi
26302 done
26303
26304 fi
26305
26306
26307
26308         if test "x$ac_cv_func_regcomp" != "xyes"; then
26309             if test "$wxUSE_REGEX" = "sys" ; then
26310                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26311 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26312    { (exit 1); exit 1; }; }
26313             else
26314                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26315 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26316                 wxUSE_REGEX=builtin
26317             fi
26318         else
26319                         wxUSE_REGEX=sys
26320                         cat >>confdefs.h <<\_ACEOF
26321 #define WX_NO_REGEX_ADVANCED 1
26322 _ACEOF
26323
26324         fi
26325     fi
26326 fi
26327
26328
26329 ZLIB_LINK=
26330 if test "$wxUSE_ZLIB" != "no" ; then
26331     cat >>confdefs.h <<\_ACEOF
26332 #define wxUSE_ZLIB 1
26333 _ACEOF
26334
26335
26336     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26337                                                 if test "$USE_DARWIN" = 1; then
26338             system_zlib_h_ok="yes"
26339         else
26340                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26341 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26342 if test "${ac_cv_header_zlib_h+set}" = set; then
26343   echo $ECHO_N "(cached) $ECHO_C" >&6
26344 else
26345   if test "$cross_compiling" = yes; then
26346                       unset ac_cv_header_zlib_h
26347
26348 else
26349   cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355
26356                         #include <zlib.h>
26357                         #include <stdio.h>
26358
26359                         int main()
26360                         {
26361                             FILE *f=fopen("conftestval", "w");
26362                             if (!f) exit(1);
26363                             fprintf(f, "%s",
26364                                     ZLIB_VERSION[0] == '1' &&
26365                                     (ZLIB_VERSION[2] > '1' ||
26366                                     (ZLIB_VERSION[2] == '1' &&
26367                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26368                             exit(0);
26369                         }
26370
26371 _ACEOF
26372 rm -f conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_link") 2>&5
26380   ac_status=$?
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26383   { (case "(($ac_try" in
26384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385   *) ac_try_echo=$ac_try;;
26386 esac
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388   (eval "$ac_try") 2>&5
26389   ac_status=$?
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); }; }; then
26392   ac_cv_header_zlib_h=`cat conftestval`
26393 else
26394   echo "$as_me: program exited with status $ac_status" >&5
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398 ( exit $ac_status )
26399 ac_cv_header_zlib_h=no
26400 fi
26401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26402 fi
26403
26404
26405
26406 fi
26407 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26408 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26409                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26410 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26411 if test "${ac_cv_header_zlib_h+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420
26421
26422 #include <zlib.h>
26423 _ACEOF
26424 rm -f conftest.$ac_objext
26425 if { (ac_try="$ac_compile"
26426 case "(($ac_try" in
26427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428   *) ac_try_echo=$ac_try;;
26429 esac
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431   (eval "$ac_compile") 2>conftest.er1
26432   ac_status=$?
26433   grep -v '^ *+' conftest.er1 >conftest.err
26434   rm -f conftest.er1
26435   cat conftest.err >&5
26436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437   (exit $ac_status); } && {
26438          test -z "$ac_c_werror_flag" ||
26439          test ! -s conftest.err
26440        } && test -s conftest.$ac_objext; then
26441   ac_cv_header_zlib_h=yes
26442 else
26443   echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26445
26446         ac_cv_header_zlib_h=no
26447 fi
26448
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 fi
26451 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26452 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26453
26454
26455
26456             system_zlib_h_ok=$ac_cv_header_zlib_h
26457         fi
26458
26459         if test "$system_zlib_h_ok" = "yes"; then
26460             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26461 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26462 if test "${ac_cv_lib_z_deflate+set}" = set; then
26463   echo $ECHO_N "(cached) $ECHO_C" >&6
26464 else
26465   ac_check_lib_save_LIBS=$LIBS
26466 LIBS="-lz  $LIBS"
26467 cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473
26474 /* Override any GCC internal prototype to avoid an error.
26475    Use char because int might match the return type of a GCC
26476    builtin and then its argument prototype would still apply.  */
26477 #ifdef __cplusplus
26478 extern "C"
26479 #endif
26480 char deflate ();
26481 int
26482 main ()
26483 {
26484 return deflate ();
26485   ;
26486   return 0;
26487 }
26488 _ACEOF
26489 rm -f conftest.$ac_objext conftest$ac_exeext
26490 if { (ac_try="$ac_link"
26491 case "(($ac_try" in
26492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493   *) ac_try_echo=$ac_try;;
26494 esac
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496   (eval "$ac_link") 2>conftest.er1
26497   ac_status=$?
26498   grep -v '^ *+' conftest.er1 >conftest.err
26499   rm -f conftest.er1
26500   cat conftest.err >&5
26501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502   (exit $ac_status); } && {
26503          test -z "$ac_c_werror_flag" ||
26504          test ! -s conftest.err
26505        } && test -s conftest$ac_exeext &&
26506        $as_test_x conftest$ac_exeext; then
26507   ac_cv_lib_z_deflate=yes
26508 else
26509   echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26511
26512         ac_cv_lib_z_deflate=no
26513 fi
26514
26515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26516       conftest$ac_exeext conftest.$ac_ext
26517 LIBS=$ac_check_lib_save_LIBS
26518 fi
26519 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26520 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26521 if test $ac_cv_lib_z_deflate = yes; then
26522   ZLIB_LINK=" -lz"
26523 fi
26524
26525         fi
26526
26527         if test "x$ZLIB_LINK" = "x" ; then
26528             if test "$wxUSE_ZLIB" = "sys" ; then
26529                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26530 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26531    { (exit 1); exit 1; }; }
26532             else
26533                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26534 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26535                 wxUSE_ZLIB=builtin
26536             fi
26537         else
26538                         wxUSE_ZLIB=sys
26539         fi
26540     fi
26541 fi
26542
26543
26544 PNG_LINK=
26545 if test "$wxUSE_LIBPNG" != "no" ; then
26546     cat >>confdefs.h <<\_ACEOF
26547 #define wxUSE_LIBPNG 1
26548 _ACEOF
26549
26550
26551     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26552         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26553 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26554         wxUSE_LIBPNG=sys
26555     fi
26556
26557                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26558         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26559 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26560         wxUSE_LIBPNG=builtin
26561     fi
26562
26563     if test "$wxUSE_MGL" != 1 ; then
26564                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26565                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26566 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26567 if test "${ac_cv_header_png_h+set}" = set; then
26568   echo $ECHO_N "(cached) $ECHO_C" >&6
26569 else
26570   if test "$cross_compiling" = yes; then
26571                       unset ac_cv_header_png_h
26572
26573 else
26574   cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h.  */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h.  */
26580
26581                         #include <png.h>
26582                         #include <stdio.h>
26583
26584                         int main()
26585                         {
26586                             FILE *f=fopen("conftestval", "w");
26587                             if (!f) exit(1);
26588                             fprintf(f, "%s",
26589                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26590                             exit(0);
26591                         }
26592
26593 _ACEOF
26594 rm -f conftest$ac_exeext
26595 if { (ac_try="$ac_link"
26596 case "(($ac_try" in
26597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598   *) ac_try_echo=$ac_try;;
26599 esac
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601   (eval "$ac_link") 2>&5
26602   ac_status=$?
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26605   { (case "(($ac_try" in
26606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607   *) ac_try_echo=$ac_try;;
26608 esac
26609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26610   (eval "$ac_try") 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; }; then
26614   ac_cv_header_png_h=`cat conftestval`
26615 else
26616   echo "$as_me: program exited with status $ac_status" >&5
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26619
26620 ( exit $ac_status )
26621 ac_cv_header_png_h=no
26622 fi
26623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26624 fi
26625
26626
26627
26628 fi
26629 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26630 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26631             { echo "$as_me:$LINENO: checking for png.h" >&5
26632 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26633 if test "${ac_cv_header_png_h+set}" = set; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h.  */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h.  */
26642
26643
26644 #include <png.h>
26645 _ACEOF
26646 rm -f conftest.$ac_objext
26647 if { (ac_try="$ac_compile"
26648 case "(($ac_try" in
26649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650   *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653   (eval "$ac_compile") 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } && {
26660          test -z "$ac_c_werror_flag" ||
26661          test ! -s conftest.err
26662        } && test -s conftest.$ac_objext; then
26663   ac_cv_header_png_h=yes
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668         ac_cv_header_png_h=no
26669 fi
26670
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 fi
26673 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26674 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26675
26676
26677
26678             if test "$ac_cv_header_png_h" = "yes"; then
26679                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26680 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26681 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26682   echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684   ac_check_lib_save_LIBS=$LIBS
26685 LIBS="-lpng -lz -lm $LIBS"
26686 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692
26693 /* Override any GCC internal prototype to avoid an error.
26694    Use char because int might match the return type of a GCC
26695    builtin and then its argument prototype would still apply.  */
26696 #ifdef __cplusplus
26697 extern "C"
26698 #endif
26699 char png_check_sig ();
26700 int
26701 main ()
26702 {
26703 return png_check_sig ();
26704   ;
26705   return 0;
26706 }
26707 _ACEOF
26708 rm -f conftest.$ac_objext conftest$ac_exeext
26709 if { (ac_try="$ac_link"
26710 case "(($ac_try" in
26711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26712   *) ac_try_echo=$ac_try;;
26713 esac
26714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26715   (eval "$ac_link") 2>conftest.er1
26716   ac_status=$?
26717   grep -v '^ *+' conftest.er1 >conftest.err
26718   rm -f conftest.er1
26719   cat conftest.err >&5
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); } && {
26722          test -z "$ac_c_werror_flag" ||
26723          test ! -s conftest.err
26724        } && test -s conftest$ac_exeext &&
26725        $as_test_x conftest$ac_exeext; then
26726   ac_cv_lib_png_png_check_sig=yes
26727 else
26728   echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26730
26731         ac_cv_lib_png_png_check_sig=no
26732 fi
26733
26734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26735       conftest$ac_exeext conftest.$ac_ext
26736 LIBS=$ac_check_lib_save_LIBS
26737 fi
26738 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26739 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26740 if test $ac_cv_lib_png_png_check_sig = yes; then
26741   PNG_LINK=" -lpng -lz"
26742 fi
26743
26744             fi
26745
26746             if test "x$PNG_LINK" = "x" ; then
26747                 if test "$wxUSE_LIBPNG" = "sys" ; then
26748                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26749 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26750    { (exit 1); exit 1; }; }
26751                 else
26752                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26753 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26754                     wxUSE_LIBPNG=builtin
26755                 fi
26756             else
26757                                 wxUSE_LIBPNG=sys
26758             fi
26759         fi
26760     fi
26761 fi
26762
26763
26764 JPEG_LINK=
26765 if test "$wxUSE_LIBJPEG" != "no" ; then
26766     cat >>confdefs.h <<\_ACEOF
26767 #define wxUSE_LIBJPEG 1
26768 _ACEOF
26769
26770
26771     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26772         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26773 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26774         wxUSE_LIBJPEG=sys
26775     fi
26776
26777     if test "$wxUSE_MGL" != 1 ; then
26778                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26779                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26780 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26781             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26782   echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784   cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h.  */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h.  */
26790
26791                         #undef HAVE_STDLIB_H
26792                         #include <stdio.h>
26793                         #include <jpeglib.h>
26794
26795 int
26796 main ()
26797 {
26798
26799
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext
26805 if { (ac_try="$ac_compile"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811   (eval "$ac_compile") 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } && {
26818          test -z "$ac_c_werror_flag" ||
26819          test ! -s conftest.err
26820        } && test -s conftest.$ac_objext; then
26821   ac_cv_header_jpeglib_h=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826         ac_cv_header_jpeglib_h=no
26827
26828 fi
26829
26830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26831
26832 fi
26833
26834             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26835 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26836
26837             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26838                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26839 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26840 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26841   echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843   ac_check_lib_save_LIBS=$LIBS
26844 LIBS="-ljpeg  $LIBS"
26845 cat >conftest.$ac_ext <<_ACEOF
26846 /* confdefs.h.  */
26847 _ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h.  */
26851
26852 /* Override any GCC internal prototype to avoid an error.
26853    Use char because int might match the return type of a GCC
26854    builtin and then its argument prototype would still apply.  */
26855 #ifdef __cplusplus
26856 extern "C"
26857 #endif
26858 char jpeg_read_header ();
26859 int
26860 main ()
26861 {
26862 return jpeg_read_header ();
26863   ;
26864   return 0;
26865 }
26866 _ACEOF
26867 rm -f conftest.$ac_objext conftest$ac_exeext
26868 if { (ac_try="$ac_link"
26869 case "(($ac_try" in
26870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871   *) ac_try_echo=$ac_try;;
26872 esac
26873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26874   (eval "$ac_link") 2>conftest.er1
26875   ac_status=$?
26876   grep -v '^ *+' conftest.er1 >conftest.err
26877   rm -f conftest.er1
26878   cat conftest.err >&5
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); } && {
26881          test -z "$ac_c_werror_flag" ||
26882          test ! -s conftest.err
26883        } && test -s conftest$ac_exeext &&
26884        $as_test_x conftest$ac_exeext; then
26885   ac_cv_lib_jpeg_jpeg_read_header=yes
26886 else
26887   echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26889
26890         ac_cv_lib_jpeg_jpeg_read_header=no
26891 fi
26892
26893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26894       conftest$ac_exeext conftest.$ac_ext
26895 LIBS=$ac_check_lib_save_LIBS
26896 fi
26897 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26898 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26899 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26900   JPEG_LINK=" -ljpeg"
26901 fi
26902
26903             fi
26904
26905             if test "x$JPEG_LINK" = "x" ; then
26906                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26907                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26908 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26909    { (exit 1); exit 1; }; }
26910                 else
26911                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26912 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26913                     wxUSE_LIBJPEG=builtin
26914                 fi
26915             else
26916                                 wxUSE_LIBJPEG=sys
26917
26918                 if test "$wxUSE_MSW" = 1; then
26919                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26920 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26921 if test "${ac_cv_type_boolean+set}" = set; then
26922   echo $ECHO_N "(cached) $ECHO_C" >&6
26923 else
26924   cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930 #include <windows.h>
26931
26932 typedef boolean ac__type_new_;
26933 int
26934 main ()
26935 {
26936 if ((ac__type_new_ *) 0)
26937   return 0;
26938 if (sizeof (ac__type_new_))
26939   return 0;
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (ac_try="$ac_compile"
26946 case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_compile") 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } && {
26958          test -z "$ac_c_werror_flag" ||
26959          test ! -s conftest.err
26960        } && test -s conftest.$ac_objext; then
26961   ac_cv_type_boolean=yes
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966         ac_cv_type_boolean=no
26967 fi
26968
26969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26970 fi
26971 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26972 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26973 if test $ac_cv_type_boolean = yes; then
26974
26975 cat >>confdefs.h <<_ACEOF
26976 #define HAVE_BOOLEAN 1
26977 _ACEOF
26978
26979
26980                             { echo "$as_me:$LINENO: checking for boolean" >&5
26981 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26982 if test "${ac_cv_type_boolean+set}" = set; then
26983   echo $ECHO_N "(cached) $ECHO_C" >&6
26984 else
26985   cat >conftest.$ac_ext <<_ACEOF
26986 /* confdefs.h.  */
26987 _ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h.  */
26991
26992                                     #undef HAVE_BOOLEAN
26993                                     #include <stdio.h>
26994                                     #include <jpeglib.h>
26995
26996
26997 typedef boolean ac__type_new_;
26998 int
26999 main ()
27000 {
27001 if ((ac__type_new_ *) 0)
27002   return 0;
27003 if (sizeof (ac__type_new_))
27004   return 0;
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext
27010 if { (ac_try="$ac_compile"
27011 case "(($ac_try" in
27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013   *) ac_try_echo=$ac_try;;
27014 esac
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016   (eval "$ac_compile") 2>conftest.er1
27017   ac_status=$?
27018   grep -v '^ *+' conftest.er1 >conftest.err
27019   rm -f conftest.er1
27020   cat conftest.err >&5
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); } && {
27023          test -z "$ac_c_werror_flag" ||
27024          test ! -s conftest.err
27025        } && test -s conftest.$ac_objext; then
27026   ac_cv_type_boolean=yes
27027 else
27028   echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031         ac_cv_type_boolean=no
27032 fi
27033
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035 fi
27036 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27037 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27038
27039 # The cast to long int works around a bug in the HP C Compiler
27040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27042 # This bug is HP SR number 8606223364.
27043 { echo "$as_me:$LINENO: checking size of boolean" >&5
27044 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27045 if test "${ac_cv_sizeof_boolean+set}" = set; then
27046   echo $ECHO_N "(cached) $ECHO_C" >&6
27047 else
27048   if test "$cross_compiling" = yes; then
27049   # Depending upon the size, compute the lo and hi bounds.
27050 cat >conftest.$ac_ext <<_ACEOF
27051 /* confdefs.h.  */
27052 _ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h.  */
27056
27057                                     #undef HAVE_BOOLEAN
27058                                     #include <stdio.h>
27059                                     #include <jpeglib.h>
27060
27061
27062    typedef boolean ac__type_sizeof_;
27063 int
27064 main ()
27065 {
27066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27067 test_array [0] = 0
27068
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest.$ac_objext
27074 if { (ac_try="$ac_compile"
27075 case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080   (eval "$ac_compile") 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } && {
27087          test -z "$ac_c_werror_flag" ||
27088          test ! -s conftest.err
27089        } && test -s conftest.$ac_objext; then
27090   ac_lo=0 ac_mid=0
27091   while :; do
27092     cat >conftest.$ac_ext <<_ACEOF
27093 /* confdefs.h.  */
27094 _ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h.  */
27098
27099                                     #undef HAVE_BOOLEAN
27100                                     #include <stdio.h>
27101                                     #include <jpeglib.h>
27102
27103
27104    typedef boolean ac__type_sizeof_;
27105 int
27106 main ()
27107 {
27108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27109 test_array [0] = 0
27110
27111   ;
27112   return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext
27116 if { (ac_try="$ac_compile"
27117 case "(($ac_try" in
27118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119   *) ac_try_echo=$ac_try;;
27120 esac
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122   (eval "$ac_compile") 2>conftest.er1
27123   ac_status=$?
27124   grep -v '^ *+' conftest.er1 >conftest.err
27125   rm -f conftest.er1
27126   cat conftest.err >&5
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } && {
27129          test -z "$ac_c_werror_flag" ||
27130          test ! -s conftest.err
27131        } && test -s conftest.$ac_objext; then
27132   ac_hi=$ac_mid; break
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137         ac_lo=`expr $ac_mid + 1`
27138                         if test $ac_lo -le $ac_mid; then
27139                           ac_lo= ac_hi=
27140                           break
27141                         fi
27142                         ac_mid=`expr 2 '*' $ac_mid + 1`
27143 fi
27144
27145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27146   done
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151         cat >conftest.$ac_ext <<_ACEOF
27152 /* confdefs.h.  */
27153 _ACEOF
27154 cat confdefs.h >>conftest.$ac_ext
27155 cat >>conftest.$ac_ext <<_ACEOF
27156 /* end confdefs.h.  */
27157
27158                                     #undef HAVE_BOOLEAN
27159                                     #include <stdio.h>
27160                                     #include <jpeglib.h>
27161
27162
27163    typedef boolean ac__type_sizeof_;
27164 int
27165 main ()
27166 {
27167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27168 test_array [0] = 0
27169
27170   ;
27171   return 0;
27172 }
27173 _ACEOF
27174 rm -f conftest.$ac_objext
27175 if { (ac_try="$ac_compile"
27176 case "(($ac_try" in
27177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178   *) ac_try_echo=$ac_try;;
27179 esac
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181   (eval "$ac_compile") 2>conftest.er1
27182   ac_status=$?
27183   grep -v '^ *+' conftest.er1 >conftest.err
27184   rm -f conftest.er1
27185   cat conftest.err >&5
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); } && {
27188          test -z "$ac_c_werror_flag" ||
27189          test ! -s conftest.err
27190        } && test -s conftest.$ac_objext; then
27191   ac_hi=-1 ac_mid=-1
27192   while :; do
27193     cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h.  */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h.  */
27199
27200                                     #undef HAVE_BOOLEAN
27201                                     #include <stdio.h>
27202                                     #include <jpeglib.h>
27203
27204
27205    typedef boolean ac__type_sizeof_;
27206 int
27207 main ()
27208 {
27209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27210 test_array [0] = 0
27211
27212   ;
27213   return 0;
27214 }
27215 _ACEOF
27216 rm -f conftest.$ac_objext
27217 if { (ac_try="$ac_compile"
27218 case "(($ac_try" in
27219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220   *) ac_try_echo=$ac_try;;
27221 esac
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223   (eval "$ac_compile") 2>conftest.er1
27224   ac_status=$?
27225   grep -v '^ *+' conftest.er1 >conftest.err
27226   rm -f conftest.er1
27227   cat conftest.err >&5
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } && {
27230          test -z "$ac_c_werror_flag" ||
27231          test ! -s conftest.err
27232        } && test -s conftest.$ac_objext; then
27233   ac_lo=$ac_mid; break
27234 else
27235   echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27237
27238         ac_hi=`expr '(' $ac_mid ')' - 1`
27239                         if test $ac_mid -le $ac_hi; then
27240                           ac_lo= ac_hi=
27241                           break
27242                         fi
27243                         ac_mid=`expr 2 '*' $ac_mid`
27244 fi
27245
27246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27247   done
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252         ac_lo= ac_hi=
27253 fi
27254
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 fi
27257
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259 # Binary search between lo and hi bounds.
27260 while test "x$ac_lo" != "x$ac_hi"; do
27261   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27262   cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268
27269                                     #undef HAVE_BOOLEAN
27270                                     #include <stdio.h>
27271                                     #include <jpeglib.h>
27272
27273
27274    typedef boolean ac__type_sizeof_;
27275 int
27276 main ()
27277 {
27278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27279 test_array [0] = 0
27280
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (ac_try="$ac_compile"
27287 case "(($ac_try" in
27288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289   *) ac_try_echo=$ac_try;;
27290 esac
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292   (eval "$ac_compile") 2>conftest.er1
27293   ac_status=$?
27294   grep -v '^ *+' conftest.er1 >conftest.err
27295   rm -f conftest.er1
27296   cat conftest.err >&5
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); } && {
27299          test -z "$ac_c_werror_flag" ||
27300          test ! -s conftest.err
27301        } && test -s conftest.$ac_objext; then
27302   ac_hi=$ac_mid
27303 else
27304   echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27306
27307         ac_lo=`expr '(' $ac_mid ')' + 1`
27308 fi
27309
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311 done
27312 case $ac_lo in
27313 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27314 '') if test "$ac_cv_type_boolean" = yes; then
27315      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27316 See \`config.log' for more details." >&5
27317 echo "$as_me: error: cannot compute sizeof (boolean)
27318 See \`config.log' for more details." >&2;}
27319    { (exit 77); exit 77; }; }
27320    else
27321      ac_cv_sizeof_boolean=0
27322    fi ;;
27323 esac
27324 else
27325   cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331
27332                                     #undef HAVE_BOOLEAN
27333                                     #include <stdio.h>
27334                                     #include <jpeglib.h>
27335
27336
27337    typedef boolean ac__type_sizeof_;
27338 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27339 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27340 #include <stdio.h>
27341 #include <stdlib.h>
27342 int
27343 main ()
27344 {
27345
27346   FILE *f = fopen ("conftest.val", "w");
27347   if (! f)
27348     return 1;
27349   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27350     {
27351       long int i = longval ();
27352       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27353         return 1;
27354       fprintf (f, "%ld\n", i);
27355     }
27356   else
27357     {
27358       unsigned long int i = ulongval ();
27359       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27360         return 1;
27361       fprintf (f, "%lu\n", i);
27362     }
27363   return ferror (f) || fclose (f) != 0;
27364
27365   ;
27366   return 0;
27367 }
27368 _ACEOF
27369 rm -f conftest$ac_exeext
27370 if { (ac_try="$ac_link"
27371 case "(($ac_try" in
27372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373   *) ac_try_echo=$ac_try;;
27374 esac
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376   (eval "$ac_link") 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27380   { (case "(($ac_try" in
27381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382   *) ac_try_echo=$ac_try;;
27383 esac
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385   (eval "$ac_try") 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; }; then
27389   ac_cv_sizeof_boolean=`cat conftest.val`
27390 else
27391   echo "$as_me: program exited with status $ac_status" >&5
27392 echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395 ( exit $ac_status )
27396 if test "$ac_cv_type_boolean" = yes; then
27397      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27398 See \`config.log' for more details." >&5
27399 echo "$as_me: error: cannot compute sizeof (boolean)
27400 See \`config.log' for more details." >&2;}
27401    { (exit 77); exit 77; }; }
27402    else
27403      ac_cv_sizeof_boolean=0
27404    fi
27405 fi
27406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27407 fi
27408 rm -f conftest.val
27409 fi
27410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27411 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27412
27413
27414
27415 cat >>confdefs.h <<_ACEOF
27416 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27417 _ACEOF
27418
27419
27420                             cat >>confdefs.h <<_ACEOF
27421 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27422 _ACEOF
27423
27424
27425 fi
27426
27427                 fi
27428             fi
27429         fi
27430     fi
27431 fi
27432
27433
27434 TIFF_LINK=
27435 TIFF_PREREQ_LINKS=-lm
27436 if test "$wxUSE_LIBTIFF" != "no" ; then
27437     cat >>confdefs.h <<\_ACEOF
27438 #define wxUSE_LIBTIFF 1
27439 _ACEOF
27440
27441
27442     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27443                         if test "$wxUSE_LIBJPEG" = "sys"; then
27444             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27445         fi
27446         if test "$wxUSE_ZLIB" = "sys"; then
27447             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27448         fi
27449         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27450 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27451 if test "${ac_cv_header_tiffio_h+set}" = set; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454   cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h.  */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h.  */
27460
27461
27462
27463 #include <tiffio.h>
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469   *) ac_try_echo=$ac_try;;
27470 esac
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472   (eval "$ac_compile") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } && {
27479          test -z "$ac_c_werror_flag" ||
27480          test ! -s conftest.err
27481        } && test -s conftest.$ac_objext; then
27482   ac_cv_header_tiffio_h=yes
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487         ac_cv_header_tiffio_h=no
27488 fi
27489
27490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27491 fi
27492 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27493 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27494 if test $ac_cv_header_tiffio_h = yes; then
27495
27496                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27497 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27498 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27499   echo $ECHO_N "(cached) $ECHO_C" >&6
27500 else
27501   ac_check_lib_save_LIBS=$LIBS
27502 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27503 cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509
27510 /* Override any GCC internal prototype to avoid an error.
27511    Use char because int might match the return type of a GCC
27512    builtin and then its argument prototype would still apply.  */
27513 #ifdef __cplusplus
27514 extern "C"
27515 #endif
27516 char TIFFError ();
27517 int
27518 main ()
27519 {
27520 return TIFFError ();
27521   ;
27522   return 0;
27523 }
27524 _ACEOF
27525 rm -f conftest.$ac_objext conftest$ac_exeext
27526 if { (ac_try="$ac_link"
27527 case "(($ac_try" in
27528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529   *) ac_try_echo=$ac_try;;
27530 esac
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532   (eval "$ac_link") 2>conftest.er1
27533   ac_status=$?
27534   grep -v '^ *+' conftest.er1 >conftest.err
27535   rm -f conftest.er1
27536   cat conftest.err >&5
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); } && {
27539          test -z "$ac_c_werror_flag" ||
27540          test ! -s conftest.err
27541        } && test -s conftest$ac_exeext &&
27542        $as_test_x conftest$ac_exeext; then
27543   ac_cv_lib_tiff_TIFFError=yes
27544 else
27545   echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27547
27548         ac_cv_lib_tiff_TIFFError=no
27549 fi
27550
27551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27552       conftest$ac_exeext conftest.$ac_ext
27553 LIBS=$ac_check_lib_save_LIBS
27554 fi
27555 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27556 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27557 if test $ac_cv_lib_tiff_TIFFError = yes; then
27558   TIFF_LINK=" -ltiff"
27559 fi
27560
27561
27562 fi
27563
27564
27565
27566         if test "x$TIFF_LINK" = "x" ; then
27567             if test "$wxUSE_LIBTIFF" = "sys" ; then
27568                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27569 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27570    { (exit 1); exit 1; }; }
27571             else
27572                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27573 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27574                 wxUSE_LIBTIFF=builtin
27575             fi
27576         else
27577                         wxUSE_LIBTIFF=sys
27578         fi
27579     fi
27580     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27581         if test "$wxUSE_LIBJPEG" = "no"; then
27582                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27583         fi
27584         subdirs="$subdirs src/tiff"
27585
27586     fi
27587 fi
27588
27589
27590 if test "$wxUSE_WCHAR_T" != "yes"; then
27591     if test "$wxUSE_EXPAT" != "no"; then
27592         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27593 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27594         wxUSE_EXPAT=no
27595     fi
27596     if test "$wxUSE_XML" != "no"; then
27597         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27598 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27599         wxUSE_XML=no
27600     fi
27601 fi
27602
27603 if test "$wxUSE_EXPAT" != "no"; then
27604     wxUSE_XML=yes
27605     cat >>confdefs.h <<\_ACEOF
27606 #define wxUSE_EXPAT 1
27607 _ACEOF
27608
27609     cat >>confdefs.h <<\_ACEOF
27610 #define wxUSE_XML 1
27611 _ACEOF
27612
27613
27614     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27615         { echo "$as_me:$LINENO: checking for expat.h" >&5
27616 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27617 if test "${ac_cv_header_expat_h+set}" = set; then
27618   echo $ECHO_N "(cached) $ECHO_C" >&6
27619 else
27620   cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h.  */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h.  */
27626
27627
27628 #include <expat.h>
27629 _ACEOF
27630 rm -f conftest.$ac_objext
27631 if { (ac_try="$ac_compile"
27632 case "(($ac_try" in
27633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634   *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637   (eval "$ac_compile") 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } && {
27644          test -z "$ac_c_werror_flag" ||
27645          test ! -s conftest.err
27646        } && test -s conftest.$ac_objext; then
27647   ac_cv_header_expat_h=yes
27648 else
27649   echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27651
27652         ac_cv_header_expat_h=no
27653 fi
27654
27655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27656 fi
27657 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27658 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27659 if test $ac_cv_header_expat_h = yes; then
27660   found_expat_h=1
27661 fi
27662
27663
27664         if test "x$found_expat_h" = "x1"; then
27665                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27666 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27667 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670
27671                 ac_ext=cpp
27672 ac_cpp='$CXXCPP $CPPFLAGS'
27673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27676
27677                 cat >conftest.$ac_ext <<_ACEOF
27678 /* confdefs.h.  */
27679 _ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h.  */
27683 #include <expat.h>
27684 int
27685 main ()
27686 {
27687
27688   ;
27689   return 0;
27690 }
27691 _ACEOF
27692 rm -f conftest.$ac_objext
27693 if { (ac_try="$ac_compile"
27694 case "(($ac_try" in
27695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696   *) ac_try_echo=$ac_try;;
27697 esac
27698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27699   (eval "$ac_compile") 2>conftest.er1
27700   ac_status=$?
27701   grep -v '^ *+' conftest.er1 >conftest.err
27702   rm -f conftest.er1
27703   cat conftest.err >&5
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); } && {
27706          test -z "$ac_cxx_werror_flag" ||
27707          test ! -s conftest.err
27708        } && test -s conftest.$ac_objext; then
27709   wx_cv_expat_is_not_broken=yes
27710 else
27711   echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714         wx_cv_expat_is_not_broken=no
27715
27716 fi
27717
27718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27719                 ac_ext=c
27720 ac_cpp='$CPP $CPPFLAGS'
27721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27724
27725
27726
27727 fi
27728 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27729 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27730             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27731                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27732 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27733 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27734   echo $ECHO_N "(cached) $ECHO_C" >&6
27735 else
27736   ac_check_lib_save_LIBS=$LIBS
27737 LIBS="-lexpat  $LIBS"
27738 cat >conftest.$ac_ext <<_ACEOF
27739 /* confdefs.h.  */
27740 _ACEOF
27741 cat confdefs.h >>conftest.$ac_ext
27742 cat >>conftest.$ac_ext <<_ACEOF
27743 /* end confdefs.h.  */
27744
27745 /* Override any GCC internal prototype to avoid an error.
27746    Use char because int might match the return type of a GCC
27747    builtin and then its argument prototype would still apply.  */
27748 #ifdef __cplusplus
27749 extern "C"
27750 #endif
27751 char XML_ParserCreate ();
27752 int
27753 main ()
27754 {
27755 return XML_ParserCreate ();
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761 if { (ac_try="$ac_link"
27762 case "(($ac_try" in
27763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764   *) ac_try_echo=$ac_try;;
27765 esac
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767   (eval "$ac_link") 2>conftest.er1
27768   ac_status=$?
27769   grep -v '^ *+' conftest.er1 >conftest.err
27770   rm -f conftest.er1
27771   cat conftest.err >&5
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); } && {
27774          test -z "$ac_c_werror_flag" ||
27775          test ! -s conftest.err
27776        } && test -s conftest$ac_exeext &&
27777        $as_test_x conftest$ac_exeext; then
27778   ac_cv_lib_expat_XML_ParserCreate=yes
27779 else
27780   echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27782
27783         ac_cv_lib_expat_XML_ParserCreate=no
27784 fi
27785
27786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27787       conftest$ac_exeext conftest.$ac_ext
27788 LIBS=$ac_check_lib_save_LIBS
27789 fi
27790 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27791 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27792 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27793   EXPAT_LINK=" -lexpat"
27794 fi
27795
27796             fi
27797         fi
27798         if test "x$EXPAT_LINK" = "x" ; then
27799             if test "$wxUSE_EXPAT" = "sys" ; then
27800                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27801 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27802    { (exit 1); exit 1; }; }
27803             else
27804                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27805 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27806                 wxUSE_EXPAT=builtin
27807             fi
27808         else
27809                         wxUSE_EXPAT=sys
27810         fi
27811     fi
27812     if test "$wxUSE_EXPAT" = "builtin" ; then
27813                 subdirs="$subdirs src/expat"
27814
27815     fi
27816 fi
27817
27818
27819
27820 if test "$wxUSE_LIBMSPACK" != "no"; then
27821     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27822 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27823 if test "${ac_cv_header_mspack_h+set}" = set; then
27824   echo $ECHO_N "(cached) $ECHO_C" >&6
27825 else
27826   cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832
27833
27834 #include <mspack.h>
27835 _ACEOF
27836 rm -f conftest.$ac_objext
27837 if { (ac_try="$ac_compile"
27838 case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843   (eval "$ac_compile") 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } && {
27850          test -z "$ac_c_werror_flag" ||
27851          test ! -s conftest.err
27852        } && test -s conftest.$ac_objext; then
27853   ac_cv_header_mspack_h=yes
27854 else
27855   echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858         ac_cv_header_mspack_h=no
27859 fi
27860
27861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 fi
27863 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27864 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27865 if test $ac_cv_header_mspack_h = yes; then
27866   found_mspack_h=1
27867 fi
27868
27869
27870     if test "x$found_mspack_h" = "x1"; then
27871         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27872 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27873 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876   ac_check_lib_save_LIBS=$LIBS
27877 LIBS="-lmspack  $LIBS"
27878 cat >conftest.$ac_ext <<_ACEOF
27879 /* confdefs.h.  */
27880 _ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h.  */
27884
27885 /* Override any GCC internal prototype to avoid an error.
27886    Use char because int might match the return type of a GCC
27887    builtin and then its argument prototype would still apply.  */
27888 #ifdef __cplusplus
27889 extern "C"
27890 #endif
27891 char mspack_create_chm_decompressor ();
27892 int
27893 main ()
27894 {
27895 return mspack_create_chm_decompressor ();
27896   ;
27897   return 0;
27898 }
27899 _ACEOF
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (ac_try="$ac_link"
27902 case "(($ac_try" in
27903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27904   *) ac_try_echo=$ac_try;;
27905 esac
27906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907   (eval "$ac_link") 2>conftest.er1
27908   ac_status=$?
27909   grep -v '^ *+' conftest.er1 >conftest.err
27910   rm -f conftest.er1
27911   cat conftest.err >&5
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); } && {
27914          test -z "$ac_c_werror_flag" ||
27915          test ! -s conftest.err
27916        } && test -s conftest$ac_exeext &&
27917        $as_test_x conftest$ac_exeext; then
27918   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27924 fi
27925
27926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27927       conftest$ac_exeext conftest.$ac_ext
27928 LIBS=$ac_check_lib_save_LIBS
27929 fi
27930 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27931 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27932 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27933   MSPACK_LINK=" -lmspack"
27934 fi
27935
27936     fi
27937     if test "x$MSPACK_LINK" = "x" ; then
27938         wxUSE_LIBMSPACK=no
27939     fi
27940 fi
27941
27942 if test "$wxUSE_LIBMSPACK" != "no"; then
27943     cat >>confdefs.h <<\_ACEOF
27944 #define wxUSE_LIBMSPACK 1
27945 _ACEOF
27946
27947 fi
27948
27949
27950
27951 AFMINSTALL=
27952 WIN32INSTALL=
27953
27954 TOOLKIT=
27955 TOOLKIT_INCLUDE=
27956 WIDGET_SET=
27957
27958 if test "$USE_WIN32" = 1 ; then
27959
27960 for ac_header in w32api.h
27961 do
27962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27966   echo $ECHO_N "(cached) $ECHO_C" >&6
27967 else
27968   cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h.  */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h.  */
27974
27975
27976 #include <$ac_header>
27977 _ACEOF
27978 rm -f conftest.$ac_objext
27979 if { (ac_try="$ac_compile"
27980 case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_compile") 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } && {
27992          test -z "$ac_c_werror_flag" ||
27993          test ! -s conftest.err
27994        } && test -s conftest.$ac_objext; then
27995   eval "$as_ac_Header=yes"
27996 else
27997   echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
27999
28000         eval "$as_ac_Header=no"
28001 fi
28002
28003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28004 fi
28005 ac_res=`eval echo '${'$as_ac_Header'}'`
28006                { echo "$as_me:$LINENO: result: $ac_res" >&5
28007 echo "${ECHO_T}$ac_res" >&6; }
28008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28009   cat >>confdefs.h <<_ACEOF
28010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28011 _ACEOF
28012
28013 fi
28014
28015 done
28016
28017     { echo "$as_me:$LINENO: checking for windows.h" >&5
28018 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28019 if test "${ac_cv_header_windows_h+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028
28029
28030 #include <windows.h>
28031 _ACEOF
28032 rm -f conftest.$ac_objext
28033 if { (ac_try="$ac_compile"
28034 case "(($ac_try" in
28035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036   *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039   (eval "$ac_compile") 2>conftest.er1
28040   ac_status=$?
28041   grep -v '^ *+' conftest.er1 >conftest.err
28042   rm -f conftest.er1
28043   cat conftest.err >&5
28044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045   (exit $ac_status); } && {
28046          test -z "$ac_c_werror_flag" ||
28047          test ! -s conftest.err
28048        } && test -s conftest.$ac_objext; then
28049   ac_cv_header_windows_h=yes
28050 else
28051   echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28053
28054         ac_cv_header_windows_h=no
28055 fi
28056
28057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28058 fi
28059 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28060 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28061 if test $ac_cv_header_windows_h = yes; then
28062   :
28063 else
28064
28065         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28066 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28067    { (exit 1); exit 1; }; }
28068
28069 fi
28070
28071
28072
28073             case "${host}" in
28074         x86_64-*-mingw32* )
28075                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28076         ;;
28077         * )
28078             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28079         ;;
28080     esac
28081     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28082         LIBS="$LIBS -loleacc"
28083     fi
28084
28085     case "${host}" in
28086         *-*-cygwin* )
28087                         LIBS="$LIBS -lkernel32 -luser32"
28088     esac
28089
28090         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28091     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28092
28093                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28094
28095         WIN32INSTALL=win32install
28096
28097         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28098 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28099 if test "${ac_cv_header_pbt_h+set}" = set; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102   cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108
28109
28110 #include <pbt.h>
28111 _ACEOF
28112 rm -f conftest.$ac_objext
28113 if { (ac_try="$ac_compile"
28114 case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119   (eval "$ac_compile") 2>conftest.er1
28120   ac_status=$?
28121   grep -v '^ *+' conftest.er1 >conftest.err
28122   rm -f conftest.er1
28123   cat conftest.err >&5
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); } && {
28126          test -z "$ac_c_werror_flag" ||
28127          test ! -s conftest.err
28128        } && test -s conftest.$ac_objext; then
28129   ac_cv_header_pbt_h=yes
28130 else
28131   echo "$as_me: failed program was:" >&5
28132 sed 's/^/| /' conftest.$ac_ext >&5
28133
28134         ac_cv_header_pbt_h=no
28135 fi
28136
28137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28138 fi
28139 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28140 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28141 if test $ac_cv_header_pbt_h = yes; then
28142   :
28143 else
28144   cat >>confdefs.h <<\_ACEOF
28145 #define NEED_PBT_H 1
28146 _ACEOF
28147
28148 fi
28149
28150
28151 fi
28152
28153 if test "$wxUSE_GUI" = "yes"; then
28154     USE_GUI=1
28155
28156     GUI_TK_LIBRARY=
28157
28158     WXGTK12=
28159     WXGTK127=
28160     WXGTK2=
28161     WXGPE=
28162
28163     if test "$wxUSE_COCOA" = 1 ; then
28164         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28165             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28166 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28167             wxUSE_PRINTING_ARCHITECTURE=no
28168         fi
28169         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28170             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28171 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28172             wxUSE_DRAG_AND_DROP=no
28173         fi
28174         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28175             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28176 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28177             wxUSE_DRAGIMAGE=no
28178         fi
28179     fi
28180
28181     if test "$wxUSE_MSW" = 1 ; then
28182         TOOLKIT=MSW
28183         GUIDIST=MSW_DIST
28184
28185                 case "${host}" in
28186             *-*-mingw32* )
28187                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28188         esac
28189     fi
28190
28191     if test "$wxUSE_GTK" = 1; then
28192                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28193 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28194
28195         gtk_version_cached=1
28196         if test "${wx_cv_lib_gtk+set}" = set; then
28197   echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199
28200                                                 gtk_version_cached=0
28201                 { echo "$as_me:$LINENO: result: " >&5
28202 echo "${ECHO_T}" >&6; }
28203
28204                                                 GTK_MODULES=
28205                 if test "$wxUSE_THREADS" = "yes"; then
28206                     GTK_MODULES=gthread
28207                 fi
28208
28209                                 wx_cv_lib_gtk=
28210                 if test "x$wxGTK_VERSION" != "x1"
28211                 then
28212                                                                                 case "${host}" in
28213                         *-*-solaris2* )
28214                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28215                                 enable_gtktest=no
28216                             fi
28217                     esac
28218
28219                     # Check whether --enable-gtktest was given.
28220 if test "${enable_gtktest+set}" = set; then
28221   enableval=$enable_gtktest;
28222 else
28223   enable_gtktest=yes
28224 fi
28225
28226
28227   pkg_config_args=gtk+-2.0
28228   for module in . $GTK_MODULES
28229   do
28230       case "$module" in
28231          gthread)
28232              pkg_config_args="$pkg_config_args gthread-2.0"
28233          ;;
28234       esac
28235   done
28236
28237   no_gtk=""
28238
28239   # Extract the first word of "pkg-config", so it can be a program name with args.
28240 set dummy pkg-config; ac_word=$2
28241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28243 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28244   echo $ECHO_N "(cached) $ECHO_C" >&6
28245 else
28246   case $PKG_CONFIG in
28247   [\\/]* | ?:[\\/]*)
28248   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28249   ;;
28250   *)
28251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28252 for as_dir in $PATH
28253 do
28254   IFS=$as_save_IFS
28255   test -z "$as_dir" && as_dir=.
28256   for ac_exec_ext in '' $ac_executable_extensions; do
28257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28258     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28260     break 2
28261   fi
28262 done
28263 done
28264 IFS=$as_save_IFS
28265
28266   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28267   ;;
28268 esac
28269 fi
28270 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28271 if test -n "$PKG_CONFIG"; then
28272   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28273 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28274 else
28275   { echo "$as_me:$LINENO: result: no" >&5
28276 echo "${ECHO_T}no" >&6; }
28277 fi
28278
28279
28280
28281   if test x$PKG_CONFIG != xno ; then
28282     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28283       :
28284     else
28285       echo "*** pkg-config too old; version 0.7 or better required."
28286       no_gtk=yes
28287       PKG_CONFIG=no
28288     fi
28289   else
28290     no_gtk=yes
28291   fi
28292
28293   min_gtk_version=2.4.0
28294   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28295 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28296
28297   if test x$PKG_CONFIG != xno ; then
28298     ## don't try to run the test against uninstalled libtool libs
28299     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28300           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28301           enable_gtktest=no
28302     fi
28303
28304     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28305           :
28306     else
28307           no_gtk=yes
28308     fi
28309   fi
28310
28311   if test x"$no_gtk" = x ; then
28312     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28313     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28314     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28315            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28316     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28317            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28318     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28319            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28320     if test "x$enable_gtktest" = "xyes" ; then
28321       ac_save_CFLAGS="$CFLAGS"
28322       ac_save_LIBS="$LIBS"
28323       CFLAGS="$CFLAGS $GTK_CFLAGS"
28324       LIBS="$GTK_LIBS $LIBS"
28325       rm -f conf.gtktest
28326       if test "$cross_compiling" = yes; then
28327   echo $ac_n "cross compiling; assumed OK... $ac_c"
28328 else
28329   cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335
28336 #include <gtk/gtk.h>
28337 #include <stdio.h>
28338 #include <stdlib.h>
28339
28340 int
28341 main ()
28342 {
28343   int major, minor, micro;
28344   char *tmp_version;
28345
28346   system ("touch conf.gtktest");
28347
28348   /* HP/UX 9 (%@#!) writes to sscanf strings */
28349   tmp_version = g_strdup("$min_gtk_version");
28350   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28351      printf("%s, bad version string\n", "$min_gtk_version");
28352      exit(1);
28353    }
28354
28355   if ((gtk_major_version != $gtk_config_major_version) ||
28356       (gtk_minor_version != $gtk_config_minor_version) ||
28357       (gtk_micro_version != $gtk_config_micro_version))
28358     {
28359       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28360              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28361              gtk_major_version, gtk_minor_version, gtk_micro_version);
28362       printf ("*** was found! If pkg-config was correct, then it is best\n");
28363       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28364       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28365       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28366       printf("*** required on your system.\n");
28367       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28368       printf("*** to point to the correct configuration files\n");
28369     }
28370   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28371            (gtk_minor_version != GTK_MINOR_VERSION) ||
28372            (gtk_micro_version != GTK_MICRO_VERSION))
28373     {
28374       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28375              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28376       printf("*** library (version %d.%d.%d)\n",
28377              gtk_major_version, gtk_minor_version, gtk_micro_version);
28378     }
28379   else
28380     {
28381       if ((gtk_major_version > major) ||
28382         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28383         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28384       {
28385         return 0;
28386        }
28387      else
28388       {
28389         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28390                gtk_major_version, gtk_minor_version, gtk_micro_version);
28391         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28392                major, minor, micro);
28393         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28394         printf("***\n");
28395         printf("*** If you have already installed a sufficiently new version, this error\n");
28396         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28397         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28398         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28399         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28400         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28401         printf("*** so that the correct libraries are found at run-time))\n");
28402       }
28403     }
28404   return 1;
28405 }
28406
28407 _ACEOF
28408 rm -f conftest$ac_exeext
28409 if { (ac_try="$ac_link"
28410 case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_link") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28419   { (case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_try") 2>&5
28425   ac_status=$?
28426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427   (exit $ac_status); }; }; then
28428   :
28429 else
28430   echo "$as_me: program exited with status $ac_status" >&5
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434 ( exit $ac_status )
28435 no_gtk=yes
28436 fi
28437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28438 fi
28439
28440
28441        CFLAGS="$ac_save_CFLAGS"
28442        LIBS="$ac_save_LIBS"
28443      fi
28444   fi
28445   if test "x$no_gtk" = x ; then
28446      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28447 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28448      wx_cv_lib_gtk=2.0
28449   else
28450      { echo "$as_me:$LINENO: result: no" >&5
28451 echo "${ECHO_T}no" >&6; }
28452      if test "$PKG_CONFIG" = "no" ; then
28453        echo "*** A new enough version of pkg-config was not found."
28454        echo "*** See http://pkgconfig.sourceforge.net"
28455      else
28456        if test -f conf.gtktest ; then
28457         :
28458        else
28459           echo "*** Could not run GTK+ test program, checking why..."
28460           ac_save_CFLAGS="$CFLAGS"
28461           ac_save_LIBS="$LIBS"
28462           CFLAGS="$CFLAGS $GTK_CFLAGS"
28463           LIBS="$LIBS $GTK_LIBS"
28464           cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470
28471 #include <gtk/gtk.h>
28472 #include <stdio.h>
28473
28474 int
28475 main ()
28476 {
28477  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28478   ;
28479   return 0;
28480 }
28481 _ACEOF
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (ac_try="$ac_link"
28484 case "(($ac_try" in
28485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486   *) ac_try_echo=$ac_try;;
28487 esac
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489   (eval "$ac_link") 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } && {
28496          test -z "$ac_c_werror_flag" ||
28497          test ! -s conftest.err
28498        } && test -s conftest$ac_exeext &&
28499        $as_test_x conftest$ac_exeext; then
28500    echo "*** The test program compiled, but did not run. This usually means"
28501           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28502           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28503           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28504           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28505           echo "*** is required on your system"
28506           echo "***"
28507           echo "*** If you have an old version installed, it is best to remove it, although"
28508           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28509 else
28510   echo "$as_me: failed program was:" >&5
28511 sed 's/^/| /' conftest.$ac_ext >&5
28512
28513          echo "*** The test program failed to compile or link. See the file config.log for the"
28514           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28515 fi
28516
28517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28518       conftest$ac_exeext conftest.$ac_ext
28519           CFLAGS="$ac_save_CFLAGS"
28520           LIBS="$ac_save_LIBS"
28521        fi
28522      fi
28523      GTK_CFLAGS=""
28524      GTK_LIBS=""
28525      :
28526   fi
28527
28528
28529   rm -f conf.gtktest
28530
28531
28532                                         case "${host}" in
28533                         *-*-solaris2* )
28534                             if test "$wxUSE_SHARED" != "yes"; then
28535                                 GTK_LIBS="$GTK_LIBS -lX11"
28536                             fi
28537                     esac
28538                 fi
28539
28540                                 if test -z "$wx_cv_lib_gtk"; then
28541                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28542
28543 # Check whether --with-gtk-prefix was given.
28544 if test "${with_gtk_prefix+set}" = set; then
28545   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28546 else
28547   gtk_config_prefix=""
28548 fi
28549
28550
28551 # Check whether --with-gtk-exec-prefix was given.
28552 if test "${with_gtk_exec_prefix+set}" = set; then
28553   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28554 else
28555   gtk_config_exec_prefix=""
28556 fi
28557
28558 # Check whether --enable-gtktest was given.
28559 if test "${enable_gtktest+set}" = set; then
28560   enableval=$enable_gtktest;
28561 else
28562   enable_gtktest=yes
28563 fi
28564
28565
28566   for module in . $GTK_MODULES
28567   do
28568       case "$module" in
28569          gthread)
28570              gtk_config_args="$gtk_config_args gthread"
28571          ;;
28572       esac
28573   done
28574
28575   if test x$gtk_config_exec_prefix != x ; then
28576      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28577      if test x${GTK_CONFIG+set} != xset ; then
28578         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28579      fi
28580   fi
28581   if test x$gtk_config_prefix != x ; then
28582      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28583      if test x${GTK_CONFIG+set} != xset ; then
28584         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28585      fi
28586   fi
28587
28588   # Extract the first word of "gtk-config", so it can be a program name with args.
28589 set dummy gtk-config; ac_word=$2
28590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28592 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28593   echo $ECHO_N "(cached) $ECHO_C" >&6
28594 else
28595   case $GTK_CONFIG in
28596   [\\/]* | ?:[\\/]*)
28597   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28598   ;;
28599   *)
28600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28601 for as_dir in $PATH
28602 do
28603   IFS=$as_save_IFS
28604   test -z "$as_dir" && as_dir=.
28605   for ac_exec_ext in '' $ac_executable_extensions; do
28606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28607     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28609     break 2
28610   fi
28611 done
28612 done
28613 IFS=$as_save_IFS
28614
28615   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28616   ;;
28617 esac
28618 fi
28619 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28620 if test -n "$GTK_CONFIG"; then
28621   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28622 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28623 else
28624   { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626 fi
28627
28628
28629   min_gtk_version=1.2.7
28630   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28631 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28632   no_gtk=""
28633   if test "$GTK_CONFIG" = "no" ; then
28634     no_gtk=yes
28635   else
28636     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28637     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28638     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28639            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28640     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28641            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28642     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28643            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28644     if test "x$enable_gtktest" = "xyes" ; then
28645       ac_save_CFLAGS="$CFLAGS"
28646       ac_save_LIBS="$LIBS"
28647       CFLAGS="$CFLAGS $GTK_CFLAGS"
28648       LIBS="$GTK_LIBS $LIBS"
28649       rm -f conf.gtktest
28650       if test "$cross_compiling" = yes; then
28651   echo $ac_n "cross compiling; assumed OK... $ac_c"
28652 else
28653   cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h.  */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h.  */
28659
28660 #include <gtk/gtk.h>
28661 #include <stdio.h>
28662 #include <stdlib.h>
28663
28664 int
28665 main ()
28666 {
28667   int major, minor, micro;
28668   char *tmp_version;
28669
28670   system ("touch conf.gtktest");
28671
28672   /* HP/UX 9 (%@#!) writes to sscanf strings */
28673   tmp_version = g_strdup("$min_gtk_version");
28674   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28675      printf("%s, bad version string\n", "$min_gtk_version");
28676      exit(1);
28677    }
28678
28679   if ((gtk_major_version != $gtk_config_major_version) ||
28680       (gtk_minor_version != $gtk_config_minor_version) ||
28681       (gtk_micro_version != $gtk_config_micro_version))
28682     {
28683       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28684              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28685              gtk_major_version, gtk_minor_version, gtk_micro_version);
28686       printf ("*** was found! If gtk-config was correct, then it is best\n");
28687       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28688       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28689       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28690       printf("*** required on your system.\n");
28691       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28692       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28693       printf("*** before re-running configure\n");
28694     }
28695 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28696   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28697            (gtk_minor_version != GTK_MINOR_VERSION) ||
28698            (gtk_micro_version != GTK_MICRO_VERSION))
28699     {
28700       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28701              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28702       printf("*** library (version %d.%d.%d)\n",
28703              gtk_major_version, gtk_minor_version, gtk_micro_version);
28704     }
28705 #endif /* defined (GTK_MAJOR_VERSION) ... */
28706   else
28707     {
28708       if ((gtk_major_version > major) ||
28709         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28710         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28711       {
28712         return 0;
28713        }
28714      else
28715       {
28716         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28717                gtk_major_version, gtk_minor_version, gtk_micro_version);
28718         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28719                major, minor, micro);
28720         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28721         printf("***\n");
28722         printf("*** If you have already installed a sufficiently new version, this error\n");
28723         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28724         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28725         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28726         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28727         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28728         printf("*** so that the correct libraries are found at run-time))\n");
28729       }
28730     }
28731   return 1;
28732 }
28733
28734 _ACEOF
28735 rm -f conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_link") 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28746   { (case "(($ac_try" in
28747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748   *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751   (eval "$ac_try") 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755   :
28756 else
28757   echo "$as_me: program exited with status $ac_status" >&5
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28760
28761 ( exit $ac_status )
28762 no_gtk=yes
28763 fi
28764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28765 fi
28766
28767
28768        CFLAGS="$ac_save_CFLAGS"
28769        LIBS="$ac_save_LIBS"
28770      fi
28771   fi
28772   if test "x$no_gtk" = x ; then
28773      { echo "$as_me:$LINENO: result: yes" >&5
28774 echo "${ECHO_T}yes" >&6; }
28775      wx_cv_lib_gtk=1.2.7
28776   else
28777      { echo "$as_me:$LINENO: result: no" >&5
28778 echo "${ECHO_T}no" >&6; }
28779      if test "$GTK_CONFIG" = "no" ; then
28780        echo "*** The gtk-config script installed by GTK could not be found"
28781        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28782        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28783        echo "*** full path to gtk-config."
28784      else
28785        if test -f conf.gtktest ; then
28786         :
28787        else
28788           echo "*** Could not run GTK test program, checking why..."
28789           CFLAGS="$CFLAGS $GTK_CFLAGS"
28790           LIBS="$LIBS $GTK_LIBS"
28791           cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797
28798 #include <gtk/gtk.h>
28799 #include <stdio.h>
28800
28801 int
28802 main ()
28803 {
28804  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_link") 2>conftest.er1
28817   ac_status=$?
28818   grep -v '^ *+' conftest.er1 >conftest.err
28819   rm -f conftest.er1
28820   cat conftest.err >&5
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); } && {
28823          test -z "$ac_c_werror_flag" ||
28824          test ! -s conftest.err
28825        } && test -s conftest$ac_exeext &&
28826        $as_test_x conftest$ac_exeext; then
28827    echo "*** The test program compiled, but did not run. This usually means"
28828           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28829           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28830           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28831           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28832           echo "*** is required on your system"
28833           echo "***"
28834           echo "*** If you have an old version installed, it is best to remove it, although"
28835           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28836           echo "***"
28837           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28838           echo "*** came with the system with the command"
28839           echo "***"
28840           echo "***    rpm --erase --nodeps gtk gtk-devel"
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845          echo "*** The test program failed to compile or link. See the file config.log for the"
28846           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28847           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28848           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28849 fi
28850
28851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28852       conftest$ac_exeext conftest.$ac_ext
28853           CFLAGS="$ac_save_CFLAGS"
28854           LIBS="$ac_save_LIBS"
28855        fi
28856      fi
28857      GTK_CFLAGS=""
28858      GTK_LIBS=""
28859      :
28860   fi
28861
28862
28863   rm -f conf.gtktest
28864
28865
28866                         if test -z "$wx_cv_lib_gtk"; then
28867
28868 # Check whether --with-gtk-prefix was given.
28869 if test "${with_gtk_prefix+set}" = set; then
28870   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28871 else
28872   gtk_config_prefix=""
28873 fi
28874
28875
28876 # Check whether --with-gtk-exec-prefix was given.
28877 if test "${with_gtk_exec_prefix+set}" = set; then
28878   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28879 else
28880   gtk_config_exec_prefix=""
28881 fi
28882
28883 # Check whether --enable-gtktest was given.
28884 if test "${enable_gtktest+set}" = set; then
28885   enableval=$enable_gtktest;
28886 else
28887   enable_gtktest=yes
28888 fi
28889
28890
28891   for module in . $GTK_MODULES
28892   do
28893       case "$module" in
28894          gthread)
28895              gtk_config_args="$gtk_config_args gthread"
28896          ;;
28897       esac
28898   done
28899
28900   if test x$gtk_config_exec_prefix != x ; then
28901      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28902      if test x${GTK_CONFIG+set} != xset ; then
28903         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28904      fi
28905   fi
28906   if test x$gtk_config_prefix != x ; then
28907      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28908      if test x${GTK_CONFIG+set} != xset ; then
28909         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28910      fi
28911   fi
28912
28913   # Extract the first word of "gtk-config", so it can be a program name with args.
28914 set dummy gtk-config; ac_word=$2
28915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28917 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28918   echo $ECHO_N "(cached) $ECHO_C" >&6
28919 else
28920   case $GTK_CONFIG in
28921   [\\/]* | ?:[\\/]*)
28922   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28923   ;;
28924   *)
28925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28926 for as_dir in $PATH
28927 do
28928   IFS=$as_save_IFS
28929   test -z "$as_dir" && as_dir=.
28930   for ac_exec_ext in '' $ac_executable_extensions; do
28931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28932     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28934     break 2
28935   fi
28936 done
28937 done
28938 IFS=$as_save_IFS
28939
28940   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28941   ;;
28942 esac
28943 fi
28944 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28945 if test -n "$GTK_CONFIG"; then
28946   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28947 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28948 else
28949   { echo "$as_me:$LINENO: result: no" >&5
28950 echo "${ECHO_T}no" >&6; }
28951 fi
28952
28953
28954   min_gtk_version=1.2.3
28955   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28956 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28957   no_gtk=""
28958   if test "$GTK_CONFIG" = "no" ; then
28959     no_gtk=yes
28960   else
28961     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28962     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28963     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28964            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28965     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28966            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28967     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28968            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28969     if test "x$enable_gtktest" = "xyes" ; then
28970       ac_save_CFLAGS="$CFLAGS"
28971       ac_save_LIBS="$LIBS"
28972       CFLAGS="$CFLAGS $GTK_CFLAGS"
28973       LIBS="$GTK_LIBS $LIBS"
28974       rm -f conf.gtktest
28975       if test "$cross_compiling" = yes; then
28976   echo $ac_n "cross compiling; assumed OK... $ac_c"
28977 else
28978   cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984
28985 #include <gtk/gtk.h>
28986 #include <stdio.h>
28987 #include <stdlib.h>
28988
28989 int
28990 main ()
28991 {
28992   int major, minor, micro;
28993   char *tmp_version;
28994
28995   system ("touch conf.gtktest");
28996
28997   /* HP/UX 9 (%@#!) writes to sscanf strings */
28998   tmp_version = g_strdup("$min_gtk_version");
28999   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29000      printf("%s, bad version string\n", "$min_gtk_version");
29001      exit(1);
29002    }
29003
29004   if ((gtk_major_version != $gtk_config_major_version) ||
29005       (gtk_minor_version != $gtk_config_minor_version) ||
29006       (gtk_micro_version != $gtk_config_micro_version))
29007     {
29008       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29009              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29010              gtk_major_version, gtk_minor_version, gtk_micro_version);
29011       printf ("*** was found! If gtk-config was correct, then it is best\n");
29012       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29013       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29014       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29015       printf("*** required on your system.\n");
29016       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29017       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29018       printf("*** before re-running configure\n");
29019     }
29020 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29021   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29022            (gtk_minor_version != GTK_MINOR_VERSION) ||
29023            (gtk_micro_version != GTK_MICRO_VERSION))
29024     {
29025       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29026              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29027       printf("*** library (version %d.%d.%d)\n",
29028              gtk_major_version, gtk_minor_version, gtk_micro_version);
29029     }
29030 #endif /* defined (GTK_MAJOR_VERSION) ... */
29031   else
29032     {
29033       if ((gtk_major_version > major) ||
29034         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29035         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29036       {
29037         return 0;
29038        }
29039      else
29040       {
29041         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29042                gtk_major_version, gtk_minor_version, gtk_micro_version);
29043         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29044                major, minor, micro);
29045         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29046         printf("***\n");
29047         printf("*** If you have already installed a sufficiently new version, this error\n");
29048         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29049         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29050         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29051         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29052         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29053         printf("*** so that the correct libraries are found at run-time))\n");
29054       }
29055     }
29056   return 1;
29057 }
29058
29059 _ACEOF
29060 rm -f conftest$ac_exeext
29061 if { (ac_try="$ac_link"
29062 case "(($ac_try" in
29063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064   *) ac_try_echo=$ac_try;;
29065 esac
29066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067   (eval "$ac_link") 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29071   { (case "(($ac_try" in
29072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29073   *) ac_try_echo=$ac_try;;
29074 esac
29075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29076   (eval "$ac_try") 2>&5
29077   ac_status=$?
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); }; }; then
29080   :
29081 else
29082   echo "$as_me: program exited with status $ac_status" >&5
29083 echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29085
29086 ( exit $ac_status )
29087 no_gtk=yes
29088 fi
29089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29090 fi
29091
29092
29093        CFLAGS="$ac_save_CFLAGS"
29094        LIBS="$ac_save_LIBS"
29095      fi
29096   fi
29097   if test "x$no_gtk" = x ; then
29098      { echo "$as_me:$LINENO: result: yes" >&5
29099 echo "${ECHO_T}yes" >&6; }
29100      wx_cv_lib_gtk=1.2.3
29101   else
29102      { echo "$as_me:$LINENO: result: no" >&5
29103 echo "${ECHO_T}no" >&6; }
29104      if test "$GTK_CONFIG" = "no" ; then
29105        echo "*** The gtk-config script installed by GTK could not be found"
29106        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29107        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29108        echo "*** full path to gtk-config."
29109      else
29110        if test -f conf.gtktest ; then
29111         :
29112        else
29113           echo "*** Could not run GTK test program, checking why..."
29114           CFLAGS="$CFLAGS $GTK_CFLAGS"
29115           LIBS="$LIBS $GTK_LIBS"
29116           cat >conftest.$ac_ext <<_ACEOF
29117 /* confdefs.h.  */
29118 _ACEOF
29119 cat confdefs.h >>conftest.$ac_ext
29120 cat >>conftest.$ac_ext <<_ACEOF
29121 /* end confdefs.h.  */
29122
29123 #include <gtk/gtk.h>
29124 #include <stdio.h>
29125
29126 int
29127 main ()
29128 {
29129  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29130   ;
29131   return 0;
29132 }
29133 _ACEOF
29134 rm -f conftest.$ac_objext conftest$ac_exeext
29135 if { (ac_try="$ac_link"
29136 case "(($ac_try" in
29137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138   *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141   (eval "$ac_link") 2>conftest.er1
29142   ac_status=$?
29143   grep -v '^ *+' conftest.er1 >conftest.err
29144   rm -f conftest.er1
29145   cat conftest.err >&5
29146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147   (exit $ac_status); } && {
29148          test -z "$ac_c_werror_flag" ||
29149          test ! -s conftest.err
29150        } && test -s conftest$ac_exeext &&
29151        $as_test_x conftest$ac_exeext; then
29152    echo "*** The test program compiled, but did not run. This usually means"
29153           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29154           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29155           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29156           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29157           echo "*** is required on your system"
29158           echo "***"
29159           echo "*** If you have an old version installed, it is best to remove it, although"
29160           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29161           echo "***"
29162           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29163           echo "*** came with the system with the command"
29164           echo "***"
29165           echo "***    rpm --erase --nodeps gtk gtk-devel"
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170          echo "*** The test program failed to compile or link. See the file config.log for the"
29171           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29172           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29173           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29174 fi
29175
29176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29177       conftest$ac_exeext conftest.$ac_ext
29178           CFLAGS="$ac_save_CFLAGS"
29179           LIBS="$ac_save_LIBS"
29180        fi
29181      fi
29182      GTK_CFLAGS=""
29183      GTK_LIBS=""
29184      :
29185   fi
29186
29187
29188   rm -f conf.gtktest
29189
29190                         fi
29191                     fi
29192                 fi
29193
29194                 if test -z "$wx_cv_lib_gtk"; then
29195                                         wx_cv_lib_gtk=none
29196                 else
29197                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29198                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29199                 fi
29200
29201
29202 fi
29203
29204
29205                         if test "$gtk_version_cached" = 1; then
29206             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29207 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29208         fi
29209
29210         case "$wx_cv_lib_gtk" in
29211             2.0)    WXGTK2=1
29212                     TOOLKIT_VERSION=2
29213                     ;;
29214             1.2.7)  WXGTK127=1
29215                     WXGTK12=1
29216                     ;;
29217             1.2.3)  WXGTK12=1
29218                     ;;
29219             *)      { { echo "$as_me:$LINENO: error:
29220 The development files for GTK+ were not found. For GTK+ 2, please
29221 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29222 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29223 and that the version is 1.2.3 or above. Also check that the
29224 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29225 --libs' are in the LD_LIBRARY_PATH or equivalent.
29226                             " >&5
29227 echo "$as_me: error:
29228 The development files for GTK+ were not found. For GTK+ 2, please
29229 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29230 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29231 and that the version is 1.2.3 or above. Also check that the
29232 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29233 --libs' are in the LD_LIBRARY_PATH or equivalent.
29234                             " >&2;}
29235    { (exit 1); exit 1; }; }
29236                     ;;
29237         esac
29238
29239         if test "$WXGTK2" = 1; then
29240             save_CFLAGS="$CFLAGS"
29241             save_LIBS="$LIBS"
29242             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29243             LIBS="$LIBS $wx_cv_libs_gtk"
29244
29245                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29246 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29247             cat >conftest.$ac_ext <<_ACEOF
29248 /* confdefs.h.  */
29249 _ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h.  */
29253
29254                             #include <gtk/gtk.h>
29255
29256 int
29257 main ()
29258 {
29259
29260                             #if !GTK_CHECK_VERSION(2,10,0)
29261                             Not GTK+ 2.10
29262                             #endif
29263
29264   ;
29265   return 0;
29266 }
29267 _ACEOF
29268 rm -f conftest.$ac_objext
29269 if { (ac_try="$ac_compile"
29270 case "(($ac_try" in
29271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272   *) ac_try_echo=$ac_try;;
29273 esac
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275   (eval "$ac_compile") 2>conftest.er1
29276   ac_status=$?
29277   grep -v '^ *+' conftest.er1 >conftest.err
29278   rm -f conftest.er1
29279   cat conftest.err >&5
29280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281   (exit $ac_status); } && {
29282          test -z "$ac_c_werror_flag" ||
29283          test ! -s conftest.err
29284        } && test -s conftest.$ac_objext; then
29285
29286                             cat >>confdefs.h <<\_ACEOF
29287 #define __WXGTK210__ 1
29288 _ACEOF
29289
29290                             cat >>confdefs.h <<\_ACEOF
29291 #define __WXGTK26__ 1
29292 _ACEOF
29293
29294                             { echo "$as_me:$LINENO: result: yes" >&5
29295 echo "${ECHO_T}yes" >&6; }
29296                             ac_wxgtk210=1
29297
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302
29303                             { echo "$as_me:$LINENO: result: no" >&5
29304 echo "${ECHO_T}no" >&6; }
29305                             ac_wxgtk210=0
29306
29307 fi
29308
29309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29310
29311             if test "$ac_wxgtk210" = 0; then
29312                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29313 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29314                 cat >conftest.$ac_ext <<_ACEOF
29315 /* confdefs.h.  */
29316 _ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h.  */
29320
29321                                 #include <gtk/gtk.h>
29322
29323 int
29324 main ()
29325 {
29326
29327                                 #if !GTK_CHECK_VERSION(2,6,0)
29328                                 Not GTK+ 2.6
29329                                 #endif
29330
29331   ;
29332   return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339   *) ac_try_echo=$ac_try;;
29340 esac
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342   (eval "$ac_compile") 2>conftest.er1
29343   ac_status=$?
29344   grep -v '^ *+' conftest.er1 >conftest.err
29345   rm -f conftest.er1
29346   cat conftest.err >&5
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); } && {
29349          test -z "$ac_c_werror_flag" ||
29350          test ! -s conftest.err
29351        } && test -s conftest.$ac_objext; then
29352
29353                                 cat >>confdefs.h <<\_ACEOF
29354 #define __WXGTK26__ 1
29355 _ACEOF
29356
29357                                 { echo "$as_me:$LINENO: result: yes" >&5
29358 echo "${ECHO_T}yes" >&6; }
29359                                 ac_wxgtk26=1
29360
29361 else
29362   echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29364
29365
29366                                 { echo "$as_me:$LINENO: result: no" >&5
29367 echo "${ECHO_T}no" >&6; }
29368                                 ac_wxgtk26=0
29369
29370 fi
29371
29372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29373             fi
29374
29375             CFLAGS="$save_CFLAGS"
29376             LIBS="$save_LIBS"
29377         else
29378             if test "$wxUSE_UNICODE" = "yes"; then
29379                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29380 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29381                 wxUSE_UNICODE=no
29382             fi
29383
29384                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29385 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29386 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29387   echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29389   ac_check_lib_save_LIBS=$LIBS
29390 LIBS="-lgdk  $LIBS"
29391 cat >conftest.$ac_ext <<_ACEOF
29392 /* confdefs.h.  */
29393 _ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h.  */
29397
29398 /* Override any GCC internal prototype to avoid an error.
29399    Use char because int might match the return type of a GCC
29400    builtin and then its argument prototype would still apply.  */
29401 #ifdef __cplusplus
29402 extern "C"
29403 #endif
29404 char gdk_im_open ();
29405 int
29406 main ()
29407 {
29408 return gdk_im_open ();
29409   ;
29410   return 0;
29411 }
29412 _ACEOF
29413 rm -f conftest.$ac_objext conftest$ac_exeext
29414 if { (ac_try="$ac_link"
29415 case "(($ac_try" in
29416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417   *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420   (eval "$ac_link") 2>conftest.er1
29421   ac_status=$?
29422   grep -v '^ *+' conftest.er1 >conftest.err
29423   rm -f conftest.er1
29424   cat conftest.err >&5
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); } && {
29427          test -z "$ac_c_werror_flag" ||
29428          test ! -s conftest.err
29429        } && test -s conftest$ac_exeext &&
29430        $as_test_x conftest$ac_exeext; then
29431   ac_cv_lib_gdk_gdk_im_open=yes
29432 else
29433   echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29435
29436         ac_cv_lib_gdk_gdk_im_open=no
29437 fi
29438
29439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29440       conftest$ac_exeext conftest.$ac_ext
29441 LIBS=$ac_check_lib_save_LIBS
29442 fi
29443 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29444 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29445 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29446   cat >>confdefs.h <<\_ACEOF
29447 #define HAVE_XIM 1
29448 _ACEOF
29449
29450 fi
29451
29452
29453                                     if test "$USE_DARWIN" != 1; then
29454
29455 for ac_func in poll
29456 do
29457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29461   echo $ECHO_N "(cached) $ECHO_C" >&6
29462 else
29463   cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29471 #define $ac_func innocuous_$ac_func
29472
29473 /* System header to define __stub macros and hopefully few prototypes,
29474     which can conflict with char $ac_func (); below.
29475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29476     <limits.h> exists even on freestanding compilers.  */
29477
29478 #ifdef __STDC__
29479 # include <limits.h>
29480 #else
29481 # include <assert.h>
29482 #endif
29483
29484 #undef $ac_func
29485
29486 /* Override any GCC internal prototype to avoid an error.
29487    Use char because int might match the return type of a GCC
29488    builtin and then its argument prototype would still apply.  */
29489 #ifdef __cplusplus
29490 extern "C"
29491 #endif
29492 char $ac_func ();
29493 /* The GNU C library defines this for functions which it implements
29494     to always fail with ENOSYS.  Some functions are actually named
29495     something starting with __ and the normal name is an alias.  */
29496 #if defined __stub_$ac_func || defined __stub___$ac_func
29497 choke me
29498 #endif
29499
29500 int
29501 main ()
29502 {
29503 return $ac_func ();
29504   ;
29505   return 0;
29506 }
29507 _ACEOF
29508 rm -f conftest.$ac_objext conftest$ac_exeext
29509 if { (ac_try="$ac_link"
29510 case "(($ac_try" in
29511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512   *) ac_try_echo=$ac_try;;
29513 esac
29514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515   (eval "$ac_link") 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } && {
29522          test -z "$ac_c_werror_flag" ||
29523          test ! -s conftest.err
29524        } && test -s conftest$ac_exeext &&
29525        $as_test_x conftest$ac_exeext; then
29526   eval "$as_ac_var=yes"
29527 else
29528   echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29530
29531         eval "$as_ac_var=no"
29532 fi
29533
29534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29535       conftest$ac_exeext conftest.$ac_ext
29536 fi
29537 ac_res=`eval echo '${'$as_ac_var'}'`
29538                { echo "$as_me:$LINENO: result: $ac_res" >&5
29539 echo "${ECHO_T}$ac_res" >&6; }
29540 if test `eval echo '${'$as_ac_var'}'` = yes; then
29541   cat >>confdefs.h <<_ACEOF
29542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29543 _ACEOF
29544
29545 fi
29546 done
29547
29548             fi
29549         fi
29550
29551         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29552         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29553
29554         AFMINSTALL=afminstall
29555         TOOLKIT=GTK
29556         GUIDIST=GTK_DIST
29557
29558                 if test "$wxUSE_GPE" = "yes"; then
29559             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29560 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29561
29562   ac_find_libraries=
29563   for ac_dir in $SEARCH_LIB;
29564   do
29565     for ac_extension in a so sl dylib dll.a; do
29566       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29567         ac_find_libraries=$ac_dir
29568         break 2
29569       fi
29570     done
29571   done
29572
29573             if test "$ac_find_libraries" != "" ; then
29574
29575     if test "$ac_find_libraries" = "default location"; then
29576     ac_path_to_link=""
29577   else
29578     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29579     result=$?
29580     if test $result = 0; then
29581       ac_path_to_link=""
29582     else
29583       ac_path_to_link=" -L$ac_find_libraries"
29584     fi
29585   fi
29586
29587                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29588                 WXGPE=1
29589                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29590 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29591             else
29592                 { echo "$as_me:$LINENO: result: not found" >&5
29593 echo "${ECHO_T}not found" >&6; }
29594             fi
29595
29596                                                                                                                     fi
29597     fi
29598
29599     if test "$wxUSE_MGL" = 1; then
29600        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29601 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29602         if test "x$MGL_ROOT" = x ; then
29603             { echo "$as_me:$LINENO: result: not found" >&5
29604 echo "${ECHO_T}not found" >&6; }
29605             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29606 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29607    { (exit 1); exit 1; }; }
29608         else
29609             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29610 echo "${ECHO_T}$MGL_ROOT" >&6; }
29611         fi
29612
29613         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29614 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29615                                 case "${host}" in
29616             *-*-linux* )
29617                                           if test "x$wxUSE_SHARED" = xyes ; then
29618                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29619               else
29620                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29621               fi
29622               ;;
29623             *-pc-msdosdjgpp )
29624               mgl_os_candidates="dos32/dj2"
29625               ;;
29626             *)
29627               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29628 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29629    { (exit 1); exit 1; }; }
29630         esac
29631
29632         mgl_lib_type=""
29633         mgl_os=""
29634
29635         for mgl_os_i in $mgl_os_candidates ; do
29636             if test "x$mgl_os" = x ; then
29637                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29638                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29639                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29640                         mgl_lib_type=debug
29641                         mgl_os=$mgl_os_i
29642                     fi
29643                 fi
29644                 if test "x$mgl_lib_type" = x ; then
29645                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29646                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29647                         mgl_lib_type=release
29648                         mgl_os=$mgl_os_i
29649                     fi
29650                 fi
29651             fi
29652         done
29653
29654         if test "x$mgl_os" = x ; then
29655             { echo "$as_me:$LINENO: result: not found" >&5
29656 echo "${ECHO_T}not found" >&6; }
29657             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29658 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29659    { (exit 1); exit 1; }; }
29660         fi
29661         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29662 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29663
29664         wxUSE_UNIVERSAL="yes"
29665
29666         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29667         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29668
29669         AFMINSTALL=afminstall
29670         TOOLKIT=MGL
29671         GUIDIST=MGL_DIST
29672     fi
29673
29674     if test "$wxUSE_DFB" = 1; then
29675
29676
29677 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29678         if test -n "$ac_tool_prefix"; then
29679   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29680 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29684   echo $ECHO_N "(cached) $ECHO_C" >&6
29685 else
29686   case $PKG_CONFIG in
29687   [\\/]* | ?:[\\/]*)
29688   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29689   ;;
29690   *)
29691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29692 for as_dir in $PATH
29693 do
29694   IFS=$as_save_IFS
29695   test -z "$as_dir" && as_dir=.
29696   for ac_exec_ext in '' $ac_executable_extensions; do
29697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29698     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29700     break 2
29701   fi
29702 done
29703 done
29704 IFS=$as_save_IFS
29705
29706   ;;
29707 esac
29708 fi
29709 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29710 if test -n "$PKG_CONFIG"; then
29711   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29712 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29713 else
29714   { echo "$as_me:$LINENO: result: no" >&5
29715 echo "${ECHO_T}no" >&6; }
29716 fi
29717
29718
29719 fi
29720 if test -z "$ac_cv_path_PKG_CONFIG"; then
29721   ac_pt_PKG_CONFIG=$PKG_CONFIG
29722   # Extract the first word of "pkg-config", so it can be a program name with args.
29723 set dummy pkg-config; ac_word=$2
29724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29726 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29727   echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729   case $ac_pt_PKG_CONFIG in
29730   [\\/]* | ?:[\\/]*)
29731   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29732   ;;
29733   *)
29734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29735 for as_dir in $PATH
29736 do
29737   IFS=$as_save_IFS
29738   test -z "$as_dir" && as_dir=.
29739   for ac_exec_ext in '' $ac_executable_extensions; do
29740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29741     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29743     break 2
29744   fi
29745 done
29746 done
29747 IFS=$as_save_IFS
29748
29749   ;;
29750 esac
29751 fi
29752 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29753 if test -n "$ac_pt_PKG_CONFIG"; then
29754   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29755 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29756 else
29757   { echo "$as_me:$LINENO: result: no" >&5
29758 echo "${ECHO_T}no" >&6; }
29759 fi
29760
29761   if test "x$ac_pt_PKG_CONFIG" = x; then
29762     PKG_CONFIG=""
29763   else
29764     case $cross_compiling:$ac_tool_warned in
29765 yes:)
29766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29767 whose name does not start with the host triplet.  If you think this
29768 configuration is useful to you, please write to autoconf@gnu.org." >&5
29769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29770 whose name does not start with the host triplet.  If you think this
29771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29772 ac_tool_warned=yes ;;
29773 esac
29774     PKG_CONFIG=$ac_pt_PKG_CONFIG
29775   fi
29776 else
29777   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29778 fi
29779
29780 fi
29781 if test -n "$PKG_CONFIG"; then
29782         _pkg_min_version=0.9.0
29783         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29784 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29785         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29786                 { echo "$as_me:$LINENO: result: yes" >&5
29787 echo "${ECHO_T}yes" >&6; }
29788         else
29789                 { echo "$as_me:$LINENO: result: no" >&5
29790 echo "${ECHO_T}no" >&6; }
29791                 PKG_CONFIG=""
29792         fi
29793
29794 fi
29795
29796
29797 pkg_failed=no
29798 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29799 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29800
29801 if test -n "$PKG_CONFIG"; then
29802     if test -n "$DIRECTFB_CFLAGS"; then
29803         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29804     else
29805         if test -n "$PKG_CONFIG" && \
29806     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29807   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); }; then
29811   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29812 else
29813   pkg_failed=yes
29814 fi
29815     fi
29816 else
29817         pkg_failed=untried
29818 fi
29819 if test -n "$PKG_CONFIG"; then
29820     if test -n "$DIRECTFB_LIBS"; then
29821         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29822     else
29823         if test -n "$PKG_CONFIG" && \
29824     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29825   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29826   ac_status=$?
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); }; then
29829   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29830 else
29831   pkg_failed=yes
29832 fi
29833     fi
29834 else
29835         pkg_failed=untried
29836 fi
29837
29838
29839
29840 if test $pkg_failed = yes; then
29841
29842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29843         _pkg_short_errors_supported=yes
29844 else
29845         _pkg_short_errors_supported=no
29846 fi
29847         if test $_pkg_short_errors_supported = yes; then
29848                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29849         else
29850                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29851         fi
29852         # Put the nasty error message in config.log where it belongs
29853         echo "$DIRECTFB_PKG_ERRORS" >&5
29854
29855
29856                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29857 echo "$as_me: error: DirectFB not found." >&2;}
29858    { (exit 1); exit 1; }; }
29859
29860
29861 elif test $pkg_failed = untried; then
29862
29863                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29864 echo "$as_me: error: DirectFB not found." >&2;}
29865    { (exit 1); exit 1; }; }
29866
29867
29868 else
29869         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29870         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29871         { echo "$as_me:$LINENO: result: yes" >&5
29872 echo "${ECHO_T}yes" >&6; }
29873
29874                            wxUSE_UNIVERSAL="yes"
29875                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29876                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29877                            TOOLKIT=DFB
29878                            GUIDIST=DFB_DIST
29879
29880 fi
29881     fi
29882
29883     if test "$wxUSE_MICROWIN" = 1; then
29884         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29885 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29886         if test "x$MICROWINDOWS" = x ; then
29887             { echo "$as_me:$LINENO: result: not found" >&5
29888 echo "${ECHO_T}not found" >&6; }
29889             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29890 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29891    { (exit 1); exit 1; }; }
29892         else
29893             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29894 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29895         fi
29896
29897         if test -f $MICROWINDOWS/lib/libmwin.a; then
29898             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29899 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29900         else
29901             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29902 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29903    { (exit 1); exit 1; }; }
29904         fi
29905
29906         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29907         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29908
29909         wxUSE_UNIVERSAL="yes"
29910
29911         AFMINSTALL=afminstall
29912         TOOLKIT=MICROWIN
29913         GUIDIST=MICROWIN_DIST
29914
29915         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29916     fi
29917
29918         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29919                                 { echo "$as_me:$LINENO: checking for X" >&5
29920 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29921
29922
29923 # Check whether --with-x was given.
29924 if test "${with_x+set}" = set; then
29925   withval=$with_x;
29926 fi
29927
29928 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29929 if test "x$with_x" = xno; then
29930   # The user explicitly disabled X.
29931   have_x=disabled
29932 else
29933   case $x_includes,$x_libraries in #(
29934     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29935 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29936    { (exit 1); exit 1; }; };; #(
29937     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29938   echo $ECHO_N "(cached) $ECHO_C" >&6
29939 else
29940   # One or both of the vars are not set, and there is no cached value.
29941 ac_x_includes=no ac_x_libraries=no
29942 rm -f -r conftest.dir
29943 if mkdir conftest.dir; then
29944   cd conftest.dir
29945   cat >Imakefile <<'_ACEOF'
29946 incroot:
29947         @echo incroot='${INCROOT}'
29948 usrlibdir:
29949         @echo usrlibdir='${USRLIBDIR}'
29950 libdir:
29951         @echo libdir='${LIBDIR}'
29952 _ACEOF
29953   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29954     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29955     for ac_var in incroot usrlibdir libdir; do
29956       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29957     done
29958     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29959     for ac_extension in a so sl; do
29960       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29961          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29962         ac_im_usrlibdir=$ac_im_libdir; break
29963       fi
29964     done
29965     # Screen out bogus values from the imake configuration.  They are
29966     # bogus both because they are the default anyway, and because
29967     # using them would break gcc on systems where it needs fixed includes.
29968     case $ac_im_incroot in
29969         /usr/include) ac_x_includes= ;;
29970         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29971     esac
29972     case $ac_im_usrlibdir in
29973         /usr/lib | /lib) ;;
29974         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29975     esac
29976   fi
29977   cd ..
29978   rm -f -r conftest.dir
29979 fi
29980
29981 # Standard set of common directories for X headers.
29982 # Check X11 before X11Rn because it is often a symlink to the current release.
29983 ac_x_header_dirs='
29984 /usr/X11/include
29985 /usr/X11R6/include
29986 /usr/X11R5/include
29987 /usr/X11R4/include
29988
29989 /usr/include/X11
29990 /usr/include/X11R6
29991 /usr/include/X11R5
29992 /usr/include/X11R4
29993
29994 /usr/local/X11/include
29995 /usr/local/X11R6/include
29996 /usr/local/X11R5/include
29997 /usr/local/X11R4/include
29998
29999 /usr/local/include/X11
30000 /usr/local/include/X11R6
30001 /usr/local/include/X11R5
30002 /usr/local/include/X11R4
30003
30004 /usr/X386/include
30005 /usr/x386/include
30006 /usr/XFree86/include/X11
30007
30008 /usr/include
30009 /usr/local/include
30010 /usr/unsupported/include
30011 /usr/athena/include
30012 /usr/local/x11r5/include
30013 /usr/lpp/Xamples/include
30014
30015 /usr/openwin/include
30016 /usr/openwin/share/include'
30017
30018 if test "$ac_x_includes" = no; then
30019   # Guess where to find include files, by looking for Xlib.h.
30020   # First, try using that file with no special directory specified.
30021   cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h.  */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h.  */
30027 #include <X11/Xlib.h>
30028 _ACEOF
30029 if { (ac_try="$ac_cpp conftest.$ac_ext"
30030 case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30036   ac_status=$?
30037   grep -v '^ *+' conftest.er1 >conftest.err
30038   rm -f conftest.er1
30039   cat conftest.err >&5
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); } >/dev/null && {
30042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30043          test ! -s conftest.err
30044        }; then
30045   # We can compile using X headers with no special include directory.
30046 ac_x_includes=
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051   for ac_dir in $ac_x_header_dirs; do
30052   if test -r "$ac_dir/X11/Xlib.h"; then
30053     ac_x_includes=$ac_dir
30054     break
30055   fi
30056 done
30057 fi
30058
30059 rm -f conftest.err conftest.$ac_ext
30060 fi # $ac_x_includes = no
30061
30062 if test "$ac_x_libraries" = no; then
30063   # Check for the libraries.
30064   # See if we find them without any special options.
30065   # Don't add to $LIBS permanently.
30066   ac_save_LIBS=$LIBS
30067   LIBS="-lX11 $LIBS"
30068   cat >conftest.$ac_ext <<_ACEOF
30069 /* confdefs.h.  */
30070 _ACEOF
30071 cat confdefs.h >>conftest.$ac_ext
30072 cat >>conftest.$ac_ext <<_ACEOF
30073 /* end confdefs.h.  */
30074 #include <X11/Xlib.h>
30075 int
30076 main ()
30077 {
30078 XrmInitialize ()
30079   ;
30080   return 0;
30081 }
30082 _ACEOF
30083 rm -f conftest.$ac_objext conftest$ac_exeext
30084 if { (ac_try="$ac_link"
30085 case "(($ac_try" in
30086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087   *) ac_try_echo=$ac_try;;
30088 esac
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090   (eval "$ac_link") 2>conftest.er1
30091   ac_status=$?
30092   grep -v '^ *+' conftest.er1 >conftest.err
30093   rm -f conftest.er1
30094   cat conftest.err >&5
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); } && {
30097          test -z "$ac_c_werror_flag" ||
30098          test ! -s conftest.err
30099        } && test -s conftest$ac_exeext &&
30100        $as_test_x conftest$ac_exeext; then
30101   LIBS=$ac_save_LIBS
30102 # We can link X programs with no special library path.
30103 ac_x_libraries=
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         LIBS=$ac_save_LIBS
30109 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30110 do
30111   # Don't even attempt the hair of trying to link an X program!
30112   for ac_extension in a so sl; do
30113     if test -r "$ac_dir/libX11.$ac_extension"; then
30114       ac_x_libraries=$ac_dir
30115       break 2
30116     fi
30117   done
30118 done
30119 fi
30120
30121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30122       conftest$ac_exeext conftest.$ac_ext
30123 fi # $ac_x_libraries = no
30124
30125 case $ac_x_includes,$ac_x_libraries in #(
30126   no,* | *,no | *\'*)
30127     # Didn't find X, or a directory has "'" in its name.
30128     ac_cv_have_x="have_x=no";; #(
30129   *)
30130     # Record where we found X for the cache.
30131     ac_cv_have_x="have_x=yes\
30132         ac_x_includes='$ac_x_includes'\
30133         ac_x_libraries='$ac_x_libraries'"
30134 esac
30135 fi
30136 ;; #(
30137     *) have_x=yes;;
30138   esac
30139   eval "$ac_cv_have_x"
30140 fi # $with_x != no
30141
30142 if test "$have_x" != yes; then
30143   { echo "$as_me:$LINENO: result: $have_x" >&5
30144 echo "${ECHO_T}$have_x" >&6; }
30145   no_x=yes
30146 else
30147   # If each of the values was on the command line, it overrides each guess.
30148   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30149   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30150   # Update the cache value to reflect the command line values.
30151   ac_cv_have_x="have_x=yes\
30152         ac_x_includes='$x_includes'\
30153         ac_x_libraries='$x_libraries'"
30154   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30155 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30156 fi
30157
30158 if test "$no_x" = yes; then
30159   # Not all programs may use this symbol, but it does not hurt to define it.
30160
30161 cat >>confdefs.h <<\_ACEOF
30162 #define X_DISPLAY_MISSING 1
30163 _ACEOF
30164
30165   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30166 else
30167   if test -n "$x_includes"; then
30168     X_CFLAGS="$X_CFLAGS -I$x_includes"
30169   fi
30170
30171   # It would also be nice to do this for all -L options, not just this one.
30172   if test -n "$x_libraries"; then
30173     X_LIBS="$X_LIBS -L$x_libraries"
30174     # For Solaris; some versions of Sun CC require a space after -R and
30175     # others require no space.  Words are not sufficient . . . .
30176     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30177 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30178     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30179     ac_xsave_c_werror_flag=$ac_c_werror_flag
30180     ac_c_werror_flag=yes
30181     cat >conftest.$ac_ext <<_ACEOF
30182 /* confdefs.h.  */
30183 _ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h.  */
30187
30188 int
30189 main ()
30190 {
30191
30192   ;
30193   return 0;
30194 }
30195 _ACEOF
30196 rm -f conftest.$ac_objext conftest$ac_exeext
30197 if { (ac_try="$ac_link"
30198 case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_link") 2>conftest.er1
30204   ac_status=$?
30205   grep -v '^ *+' conftest.er1 >conftest.err
30206   rm -f conftest.er1
30207   cat conftest.err >&5
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); } && {
30210          test -z "$ac_c_werror_flag" ||
30211          test ! -s conftest.err
30212        } && test -s conftest$ac_exeext &&
30213        $as_test_x conftest$ac_exeext; then
30214   { echo "$as_me:$LINENO: result: no" >&5
30215 echo "${ECHO_T}no" >&6; }
30216        X_LIBS="$X_LIBS -R$x_libraries"
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221         LIBS="$ac_xsave_LIBS -R $x_libraries"
30222        cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h.  */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h.  */
30228
30229 int
30230 main ()
30231 {
30232
30233   ;
30234   return 0;
30235 }
30236 _ACEOF
30237 rm -f conftest.$ac_objext conftest$ac_exeext
30238 if { (ac_try="$ac_link"
30239 case "(($ac_try" in
30240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30241   *) ac_try_echo=$ac_try;;
30242 esac
30243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30244   (eval "$ac_link") 2>conftest.er1
30245   ac_status=$?
30246   grep -v '^ *+' conftest.er1 >conftest.err
30247   rm -f conftest.er1
30248   cat conftest.err >&5
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); } && {
30251          test -z "$ac_c_werror_flag" ||
30252          test ! -s conftest.err
30253        } && test -s conftest$ac_exeext &&
30254        $as_test_x conftest$ac_exeext; then
30255   { echo "$as_me:$LINENO: result: yes" >&5
30256 echo "${ECHO_T}yes" >&6; }
30257           X_LIBS="$X_LIBS -R $x_libraries"
30258 else
30259   echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30261
30262         { echo "$as_me:$LINENO: result: neither works" >&5
30263 echo "${ECHO_T}neither works" >&6; }
30264 fi
30265
30266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30267       conftest$ac_exeext conftest.$ac_ext
30268 fi
30269
30270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30271       conftest$ac_exeext conftest.$ac_ext
30272     ac_c_werror_flag=$ac_xsave_c_werror_flag
30273     LIBS=$ac_xsave_LIBS
30274   fi
30275
30276   # Check for system-dependent libraries X programs must link with.
30277   # Do this before checking for the system-independent R6 libraries
30278   # (-lICE), since we may need -lsocket or whatever for X linking.
30279
30280   if test "$ISC" = yes; then
30281     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30282   else
30283     # Martyn Johnson says this is needed for Ultrix, if the X
30284     # libraries were built with DECnet support.  And Karl Berry says
30285     # the Alpha needs dnet_stub (dnet does not exist).
30286     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30287     cat >conftest.$ac_ext <<_ACEOF
30288 /* confdefs.h.  */
30289 _ACEOF
30290 cat confdefs.h >>conftest.$ac_ext
30291 cat >>conftest.$ac_ext <<_ACEOF
30292 /* end confdefs.h.  */
30293
30294 /* Override any GCC internal prototype to avoid an error.
30295    Use char because int might match the return type of a GCC
30296    builtin and then its argument prototype would still apply.  */
30297 #ifdef __cplusplus
30298 extern "C"
30299 #endif
30300 char XOpenDisplay ();
30301 int
30302 main ()
30303 {
30304 return XOpenDisplay ();
30305   ;
30306   return 0;
30307 }
30308 _ACEOF
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (ac_try="$ac_link"
30311 case "(($ac_try" in
30312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313   *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316   (eval "$ac_link") 2>conftest.er1
30317   ac_status=$?
30318   grep -v '^ *+' conftest.er1 >conftest.err
30319   rm -f conftest.er1
30320   cat conftest.err >&5
30321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322   (exit $ac_status); } && {
30323          test -z "$ac_c_werror_flag" ||
30324          test ! -s conftest.err
30325        } && test -s conftest$ac_exeext &&
30326        $as_test_x conftest$ac_exeext; then
30327   :
30328 else
30329   echo "$as_me: failed program was:" >&5
30330 sed 's/^/| /' conftest.$ac_ext >&5
30331
30332         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30333 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30334 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 else
30337   ac_check_lib_save_LIBS=$LIBS
30338 LIBS="-ldnet  $LIBS"
30339 cat >conftest.$ac_ext <<_ACEOF
30340 /* confdefs.h.  */
30341 _ACEOF
30342 cat confdefs.h >>conftest.$ac_ext
30343 cat >>conftest.$ac_ext <<_ACEOF
30344 /* end confdefs.h.  */
30345
30346 /* Override any GCC internal prototype to avoid an error.
30347    Use char because int might match the return type of a GCC
30348    builtin and then its argument prototype would still apply.  */
30349 #ifdef __cplusplus
30350 extern "C"
30351 #endif
30352 char dnet_ntoa ();
30353 int
30354 main ()
30355 {
30356 return dnet_ntoa ();
30357   ;
30358   return 0;
30359 }
30360 _ACEOF
30361 rm -f conftest.$ac_objext conftest$ac_exeext
30362 if { (ac_try="$ac_link"
30363 case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_link") 2>conftest.er1
30369   ac_status=$?
30370   grep -v '^ *+' conftest.er1 >conftest.err
30371   rm -f conftest.er1
30372   cat conftest.err >&5
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); } && {
30375          test -z "$ac_c_werror_flag" ||
30376          test ! -s conftest.err
30377        } && test -s conftest$ac_exeext &&
30378        $as_test_x conftest$ac_exeext; then
30379   ac_cv_lib_dnet_dnet_ntoa=yes
30380 else
30381   echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30383
30384         ac_cv_lib_dnet_dnet_ntoa=no
30385 fi
30386
30387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30388       conftest$ac_exeext conftest.$ac_ext
30389 LIBS=$ac_check_lib_save_LIBS
30390 fi
30391 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30392 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30393 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30394   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30395 fi
30396
30397     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30398       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30399 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30400 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30401   echo $ECHO_N "(cached) $ECHO_C" >&6
30402 else
30403   ac_check_lib_save_LIBS=$LIBS
30404 LIBS="-ldnet_stub  $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 /* Override any GCC internal prototype to avoid an error.
30413    Use char because int might match the return type of a GCC
30414    builtin and then its argument prototype would still apply.  */
30415 #ifdef __cplusplus
30416 extern "C"
30417 #endif
30418 char dnet_ntoa ();
30419 int
30420 main ()
30421 {
30422 return dnet_ntoa ();
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_link") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } && {
30441          test -z "$ac_c_werror_flag" ||
30442          test ! -s conftest.err
30443        } && test -s conftest$ac_exeext &&
30444        $as_test_x conftest$ac_exeext; then
30445   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30446 else
30447   echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30449
30450         ac_cv_lib_dnet_stub_dnet_ntoa=no
30451 fi
30452
30453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30454       conftest$ac_exeext conftest.$ac_ext
30455 LIBS=$ac_check_lib_save_LIBS
30456 fi
30457 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30458 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30459 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30460   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30461 fi
30462
30463     fi
30464 fi
30465
30466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30467       conftest$ac_exeext conftest.$ac_ext
30468     LIBS="$ac_xsave_LIBS"
30469
30470     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30471     # to get the SysV transport functions.
30472     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30473     # needs -lnsl.
30474     # The nsl library prevents programs from opening the X display
30475     # on Irix 5.2, according to T.E. Dickey.
30476     # The functions gethostbyname, getservbyname, and inet_addr are
30477     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30478     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30479 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30480 if test "${ac_cv_func_gethostbyname+set}" = set; then
30481   echo $ECHO_N "(cached) $ECHO_C" >&6
30482 else
30483   cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h.  */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h.  */
30489 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30491 #define gethostbyname innocuous_gethostbyname
30492
30493 /* System header to define __stub macros and hopefully few prototypes,
30494     which can conflict with char gethostbyname (); below.
30495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30496     <limits.h> exists even on freestanding compilers.  */
30497
30498 #ifdef __STDC__
30499 # include <limits.h>
30500 #else
30501 # include <assert.h>
30502 #endif
30503
30504 #undef gethostbyname
30505
30506 /* Override any GCC internal prototype to avoid an error.
30507    Use char because int might match the return type of a GCC
30508    builtin and then its argument prototype would still apply.  */
30509 #ifdef __cplusplus
30510 extern "C"
30511 #endif
30512 char gethostbyname ();
30513 /* The GNU C library defines this for functions which it implements
30514     to always fail with ENOSYS.  Some functions are actually named
30515     something starting with __ and the normal name is an alias.  */
30516 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30517 choke me
30518 #endif
30519
30520 int
30521 main ()
30522 {
30523 return gethostbyname ();
30524   ;
30525   return 0;
30526 }
30527 _ACEOF
30528 rm -f conftest.$ac_objext conftest$ac_exeext
30529 if { (ac_try="$ac_link"
30530 case "(($ac_try" in
30531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532   *) ac_try_echo=$ac_try;;
30533 esac
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535   (eval "$ac_link") 2>conftest.er1
30536   ac_status=$?
30537   grep -v '^ *+' conftest.er1 >conftest.err
30538   rm -f conftest.er1
30539   cat conftest.err >&5
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); } && {
30542          test -z "$ac_c_werror_flag" ||
30543          test ! -s conftest.err
30544        } && test -s conftest$ac_exeext &&
30545        $as_test_x conftest$ac_exeext; then
30546   ac_cv_func_gethostbyname=yes
30547 else
30548   echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30550
30551         ac_cv_func_gethostbyname=no
30552 fi
30553
30554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30555       conftest$ac_exeext conftest.$ac_ext
30556 fi
30557 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30558 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30559
30560     if test $ac_cv_func_gethostbyname = no; then
30561       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30562 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30563 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30564   echo $ECHO_N "(cached) $ECHO_C" >&6
30565 else
30566   ac_check_lib_save_LIBS=$LIBS
30567 LIBS="-lnsl  $LIBS"
30568 cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h.  */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h.  */
30574
30575 /* Override any GCC internal prototype to avoid an error.
30576    Use char because int might match the return type of a GCC
30577    builtin and then its argument prototype would still apply.  */
30578 #ifdef __cplusplus
30579 extern "C"
30580 #endif
30581 char gethostbyname ();
30582 int
30583 main ()
30584 {
30585 return gethostbyname ();
30586   ;
30587   return 0;
30588 }
30589 _ACEOF
30590 rm -f conftest.$ac_objext conftest$ac_exeext
30591 if { (ac_try="$ac_link"
30592 case "(($ac_try" in
30593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594   *) ac_try_echo=$ac_try;;
30595 esac
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597   (eval "$ac_link") 2>conftest.er1
30598   ac_status=$?
30599   grep -v '^ *+' conftest.er1 >conftest.err
30600   rm -f conftest.er1
30601   cat conftest.err >&5
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); } && {
30604          test -z "$ac_c_werror_flag" ||
30605          test ! -s conftest.err
30606        } && test -s conftest$ac_exeext &&
30607        $as_test_x conftest$ac_exeext; then
30608   ac_cv_lib_nsl_gethostbyname=yes
30609 else
30610   echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30612
30613         ac_cv_lib_nsl_gethostbyname=no
30614 fi
30615
30616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30617       conftest$ac_exeext conftest.$ac_ext
30618 LIBS=$ac_check_lib_save_LIBS
30619 fi
30620 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30621 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30622 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30623   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30624 fi
30625
30626       if test $ac_cv_lib_nsl_gethostbyname = no; then
30627         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30628 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30629 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30630   echo $ECHO_N "(cached) $ECHO_C" >&6
30631 else
30632   ac_check_lib_save_LIBS=$LIBS
30633 LIBS="-lbsd  $LIBS"
30634 cat >conftest.$ac_ext <<_ACEOF
30635 /* confdefs.h.  */
30636 _ACEOF
30637 cat confdefs.h >>conftest.$ac_ext
30638 cat >>conftest.$ac_ext <<_ACEOF
30639 /* end confdefs.h.  */
30640
30641 /* Override any GCC internal prototype to avoid an error.
30642    Use char because int might match the return type of a GCC
30643    builtin and then its argument prototype would still apply.  */
30644 #ifdef __cplusplus
30645 extern "C"
30646 #endif
30647 char gethostbyname ();
30648 int
30649 main ()
30650 {
30651 return gethostbyname ();
30652   ;
30653   return 0;
30654 }
30655 _ACEOF
30656 rm -f conftest.$ac_objext conftest$ac_exeext
30657 if { (ac_try="$ac_link"
30658 case "(($ac_try" in
30659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660   *) ac_try_echo=$ac_try;;
30661 esac
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663   (eval "$ac_link") 2>conftest.er1
30664   ac_status=$?
30665   grep -v '^ *+' conftest.er1 >conftest.err
30666   rm -f conftest.er1
30667   cat conftest.err >&5
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); } && {
30670          test -z "$ac_c_werror_flag" ||
30671          test ! -s conftest.err
30672        } && test -s conftest$ac_exeext &&
30673        $as_test_x conftest$ac_exeext; then
30674   ac_cv_lib_bsd_gethostbyname=yes
30675 else
30676   echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30678
30679         ac_cv_lib_bsd_gethostbyname=no
30680 fi
30681
30682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30683       conftest$ac_exeext conftest.$ac_ext
30684 LIBS=$ac_check_lib_save_LIBS
30685 fi
30686 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30687 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30688 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30689   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30690 fi
30691
30692       fi
30693     fi
30694
30695     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30696     # socket/setsockopt and other routines are undefined under SCO ODT
30697     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30698     # on later versions), says Simon Leinen: it contains gethostby*
30699     # variants that don't use the name server (or something).  -lsocket
30700     # must be given before -lnsl if both are needed.  We assume that
30701     # if connect needs -lnsl, so does gethostbyname.
30702     { echo "$as_me:$LINENO: checking for connect" >&5
30703 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30704 if test "${ac_cv_func_connect+set}" = set; then
30705   echo $ECHO_N "(cached) $ECHO_C" >&6
30706 else
30707   cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h.  */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h.  */
30713 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30715 #define connect innocuous_connect
30716
30717 /* System header to define __stub macros and hopefully few prototypes,
30718     which can conflict with char connect (); below.
30719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720     <limits.h> exists even on freestanding compilers.  */
30721
30722 #ifdef __STDC__
30723 # include <limits.h>
30724 #else
30725 # include <assert.h>
30726 #endif
30727
30728 #undef connect
30729
30730 /* Override any GCC internal prototype to avoid an error.
30731    Use char because int might match the return type of a GCC
30732    builtin and then its argument prototype would still apply.  */
30733 #ifdef __cplusplus
30734 extern "C"
30735 #endif
30736 char connect ();
30737 /* The GNU C library defines this for functions which it implements
30738     to always fail with ENOSYS.  Some functions are actually named
30739     something starting with __ and the normal name is an alias.  */
30740 #if defined __stub_connect || defined __stub___connect
30741 choke me
30742 #endif
30743
30744 int
30745 main ()
30746 {
30747 return connect ();
30748   ;
30749   return 0;
30750 }
30751 _ACEOF
30752 rm -f conftest.$ac_objext conftest$ac_exeext
30753 if { (ac_try="$ac_link"
30754 case "(($ac_try" in
30755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756   *) ac_try_echo=$ac_try;;
30757 esac
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759   (eval "$ac_link") 2>conftest.er1
30760   ac_status=$?
30761   grep -v '^ *+' conftest.er1 >conftest.err
30762   rm -f conftest.er1
30763   cat conftest.err >&5
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } && {
30766          test -z "$ac_c_werror_flag" ||
30767          test ! -s conftest.err
30768        } && test -s conftest$ac_exeext &&
30769        $as_test_x conftest$ac_exeext; then
30770   ac_cv_func_connect=yes
30771 else
30772   echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30774
30775         ac_cv_func_connect=no
30776 fi
30777
30778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30779       conftest$ac_exeext conftest.$ac_ext
30780 fi
30781 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30782 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30783
30784     if test $ac_cv_func_connect = no; then
30785       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30786 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30787 if test "${ac_cv_lib_socket_connect+set}" = set; then
30788   echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790   ac_check_lib_save_LIBS=$LIBS
30791 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30792 cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798
30799 /* Override any GCC internal prototype to avoid an error.
30800    Use char because int might match the return type of a GCC
30801    builtin and then its argument prototype would still apply.  */
30802 #ifdef __cplusplus
30803 extern "C"
30804 #endif
30805 char connect ();
30806 int
30807 main ()
30808 {
30809 return connect ();
30810   ;
30811   return 0;
30812 }
30813 _ACEOF
30814 rm -f conftest.$ac_objext conftest$ac_exeext
30815 if { (ac_try="$ac_link"
30816 case "(($ac_try" in
30817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818   *) ac_try_echo=$ac_try;;
30819 esac
30820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821   (eval "$ac_link") 2>conftest.er1
30822   ac_status=$?
30823   grep -v '^ *+' conftest.er1 >conftest.err
30824   rm -f conftest.er1
30825   cat conftest.err >&5
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); } && {
30828          test -z "$ac_c_werror_flag" ||
30829          test ! -s conftest.err
30830        } && test -s conftest$ac_exeext &&
30831        $as_test_x conftest$ac_exeext; then
30832   ac_cv_lib_socket_connect=yes
30833 else
30834   echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837         ac_cv_lib_socket_connect=no
30838 fi
30839
30840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30841       conftest$ac_exeext conftest.$ac_ext
30842 LIBS=$ac_check_lib_save_LIBS
30843 fi
30844 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30845 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30846 if test $ac_cv_lib_socket_connect = yes; then
30847   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30848 fi
30849
30850     fi
30851
30852     # Guillermo Gomez says -lposix is necessary on A/UX.
30853     { echo "$as_me:$LINENO: checking for remove" >&5
30854 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30855 if test "${ac_cv_func_remove+set}" = set; then
30856   echo $ECHO_N "(cached) $ECHO_C" >&6
30857 else
30858   cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h.  */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h.  */
30864 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30866 #define remove innocuous_remove
30867
30868 /* System header to define __stub macros and hopefully few prototypes,
30869     which can conflict with char remove (); below.
30870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30871     <limits.h> exists even on freestanding compilers.  */
30872
30873 #ifdef __STDC__
30874 # include <limits.h>
30875 #else
30876 # include <assert.h>
30877 #endif
30878
30879 #undef remove
30880
30881 /* Override any GCC internal prototype to avoid an error.
30882    Use char because int might match the return type of a GCC
30883    builtin and then its argument prototype would still apply.  */
30884 #ifdef __cplusplus
30885 extern "C"
30886 #endif
30887 char remove ();
30888 /* The GNU C library defines this for functions which it implements
30889     to always fail with ENOSYS.  Some functions are actually named
30890     something starting with __ and the normal name is an alias.  */
30891 #if defined __stub_remove || defined __stub___remove
30892 choke me
30893 #endif
30894
30895 int
30896 main ()
30897 {
30898 return remove ();
30899   ;
30900   return 0;
30901 }
30902 _ACEOF
30903 rm -f conftest.$ac_objext conftest$ac_exeext
30904 if { (ac_try="$ac_link"
30905 case "(($ac_try" in
30906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907   *) ac_try_echo=$ac_try;;
30908 esac
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910   (eval "$ac_link") 2>conftest.er1
30911   ac_status=$?
30912   grep -v '^ *+' conftest.er1 >conftest.err
30913   rm -f conftest.er1
30914   cat conftest.err >&5
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); } && {
30917          test -z "$ac_c_werror_flag" ||
30918          test ! -s conftest.err
30919        } && test -s conftest$ac_exeext &&
30920        $as_test_x conftest$ac_exeext; then
30921   ac_cv_func_remove=yes
30922 else
30923   echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30925
30926         ac_cv_func_remove=no
30927 fi
30928
30929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30930       conftest$ac_exeext conftest.$ac_ext
30931 fi
30932 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30933 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30934
30935     if test $ac_cv_func_remove = no; then
30936       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30937 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30938 if test "${ac_cv_lib_posix_remove+set}" = set; then
30939   echo $ECHO_N "(cached) $ECHO_C" >&6
30940 else
30941   ac_check_lib_save_LIBS=$LIBS
30942 LIBS="-lposix  $LIBS"
30943 cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h.  */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h.  */
30949
30950 /* Override any GCC internal prototype to avoid an error.
30951    Use char because int might match the return type of a GCC
30952    builtin and then its argument prototype would still apply.  */
30953 #ifdef __cplusplus
30954 extern "C"
30955 #endif
30956 char remove ();
30957 int
30958 main ()
30959 {
30960 return remove ();
30961   ;
30962   return 0;
30963 }
30964 _ACEOF
30965 rm -f conftest.$ac_objext conftest$ac_exeext
30966 if { (ac_try="$ac_link"
30967 case "(($ac_try" in
30968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969   *) ac_try_echo=$ac_try;;
30970 esac
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972   (eval "$ac_link") 2>conftest.er1
30973   ac_status=$?
30974   grep -v '^ *+' conftest.er1 >conftest.err
30975   rm -f conftest.er1
30976   cat conftest.err >&5
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); } && {
30979          test -z "$ac_c_werror_flag" ||
30980          test ! -s conftest.err
30981        } && test -s conftest$ac_exeext &&
30982        $as_test_x conftest$ac_exeext; then
30983   ac_cv_lib_posix_remove=yes
30984 else
30985   echo "$as_me: failed program was:" >&5
30986 sed 's/^/| /' conftest.$ac_ext >&5
30987
30988         ac_cv_lib_posix_remove=no
30989 fi
30990
30991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30992       conftest$ac_exeext conftest.$ac_ext
30993 LIBS=$ac_check_lib_save_LIBS
30994 fi
30995 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30996 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30997 if test $ac_cv_lib_posix_remove = yes; then
30998   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30999 fi
31000
31001     fi
31002
31003     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31004     { echo "$as_me:$LINENO: checking for shmat" >&5
31005 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31006 if test "${ac_cv_func_shmat+set}" = set; then
31007   echo $ECHO_N "(cached) $ECHO_C" >&6
31008 else
31009   cat >conftest.$ac_ext <<_ACEOF
31010 /* confdefs.h.  */
31011 _ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h.  */
31015 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31017 #define shmat innocuous_shmat
31018
31019 /* System header to define __stub macros and hopefully few prototypes,
31020     which can conflict with char shmat (); below.
31021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31022     <limits.h> exists even on freestanding compilers.  */
31023
31024 #ifdef __STDC__
31025 # include <limits.h>
31026 #else
31027 # include <assert.h>
31028 #endif
31029
31030 #undef shmat
31031
31032 /* Override any GCC internal prototype to avoid an error.
31033    Use char because int might match the return type of a GCC
31034    builtin and then its argument prototype would still apply.  */
31035 #ifdef __cplusplus
31036 extern "C"
31037 #endif
31038 char shmat ();
31039 /* The GNU C library defines this for functions which it implements
31040     to always fail with ENOSYS.  Some functions are actually named
31041     something starting with __ and the normal name is an alias.  */
31042 #if defined __stub_shmat || defined __stub___shmat
31043 choke me
31044 #endif
31045
31046 int
31047 main ()
31048 {
31049 return shmat ();
31050   ;
31051   return 0;
31052 }
31053 _ACEOF
31054 rm -f conftest.$ac_objext conftest$ac_exeext
31055 if { (ac_try="$ac_link"
31056 case "(($ac_try" in
31057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058   *) ac_try_echo=$ac_try;;
31059 esac
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061   (eval "$ac_link") 2>conftest.er1
31062   ac_status=$?
31063   grep -v '^ *+' conftest.er1 >conftest.err
31064   rm -f conftest.er1
31065   cat conftest.err >&5
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); } && {
31068          test -z "$ac_c_werror_flag" ||
31069          test ! -s conftest.err
31070        } && test -s conftest$ac_exeext &&
31071        $as_test_x conftest$ac_exeext; then
31072   ac_cv_func_shmat=yes
31073 else
31074   echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31076
31077         ac_cv_func_shmat=no
31078 fi
31079
31080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31081       conftest$ac_exeext conftest.$ac_ext
31082 fi
31083 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31084 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31085
31086     if test $ac_cv_func_shmat = no; then
31087       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31088 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31089 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   ac_check_lib_save_LIBS=$LIBS
31093 LIBS="-lipc  $LIBS"
31094 cat >conftest.$ac_ext <<_ACEOF
31095 /* confdefs.h.  */
31096 _ACEOF
31097 cat confdefs.h >>conftest.$ac_ext
31098 cat >>conftest.$ac_ext <<_ACEOF
31099 /* end confdefs.h.  */
31100
31101 /* Override any GCC internal prototype to avoid an error.
31102    Use char because int might match the return type of a GCC
31103    builtin and then its argument prototype would still apply.  */
31104 #ifdef __cplusplus
31105 extern "C"
31106 #endif
31107 char shmat ();
31108 int
31109 main ()
31110 {
31111 return shmat ();
31112   ;
31113   return 0;
31114 }
31115 _ACEOF
31116 rm -f conftest.$ac_objext conftest$ac_exeext
31117 if { (ac_try="$ac_link"
31118 case "(($ac_try" in
31119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120   *) ac_try_echo=$ac_try;;
31121 esac
31122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123   (eval "$ac_link") 2>conftest.er1
31124   ac_status=$?
31125   grep -v '^ *+' conftest.er1 >conftest.err
31126   rm -f conftest.er1
31127   cat conftest.err >&5
31128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129   (exit $ac_status); } && {
31130          test -z "$ac_c_werror_flag" ||
31131          test ! -s conftest.err
31132        } && test -s conftest$ac_exeext &&
31133        $as_test_x conftest$ac_exeext; then
31134   ac_cv_lib_ipc_shmat=yes
31135 else
31136   echo "$as_me: failed program was:" >&5
31137 sed 's/^/| /' conftest.$ac_ext >&5
31138
31139         ac_cv_lib_ipc_shmat=no
31140 fi
31141
31142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31143       conftest$ac_exeext conftest.$ac_ext
31144 LIBS=$ac_check_lib_save_LIBS
31145 fi
31146 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31147 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31148 if test $ac_cv_lib_ipc_shmat = yes; then
31149   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31150 fi
31151
31152     fi
31153   fi
31154
31155   # Check for libraries that X11R6 Xt/Xaw programs need.
31156   ac_save_LDFLAGS=$LDFLAGS
31157   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31158   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31159   # check for ICE first), but we must link in the order -lSM -lICE or
31160   # we get undefined symbols.  So assume we have SM if we have ICE.
31161   # These have to be linked with before -lX11, unlike the other
31162   # libraries we check for below, so use a different variable.
31163   # John Interrante, Karl Berry
31164   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31165 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31166 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31167   echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169   ac_check_lib_save_LIBS=$LIBS
31170 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31171 cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h.  */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h.  */
31177
31178 /* Override any GCC internal prototype to avoid an error.
31179    Use char because int might match the return type of a GCC
31180    builtin and then its argument prototype would still apply.  */
31181 #ifdef __cplusplus
31182 extern "C"
31183 #endif
31184 char IceConnectionNumber ();
31185 int
31186 main ()
31187 {
31188 return IceConnectionNumber ();
31189   ;
31190   return 0;
31191 }
31192 _ACEOF
31193 rm -f conftest.$ac_objext conftest$ac_exeext
31194 if { (ac_try="$ac_link"
31195 case "(($ac_try" in
31196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197   *) ac_try_echo=$ac_try;;
31198 esac
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200   (eval "$ac_link") 2>conftest.er1
31201   ac_status=$?
31202   grep -v '^ *+' conftest.er1 >conftest.err
31203   rm -f conftest.er1
31204   cat conftest.err >&5
31205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206   (exit $ac_status); } && {
31207          test -z "$ac_c_werror_flag" ||
31208          test ! -s conftest.err
31209        } && test -s conftest$ac_exeext &&
31210        $as_test_x conftest$ac_exeext; then
31211   ac_cv_lib_ICE_IceConnectionNumber=yes
31212 else
31213   echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31215
31216         ac_cv_lib_ICE_IceConnectionNumber=no
31217 fi
31218
31219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31220       conftest$ac_exeext conftest.$ac_ext
31221 LIBS=$ac_check_lib_save_LIBS
31222 fi
31223 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31224 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31225 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31226   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31227 fi
31228
31229   LDFLAGS=$ac_save_LDFLAGS
31230
31231 fi
31232
31233
31234         if test "$no_x" = "yes"; then
31235           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31236 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31237    { (exit 1); exit 1; }; }
31238         fi
31239
31240                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31241         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31242         AFMINSTALL=afminstall
31243         COMPILED_X_PROGRAM=0
31244
31245     fi
31246
31247     if test "$wxUSE_X11" = 1; then
31248         if test "$wxUSE_NANOX" = "yes"; then
31249             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31250 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31251             if test "x$MICROWIN" = x ; then
31252                 { echo "$as_me:$LINENO: result: not found" >&5
31253 echo "${ECHO_T}not found" >&6; }
31254                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31255 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31256    { (exit 1); exit 1; }; }
31257             else
31258                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31259 echo "${ECHO_T}$MICROWIN" >&6; }
31260                 cat >>confdefs.h <<\_ACEOF
31261 #define wxUSE_NANOX 1
31262 _ACEOF
31263
31264             fi
31265         fi
31266
31267         if test "$wxUSE_UNICODE" = "yes"; then
31268
31269
31270 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31271         if test -n "$ac_tool_prefix"; then
31272   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31273 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   case $PKG_CONFIG in
31280   [\\/]* | ?:[\\/]*)
31281   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31282   ;;
31283   *)
31284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31285 for as_dir in $PATH
31286 do
31287   IFS=$as_save_IFS
31288   test -z "$as_dir" && as_dir=.
31289   for ac_exec_ext in '' $ac_executable_extensions; do
31290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31291     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31293     break 2
31294   fi
31295 done
31296 done
31297 IFS=$as_save_IFS
31298
31299   ;;
31300 esac
31301 fi
31302 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31303 if test -n "$PKG_CONFIG"; then
31304   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31305 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31306 else
31307   { echo "$as_me:$LINENO: result: no" >&5
31308 echo "${ECHO_T}no" >&6; }
31309 fi
31310
31311
31312 fi
31313 if test -z "$ac_cv_path_PKG_CONFIG"; then
31314   ac_pt_PKG_CONFIG=$PKG_CONFIG
31315   # Extract the first word of "pkg-config", so it can be a program name with args.
31316 set dummy pkg-config; ac_word=$2
31317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31319 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31320   echo $ECHO_N "(cached) $ECHO_C" >&6
31321 else
31322   case $ac_pt_PKG_CONFIG in
31323   [\\/]* | ?:[\\/]*)
31324   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31325   ;;
31326   *)
31327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31328 for as_dir in $PATH
31329 do
31330   IFS=$as_save_IFS
31331   test -z "$as_dir" && as_dir=.
31332   for ac_exec_ext in '' $ac_executable_extensions; do
31333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31334     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31336     break 2
31337   fi
31338 done
31339 done
31340 IFS=$as_save_IFS
31341
31342   ;;
31343 esac
31344 fi
31345 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31346 if test -n "$ac_pt_PKG_CONFIG"; then
31347   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31348 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31349 else
31350   { echo "$as_me:$LINENO: result: no" >&5
31351 echo "${ECHO_T}no" >&6; }
31352 fi
31353
31354   if test "x$ac_pt_PKG_CONFIG" = x; then
31355     PKG_CONFIG=""
31356   else
31357     case $cross_compiling:$ac_tool_warned in
31358 yes:)
31359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31360 whose name does not start with the host triplet.  If you think this
31361 configuration is useful to you, please write to autoconf@gnu.org." >&5
31362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31363 whose name does not start with the host triplet.  If you think this
31364 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31365 ac_tool_warned=yes ;;
31366 esac
31367     PKG_CONFIG=$ac_pt_PKG_CONFIG
31368   fi
31369 else
31370   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31371 fi
31372
31373 fi
31374 if test -n "$PKG_CONFIG"; then
31375         _pkg_min_version=0.9.0
31376         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31377 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31378         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31379                 { echo "$as_me:$LINENO: result: yes" >&5
31380 echo "${ECHO_T}yes" >&6; }
31381         else
31382                 { echo "$as_me:$LINENO: result: no" >&5
31383 echo "${ECHO_T}no" >&6; }
31384                 PKG_CONFIG=""
31385         fi
31386
31387 fi
31388
31389
31390 pkg_failed=no
31391 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31392 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31393
31394 if test -n "$PKG_CONFIG"; then
31395     if test -n "$PANGOX_CFLAGS"; then
31396         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31397     else
31398         if test -n "$PKG_CONFIG" && \
31399     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31400   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31401   ac_status=$?
31402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403   (exit $ac_status); }; then
31404   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31405 else
31406   pkg_failed=yes
31407 fi
31408     fi
31409 else
31410         pkg_failed=untried
31411 fi
31412 if test -n "$PKG_CONFIG"; then
31413     if test -n "$PANGOX_LIBS"; then
31414         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31415     else
31416         if test -n "$PKG_CONFIG" && \
31417     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31418   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; then
31422   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31423 else
31424   pkg_failed=yes
31425 fi
31426     fi
31427 else
31428         pkg_failed=untried
31429 fi
31430
31431
31432
31433 if test $pkg_failed = yes; then
31434
31435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31436         _pkg_short_errors_supported=yes
31437 else
31438         _pkg_short_errors_supported=no
31439 fi
31440         if test $_pkg_short_errors_supported = yes; then
31441                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31442         else
31443                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31444         fi
31445         # Put the nasty error message in config.log where it belongs
31446         echo "$PANGOX_PKG_ERRORS" >&5
31447
31448
31449                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31450 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31451    { (exit 1); exit 1; }; }
31452
31453
31454 elif test $pkg_failed = untried; then
31455
31456                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31457 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31458    { (exit 1); exit 1; }; }
31459
31460
31461 else
31462         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31463         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31464         { echo "$as_me:$LINENO: result: yes" >&5
31465 echo "${ECHO_T}yes" >&6; }
31466
31467                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31468                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31469                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31470
31471 fi
31472
31473 pkg_failed=no
31474 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31475 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31476
31477 if test -n "$PKG_CONFIG"; then
31478     if test -n "$PANGOFT2_CFLAGS"; then
31479         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31480     else
31481         if test -n "$PKG_CONFIG" && \
31482     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31483   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31484   ac_status=$?
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); }; then
31487   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31488 else
31489   pkg_failed=yes
31490 fi
31491     fi
31492 else
31493         pkg_failed=untried
31494 fi
31495 if test -n "$PKG_CONFIG"; then
31496     if test -n "$PANGOFT2_LIBS"; then
31497         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31498     else
31499         if test -n "$PKG_CONFIG" && \
31500     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31501   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31502   ac_status=$?
31503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504   (exit $ac_status); }; then
31505   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31506 else
31507   pkg_failed=yes
31508 fi
31509     fi
31510 else
31511         pkg_failed=untried
31512 fi
31513
31514
31515
31516 if test $pkg_failed = yes; then
31517
31518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31519         _pkg_short_errors_supported=yes
31520 else
31521         _pkg_short_errors_supported=no
31522 fi
31523         if test $_pkg_short_errors_supported = yes; then
31524                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31525         else
31526                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31527         fi
31528         # Put the nasty error message in config.log where it belongs
31529         echo "$PANGOFT2_PKG_ERRORS" >&5
31530
31531
31532                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31533 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31534                     wxUSE_PRINTING_ARCHITECTURE="no"
31535
31536
31537 elif test $pkg_failed = untried; then
31538
31539                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31540 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31541                     wxUSE_PRINTING_ARCHITECTURE="no"
31542
31543
31544 else
31545         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31546         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31547         { echo "$as_me:$LINENO: result: yes" >&5
31548 echo "${ECHO_T}yes" >&6; }
31549
31550                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31551                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31552                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31553
31554 fi
31555
31556 pkg_failed=no
31557 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31558 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31559
31560 if test -n "$PKG_CONFIG"; then
31561     if test -n "$PANGOXFT_CFLAGS"; then
31562         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31563     else
31564         if test -n "$PKG_CONFIG" && \
31565     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31566   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); }; then
31570   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31571 else
31572   pkg_failed=yes
31573 fi
31574     fi
31575 else
31576         pkg_failed=untried
31577 fi
31578 if test -n "$PKG_CONFIG"; then
31579     if test -n "$PANGOXFT_LIBS"; then
31580         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31581     else
31582         if test -n "$PKG_CONFIG" && \
31583     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31584   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; then
31588   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31589 else
31590   pkg_failed=yes
31591 fi
31592     fi
31593 else
31594         pkg_failed=untried
31595 fi
31596
31597
31598
31599 if test $pkg_failed = yes; then
31600
31601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31602         _pkg_short_errors_supported=yes
31603 else
31604         _pkg_short_errors_supported=no
31605 fi
31606         if test $_pkg_short_errors_supported = yes; then
31607                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31608         else
31609                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31610         fi
31611         # Put the nasty error message in config.log where it belongs
31612         echo "$PANGOXFT_PKG_ERRORS" >&5
31613
31614
31615                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31616 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31617
31618
31619 elif test $pkg_failed = untried; then
31620
31621                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31622 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31623
31624
31625 else
31626         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31627         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31628         { echo "$as_me:$LINENO: result: yes" >&5
31629 echo "${ECHO_T}yes" >&6; }
31630
31631                     cat >>confdefs.h <<\_ACEOF
31632 #define HAVE_PANGO_XFT 1
31633 _ACEOF
31634
31635                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31636                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31637                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31638
31639 fi
31640             save_LIBS="$LIBS"
31641             LIBS="$LIBS $PANGOX_LIBS"
31642
31643 for ac_func in pango_font_family_is_monospace
31644 do
31645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31649   echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31651   cat >conftest.$ac_ext <<_ACEOF
31652 /* confdefs.h.  */
31653 _ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h.  */
31657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31659 #define $ac_func innocuous_$ac_func
31660
31661 /* System header to define __stub macros and hopefully few prototypes,
31662     which can conflict with char $ac_func (); below.
31663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31664     <limits.h> exists even on freestanding compilers.  */
31665
31666 #ifdef __STDC__
31667 # include <limits.h>
31668 #else
31669 # include <assert.h>
31670 #endif
31671
31672 #undef $ac_func
31673
31674 /* Override any GCC internal prototype to avoid an error.
31675    Use char because int might match the return type of a GCC
31676    builtin and then its argument prototype would still apply.  */
31677 #ifdef __cplusplus
31678 extern "C"
31679 #endif
31680 char $ac_func ();
31681 /* The GNU C library defines this for functions which it implements
31682     to always fail with ENOSYS.  Some functions are actually named
31683     something starting with __ and the normal name is an alias.  */
31684 #if defined __stub_$ac_func || defined __stub___$ac_func
31685 choke me
31686 #endif
31687
31688 int
31689 main ()
31690 {
31691 return $ac_func ();
31692   ;
31693   return 0;
31694 }
31695 _ACEOF
31696 rm -f conftest.$ac_objext conftest$ac_exeext
31697 if { (ac_try="$ac_link"
31698 case "(($ac_try" in
31699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700   *) ac_try_echo=$ac_try;;
31701 esac
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703   (eval "$ac_link") 2>conftest.er1
31704   ac_status=$?
31705   grep -v '^ *+' conftest.er1 >conftest.err
31706   rm -f conftest.er1
31707   cat conftest.err >&5
31708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709   (exit $ac_status); } && {
31710          test -z "$ac_c_werror_flag" ||
31711          test ! -s conftest.err
31712        } && test -s conftest$ac_exeext &&
31713        $as_test_x conftest$ac_exeext; then
31714   eval "$as_ac_var=yes"
31715 else
31716   echo "$as_me: failed program was:" >&5
31717 sed 's/^/| /' conftest.$ac_ext >&5
31718
31719         eval "$as_ac_var=no"
31720 fi
31721
31722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31723       conftest$ac_exeext conftest.$ac_ext
31724 fi
31725 ac_res=`eval echo '${'$as_ac_var'}'`
31726                { echo "$as_me:$LINENO: result: $ac_res" >&5
31727 echo "${ECHO_T}$ac_res" >&6; }
31728 if test `eval echo '${'$as_ac_var'}'` = yes; then
31729   cat >>confdefs.h <<_ACEOF
31730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31731 _ACEOF
31732
31733 fi
31734 done
31735
31736             LIBS="$save_LIBS"
31737         fi
31738
31739         wxUSE_UNIVERSAL="yes"
31740
31741         if test "$wxUSE_NANOX" = "yes"; then
31742             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31743             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"
31744             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31745         else
31746             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31747         fi
31748
31749         TOOLKIT=X11
31750         GUIDIST=X11_DIST
31751     fi
31752
31753     if test "$wxUSE_MOTIF" = 1; then
31754         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31755 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31756
31757 ac_find_includes=
31758 for ac_dir in $SEARCH_INCLUDE /usr/include;
31759   do
31760     if test -f "$ac_dir/Xm/Xm.h"; then
31761       ac_find_includes=$ac_dir
31762       break
31763     fi
31764   done
31765
31766         if test "$ac_find_includes" != "" ; then
31767             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31768 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31769
31770     if test "x$ac_find_includes" = "x/usr/include"; then
31771     ac_path_to_include=""
31772   else
31773     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31774     result=$?
31775     if test $result = 0; then
31776       ac_path_to_include=""
31777     else
31778       ac_path_to_include=" -I$ac_find_includes"
31779     fi
31780   fi
31781
31782             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31783         else
31784             save_CFLAGS=$CFLAGS
31785             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31786
31787             cat >conftest.$ac_ext <<_ACEOF
31788 /* confdefs.h.  */
31789 _ACEOF
31790 cat confdefs.h >>conftest.$ac_ext
31791 cat >>conftest.$ac_ext <<_ACEOF
31792 /* end confdefs.h.  */
31793
31794                     #include <Xm/Xm.h>
31795
31796 int
31797 main ()
31798 {
31799
31800                     int version;
31801                     version = xmUseVersion;
31802
31803   ;
31804   return 0;
31805 }
31806 _ACEOF
31807 rm -f conftest.$ac_objext
31808 if { (ac_try="$ac_compile"
31809 case "(($ac_try" in
31810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811   *) ac_try_echo=$ac_try;;
31812 esac
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814   (eval "$ac_compile") 2>conftest.er1
31815   ac_status=$?
31816   grep -v '^ *+' conftest.er1 >conftest.err
31817   rm -f conftest.er1
31818   cat conftest.err >&5
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); } && {
31821          test -z "$ac_c_werror_flag" ||
31822          test ! -s conftest.err
31823        } && test -s conftest.$ac_objext; then
31824
31825                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31826 echo "${ECHO_T}found in default search path" >&6; }
31827                     COMPILED_X_PROGRAM=1
31828
31829 else
31830   echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31832
31833
31834                     { echo "$as_me:$LINENO: result: no" >&5
31835 echo "${ECHO_T}no" >&6; }
31836                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31837 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31838    { (exit 1); exit 1; }; }
31839
31840
31841 fi
31842
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844
31845             CFLAGS=$save_CFLAGS
31846         fi
31847
31848
31849         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31850 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31851
31852   ac_find_libraries=
31853   for ac_dir in $SEARCH_LIB;
31854   do
31855     for ac_extension in a so sl dylib dll.a; do
31856       if test -f "$ac_dir/libXm.$ac_extension"; then
31857         ac_find_libraries=$ac_dir
31858         break 2
31859       fi
31860     done
31861   done
31862
31863
31864         if test "x$ac_find_libraries" != "x" ; then
31865             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31866 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31867
31868
31869     if test "$ac_find_libraries" = "default location"; then
31870     ac_path_to_link=""
31871   else
31872     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31873     result=$?
31874     if test $result = 0; then
31875       ac_path_to_link=""
31876     else
31877       ac_path_to_link=" -L$ac_find_libraries"
31878     fi
31879   fi
31880
31881             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31882         else
31883                                                 save_CFLAGS=$CFLAGS
31884             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31885             save_LIBS="$LIBS"
31886             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31887
31888             cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894
31895                     #include <Xm/Xm.h>
31896
31897 int
31898 main ()
31899 {
31900
31901                     int version;
31902                     version = xmUseVersion;
31903
31904   ;
31905   return 0;
31906 }
31907 _ACEOF
31908 rm -f conftest.$ac_objext conftest$ac_exeext
31909 if { (ac_try="$ac_link"
31910 case "(($ac_try" in
31911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912   *) ac_try_echo=$ac_try;;
31913 esac
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915   (eval "$ac_link") 2>conftest.er1
31916   ac_status=$?
31917   grep -v '^ *+' conftest.er1 >conftest.err
31918   rm -f conftest.er1
31919   cat conftest.err >&5
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); } && {
31922          test -z "$ac_c_werror_flag" ||
31923          test ! -s conftest.err
31924        } && test -s conftest$ac_exeext &&
31925        $as_test_x conftest$ac_exeext; then
31926
31927                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31928 echo "${ECHO_T}found in default search path" >&6; }
31929                     COMPILED_X_PROGRAM=1
31930
31931 else
31932   echo "$as_me: failed program was:" >&5
31933 sed 's/^/| /' conftest.$ac_ext >&5
31934
31935
31936                     { echo "$as_me:$LINENO: result: no" >&5
31937 echo "${ECHO_T}no" >&6; }
31938                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31939 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31940    { (exit 1); exit 1; }; }
31941
31942
31943 fi
31944
31945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31946       conftest$ac_exeext conftest.$ac_ext
31947
31948             CFLAGS=$save_CFLAGS
31949             LIBS="$save_LIBS"
31950         fi
31951
31952         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31953 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31954         libp_link=""
31955         libsm_ice_link=""
31956         libs_found=0
31957         for libp in "" " -lXp"; do
31958             if test "$libs_found" = 0; then
31959                 for libsm_ice in "" " -lSM -lICE"; do
31960                     if test "$libs_found" = 0; then
31961                         save_LIBS="$LIBS"
31962                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31963                         save_CFLAGS=$CFLAGS
31964                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31965
31966                         cat >conftest.$ac_ext <<_ACEOF
31967 /* confdefs.h.  */
31968 _ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h.  */
31972
31973                                 #include <Xm/Xm.h>
31974                                 #include <Xm/List.h>
31975
31976 int
31977 main ()
31978 {
31979
31980                                 XmString string = NULL;
31981                                 Widget w = NULL;
31982                                 int position = 0;
31983                                 XmListAddItem(w, string, position);
31984
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext conftest$ac_exeext
31990 if { (ac_try="$ac_link"
31991 case "(($ac_try" in
31992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993   *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996   (eval "$ac_link") 2>conftest.er1
31997   ac_status=$?
31998   grep -v '^ *+' conftest.er1 >conftest.err
31999   rm -f conftest.er1
32000   cat conftest.err >&5
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); } && {
32003          test -z "$ac_c_werror_flag" ||
32004          test ! -s conftest.err
32005        } && test -s conftest$ac_exeext &&
32006        $as_test_x conftest$ac_exeext; then
32007
32008                                 libp_link="$libp"
32009                                 libsm_ice_link="$libsm_ice"
32010                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32011 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32012                                 libs_found=1
32013
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018
32019
32020 fi
32021
32022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32023       conftest$ac_exeext conftest.$ac_ext
32024
32025                         LIBS="$save_LIBS"
32026                         CFLAGS=$save_CFLAGS
32027                     fi
32028                 done
32029             fi
32030         done
32031
32032         if test "$libs_found" = 0; then
32033             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32034 echo "${ECHO_T}can't find the right libraries" >&6; }
32035             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32036 echo "$as_me: error: can't link a simple motif program" >&2;}
32037    { (exit 1); exit 1; }; }
32038         fi
32039
32040                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32041 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32042 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32043   echo $ECHO_N "(cached) $ECHO_C" >&6
32044 else
32045   ac_check_lib_save_LIBS=$LIBS
32046 LIBS="-lSgm  $LIBS"
32047 cat >conftest.$ac_ext <<_ACEOF
32048 /* confdefs.h.  */
32049 _ACEOF
32050 cat confdefs.h >>conftest.$ac_ext
32051 cat >>conftest.$ac_ext <<_ACEOF
32052 /* end confdefs.h.  */
32053
32054 /* Override any GCC internal prototype to avoid an error.
32055    Use char because int might match the return type of a GCC
32056    builtin and then its argument prototype would still apply.  */
32057 #ifdef __cplusplus
32058 extern "C"
32059 #endif
32060 char SgCreateList ();
32061 int
32062 main ()
32063 {
32064 return SgCreateList ();
32065   ;
32066   return 0;
32067 }
32068 _ACEOF
32069 rm -f conftest.$ac_objext conftest$ac_exeext
32070 if { (ac_try="$ac_link"
32071 case "(($ac_try" in
32072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073   *) ac_try_echo=$ac_try;;
32074 esac
32075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076   (eval "$ac_link") 2>conftest.er1
32077   ac_status=$?
32078   grep -v '^ *+' conftest.er1 >conftest.err
32079   rm -f conftest.er1
32080   cat conftest.err >&5
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); } && {
32083          test -z "$ac_c_werror_flag" ||
32084          test ! -s conftest.err
32085        } && test -s conftest$ac_exeext &&
32086        $as_test_x conftest$ac_exeext; then
32087   ac_cv_lib_Sgm_SgCreateList=yes
32088 else
32089   echo "$as_me: failed program was:" >&5
32090 sed 's/^/| /' conftest.$ac_ext >&5
32091
32092         ac_cv_lib_Sgm_SgCreateList=no
32093 fi
32094
32095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32096       conftest$ac_exeext conftest.$ac_ext
32097 LIBS=$ac_check_lib_save_LIBS
32098 fi
32099 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32100 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32101 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32102   libsgm_link=" -lSgm"
32103 fi
32104
32105
32106         save_CFLAGS=$CFLAGS
32107         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32108
32109         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32110 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32111 if test "${wx_cv_lib_motif2+set}" = set; then
32112   echo $ECHO_N "(cached) $ECHO_C" >&6
32113 else
32114   cat >conftest.$ac_ext <<_ACEOF
32115 /* confdefs.h.  */
32116 _ACEOF
32117 cat confdefs.h >>conftest.$ac_ext
32118 cat >>conftest.$ac_ext <<_ACEOF
32119 /* end confdefs.h.  */
32120
32121                             #include <Xm/Xm.h>
32122
32123 int
32124 main ()
32125 {
32126
32127                             #if XmVersion < 2000
32128                             Not Motif 2
32129                             #endif
32130
32131   ;
32132   return 0;
32133 }
32134 _ACEOF
32135 rm -f conftest.$ac_objext
32136 if { (ac_try="$ac_compile"
32137 case "(($ac_try" in
32138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139   *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142   (eval "$ac_compile") 2>conftest.er1
32143   ac_status=$?
32144   grep -v '^ *+' conftest.er1 >conftest.err
32145   rm -f conftest.er1
32146   cat conftest.err >&5
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); } && {
32149          test -z "$ac_c_werror_flag" ||
32150          test ! -s conftest.err
32151        } && test -s conftest.$ac_objext; then
32152   wx_cv_lib_motif2="yes"
32153 else
32154   echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32156
32157         wx_cv_lib_motif2="no"
32158 fi
32159
32160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32161 fi
32162 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32163 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32164         if test "$wx_cv_lib_motif2" = "yes"; then
32165             cat >>confdefs.h <<\_ACEOF
32166 #define __WXMOTIF20__ 1
32167 _ACEOF
32168
32169         else
32170             cat >>confdefs.h <<\_ACEOF
32171 #define __WXMOTIF20__ 0
32172 _ACEOF
32173
32174         fi
32175
32176         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32177 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32178 if test "${wx_cv_lib_lesstif+set}" = set; then
32179   echo $ECHO_N "(cached) $ECHO_C" >&6
32180 else
32181   cat >conftest.$ac_ext <<_ACEOF
32182 /* confdefs.h.  */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h.  */
32187
32188                             #include <Xm/Xm.h>
32189
32190 int
32191 main ()
32192 {
32193
32194                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32195                             Not Lesstif
32196                             #endif
32197
32198   ;
32199   return 0;
32200 }
32201 _ACEOF
32202 rm -f conftest.$ac_objext
32203 if { (ac_try="$ac_compile"
32204 case "(($ac_try" in
32205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206   *) ac_try_echo=$ac_try;;
32207 esac
32208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209   (eval "$ac_compile") 2>conftest.er1
32210   ac_status=$?
32211   grep -v '^ *+' conftest.er1 >conftest.err
32212   rm -f conftest.er1
32213   cat conftest.err >&5
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); } && {
32216          test -z "$ac_c_werror_flag" ||
32217          test ! -s conftest.err
32218        } && test -s conftest.$ac_objext; then
32219   wx_cv_lib_lesstif="yes"
32220 else
32221   echo "$as_me: failed program was:" >&5
32222 sed 's/^/| /' conftest.$ac_ext >&5
32223
32224         wx_cv_lib_lesstif="no"
32225 fi
32226
32227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32228
32229 fi
32230 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32231 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32232         if test "$wx_cv_lib_lesstif" = "yes"; then
32233             cat >>confdefs.h <<\_ACEOF
32234 #define __WXLESSTIF__ 1
32235 _ACEOF
32236
32237         else
32238             cat >>confdefs.h <<\_ACEOF
32239 #define __WXLESSTIF__ 0
32240 _ACEOF
32241
32242         fi
32243
32244         CFLAGS=$save_CFLAGS
32245
32246         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32247         TOOLKIT=MOTIF
32248         GUIDIST=MOTIF_DIST
32249     fi
32250
32251         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32252                 if test "$wxUSE_LIBXPM" = "sys"; then
32253             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32254 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32255
32256   ac_find_libraries=
32257   for ac_dir in $SEARCH_LIB;
32258   do
32259     for ac_extension in a so sl dylib dll.a; do
32260       if test -f "$ac_dir/libXpm.$ac_extension"; then
32261         ac_find_libraries=$ac_dir
32262         break 2
32263       fi
32264     done
32265   done
32266
32267             if test "$ac_find_libraries" != "" ; then
32268
32269     if test "$ac_find_libraries" = "default location"; then
32270     ac_path_to_link=""
32271   else
32272     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32273     result=$?
32274     if test $result = 0; then
32275       ac_path_to_link=""
32276     else
32277       ac_path_to_link=" -L$ac_find_libraries"
32278     fi
32279   fi
32280
32281                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32282                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32283 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32284
32285                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32286 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32287 if test "${wx_cv_x11_xpm_h+set}" = set; then
32288   echo $ECHO_N "(cached) $ECHO_C" >&6
32289 else
32290
32291                         save_CFLAGS=$CFLAGS
32292                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32293
32294                         cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h.  */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h.  */
32300
32301                                 #include <X11/xpm.h>
32302
32303 int
32304 main ()
32305 {
32306
32307                                 int version;
32308                                 version = XpmLibraryVersion();
32309
32310   ;
32311   return 0;
32312 }
32313 _ACEOF
32314 rm -f conftest.$ac_objext
32315 if { (ac_try="$ac_compile"
32316 case "(($ac_try" in
32317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318   *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321   (eval "$ac_compile") 2>conftest.er1
32322   ac_status=$?
32323   grep -v '^ *+' conftest.er1 >conftest.err
32324   rm -f conftest.er1
32325   cat conftest.err >&5
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); } && {
32328          test -z "$ac_c_werror_flag" ||
32329          test ! -s conftest.err
32330        } && test -s conftest.$ac_objext; then
32331   wx_cv_x11_xpm_h=yes
32332 else
32333   echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32335
32336         wx_cv_x11_xpm_h=no
32337
32338 fi
32339
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32341
32342                         CFLAGS=$save_CFLAGS
32343
32344
32345 fi
32346 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32347 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32348
32349                 if test $wx_cv_x11_xpm_h = "yes"; then
32350                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32351                     cat >>confdefs.h <<\_ACEOF
32352 #define wxHAVE_LIB_XPM 1
32353 _ACEOF
32354
32355                 else
32356                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32357 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32358                 fi
32359             fi
32360
32361         fi
32362
32363                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32364 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32365 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368   ac_check_lib_save_LIBS=$LIBS
32369 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32370 cat >conftest.$ac_ext <<_ACEOF
32371 /* confdefs.h.  */
32372 _ACEOF
32373 cat confdefs.h >>conftest.$ac_ext
32374 cat >>conftest.$ac_ext <<_ACEOF
32375 /* end confdefs.h.  */
32376
32377 /* Override any GCC internal prototype to avoid an error.
32378    Use char because int might match the return type of a GCC
32379    builtin and then its argument prototype would still apply.  */
32380 #ifdef __cplusplus
32381 extern "C"
32382 #endif
32383 char XShapeQueryExtension ();
32384 int
32385 main ()
32386 {
32387 return XShapeQueryExtension ();
32388   ;
32389   return 0;
32390 }
32391 _ACEOF
32392 rm -f conftest.$ac_objext conftest$ac_exeext
32393 if { (ac_try="$ac_link"
32394 case "(($ac_try" in
32395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396   *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399   (eval "$ac_link") 2>conftest.er1
32400   ac_status=$?
32401   grep -v '^ *+' conftest.er1 >conftest.err
32402   rm -f conftest.er1
32403   cat conftest.err >&5
32404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405   (exit $ac_status); } && {
32406          test -z "$ac_c_werror_flag" ||
32407          test ! -s conftest.err
32408        } && test -s conftest$ac_exeext &&
32409        $as_test_x conftest$ac_exeext; then
32410   ac_cv_lib_Xext_XShapeQueryExtension=yes
32411 else
32412   echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32414
32415         ac_cv_lib_Xext_XShapeQueryExtension=no
32416 fi
32417
32418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32419       conftest$ac_exeext conftest.$ac_ext
32420 LIBS=$ac_check_lib_save_LIBS
32421 fi
32422 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32423 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32424 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32425
32426                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32427                       wxHAVE_XEXT_LIB=1
32428
32429 fi
32430
32431
32432         if test "$wxHAVE_XEXT_LIB" = 1; then
32433             save_CFLAGS="$CFLAGS"
32434             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32435
32436             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32437 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32438             cat >conftest.$ac_ext <<_ACEOF
32439 /* confdefs.h.  */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h.  */
32444
32445                             #include <X11/Xlib.h>
32446                             #include <X11/extensions/shape.h>
32447
32448 int
32449 main ()
32450 {
32451
32452                             int dummy1, dummy2;
32453                             XShapeQueryExtension((Display*)NULL,
32454                                                  (int*)NULL, (int*)NULL);
32455
32456   ;
32457   return 0;
32458 }
32459 _ACEOF
32460 rm -f conftest.$ac_objext
32461 if { (ac_try="$ac_compile"
32462 case "(($ac_try" in
32463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464   *) ac_try_echo=$ac_try;;
32465 esac
32466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467   (eval "$ac_compile") 2>conftest.er1
32468   ac_status=$?
32469   grep -v '^ *+' conftest.er1 >conftest.err
32470   rm -f conftest.er1
32471   cat conftest.err >&5
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } && {
32474          test -z "$ac_c_werror_flag" ||
32475          test ! -s conftest.err
32476        } && test -s conftest.$ac_objext; then
32477
32478                             cat >>confdefs.h <<\_ACEOF
32479 #define HAVE_XSHAPE 1
32480 _ACEOF
32481
32482                             { echo "$as_me:$LINENO: result: found" >&5
32483 echo "${ECHO_T}found" >&6; }
32484
32485 else
32486   echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32488
32489
32490                             { echo "$as_me:$LINENO: result: not found" >&5
32491 echo "${ECHO_T}not found" >&6; }
32492
32493 fi
32494
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496             CFLAGS="$save_CFLAGS"
32497
32498         fi
32499     fi
32500
32501     if test "$wxUSE_MAC" = 1; then
32502         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32503 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32504         if test "$GCC" = yes; then
32505             { echo "$as_me:$LINENO: result: gcc" >&5
32506 echo "${ECHO_T}gcc" >&6; }
32507             CPPFLAGS_PASCAL="-fpascal-strings"
32508         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32509             { echo "$as_me:$LINENO: result: xlc" >&5
32510 echo "${ECHO_T}xlc" >&6; }
32511             CPPFLAGS_PASCAL="-qmacpstr"
32512         else
32513             { echo "$as_me:$LINENO: result: none" >&5
32514 echo "${ECHO_T}none" >&6; }
32515         fi
32516
32517         if test "x$wxUSE_UNIX" = "xyes"; then
32518             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32519         else
32520                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32521         fi
32522
32523         TOOLKIT=MAC
32524                 GUIDIST=MACX_DIST
32525                         WXBASEPORT="_carbon"
32526     fi
32527
32528     if test "$wxUSE_COCOA" = 1; then
32529         TOOLKIT=COCOA
32530         GUIDIST=COCOA_DIST
32531     fi
32532
32533     if test "$wxUSE_PM" = 1; then
32534         TOOLKIT=PM
32535         GUIDIST=PM_DIST
32536         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32537 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32538 if test "${wx_cv_spbcdata+set}" = set; then
32539   echo $ECHO_N "(cached) $ECHO_C" >&6
32540 else
32541
32542                 cat >conftest.$ac_ext <<_ACEOF
32543 /* confdefs.h.  */
32544 _ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h.  */
32548
32549                         #define INCL_PM
32550                         #include <os2.h>
32551
32552 int
32553 main ()
32554 {
32555
32556                         SPBCDATA test;
32557
32558   ;
32559   return 0;
32560 }
32561 _ACEOF
32562 rm -f conftest.$ac_objext
32563 if { (ac_try="$ac_compile"
32564 case "(($ac_try" in
32565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566   *) ac_try_echo=$ac_try;;
32567 esac
32568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569   (eval "$ac_compile") 2>conftest.er1
32570   ac_status=$?
32571   grep -v '^ *+' conftest.er1 >conftest.err
32572   rm -f conftest.er1
32573   cat conftest.err >&5
32574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575   (exit $ac_status); } && {
32576          test -z "$ac_c_werror_flag" ||
32577          test ! -s conftest.err
32578        } && test -s conftest.$ac_objext; then
32579   wx_cv_spbcdata=yes
32580 else
32581   echo "$as_me: failed program was:" >&5
32582 sed 's/^/| /' conftest.$ac_ext >&5
32583
32584         wx_cv_spbcdata=no
32585
32586 fi
32587
32588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32589
32590
32591 fi
32592 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32593 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32594
32595         if test $wx_cv_spbcdata = "yes"; then
32596             cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_SPBCDATA 1
32598 _ACEOF
32599
32600         fi
32601     fi
32602
32603         if test "$TOOLKIT" = "PM" ; then
32604         TOOLKIT_DIR="os2"
32605     else
32606         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32607     fi
32608
32609     if test "$wxUSE_UNIVERSAL" = "yes"; then
32610         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32611         WIDGET_SET=univ
32612     fi
32613
32614         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32615     DISTDIR="wx\$(TOOLKIT)"
32616 else
32617     USE_GUI=0
32618
32619             TOOLKIT_DIR="base"
32620
32621         if test "$USE_WIN32" = 1 ; then
32622                         TOOLKIT="MSW"
32623     fi
32624
32625         GUIDIST="BASE_DIST"
32626     DISTDIR="wxBase"
32627 fi
32628
32629
32630
32631 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32632     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32633         wxUSE_UNICODE_UTF8=yes
32634     elif test "$USE_OS2" = 1 ; then
32635                                 wxUSE_UNICODE_UTF8=yes
32636     else
32637         wxUSE_UNICODE_UTF8=no
32638     fi
32639 fi
32640
32641
32642 if test "$wxUSE_GUI" = "yes"; then
32643     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32644
32645 for ac_header in X11/Xlib.h
32646 do
32647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659
32660
32661 #include <$ac_header>
32662 _ACEOF
32663 rm -f conftest.$ac_objext
32664 if { (ac_try="$ac_compile"
32665 case "(($ac_try" in
32666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667   *) ac_try_echo=$ac_try;;
32668 esac
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670   (eval "$ac_compile") 2>conftest.er1
32671   ac_status=$?
32672   grep -v '^ *+' conftest.er1 >conftest.err
32673   rm -f conftest.er1
32674   cat conftest.err >&5
32675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); } && {
32677          test -z "$ac_c_werror_flag" ||
32678          test ! -s conftest.err
32679        } && test -s conftest.$ac_objext; then
32680   eval "$as_ac_Header=yes"
32681 else
32682   echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32684
32685         eval "$as_ac_Header=no"
32686 fi
32687
32688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32689 fi
32690 ac_res=`eval echo '${'$as_ac_Header'}'`
32691                { echo "$as_me:$LINENO: result: $ac_res" >&5
32692 echo "${ECHO_T}$ac_res" >&6; }
32693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32694   cat >>confdefs.h <<_ACEOF
32695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32696 _ACEOF
32697
32698 fi
32699
32700 done
32701
32702
32703 for ac_header in X11/XKBlib.h
32704 do
32705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32709   echo $ECHO_N "(cached) $ECHO_C" >&6
32710 else
32711   cat >conftest.$ac_ext <<_ACEOF
32712 /* confdefs.h.  */
32713 _ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h.  */
32717
32718                           #if HAVE_X11_XLIB_H
32719                             #include <X11/Xlib.h>
32720                           #endif
32721
32722
32723 #include <$ac_header>
32724 _ACEOF
32725 rm -f conftest.$ac_objext
32726 if { (ac_try="$ac_compile"
32727 case "(($ac_try" in
32728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32729   *) ac_try_echo=$ac_try;;
32730 esac
32731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32732   (eval "$ac_compile") 2>conftest.er1
32733   ac_status=$?
32734   grep -v '^ *+' conftest.er1 >conftest.err
32735   rm -f conftest.er1
32736   cat conftest.err >&5
32737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738   (exit $ac_status); } && {
32739          test -z "$ac_c_werror_flag" ||
32740          test ! -s conftest.err
32741        } && test -s conftest.$ac_objext; then
32742   eval "$as_ac_Header=yes"
32743 else
32744   echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32746
32747         eval "$as_ac_Header=no"
32748 fi
32749
32750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32751 fi
32752 ac_res=`eval echo '${'$as_ac_Header'}'`
32753                { echo "$as_me:$LINENO: result: $ac_res" >&5
32754 echo "${ECHO_T}$ac_res" >&6; }
32755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32756   cat >>confdefs.h <<_ACEOF
32757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32758 _ACEOF
32759
32760 fi
32761
32762 done
32763
32764     fi
32765 fi
32766
32767
32768
32769 if test "$wxUSE_DISPLAY" = "yes"; then
32770     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32771         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32772 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32773
32774   ac_find_libraries=
32775   for ac_dir in $SEARCH_LIB;
32776   do
32777     for ac_extension in a so sl dylib dll.a; do
32778       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32779         ac_find_libraries=$ac_dir
32780         break 2
32781       fi
32782     done
32783   done
32784
32785         if test "$ac_find_libraries" != "" ; then
32786
32787     if test "$ac_find_libraries" = "default location"; then
32788     ac_path_to_link=""
32789   else
32790     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32791     result=$?
32792     if test $result = 0; then
32793       ac_path_to_link=""
32794     else
32795       ac_path_to_link=" -L$ac_find_libraries"
32796     fi
32797   fi
32798
32799             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32800                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32801             fi
32802             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32803             { echo "$as_me:$LINENO: result: yes" >&5
32804 echo "${ECHO_T}yes" >&6; }
32805
32806             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32807 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32808
32809   ac_find_libraries=
32810   for ac_dir in $SEARCH_LIB;
32811   do
32812     for ac_extension in a so sl dylib dll.a; do
32813       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32814         ac_find_libraries=$ac_dir
32815         break 2
32816       fi
32817     done
32818   done
32819
32820             if test "$ac_find_libraries" != "" ; then
32821                 { echo "$as_me:$LINENO: result: yes" >&5
32822 echo "${ECHO_T}yes" >&6; }
32823
32824 for ac_header in X11/extensions/xf86vmode.h
32825 do
32826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32830   echo $ECHO_N "(cached) $ECHO_C" >&6
32831 else
32832   cat >conftest.$ac_ext <<_ACEOF
32833 /* confdefs.h.  */
32834 _ACEOF
32835 cat confdefs.h >>conftest.$ac_ext
32836 cat >>conftest.$ac_ext <<_ACEOF
32837 /* end confdefs.h.  */
32838
32839                                       #if HAVE_X11_XLIB_H
32840                                         #include <X11/Xlib.h>
32841                                       #endif
32842
32843
32844 #include <$ac_header>
32845 _ACEOF
32846 rm -f conftest.$ac_objext
32847 if { (ac_try="$ac_compile"
32848 case "(($ac_try" in
32849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850   *) ac_try_echo=$ac_try;;
32851 esac
32852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853   (eval "$ac_compile") 2>conftest.er1
32854   ac_status=$?
32855   grep -v '^ *+' conftest.er1 >conftest.err
32856   rm -f conftest.er1
32857   cat conftest.err >&5
32858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859   (exit $ac_status); } && {
32860          test -z "$ac_c_werror_flag" ||
32861          test ! -s conftest.err
32862        } && test -s conftest.$ac_objext; then
32863   eval "$as_ac_Header=yes"
32864 else
32865   echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32867
32868         eval "$as_ac_Header=no"
32869 fi
32870
32871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32872 fi
32873 ac_res=`eval echo '${'$as_ac_Header'}'`
32874                { echo "$as_me:$LINENO: result: $ac_res" >&5
32875 echo "${ECHO_T}$ac_res" >&6; }
32876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32877   cat >>confdefs.h <<_ACEOF
32878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32879 _ACEOF
32880
32881                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32882
32883 fi
32884
32885 done
32886
32887             else
32888                 { echo "$as_me:$LINENO: result: no" >&5
32889 echo "${ECHO_T}no" >&6; }
32890             fi
32891
32892         else
32893             { echo "$as_me:$LINENO: result: no" >&5
32894 echo "${ECHO_T}no" >&6; }
32895             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32896 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32897             wxUSE_DISPLAY="no"
32898         fi
32899     elif test "$wxUSE_MSW" = 1; then
32900         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32901 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32902 if test "${ac_cv_header_ddraw_h+set}" = set; then
32903   echo $ECHO_N "(cached) $ECHO_C" >&6
32904 else
32905   cat >conftest.$ac_ext <<_ACEOF
32906 /* confdefs.h.  */
32907 _ACEOF
32908 cat confdefs.h >>conftest.$ac_ext
32909 cat >>conftest.$ac_ext <<_ACEOF
32910 /* end confdefs.h.  */
32911 #include <windows.h>
32912
32913 #include <ddraw.h>
32914 _ACEOF
32915 rm -f conftest.$ac_objext
32916 if { (ac_try="$ac_compile"
32917 case "(($ac_try" in
32918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919   *) ac_try_echo=$ac_try;;
32920 esac
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922   (eval "$ac_compile") 2>conftest.er1
32923   ac_status=$?
32924   grep -v '^ *+' conftest.er1 >conftest.err
32925   rm -f conftest.er1
32926   cat conftest.err >&5
32927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928   (exit $ac_status); } && {
32929          test -z "$ac_c_werror_flag" ||
32930          test ! -s conftest.err
32931        } && test -s conftest.$ac_objext; then
32932   ac_cv_header_ddraw_h=yes
32933 else
32934   echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.$ac_ext >&5
32936
32937         ac_cv_header_ddraw_h=no
32938 fi
32939
32940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32941 fi
32942 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32943 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32944
32945
32946     fi
32947 fi
32948
32949 if test "$wxUSE_DETECT_SM" = "yes"; then
32950     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32951         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32952 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32953
32954   ac_find_libraries=
32955   for ac_dir in $SEARCH_LIB;
32956   do
32957     for ac_extension in a so sl dylib dll.a; do
32958       if test -f "$ac_dir/libSM.$ac_extension"; then
32959         ac_find_libraries=$ac_dir
32960         break 2
32961       fi
32962     done
32963   done
32964
32965         if test "$ac_find_libraries" != "" ; then
32966
32967     if test "$ac_find_libraries" = "default location"; then
32968     ac_path_to_link=""
32969   else
32970     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32971     result=$?
32972     if test $result = 0; then
32973       ac_path_to_link=""
32974     else
32975       ac_path_to_link=" -L$ac_find_libraries"
32976     fi
32977   fi
32978
32979             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32980                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32981             fi
32982             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32983             { echo "$as_me:$LINENO: result: yes" >&5
32984 echo "${ECHO_T}yes" >&6; }
32985         else
32986             { echo "$as_me:$LINENO: result: no" >&5
32987 echo "${ECHO_T}no" >&6; }
32988             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32989 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32990             wxUSE_DETECT_SM="no"
32991         fi
32992     else
32993         wxUSE_DETECT_SM="no"
32994     fi
32995 fi
32996
32997
32998
32999 USE_OPENGL=0
33000 if test "$wxUSE_OPENGL" = "yes"; then
33001     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
33002         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33003 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33004         wxUSE_OPENGL="no"
33005     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33006         OPENGL_LIBS="-framework OpenGL -framework AGL"
33007     elif test "$wxUSE_MSW" = 1; then
33008         OPENGL_LIBS="-lopengl32 -lglu32"
33009     else
33010                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33011 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33012
33013 ac_find_includes=
33014 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33015   do
33016     if test -f "$ac_dir/GL/gl.h"; then
33017       ac_find_includes=$ac_dir
33018       break
33019     fi
33020   done
33021
33022         if test "$ac_find_includes" != "" ; then
33023             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33024 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33025
33026     if test "x$ac_find_includes" = "x/usr/include"; then
33027     ac_path_to_include=""
33028   else
33029     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33030     result=$?
33031     if test $result = 0; then
33032       ac_path_to_include=""
33033     else
33034       ac_path_to_include=" -I$ac_find_includes"
33035     fi
33036   fi
33037
33038             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33039         else
33040             { echo "$as_me:$LINENO: result: not found" >&5
33041 echo "${ECHO_T}not found" >&6; }
33042         fi
33043
33044         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33045 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33046 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049   cat >conftest.$ac_ext <<_ACEOF
33050 /* confdefs.h.  */
33051 _ACEOF
33052 cat confdefs.h >>conftest.$ac_ext
33053 cat >>conftest.$ac_ext <<_ACEOF
33054 /* end confdefs.h.  */
33055
33056
33057 #include <GL/gl.h>
33058 _ACEOF
33059 rm -f conftest.$ac_objext
33060 if { (ac_try="$ac_compile"
33061 case "(($ac_try" in
33062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063   *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066   (eval "$ac_compile") 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } && {
33073          test -z "$ac_c_werror_flag" ||
33074          test ! -s conftest.err
33075        } && test -s conftest.$ac_objext; then
33076   ac_cv_header_GL_gl_h=yes
33077 else
33078   echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081         ac_cv_header_GL_gl_h=no
33082 fi
33083
33084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085 fi
33086 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33087 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33088 if test $ac_cv_header_GL_gl_h = yes; then
33089
33090             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33091 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33092 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   cat >conftest.$ac_ext <<_ACEOF
33096 /* confdefs.h.  */
33097 _ACEOF
33098 cat confdefs.h >>conftest.$ac_ext
33099 cat >>conftest.$ac_ext <<_ACEOF
33100 /* end confdefs.h.  */
33101
33102
33103 #include <GL/glu.h>
33104 _ACEOF
33105 rm -f conftest.$ac_objext
33106 if { (ac_try="$ac_compile"
33107 case "(($ac_try" in
33108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109   *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112   (eval "$ac_compile") 2>conftest.er1
33113   ac_status=$?
33114   grep -v '^ *+' conftest.er1 >conftest.err
33115   rm -f conftest.er1
33116   cat conftest.err >&5
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); } && {
33119          test -z "$ac_c_werror_flag" ||
33120          test ! -s conftest.err
33121        } && test -s conftest.$ac_objext; then
33122   ac_cv_header_GL_glu_h=yes
33123 else
33124   echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33126
33127         ac_cv_header_GL_glu_h=no
33128 fi
33129
33130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33131 fi
33132 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33133 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33134 if test $ac_cv_header_GL_glu_h = yes; then
33135
33136                 found_gl=0
33137
33138                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33139 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33140
33141   ac_find_libraries=
33142   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33143   do
33144     for ac_extension in a so sl dylib dll.a; do
33145       if test -f "$ac_dir/libGL.$ac_extension"; then
33146         ac_find_libraries=$ac_dir
33147         break 2
33148       fi
33149     done
33150   done
33151
33152                 if test "$ac_find_libraries" != "" ; then
33153                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33154 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33155
33156
33157     if test "$ac_find_libraries" = "default location"; then
33158     ac_path_to_link=""
33159   else
33160     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33161     result=$?
33162     if test $result = 0; then
33163       ac_path_to_link=""
33164     else
33165       ac_path_to_link=" -L$ac_find_libraries"
33166     fi
33167   fi
33168
33169                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33170                         LDFLAGS_GL="$ac_path_to_link"
33171                     fi
33172
33173                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33174 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33175
33176   ac_find_libraries=
33177   for ac_dir in $SEARCH_LIB;
33178   do
33179     for ac_extension in a so sl dylib dll.a; do
33180       if test -f "$ac_dir/libGLU.$ac_extension"; then
33181         ac_find_libraries=$ac_dir
33182         break 2
33183       fi
33184     done
33185   done
33186
33187                     if test "$ac_find_libraries" != "" ; then
33188
33189     if test "$ac_find_libraries" = "default location"; then
33190     ac_path_to_link=""
33191   else
33192     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33193     result=$?
33194     if test $result = 0; then
33195       ac_path_to_link=""
33196     else
33197       ac_path_to_link=" -L$ac_find_libraries"
33198     fi
33199   fi
33200
33201                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33202                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33203                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33204                         fi
33205
33206                         found_gl=1
33207                         OPENGL_LIBS="-lGL -lGLU"
33208                         { echo "$as_me:$LINENO: result: yes" >&5
33209 echo "${ECHO_T}yes" >&6; }
33210                     else
33211                         { echo "$as_me:$LINENO: result: no" >&5
33212 echo "${ECHO_T}no" >&6; }
33213                     fi
33214                 else
33215                     { echo "$as_me:$LINENO: result: no" >&5
33216 echo "${ECHO_T}no" >&6; }
33217                 fi
33218
33219                 if test "$found_gl" != 1; then
33220                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33221 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33222
33223   ac_find_libraries=
33224   for ac_dir in $SEARCH_LIB;
33225   do
33226     for ac_extension in a so sl dylib dll.a; do
33227       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33228         ac_find_libraries=$ac_dir
33229         break 2
33230       fi
33231     done
33232   done
33233
33234                     if test "$ac_find_libraries" != "" ; then
33235
33236     if test "$ac_find_libraries" = "default location"; then
33237     ac_path_to_link=""
33238   else
33239     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33240     result=$?
33241     if test $result = 0; then
33242       ac_path_to_link=""
33243     else
33244       ac_path_to_link=" -L$ac_find_libraries"
33245     fi
33246   fi
33247
33248                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33249                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33250                         { echo "$as_me:$LINENO: result: yes" >&5
33251 echo "${ECHO_T}yes" >&6; }
33252                     else
33253                         { echo "$as_me:$LINENO: result: no" >&5
33254 echo "${ECHO_T}no" >&6; }
33255                     fi
33256                 fi
33257
33258 fi
33259
33260
33261
33262 fi
33263
33264
33265
33266         if test "x$OPENGL_LIBS" = "x"; then
33267                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33268 echo "$as_me: error: OpenGL libraries not available" >&2;}
33269    { (exit 1); exit 1; }; }
33270         fi
33271     fi
33272
33273     if test "$wxUSE_OPENGL" = "yes"; then
33274         USE_OPENGL=1
33275         cat >>confdefs.h <<\_ACEOF
33276 #define wxUSE_OPENGL 1
33277 _ACEOF
33278
33279         cat >>confdefs.h <<\_ACEOF
33280 #define wxUSE_GLCANVAS 1
33281 _ACEOF
33282
33283         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33284     fi
33285 fi
33286
33287
33288 if test -n "$TOOLKIT" ; then
33289     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33290 fi
33291
33292
33293
33294 if test "$wxUSE_SHARED" = "yes"; then
33295     case "${host}" in
33296       *-pc-msdosdjgpp )
33297                 wxUSE_SHARED=no
33298         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33299 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33300       ;;
33301     esac
33302 fi
33303
33304 if test "$wxUSE_SHARED" = "yes"; then
33305
33306
33307     case "${host}" in
33308         *-*-cygwin* | *-*-mingw* )
33309                                                                                                 wx_cv_version_script=no
33310             ;;
33311
33312         *)
33313             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33314 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33315 if test "${wx_cv_version_script+set}" = set; then
33316   echo $ECHO_N "(cached) $ECHO_C" >&6
33317 else
33318
33319                 echo "VER_1 { *; };" >conftest.sym
33320                 echo "int main() { return 0; }" >conftest.cpp
33321
33322                 if { ac_try='
33323                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33324                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326   (eval $ac_try) 2>&5
33327   ac_status=$?
33328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); }; } ; then
33330                   if test -s conftest.stderr ; then
33331                       wx_cv_version_script=no
33332                   else
33333                       wx_cv_version_script=yes
33334                   fi
33335                 else
33336                   wx_cv_version_script=no
33337                 fi
33338
33339                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33340                 then
33341                   echo "struct B { virtual ~B() { } }; \
33342                         struct D : public B { }; \
33343                         void F() { D d; }" > conftest.cpp
33344
33345                   if { ac_try='
33346                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33347                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349   (eval $ac_try) 2>&5
33350   ac_status=$?
33351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352   (exit $ac_status); }; } &&
33353                      { ac_try='
33354                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33355                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33357   (eval $ac_try) 2>&5
33358   ac_status=$?
33359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360   (exit $ac_status); }; }
33361                   then
33362                     if { ac_try='
33363                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33364                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366   (eval $ac_try) 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; }
33370                     then
33371                       wx_cv_version_script=yes
33372                     else
33373                       wx_cv_version_script=no
33374                     fi
33375                   fi
33376                 fi
33377
33378                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33379                 rm -f conftest1.output conftest2.output conftest3.output
33380
33381 fi
33382 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33383 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33384
33385             if test $wx_cv_version_script = yes ; then
33386                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33387             fi
33388             ;;
33389     esac
33390
33391
33392             if test "$wxUSE_VISIBILITY" != "no"; then
33393
33394
33395   if test -n "$GCC"; then
33396     CFLAGS_VISIBILITY="-fvisibility=hidden"
33397     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33398     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33399 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33400     if test "${wx_cv_cc_visibility+set}" = set; then
33401   echo $ECHO_N "(cached) $ECHO_C" >&6
33402 else
33403
33404       wx_save_CXXFLAGS="$CXXFLAGS"
33405       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33406       ac_ext=cpp
33407 ac_cpp='$CXXCPP $CPPFLAGS'
33408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33411
33412       cat >conftest.$ac_ext <<_ACEOF
33413 /* confdefs.h.  */
33414 _ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h.  */
33418
33419          /* we need gcc >= 4.0, older versions with visibility support
33420             didn't have class visibility: */
33421          #if defined(__GNUC__) && __GNUC__ < 4
33422          error this gcc is too old;
33423          #endif
33424
33425          /* visibility only makes sense for ELF shared libs: */
33426          #if !defined(__ELF__) && !defined(__APPLE__)
33427          error this platform has no visibility;
33428          #endif
33429
33430          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33431          extern __attribute__((__visibility__("default"))) int exportedvar;
33432          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33433          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33434          class __attribute__((__visibility__("default"))) Foo {
33435            Foo() {}
33436          };
33437
33438 int
33439 main ()
33440 {
33441
33442   ;
33443   return 0;
33444 }
33445 _ACEOF
33446 rm -f conftest.$ac_objext
33447 if { (ac_try="$ac_compile"
33448 case "(($ac_try" in
33449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450   *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453   (eval "$ac_compile") 2>conftest.er1
33454   ac_status=$?
33455   grep -v '^ *+' conftest.er1 >conftest.err
33456   rm -f conftest.er1
33457   cat conftest.err >&5
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); } && {
33460          test -z "$ac_cxx_werror_flag" ||
33461          test ! -s conftest.err
33462        } && test -s conftest.$ac_objext; then
33463   wx_cv_cc_visibility=yes
33464 else
33465   echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33467
33468         wx_cv_cc_visibility=no
33469 fi
33470
33471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33472       ac_ext=c
33473 ac_cpp='$CPP $CPPFLAGS'
33474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33477
33478       CXXFLAGS="$wx_save_CXXFLAGS"
33479 fi
33480
33481     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33482 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33483     if test $wx_cv_cc_visibility = yes; then
33484                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33485 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33486       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33487   echo $ECHO_N "(cached) $ECHO_C" >&6
33488 else
33489
33490         wx_save_CXXFLAGS="$CXXFLAGS"
33491         wx_save_LDFLAGS="$LDFLAGS"
33492         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33493         LDFLAGS="$LDFLAGS -shared -fPIC"
33494         ac_ext=cpp
33495 ac_cpp='$CXXCPP $CPPFLAGS'
33496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33499
33500         cat >conftest.$ac_ext <<_ACEOF
33501 /* confdefs.h.  */
33502 _ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h.  */
33506
33507             #include <string>
33508
33509 int
33510 main ()
33511 {
33512
33513             std::string s("hello");
33514             return s.length();
33515
33516   ;
33517   return 0;
33518 }
33519 _ACEOF
33520 rm -f conftest.$ac_objext conftest$ac_exeext
33521 if { (ac_try="$ac_link"
33522 case "(($ac_try" in
33523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524   *) ac_try_echo=$ac_try;;
33525 esac
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527   (eval "$ac_link") 2>conftest.er1
33528   ac_status=$?
33529   grep -v '^ *+' conftest.er1 >conftest.err
33530   rm -f conftest.er1
33531   cat conftest.err >&5
33532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533   (exit $ac_status); } && {
33534          test -z "$ac_cxx_werror_flag" ||
33535          test ! -s conftest.err
33536        } && test -s conftest$ac_exeext &&
33537        $as_test_x conftest$ac_exeext; then
33538   wx_cv_cc_broken_libstdcxx_visibility=no
33539 else
33540   echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33542
33543         wx_cv_cc_broken_libstdcxx_visibility=yes
33544 fi
33545
33546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33547       conftest$ac_exeext conftest.$ac_ext
33548         ac_ext=c
33549 ac_cpp='$CPP $CPPFLAGS'
33550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33553
33554         CXXFLAGS="$wx_save_CXXFLAGS"
33555         LDFLAGS="$wx_save_LDFLAGS"
33556 fi
33557
33558       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33559 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33560
33561       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33562         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33563 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33564         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33565   echo $ECHO_N "(cached) $ECHO_C" >&6
33566 else
33567
33568           ac_ext=cpp
33569 ac_cpp='$CXXCPP $CPPFLAGS'
33570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33573
33574           cat >conftest.$ac_ext <<_ACEOF
33575 /* confdefs.h.  */
33576 _ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h.  */
33580
33581               #pragma GCC visibility push(default)
33582               #include <string>
33583               #pragma GCC visibility pop
33584
33585 int
33586 main ()
33587 {
33588
33589               std::string s("hello");
33590               return s.length();
33591
33592   ;
33593   return 0;
33594 }
33595 _ACEOF
33596 rm -f conftest.$ac_objext conftest$ac_exeext
33597 if { (ac_try="$ac_link"
33598 case "(($ac_try" in
33599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33600   *) ac_try_echo=$ac_try;;
33601 esac
33602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33603   (eval "$ac_link") 2>conftest.er1
33604   ac_status=$?
33605   grep -v '^ *+' conftest.er1 >conftest.err
33606   rm -f conftest.er1
33607   cat conftest.err >&5
33608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609   (exit $ac_status); } && {
33610          test -z "$ac_cxx_werror_flag" ||
33611          test ! -s conftest.err
33612        } && test -s conftest$ac_exeext &&
33613        $as_test_x conftest$ac_exeext; then
33614   wx_cv_cc_visibility_workaround=no
33615 else
33616   echo "$as_me: failed program was:" >&5
33617 sed 's/^/| /' conftest.$ac_ext >&5
33618
33619         wx_cv_cc_visibility_workaround=yes
33620 fi
33621
33622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33623       conftest$ac_exeext conftest.$ac_ext
33624           ac_ext=c
33625 ac_cpp='$CPP $CPPFLAGS'
33626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33629
33630
33631 fi
33632
33633         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33634 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33635
33636         if test $wx_cv_cc_visibility_workaround = no; then
33637                     wx_cv_cc_visibility=no
33638         fi
33639       fi
33640     fi
33641
33642     if test $wx_cv_cc_visibility = yes; then
33643       cat >>confdefs.h <<\_ACEOF
33644 #define HAVE_VISIBILITY 1
33645 _ACEOF
33646
33647       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33648         cat >>confdefs.h <<\_ACEOF
33649 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33650 _ACEOF
33651
33652       fi
33653     else
33654       CFLAGS_VISIBILITY=""
33655       CXXFLAGS_VISIBILITY=""
33656     fi
33657
33658
33659   fi
33660
33661     fi
33662
33663         if test "x$SUNCXX" = xyes; then
33664         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33665         WXCONFIG_RPATH="-R\$libdir"
33666     else
33667     case "${host}" in
33668       *-*-linux* | *-*-gnu* )
33669         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33670         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33671         ;;
33672
33673       *-*-solaris2* )
33674
33675                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33676
33677                         saveLdflags="$LDFLAGS"
33678         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33679         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33680 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33681         cat >conftest.$ac_ext <<_ACEOF
33682 /* confdefs.h.  */
33683 _ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h.  */
33687
33688 int
33689 main ()
33690 {
33691
33692   ;
33693   return 0;
33694 }
33695 _ACEOF
33696 rm -f conftest.$ac_objext conftest$ac_exeext
33697 if { (ac_try="$ac_link"
33698 case "(($ac_try" in
33699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33700   *) ac_try_echo=$ac_try;;
33701 esac
33702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33703   (eval "$ac_link") 2>conftest.er1
33704   ac_status=$?
33705   grep -v '^ *+' conftest.er1 >conftest.err
33706   rm -f conftest.er1
33707   cat conftest.err >&5
33708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709   (exit $ac_status); } && {
33710          test -z "$ac_c_werror_flag" ||
33711          test ! -s conftest.err
33712        } && test -s conftest$ac_exeext &&
33713        $as_test_x conftest$ac_exeext; then
33714
33715                 { echo "$as_me:$LINENO: result: yes" >&5
33716 echo "${ECHO_T}yes" >&6; }
33717                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33718                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33719
33720 else
33721   echo "$as_me: failed program was:" >&5
33722 sed 's/^/| /' conftest.$ac_ext >&5
33723
33724
33725                 { echo "$as_me:$LINENO: result: no" >&5
33726 echo "${ECHO_T}no" >&6; }
33727                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33728 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33729                 LDFLAGS="$saveLdflags -Wl,-R,/"
33730                 cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736
33737 int
33738 main ()
33739 {
33740
33741   ;
33742   return 0;
33743 }
33744 _ACEOF
33745 rm -f conftest.$ac_objext conftest$ac_exeext
33746 if { (ac_try="$ac_link"
33747 case "(($ac_try" in
33748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749   *) ac_try_echo=$ac_try;;
33750 esac
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752   (eval "$ac_link") 2>conftest.er1
33753   ac_status=$?
33754   grep -v '^ *+' conftest.er1 >conftest.err
33755   rm -f conftest.er1
33756   cat conftest.err >&5
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); } && {
33759          test -z "$ac_c_werror_flag" ||
33760          test ! -s conftest.err
33761        } && test -s conftest$ac_exeext &&
33762        $as_test_x conftest$ac_exeext; then
33763
33764                         { echo "$as_me:$LINENO: result: yes" >&5
33765 echo "${ECHO_T}yes" >&6; }
33766                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33767                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33768
33769 else
33770   echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33772
33773
33774                         { echo "$as_me:$LINENO: result: no" >&5
33775 echo "${ECHO_T}no" >&6; }
33776
33777 fi
33778
33779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33780       conftest$ac_exeext conftest.$ac_ext
33781
33782 fi
33783
33784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33785       conftest$ac_exeext conftest.$ac_ext
33786         LDFLAGS="$saveLdflags"
33787       ;;
33788
33789       *-*-darwin* )
33790         install_name_tool=`which install_name_tool`
33791         if test "$install_name_tool" -a -x "$install_name_tool"; then
33792             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33793             cat <<EOF >change-install-names
33794 #!/bin/sh
33795 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33796 inst_cmd="install_name_tool "
33797 for i in \${libnames} ; do
33798     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33799 done
33800 \${inst_cmd} \${3}
33801 EOF
33802             chmod +x change-install-names
33803         fi
33804       ;;
33805
33806       *-*-cygwin* | *-*-mingw32* )
33807         ;;
33808
33809       *-*-hpux* )
33810         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33811         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33812         ;;
33813
33814     esac
33815     fi
33816
33817             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33818
33819     if test $wxUSE_RPATH = "no"; then
33820         SAMPLES_RPATH_FLAG=''
33821         SAMPLES_RPATH_POSTLINK=''
33822         WXCONFIG_RPATH=''
33823     fi
33824
33825     SHARED=1
33826
33827 else
33828
33829     config_linkage_component="-static"
33830     SHARED=0
33831
33832 fi
33833
33834
33835 UNICODE=0
33836 lib_unicode_suffix=
33837 WX_CHARTYPE="ansi"
33838 if test "$wxUSE_UNICODE" = "yes"; then
33839     lib_unicode_suffix=u
33840     WX_CHARTYPE="unicode"
33841     UNICODE=1
33842 fi
33843
33844 lib_debug_suffix=
33845 WX_DEBUGTYPE="release"
33846 DEBUG_FLAG=0
33847 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33848     lib_debug_suffix=d
33849     WX_DEBUGTYPE="debug"
33850     DEBUG_FLAG=1
33851 fi
33852
33853 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33854 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33855
33856 DEBUG_INFO=0
33857 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33858     DEBUG_INFO=1
33859 fi
33860
33861 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33862
33863 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33864
33865 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33866
33867 if test "$cross_compiling" = "yes"; then
33868     HOST_SUFFIX="-$host_alias"
33869     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33870     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33871 fi
33872
33873 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33874 if test "${TOOLKIT_DIR}" = "os2"; then
33875     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33876 else
33877     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33878 fi
33879
33880
33881
33882 if test "$wxUSE_COCOA" = 1; then
33883
33884     ac_ext=c
33885 ac_cpp='$CPP $CPPFLAGS'
33886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33889
33890 ac_ext=m
33891
33892     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33893 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33894     cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h.  */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h.  */
33900 #include <AppKit/NSEvent.h>
33901 #include <CoreFoundation/CoreFoundation.h>
33902
33903 int
33904 main ()
33905 {
33906
33907   ;
33908   return 0;
33909 }
33910 _ACEOF
33911 rm -f conftest.$ac_objext
33912 if { (ac_try="$ac_compile"
33913 case "(($ac_try" in
33914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915   *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918   (eval "$ac_compile") 2>conftest.er1
33919   ac_status=$?
33920   grep -v '^ *+' conftest.er1 >conftest.err
33921   rm -f conftest.er1
33922   cat conftest.err >&5
33923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924   (exit $ac_status); } && {
33925          test -z "$ac_c_werror_flag" ||
33926          test ! -s conftest.err
33927        } && test -s conftest.$ac_objext; then
33928   { echo "$as_me:$LINENO: result: no" >&5
33929 echo "${ECHO_T}no" >&6; }
33930 else
33931   echo "$as_me: failed program was:" >&5
33932 sed 's/^/| /' conftest.$ac_ext >&5
33933
33934         { echo "$as_me:$LINENO: result: yes" >&5
33935 echo "${ECHO_T}yes" >&6; }
33936         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33937 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33938         cat >conftest.$ac_ext <<_ACEOF
33939 /* confdefs.h.  */
33940 _ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h.  */
33944 #define __Point__ 1
33945 #include <AppKit/NSEvent.h>
33946 #include <CoreFoundation/CoreFoundation.h>
33947
33948 int
33949 main ()
33950 {
33951
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_compile") 2>conftest.er1
33964   ac_status=$?
33965   grep -v '^ *+' conftest.er1 >conftest.err
33966   rm -f conftest.er1
33967   cat conftest.err >&5
33968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969   (exit $ac_status); } && {
33970          test -z "$ac_c_werror_flag" ||
33971          test ! -s conftest.err
33972        } && test -s conftest.$ac_objext; then
33973   { echo "$as_me:$LINENO: result: yes" >&5
33974 echo "${ECHO_T}yes" >&6; }
33975             cat >>confdefs.h <<\_ACEOF
33976 #define __Point__ 1
33977 _ACEOF
33978
33979
33980 else
33981   echo "$as_me: failed program was:" >&5
33982 sed 's/^/| /' conftest.$ac_ext >&5
33983
33984         { { echo "$as_me:$LINENO: error: no
33985 See \`config.log' for more details." >&5
33986 echo "$as_me: error: no
33987 See \`config.log' for more details." >&2;}
33988    { (exit 1); exit 1; }; }
33989
33990 fi
33991
33992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33993
33994 fi
33995
33996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33997     ac_ext=c
33998 ac_cpp='$CPP $CPPFLAGS'
33999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34002
34003 fi
34004
34005
34006 { echo "$as_me:$LINENO: checking for mode_t" >&5
34007 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34008 if test "${ac_cv_type_mode_t+set}" = set; then
34009   echo $ECHO_N "(cached) $ECHO_C" >&6
34010 else
34011   cat >conftest.$ac_ext <<_ACEOF
34012 /* confdefs.h.  */
34013 _ACEOF
34014 cat confdefs.h >>conftest.$ac_ext
34015 cat >>conftest.$ac_ext <<_ACEOF
34016 /* end confdefs.h.  */
34017 $ac_includes_default
34018 typedef mode_t ac__type_new_;
34019 int
34020 main ()
34021 {
34022 if ((ac__type_new_ *) 0)
34023   return 0;
34024 if (sizeof (ac__type_new_))
34025   return 0;
34026   ;
34027   return 0;
34028 }
34029 _ACEOF
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_compile") 2>conftest.er1
34038   ac_status=$?
34039   grep -v '^ *+' conftest.er1 >conftest.err
34040   rm -f conftest.er1
34041   cat conftest.err >&5
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); } && {
34044          test -z "$ac_c_werror_flag" ||
34045          test ! -s conftest.err
34046        } && test -s conftest.$ac_objext; then
34047   ac_cv_type_mode_t=yes
34048 else
34049   echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34051
34052         ac_cv_type_mode_t=no
34053 fi
34054
34055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34056 fi
34057 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34058 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34059 if test $ac_cv_type_mode_t = yes; then
34060   :
34061 else
34062
34063 cat >>confdefs.h <<_ACEOF
34064 #define mode_t int
34065 _ACEOF
34066
34067 fi
34068
34069 { echo "$as_me:$LINENO: checking for off_t" >&5
34070 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34071 if test "${ac_cv_type_off_t+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 $ac_includes_default
34081 typedef off_t ac__type_new_;
34082 int
34083 main ()
34084 {
34085 if ((ac__type_new_ *) 0)
34086   return 0;
34087 if (sizeof (ac__type_new_))
34088   return 0;
34089   ;
34090   return 0;
34091 }
34092 _ACEOF
34093 rm -f conftest.$ac_objext
34094 if { (ac_try="$ac_compile"
34095 case "(($ac_try" in
34096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097   *) ac_try_echo=$ac_try;;
34098 esac
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100   (eval "$ac_compile") 2>conftest.er1
34101   ac_status=$?
34102   grep -v '^ *+' conftest.er1 >conftest.err
34103   rm -f conftest.er1
34104   cat conftest.err >&5
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); } && {
34107          test -z "$ac_c_werror_flag" ||
34108          test ! -s conftest.err
34109        } && test -s conftest.$ac_objext; then
34110   ac_cv_type_off_t=yes
34111 else
34112   echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.$ac_ext >&5
34114
34115         ac_cv_type_off_t=no
34116 fi
34117
34118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 fi
34120 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34121 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34122 if test $ac_cv_type_off_t = yes; then
34123   :
34124 else
34125
34126 cat >>confdefs.h <<_ACEOF
34127 #define off_t long int
34128 _ACEOF
34129
34130 fi
34131
34132 { echo "$as_me:$LINENO: checking for pid_t" >&5
34133 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34134 if test "${ac_cv_type_pid_t+set}" = set; then
34135   echo $ECHO_N "(cached) $ECHO_C" >&6
34136 else
34137   cat >conftest.$ac_ext <<_ACEOF
34138 /* confdefs.h.  */
34139 _ACEOF
34140 cat confdefs.h >>conftest.$ac_ext
34141 cat >>conftest.$ac_ext <<_ACEOF
34142 /* end confdefs.h.  */
34143 $ac_includes_default
34144 typedef pid_t ac__type_new_;
34145 int
34146 main ()
34147 {
34148 if ((ac__type_new_ *) 0)
34149   return 0;
34150 if (sizeof (ac__type_new_))
34151   return 0;
34152   ;
34153   return 0;
34154 }
34155 _ACEOF
34156 rm -f conftest.$ac_objext
34157 if { (ac_try="$ac_compile"
34158 case "(($ac_try" in
34159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34160   *) ac_try_echo=$ac_try;;
34161 esac
34162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34163   (eval "$ac_compile") 2>conftest.er1
34164   ac_status=$?
34165   grep -v '^ *+' conftest.er1 >conftest.err
34166   rm -f conftest.er1
34167   cat conftest.err >&5
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); } && {
34170          test -z "$ac_c_werror_flag" ||
34171          test ! -s conftest.err
34172        } && test -s conftest.$ac_objext; then
34173   ac_cv_type_pid_t=yes
34174 else
34175   echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34177
34178         ac_cv_type_pid_t=no
34179 fi
34180
34181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34182 fi
34183 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34184 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34185 if test $ac_cv_type_pid_t = yes; then
34186   :
34187 else
34188
34189 cat >>confdefs.h <<_ACEOF
34190 #define pid_t int
34191 _ACEOF
34192
34193 fi
34194
34195 { echo "$as_me:$LINENO: checking for size_t" >&5
34196 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34197 if test "${ac_cv_type_size_t+set}" = set; then
34198   echo $ECHO_N "(cached) $ECHO_C" >&6
34199 else
34200   cat >conftest.$ac_ext <<_ACEOF
34201 /* confdefs.h.  */
34202 _ACEOF
34203 cat confdefs.h >>conftest.$ac_ext
34204 cat >>conftest.$ac_ext <<_ACEOF
34205 /* end confdefs.h.  */
34206 $ac_includes_default
34207 typedef size_t ac__type_new_;
34208 int
34209 main ()
34210 {
34211 if ((ac__type_new_ *) 0)
34212   return 0;
34213 if (sizeof (ac__type_new_))
34214   return 0;
34215   ;
34216   return 0;
34217 }
34218 _ACEOF
34219 rm -f conftest.$ac_objext
34220 if { (ac_try="$ac_compile"
34221 case "(($ac_try" in
34222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223   *) ac_try_echo=$ac_try;;
34224 esac
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226   (eval "$ac_compile") 2>conftest.er1
34227   ac_status=$?
34228   grep -v '^ *+' conftest.er1 >conftest.err
34229   rm -f conftest.er1
34230   cat conftest.err >&5
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); } && {
34233          test -z "$ac_c_werror_flag" ||
34234          test ! -s conftest.err
34235        } && test -s conftest.$ac_objext; then
34236   ac_cv_type_size_t=yes
34237 else
34238   echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34240
34241         ac_cv_type_size_t=no
34242 fi
34243
34244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34245 fi
34246 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34247 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34248 if test $ac_cv_type_size_t = yes; then
34249   :
34250 else
34251
34252 cat >>confdefs.h <<_ACEOF
34253 #define size_t unsigned int
34254 _ACEOF
34255
34256 fi
34257
34258
34259 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34260 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34261 if test "${ac_cv_type_ssize_t+set}" = set; then
34262   echo $ECHO_N "(cached) $ECHO_C" >&6
34263 else
34264   cat >conftest.$ac_ext <<_ACEOF
34265 /* confdefs.h.  */
34266 _ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h.  */
34270 $ac_includes_default
34271 typedef ssize_t ac__type_new_;
34272 int
34273 main ()
34274 {
34275 if ((ac__type_new_ *) 0)
34276   return 0;
34277 if (sizeof (ac__type_new_))
34278   return 0;
34279   ;
34280   return 0;
34281 }
34282 _ACEOF
34283 rm -f conftest.$ac_objext
34284 if { (ac_try="$ac_compile"
34285 case "(($ac_try" in
34286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34287   *) ac_try_echo=$ac_try;;
34288 esac
34289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34290   (eval "$ac_compile") 2>conftest.er1
34291   ac_status=$?
34292   grep -v '^ *+' conftest.er1 >conftest.err
34293   rm -f conftest.er1
34294   cat conftest.err >&5
34295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296   (exit $ac_status); } && {
34297          test -z "$ac_c_werror_flag" ||
34298          test ! -s conftest.err
34299        } && test -s conftest.$ac_objext; then
34300   ac_cv_type_ssize_t=yes
34301 else
34302   echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34304
34305         ac_cv_type_ssize_t=no
34306 fi
34307
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34309 fi
34310 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34311 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34312 if test $ac_cv_type_ssize_t = yes; then
34313
34314 cat >>confdefs.h <<_ACEOF
34315 #define HAVE_SSIZE_T 1
34316 _ACEOF
34317
34318
34319 fi
34320
34321
34322 ac_ext=cpp
34323 ac_cpp='$CXXCPP $CPPFLAGS'
34324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34327  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34328 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34329 if test "${wx_cv_size_t_is_uint+set}" = set; then
34330   echo $ECHO_N "(cached) $ECHO_C" >&6
34331 else
34332
34333                             cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339 #include <stddef.h>
34340 int
34341 main ()
34342 {
34343
34344             return 0; }
34345
34346             struct Foo { void foo(size_t); void foo(unsigned int); };
34347
34348             int bar() {
34349
34350   ;
34351   return 0;
34352 }
34353 _ACEOF
34354 rm -f conftest.$ac_objext
34355 if { (ac_try="$ac_compile"
34356 case "(($ac_try" in
34357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34358   *) ac_try_echo=$ac_try;;
34359 esac
34360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34361   (eval "$ac_compile") 2>conftest.er1
34362   ac_status=$?
34363   grep -v '^ *+' conftest.er1 >conftest.err
34364   rm -f conftest.er1
34365   cat conftest.err >&5
34366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367   (exit $ac_status); } && {
34368          test -z "$ac_cxx_werror_flag" ||
34369          test ! -s conftest.err
34370        } && test -s conftest.$ac_objext; then
34371   wx_cv_size_t_is_uint=no
34372 else
34373   echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34375
34376         wx_cv_size_t_is_uint=yes
34377
34378 fi
34379
34380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34381
34382
34383 fi
34384 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34385 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34386
34387 if test "$wx_cv_size_t_is_uint" = "yes"; then
34388     cat >>confdefs.h <<\_ACEOF
34389 #define wxSIZE_T_IS_UINT 1
34390 _ACEOF
34391
34392 else
34393     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34394 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34395 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34396   echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398   cat >conftest.$ac_ext <<_ACEOF
34399 /* confdefs.h.  */
34400 _ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h.  */
34404 #include <stddef.h>
34405 int
34406 main ()
34407 {
34408
34409                 return 0; }
34410
34411                 struct Foo { void foo(size_t); void foo(unsigned long); };
34412
34413                 int bar() {
34414
34415   ;
34416   return 0;
34417 }
34418 _ACEOF
34419 rm -f conftest.$ac_objext
34420 if { (ac_try="$ac_compile"
34421 case "(($ac_try" in
34422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34423   *) ac_try_echo=$ac_try;;
34424 esac
34425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34426   (eval "$ac_compile") 2>conftest.er1
34427   ac_status=$?
34428   grep -v '^ *+' conftest.er1 >conftest.err
34429   rm -f conftest.er1
34430   cat conftest.err >&5
34431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432   (exit $ac_status); } && {
34433          test -z "$ac_cxx_werror_flag" ||
34434          test ! -s conftest.err
34435        } && test -s conftest.$ac_objext; then
34436   wx_cv_size_t_is_ulong=no
34437 else
34438   echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34440
34441         wx_cv_size_t_is_ulong=yes
34442
34443 fi
34444
34445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34446
34447 fi
34448 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34449 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34450
34451     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34452         cat >>confdefs.h <<\_ACEOF
34453 #define wxSIZE_T_IS_ULONG 1
34454 _ACEOF
34455
34456     fi
34457 fi
34458
34459 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34460 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34461 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34462   echo $ECHO_N "(cached) $ECHO_C" >&6
34463 else
34464   cat >conftest.$ac_ext <<_ACEOF
34465 /* confdefs.h.  */
34466 _ACEOF
34467 cat confdefs.h >>conftest.$ac_ext
34468 cat >>conftest.$ac_ext <<_ACEOF
34469 /* end confdefs.h.  */
34470 #include <wchar.h>
34471 int
34472 main ()
34473 {
34474
34475             return 0; }
34476
34477             struct Foo { void foo(wchar_t);
34478                          void foo(unsigned short);
34479                          void foo(unsigned int);
34480                          void foo(unsigned long); };
34481
34482             int bar() {
34483
34484   ;
34485   return 0;
34486 }
34487 _ACEOF
34488 rm -f conftest.$ac_objext
34489 if { (ac_try="$ac_compile"
34490 case "(($ac_try" in
34491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34492   *) ac_try_echo=$ac_try;;
34493 esac
34494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34495   (eval "$ac_compile") 2>conftest.er1
34496   ac_status=$?
34497   grep -v '^ *+' conftest.er1 >conftest.err
34498   rm -f conftest.er1
34499   cat conftest.err >&5
34500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501   (exit $ac_status); } && {
34502          test -z "$ac_cxx_werror_flag" ||
34503          test ! -s conftest.err
34504        } && test -s conftest.$ac_objext; then
34505   wx_cv_wchar_t_is_separate_type=yes
34506 else
34507   echo "$as_me: failed program was:" >&5
34508 sed 's/^/| /' conftest.$ac_ext >&5
34509
34510         wx_cv_wchar_t_is_separate_type=no
34511
34512 fi
34513
34514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34515
34516 fi
34517 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34518 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34519
34520 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34521     cat >>confdefs.h <<\_ACEOF
34522 #define wxWCHAR_T_IS_REAL_TYPE 1
34523 _ACEOF
34524
34525 else
34526     cat >>confdefs.h <<\_ACEOF
34527 #define wxWCHAR_T_IS_REAL_TYPE 0
34528 _ACEOF
34529
34530 fi
34531
34532 ac_ext=c
34533 ac_cpp='$CPP $CPPFLAGS'
34534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34537
34538
34539 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34540 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34541 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34542   echo $ECHO_N "(cached) $ECHO_C" >&6
34543 else
34544
34545         cat >conftest.$ac_ext <<_ACEOF
34546 /* confdefs.h.  */
34547 _ACEOF
34548 cat confdefs.h >>conftest.$ac_ext
34549 cat >>conftest.$ac_ext <<_ACEOF
34550 /* end confdefs.h.  */
34551 #include <pwd.h>
34552 int
34553 main ()
34554 {
34555
34556                 char *p;
34557                 struct passwd *pw;
34558                 p = pw->pw_gecos;
34559
34560   ;
34561   return 0;
34562 }
34563 _ACEOF
34564 rm -f conftest.$ac_objext
34565 if { (ac_try="$ac_compile"
34566 case "(($ac_try" in
34567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34568   *) ac_try_echo=$ac_try;;
34569 esac
34570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34571   (eval "$ac_compile") 2>conftest.er1
34572   ac_status=$?
34573   grep -v '^ *+' conftest.er1 >conftest.err
34574   rm -f conftest.er1
34575   cat conftest.err >&5
34576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577   (exit $ac_status); } && {
34578          test -z "$ac_c_werror_flag" ||
34579          test ! -s conftest.err
34580        } && test -s conftest.$ac_objext; then
34581
34582                 wx_cv_struct_pw_gecos=yes
34583
34584 else
34585   echo "$as_me: failed program was:" >&5
34586 sed 's/^/| /' conftest.$ac_ext >&5
34587
34588
34589                 wx_cv_struct_pw_gecos=no
34590
34591
34592 fi
34593
34594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34595
34596
34597 fi
34598 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34599 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34600
34601 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34602     cat >>confdefs.h <<\_ACEOF
34603 #define HAVE_PW_GECOS 1
34604 _ACEOF
34605
34606 fi
34607
34608
34609 if test "$wxUSE_WCHAR_T" = "yes"; then
34610     cat >>confdefs.h <<\_ACEOF
34611 #define wxUSE_WCHAR_T 1
34612 _ACEOF
34613
34614
34615         WCSLEN_FOUND=0
34616     WCHAR_LINK=
34617
34618 for ac_func in wcslen
34619 do
34620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34634 #define $ac_func innocuous_$ac_func
34635
34636 /* System header to define __stub macros and hopefully few prototypes,
34637     which can conflict with char $ac_func (); below.
34638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34639     <limits.h> exists even on freestanding compilers.  */
34640
34641 #ifdef __STDC__
34642 # include <limits.h>
34643 #else
34644 # include <assert.h>
34645 #endif
34646
34647 #undef $ac_func
34648
34649 /* Override any GCC internal prototype to avoid an error.
34650    Use char because int might match the return type of a GCC
34651    builtin and then its argument prototype would still apply.  */
34652 #ifdef __cplusplus
34653 extern "C"
34654 #endif
34655 char $ac_func ();
34656 /* The GNU C library defines this for functions which it implements
34657     to always fail with ENOSYS.  Some functions are actually named
34658     something starting with __ and the normal name is an alias.  */
34659 #if defined __stub_$ac_func || defined __stub___$ac_func
34660 choke me
34661 #endif
34662
34663 int
34664 main ()
34665 {
34666 return $ac_func ();
34667   ;
34668   return 0;
34669 }
34670 _ACEOF
34671 rm -f conftest.$ac_objext conftest$ac_exeext
34672 if { (ac_try="$ac_link"
34673 case "(($ac_try" in
34674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34675   *) ac_try_echo=$ac_try;;
34676 esac
34677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34678   (eval "$ac_link") 2>conftest.er1
34679   ac_status=$?
34680   grep -v '^ *+' conftest.er1 >conftest.err
34681   rm -f conftest.er1
34682   cat conftest.err >&5
34683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684   (exit $ac_status); } && {
34685          test -z "$ac_c_werror_flag" ||
34686          test ! -s conftest.err
34687        } && test -s conftest$ac_exeext &&
34688        $as_test_x conftest$ac_exeext; then
34689   eval "$as_ac_var=yes"
34690 else
34691   echo "$as_me: failed program was:" >&5
34692 sed 's/^/| /' conftest.$ac_ext >&5
34693
34694         eval "$as_ac_var=no"
34695 fi
34696
34697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34698       conftest$ac_exeext conftest.$ac_ext
34699 fi
34700 ac_res=`eval echo '${'$as_ac_var'}'`
34701                { echo "$as_me:$LINENO: result: $ac_res" >&5
34702 echo "${ECHO_T}$ac_res" >&6; }
34703 if test `eval echo '${'$as_ac_var'}'` = yes; then
34704   cat >>confdefs.h <<_ACEOF
34705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34706 _ACEOF
34707  WCSLEN_FOUND=1
34708 fi
34709 done
34710
34711
34712     if test "$WCSLEN_FOUND" = 0; then
34713         if test "$TOOLKIT" = "MSW"; then
34714             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34715 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34716 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34717   echo $ECHO_N "(cached) $ECHO_C" >&6
34718 else
34719   ac_check_lib_save_LIBS=$LIBS
34720 LIBS="-lmsvcrt  $LIBS"
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
34728 /* Override any GCC internal prototype to avoid an error.
34729    Use char because int might match the return type of a GCC
34730    builtin and then its argument prototype would still apply.  */
34731 #ifdef __cplusplus
34732 extern "C"
34733 #endif
34734 char wcslen ();
34735 int
34736 main ()
34737 {
34738 return wcslen ();
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext conftest$ac_exeext
34744 if { (ac_try="$ac_link"
34745 case "(($ac_try" in
34746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747   *) ac_try_echo=$ac_try;;
34748 esac
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750   (eval "$ac_link") 2>conftest.er1
34751   ac_status=$?
34752   grep -v '^ *+' conftest.er1 >conftest.err
34753   rm -f conftest.er1
34754   cat conftest.err >&5
34755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756   (exit $ac_status); } && {
34757          test -z "$ac_c_werror_flag" ||
34758          test ! -s conftest.err
34759        } && test -s conftest$ac_exeext &&
34760        $as_test_x conftest$ac_exeext; then
34761   ac_cv_lib_msvcrt_wcslen=yes
34762 else
34763   echo "$as_me: failed program was:" >&5
34764 sed 's/^/| /' conftest.$ac_ext >&5
34765
34766         ac_cv_lib_msvcrt_wcslen=no
34767 fi
34768
34769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34770       conftest$ac_exeext conftest.$ac_ext
34771 LIBS=$ac_check_lib_save_LIBS
34772 fi
34773 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34774 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34775 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34776   WCHAR_OK=1
34777 fi
34778
34779         else
34780             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34781 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34782 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34783   echo $ECHO_N "(cached) $ECHO_C" >&6
34784 else
34785   ac_check_lib_save_LIBS=$LIBS
34786 LIBS="-lw  $LIBS"
34787 cat >conftest.$ac_ext <<_ACEOF
34788 /* confdefs.h.  */
34789 _ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h.  */
34793
34794 /* Override any GCC internal prototype to avoid an error.
34795    Use char because int might match the return type of a GCC
34796    builtin and then its argument prototype would still apply.  */
34797 #ifdef __cplusplus
34798 extern "C"
34799 #endif
34800 char wcslen ();
34801 int
34802 main ()
34803 {
34804 return wcslen ();
34805   ;
34806   return 0;
34807 }
34808 _ACEOF
34809 rm -f conftest.$ac_objext conftest$ac_exeext
34810 if { (ac_try="$ac_link"
34811 case "(($ac_try" in
34812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34813   *) ac_try_echo=$ac_try;;
34814 esac
34815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34816   (eval "$ac_link") 2>conftest.er1
34817   ac_status=$?
34818   grep -v '^ *+' conftest.er1 >conftest.err
34819   rm -f conftest.er1
34820   cat conftest.err >&5
34821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822   (exit $ac_status); } && {
34823          test -z "$ac_c_werror_flag" ||
34824          test ! -s conftest.err
34825        } && test -s conftest$ac_exeext &&
34826        $as_test_x conftest$ac_exeext; then
34827   ac_cv_lib_w_wcslen=yes
34828 else
34829   echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34831
34832         ac_cv_lib_w_wcslen=no
34833 fi
34834
34835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34836       conftest$ac_exeext conftest.$ac_ext
34837 LIBS=$ac_check_lib_save_LIBS
34838 fi
34839 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34840 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34841 if test $ac_cv_lib_w_wcslen = yes; then
34842
34843                             WCHAR_LINK=" -lw"
34844                             WCSLEN_FOUND=1
34845
34846 fi
34847
34848         fi
34849     fi
34850
34851     if test "$WCSLEN_FOUND" = 1; then
34852         cat >>confdefs.h <<\_ACEOF
34853 #define HAVE_WCSLEN 1
34854 _ACEOF
34855
34856     fi
34857
34858
34859 for ac_func in wcsdup
34860 do
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34865   echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867   cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h.  */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h.  */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34875 #define $ac_func innocuous_$ac_func
34876
34877 /* System header to define __stub macros and hopefully few prototypes,
34878     which can conflict with char $ac_func (); below.
34879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880     <limits.h> exists even on freestanding compilers.  */
34881
34882 #ifdef __STDC__
34883 # include <limits.h>
34884 #else
34885 # include <assert.h>
34886 #endif
34887
34888 #undef $ac_func
34889
34890 /* Override any GCC internal prototype to avoid an error.
34891    Use char because int might match the return type of a GCC
34892    builtin and then its argument prototype would still apply.  */
34893 #ifdef __cplusplus
34894 extern "C"
34895 #endif
34896 char $ac_func ();
34897 /* The GNU C library defines this for functions which it implements
34898     to always fail with ENOSYS.  Some functions are actually named
34899     something starting with __ and the normal name is an alias.  */
34900 #if defined __stub_$ac_func || defined __stub___$ac_func
34901 choke me
34902 #endif
34903
34904 int
34905 main ()
34906 {
34907 return $ac_func ();
34908   ;
34909   return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext conftest$ac_exeext
34913 if { (ac_try="$ac_link"
34914 case "(($ac_try" in
34915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916   *) ac_try_echo=$ac_try;;
34917 esac
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919   (eval "$ac_link") 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && {
34926          test -z "$ac_c_werror_flag" ||
34927          test ! -s conftest.err
34928        } && test -s conftest$ac_exeext &&
34929        $as_test_x conftest$ac_exeext; then
34930   eval "$as_ac_var=yes"
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         eval "$as_ac_var=no"
34936 fi
34937
34938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34939       conftest$ac_exeext conftest.$ac_ext
34940 fi
34941 ac_res=`eval echo '${'$as_ac_var'}'`
34942                { echo "$as_me:$LINENO: result: $ac_res" >&5
34943 echo "${ECHO_T}$ac_res" >&6; }
34944 if test `eval echo '${'$as_ac_var'}'` = yes; then
34945   cat >>confdefs.h <<_ACEOF
34946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34947 _ACEOF
34948
34949 fi
34950 done
34951
34952
34953                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34954         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34955     fi
34956
34957                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34958 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34959 if test "${ac_cv_type_mbstate_t+set}" = set; then
34960   echo $ECHO_N "(cached) $ECHO_C" >&6
34961 else
34962   cat >conftest.$ac_ext <<_ACEOF
34963 /* confdefs.h.  */
34964 _ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h.  */
34968 #include <wchar.h>
34969
34970 typedef mbstate_t ac__type_new_;
34971 int
34972 main ()
34973 {
34974 if ((ac__type_new_ *) 0)
34975   return 0;
34976 if (sizeof (ac__type_new_))
34977   return 0;
34978   ;
34979   return 0;
34980 }
34981 _ACEOF
34982 rm -f conftest.$ac_objext
34983 if { (ac_try="$ac_compile"
34984 case "(($ac_try" in
34985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34986   *) ac_try_echo=$ac_try;;
34987 esac
34988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34989   (eval "$ac_compile") 2>conftest.er1
34990   ac_status=$?
34991   grep -v '^ *+' conftest.er1 >conftest.err
34992   rm -f conftest.er1
34993   cat conftest.err >&5
34994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995   (exit $ac_status); } && {
34996          test -z "$ac_c_werror_flag" ||
34997          test ! -s conftest.err
34998        } && test -s conftest.$ac_objext; then
34999   ac_cv_type_mbstate_t=yes
35000 else
35001   echo "$as_me: failed program was:" >&5
35002 sed 's/^/| /' conftest.$ac_ext >&5
35003
35004         ac_cv_type_mbstate_t=no
35005 fi
35006
35007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35008 fi
35009 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35010 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35011 if test $ac_cv_type_mbstate_t = yes; then
35012
35013 cat >>confdefs.h <<_ACEOF
35014 #define HAVE_MBSTATE_T 1
35015 _ACEOF
35016
35017
35018 for ac_func in wcsrtombs
35019 do
35020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35024   echo $ECHO_N "(cached) $ECHO_C" >&6
35025 else
35026   cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35034 #define $ac_func innocuous_$ac_func
35035
35036 /* System header to define __stub macros and hopefully few prototypes,
35037     which can conflict with char $ac_func (); below.
35038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35039     <limits.h> exists even on freestanding compilers.  */
35040
35041 #ifdef __STDC__
35042 # include <limits.h>
35043 #else
35044 # include <assert.h>
35045 #endif
35046
35047 #undef $ac_func
35048
35049 /* Override any GCC internal prototype to avoid an error.
35050    Use char because int might match the return type of a GCC
35051    builtin and then its argument prototype would still apply.  */
35052 #ifdef __cplusplus
35053 extern "C"
35054 #endif
35055 char $ac_func ();
35056 /* The GNU C library defines this for functions which it implements
35057     to always fail with ENOSYS.  Some functions are actually named
35058     something starting with __ and the normal name is an alias.  */
35059 #if defined __stub_$ac_func || defined __stub___$ac_func
35060 choke me
35061 #endif
35062
35063 int
35064 main ()
35065 {
35066 return $ac_func ();
35067   ;
35068   return 0;
35069 }
35070 _ACEOF
35071 rm -f conftest.$ac_objext conftest$ac_exeext
35072 if { (ac_try="$ac_link"
35073 case "(($ac_try" in
35074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075   *) ac_try_echo=$ac_try;;
35076 esac
35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078   (eval "$ac_link") 2>conftest.er1
35079   ac_status=$?
35080   grep -v '^ *+' conftest.er1 >conftest.err
35081   rm -f conftest.er1
35082   cat conftest.err >&5
35083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084   (exit $ac_status); } && {
35085          test -z "$ac_c_werror_flag" ||
35086          test ! -s conftest.err
35087        } && test -s conftest$ac_exeext &&
35088        $as_test_x conftest$ac_exeext; then
35089   eval "$as_ac_var=yes"
35090 else
35091   echo "$as_me: failed program was:" >&5
35092 sed 's/^/| /' conftest.$ac_ext >&5
35093
35094         eval "$as_ac_var=no"
35095 fi
35096
35097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35098       conftest$ac_exeext conftest.$ac_ext
35099 fi
35100 ac_res=`eval echo '${'$as_ac_var'}'`
35101                { echo "$as_me:$LINENO: result: $ac_res" >&5
35102 echo "${ECHO_T}$ac_res" >&6; }
35103 if test `eval echo '${'$as_ac_var'}'` = yes; then
35104   cat >>confdefs.h <<_ACEOF
35105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35106 _ACEOF
35107
35108 fi
35109 done
35110
35111 fi
35112
35113 else
35114     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35115 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35116 fi
35117
35118
35119
35120
35121 for ac_func in snprintf vsnprintf vsscanf
35122 do
35123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35127   echo $ECHO_N "(cached) $ECHO_C" >&6
35128 else
35129   cat >conftest.$ac_ext <<_ACEOF
35130 /* confdefs.h.  */
35131 _ACEOF
35132 cat confdefs.h >>conftest.$ac_ext
35133 cat >>conftest.$ac_ext <<_ACEOF
35134 /* end confdefs.h.  */
35135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35137 #define $ac_func innocuous_$ac_func
35138
35139 /* System header to define __stub macros and hopefully few prototypes,
35140     which can conflict with char $ac_func (); below.
35141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35142     <limits.h> exists even on freestanding compilers.  */
35143
35144 #ifdef __STDC__
35145 # include <limits.h>
35146 #else
35147 # include <assert.h>
35148 #endif
35149
35150 #undef $ac_func
35151
35152 /* Override any GCC internal prototype to avoid an error.
35153    Use char because int might match the return type of a GCC
35154    builtin and then its argument prototype would still apply.  */
35155 #ifdef __cplusplus
35156 extern "C"
35157 #endif
35158 char $ac_func ();
35159 /* The GNU C library defines this for functions which it implements
35160     to always fail with ENOSYS.  Some functions are actually named
35161     something starting with __ and the normal name is an alias.  */
35162 #if defined __stub_$ac_func || defined __stub___$ac_func
35163 choke me
35164 #endif
35165
35166 int
35167 main ()
35168 {
35169 return $ac_func ();
35170   ;
35171   return 0;
35172 }
35173 _ACEOF
35174 rm -f conftest.$ac_objext conftest$ac_exeext
35175 if { (ac_try="$ac_link"
35176 case "(($ac_try" in
35177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35178   *) ac_try_echo=$ac_try;;
35179 esac
35180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181   (eval "$ac_link") 2>conftest.er1
35182   ac_status=$?
35183   grep -v '^ *+' conftest.er1 >conftest.err
35184   rm -f conftest.er1
35185   cat conftest.err >&5
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); } && {
35188          test -z "$ac_c_werror_flag" ||
35189          test ! -s conftest.err
35190        } && test -s conftest$ac_exeext &&
35191        $as_test_x conftest$ac_exeext; then
35192   eval "$as_ac_var=yes"
35193 else
35194   echo "$as_me: failed program was:" >&5
35195 sed 's/^/| /' conftest.$ac_ext >&5
35196
35197         eval "$as_ac_var=no"
35198 fi
35199
35200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35201       conftest$ac_exeext conftest.$ac_ext
35202 fi
35203 ac_res=`eval echo '${'$as_ac_var'}'`
35204                { echo "$as_me:$LINENO: result: $ac_res" >&5
35205 echo "${ECHO_T}$ac_res" >&6; }
35206 if test `eval echo '${'$as_ac_var'}'` = yes; then
35207   cat >>confdefs.h <<_ACEOF
35208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35209 _ACEOF
35210
35211 fi
35212 done
35213
35214
35215 ac_ext=cpp
35216 ac_cpp='$CXXCPP $CPPFLAGS'
35217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35220
35221 if test "$ac_cv_func_vsnprintf" = "yes"; then
35222         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35223 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35224 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35225   echo $ECHO_N "(cached) $ECHO_C" >&6
35226 else
35227
35228                                                             cat >conftest.$ac_ext <<_ACEOF
35229 /* confdefs.h.  */
35230 _ACEOF
35231 cat confdefs.h >>conftest.$ac_ext
35232 cat >>conftest.$ac_ext <<_ACEOF
35233 /* end confdefs.h.  */
35234
35235                     #include <stdio.h>
35236                     #include <stdarg.h>
35237                     #ifdef __MSL__
35238                     #if __MSL__ >= 0x6000
35239                     namespace std {}
35240                     using namespace std;
35241                     #endif
35242                     #endif
35243
35244 int
35245 main ()
35246 {
35247
35248                     char *buf;
35249                     va_list ap;
35250                     vsnprintf(buf, 10u, "%s", ap);
35251
35252   ;
35253   return 0;
35254 }
35255 _ACEOF
35256 rm -f conftest.$ac_objext
35257 if { (ac_try="$ac_compile"
35258 case "(($ac_try" in
35259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260   *) ac_try_echo=$ac_try;;
35261 esac
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263   (eval "$ac_compile") 2>conftest.er1
35264   ac_status=$?
35265   grep -v '^ *+' conftest.er1 >conftest.err
35266   rm -f conftest.er1
35267   cat conftest.err >&5
35268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269   (exit $ac_status); } && {
35270          test -z "$ac_cxx_werror_flag" ||
35271          test ! -s conftest.err
35272        } && test -s conftest.$ac_objext; then
35273   wx_cv_func_vsnprintf_decl=yes
35274 else
35275   echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35277
35278         wx_cv_func_vsnprintf_decl=no
35279
35280 fi
35281
35282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35283
35284
35285 fi
35286 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35287 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35288
35289     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35290         cat >>confdefs.h <<\_ACEOF
35291 #define HAVE_VSNPRINTF_DECL 1
35292 _ACEOF
35293
35294
35295                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35296 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35297 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35298   echo $ECHO_N "(cached) $ECHO_C" >&6
35299 else
35300
35301                 cat >conftest.$ac_ext <<_ACEOF
35302 /* confdefs.h.  */
35303 _ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h.  */
35307
35308                         #include <stdio.h>
35309                         #include <stdarg.h>
35310                         #ifdef __MSL__
35311                         #if __MSL__ >= 0x6000
35312                         namespace std {}
35313                         using namespace std;
35314                         #endif
35315                         #endif
35316
35317 int
35318 main ()
35319 {
35320
35321                         char *buf;
35322                         va_list ap;
35323                         const char *fmt = "%s";
35324                         vsnprintf(buf, 10u, fmt, ap);
35325
35326   ;
35327   return 0;
35328 }
35329 _ACEOF
35330 rm -f conftest.$ac_objext
35331 if { (ac_try="$ac_compile"
35332 case "(($ac_try" in
35333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35334   *) ac_try_echo=$ac_try;;
35335 esac
35336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35337   (eval "$ac_compile") 2>conftest.er1
35338   ac_status=$?
35339   grep -v '^ *+' conftest.er1 >conftest.err
35340   rm -f conftest.er1
35341   cat conftest.err >&5
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } && {
35344          test -z "$ac_cxx_werror_flag" ||
35345          test ! -s conftest.err
35346        } && test -s conftest.$ac_objext; then
35347   wx_cv_func_broken_vsnprintf_decl=no
35348 else
35349   echo "$as_me: failed program was:" >&5
35350 sed 's/^/| /' conftest.$ac_ext >&5
35351
35352         wx_cv_func_broken_vsnprintf_decl=yes
35353
35354 fi
35355
35356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35357
35358
35359 fi
35360 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35361 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35362
35363         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35364             cat >>confdefs.h <<\_ACEOF
35365 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35366 _ACEOF
35367
35368         fi
35369     fi
35370 fi
35371
35372 if test "$ac_cv_func_snprintf" = "yes"; then
35373     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35374 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35375 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35376   echo $ECHO_N "(cached) $ECHO_C" >&6
35377 else
35378
35379             cat >conftest.$ac_ext <<_ACEOF
35380 /* confdefs.h.  */
35381 _ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h.  */
35385
35386                     #include <stdio.h>
35387                     #include <stdarg.h>
35388                     #ifdef __MSL__
35389                     #if __MSL__ >= 0x6000
35390                     namespace std {}
35391                     using namespace std;
35392                     #endif
35393                     #endif
35394
35395 int
35396 main ()
35397 {
35398
35399                     char *buf;
35400                     snprintf(buf, 10u, "%s", "wx");
35401
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 rm -f conftest.$ac_objext
35407 if { (ac_try="$ac_compile"
35408 case "(($ac_try" in
35409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410   *) ac_try_echo=$ac_try;;
35411 esac
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413   (eval "$ac_compile") 2>conftest.er1
35414   ac_status=$?
35415   grep -v '^ *+' conftest.er1 >conftest.err
35416   rm -f conftest.er1
35417   cat conftest.err >&5
35418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419   (exit $ac_status); } && {
35420          test -z "$ac_cxx_werror_flag" ||
35421          test ! -s conftest.err
35422        } && test -s conftest.$ac_objext; then
35423   wx_cv_func_snprintf_decl=yes
35424 else
35425   echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35427
35428         wx_cv_func_snprintf_decl=no
35429
35430 fi
35431
35432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35433
35434
35435 fi
35436 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35437 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35438
35439     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35440         cat >>confdefs.h <<\_ACEOF
35441 #define HAVE_SNPRINTF_DECL 1
35442 _ACEOF
35443
35444     fi
35445
35446     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35447
35448                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35449 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35450 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35451   echo $ECHO_N "(cached) $ECHO_C" >&6
35452 else
35453
35454                 if test "$cross_compiling" = yes; then
35455
35456                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35457 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35458 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35459 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35460                         wx_cv_func_snprintf_pos_params=no
35461
35462
35463 else
35464   cat >conftest.$ac_ext <<_ACEOF
35465 /* confdefs.h.  */
35466 _ACEOF
35467 cat confdefs.h >>conftest.$ac_ext
35468 cat >>conftest.$ac_ext <<_ACEOF
35469 /* end confdefs.h.  */
35470
35471                         #include <stdio.h>
35472
35473                         int main (void)
35474                         {
35475                             char buffer[128];
35476                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35477                             if (strcmp ("2 3 1", buffer) == 0)
35478                                 exit (0);
35479                             exit (1);
35480                         }
35481
35482 _ACEOF
35483 rm -f conftest$ac_exeext
35484 if { (ac_try="$ac_link"
35485 case "(($ac_try" in
35486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35487   *) ac_try_echo=$ac_try;;
35488 esac
35489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35490   (eval "$ac_link") 2>&5
35491   ac_status=$?
35492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35494   { (case "(($ac_try" in
35495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496   *) ac_try_echo=$ac_try;;
35497 esac
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499   (eval "$ac_try") 2>&5
35500   ac_status=$?
35501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502   (exit $ac_status); }; }; then
35503   wx_cv_func_snprintf_pos_params=no
35504 else
35505   echo "$as_me: program exited with status $ac_status" >&5
35506 echo "$as_me: failed program was:" >&5
35507 sed 's/^/| /' conftest.$ac_ext >&5
35508
35509 ( exit $ac_status )
35510 wx_cv_func_snprintf_pos_params=yes
35511 fi
35512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35513 fi
35514
35515
35516
35517
35518 fi
35519 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35520 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35521
35522         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35523             cat >>confdefs.h <<\_ACEOF
35524 #define HAVE_UNIX98_PRINTF 1
35525 _ACEOF
35526
35527         fi
35528     fi
35529 fi
35530
35531 if test "$ac_cv_func_vsscanf" = "yes"; then
35532     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35533 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35534 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35535   echo $ECHO_N "(cached) $ECHO_C" >&6
35536 else
35537
35538             cat >conftest.$ac_ext <<_ACEOF
35539 /* confdefs.h.  */
35540 _ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h.  */
35544
35545                     #include <stdio.h>
35546                     #include <stdarg.h>
35547                     #ifdef __MSL__
35548                     #if __MSL__ >= 0x6000
35549                     namespace std {}
35550                     using namespace std;
35551                     #endif
35552                     #endif
35553
35554 int
35555 main ()
35556 {
35557
35558                     char *buf;
35559                     va_list args;
35560                     vsscanf(buf, "%s", args);
35561
35562   ;
35563   return 0;
35564 }
35565 _ACEOF
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_compile") 2>conftest.er1
35574   ac_status=$?
35575   grep -v '^ *+' conftest.er1 >conftest.err
35576   rm -f conftest.er1
35577   cat conftest.err >&5
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); } && {
35580          test -z "$ac_cxx_werror_flag" ||
35581          test ! -s conftest.err
35582        } && test -s conftest.$ac_objext; then
35583   wx_cv_func_vsscanf_decl=yes
35584 else
35585   echo "$as_me: failed program was:" >&5
35586 sed 's/^/| /' conftest.$ac_ext >&5
35587
35588         wx_cv_func_vsscanf_decl=no
35589
35590 fi
35591
35592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35593
35594
35595 fi
35596 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35597 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35598
35599     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35600         cat >>confdefs.h <<\_ACEOF
35601 #define HAVE_VSSCANF_DECL 1
35602 _ACEOF
35603
35604     fi
35605 fi
35606 ac_ext=c
35607 ac_cpp='$CPP $CPPFLAGS'
35608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35611
35612
35613 if test "$wxUSE_UNICODE" = yes; then
35614
35615             wchar_headers="#include <stdio.h>
35616 #include <wchar.h>"
35617     case "${host}" in
35618         *-*-solaris2* )
35619
35620 for ac_header in widec.h
35621 do
35622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35626   echo $ECHO_N "(cached) $ECHO_C" >&6
35627 else
35628   cat >conftest.$ac_ext <<_ACEOF
35629 /* confdefs.h.  */
35630 _ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h.  */
35634 $ac_includes_default
35635
35636 #include <$ac_header>
35637 _ACEOF
35638 rm -f conftest.$ac_objext
35639 if { (ac_try="$ac_compile"
35640 case "(($ac_try" in
35641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35642   *) ac_try_echo=$ac_try;;
35643 esac
35644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35645   (eval "$ac_compile") 2>conftest.er1
35646   ac_status=$?
35647   grep -v '^ *+' conftest.er1 >conftest.err
35648   rm -f conftest.er1
35649   cat conftest.err >&5
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } && {
35652          test -z "$ac_c_werror_flag" ||
35653          test ! -s conftest.err
35654        } && test -s conftest.$ac_objext; then
35655   eval "$as_ac_Header=yes"
35656 else
35657   echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35659
35660         eval "$as_ac_Header=no"
35661 fi
35662
35663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35664 fi
35665 ac_res=`eval echo '${'$as_ac_Header'}'`
35666                { echo "$as_me:$LINENO: result: $ac_res" >&5
35667 echo "${ECHO_T}$ac_res" >&6; }
35668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35669   cat >>confdefs.h <<_ACEOF
35670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35671 _ACEOF
35672
35673 fi
35674
35675 done
35676
35677             if test "$ac_cv_header_widec_h" = "yes"; then
35678                 wchar_headers="$wchar_headers
35679 #include <widec.h>"
35680             fi
35681     esac
35682
35683
35684   for wx_func in putws fputws wprintf vswprintf vswscanf
35685   do
35686     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35687 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35688 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35689   echo $ECHO_N "(cached) $ECHO_C" >&6
35690 else
35691
35692         cat >conftest.$ac_ext <<_ACEOF
35693
35694             /* confdefs.h.  */
35695 _ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h.  */
35699
35700                 $wchar_headers
35701                 $ac_includes_default
35702
35703 int
35704 main ()
35705 {
35706
35707                 #ifndef $wx_func
35708                   &$wx_func;
35709                 #endif
35710
35711
35712   ;
35713   return 0;
35714 }
35715
35716 _ACEOF
35717 rm -f conftest.$ac_objext conftest$ac_exeext
35718 if { (ac_try="$ac_link"
35719 case "(($ac_try" in
35720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35721   *) ac_try_echo=$ac_try;;
35722 esac
35723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35724   (eval "$ac_link") 2>conftest.er1
35725   ac_status=$?
35726   grep -v '^ *+' conftest.er1 >conftest.err
35727   rm -f conftest.er1
35728   cat conftest.err >&5
35729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730   (exit $ac_status); } && {
35731          test -z "$ac_c_werror_flag" ||
35732          test ! -s conftest.err
35733        } && test -s conftest$ac_exeext &&
35734        $as_test_x conftest$ac_exeext; then
35735   eval wx_cv_func_$wx_func=yes
35736 else
35737   echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35739
35740         eval wx_cv_func_$wx_func=no
35741 fi
35742
35743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35744       conftest$ac_exeext conftest.$ac_ext
35745
35746 fi
35747 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35748                { echo "$as_me:$LINENO: result: $ac_res" >&5
35749 echo "${ECHO_T}$ac_res" >&6; }
35750
35751     if eval test \$wx_cv_func_$wx_func = yes
35752     then
35753       cat >>confdefs.h <<_ACEOF
35754 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35755 _ACEOF
35756
35757
35758     else
35759       :
35760
35761     fi
35762   done
35763
35764
35765                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35766 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35767     cat >conftest.$ac_ext <<_ACEOF
35768 /* confdefs.h.  */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h.  */
35773 #include <wchar.h>
35774 int
35775 main ()
35776 {
35777 &_vsnwprintf;
35778   ;
35779   return 0;
35780 }
35781 _ACEOF
35782 rm -f conftest.$ac_objext
35783 if { (ac_try="$ac_compile"
35784 case "(($ac_try" in
35785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35786   *) ac_try_echo=$ac_try;;
35787 esac
35788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35789   (eval "$ac_compile") 2>conftest.er1
35790   ac_status=$?
35791   grep -v '^ *+' conftest.er1 >conftest.err
35792   rm -f conftest.er1
35793   cat conftest.err >&5
35794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795   (exit $ac_status); } && {
35796          test -z "$ac_c_werror_flag" ||
35797          test ! -s conftest.err
35798        } && test -s conftest.$ac_objext; then
35799   { echo "$as_me:$LINENO: result: yes" >&5
35800 echo "${ECHO_T}yes" >&6; }
35801                     cat >>confdefs.h <<\_ACEOF
35802 #define HAVE__VSNWPRINTF 1
35803 _ACEOF
35804
35805 else
35806   echo "$as_me: failed program was:" >&5
35807 sed 's/^/| /' conftest.$ac_ext >&5
35808
35809         { echo "$as_me:$LINENO: result: no" >&5
35810 echo "${ECHO_T}no" >&6; }
35811 fi
35812
35813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35814 fi
35815
35816 if test "$wxUSE_FILE" = "yes"; then
35817
35818   for wx_func in fsync
35819   do
35820     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35821 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35822 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825
35826         cat >conftest.$ac_ext <<_ACEOF
35827
35828             /* confdefs.h.  */
35829 _ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h.  */
35833
35834
35835                 $ac_includes_default
35836
35837 int
35838 main ()
35839 {
35840
35841                 #ifndef $wx_func
35842                   &$wx_func;
35843                 #endif
35844
35845
35846   ;
35847   return 0;
35848 }
35849
35850 _ACEOF
35851 rm -f conftest.$ac_objext conftest$ac_exeext
35852 if { (ac_try="$ac_link"
35853 case "(($ac_try" in
35854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35855   *) ac_try_echo=$ac_try;;
35856 esac
35857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35858   (eval "$ac_link") 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } && {
35865          test -z "$ac_c_werror_flag" ||
35866          test ! -s conftest.err
35867        } && test -s conftest$ac_exeext &&
35868        $as_test_x conftest$ac_exeext; then
35869   eval wx_cv_func_$wx_func=yes
35870 else
35871   echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35873
35874         eval wx_cv_func_$wx_func=no
35875 fi
35876
35877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35878       conftest$ac_exeext conftest.$ac_ext
35879
35880 fi
35881 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35882                { echo "$as_me:$LINENO: result: $ac_res" >&5
35883 echo "${ECHO_T}$ac_res" >&6; }
35884
35885     if eval test \$wx_cv_func_$wx_func = yes
35886     then
35887       cat >>confdefs.h <<_ACEOF
35888 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35889 _ACEOF
35890
35891
35892     else
35893       :
35894
35895     fi
35896   done
35897
35898 fi
35899
35900 ac_ext=cpp
35901 ac_cpp='$CXXCPP $CPPFLAGS'
35902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35905
35906
35907   for wx_func in round
35908   do
35909     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35910 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35911 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35912   echo $ECHO_N "(cached) $ECHO_C" >&6
35913 else
35914
35915         cat >conftest.$ac_ext <<_ACEOF
35916
35917             /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922
35923                 #include <math.h>
35924                 $ac_includes_default
35925
35926 int
35927 main ()
35928 {
35929
35930                 #ifndef $wx_func
35931                   &$wx_func;
35932                 #endif
35933
35934
35935   ;
35936   return 0;
35937 }
35938
35939 _ACEOF
35940 rm -f conftest.$ac_objext conftest$ac_exeext
35941 if { (ac_try="$ac_link"
35942 case "(($ac_try" in
35943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35944   *) ac_try_echo=$ac_try;;
35945 esac
35946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35947   (eval "$ac_link") 2>conftest.er1
35948   ac_status=$?
35949   grep -v '^ *+' conftest.er1 >conftest.err
35950   rm -f conftest.er1
35951   cat conftest.err >&5
35952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953   (exit $ac_status); } && {
35954          test -z "$ac_cxx_werror_flag" ||
35955          test ! -s conftest.err
35956        } && test -s conftest$ac_exeext &&
35957        $as_test_x conftest$ac_exeext; then
35958   eval wx_cv_func_$wx_func=yes
35959 else
35960   echo "$as_me: failed program was:" >&5
35961 sed 's/^/| /' conftest.$ac_ext >&5
35962
35963         eval wx_cv_func_$wx_func=no
35964 fi
35965
35966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35967       conftest$ac_exeext conftest.$ac_ext
35968
35969 fi
35970 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35971                { echo "$as_me:$LINENO: result: $ac_res" >&5
35972 echo "${ECHO_T}$ac_res" >&6; }
35973
35974     if eval test \$wx_cv_func_$wx_func = yes
35975     then
35976       cat >>confdefs.h <<_ACEOF
35977 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35978 _ACEOF
35979
35980
35981     else
35982       :
35983
35984     fi
35985   done
35986
35987 ac_ext=c
35988 ac_cpp='$CPP $CPPFLAGS'
35989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35992
35993
35994 if test "$TOOLKIT" != "MSW"; then
35995
35996 if test "$wxUSE_LIBICONV" != "no" ; then
35997
35998
35999
36000 # Check whether --with-libiconv-prefix was given.
36001 if test "${with_libiconv_prefix+set}" = set; then
36002   withval=$with_libiconv_prefix;
36003     for dir in `echo "$withval" | tr : ' '`; do
36004       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36005       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36006     done
36007
36008 fi
36009
36010
36011   { echo "$as_me:$LINENO: checking for iconv" >&5
36012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36013 if test "${am_cv_func_iconv+set}" = set; then
36014   echo $ECHO_N "(cached) $ECHO_C" >&6
36015 else
36016
36017     am_cv_func_iconv="no, consider installing GNU libiconv"
36018     am_cv_lib_iconv=no
36019     cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 #include <stdlib.h>
36026 #include <iconv.h>
36027 int
36028 main ()
36029 {
36030 iconv_t cd = iconv_open("","");
36031        iconv(cd,NULL,NULL,NULL,NULL);
36032        iconv_close(cd);
36033   ;
36034   return 0;
36035 }
36036 _ACEOF
36037 rm -f conftest.$ac_objext conftest$ac_exeext
36038 if { (ac_try="$ac_link"
36039 case "(($ac_try" in
36040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041   *) ac_try_echo=$ac_try;;
36042 esac
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044   (eval "$ac_link") 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } && {
36051          test -z "$ac_c_werror_flag" ||
36052          test ! -s conftest.err
36053        } && test -s conftest$ac_exeext &&
36054        $as_test_x conftest$ac_exeext; then
36055   am_cv_func_iconv=yes
36056 else
36057   echo "$as_me: failed program was:" >&5
36058 sed 's/^/| /' conftest.$ac_ext >&5
36059
36060
36061 fi
36062
36063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36064       conftest$ac_exeext conftest.$ac_ext
36065     if test "$am_cv_func_iconv" != yes; then
36066       am_save_LIBS="$LIBS"
36067       LIBS="$LIBS -liconv"
36068       cat >conftest.$ac_ext <<_ACEOF
36069 /* confdefs.h.  */
36070 _ACEOF
36071 cat confdefs.h >>conftest.$ac_ext
36072 cat >>conftest.$ac_ext <<_ACEOF
36073 /* end confdefs.h.  */
36074 #include <stdlib.h>
36075 #include <iconv.h>
36076 int
36077 main ()
36078 {
36079 iconv_t cd = iconv_open("","");
36080          iconv(cd,NULL,NULL,NULL,NULL);
36081          iconv_close(cd);
36082   ;
36083   return 0;
36084 }
36085 _ACEOF
36086 rm -f conftest.$ac_objext conftest$ac_exeext
36087 if { (ac_try="$ac_link"
36088 case "(($ac_try" in
36089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36090   *) ac_try_echo=$ac_try;;
36091 esac
36092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36093   (eval "$ac_link") 2>conftest.er1
36094   ac_status=$?
36095   grep -v '^ *+' conftest.er1 >conftest.err
36096   rm -f conftest.er1
36097   cat conftest.err >&5
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); } && {
36100          test -z "$ac_c_werror_flag" ||
36101          test ! -s conftest.err
36102        } && test -s conftest$ac_exeext &&
36103        $as_test_x conftest$ac_exeext; then
36104   am_cv_lib_iconv=yes
36105         am_cv_func_iconv=yes
36106 else
36107   echo "$as_me: failed program was:" >&5
36108 sed 's/^/| /' conftest.$ac_ext >&5
36109
36110
36111 fi
36112
36113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36114       conftest$ac_exeext conftest.$ac_ext
36115       LIBS="$am_save_LIBS"
36116     fi
36117
36118 fi
36119 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36120 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36121   if test "$am_cv_func_iconv" = yes; then
36122
36123 cat >>confdefs.h <<\_ACEOF
36124 #define HAVE_ICONV 1
36125 _ACEOF
36126
36127     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36128 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36129 if test "${wx_cv_func_iconv_const+set}" = set; then
36130   echo $ECHO_N "(cached) $ECHO_C" >&6
36131 else
36132   cat >conftest.$ac_ext <<_ACEOF
36133 /* confdefs.h.  */
36134 _ACEOF
36135 cat confdefs.h >>conftest.$ac_ext
36136 cat >>conftest.$ac_ext <<_ACEOF
36137 /* end confdefs.h.  */
36138
36139 #include <stdlib.h>
36140 #include <iconv.h>
36141 extern
36142 #ifdef __cplusplus
36143 "C"
36144 #endif
36145 #if defined(__STDC__) || defined(__cplusplus)
36146 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36147 #else
36148 size_t iconv();
36149 #endif
36150
36151 int
36152 main ()
36153 {
36154
36155   ;
36156   return 0;
36157 }
36158 _ACEOF
36159 rm -f conftest.$ac_objext
36160 if { (ac_try="$ac_compile"
36161 case "(($ac_try" in
36162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163   *) ac_try_echo=$ac_try;;
36164 esac
36165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36166   (eval "$ac_compile") 2>conftest.er1
36167   ac_status=$?
36168   grep -v '^ *+' conftest.er1 >conftest.err
36169   rm -f conftest.er1
36170   cat conftest.err >&5
36171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172   (exit $ac_status); } && {
36173          test -z "$ac_c_werror_flag" ||
36174          test ! -s conftest.err
36175        } && test -s conftest.$ac_objext; then
36176   wx_cv_func_iconv_const="no"
36177 else
36178   echo "$as_me: failed program was:" >&5
36179 sed 's/^/| /' conftest.$ac_ext >&5
36180
36181         wx_cv_func_iconv_const="yes"
36182
36183 fi
36184
36185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36186
36187 fi
36188 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36189 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36190
36191     iconv_const=
36192     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36193         iconv_const="const"
36194     fi
36195
36196
36197 cat >>confdefs.h <<_ACEOF
36198 #define ICONV_CONST $iconv_const
36199 _ACEOF
36200
36201   fi
36202   LIBICONV=
36203   if test "$am_cv_lib_iconv" = yes; then
36204     LIBICONV="-liconv"
36205   fi
36206
36207
36208     LIBS="$LIBICONV $LIBS"
36209 fi
36210
36211 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36212
36213 for ac_func in sigaction
36214 do
36215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36219   echo $ECHO_N "(cached) $ECHO_C" >&6
36220 else
36221   cat >conftest.$ac_ext <<_ACEOF
36222 /* confdefs.h.  */
36223 _ACEOF
36224 cat confdefs.h >>conftest.$ac_ext
36225 cat >>conftest.$ac_ext <<_ACEOF
36226 /* end confdefs.h.  */
36227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36229 #define $ac_func innocuous_$ac_func
36230
36231 /* System header to define __stub macros and hopefully few prototypes,
36232     which can conflict with char $ac_func (); below.
36233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36234     <limits.h> exists even on freestanding compilers.  */
36235
36236 #ifdef __STDC__
36237 # include <limits.h>
36238 #else
36239 # include <assert.h>
36240 #endif
36241
36242 #undef $ac_func
36243
36244 /* Override any GCC internal prototype to avoid an error.
36245    Use char because int might match the return type of a GCC
36246    builtin and then its argument prototype would still apply.  */
36247 #ifdef __cplusplus
36248 extern "C"
36249 #endif
36250 char $ac_func ();
36251 /* The GNU C library defines this for functions which it implements
36252     to always fail with ENOSYS.  Some functions are actually named
36253     something starting with __ and the normal name is an alias.  */
36254 #if defined __stub_$ac_func || defined __stub___$ac_func
36255 choke me
36256 #endif
36257
36258 int
36259 main ()
36260 {
36261 return $ac_func ();
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest.$ac_objext conftest$ac_exeext
36267 if { (ac_try="$ac_link"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_link") 2>conftest.er1
36274   ac_status=$?
36275   grep -v '^ *+' conftest.er1 >conftest.err
36276   rm -f conftest.er1
36277   cat conftest.err >&5
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); } && {
36280          test -z "$ac_c_werror_flag" ||
36281          test ! -s conftest.err
36282        } && test -s conftest$ac_exeext &&
36283        $as_test_x conftest$ac_exeext; then
36284   eval "$as_ac_var=yes"
36285 else
36286   echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36288
36289         eval "$as_ac_var=no"
36290 fi
36291
36292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36293       conftest$ac_exeext conftest.$ac_ext
36294 fi
36295 ac_res=`eval echo '${'$as_ac_var'}'`
36296                { echo "$as_me:$LINENO: result: $ac_res" >&5
36297 echo "${ECHO_T}$ac_res" >&6; }
36298 if test `eval echo '${'$as_ac_var'}'` = yes; then
36299   cat >>confdefs.h <<_ACEOF
36300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36301 _ACEOF
36302
36303 fi
36304 done
36305
36306
36307     if test "$ac_cv_func_sigaction" = "no"; then
36308         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36309 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36310         wxUSE_ON_FATAL_EXCEPTION=no
36311     fi
36312
36313     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36314       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36315 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36316 if test "${wx_cv_type_sa_handler+set}" = set; then
36317   echo $ECHO_N "(cached) $ECHO_C" >&6
36318 else
36319
36320                 ac_ext=cpp
36321 ac_cpp='$CXXCPP $CPPFLAGS'
36322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36325
36326         cat >conftest.$ac_ext <<_ACEOF
36327 /* confdefs.h.  */
36328 _ACEOF
36329 cat confdefs.h >>conftest.$ac_ext
36330 cat >>conftest.$ac_ext <<_ACEOF
36331 /* end confdefs.h.  */
36332 #include <signal.h>
36333 int
36334 main ()
36335 {
36336
36337                         extern void testSigHandler(int);
36338
36339                         struct sigaction sa;
36340                         sa.sa_handler = testSigHandler;
36341
36342   ;
36343   return 0;
36344 }
36345 _ACEOF
36346 rm -f conftest.$ac_objext
36347 if { (ac_try="$ac_compile"
36348 case "(($ac_try" in
36349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36350   *) ac_try_echo=$ac_try;;
36351 esac
36352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36353   (eval "$ac_compile") 2>conftest.er1
36354   ac_status=$?
36355   grep -v '^ *+' conftest.er1 >conftest.err
36356   rm -f conftest.er1
36357   cat conftest.err >&5
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); } && {
36360          test -z "$ac_cxx_werror_flag" ||
36361          test ! -s conftest.err
36362        } && test -s conftest.$ac_objext; then
36363
36364                         wx_cv_type_sa_handler=int
36365
36366 else
36367   echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36369
36370
36371                         wx_cv_type_sa_handler=void
36372
36373 fi
36374
36375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36376         ac_ext=c
36377 ac_cpp='$CPP $CPPFLAGS'
36378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36381
36382
36383 fi
36384 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36385 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36386
36387       cat >>confdefs.h <<_ACEOF
36388 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36389 _ACEOF
36390
36391     fi
36392 fi
36393
36394 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36395     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36396 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36397 if test "${wx_cv_func_backtrace+set}" = set; then
36398   echo $ECHO_N "(cached) $ECHO_C" >&6
36399 else
36400
36401             ac_ext=cpp
36402 ac_cpp='$CXXCPP $CPPFLAGS'
36403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36406
36407             cat >conftest.$ac_ext <<_ACEOF
36408 /* confdefs.h.  */
36409 _ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h.  */
36413 #include <execinfo.h>
36414 int
36415 main ()
36416 {
36417
36418                     void *trace[1];
36419                     char **messages;
36420
36421                     backtrace(trace, 1);
36422                     messages = backtrace_symbols(trace, 1);
36423
36424   ;
36425   return 0;
36426 }
36427 _ACEOF
36428 rm -f conftest.$ac_objext
36429 if { (ac_try="$ac_compile"
36430 case "(($ac_try" in
36431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36432   *) ac_try_echo=$ac_try;;
36433 esac
36434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36435   (eval "$ac_compile") 2>conftest.er1
36436   ac_status=$?
36437   grep -v '^ *+' conftest.er1 >conftest.err
36438   rm -f conftest.er1
36439   cat conftest.err >&5
36440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441   (exit $ac_status); } && {
36442          test -z "$ac_cxx_werror_flag" ||
36443          test ! -s conftest.err
36444        } && test -s conftest.$ac_objext; then
36445   wx_cv_func_backtrace=yes
36446 else
36447   echo "$as_me: failed program was:" >&5
36448 sed 's/^/| /' conftest.$ac_ext >&5
36449
36450         wx_cv_func_backtrace=no
36451
36452 fi
36453
36454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36455             ac_ext=c
36456 ac_cpp='$CPP $CPPFLAGS'
36457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36460
36461
36462
36463 fi
36464 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36465 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36466
36467
36468     if test "$wx_cv_func_backtrace" = "no"; then
36469         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36470 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36471         wxUSE_STACKWALKER=no
36472     else
36473         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36474 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36475 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36476   echo $ECHO_N "(cached) $ECHO_C" >&6
36477 else
36478
36479                 ac_ext=cpp
36480 ac_cpp='$CXXCPP $CPPFLAGS'
36481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36484
36485                 cat >conftest.$ac_ext <<_ACEOF
36486 /* confdefs.h.  */
36487 _ACEOF
36488 cat confdefs.h >>conftest.$ac_ext
36489 cat >>conftest.$ac_ext <<_ACEOF
36490 /* end confdefs.h.  */
36491 #include <cxxabi.h>
36492 int
36493 main ()
36494 {
36495
36496                         int rc;
36497                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36498
36499   ;
36500   return 0;
36501 }
36502 _ACEOF
36503 rm -f conftest.$ac_objext conftest$ac_exeext
36504 if { (ac_try="$ac_link"
36505 case "(($ac_try" in
36506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36507   *) ac_try_echo=$ac_try;;
36508 esac
36509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36510   (eval "$ac_link") 2>conftest.er1
36511   ac_status=$?
36512   grep -v '^ *+' conftest.er1 >conftest.err
36513   rm -f conftest.er1
36514   cat conftest.err >&5
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); } && {
36517          test -z "$ac_cxx_werror_flag" ||
36518          test ! -s conftest.err
36519        } && test -s conftest$ac_exeext &&
36520        $as_test_x conftest$ac_exeext; then
36521   wx_cv_func_cxa_demangle=yes
36522 else
36523   echo "$as_me: failed program was:" >&5
36524 sed 's/^/| /' conftest.$ac_ext >&5
36525
36526         wx_cv_func_cxa_demangle=no
36527
36528 fi
36529
36530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36531       conftest$ac_exeext conftest.$ac_ext
36532                 ac_ext=c
36533 ac_cpp='$CPP $CPPFLAGS'
36534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36537
36538
36539
36540 fi
36541 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36542 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36543
36544         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36545             cat >>confdefs.h <<\_ACEOF
36546 #define HAVE_CXA_DEMANGLE 1
36547 _ACEOF
36548
36549         fi
36550     fi
36551 fi
36552
36553 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36554     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36555 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36556     wxUSE_STACKWALKER=no
36557 fi
36558
36559
36560
36561
36562 for ac_func in mkstemp mktemp
36563 do
36564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36568   echo $ECHO_N "(cached) $ECHO_C" >&6
36569 else
36570   cat >conftest.$ac_ext <<_ACEOF
36571 /* confdefs.h.  */
36572 _ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h.  */
36576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36578 #define $ac_func innocuous_$ac_func
36579
36580 /* System header to define __stub macros and hopefully few prototypes,
36581     which can conflict with char $ac_func (); below.
36582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36583     <limits.h> exists even on freestanding compilers.  */
36584
36585 #ifdef __STDC__
36586 # include <limits.h>
36587 #else
36588 # include <assert.h>
36589 #endif
36590
36591 #undef $ac_func
36592
36593 /* Override any GCC internal prototype to avoid an error.
36594    Use char because int might match the return type of a GCC
36595    builtin and then its argument prototype would still apply.  */
36596 #ifdef __cplusplus
36597 extern "C"
36598 #endif
36599 char $ac_func ();
36600 /* The GNU C library defines this for functions which it implements
36601     to always fail with ENOSYS.  Some functions are actually named
36602     something starting with __ and the normal name is an alias.  */
36603 #if defined __stub_$ac_func || defined __stub___$ac_func
36604 choke me
36605 #endif
36606
36607 int
36608 main ()
36609 {
36610 return $ac_func ();
36611   ;
36612   return 0;
36613 }
36614 _ACEOF
36615 rm -f conftest.$ac_objext conftest$ac_exeext
36616 if { (ac_try="$ac_link"
36617 case "(($ac_try" in
36618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36619   *) ac_try_echo=$ac_try;;
36620 esac
36621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36622   (eval "$ac_link") 2>conftest.er1
36623   ac_status=$?
36624   grep -v '^ *+' conftest.er1 >conftest.err
36625   rm -f conftest.er1
36626   cat conftest.err >&5
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); } && {
36629          test -z "$ac_c_werror_flag" ||
36630          test ! -s conftest.err
36631        } && test -s conftest$ac_exeext &&
36632        $as_test_x conftest$ac_exeext; then
36633   eval "$as_ac_var=yes"
36634 else
36635   echo "$as_me: failed program was:" >&5
36636 sed 's/^/| /' conftest.$ac_ext >&5
36637
36638         eval "$as_ac_var=no"
36639 fi
36640
36641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36642       conftest$ac_exeext conftest.$ac_ext
36643 fi
36644 ac_res=`eval echo '${'$as_ac_var'}'`
36645                { echo "$as_me:$LINENO: result: $ac_res" >&5
36646 echo "${ECHO_T}$ac_res" >&6; }
36647 if test `eval echo '${'$as_ac_var'}'` = yes; then
36648   cat >>confdefs.h <<_ACEOF
36649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36650 _ACEOF
36651  break
36652 fi
36653 done
36654
36655
36656 { echo "$as_me:$LINENO: checking for statfs" >&5
36657 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36658 if test "${wx_cv_func_statfs+set}" = set; then
36659   echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661   cat >conftest.$ac_ext <<_ACEOF
36662 /* confdefs.h.  */
36663 _ACEOF
36664 cat confdefs.h >>conftest.$ac_ext
36665 cat >>conftest.$ac_ext <<_ACEOF
36666 /* end confdefs.h.  */
36667
36668              #if defined(__BSD__)
36669              #include <sys/param.h>
36670              #include <sys/mount.h>
36671              #else
36672              #include <sys/vfs.h>
36673              #endif
36674
36675 int
36676 main ()
36677 {
36678
36679              long l;
36680              struct statfs fs;
36681              statfs("/", &fs);
36682              l = fs.f_bsize;
36683              l += fs.f_blocks;
36684              l += fs.f_bavail;
36685
36686   ;
36687   return 0;
36688 }
36689 _ACEOF
36690 rm -f conftest.$ac_objext
36691 if { (ac_try="$ac_compile"
36692 case "(($ac_try" in
36693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36694   *) ac_try_echo=$ac_try;;
36695 esac
36696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36697   (eval "$ac_compile") 2>conftest.er1
36698   ac_status=$?
36699   grep -v '^ *+' conftest.er1 >conftest.err
36700   rm -f conftest.er1
36701   cat conftest.err >&5
36702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703   (exit $ac_status); } && {
36704          test -z "$ac_c_werror_flag" ||
36705          test ! -s conftest.err
36706        } && test -s conftest.$ac_objext; then
36707   wx_cv_func_statfs=yes
36708 else
36709   echo "$as_me: failed program was:" >&5
36710 sed 's/^/| /' conftest.$ac_ext >&5
36711
36712         wx_cv_func_statfs=no
36713
36714 fi
36715
36716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36717
36718 fi
36719 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36720 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36721
36722 if test "$wx_cv_func_statfs" = "yes"; then
36723         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36724 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36725 if test "${wx_cv_func_statfs_decl+set}" = set; then
36726   echo $ECHO_N "(cached) $ECHO_C" >&6
36727 else
36728   ac_ext=cpp
36729 ac_cpp='$CXXCPP $CPPFLAGS'
36730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36733
36734         cat >conftest.$ac_ext <<_ACEOF
36735 /* confdefs.h.  */
36736 _ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h.  */
36740
36741                  #if defined(__BSD__)
36742                  #include <sys/param.h>
36743                  #include <sys/mount.h>
36744                  #else
36745                  #include <sys/vfs.h>
36746                  #endif
36747
36748 int
36749 main ()
36750 {
36751
36752                 struct statfs fs;
36753                 statfs("", &fs);
36754
36755   ;
36756   return 0;
36757 }
36758 _ACEOF
36759 rm -f conftest.$ac_objext
36760 if { (ac_try="$ac_compile"
36761 case "(($ac_try" in
36762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763   *) ac_try_echo=$ac_try;;
36764 esac
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766   (eval "$ac_compile") 2>conftest.er1
36767   ac_status=$?
36768   grep -v '^ *+' conftest.er1 >conftest.err
36769   rm -f conftest.er1
36770   cat conftest.err >&5
36771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772   (exit $ac_status); } && {
36773          test -z "$ac_cxx_werror_flag" ||
36774          test ! -s conftest.err
36775        } && test -s conftest.$ac_objext; then
36776   wx_cv_func_statfs_decl=yes
36777 else
36778   echo "$as_me: failed program was:" >&5
36779 sed 's/^/| /' conftest.$ac_ext >&5
36780
36781         wx_cv_func_statfs_decl=no
36782
36783 fi
36784
36785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36786         ac_ext=c
36787 ac_cpp='$CPP $CPPFLAGS'
36788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36791
36792
36793 fi
36794 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36795 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36796
36797     if test "$wx_cv_func_statfs_decl" = "yes"; then
36798         cat >>confdefs.h <<\_ACEOF
36799 #define HAVE_STATFS_DECL 1
36800 _ACEOF
36801
36802     fi
36803
36804     wx_cv_type_statvfs_t="struct statfs"
36805     cat >>confdefs.h <<\_ACEOF
36806 #define HAVE_STATFS 1
36807 _ACEOF
36808
36809 else
36810     { echo "$as_me:$LINENO: checking for statvfs" >&5
36811 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36812 if test "${wx_cv_func_statvfs+set}" = set; then
36813   echo $ECHO_N "(cached) $ECHO_C" >&6
36814 else
36815   cat >conftest.$ac_ext <<_ACEOF
36816 /* confdefs.h.  */
36817 _ACEOF
36818 cat confdefs.h >>conftest.$ac_ext
36819 cat >>conftest.$ac_ext <<_ACEOF
36820 /* end confdefs.h.  */
36821
36822                 #include <stddef.h>
36823                 #include <sys/statvfs.h>
36824
36825 int
36826 main ()
36827 {
36828
36829                 statvfs("/", NULL);
36830
36831   ;
36832   return 0;
36833 }
36834 _ACEOF
36835 rm -f conftest.$ac_objext
36836 if { (ac_try="$ac_compile"
36837 case "(($ac_try" in
36838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36839   *) ac_try_echo=$ac_try;;
36840 esac
36841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36842   (eval "$ac_compile") 2>conftest.er1
36843   ac_status=$?
36844   grep -v '^ *+' conftest.er1 >conftest.err
36845   rm -f conftest.er1
36846   cat conftest.err >&5
36847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848   (exit $ac_status); } && {
36849          test -z "$ac_c_werror_flag" ||
36850          test ! -s conftest.err
36851        } && test -s conftest.$ac_objext; then
36852   wx_cv_func_statvfs=yes
36853 else
36854   echo "$as_me: failed program was:" >&5
36855 sed 's/^/| /' conftest.$ac_ext >&5
36856
36857         wx_cv_func_statvfs=no
36858
36859 fi
36860
36861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36862
36863 fi
36864 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36865 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36866
36867     if test "$wx_cv_func_statvfs" = "yes"; then
36868                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36869 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36870 if test "${wx_cv_type_statvfs_t+set}" = set; then
36871   echo $ECHO_N "(cached) $ECHO_C" >&6
36872 else
36873   ac_ext=cpp
36874 ac_cpp='$CXXCPP $CPPFLAGS'
36875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36878
36879             cat >conftest.$ac_ext <<_ACEOF
36880 /* confdefs.h.  */
36881 _ACEOF
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h.  */
36885
36886                     #include <sys/statvfs.h>
36887
36888 int
36889 main ()
36890 {
36891
36892                     long l;
36893                     statvfs_t fs;
36894                     statvfs("/", &fs);
36895                     l = fs.f_bsize;
36896                     l += fs.f_blocks;
36897                     l += fs.f_bavail;
36898
36899   ;
36900   return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (ac_try="$ac_compile"
36905 case "(($ac_try" in
36906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907   *) ac_try_echo=$ac_try;;
36908 esac
36909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36910   (eval "$ac_compile") 2>conftest.er1
36911   ac_status=$?
36912   grep -v '^ *+' conftest.er1 >conftest.err
36913   rm -f conftest.er1
36914   cat conftest.err >&5
36915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916   (exit $ac_status); } && {
36917          test -z "$ac_cxx_werror_flag" ||
36918          test ! -s conftest.err
36919        } && test -s conftest.$ac_objext; then
36920   wx_cv_type_statvfs_t=statvfs_t
36921 else
36922   echo "$as_me: failed program was:" >&5
36923 sed 's/^/| /' conftest.$ac_ext >&5
36924
36925
36926                     cat >conftest.$ac_ext <<_ACEOF
36927 /* confdefs.h.  */
36928 _ACEOF
36929 cat confdefs.h >>conftest.$ac_ext
36930 cat >>conftest.$ac_ext <<_ACEOF
36931 /* end confdefs.h.  */
36932
36933                             #include <sys/statvfs.h>
36934
36935 int
36936 main ()
36937 {
36938
36939                             long l;
36940                             struct statvfs fs;
36941                             statvfs("/", &fs);
36942                             l = fs.f_bsize;
36943                             l += fs.f_blocks;
36944                             l += fs.f_bavail;
36945
36946   ;
36947   return 0;
36948 }
36949 _ACEOF
36950 rm -f conftest.$ac_objext
36951 if { (ac_try="$ac_compile"
36952 case "(($ac_try" in
36953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36954   *) ac_try_echo=$ac_try;;
36955 esac
36956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36957   (eval "$ac_compile") 2>conftest.er1
36958   ac_status=$?
36959   grep -v '^ *+' conftest.er1 >conftest.err
36960   rm -f conftest.er1
36961   cat conftest.err >&5
36962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963   (exit $ac_status); } && {
36964          test -z "$ac_cxx_werror_flag" ||
36965          test ! -s conftest.err
36966        } && test -s conftest.$ac_objext; then
36967   wx_cv_type_statvfs_t="struct statvfs"
36968 else
36969   echo "$as_me: failed program was:" >&5
36970 sed 's/^/| /' conftest.$ac_ext >&5
36971
36972         wx_cv_type_statvfs_t="unknown"
36973
36974 fi
36975
36976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36977
36978
36979 fi
36980
36981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36982             ac_ext=c
36983 ac_cpp='$CPP $CPPFLAGS'
36984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36987
36988
36989 fi
36990 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36991 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36992
36993         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36994             cat >>confdefs.h <<\_ACEOF
36995 #define HAVE_STATVFS 1
36996 _ACEOF
36997
36998         fi
36999     else
37000                 wx_cv_type_statvfs_t="unknown"
37001     fi
37002 fi
37003
37004 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37005     cat >>confdefs.h <<_ACEOF
37006 #define WX_STATFS_T $wx_cv_type_statvfs_t
37007 _ACEOF
37008
37009 else
37010     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37011 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37012 fi
37013
37014 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37015
37016
37017 for ac_func in fcntl flock
37018 do
37019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37023   echo $ECHO_N "(cached) $ECHO_C" >&6
37024 else
37025   cat >conftest.$ac_ext <<_ACEOF
37026 /* confdefs.h.  */
37027 _ACEOF
37028 cat confdefs.h >>conftest.$ac_ext
37029 cat >>conftest.$ac_ext <<_ACEOF
37030 /* end confdefs.h.  */
37031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37033 #define $ac_func innocuous_$ac_func
37034
37035 /* System header to define __stub macros and hopefully few prototypes,
37036     which can conflict with char $ac_func (); below.
37037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37038     <limits.h> exists even on freestanding compilers.  */
37039
37040 #ifdef __STDC__
37041 # include <limits.h>
37042 #else
37043 # include <assert.h>
37044 #endif
37045
37046 #undef $ac_func
37047
37048 /* Override any GCC internal prototype to avoid an error.
37049    Use char because int might match the return type of a GCC
37050    builtin and then its argument prototype would still apply.  */
37051 #ifdef __cplusplus
37052 extern "C"
37053 #endif
37054 char $ac_func ();
37055 /* The GNU C library defines this for functions which it implements
37056     to always fail with ENOSYS.  Some functions are actually named
37057     something starting with __ and the normal name is an alias.  */
37058 #if defined __stub_$ac_func || defined __stub___$ac_func
37059 choke me
37060 #endif
37061
37062 int
37063 main ()
37064 {
37065 return $ac_func ();
37066   ;
37067   return 0;
37068 }
37069 _ACEOF
37070 rm -f conftest.$ac_objext conftest$ac_exeext
37071 if { (ac_try="$ac_link"
37072 case "(($ac_try" in
37073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37074   *) ac_try_echo=$ac_try;;
37075 esac
37076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37077   (eval "$ac_link") 2>conftest.er1
37078   ac_status=$?
37079   grep -v '^ *+' conftest.er1 >conftest.err
37080   rm -f conftest.er1
37081   cat conftest.err >&5
37082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083   (exit $ac_status); } && {
37084          test -z "$ac_c_werror_flag" ||
37085          test ! -s conftest.err
37086        } && test -s conftest$ac_exeext &&
37087        $as_test_x conftest$ac_exeext; then
37088   eval "$as_ac_var=yes"
37089 else
37090   echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37092
37093         eval "$as_ac_var=no"
37094 fi
37095
37096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37097       conftest$ac_exeext conftest.$ac_ext
37098 fi
37099 ac_res=`eval echo '${'$as_ac_var'}'`
37100                { echo "$as_me:$LINENO: result: $ac_res" >&5
37101 echo "${ECHO_T}$ac_res" >&6; }
37102 if test `eval echo '${'$as_ac_var'}'` = yes; then
37103   cat >>confdefs.h <<_ACEOF
37104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37105 _ACEOF
37106  break
37107 fi
37108 done
37109
37110
37111     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37112         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37113 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37114         wxUSE_SNGLINST_CHECKER=no
37115     fi
37116 fi
37117
37118
37119
37120 for ac_func in setenv putenv
37121 do
37122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37126   echo $ECHO_N "(cached) $ECHO_C" >&6
37127 else
37128   cat >conftest.$ac_ext <<_ACEOF
37129 /* confdefs.h.  */
37130 _ACEOF
37131 cat confdefs.h >>conftest.$ac_ext
37132 cat >>conftest.$ac_ext <<_ACEOF
37133 /* end confdefs.h.  */
37134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37136 #define $ac_func innocuous_$ac_func
37137
37138 /* System header to define __stub macros and hopefully few prototypes,
37139     which can conflict with char $ac_func (); below.
37140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37141     <limits.h> exists even on freestanding compilers.  */
37142
37143 #ifdef __STDC__
37144 # include <limits.h>
37145 #else
37146 # include <assert.h>
37147 #endif
37148
37149 #undef $ac_func
37150
37151 /* Override any GCC internal prototype to avoid an error.
37152    Use char because int might match the return type of a GCC
37153    builtin and then its argument prototype would still apply.  */
37154 #ifdef __cplusplus
37155 extern "C"
37156 #endif
37157 char $ac_func ();
37158 /* The GNU C library defines this for functions which it implements
37159     to always fail with ENOSYS.  Some functions are actually named
37160     something starting with __ and the normal name is an alias.  */
37161 #if defined __stub_$ac_func || defined __stub___$ac_func
37162 choke me
37163 #endif
37164
37165 int
37166 main ()
37167 {
37168 return $ac_func ();
37169   ;
37170   return 0;
37171 }
37172 _ACEOF
37173 rm -f conftest.$ac_objext conftest$ac_exeext
37174 if { (ac_try="$ac_link"
37175 case "(($ac_try" in
37176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37177   *) ac_try_echo=$ac_try;;
37178 esac
37179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37180   (eval "$ac_link") 2>conftest.er1
37181   ac_status=$?
37182   grep -v '^ *+' conftest.er1 >conftest.err
37183   rm -f conftest.er1
37184   cat conftest.err >&5
37185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186   (exit $ac_status); } && {
37187          test -z "$ac_c_werror_flag" ||
37188          test ! -s conftest.err
37189        } && test -s conftest$ac_exeext &&
37190        $as_test_x conftest$ac_exeext; then
37191   eval "$as_ac_var=yes"
37192 else
37193   echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.$ac_ext >&5
37195
37196         eval "$as_ac_var=no"
37197 fi
37198
37199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37200       conftest$ac_exeext conftest.$ac_ext
37201 fi
37202 ac_res=`eval echo '${'$as_ac_var'}'`
37203                { echo "$as_me:$LINENO: result: $ac_res" >&5
37204 echo "${ECHO_T}$ac_res" >&6; }
37205 if test `eval echo '${'$as_ac_var'}'` = yes; then
37206   cat >>confdefs.h <<_ACEOF
37207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37208 _ACEOF
37209  break
37210 fi
37211 done
37212
37213 if test "$ac_cv_func_setenv" = "yes"; then
37214
37215 for ac_func in unsetenv
37216 do
37217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37221   echo $ECHO_N "(cached) $ECHO_C" >&6
37222 else
37223   cat >conftest.$ac_ext <<_ACEOF
37224 /* confdefs.h.  */
37225 _ACEOF
37226 cat confdefs.h >>conftest.$ac_ext
37227 cat >>conftest.$ac_ext <<_ACEOF
37228 /* end confdefs.h.  */
37229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37231 #define $ac_func innocuous_$ac_func
37232
37233 /* System header to define __stub macros and hopefully few prototypes,
37234     which can conflict with char $ac_func (); below.
37235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37236     <limits.h> exists even on freestanding compilers.  */
37237
37238 #ifdef __STDC__
37239 # include <limits.h>
37240 #else
37241 # include <assert.h>
37242 #endif
37243
37244 #undef $ac_func
37245
37246 /* Override any GCC internal prototype to avoid an error.
37247    Use char because int might match the return type of a GCC
37248    builtin and then its argument prototype would still apply.  */
37249 #ifdef __cplusplus
37250 extern "C"
37251 #endif
37252 char $ac_func ();
37253 /* The GNU C library defines this for functions which it implements
37254     to always fail with ENOSYS.  Some functions are actually named
37255     something starting with __ and the normal name is an alias.  */
37256 #if defined __stub_$ac_func || defined __stub___$ac_func
37257 choke me
37258 #endif
37259
37260 int
37261 main ()
37262 {
37263 return $ac_func ();
37264   ;
37265   return 0;
37266 }
37267 _ACEOF
37268 rm -f conftest.$ac_objext conftest$ac_exeext
37269 if { (ac_try="$ac_link"
37270 case "(($ac_try" in
37271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37272   *) ac_try_echo=$ac_try;;
37273 esac
37274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37275   (eval "$ac_link") 2>conftest.er1
37276   ac_status=$?
37277   grep -v '^ *+' conftest.er1 >conftest.err
37278   rm -f conftest.er1
37279   cat conftest.err >&5
37280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281   (exit $ac_status); } && {
37282          test -z "$ac_c_werror_flag" ||
37283          test ! -s conftest.err
37284        } && test -s conftest$ac_exeext &&
37285        $as_test_x conftest$ac_exeext; then
37286   eval "$as_ac_var=yes"
37287 else
37288   echo "$as_me: failed program was:" >&5
37289 sed 's/^/| /' conftest.$ac_ext >&5
37290
37291         eval "$as_ac_var=no"
37292 fi
37293
37294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37295       conftest$ac_exeext conftest.$ac_ext
37296 fi
37297 ac_res=`eval echo '${'$as_ac_var'}'`
37298                { echo "$as_me:$LINENO: result: $ac_res" >&5
37299 echo "${ECHO_T}$ac_res" >&6; }
37300 if test `eval echo '${'$as_ac_var'}'` = yes; then
37301   cat >>confdefs.h <<_ACEOF
37302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37303 _ACEOF
37304
37305 fi
37306 done
37307
37308 fi
37309
37310 HAVE_SOME_SLEEP_FUNC=0
37311 if test "$USE_BEOS" = 1; then
37312             cat >>confdefs.h <<\_ACEOF
37313 #define HAVE_SLEEP 1
37314 _ACEOF
37315
37316     HAVE_SOME_SLEEP_FUNC=1
37317 fi
37318
37319 if test "$USE_DARWIN" = 1; then
37320             cat >>confdefs.h <<\_ACEOF
37321 #define HAVE_USLEEP 1
37322 _ACEOF
37323
37324     HAVE_SOME_SLEEP_FUNC=1
37325 fi
37326
37327 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37328         POSIX4_LINK=
37329
37330 for ac_func in nanosleep
37331 do
37332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37336   echo $ECHO_N "(cached) $ECHO_C" >&6
37337 else
37338   cat >conftest.$ac_ext <<_ACEOF
37339 /* confdefs.h.  */
37340 _ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h.  */
37344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37346 #define $ac_func innocuous_$ac_func
37347
37348 /* System header to define __stub macros and hopefully few prototypes,
37349     which can conflict with char $ac_func (); below.
37350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37351     <limits.h> exists even on freestanding compilers.  */
37352
37353 #ifdef __STDC__
37354 # include <limits.h>
37355 #else
37356 # include <assert.h>
37357 #endif
37358
37359 #undef $ac_func
37360
37361 /* Override any GCC internal prototype to avoid an error.
37362    Use char because int might match the return type of a GCC
37363    builtin and then its argument prototype would still apply.  */
37364 #ifdef __cplusplus
37365 extern "C"
37366 #endif
37367 char $ac_func ();
37368 /* The GNU C library defines this for functions which it implements
37369     to always fail with ENOSYS.  Some functions are actually named
37370     something starting with __ and the normal name is an alias.  */
37371 #if defined __stub_$ac_func || defined __stub___$ac_func
37372 choke me
37373 #endif
37374
37375 int
37376 main ()
37377 {
37378 return $ac_func ();
37379   ;
37380   return 0;
37381 }
37382 _ACEOF
37383 rm -f conftest.$ac_objext conftest$ac_exeext
37384 if { (ac_try="$ac_link"
37385 case "(($ac_try" in
37386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37387   *) ac_try_echo=$ac_try;;
37388 esac
37389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37390   (eval "$ac_link") 2>conftest.er1
37391   ac_status=$?
37392   grep -v '^ *+' conftest.er1 >conftest.err
37393   rm -f conftest.er1
37394   cat conftest.err >&5
37395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396   (exit $ac_status); } && {
37397          test -z "$ac_c_werror_flag" ||
37398          test ! -s conftest.err
37399        } && test -s conftest$ac_exeext &&
37400        $as_test_x conftest$ac_exeext; then
37401   eval "$as_ac_var=yes"
37402 else
37403   echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37405
37406         eval "$as_ac_var=no"
37407 fi
37408
37409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37410       conftest$ac_exeext conftest.$ac_ext
37411 fi
37412 ac_res=`eval echo '${'$as_ac_var'}'`
37413                { echo "$as_me:$LINENO: result: $ac_res" >&5
37414 echo "${ECHO_T}$ac_res" >&6; }
37415 if test `eval echo '${'$as_ac_var'}'` = yes; then
37416   cat >>confdefs.h <<_ACEOF
37417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37418 _ACEOF
37419  cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_NANOSLEEP 1
37421 _ACEOF
37422
37423 else
37424
37425             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37426 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37427 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37428   echo $ECHO_N "(cached) $ECHO_C" >&6
37429 else
37430   ac_check_lib_save_LIBS=$LIBS
37431 LIBS="-lposix4  $LIBS"
37432 cat >conftest.$ac_ext <<_ACEOF
37433 /* confdefs.h.  */
37434 _ACEOF
37435 cat confdefs.h >>conftest.$ac_ext
37436 cat >>conftest.$ac_ext <<_ACEOF
37437 /* end confdefs.h.  */
37438
37439 /* Override any GCC internal prototype to avoid an error.
37440    Use char because int might match the return type of a GCC
37441    builtin and then its argument prototype would still apply.  */
37442 #ifdef __cplusplus
37443 extern "C"
37444 #endif
37445 char nanosleep ();
37446 int
37447 main ()
37448 {
37449 return nanosleep ();
37450   ;
37451   return 0;
37452 }
37453 _ACEOF
37454 rm -f conftest.$ac_objext conftest$ac_exeext
37455 if { (ac_try="$ac_link"
37456 case "(($ac_try" in
37457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37458   *) ac_try_echo=$ac_try;;
37459 esac
37460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37461   (eval "$ac_link") 2>conftest.er1
37462   ac_status=$?
37463   grep -v '^ *+' conftest.er1 >conftest.err
37464   rm -f conftest.er1
37465   cat conftest.err >&5
37466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467   (exit $ac_status); } && {
37468          test -z "$ac_c_werror_flag" ||
37469          test ! -s conftest.err
37470        } && test -s conftest$ac_exeext &&
37471        $as_test_x conftest$ac_exeext; then
37472   ac_cv_lib_posix4_nanosleep=yes
37473 else
37474   echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37476
37477         ac_cv_lib_posix4_nanosleep=no
37478 fi
37479
37480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37481       conftest$ac_exeext conftest.$ac_ext
37482 LIBS=$ac_check_lib_save_LIBS
37483 fi
37484 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37485 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37486 if test $ac_cv_lib_posix4_nanosleep = yes; then
37487
37488                     cat >>confdefs.h <<\_ACEOF
37489 #define HAVE_NANOSLEEP 1
37490 _ACEOF
37491
37492                     POSIX4_LINK=" -lposix4"
37493
37494 else
37495
37496
37497   for wx_func in usleep
37498   do
37499     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37500 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37501 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37502   echo $ECHO_N "(cached) $ECHO_C" >&6
37503 else
37504
37505         cat >conftest.$ac_ext <<_ACEOF
37506
37507             /* confdefs.h.  */
37508 _ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h.  */
37512
37513
37514                 $ac_includes_default
37515
37516 int
37517 main ()
37518 {
37519
37520                 #ifndef $wx_func
37521                   &$wx_func;
37522                 #endif
37523
37524
37525   ;
37526   return 0;
37527 }
37528
37529 _ACEOF
37530 rm -f conftest.$ac_objext conftest$ac_exeext
37531 if { (ac_try="$ac_link"
37532 case "(($ac_try" in
37533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37534   *) ac_try_echo=$ac_try;;
37535 esac
37536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37537   (eval "$ac_link") 2>conftest.er1
37538   ac_status=$?
37539   grep -v '^ *+' conftest.er1 >conftest.err
37540   rm -f conftest.er1
37541   cat conftest.err >&5
37542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543   (exit $ac_status); } && {
37544          test -z "$ac_c_werror_flag" ||
37545          test ! -s conftest.err
37546        } && test -s conftest$ac_exeext &&
37547        $as_test_x conftest$ac_exeext; then
37548   eval wx_cv_func_$wx_func=yes
37549 else
37550   echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37552
37553         eval wx_cv_func_$wx_func=no
37554 fi
37555
37556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37557       conftest$ac_exeext conftest.$ac_ext
37558
37559 fi
37560 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37561                { echo "$as_me:$LINENO: result: $ac_res" >&5
37562 echo "${ECHO_T}$ac_res" >&6; }
37563
37564     if eval test \$wx_cv_func_$wx_func = yes
37565     then
37566       cat >>confdefs.h <<_ACEOF
37567 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37568 _ACEOF
37569
37570
37571     else
37572       :
37573       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37574 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37575
37576     fi
37577   done
37578
37579
37580
37581 fi
37582
37583
37584
37585 fi
37586 done
37587
37588 fi
37589
37590
37591   for wx_func in uname
37592   do
37593     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37594 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37595 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37596   echo $ECHO_N "(cached) $ECHO_C" >&6
37597 else
37598
37599         cat >conftest.$ac_ext <<_ACEOF
37600
37601             /* confdefs.h.  */
37602 _ACEOF
37603 cat confdefs.h >>conftest.$ac_ext
37604 cat >>conftest.$ac_ext <<_ACEOF
37605 /* end confdefs.h.  */
37606
37607                 #include <sys/utsname.h>
37608                 $ac_includes_default
37609
37610 int
37611 main ()
37612 {
37613
37614                 #ifndef $wx_func
37615                   &$wx_func;
37616                 #endif
37617
37618
37619   ;
37620   return 0;
37621 }
37622
37623 _ACEOF
37624 rm -f conftest.$ac_objext conftest$ac_exeext
37625 if { (ac_try="$ac_link"
37626 case "(($ac_try" in
37627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37628   *) ac_try_echo=$ac_try;;
37629 esac
37630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37631   (eval "$ac_link") 2>conftest.er1
37632   ac_status=$?
37633   grep -v '^ *+' conftest.er1 >conftest.err
37634   rm -f conftest.er1
37635   cat conftest.err >&5
37636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637   (exit $ac_status); } && {
37638          test -z "$ac_c_werror_flag" ||
37639          test ! -s conftest.err
37640        } && test -s conftest$ac_exeext &&
37641        $as_test_x conftest$ac_exeext; then
37642   eval wx_cv_func_$wx_func=yes
37643 else
37644   echo "$as_me: failed program was:" >&5
37645 sed 's/^/| /' conftest.$ac_ext >&5
37646
37647         eval wx_cv_func_$wx_func=no
37648 fi
37649
37650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37651       conftest$ac_exeext conftest.$ac_ext
37652
37653 fi
37654 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37655                { echo "$as_me:$LINENO: result: $ac_res" >&5
37656 echo "${ECHO_T}$ac_res" >&6; }
37657
37658     if eval test \$wx_cv_func_$wx_func = yes
37659     then
37660       cat >>confdefs.h <<_ACEOF
37661 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37662 _ACEOF
37663
37664
37665     else
37666       :
37667
37668     fi
37669   done
37670
37671 if test "$wx_cv_func_uname" != yes; then
37672
37673   for wx_func in gethostname
37674   do
37675     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37676 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37677 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37678   echo $ECHO_N "(cached) $ECHO_C" >&6
37679 else
37680
37681         cat >conftest.$ac_ext <<_ACEOF
37682
37683             /* confdefs.h.  */
37684 _ACEOF
37685 cat confdefs.h >>conftest.$ac_ext
37686 cat >>conftest.$ac_ext <<_ACEOF
37687 /* end confdefs.h.  */
37688
37689
37690                 $ac_includes_default
37691
37692 int
37693 main ()
37694 {
37695
37696                 #ifndef $wx_func
37697                   &$wx_func;
37698                 #endif
37699
37700
37701   ;
37702   return 0;
37703 }
37704
37705 _ACEOF
37706 rm -f conftest.$ac_objext conftest$ac_exeext
37707 if { (ac_try="$ac_link"
37708 case "(($ac_try" in
37709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710   *) ac_try_echo=$ac_try;;
37711 esac
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713   (eval "$ac_link") 2>conftest.er1
37714   ac_status=$?
37715   grep -v '^ *+' conftest.er1 >conftest.err
37716   rm -f conftest.er1
37717   cat conftest.err >&5
37718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719   (exit $ac_status); } && {
37720          test -z "$ac_c_werror_flag" ||
37721          test ! -s conftest.err
37722        } && test -s conftest$ac_exeext &&
37723        $as_test_x conftest$ac_exeext; then
37724   eval wx_cv_func_$wx_func=yes
37725 else
37726   echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37728
37729         eval wx_cv_func_$wx_func=no
37730 fi
37731
37732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37733       conftest$ac_exeext conftest.$ac_ext
37734
37735 fi
37736 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37737                { echo "$as_me:$LINENO: result: $ac_res" >&5
37738 echo "${ECHO_T}$ac_res" >&6; }
37739
37740     if eval test \$wx_cv_func_$wx_func = yes
37741     then
37742       cat >>confdefs.h <<_ACEOF
37743 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37744 _ACEOF
37745
37746
37747     else
37748       :
37749
37750     fi
37751   done
37752
37753 fi
37754
37755
37756   for wx_func in strtok_r
37757   do
37758     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37759 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37760 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37761   echo $ECHO_N "(cached) $ECHO_C" >&6
37762 else
37763
37764         cat >conftest.$ac_ext <<_ACEOF
37765
37766             /* confdefs.h.  */
37767 _ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h.  */
37771
37772                 #define _REENTRANT
37773                 $ac_includes_default
37774
37775 int
37776 main ()
37777 {
37778
37779                 #ifndef $wx_func
37780                   &$wx_func;
37781                 #endif
37782
37783
37784   ;
37785   return 0;
37786 }
37787
37788 _ACEOF
37789 rm -f conftest.$ac_objext conftest$ac_exeext
37790 if { (ac_try="$ac_link"
37791 case "(($ac_try" in
37792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37793   *) ac_try_echo=$ac_try;;
37794 esac
37795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37796   (eval "$ac_link") 2>conftest.er1
37797   ac_status=$?
37798   grep -v '^ *+' conftest.er1 >conftest.err
37799   rm -f conftest.er1
37800   cat conftest.err >&5
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); } && {
37803          test -z "$ac_c_werror_flag" ||
37804          test ! -s conftest.err
37805        } && test -s conftest$ac_exeext &&
37806        $as_test_x conftest$ac_exeext; then
37807   eval wx_cv_func_$wx_func=yes
37808 else
37809   echo "$as_me: failed program was:" >&5
37810 sed 's/^/| /' conftest.$ac_ext >&5
37811
37812         eval wx_cv_func_$wx_func=no
37813 fi
37814
37815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37816       conftest$ac_exeext conftest.$ac_ext
37817
37818 fi
37819 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37820                { echo "$as_me:$LINENO: result: $ac_res" >&5
37821 echo "${ECHO_T}$ac_res" >&6; }
37822
37823     if eval test \$wx_cv_func_$wx_func = yes
37824     then
37825       cat >>confdefs.h <<_ACEOF
37826 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37827 _ACEOF
37828
37829
37830     else
37831       :
37832
37833     fi
37834   done
37835
37836
37837 INET_LINK=
37838
37839 for ac_func in inet_addr
37840 do
37841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37845   echo $ECHO_N "(cached) $ECHO_C" >&6
37846 else
37847   cat >conftest.$ac_ext <<_ACEOF
37848 /* confdefs.h.  */
37849 _ACEOF
37850 cat confdefs.h >>conftest.$ac_ext
37851 cat >>conftest.$ac_ext <<_ACEOF
37852 /* end confdefs.h.  */
37853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37855 #define $ac_func innocuous_$ac_func
37856
37857 /* System header to define __stub macros and hopefully few prototypes,
37858     which can conflict with char $ac_func (); below.
37859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37860     <limits.h> exists even on freestanding compilers.  */
37861
37862 #ifdef __STDC__
37863 # include <limits.h>
37864 #else
37865 # include <assert.h>
37866 #endif
37867
37868 #undef $ac_func
37869
37870 /* Override any GCC internal prototype to avoid an error.
37871    Use char because int might match the return type of a GCC
37872    builtin and then its argument prototype would still apply.  */
37873 #ifdef __cplusplus
37874 extern "C"
37875 #endif
37876 char $ac_func ();
37877 /* The GNU C library defines this for functions which it implements
37878     to always fail with ENOSYS.  Some functions are actually named
37879     something starting with __ and the normal name is an alias.  */
37880 #if defined __stub_$ac_func || defined __stub___$ac_func
37881 choke me
37882 #endif
37883
37884 int
37885 main ()
37886 {
37887 return $ac_func ();
37888   ;
37889   return 0;
37890 }
37891 _ACEOF
37892 rm -f conftest.$ac_objext conftest$ac_exeext
37893 if { (ac_try="$ac_link"
37894 case "(($ac_try" in
37895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37896   *) ac_try_echo=$ac_try;;
37897 esac
37898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37899   (eval "$ac_link") 2>conftest.er1
37900   ac_status=$?
37901   grep -v '^ *+' conftest.er1 >conftest.err
37902   rm -f conftest.er1
37903   cat conftest.err >&5
37904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905   (exit $ac_status); } && {
37906          test -z "$ac_c_werror_flag" ||
37907          test ! -s conftest.err
37908        } && test -s conftest$ac_exeext &&
37909        $as_test_x conftest$ac_exeext; then
37910   eval "$as_ac_var=yes"
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915         eval "$as_ac_var=no"
37916 fi
37917
37918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37919       conftest$ac_exeext conftest.$ac_ext
37920 fi
37921 ac_res=`eval echo '${'$as_ac_var'}'`
37922                { echo "$as_me:$LINENO: result: $ac_res" >&5
37923 echo "${ECHO_T}$ac_res" >&6; }
37924 if test `eval echo '${'$as_ac_var'}'` = yes; then
37925   cat >>confdefs.h <<_ACEOF
37926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37927 _ACEOF
37928  cat >>confdefs.h <<\_ACEOF
37929 #define HAVE_INET_ADDR 1
37930 _ACEOF
37931
37932 else
37933
37934         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37935 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37936 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37937   echo $ECHO_N "(cached) $ECHO_C" >&6
37938 else
37939   ac_check_lib_save_LIBS=$LIBS
37940 LIBS="-lnsl  $LIBS"
37941 cat >conftest.$ac_ext <<_ACEOF
37942 /* confdefs.h.  */
37943 _ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h.  */
37947
37948 /* Override any GCC internal prototype to avoid an error.
37949    Use char because int might match the return type of a GCC
37950    builtin and then its argument prototype would still apply.  */
37951 #ifdef __cplusplus
37952 extern "C"
37953 #endif
37954 char inet_addr ();
37955 int
37956 main ()
37957 {
37958 return inet_addr ();
37959   ;
37960   return 0;
37961 }
37962 _ACEOF
37963 rm -f conftest.$ac_objext conftest$ac_exeext
37964 if { (ac_try="$ac_link"
37965 case "(($ac_try" in
37966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967   *) ac_try_echo=$ac_try;;
37968 esac
37969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37970   (eval "$ac_link") 2>conftest.er1
37971   ac_status=$?
37972   grep -v '^ *+' conftest.er1 >conftest.err
37973   rm -f conftest.er1
37974   cat conftest.err >&5
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); } && {
37977          test -z "$ac_c_werror_flag" ||
37978          test ! -s conftest.err
37979        } && test -s conftest$ac_exeext &&
37980        $as_test_x conftest$ac_exeext; then
37981   ac_cv_lib_nsl_inet_addr=yes
37982 else
37983   echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986         ac_cv_lib_nsl_inet_addr=no
37987 fi
37988
37989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37990       conftest$ac_exeext conftest.$ac_ext
37991 LIBS=$ac_check_lib_save_LIBS
37992 fi
37993 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37994 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
37995 if test $ac_cv_lib_nsl_inet_addr = yes; then
37996   INET_LINK="nsl"
37997 else
37998
37999                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38000 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38001 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38002   echo $ECHO_N "(cached) $ECHO_C" >&6
38003 else
38004   ac_check_lib_save_LIBS=$LIBS
38005 LIBS="-lresolv  $LIBS"
38006 cat >conftest.$ac_ext <<_ACEOF
38007 /* confdefs.h.  */
38008 _ACEOF
38009 cat confdefs.h >>conftest.$ac_ext
38010 cat >>conftest.$ac_ext <<_ACEOF
38011 /* end confdefs.h.  */
38012
38013 /* Override any GCC internal prototype to avoid an error.
38014    Use char because int might match the return type of a GCC
38015    builtin and then its argument prototype would still apply.  */
38016 #ifdef __cplusplus
38017 extern "C"
38018 #endif
38019 char inet_addr ();
38020 int
38021 main ()
38022 {
38023 return inet_addr ();
38024   ;
38025   return 0;
38026 }
38027 _ACEOF
38028 rm -f conftest.$ac_objext conftest$ac_exeext
38029 if { (ac_try="$ac_link"
38030 case "(($ac_try" in
38031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38032   *) ac_try_echo=$ac_try;;
38033 esac
38034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38035   (eval "$ac_link") 2>conftest.er1
38036   ac_status=$?
38037   grep -v '^ *+' conftest.er1 >conftest.err
38038   rm -f conftest.er1
38039   cat conftest.err >&5
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); } && {
38042          test -z "$ac_c_werror_flag" ||
38043          test ! -s conftest.err
38044        } && test -s conftest$ac_exeext &&
38045        $as_test_x conftest$ac_exeext; then
38046   ac_cv_lib_resolv_inet_addr=yes
38047 else
38048   echo "$as_me: failed program was:" >&5
38049 sed 's/^/| /' conftest.$ac_ext >&5
38050
38051         ac_cv_lib_resolv_inet_addr=no
38052 fi
38053
38054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38055       conftest$ac_exeext conftest.$ac_ext
38056 LIBS=$ac_check_lib_save_LIBS
38057 fi
38058 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38059 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38060 if test $ac_cv_lib_resolv_inet_addr = yes; then
38061   INET_LINK="resolv"
38062 else
38063
38064                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38065 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38066 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38067   echo $ECHO_N "(cached) $ECHO_C" >&6
38068 else
38069   ac_check_lib_save_LIBS=$LIBS
38070 LIBS="-lsocket  $LIBS"
38071 cat >conftest.$ac_ext <<_ACEOF
38072 /* confdefs.h.  */
38073 _ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h.  */
38077
38078 /* Override any GCC internal prototype to avoid an error.
38079    Use char because int might match the return type of a GCC
38080    builtin and then its argument prototype would still apply.  */
38081 #ifdef __cplusplus
38082 extern "C"
38083 #endif
38084 char inet_addr ();
38085 int
38086 main ()
38087 {
38088 return inet_addr ();
38089   ;
38090   return 0;
38091 }
38092 _ACEOF
38093 rm -f conftest.$ac_objext conftest$ac_exeext
38094 if { (ac_try="$ac_link"
38095 case "(($ac_try" in
38096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38097   *) ac_try_echo=$ac_try;;
38098 esac
38099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38100   (eval "$ac_link") 2>conftest.er1
38101   ac_status=$?
38102   grep -v '^ *+' conftest.er1 >conftest.err
38103   rm -f conftest.er1
38104   cat conftest.err >&5
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); } && {
38107          test -z "$ac_c_werror_flag" ||
38108          test ! -s conftest.err
38109        } && test -s conftest$ac_exeext &&
38110        $as_test_x conftest$ac_exeext; then
38111   ac_cv_lib_socket_inet_addr=yes
38112 else
38113   echo "$as_me: failed program was:" >&5
38114 sed 's/^/| /' conftest.$ac_ext >&5
38115
38116         ac_cv_lib_socket_inet_addr=no
38117 fi
38118
38119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38120       conftest$ac_exeext conftest.$ac_ext
38121 LIBS=$ac_check_lib_save_LIBS
38122 fi
38123 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38124 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38125 if test $ac_cv_lib_socket_inet_addr = yes; then
38126   INET_LINK="socket"
38127
38128 fi
38129
38130
38131
38132 fi
38133
38134
38135
38136 fi
38137
38138
38139
38140 fi
38141 done
38142
38143
38144
38145 for ac_func in inet_aton
38146 do
38147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38151   echo $ECHO_N "(cached) $ECHO_C" >&6
38152 else
38153   cat >conftest.$ac_ext <<_ACEOF
38154 /* confdefs.h.  */
38155 _ACEOF
38156 cat confdefs.h >>conftest.$ac_ext
38157 cat >>conftest.$ac_ext <<_ACEOF
38158 /* end confdefs.h.  */
38159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38161 #define $ac_func innocuous_$ac_func
38162
38163 /* System header to define __stub macros and hopefully few prototypes,
38164     which can conflict with char $ac_func (); below.
38165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38166     <limits.h> exists even on freestanding compilers.  */
38167
38168 #ifdef __STDC__
38169 # include <limits.h>
38170 #else
38171 # include <assert.h>
38172 #endif
38173
38174 #undef $ac_func
38175
38176 /* Override any GCC internal prototype to avoid an error.
38177    Use char because int might match the return type of a GCC
38178    builtin and then its argument prototype would still apply.  */
38179 #ifdef __cplusplus
38180 extern "C"
38181 #endif
38182 char $ac_func ();
38183 /* The GNU C library defines this for functions which it implements
38184     to always fail with ENOSYS.  Some functions are actually named
38185     something starting with __ and the normal name is an alias.  */
38186 #if defined __stub_$ac_func || defined __stub___$ac_func
38187 choke me
38188 #endif
38189
38190 int
38191 main ()
38192 {
38193 return $ac_func ();
38194   ;
38195   return 0;
38196 }
38197 _ACEOF
38198 rm -f conftest.$ac_objext conftest$ac_exeext
38199 if { (ac_try="$ac_link"
38200 case "(($ac_try" in
38201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38202   *) ac_try_echo=$ac_try;;
38203 esac
38204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38205   (eval "$ac_link") 2>conftest.er1
38206   ac_status=$?
38207   grep -v '^ *+' conftest.er1 >conftest.err
38208   rm -f conftest.er1
38209   cat conftest.err >&5
38210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211   (exit $ac_status); } && {
38212          test -z "$ac_c_werror_flag" ||
38213          test ! -s conftest.err
38214        } && test -s conftest$ac_exeext &&
38215        $as_test_x conftest$ac_exeext; then
38216   eval "$as_ac_var=yes"
38217 else
38218   echo "$as_me: failed program was:" >&5
38219 sed 's/^/| /' conftest.$ac_ext >&5
38220
38221         eval "$as_ac_var=no"
38222 fi
38223
38224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38225       conftest$ac_exeext conftest.$ac_ext
38226 fi
38227 ac_res=`eval echo '${'$as_ac_var'}'`
38228                { echo "$as_me:$LINENO: result: $ac_res" >&5
38229 echo "${ECHO_T}$ac_res" >&6; }
38230 if test `eval echo '${'$as_ac_var'}'` = yes; then
38231   cat >>confdefs.h <<_ACEOF
38232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38233 _ACEOF
38234  cat >>confdefs.h <<\_ACEOF
38235 #define HAVE_INET_ATON 1
38236 _ACEOF
38237
38238 else
38239
38240                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38241 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38242 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38243 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38244   echo $ECHO_N "(cached) $ECHO_C" >&6
38245 else
38246   ac_check_lib_save_LIBS=$LIBS
38247 LIBS="-l$INET_LINK  $LIBS"
38248 cat >conftest.$ac_ext <<_ACEOF
38249 /* confdefs.h.  */
38250 _ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h.  */
38254
38255 /* Override any GCC internal prototype to avoid an error.
38256    Use char because int might match the return type of a GCC
38257    builtin and then its argument prototype would still apply.  */
38258 #ifdef __cplusplus
38259 extern "C"
38260 #endif
38261 char inet_aton ();
38262 int
38263 main ()
38264 {
38265 return inet_aton ();
38266   ;
38267   return 0;
38268 }
38269 _ACEOF
38270 rm -f conftest.$ac_objext conftest$ac_exeext
38271 if { (ac_try="$ac_link"
38272 case "(($ac_try" in
38273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38274   *) ac_try_echo=$ac_try;;
38275 esac
38276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38277   (eval "$ac_link") 2>conftest.er1
38278   ac_status=$?
38279   grep -v '^ *+' conftest.er1 >conftest.err
38280   rm -f conftest.er1
38281   cat conftest.err >&5
38282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283   (exit $ac_status); } && {
38284          test -z "$ac_c_werror_flag" ||
38285          test ! -s conftest.err
38286        } && test -s conftest$ac_exeext &&
38287        $as_test_x conftest$ac_exeext; then
38288   eval "$as_ac_Lib=yes"
38289 else
38290   echo "$as_me: failed program was:" >&5
38291 sed 's/^/| /' conftest.$ac_ext >&5
38292
38293         eval "$as_ac_Lib=no"
38294 fi
38295
38296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38297       conftest$ac_exeext conftest.$ac_ext
38298 LIBS=$ac_check_lib_save_LIBS
38299 fi
38300 ac_res=`eval echo '${'$as_ac_Lib'}'`
38301                { echo "$as_me:$LINENO: result: $ac_res" >&5
38302 echo "${ECHO_T}$ac_res" >&6; }
38303 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38304   cat >>confdefs.h <<\_ACEOF
38305 #define HAVE_INET_ATON 1
38306 _ACEOF
38307
38308 fi
38309
38310
38311 fi
38312 done
38313
38314
38315 if test "x$INET_LINK" != "x"; then
38316     cat >>confdefs.h <<\_ACEOF
38317 #define HAVE_INET_ADDR 1
38318 _ACEOF
38319
38320     INET_LINK=" -l$INET_LINK"
38321 fi
38322
38323
38324   for wx_func in fdopen
38325   do
38326     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38327 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38328 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38329   echo $ECHO_N "(cached) $ECHO_C" >&6
38330 else
38331
38332         cat >conftest.$ac_ext <<_ACEOF
38333
38334             /* confdefs.h.  */
38335 _ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h.  */
38339
38340
38341                 $ac_includes_default
38342
38343 int
38344 main ()
38345 {
38346
38347                 #ifndef $wx_func
38348                   &$wx_func;
38349                 #endif
38350
38351
38352   ;
38353   return 0;
38354 }
38355
38356 _ACEOF
38357 rm -f conftest.$ac_objext conftest$ac_exeext
38358 if { (ac_try="$ac_link"
38359 case "(($ac_try" in
38360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361   *) ac_try_echo=$ac_try;;
38362 esac
38363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38364   (eval "$ac_link") 2>conftest.er1
38365   ac_status=$?
38366   grep -v '^ *+' conftest.er1 >conftest.err
38367   rm -f conftest.er1
38368   cat conftest.err >&5
38369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370   (exit $ac_status); } && {
38371          test -z "$ac_c_werror_flag" ||
38372          test ! -s conftest.err
38373        } && test -s conftest$ac_exeext &&
38374        $as_test_x conftest$ac_exeext; then
38375   eval wx_cv_func_$wx_func=yes
38376 else
38377   echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38379
38380         eval wx_cv_func_$wx_func=no
38381 fi
38382
38383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38384       conftest$ac_exeext conftest.$ac_ext
38385
38386 fi
38387 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38388                { echo "$as_me:$LINENO: result: $ac_res" >&5
38389 echo "${ECHO_T}$ac_res" >&6; }
38390
38391     if eval test \$wx_cv_func_$wx_func = yes
38392     then
38393       cat >>confdefs.h <<_ACEOF
38394 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38395 _ACEOF
38396
38397
38398     else
38399       :
38400
38401     fi
38402   done
38403
38404
38405 if test "$wxUSE_TARSTREAM" = "yes"; then
38406
38407   for wx_func in sysconf
38408   do
38409     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38410 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38411 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38412   echo $ECHO_N "(cached) $ECHO_C" >&6
38413 else
38414
38415         cat >conftest.$ac_ext <<_ACEOF
38416
38417             /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422
38423
38424                 $ac_includes_default
38425
38426 int
38427 main ()
38428 {
38429
38430                 #ifndef $wx_func
38431                   &$wx_func;
38432                 #endif
38433
38434
38435   ;
38436   return 0;
38437 }
38438
38439 _ACEOF
38440 rm -f conftest.$ac_objext conftest$ac_exeext
38441 if { (ac_try="$ac_link"
38442 case "(($ac_try" in
38443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38444   *) ac_try_echo=$ac_try;;
38445 esac
38446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38447   (eval "$ac_link") 2>conftest.er1
38448   ac_status=$?
38449   grep -v '^ *+' conftest.er1 >conftest.err
38450   rm -f conftest.er1
38451   cat conftest.err >&5
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); } && {
38454          test -z "$ac_c_werror_flag" ||
38455          test ! -s conftest.err
38456        } && test -s conftest$ac_exeext &&
38457        $as_test_x conftest$ac_exeext; then
38458   eval wx_cv_func_$wx_func=yes
38459 else
38460   echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38462
38463         eval wx_cv_func_$wx_func=no
38464 fi
38465
38466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38467       conftest$ac_exeext conftest.$ac_ext
38468
38469 fi
38470 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38471                { echo "$as_me:$LINENO: result: $ac_res" >&5
38472 echo "${ECHO_T}$ac_res" >&6; }
38473
38474     if eval test \$wx_cv_func_$wx_func = yes
38475     then
38476       cat >>confdefs.h <<_ACEOF
38477 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38478 _ACEOF
38479
38480
38481     else
38482       :
38483
38484     fi
38485   done
38486
38487
38488
38489   for wx_func in getpwuid_r
38490   do
38491     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38492 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38493 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38494   echo $ECHO_N "(cached) $ECHO_C" >&6
38495 else
38496
38497         cat >conftest.$ac_ext <<_ACEOF
38498
38499             /* confdefs.h.  */
38500 _ACEOF
38501 cat confdefs.h >>conftest.$ac_ext
38502 cat >>conftest.$ac_ext <<_ACEOF
38503 /* end confdefs.h.  */
38504
38505
38506                     #define _REENTRANT
38507                     #include <pwd.h>
38508
38509                 $ac_includes_default
38510
38511 int
38512 main ()
38513 {
38514
38515                 #ifndef $wx_func
38516                   &$wx_func;
38517                 #endif
38518
38519                     struct passwd pw, *ppw;
38520                     char buf[1024];
38521                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38522
38523
38524   ;
38525   return 0;
38526 }
38527
38528 _ACEOF
38529 rm -f conftest.$ac_objext conftest$ac_exeext
38530 if { (ac_try="$ac_link"
38531 case "(($ac_try" in
38532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38533   *) ac_try_echo=$ac_try;;
38534 esac
38535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38536   (eval "$ac_link") 2>conftest.er1
38537   ac_status=$?
38538   grep -v '^ *+' conftest.er1 >conftest.err
38539   rm -f conftest.er1
38540   cat conftest.err >&5
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); } && {
38543          test -z "$ac_c_werror_flag" ||
38544          test ! -s conftest.err
38545        } && test -s conftest$ac_exeext &&
38546        $as_test_x conftest$ac_exeext; then
38547   eval wx_cv_func_$wx_func=yes
38548 else
38549   echo "$as_me: failed program was:" >&5
38550 sed 's/^/| /' conftest.$ac_ext >&5
38551
38552         eval wx_cv_func_$wx_func=no
38553 fi
38554
38555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38556       conftest$ac_exeext conftest.$ac_ext
38557
38558 fi
38559 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38560                { echo "$as_me:$LINENO: result: $ac_res" >&5
38561 echo "${ECHO_T}$ac_res" >&6; }
38562
38563     if eval test \$wx_cv_func_$wx_func = yes
38564     then
38565       cat >>confdefs.h <<_ACEOF
38566 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38567 _ACEOF
38568
38569
38570     else
38571       :
38572
38573     fi
38574   done
38575
38576
38577
38578   for wx_func in getgrgid_r
38579   do
38580     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38581 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38582 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38583   echo $ECHO_N "(cached) $ECHO_C" >&6
38584 else
38585
38586         cat >conftest.$ac_ext <<_ACEOF
38587
38588             /* confdefs.h.  */
38589 _ACEOF
38590 cat confdefs.h >>conftest.$ac_ext
38591 cat >>conftest.$ac_ext <<_ACEOF
38592 /* end confdefs.h.  */
38593
38594
38595                     #define _REENTRANT
38596                     #include <grp.h>
38597
38598                 $ac_includes_default
38599
38600 int
38601 main ()
38602 {
38603
38604                 #ifndef $wx_func
38605                   &$wx_func;
38606                 #endif
38607
38608                     struct group grp, *pgrp;
38609                     char buf[1024];
38610                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
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 fi
38666
38667 fi
38668
38669
38670
38671 cat >confcache <<\_ACEOF
38672 # This file is a shell script that caches the results of configure
38673 # tests run on this system so they can be shared between configure
38674 # scripts and configure runs, see configure's option --config-cache.
38675 # It is not useful on other systems.  If it contains results you don't
38676 # want to keep, you may remove or edit it.
38677 #
38678 # config.status only pays attention to the cache file if you give it
38679 # the --recheck option to rerun configure.
38680 #
38681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38683 # following values.
38684
38685 _ACEOF
38686
38687 # The following way of writing the cache mishandles newlines in values,
38688 # but we know of no workaround that is simple, portable, and efficient.
38689 # So, we kill variables containing newlines.
38690 # Ultrix sh set writes to stderr and can't be redirected directly,
38691 # and sets the high bit in the cache file unless we assign to the vars.
38692 (
38693   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38694     eval ac_val=\$$ac_var
38695     case $ac_val in #(
38696     *${as_nl}*)
38697       case $ac_var in #(
38698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38700       esac
38701       case $ac_var in #(
38702       _ | IFS | as_nl) ;; #(
38703       *) $as_unset $ac_var ;;
38704       esac ;;
38705     esac
38706   done
38707
38708   (set) 2>&1 |
38709     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38710     *${as_nl}ac_space=\ *)
38711       # `set' does not quote correctly, so add quotes (double-quote
38712       # substitution turns \\\\ into \\, and sed turns \\ into \).
38713       sed -n \
38714         "s/'/'\\\\''/g;
38715           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38716       ;; #(
38717     *)
38718       # `set' quotes correctly as required by POSIX, so do not add quotes.
38719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38720       ;;
38721     esac |
38722     sort
38723 ) |
38724   sed '
38725      /^ac_cv_env_/b end
38726      t clear
38727      :clear
38728      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38729      t end
38730      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38731      :end' >>confcache
38732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38733   if test -w "$cache_file"; then
38734     test "x$cache_file" != "x/dev/null" &&
38735       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38736 echo "$as_me: updating cache $cache_file" >&6;}
38737     cat confcache >$cache_file
38738   else
38739     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38740 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38741   fi
38742 fi
38743 rm -f confcache
38744
38745
38746 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38747
38748
38749     THREADS_LINK=
38750     THREADS_CFLAGS=
38751
38752     if test "$wxUSE_THREADS" = "yes" ; then
38753         if test "$USE_BEOS" = 1; then
38754             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38755 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38756             wxUSE_THREADS="no"
38757         fi
38758     fi
38759
38760     if test "$wxUSE_THREADS" = "yes" ; then
38761
38762
38763                                 THREAD_OPTS="-pthread"
38764         if test "x$SUNCXX" = xyes; then
38765             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38766         fi
38767
38768         case "${host}" in
38769           *-*-solaris2* | *-*-sunos4* )
38770                 if test "x$GCC" = "xyes"; then
38771                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38772                 fi
38773                 ;;
38774           *-*-freebsd*)
38775                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38776                 ;;
38777           *-*-darwin* | *-*-cygwin* )
38778                                                 THREAD_OPTS=""
38779                 ;;
38780           *-*-aix*)
38781                                 THREAD_OPTS="pthreads"
38782                 ;;
38783           *-hp-hpux* )
38784                 if test "x$GCC" = "xyes"; then
38785                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38786                         THREAD_OPTS=""
38787                 else
38788                                                             THREAD_OPTS="-mt"
38789                 fi
38790                 ;;
38791
38792           *-*-irix* )
38793                                                                 if test "x$GCC" = "xyes"; then
38794                     THREAD_OPTS=""
38795                 fi
38796                 ;;
38797
38798           *-*-*UnixWare*)
38799                                 if test "x$GCC" != "xyes"; then
38800                     THREAD_OPTS="-Ethread"
38801                 fi
38802                 ;;
38803         esac
38804
38805                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38806
38807                 THREADS_OK=no
38808         for flag in $THREAD_OPTS; do
38809             case $flag in
38810                 none)
38811                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38812 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38813                     ;;
38814
38815                 -*)
38816                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38817 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38818                     THREADS_CFLAGS="$flag"
38819                     ;;
38820
38821                 *)
38822                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38823 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38824                     THREADS_LINK="-l$flag"
38825                     ;;
38826               esac
38827
38828               save_LIBS="$LIBS"
38829               save_CFLAGS="$CFLAGS"
38830               LIBS="$THREADS_LINK $LIBS"
38831               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38832
38833               cat >conftest.$ac_ext <<_ACEOF
38834 /* confdefs.h.  */
38835 _ACEOF
38836 cat confdefs.h >>conftest.$ac_ext
38837 cat >>conftest.$ac_ext <<_ACEOF
38838 /* end confdefs.h.  */
38839 #include <pthread.h>
38840 int
38841 main ()
38842 {
38843 pthread_create(0,0,0,0);
38844   ;
38845   return 0;
38846 }
38847 _ACEOF
38848 rm -f conftest.$ac_objext conftest$ac_exeext
38849 if { (ac_try="$ac_link"
38850 case "(($ac_try" in
38851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38852   *) ac_try_echo=$ac_try;;
38853 esac
38854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38855   (eval "$ac_link") 2>conftest.er1
38856   ac_status=$?
38857   grep -v '^ *+' conftest.er1 >conftest.err
38858   rm -f conftest.er1
38859   cat conftest.err >&5
38860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861   (exit $ac_status); } && {
38862          test -z "$ac_c_werror_flag" ||
38863          test ! -s conftest.err
38864        } && test -s conftest$ac_exeext &&
38865        $as_test_x conftest$ac_exeext; then
38866   THREADS_OK=yes
38867 else
38868   echo "$as_me: failed program was:" >&5
38869 sed 's/^/| /' conftest.$ac_ext >&5
38870
38871
38872 fi
38873
38874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38875       conftest$ac_exeext conftest.$ac_ext
38876
38877               LIBS="$save_LIBS"
38878               CFLAGS="$save_CFLAGS"
38879
38880               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38881 echo "${ECHO_T}$THREADS_OK" >&6; }
38882               if test "x$THREADS_OK" = "xyes"; then
38883                       break;
38884               fi
38885
38886               THREADS_LINK=""
38887               THREADS_CFLAGS=""
38888       done
38889
38890       if test "x$THREADS_OK" != "xyes"; then
38891           wxUSE_THREADS=no
38892           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38893 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38894       else
38895                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38896           LIBS="$THREADS_LINK $LIBS"
38897
38898           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38899 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38900           flag=no
38901           case "${host}" in
38902             *-aix*)
38903                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38904                 flag="-D_THREAD_SAFE"
38905                 ;;
38906             *-freebsd*)
38907                 flag="-D_THREAD_SAFE"
38908                 ;;
38909             *-hp-hpux* )
38910                 flag="-D_REENTRANT"
38911                 if test "x$GCC" != "xyes"; then
38912                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38913                 fi
38914                 ;;
38915             *solaris* | alpha*-osf*)
38916                 flag="-D_REENTRANT"
38917                 ;;
38918           esac
38919           { echo "$as_me:$LINENO: result: ${flag}" >&5
38920 echo "${ECHO_T}${flag}" >&6; }
38921           if test "x$flag" != xno; then
38922               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38923           fi
38924
38925                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38926       fi
38927     fi
38928
38929         if test "$wxUSE_THREADS" = "yes" ; then
38930
38931 for ac_func in thr_setconcurrency
38932 do
38933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38937   echo $ECHO_N "(cached) $ECHO_C" >&6
38938 else
38939   cat >conftest.$ac_ext <<_ACEOF
38940 /* confdefs.h.  */
38941 _ACEOF
38942 cat confdefs.h >>conftest.$ac_ext
38943 cat >>conftest.$ac_ext <<_ACEOF
38944 /* end confdefs.h.  */
38945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38947 #define $ac_func innocuous_$ac_func
38948
38949 /* System header to define __stub macros and hopefully few prototypes,
38950     which can conflict with char $ac_func (); below.
38951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38952     <limits.h> exists even on freestanding compilers.  */
38953
38954 #ifdef __STDC__
38955 # include <limits.h>
38956 #else
38957 # include <assert.h>
38958 #endif
38959
38960 #undef $ac_func
38961
38962 /* Override any GCC internal prototype to avoid an error.
38963    Use char because int might match the return type of a GCC
38964    builtin and then its argument prototype would still apply.  */
38965 #ifdef __cplusplus
38966 extern "C"
38967 #endif
38968 char $ac_func ();
38969 /* The GNU C library defines this for functions which it implements
38970     to always fail with ENOSYS.  Some functions are actually named
38971     something starting with __ and the normal name is an alias.  */
38972 #if defined __stub_$ac_func || defined __stub___$ac_func
38973 choke me
38974 #endif
38975
38976 int
38977 main ()
38978 {
38979 return $ac_func ();
38980   ;
38981   return 0;
38982 }
38983 _ACEOF
38984 rm -f conftest.$ac_objext conftest$ac_exeext
38985 if { (ac_try="$ac_link"
38986 case "(($ac_try" in
38987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38988   *) ac_try_echo=$ac_try;;
38989 esac
38990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38991   (eval "$ac_link") 2>conftest.er1
38992   ac_status=$?
38993   grep -v '^ *+' conftest.er1 >conftest.err
38994   rm -f conftest.er1
38995   cat conftest.err >&5
38996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997   (exit $ac_status); } && {
38998          test -z "$ac_c_werror_flag" ||
38999          test ! -s conftest.err
39000        } && test -s conftest$ac_exeext &&
39001        $as_test_x conftest$ac_exeext; then
39002   eval "$as_ac_var=yes"
39003 else
39004   echo "$as_me: failed program was:" >&5
39005 sed 's/^/| /' conftest.$ac_ext >&5
39006
39007         eval "$as_ac_var=no"
39008 fi
39009
39010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39011       conftest$ac_exeext conftest.$ac_ext
39012 fi
39013 ac_res=`eval echo '${'$as_ac_var'}'`
39014                { echo "$as_me:$LINENO: result: $ac_res" >&5
39015 echo "${ECHO_T}$ac_res" >&6; }
39016 if test `eval echo '${'$as_ac_var'}'` = yes; then
39017   cat >>confdefs.h <<_ACEOF
39018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39019 _ACEOF
39020
39021 fi
39022 done
39023
39024
39025                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39026 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39027 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39028   echo $ECHO_N "(cached) $ECHO_C" >&6
39029 else
39030
39031                                 ac_ext=cpp
39032 ac_cpp='$CXXCPP $CPPFLAGS'
39033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39036
39037         cat >conftest.$ac_ext <<_ACEOF
39038 /* confdefs.h.  */
39039 _ACEOF
39040 cat confdefs.h >>conftest.$ac_ext
39041 cat >>conftest.$ac_ext <<_ACEOF
39042 /* end confdefs.h.  */
39043 #include <pthread.h>
39044                void ThreadCleanupFunc(void *p);
39045
39046 int
39047 main ()
39048 {
39049
39050                 void *p;
39051                 pthread_cleanup_push(ThreadCleanupFunc, p);
39052                 pthread_cleanup_pop(0);
39053
39054   ;
39055   return 0;
39056 }
39057 _ACEOF
39058 rm -f conftest.$ac_objext
39059 if { (ac_try="$ac_compile"
39060 case "(($ac_try" in
39061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39062   *) ac_try_echo=$ac_try;;
39063 esac
39064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39065   (eval "$ac_compile") 2>conftest.er1
39066   ac_status=$?
39067   grep -v '^ *+' conftest.er1 >conftest.err
39068   rm -f conftest.er1
39069   cat conftest.err >&5
39070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071   (exit $ac_status); } && {
39072          test -z "$ac_cxx_werror_flag" ||
39073          test ! -s conftest.err
39074        } && test -s conftest.$ac_objext; then
39075
39076                wx_cv_func_pthread_cleanup=yes
39077
39078 else
39079   echo "$as_me: failed program was:" >&5
39080 sed 's/^/| /' conftest.$ac_ext >&5
39081
39082
39083                wx_cv_func_pthread_cleanup=no
39084
39085
39086 fi
39087
39088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39089         ac_ext=c
39090 ac_cpp='$CPP $CPPFLAGS'
39091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39094
39095
39096 fi
39097 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39098 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39099       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39100         cat >>confdefs.h <<\_ACEOF
39101 #define wxHAVE_PTHREAD_CLEANUP 1
39102 _ACEOF
39103
39104       fi
39105
39106
39107 for ac_header in sched.h
39108 do
39109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39113   echo $ECHO_N "(cached) $ECHO_C" >&6
39114 else
39115   cat >conftest.$ac_ext <<_ACEOF
39116 /* confdefs.h.  */
39117 _ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h.  */
39121 $ac_includes_default
39122
39123 #include <$ac_header>
39124 _ACEOF
39125 rm -f conftest.$ac_objext
39126 if { (ac_try="$ac_compile"
39127 case "(($ac_try" in
39128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39129   *) ac_try_echo=$ac_try;;
39130 esac
39131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39132   (eval "$ac_compile") 2>conftest.er1
39133   ac_status=$?
39134   grep -v '^ *+' conftest.er1 >conftest.err
39135   rm -f conftest.er1
39136   cat conftest.err >&5
39137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138   (exit $ac_status); } && {
39139          test -z "$ac_c_werror_flag" ||
39140          test ! -s conftest.err
39141        } && test -s conftest.$ac_objext; then
39142   eval "$as_ac_Header=yes"
39143 else
39144   echo "$as_me: failed program was:" >&5
39145 sed 's/^/| /' conftest.$ac_ext >&5
39146
39147         eval "$as_ac_Header=no"
39148 fi
39149
39150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39151 fi
39152 ac_res=`eval echo '${'$as_ac_Header'}'`
39153                { echo "$as_me:$LINENO: result: $ac_res" >&5
39154 echo "${ECHO_T}$ac_res" >&6; }
39155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39156   cat >>confdefs.h <<_ACEOF
39157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39158 _ACEOF
39159
39160 fi
39161
39162 done
39163
39164       if test "$ac_cv_header_sched_h" = "yes"; then
39165           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39166 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39167 if test "${ac_cv_func_sched_yield+set}" = set; then
39168   echo $ECHO_N "(cached) $ECHO_C" >&6
39169 else
39170   cat >conftest.$ac_ext <<_ACEOF
39171 /* confdefs.h.  */
39172 _ACEOF
39173 cat confdefs.h >>conftest.$ac_ext
39174 cat >>conftest.$ac_ext <<_ACEOF
39175 /* end confdefs.h.  */
39176 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39178 #define sched_yield innocuous_sched_yield
39179
39180 /* System header to define __stub macros and hopefully few prototypes,
39181     which can conflict with char sched_yield (); below.
39182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39183     <limits.h> exists even on freestanding compilers.  */
39184
39185 #ifdef __STDC__
39186 # include <limits.h>
39187 #else
39188 # include <assert.h>
39189 #endif
39190
39191 #undef sched_yield
39192
39193 /* Override any GCC internal prototype to avoid an error.
39194    Use char because int might match the return type of a GCC
39195    builtin and then its argument prototype would still apply.  */
39196 #ifdef __cplusplus
39197 extern "C"
39198 #endif
39199 char sched_yield ();
39200 /* The GNU C library defines this for functions which it implements
39201     to always fail with ENOSYS.  Some functions are actually named
39202     something starting with __ and the normal name is an alias.  */
39203 #if defined __stub_sched_yield || defined __stub___sched_yield
39204 choke me
39205 #endif
39206
39207 int
39208 main ()
39209 {
39210 return sched_yield ();
39211   ;
39212   return 0;
39213 }
39214 _ACEOF
39215 rm -f conftest.$ac_objext conftest$ac_exeext
39216 if { (ac_try="$ac_link"
39217 case "(($ac_try" in
39218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39219   *) ac_try_echo=$ac_try;;
39220 esac
39221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39222   (eval "$ac_link") 2>conftest.er1
39223   ac_status=$?
39224   grep -v '^ *+' conftest.er1 >conftest.err
39225   rm -f conftest.er1
39226   cat conftest.err >&5
39227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228   (exit $ac_status); } && {
39229          test -z "$ac_c_werror_flag" ||
39230          test ! -s conftest.err
39231        } && test -s conftest$ac_exeext &&
39232        $as_test_x conftest$ac_exeext; then
39233   ac_cv_func_sched_yield=yes
39234 else
39235   echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238         ac_cv_func_sched_yield=no
39239 fi
39240
39241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39242       conftest$ac_exeext conftest.$ac_ext
39243 fi
39244 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39245 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39246 if test $ac_cv_func_sched_yield = yes; then
39247   cat >>confdefs.h <<\_ACEOF
39248 #define HAVE_SCHED_YIELD 1
39249 _ACEOF
39250
39251 else
39252
39253                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39254 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39255 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39256   echo $ECHO_N "(cached) $ECHO_C" >&6
39257 else
39258   ac_check_lib_save_LIBS=$LIBS
39259 LIBS="-lposix4  $LIBS"
39260 cat >conftest.$ac_ext <<_ACEOF
39261 /* confdefs.h.  */
39262 _ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h.  */
39266
39267 /* Override any GCC internal prototype to avoid an error.
39268    Use char because int might match the return type of a GCC
39269    builtin and then its argument prototype would still apply.  */
39270 #ifdef __cplusplus
39271 extern "C"
39272 #endif
39273 char sched_yield ();
39274 int
39275 main ()
39276 {
39277 return sched_yield ();
39278   ;
39279   return 0;
39280 }
39281 _ACEOF
39282 rm -f conftest.$ac_objext conftest$ac_exeext
39283 if { (ac_try="$ac_link"
39284 case "(($ac_try" in
39285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39286   *) ac_try_echo=$ac_try;;
39287 esac
39288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39289   (eval "$ac_link") 2>conftest.er1
39290   ac_status=$?
39291   grep -v '^ *+' conftest.er1 >conftest.err
39292   rm -f conftest.er1
39293   cat conftest.err >&5
39294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295   (exit $ac_status); } && {
39296          test -z "$ac_c_werror_flag" ||
39297          test ! -s conftest.err
39298        } && test -s conftest$ac_exeext &&
39299        $as_test_x conftest$ac_exeext; then
39300   ac_cv_lib_posix4_sched_yield=yes
39301 else
39302   echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39304
39305         ac_cv_lib_posix4_sched_yield=no
39306 fi
39307
39308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39309       conftest$ac_exeext conftest.$ac_ext
39310 LIBS=$ac_check_lib_save_LIBS
39311 fi
39312 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39313 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39314 if test $ac_cv_lib_posix4_sched_yield = yes; then
39315   cat >>confdefs.h <<\_ACEOF
39316 #define HAVE_SCHED_YIELD 1
39317 _ACEOF
39318  POSIX4_LINK=" -lposix4"
39319 else
39320   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39321 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39322
39323 fi
39324
39325
39326
39327 fi
39328
39329       fi
39330
39331                                           HAVE_PRIOR_FUNCS=0
39332       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39333 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39334 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39335   echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337   cat >conftest.$ac_ext <<_ACEOF
39338 /* confdefs.h.  */
39339 _ACEOF
39340 cat confdefs.h >>conftest.$ac_ext
39341 cat >>conftest.$ac_ext <<_ACEOF
39342 /* end confdefs.h.  */
39343 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39345 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39346
39347 /* System header to define __stub macros and hopefully few prototypes,
39348     which can conflict with char pthread_attr_getschedpolicy (); below.
39349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39350     <limits.h> exists even on freestanding compilers.  */
39351
39352 #ifdef __STDC__
39353 # include <limits.h>
39354 #else
39355 # include <assert.h>
39356 #endif
39357
39358 #undef pthread_attr_getschedpolicy
39359
39360 /* Override any GCC internal prototype to avoid an error.
39361    Use char because int might match the return type of a GCC
39362    builtin and then its argument prototype would still apply.  */
39363 #ifdef __cplusplus
39364 extern "C"
39365 #endif
39366 char pthread_attr_getschedpolicy ();
39367 /* The GNU C library defines this for functions which it implements
39368     to always fail with ENOSYS.  Some functions are actually named
39369     something starting with __ and the normal name is an alias.  */
39370 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39371 choke me
39372 #endif
39373
39374 int
39375 main ()
39376 {
39377 return pthread_attr_getschedpolicy ();
39378   ;
39379   return 0;
39380 }
39381 _ACEOF
39382 rm -f conftest.$ac_objext conftest$ac_exeext
39383 if { (ac_try="$ac_link"
39384 case "(($ac_try" in
39385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39386   *) ac_try_echo=$ac_try;;
39387 esac
39388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39389   (eval "$ac_link") 2>conftest.er1
39390   ac_status=$?
39391   grep -v '^ *+' conftest.er1 >conftest.err
39392   rm -f conftest.er1
39393   cat conftest.err >&5
39394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395   (exit $ac_status); } && {
39396          test -z "$ac_c_werror_flag" ||
39397          test ! -s conftest.err
39398        } && test -s conftest$ac_exeext &&
39399        $as_test_x conftest$ac_exeext; then
39400   ac_cv_func_pthread_attr_getschedpolicy=yes
39401 else
39402   echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39404
39405         ac_cv_func_pthread_attr_getschedpolicy=no
39406 fi
39407
39408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39409       conftest$ac_exeext conftest.$ac_ext
39410 fi
39411 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39412 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39413 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39414   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39415 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39416 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39417   echo $ECHO_N "(cached) $ECHO_C" >&6
39418 else
39419   cat >conftest.$ac_ext <<_ACEOF
39420 /* confdefs.h.  */
39421 _ACEOF
39422 cat confdefs.h >>conftest.$ac_ext
39423 cat >>conftest.$ac_ext <<_ACEOF
39424 /* end confdefs.h.  */
39425 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39427 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39428
39429 /* System header to define __stub macros and hopefully few prototypes,
39430     which can conflict with char pthread_attr_setschedparam (); below.
39431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39432     <limits.h> exists even on freestanding compilers.  */
39433
39434 #ifdef __STDC__
39435 # include <limits.h>
39436 #else
39437 # include <assert.h>
39438 #endif
39439
39440 #undef pthread_attr_setschedparam
39441
39442 /* Override any GCC internal prototype to avoid an error.
39443    Use char because int might match the return type of a GCC
39444    builtin and then its argument prototype would still apply.  */
39445 #ifdef __cplusplus
39446 extern "C"
39447 #endif
39448 char pthread_attr_setschedparam ();
39449 /* The GNU C library defines this for functions which it implements
39450     to always fail with ENOSYS.  Some functions are actually named
39451     something starting with __ and the normal name is an alias.  */
39452 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39453 choke me
39454 #endif
39455
39456 int
39457 main ()
39458 {
39459 return pthread_attr_setschedparam ();
39460   ;
39461   return 0;
39462 }
39463 _ACEOF
39464 rm -f conftest.$ac_objext conftest$ac_exeext
39465 if { (ac_try="$ac_link"
39466 case "(($ac_try" in
39467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39468   *) ac_try_echo=$ac_try;;
39469 esac
39470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39471   (eval "$ac_link") 2>conftest.er1
39472   ac_status=$?
39473   grep -v '^ *+' conftest.er1 >conftest.err
39474   rm -f conftest.er1
39475   cat conftest.err >&5
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); } && {
39478          test -z "$ac_c_werror_flag" ||
39479          test ! -s conftest.err
39480        } && test -s conftest$ac_exeext &&
39481        $as_test_x conftest$ac_exeext; then
39482   ac_cv_func_pthread_attr_setschedparam=yes
39483 else
39484   echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39486
39487         ac_cv_func_pthread_attr_setschedparam=no
39488 fi
39489
39490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39491       conftest$ac_exeext conftest.$ac_ext
39492 fi
39493 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39494 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39495 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39496   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39497 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39498 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39499   echo $ECHO_N "(cached) $ECHO_C" >&6
39500 else
39501   cat >conftest.$ac_ext <<_ACEOF
39502 /* confdefs.h.  */
39503 _ACEOF
39504 cat confdefs.h >>conftest.$ac_ext
39505 cat >>conftest.$ac_ext <<_ACEOF
39506 /* end confdefs.h.  */
39507 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39509 #define sched_get_priority_max innocuous_sched_get_priority_max
39510
39511 /* System header to define __stub macros and hopefully few prototypes,
39512     which can conflict with char sched_get_priority_max (); below.
39513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39514     <limits.h> exists even on freestanding compilers.  */
39515
39516 #ifdef __STDC__
39517 # include <limits.h>
39518 #else
39519 # include <assert.h>
39520 #endif
39521
39522 #undef sched_get_priority_max
39523
39524 /* Override any GCC internal prototype to avoid an error.
39525    Use char because int might match the return type of a GCC
39526    builtin and then its argument prototype would still apply.  */
39527 #ifdef __cplusplus
39528 extern "C"
39529 #endif
39530 char sched_get_priority_max ();
39531 /* The GNU C library defines this for functions which it implements
39532     to always fail with ENOSYS.  Some functions are actually named
39533     something starting with __ and the normal name is an alias.  */
39534 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39535 choke me
39536 #endif
39537
39538 int
39539 main ()
39540 {
39541 return sched_get_priority_max ();
39542   ;
39543   return 0;
39544 }
39545 _ACEOF
39546 rm -f conftest.$ac_objext conftest$ac_exeext
39547 if { (ac_try="$ac_link"
39548 case "(($ac_try" in
39549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39550   *) ac_try_echo=$ac_try;;
39551 esac
39552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39553   (eval "$ac_link") 2>conftest.er1
39554   ac_status=$?
39555   grep -v '^ *+' conftest.er1 >conftest.err
39556   rm -f conftest.er1
39557   cat conftest.err >&5
39558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559   (exit $ac_status); } && {
39560          test -z "$ac_c_werror_flag" ||
39561          test ! -s conftest.err
39562        } && test -s conftest$ac_exeext &&
39563        $as_test_x conftest$ac_exeext; then
39564   ac_cv_func_sched_get_priority_max=yes
39565 else
39566   echo "$as_me: failed program was:" >&5
39567 sed 's/^/| /' conftest.$ac_ext >&5
39568
39569         ac_cv_func_sched_get_priority_max=no
39570 fi
39571
39572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39573       conftest$ac_exeext conftest.$ac_ext
39574 fi
39575 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39576 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39577 if test $ac_cv_func_sched_get_priority_max = yes; then
39578   HAVE_PRIOR_FUNCS=1
39579 else
39580   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39581 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39582 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39583   echo $ECHO_N "(cached) $ECHO_C" >&6
39584 else
39585   ac_check_lib_save_LIBS=$LIBS
39586 LIBS="-lposix4  $LIBS"
39587 cat >conftest.$ac_ext <<_ACEOF
39588 /* confdefs.h.  */
39589 _ACEOF
39590 cat confdefs.h >>conftest.$ac_ext
39591 cat >>conftest.$ac_ext <<_ACEOF
39592 /* end confdefs.h.  */
39593
39594 /* Override any GCC internal prototype to avoid an error.
39595    Use char because int might match the return type of a GCC
39596    builtin and then its argument prototype would still apply.  */
39597 #ifdef __cplusplus
39598 extern "C"
39599 #endif
39600 char sched_get_priority_max ();
39601 int
39602 main ()
39603 {
39604 return sched_get_priority_max ();
39605   ;
39606   return 0;
39607 }
39608 _ACEOF
39609 rm -f conftest.$ac_objext conftest$ac_exeext
39610 if { (ac_try="$ac_link"
39611 case "(($ac_try" in
39612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39613   *) ac_try_echo=$ac_try;;
39614 esac
39615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39616   (eval "$ac_link") 2>conftest.er1
39617   ac_status=$?
39618   grep -v '^ *+' conftest.er1 >conftest.err
39619   rm -f conftest.er1
39620   cat conftest.err >&5
39621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } && {
39623          test -z "$ac_c_werror_flag" ||
39624          test ! -s conftest.err
39625        } && test -s conftest$ac_exeext &&
39626        $as_test_x conftest$ac_exeext; then
39627   ac_cv_lib_posix4_sched_get_priority_max=yes
39628 else
39629   echo "$as_me: failed program was:" >&5
39630 sed 's/^/| /' conftest.$ac_ext >&5
39631
39632         ac_cv_lib_posix4_sched_get_priority_max=no
39633 fi
39634
39635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39636       conftest$ac_exeext conftest.$ac_ext
39637 LIBS=$ac_check_lib_save_LIBS
39638 fi
39639 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39640 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39641 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39642
39643                                 HAVE_PRIOR_FUNCS=1
39644                                 POSIX4_LINK=" -lposix4"
39645
39646 fi
39647
39648
39649 fi
39650
39651
39652 fi
39653
39654
39655 fi
39656
39657
39658       if test "$HAVE_PRIOR_FUNCS" = 1; then
39659         cat >>confdefs.h <<\_ACEOF
39660 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39661 _ACEOF
39662
39663       else
39664         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39665 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39666       fi
39667
39668       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39669 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39670 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39671   echo $ECHO_N "(cached) $ECHO_C" >&6
39672 else
39673   cat >conftest.$ac_ext <<_ACEOF
39674 /* confdefs.h.  */
39675 _ACEOF
39676 cat confdefs.h >>conftest.$ac_ext
39677 cat >>conftest.$ac_ext <<_ACEOF
39678 /* end confdefs.h.  */
39679 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39681 #define pthread_cancel innocuous_pthread_cancel
39682
39683 /* System header to define __stub macros and hopefully few prototypes,
39684     which can conflict with char pthread_cancel (); below.
39685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39686     <limits.h> exists even on freestanding compilers.  */
39687
39688 #ifdef __STDC__
39689 # include <limits.h>
39690 #else
39691 # include <assert.h>
39692 #endif
39693
39694 #undef pthread_cancel
39695
39696 /* Override any GCC internal prototype to avoid an error.
39697    Use char because int might match the return type of a GCC
39698    builtin and then its argument prototype would still apply.  */
39699 #ifdef __cplusplus
39700 extern "C"
39701 #endif
39702 char pthread_cancel ();
39703 /* The GNU C library defines this for functions which it implements
39704     to always fail with ENOSYS.  Some functions are actually named
39705     something starting with __ and the normal name is an alias.  */
39706 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39707 choke me
39708 #endif
39709
39710 int
39711 main ()
39712 {
39713 return pthread_cancel ();
39714   ;
39715   return 0;
39716 }
39717 _ACEOF
39718 rm -f conftest.$ac_objext conftest$ac_exeext
39719 if { (ac_try="$ac_link"
39720 case "(($ac_try" in
39721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39722   *) ac_try_echo=$ac_try;;
39723 esac
39724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39725   (eval "$ac_link") 2>conftest.er1
39726   ac_status=$?
39727   grep -v '^ *+' conftest.er1 >conftest.err
39728   rm -f conftest.er1
39729   cat conftest.err >&5
39730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731   (exit $ac_status); } && {
39732          test -z "$ac_c_werror_flag" ||
39733          test ! -s conftest.err
39734        } && test -s conftest$ac_exeext &&
39735        $as_test_x conftest$ac_exeext; then
39736   ac_cv_func_pthread_cancel=yes
39737 else
39738   echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39740
39741         ac_cv_func_pthread_cancel=no
39742 fi
39743
39744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39745       conftest$ac_exeext conftest.$ac_ext
39746 fi
39747 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39748 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39749 if test $ac_cv_func_pthread_cancel = yes; then
39750   cat >>confdefs.h <<\_ACEOF
39751 #define HAVE_PTHREAD_CANCEL 1
39752 _ACEOF
39753
39754 else
39755   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39756 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39757 fi
39758
39759
39760       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39761 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39762 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39763   echo $ECHO_N "(cached) $ECHO_C" >&6
39764 else
39765   cat >conftest.$ac_ext <<_ACEOF
39766 /* confdefs.h.  */
39767 _ACEOF
39768 cat confdefs.h >>conftest.$ac_ext
39769 cat >>conftest.$ac_ext <<_ACEOF
39770 /* end confdefs.h.  */
39771 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39773 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39774
39775 /* System header to define __stub macros and hopefully few prototypes,
39776     which can conflict with char pthread_mutex_timedlock (); below.
39777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39778     <limits.h> exists even on freestanding compilers.  */
39779
39780 #ifdef __STDC__
39781 # include <limits.h>
39782 #else
39783 # include <assert.h>
39784 #endif
39785
39786 #undef pthread_mutex_timedlock
39787
39788 /* Override any GCC internal prototype to avoid an error.
39789    Use char because int might match the return type of a GCC
39790    builtin and then its argument prototype would still apply.  */
39791 #ifdef __cplusplus
39792 extern "C"
39793 #endif
39794 char pthread_mutex_timedlock ();
39795 /* The GNU C library defines this for functions which it implements
39796     to always fail with ENOSYS.  Some functions are actually named
39797     something starting with __ and the normal name is an alias.  */
39798 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39799 choke me
39800 #endif
39801
39802 int
39803 main ()
39804 {
39805 return pthread_mutex_timedlock ();
39806   ;
39807   return 0;
39808 }
39809 _ACEOF
39810 rm -f conftest.$ac_objext conftest$ac_exeext
39811 if { (ac_try="$ac_link"
39812 case "(($ac_try" in
39813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39814   *) ac_try_echo=$ac_try;;
39815 esac
39816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39817   (eval "$ac_link") 2>conftest.er1
39818   ac_status=$?
39819   grep -v '^ *+' conftest.er1 >conftest.err
39820   rm -f conftest.er1
39821   cat conftest.err >&5
39822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823   (exit $ac_status); } && {
39824          test -z "$ac_c_werror_flag" ||
39825          test ! -s conftest.err
39826        } && test -s conftest$ac_exeext &&
39827        $as_test_x conftest$ac_exeext; then
39828   ac_cv_func_pthread_mutex_timedlock=yes
39829 else
39830   echo "$as_me: failed program was:" >&5
39831 sed 's/^/| /' conftest.$ac_ext >&5
39832
39833         ac_cv_func_pthread_mutex_timedlock=no
39834 fi
39835
39836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39837       conftest$ac_exeext conftest.$ac_ext
39838 fi
39839 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39840 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39841 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39842   cat >>confdefs.h <<\_ACEOF
39843 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39844 _ACEOF
39845
39846 else
39847   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39848 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39849 fi
39850
39851
39852       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39853 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39854 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39855   echo $ECHO_N "(cached) $ECHO_C" >&6
39856 else
39857   cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h.  */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h.  */
39863 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39865 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39866
39867 /* System header to define __stub macros and hopefully few prototypes,
39868     which can conflict with char pthread_attr_setstacksize (); below.
39869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39870     <limits.h> exists even on freestanding compilers.  */
39871
39872 #ifdef __STDC__
39873 # include <limits.h>
39874 #else
39875 # include <assert.h>
39876 #endif
39877
39878 #undef pthread_attr_setstacksize
39879
39880 /* Override any GCC internal prototype to avoid an error.
39881    Use char because int might match the return type of a GCC
39882    builtin and then its argument prototype would still apply.  */
39883 #ifdef __cplusplus
39884 extern "C"
39885 #endif
39886 char pthread_attr_setstacksize ();
39887 /* The GNU C library defines this for functions which it implements
39888     to always fail with ENOSYS.  Some functions are actually named
39889     something starting with __ and the normal name is an alias.  */
39890 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39891 choke me
39892 #endif
39893
39894 int
39895 main ()
39896 {
39897 return pthread_attr_setstacksize ();
39898   ;
39899   return 0;
39900 }
39901 _ACEOF
39902 rm -f conftest.$ac_objext conftest$ac_exeext
39903 if { (ac_try="$ac_link"
39904 case "(($ac_try" in
39905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39906   *) ac_try_echo=$ac_try;;
39907 esac
39908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39909   (eval "$ac_link") 2>conftest.er1
39910   ac_status=$?
39911   grep -v '^ *+' conftest.er1 >conftest.err
39912   rm -f conftest.er1
39913   cat conftest.err >&5
39914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915   (exit $ac_status); } && {
39916          test -z "$ac_c_werror_flag" ||
39917          test ! -s conftest.err
39918        } && test -s conftest$ac_exeext &&
39919        $as_test_x conftest$ac_exeext; then
39920   ac_cv_func_pthread_attr_setstacksize=yes
39921 else
39922   echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39924
39925         ac_cv_func_pthread_attr_setstacksize=no
39926 fi
39927
39928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39929       conftest$ac_exeext conftest.$ac_ext
39930 fi
39931 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39932 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39933 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39934   cat >>confdefs.h <<\_ACEOF
39935 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39936 _ACEOF
39937
39938 fi
39939
39940
39941
39942       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39943 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39944 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39945   echo $ECHO_N "(cached) $ECHO_C" >&6
39946 else
39947
39948         cat >conftest.$ac_ext <<_ACEOF
39949 /* confdefs.h.  */
39950 _ACEOF
39951 cat confdefs.h >>conftest.$ac_ext
39952 cat >>conftest.$ac_ext <<_ACEOF
39953 /* end confdefs.h.  */
39954 #include <pthread.h>
39955 int
39956 main ()
39957 {
39958
39959                pthread_mutexattr_t attr;
39960                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39961
39962   ;
39963   return 0;
39964 }
39965 _ACEOF
39966 rm -f conftest.$ac_objext
39967 if { (ac_try="$ac_compile"
39968 case "(($ac_try" in
39969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970   *) ac_try_echo=$ac_try;;
39971 esac
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973   (eval "$ac_compile") 2>conftest.er1
39974   ac_status=$?
39975   grep -v '^ *+' conftest.er1 >conftest.err
39976   rm -f conftest.er1
39977   cat conftest.err >&5
39978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979   (exit $ac_status); } && {
39980          test -z "$ac_c_werror_flag" ||
39981          test ! -s conftest.err
39982        } && test -s conftest.$ac_objext; then
39983   wx_cv_type_pthread_mutexattr_t=yes
39984 else
39985   echo "$as_me: failed program was:" >&5
39986 sed 's/^/| /' conftest.$ac_ext >&5
39987
39988         wx_cv_type_pthread_mutexattr_t=no
39989
39990 fi
39991
39992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39993
39994 fi
39995 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39996 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
39997
39998       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39999         cat >>confdefs.h <<\_ACEOF
40000 #define HAVE_PTHREAD_MUTEXATTR_T 1
40001 _ACEOF
40002
40003
40004                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40005 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40006 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40007   echo $ECHO_N "(cached) $ECHO_C" >&6
40008 else
40009
40010                        cat >conftest.$ac_ext <<_ACEOF
40011 /* confdefs.h.  */
40012 _ACEOF
40013 cat confdefs.h >>conftest.$ac_ext
40014 cat >>conftest.$ac_ext <<_ACEOF
40015 /* end confdefs.h.  */
40016 #include <pthread.h>
40017 int
40018 main ()
40019 {
40020
40021                                pthread_mutexattr_t attr;
40022                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40023
40024   ;
40025   return 0;
40026 }
40027 _ACEOF
40028 rm -f conftest.$ac_objext
40029 if { (ac_try="$ac_compile"
40030 case "(($ac_try" in
40031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40032   *) ac_try_echo=$ac_try;;
40033 esac
40034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40035   (eval "$ac_compile") 2>conftest.er1
40036   ac_status=$?
40037   grep -v '^ *+' conftest.er1 >conftest.err
40038   rm -f conftest.er1
40039   cat conftest.err >&5
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); } && {
40042          test -z "$ac_c_werror_flag" ||
40043          test ! -s conftest.err
40044        } && test -s conftest.$ac_objext; then
40045   wx_cv_func_pthread_mutexattr_settype_decl=yes
40046 else
40047   echo "$as_me: failed program was:" >&5
40048 sed 's/^/| /' conftest.$ac_ext >&5
40049
40050         wx_cv_func_pthread_mutexattr_settype_decl=no
40051
40052 fi
40053
40054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40055
40056 fi
40057 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40058 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40059         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40060             cat >>confdefs.h <<\_ACEOF
40061 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40062 _ACEOF
40063
40064         fi
40065       else
40066                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40067 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40068 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40069   echo $ECHO_N "(cached) $ECHO_C" >&6
40070 else
40071
40072             cat >conftest.$ac_ext <<_ACEOF
40073 /* confdefs.h.  */
40074 _ACEOF
40075 cat confdefs.h >>conftest.$ac_ext
40076 cat >>conftest.$ac_ext <<_ACEOF
40077 /* end confdefs.h.  */
40078 #include <pthread.h>
40079 int
40080 main ()
40081 {
40082
40083                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40084
40085   ;
40086   return 0;
40087 }
40088 _ACEOF
40089 rm -f conftest.$ac_objext
40090 if { (ac_try="$ac_compile"
40091 case "(($ac_try" in
40092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40093   *) ac_try_echo=$ac_try;;
40094 esac
40095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40096   (eval "$ac_compile") 2>conftest.er1
40097   ac_status=$?
40098   grep -v '^ *+' conftest.er1 >conftest.err
40099   rm -f conftest.er1
40100   cat conftest.err >&5
40101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102   (exit $ac_status); } && {
40103          test -z "$ac_c_werror_flag" ||
40104          test ! -s conftest.err
40105        } && test -s conftest.$ac_objext; then
40106
40107                     wx_cv_type_pthread_rec_mutex_init=yes
40108
40109 else
40110   echo "$as_me: failed program was:" >&5
40111 sed 's/^/| /' conftest.$ac_ext >&5
40112
40113
40114                     wx_cv_type_pthread_rec_mutex_init=no
40115
40116
40117 fi
40118
40119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40120
40121 fi
40122 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40123 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40124         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40125           cat >>confdefs.h <<\_ACEOF
40126 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40127 _ACEOF
40128
40129         else
40130                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40131 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40132         fi
40133       fi
40134     fi
40135
40136 else
40137     if test "$wxUSE_THREADS" = "yes" ; then
40138       case "${host}" in
40139         x86_64-*-mingw32* )
40140         ;;
40141         *-*-mingw32* )
40142                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40143 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40144 if test "${wx_cv_cflags_mthread+set}" = set; then
40145   echo $ECHO_N "(cached) $ECHO_C" >&6
40146 else
40147
40148                     CFLAGS_OLD="$CFLAGS"
40149                     CFLAGS="-mthreads $CFLAGS"
40150                     cat >conftest.$ac_ext <<_ACEOF
40151 /* confdefs.h.  */
40152 _ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h.  */
40156
40157 int
40158 main ()
40159 {
40160
40161   ;
40162   return 0;
40163 }
40164 _ACEOF
40165 rm -f conftest.$ac_objext
40166 if { (ac_try="$ac_compile"
40167 case "(($ac_try" in
40168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40169   *) ac_try_echo=$ac_try;;
40170 esac
40171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40172   (eval "$ac_compile") 2>conftest.er1
40173   ac_status=$?
40174   grep -v '^ *+' conftest.er1 >conftest.err
40175   rm -f conftest.er1
40176   cat conftest.err >&5
40177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178   (exit $ac_status); } && {
40179          test -z "$ac_c_werror_flag" ||
40180          test ! -s conftest.err
40181        } && test -s conftest.$ac_objext; then
40182   wx_cv_cflags_mthread=yes
40183 else
40184   echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.$ac_ext >&5
40186
40187         wx_cv_cflags_mthread=no
40188
40189 fi
40190
40191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40192
40193
40194 fi
40195 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40196 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40197
40198             if test "$wx_cv_cflags_mthread" = "yes"; then
40199                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40200                 LDFLAGS="$LDFLAGS -mthreads"
40201             else
40202                                 CFLAGS="$CFLAGS_OLD"
40203             fi
40204         ;;
40205         *-pc-os2*emx )
40206             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40207             LDFLAGS="$LDFLAGS -Zmt"
40208         ;;
40209       esac
40210     fi
40211 fi
40212
40213 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40214 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40215 if test "${ac_cv_func_localtime_r+set}" = set; then
40216   echo $ECHO_N "(cached) $ECHO_C" >&6
40217 else
40218   cat >conftest.$ac_ext <<_ACEOF
40219 /* confdefs.h.  */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h.  */
40224 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40226 #define localtime_r innocuous_localtime_r
40227
40228 /* System header to define __stub macros and hopefully few prototypes,
40229     which can conflict with char localtime_r (); below.
40230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40231     <limits.h> exists even on freestanding compilers.  */
40232
40233 #ifdef __STDC__
40234 # include <limits.h>
40235 #else
40236 # include <assert.h>
40237 #endif
40238
40239 #undef localtime_r
40240
40241 /* Override any GCC internal prototype to avoid an error.
40242    Use char because int might match the return type of a GCC
40243    builtin and then its argument prototype would still apply.  */
40244 #ifdef __cplusplus
40245 extern "C"
40246 #endif
40247 char localtime_r ();
40248 /* The GNU C library defines this for functions which it implements
40249     to always fail with ENOSYS.  Some functions are actually named
40250     something starting with __ and the normal name is an alias.  */
40251 #if defined __stub_localtime_r || defined __stub___localtime_r
40252 choke me
40253 #endif
40254
40255 int
40256 main ()
40257 {
40258 return localtime_r ();
40259   ;
40260   return 0;
40261 }
40262 _ACEOF
40263 rm -f conftest.$ac_objext conftest$ac_exeext
40264 if { (ac_try="$ac_link"
40265 case "(($ac_try" in
40266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40267   *) ac_try_echo=$ac_try;;
40268 esac
40269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40270   (eval "$ac_link") 2>conftest.er1
40271   ac_status=$?
40272   grep -v '^ *+' conftest.er1 >conftest.err
40273   rm -f conftest.er1
40274   cat conftest.err >&5
40275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40276   (exit $ac_status); } && {
40277          test -z "$ac_c_werror_flag" ||
40278          test ! -s conftest.err
40279        } && test -s conftest$ac_exeext &&
40280        $as_test_x conftest$ac_exeext; then
40281   ac_cv_func_localtime_r=yes
40282 else
40283   echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40285
40286         ac_cv_func_localtime_r=no
40287 fi
40288
40289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40290       conftest$ac_exeext conftest.$ac_ext
40291 fi
40292 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40293 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40294 if test $ac_cv_func_localtime_r = yes; then
40295    cat >>confdefs.h <<\_ACEOF
40296 #define HAVE_LOCALTIME_R 1
40297 _ACEOF
40298
40299 fi
40300
40301 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40302 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40303 if test "${ac_cv_func_gmtime_r+set}" = set; then
40304   echo $ECHO_N "(cached) $ECHO_C" >&6
40305 else
40306   cat >conftest.$ac_ext <<_ACEOF
40307 /* confdefs.h.  */
40308 _ACEOF
40309 cat confdefs.h >>conftest.$ac_ext
40310 cat >>conftest.$ac_ext <<_ACEOF
40311 /* end confdefs.h.  */
40312 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40314 #define gmtime_r innocuous_gmtime_r
40315
40316 /* System header to define __stub macros and hopefully few prototypes,
40317     which can conflict with char gmtime_r (); below.
40318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40319     <limits.h> exists even on freestanding compilers.  */
40320
40321 #ifdef __STDC__
40322 # include <limits.h>
40323 #else
40324 # include <assert.h>
40325 #endif
40326
40327 #undef gmtime_r
40328
40329 /* Override any GCC internal prototype to avoid an error.
40330    Use char because int might match the return type of a GCC
40331    builtin and then its argument prototype would still apply.  */
40332 #ifdef __cplusplus
40333 extern "C"
40334 #endif
40335 char gmtime_r ();
40336 /* The GNU C library defines this for functions which it implements
40337     to always fail with ENOSYS.  Some functions are actually named
40338     something starting with __ and the normal name is an alias.  */
40339 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40340 choke me
40341 #endif
40342
40343 int
40344 main ()
40345 {
40346 return gmtime_r ();
40347   ;
40348   return 0;
40349 }
40350 _ACEOF
40351 rm -f conftest.$ac_objext conftest$ac_exeext
40352 if { (ac_try="$ac_link"
40353 case "(($ac_try" in
40354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40355   *) ac_try_echo=$ac_try;;
40356 esac
40357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40358   (eval "$ac_link") 2>conftest.er1
40359   ac_status=$?
40360   grep -v '^ *+' conftest.er1 >conftest.err
40361   rm -f conftest.er1
40362   cat conftest.err >&5
40363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364   (exit $ac_status); } && {
40365          test -z "$ac_c_werror_flag" ||
40366          test ! -s conftest.err
40367        } && test -s conftest$ac_exeext &&
40368        $as_test_x conftest$ac_exeext; then
40369   ac_cv_func_gmtime_r=yes
40370 else
40371   echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40373
40374         ac_cv_func_gmtime_r=no
40375 fi
40376
40377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40378       conftest$ac_exeext conftest.$ac_ext
40379 fi
40380 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40381 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40382 if test $ac_cv_func_gmtime_r = yes; then
40383    cat >>confdefs.h <<\_ACEOF
40384 #define HAVE_GMTIME_R 1
40385 _ACEOF
40386
40387 fi
40388
40389
40390
40391
40392     ac_ext=c
40393 ac_cpp='$CPP $CPPFLAGS'
40394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40397
40398     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40399 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40400
40401     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40402   echo $ECHO_N "(cached) $ECHO_C" >&6
40403 else
40404
40405
40406 ################################################################
40407
40408 ac_cv_func_which_gethostbyname_r=unknown
40409
40410 #
40411 # ONE ARGUMENT (sanity check)
40412 #
40413
40414 # This should fail, as there is no variant of gethostbyname_r() that takes
40415 # a single argument. If it actually compiles, then we can assume that
40416 # netdb.h is not declaring the function, and the compiler is thereby
40417 # assuming an implicit prototype. In which case, we're out of luck.
40418 #
40419 cat >conftest.$ac_ext <<_ACEOF
40420 /* confdefs.h.  */
40421 _ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h.  */
40425 #include <netdb.h>
40426 int
40427 main ()
40428 {
40429
40430             char *name = "www.gnu.org";
40431             (void)gethostbyname_r(name) /* ; */
40432
40433   ;
40434   return 0;
40435 }
40436 _ACEOF
40437 rm -f conftest.$ac_objext
40438 if { (ac_try="$ac_compile"
40439 case "(($ac_try" in
40440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40441   *) ac_try_echo=$ac_try;;
40442 esac
40443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40444   (eval "$ac_compile") 2>conftest.er1
40445   ac_status=$?
40446   grep -v '^ *+' conftest.er1 >conftest.err
40447   rm -f conftest.er1
40448   cat conftest.err >&5
40449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450   (exit $ac_status); } && {
40451          test -z "$ac_c_werror_flag" ||
40452          test ! -s conftest.err
40453        } && test -s conftest.$ac_objext; then
40454   ac_cv_func_which_gethostbyname_r=no
40455 else
40456   echo "$as_me: failed program was:" >&5
40457 sed 's/^/| /' conftest.$ac_ext >&5
40458
40459
40460 fi
40461
40462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40463
40464 #
40465 # SIX ARGUMENTS
40466 # (e.g. Linux)
40467 #
40468
40469 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40470
40471 cat >conftest.$ac_ext <<_ACEOF
40472 /* confdefs.h.  */
40473 _ACEOF
40474 cat confdefs.h >>conftest.$ac_ext
40475 cat >>conftest.$ac_ext <<_ACEOF
40476 /* end confdefs.h.  */
40477 #include <netdb.h>
40478 int
40479 main ()
40480 {
40481
40482             char *name = "www.gnu.org";
40483             struct hostent ret, *retp;
40484             char buf[1024];
40485             int buflen = 1024;
40486             int my_h_errno;
40487             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40488
40489   ;
40490   return 0;
40491 }
40492 _ACEOF
40493 rm -f conftest.$ac_objext
40494 if { (ac_try="$ac_compile"
40495 case "(($ac_try" in
40496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40497   *) ac_try_echo=$ac_try;;
40498 esac
40499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40500   (eval "$ac_compile") 2>conftest.er1
40501   ac_status=$?
40502   grep -v '^ *+' conftest.er1 >conftest.err
40503   rm -f conftest.er1
40504   cat conftest.err >&5
40505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506   (exit $ac_status); } && {
40507          test -z "$ac_c_werror_flag" ||
40508          test ! -s conftest.err
40509        } && test -s conftest.$ac_objext; then
40510   ac_cv_func_which_gethostbyname_r=six
40511 else
40512   echo "$as_me: failed program was:" >&5
40513 sed 's/^/| /' conftest.$ac_ext >&5
40514
40515
40516 fi
40517
40518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40519
40520 fi
40521
40522 #
40523 # FIVE ARGUMENTS
40524 # (e.g. Solaris)
40525 #
40526
40527 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40528
40529 cat >conftest.$ac_ext <<_ACEOF
40530 /* confdefs.h.  */
40531 _ACEOF
40532 cat confdefs.h >>conftest.$ac_ext
40533 cat >>conftest.$ac_ext <<_ACEOF
40534 /* end confdefs.h.  */
40535 #include <netdb.h>
40536 int
40537 main ()
40538 {
40539
40540             char *name = "www.gnu.org";
40541             struct hostent ret;
40542             char buf[1024];
40543             int buflen = 1024;
40544             int my_h_errno;
40545             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40546
40547   ;
40548   return 0;
40549 }
40550 _ACEOF
40551 rm -f conftest.$ac_objext
40552 if { (ac_try="$ac_compile"
40553 case "(($ac_try" in
40554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40555   *) ac_try_echo=$ac_try;;
40556 esac
40557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40558   (eval "$ac_compile") 2>conftest.er1
40559   ac_status=$?
40560   grep -v '^ *+' conftest.er1 >conftest.err
40561   rm -f conftest.er1
40562   cat conftest.err >&5
40563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564   (exit $ac_status); } && {
40565          test -z "$ac_c_werror_flag" ||
40566          test ! -s conftest.err
40567        } && test -s conftest.$ac_objext; then
40568   ac_cv_func_which_gethostbyname_r=five
40569 else
40570   echo "$as_me: failed program was:" >&5
40571 sed 's/^/| /' conftest.$ac_ext >&5
40572
40573
40574 fi
40575
40576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40577
40578 fi
40579
40580 #
40581 # THREE ARGUMENTS
40582 # (e.g. AIX, HP-UX, Tru64)
40583 #
40584
40585 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40586
40587 cat >conftest.$ac_ext <<_ACEOF
40588 /* confdefs.h.  */
40589 _ACEOF
40590 cat confdefs.h >>conftest.$ac_ext
40591 cat >>conftest.$ac_ext <<_ACEOF
40592 /* end confdefs.h.  */
40593 #include <netdb.h>
40594 int
40595 main ()
40596 {
40597
40598             char *name = "www.gnu.org";
40599             struct hostent ret;
40600             struct hostent_data data;
40601             (void)gethostbyname_r(name, &ret, &data) /* ; */
40602
40603   ;
40604   return 0;
40605 }
40606 _ACEOF
40607 rm -f conftest.$ac_objext
40608 if { (ac_try="$ac_compile"
40609 case "(($ac_try" in
40610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40611   *) ac_try_echo=$ac_try;;
40612 esac
40613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40614   (eval "$ac_compile") 2>conftest.er1
40615   ac_status=$?
40616   grep -v '^ *+' conftest.er1 >conftest.err
40617   rm -f conftest.er1
40618   cat conftest.err >&5
40619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40620   (exit $ac_status); } && {
40621          test -z "$ac_c_werror_flag" ||
40622          test ! -s conftest.err
40623        } && test -s conftest.$ac_objext; then
40624   ac_cv_func_which_gethostbyname_r=three
40625 else
40626   echo "$as_me: failed program was:" >&5
40627 sed 's/^/| /' conftest.$ac_ext >&5
40628
40629
40630 fi
40631
40632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40633
40634 fi
40635
40636 ################################################################
40637
40638
40639 fi
40640
40641 case "$ac_cv_func_which_gethostbyname_r" in
40642     three)
40643     { echo "$as_me:$LINENO: result: three" >&5
40644 echo "${ECHO_T}three" >&6; }
40645     cat >>confdefs.h <<\_ACEOF
40646 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40647 _ACEOF
40648
40649     ;;
40650
40651     five)
40652     { echo "$as_me:$LINENO: result: five" >&5
40653 echo "${ECHO_T}five" >&6; }
40654     cat >>confdefs.h <<\_ACEOF
40655 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40656 _ACEOF
40657
40658     ;;
40659
40660     six)
40661     { echo "$as_me:$LINENO: result: six" >&5
40662 echo "${ECHO_T}six" >&6; }
40663     cat >>confdefs.h <<\_ACEOF
40664 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40665 _ACEOF
40666
40667     ;;
40668
40669     no)
40670     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40671 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40672     ;;
40673
40674     unknown)
40675     { echo "$as_me:$LINENO: result: can't tell" >&5
40676 echo "${ECHO_T}can't tell" >&6; }
40677     ;;
40678
40679     *)
40680     { { echo "$as_me:$LINENO: error: internal error" >&5
40681 echo "$as_me: error: internal error" >&2;}
40682    { (exit 1); exit 1; }; }
40683     ;;
40684 esac
40685
40686 ac_ext=c
40687 ac_cpp='$CPP $CPPFLAGS'
40688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40691
40692
40693
40694       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40695               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40696           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40697 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40698 if test "${ac_cv_func_gethostbyname+set}" = set; then
40699   echo $ECHO_N "(cached) $ECHO_C" >&6
40700 else
40701   cat >conftest.$ac_ext <<_ACEOF
40702 /* confdefs.h.  */
40703 _ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h.  */
40707 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40709 #define gethostbyname innocuous_gethostbyname
40710
40711 /* System header to define __stub macros and hopefully few prototypes,
40712     which can conflict with char gethostbyname (); below.
40713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40714     <limits.h> exists even on freestanding compilers.  */
40715
40716 #ifdef __STDC__
40717 # include <limits.h>
40718 #else
40719 # include <assert.h>
40720 #endif
40721
40722 #undef gethostbyname
40723
40724 /* Override any GCC internal prototype to avoid an error.
40725    Use char because int might match the return type of a GCC
40726    builtin and then its argument prototype would still apply.  */
40727 #ifdef __cplusplus
40728 extern "C"
40729 #endif
40730 char gethostbyname ();
40731 /* The GNU C library defines this for functions which it implements
40732     to always fail with ENOSYS.  Some functions are actually named
40733     something starting with __ and the normal name is an alias.  */
40734 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40735 choke me
40736 #endif
40737
40738 int
40739 main ()
40740 {
40741 return gethostbyname ();
40742   ;
40743   return 0;
40744 }
40745 _ACEOF
40746 rm -f conftest.$ac_objext conftest$ac_exeext
40747 if { (ac_try="$ac_link"
40748 case "(($ac_try" in
40749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40750   *) ac_try_echo=$ac_try;;
40751 esac
40752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40753   (eval "$ac_link") 2>conftest.er1
40754   ac_status=$?
40755   grep -v '^ *+' conftest.er1 >conftest.err
40756   rm -f conftest.er1
40757   cat conftest.err >&5
40758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759   (exit $ac_status); } && {
40760          test -z "$ac_c_werror_flag" ||
40761          test ! -s conftest.err
40762        } && test -s conftest$ac_exeext &&
40763        $as_test_x conftest$ac_exeext; then
40764   ac_cv_func_gethostbyname=yes
40765 else
40766   echo "$as_me: failed program was:" >&5
40767 sed 's/^/| /' conftest.$ac_ext >&5
40768
40769         ac_cv_func_gethostbyname=no
40770 fi
40771
40772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40773       conftest$ac_exeext conftest.$ac_ext
40774 fi
40775 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40776 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40777 if test $ac_cv_func_gethostbyname = yes; then
40778    cat >>confdefs.h <<\_ACEOF
40779 #define HAVE_GETHOSTBYNAME 1
40780 _ACEOF
40781
40782 fi
40783
40784       fi
40785
40786 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40787 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40788 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40789   echo $ECHO_N "(cached) $ECHO_C" >&6
40790 else
40791
40792                 ac_ext=cpp
40793 ac_cpp='$CXXCPP $CPPFLAGS'
40794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40797
40798
40799         cat >conftest.$ac_ext <<_ACEOF
40800 /* confdefs.h.  */
40801 _ACEOF
40802 cat confdefs.h >>conftest.$ac_ext
40803 cat >>conftest.$ac_ext <<_ACEOF
40804 /* end confdefs.h.  */
40805 #include <netdb.h>
40806 int
40807 main ()
40808 {
40809
40810                 char *name;
40811                 char *proto;
40812                 struct servent *se, *res;
40813                 char buffer[2048];
40814                 int buflen = 2048;
40815                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40816
40817   ;
40818   return 0;
40819 }
40820 _ACEOF
40821 rm -f conftest.$ac_objext
40822 if { (ac_try="$ac_compile"
40823 case "(($ac_try" in
40824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40825   *) ac_try_echo=$ac_try;;
40826 esac
40827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40828   (eval "$ac_compile") 2>conftest.er1
40829   ac_status=$?
40830   grep -v '^ *+' conftest.er1 >conftest.err
40831   rm -f conftest.er1
40832   cat conftest.err >&5
40833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834   (exit $ac_status); } && {
40835          test -z "$ac_cxx_werror_flag" ||
40836          test ! -s conftest.err
40837        } && test -s conftest.$ac_objext; then
40838   ac_cv_func_which_getservbyname_r=six
40839 else
40840   echo "$as_me: failed program was:" >&5
40841 sed 's/^/| /' conftest.$ac_ext >&5
40842
40843
40844                 cat >conftest.$ac_ext <<_ACEOF
40845 /* confdefs.h.  */
40846 _ACEOF
40847 cat confdefs.h >>conftest.$ac_ext
40848 cat >>conftest.$ac_ext <<_ACEOF
40849 /* end confdefs.h.  */
40850 #include <netdb.h>
40851 int
40852 main ()
40853 {
40854
40855                         char *name;
40856                         char *proto;
40857                         struct servent *se;
40858                         char buffer[2048];
40859                         int buflen = 2048;
40860                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40861
40862   ;
40863   return 0;
40864 }
40865 _ACEOF
40866 rm -f conftest.$ac_objext
40867 if { (ac_try="$ac_compile"
40868 case "(($ac_try" in
40869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40870   *) ac_try_echo=$ac_try;;
40871 esac
40872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40873   (eval "$ac_compile") 2>conftest.er1
40874   ac_status=$?
40875   grep -v '^ *+' conftest.er1 >conftest.err
40876   rm -f conftest.er1
40877   cat conftest.err >&5
40878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879   (exit $ac_status); } && {
40880          test -z "$ac_cxx_werror_flag" ||
40881          test ! -s conftest.err
40882        } && test -s conftest.$ac_objext; then
40883   ac_cv_func_which_getservbyname_r=five
40884 else
40885   echo "$as_me: failed program was:" >&5
40886 sed 's/^/| /' conftest.$ac_ext >&5
40887
40888
40889                         cat >conftest.$ac_ext <<_ACEOF
40890 /* confdefs.h.  */
40891 _ACEOF
40892 cat confdefs.h >>conftest.$ac_ext
40893 cat >>conftest.$ac_ext <<_ACEOF
40894 /* end confdefs.h.  */
40895 #include <netdb.h>
40896 int
40897 main ()
40898 {
40899
40900                                 char *name;
40901                                 char *proto;
40902                                 struct servent *se;
40903                                 struct servent_data data;
40904                                 (void) getservbyname_r(name, proto, se, &data);
40905
40906   ;
40907   return 0;
40908 }
40909 _ACEOF
40910 rm -f conftest.$ac_objext
40911 if { (ac_try="$ac_compile"
40912 case "(($ac_try" in
40913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40914   *) ac_try_echo=$ac_try;;
40915 esac
40916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40917   (eval "$ac_compile") 2>conftest.er1
40918   ac_status=$?
40919   grep -v '^ *+' conftest.er1 >conftest.err
40920   rm -f conftest.er1
40921   cat conftest.err >&5
40922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923   (exit $ac_status); } && {
40924          test -z "$ac_cxx_werror_flag" ||
40925          test ! -s conftest.err
40926        } && test -s conftest.$ac_objext; then
40927   ac_cv_func_which_getservbyname_r=four
40928 else
40929   echo "$as_me: failed program was:" >&5
40930 sed 's/^/| /' conftest.$ac_ext >&5
40931
40932         ac_cv_func_which_getservbyname_r=no
40933
40934 fi
40935
40936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40937
40938
40939 fi
40940
40941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40942
40943
40944 fi
40945
40946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40947         ac_ext=c
40948 ac_cpp='$CPP $CPPFLAGS'
40949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40952
40953
40954
40955 fi
40956 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40957 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40958
40959 if test $ac_cv_func_which_getservbyname_r = six; then
40960   cat >>confdefs.h <<\_ACEOF
40961 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40962 _ACEOF
40963
40964 elif test $ac_cv_func_which_getservbyname_r = five; then
40965   cat >>confdefs.h <<\_ACEOF
40966 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40967 _ACEOF
40968
40969 elif test $ac_cv_func_which_getservbyname_r = four; then
40970   cat >>confdefs.h <<\_ACEOF
40971 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40972 _ACEOF
40973
40974 fi
40975
40976
40977       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40978               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40979
40980 for ac_func in getservbyname
40981 do
40982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40986   echo $ECHO_N "(cached) $ECHO_C" >&6
40987 else
40988   cat >conftest.$ac_ext <<_ACEOF
40989 /* confdefs.h.  */
40990 _ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h.  */
40994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40996 #define $ac_func innocuous_$ac_func
40997
40998 /* System header to define __stub macros and hopefully few prototypes,
40999     which can conflict with char $ac_func (); below.
41000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41001     <limits.h> exists even on freestanding compilers.  */
41002
41003 #ifdef __STDC__
41004 # include <limits.h>
41005 #else
41006 # include <assert.h>
41007 #endif
41008
41009 #undef $ac_func
41010
41011 /* Override any GCC internal prototype to avoid an error.
41012    Use char because int might match the return type of a GCC
41013    builtin and then its argument prototype would still apply.  */
41014 #ifdef __cplusplus
41015 extern "C"
41016 #endif
41017 char $ac_func ();
41018 /* The GNU C library defines this for functions which it implements
41019     to always fail with ENOSYS.  Some functions are actually named
41020     something starting with __ and the normal name is an alias.  */
41021 #if defined __stub_$ac_func || defined __stub___$ac_func
41022 choke me
41023 #endif
41024
41025 int
41026 main ()
41027 {
41028 return $ac_func ();
41029   ;
41030   return 0;
41031 }
41032 _ACEOF
41033 rm -f conftest.$ac_objext conftest$ac_exeext
41034 if { (ac_try="$ac_link"
41035 case "(($ac_try" in
41036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41037   *) ac_try_echo=$ac_try;;
41038 esac
41039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41040   (eval "$ac_link") 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } && {
41047          test -z "$ac_c_werror_flag" ||
41048          test ! -s conftest.err
41049        } && test -s conftest$ac_exeext &&
41050        $as_test_x conftest$ac_exeext; then
41051   eval "$as_ac_var=yes"
41052 else
41053   echo "$as_me: failed program was:" >&5
41054 sed 's/^/| /' conftest.$ac_ext >&5
41055
41056         eval "$as_ac_var=no"
41057 fi
41058
41059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41060       conftest$ac_exeext conftest.$ac_ext
41061 fi
41062 ac_res=`eval echo '${'$as_ac_var'}'`
41063                { echo "$as_me:$LINENO: result: $ac_res" >&5
41064 echo "${ECHO_T}$ac_res" >&6; }
41065 if test `eval echo '${'$as_ac_var'}'` = yes; then
41066   cat >>confdefs.h <<_ACEOF
41067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41068 _ACEOF
41069   cat >>confdefs.h <<\_ACEOF
41070 #define HAVE_GETSERVBYNAME 1
41071 _ACEOF
41072
41073 fi
41074 done
41075
41076       fi
41077
41078 if test "$wxUSE_THREADS" = "yes"; then
41079   cat >>confdefs.h <<\_ACEOF
41080 #define wxUSE_THREADS 1
41081 _ACEOF
41082
41083
41084   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41085 else
41086       if test "$wx_cv_func_strtok_r" = "yes"; then
41087     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41088 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41089     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41090         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41091         { echo "$as_me:$LINENO: result: yes" >&5
41092 echo "${ECHO_T}yes" >&6; }
41093     else
41094         { echo "$as_me:$LINENO: result: no" >&5
41095 echo "${ECHO_T}no" >&6; }
41096     fi
41097   fi
41098 fi
41099
41100 if test "$WXGTK2" = 1 ; then
41101   cat >>confdefs.h <<_ACEOF
41102 #define __WXGTK20__ $WXGTK2
41103 _ACEOF
41104
41105   WXGTK12=1
41106 fi
41107
41108 if test "$WXGTK12" = 1 ; then
41109   cat >>confdefs.h <<_ACEOF
41110 #define __WXGTK12__ $WXGTK12
41111 _ACEOF
41112
41113 fi
41114
41115 if test "$WXGTK127" = 1 ; then
41116   cat >>confdefs.h <<_ACEOF
41117 #define __WXGTK127__ $WXGTK127
41118 _ACEOF
41119
41120 fi
41121
41122 if test "$WXGPE" = 1 ; then
41123   cat >>confdefs.h <<_ACEOF
41124 #define __WXGPE__ $WXGPE
41125 _ACEOF
41126
41127 fi
41128
41129 DEBUG_CFLAGS=
41130 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41131     DEBUG_CFLAGS="-g"
41132     wxUSE_OPTIMISE=no
41133 fi
41134
41135 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41136     wxUSE_DEBUG_INFO=yes
41137     if test "$GCC" = yes; then
41138         DEBUG_CFLAGS="-ggdb"
41139     fi
41140 fi
41141
41142 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41143     cat >>confdefs.h <<\_ACEOF
41144 #define WXDEBUG 1
41145 _ACEOF
41146
41147     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41148 else
41149     if test "$wxUSE_GTK" = 1 ; then
41150         if test "x$wxGTK_VERSION" = "x1" ; then
41151             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41152         fi
41153     fi
41154 fi
41155
41156 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41157     cat >>confdefs.h <<\_ACEOF
41158 #define wxUSE_MEMORY_TRACING 1
41159 _ACEOF
41160
41161     cat >>confdefs.h <<\_ACEOF
41162 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41163 _ACEOF
41164
41165     cat >>confdefs.h <<\_ACEOF
41166 #define wxUSE_DEBUG_NEW_ALWAYS 1
41167 _ACEOF
41168
41169     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41170 fi
41171
41172 if test "$wxUSE_DMALLOC" = "yes" ; then
41173     DMALLOC_LIBS="-ldmallocthcxx"
41174 fi
41175
41176 PROFILE_FLAGS=
41177 if test "$wxUSE_PROFILE" = "yes" ; then
41178     PROFILE_FLAGS=" -pg"
41179 fi
41180
41181 if test "$GCC" = "yes" ; then
41182     if test "$wxUSE_NO_RTTI" = "yes" ; then
41183         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41184     fi
41185     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41186         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41187     fi
41188     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41189         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41190     fi
41191
41192                                                 case "${host}" in
41193       powerpc*-*-aix* )
41194         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41195         ;;
41196       *-hppa* )
41197         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41198         ;;
41199     esac
41200 fi
41201
41202 OPTIMISE_CFLAGS=
41203 if test "$wxUSE_OPTIMISE" = "no" ; then
41204     if test "$GCC" = yes ; then
41205                         OPTIMISE_CFLAGS="-O0"
41206     fi
41207 else
41208     if test "$GCC" = yes ; then
41209         case "${host}" in
41210             *-pc-os2_emx | *-pc-os2-emx )
41211                                                 OPTIMISE_CFLAGS="-O2"
41212             ;;
41213             *)
41214                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41215             ;;
41216         esac
41217     else
41218         OPTIMISE_CFLAGS="-O"
41219     fi
41220 fi
41221
41222
41223 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41224     cat >>confdefs.h <<\_ACEOF
41225 #define WXWIN_COMPATIBILITY_2_6 1
41226 _ACEOF
41227
41228
41229     WXWIN_COMPATIBILITY_2_8="yes"
41230 fi
41231
41232 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41233     cat >>confdefs.h <<\_ACEOF
41234 #define WXWIN_COMPATIBILITY_2_8 1
41235 _ACEOF
41236
41237 fi
41238
41239
41240 if test "$wxUSE_GUI" = "yes"; then
41241     cat >>confdefs.h <<\_ACEOF
41242 #define wxUSE_GUI 1
41243 _ACEOF
41244
41245
41246                                             fi
41247
41248
41249 if test "$wxUSE_UNIX" = "yes"; then
41250   cat >>confdefs.h <<\_ACEOF
41251 #define wxUSE_UNIX 1
41252 _ACEOF
41253
41254 fi
41255
41256
41257 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41258
41259     HAVE_DL_FUNCS=0
41260     HAVE_SHL_FUNCS=0
41261     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41262         if test "$USE_DOS" = 1; then
41263             HAVE_DL_FUNCS=0
41264         else
41265
41266 for ac_func in dlopen
41267 do
41268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41272   echo $ECHO_N "(cached) $ECHO_C" >&6
41273 else
41274   cat >conftest.$ac_ext <<_ACEOF
41275 /* confdefs.h.  */
41276 _ACEOF
41277 cat confdefs.h >>conftest.$ac_ext
41278 cat >>conftest.$ac_ext <<_ACEOF
41279 /* end confdefs.h.  */
41280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41282 #define $ac_func innocuous_$ac_func
41283
41284 /* System header to define __stub macros and hopefully few prototypes,
41285     which can conflict with char $ac_func (); below.
41286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41287     <limits.h> exists even on freestanding compilers.  */
41288
41289 #ifdef __STDC__
41290 # include <limits.h>
41291 #else
41292 # include <assert.h>
41293 #endif
41294
41295 #undef $ac_func
41296
41297 /* Override any GCC internal prototype to avoid an error.
41298    Use char because int might match the return type of a GCC
41299    builtin and then its argument prototype would still apply.  */
41300 #ifdef __cplusplus
41301 extern "C"
41302 #endif
41303 char $ac_func ();
41304 /* The GNU C library defines this for functions which it implements
41305     to always fail with ENOSYS.  Some functions are actually named
41306     something starting with __ and the normal name is an alias.  */
41307 #if defined __stub_$ac_func || defined __stub___$ac_func
41308 choke me
41309 #endif
41310
41311 int
41312 main ()
41313 {
41314 return $ac_func ();
41315   ;
41316   return 0;
41317 }
41318 _ACEOF
41319 rm -f conftest.$ac_objext conftest$ac_exeext
41320 if { (ac_try="$ac_link"
41321 case "(($ac_try" in
41322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41323   *) ac_try_echo=$ac_try;;
41324 esac
41325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41326   (eval "$ac_link") 2>conftest.er1
41327   ac_status=$?
41328   grep -v '^ *+' conftest.er1 >conftest.err
41329   rm -f conftest.er1
41330   cat conftest.err >&5
41331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41332   (exit $ac_status); } && {
41333          test -z "$ac_c_werror_flag" ||
41334          test ! -s conftest.err
41335        } && test -s conftest$ac_exeext &&
41336        $as_test_x conftest$ac_exeext; then
41337   eval "$as_ac_var=yes"
41338 else
41339   echo "$as_me: failed program was:" >&5
41340 sed 's/^/| /' conftest.$ac_ext >&5
41341
41342         eval "$as_ac_var=no"
41343 fi
41344
41345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41346       conftest$ac_exeext conftest.$ac_ext
41347 fi
41348 ac_res=`eval echo '${'$as_ac_var'}'`
41349                { echo "$as_me:$LINENO: result: $ac_res" >&5
41350 echo "${ECHO_T}$ac_res" >&6; }
41351 if test `eval echo '${'$as_ac_var'}'` = yes; then
41352   cat >>confdefs.h <<_ACEOF
41353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41354 _ACEOF
41355
41356                 cat >>confdefs.h <<\_ACEOF
41357 #define HAVE_DLOPEN 1
41358 _ACEOF
41359
41360                 HAVE_DL_FUNCS=1
41361
41362 else
41363
41364                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41367   echo $ECHO_N "(cached) $ECHO_C" >&6
41368 else
41369   ac_check_lib_save_LIBS=$LIBS
41370 LIBS="-ldl  $LIBS"
41371 cat >conftest.$ac_ext <<_ACEOF
41372 /* confdefs.h.  */
41373 _ACEOF
41374 cat confdefs.h >>conftest.$ac_ext
41375 cat >>conftest.$ac_ext <<_ACEOF
41376 /* end confdefs.h.  */
41377
41378 /* Override any GCC internal prototype to avoid an error.
41379    Use char because int might match the return type of a GCC
41380    builtin and then its argument prototype would still apply.  */
41381 #ifdef __cplusplus
41382 extern "C"
41383 #endif
41384 char dlopen ();
41385 int
41386 main ()
41387 {
41388 return dlopen ();
41389   ;
41390   return 0;
41391 }
41392 _ACEOF
41393 rm -f conftest.$ac_objext conftest$ac_exeext
41394 if { (ac_try="$ac_link"
41395 case "(($ac_try" in
41396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41397   *) ac_try_echo=$ac_try;;
41398 esac
41399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41400   (eval "$ac_link") 2>conftest.er1
41401   ac_status=$?
41402   grep -v '^ *+' conftest.er1 >conftest.err
41403   rm -f conftest.er1
41404   cat conftest.err >&5
41405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41406   (exit $ac_status); } && {
41407          test -z "$ac_c_werror_flag" ||
41408          test ! -s conftest.err
41409        } && test -s conftest$ac_exeext &&
41410        $as_test_x conftest$ac_exeext; then
41411   ac_cv_lib_dl_dlopen=yes
41412 else
41413   echo "$as_me: failed program was:" >&5
41414 sed 's/^/| /' conftest.$ac_ext >&5
41415
41416         ac_cv_lib_dl_dlopen=no
41417 fi
41418
41419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41420       conftest$ac_exeext conftest.$ac_ext
41421 LIBS=$ac_check_lib_save_LIBS
41422 fi
41423 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41424 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41425 if test $ac_cv_lib_dl_dlopen = yes; then
41426
41427                                 cat >>confdefs.h <<\_ACEOF
41428 #define HAVE_DLOPEN 1
41429 _ACEOF
41430
41431                                 HAVE_DL_FUNCS=1
41432                                 DL_LINK=" -ldl$DL_LINK"
41433
41434 else
41435
41436
41437 for ac_func in shl_load
41438 do
41439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41443   echo $ECHO_N "(cached) $ECHO_C" >&6
41444 else
41445   cat >conftest.$ac_ext <<_ACEOF
41446 /* confdefs.h.  */
41447 _ACEOF
41448 cat confdefs.h >>conftest.$ac_ext
41449 cat >>conftest.$ac_ext <<_ACEOF
41450 /* end confdefs.h.  */
41451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41453 #define $ac_func innocuous_$ac_func
41454
41455 /* System header to define __stub macros and hopefully few prototypes,
41456     which can conflict with char $ac_func (); below.
41457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41458     <limits.h> exists even on freestanding compilers.  */
41459
41460 #ifdef __STDC__
41461 # include <limits.h>
41462 #else
41463 # include <assert.h>
41464 #endif
41465
41466 #undef $ac_func
41467
41468 /* Override any GCC internal prototype to avoid an error.
41469    Use char because int might match the return type of a GCC
41470    builtin and then its argument prototype would still apply.  */
41471 #ifdef __cplusplus
41472 extern "C"
41473 #endif
41474 char $ac_func ();
41475 /* The GNU C library defines this for functions which it implements
41476     to always fail with ENOSYS.  Some functions are actually named
41477     something starting with __ and the normal name is an alias.  */
41478 #if defined __stub_$ac_func || defined __stub___$ac_func
41479 choke me
41480 #endif
41481
41482 int
41483 main ()
41484 {
41485 return $ac_func ();
41486   ;
41487   return 0;
41488 }
41489 _ACEOF
41490 rm -f conftest.$ac_objext conftest$ac_exeext
41491 if { (ac_try="$ac_link"
41492 case "(($ac_try" in
41493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41494   *) ac_try_echo=$ac_try;;
41495 esac
41496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41497   (eval "$ac_link") 2>conftest.er1
41498   ac_status=$?
41499   grep -v '^ *+' conftest.er1 >conftest.err
41500   rm -f conftest.er1
41501   cat conftest.err >&5
41502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503   (exit $ac_status); } && {
41504          test -z "$ac_c_werror_flag" ||
41505          test ! -s conftest.err
41506        } && test -s conftest$ac_exeext &&
41507        $as_test_x conftest$ac_exeext; then
41508   eval "$as_ac_var=yes"
41509 else
41510   echo "$as_me: failed program was:" >&5
41511 sed 's/^/| /' conftest.$ac_ext >&5
41512
41513         eval "$as_ac_var=no"
41514 fi
41515
41516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41517       conftest$ac_exeext conftest.$ac_ext
41518 fi
41519 ac_res=`eval echo '${'$as_ac_var'}'`
41520                { echo "$as_me:$LINENO: result: $ac_res" >&5
41521 echo "${ECHO_T}$ac_res" >&6; }
41522 if test `eval echo '${'$as_ac_var'}'` = yes; then
41523   cat >>confdefs.h <<_ACEOF
41524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41525 _ACEOF
41526
41527                                                 cat >>confdefs.h <<\_ACEOF
41528 #define HAVE_SHL_LOAD 1
41529 _ACEOF
41530
41531                                                 HAVE_SHL_FUNCS=1
41532
41533 else
41534
41535                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41536 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41537 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41538   echo $ECHO_N "(cached) $ECHO_C" >&6
41539 else
41540   ac_check_lib_save_LIBS=$LIBS
41541 LIBS="-lshl_load  $LIBS"
41542 cat >conftest.$ac_ext <<_ACEOF
41543 /* confdefs.h.  */
41544 _ACEOF
41545 cat confdefs.h >>conftest.$ac_ext
41546 cat >>conftest.$ac_ext <<_ACEOF
41547 /* end confdefs.h.  */
41548
41549 /* Override any GCC internal prototype to avoid an error.
41550    Use char because int might match the return type of a GCC
41551    builtin and then its argument prototype would still apply.  */
41552 #ifdef __cplusplus
41553 extern "C"
41554 #endif
41555 char dld ();
41556 int
41557 main ()
41558 {
41559 return dld ();
41560   ;
41561   return 0;
41562 }
41563 _ACEOF
41564 rm -f conftest.$ac_objext conftest$ac_exeext
41565 if { (ac_try="$ac_link"
41566 case "(($ac_try" in
41567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41568   *) ac_try_echo=$ac_try;;
41569 esac
41570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41571   (eval "$ac_link") 2>conftest.er1
41572   ac_status=$?
41573   grep -v '^ *+' conftest.er1 >conftest.err
41574   rm -f conftest.er1
41575   cat conftest.err >&5
41576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41577   (exit $ac_status); } && {
41578          test -z "$ac_c_werror_flag" ||
41579          test ! -s conftest.err
41580        } && test -s conftest$ac_exeext &&
41581        $as_test_x conftest$ac_exeext; then
41582   ac_cv_lib_shl_load_dld=yes
41583 else
41584   echo "$as_me: failed program was:" >&5
41585 sed 's/^/| /' conftest.$ac_ext >&5
41586
41587         ac_cv_lib_shl_load_dld=no
41588 fi
41589
41590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41591       conftest$ac_exeext conftest.$ac_ext
41592 LIBS=$ac_check_lib_save_LIBS
41593 fi
41594 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41595 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41596 if test $ac_cv_lib_shl_load_dld = yes; then
41597
41598                                                                 HAVE_SHL_FUNCS=1
41599                                                                 DL_LINK=" -ldld$DL_LINK"
41600
41601 fi
41602
41603
41604 fi
41605 done
41606
41607
41608 fi
41609
41610
41611 fi
41612 done
41613
41614
41615                         if test "$HAVE_DL_FUNCS" = 1; then
41616
41617 for ac_func in dlerror
41618 do
41619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41623   echo $ECHO_N "(cached) $ECHO_C" >&6
41624 else
41625   cat >conftest.$ac_ext <<_ACEOF
41626 /* confdefs.h.  */
41627 _ACEOF
41628 cat confdefs.h >>conftest.$ac_ext
41629 cat >>conftest.$ac_ext <<_ACEOF
41630 /* end confdefs.h.  */
41631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41633 #define $ac_func innocuous_$ac_func
41634
41635 /* System header to define __stub macros and hopefully few prototypes,
41636     which can conflict with char $ac_func (); below.
41637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41638     <limits.h> exists even on freestanding compilers.  */
41639
41640 #ifdef __STDC__
41641 # include <limits.h>
41642 #else
41643 # include <assert.h>
41644 #endif
41645
41646 #undef $ac_func
41647
41648 /* Override any GCC internal prototype to avoid an error.
41649    Use char because int might match the return type of a GCC
41650    builtin and then its argument prototype would still apply.  */
41651 #ifdef __cplusplus
41652 extern "C"
41653 #endif
41654 char $ac_func ();
41655 /* The GNU C library defines this for functions which it implements
41656     to always fail with ENOSYS.  Some functions are actually named
41657     something starting with __ and the normal name is an alias.  */
41658 #if defined __stub_$ac_func || defined __stub___$ac_func
41659 choke me
41660 #endif
41661
41662 int
41663 main ()
41664 {
41665 return $ac_func ();
41666   ;
41667   return 0;
41668 }
41669 _ACEOF
41670 rm -f conftest.$ac_objext conftest$ac_exeext
41671 if { (ac_try="$ac_link"
41672 case "(($ac_try" in
41673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41674   *) ac_try_echo=$ac_try;;
41675 esac
41676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41677   (eval "$ac_link") 2>conftest.er1
41678   ac_status=$?
41679   grep -v '^ *+' conftest.er1 >conftest.err
41680   rm -f conftest.er1
41681   cat conftest.err >&5
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); } && {
41684          test -z "$ac_c_werror_flag" ||
41685          test ! -s conftest.err
41686        } && test -s conftest$ac_exeext &&
41687        $as_test_x conftest$ac_exeext; then
41688   eval "$as_ac_var=yes"
41689 else
41690   echo "$as_me: failed program was:" >&5
41691 sed 's/^/| /' conftest.$ac_ext >&5
41692
41693         eval "$as_ac_var=no"
41694 fi
41695
41696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41697       conftest$ac_exeext conftest.$ac_ext
41698 fi
41699 ac_res=`eval echo '${'$as_ac_var'}'`
41700                { echo "$as_me:$LINENO: result: $ac_res" >&5
41701 echo "${ECHO_T}$ac_res" >&6; }
41702 if test `eval echo '${'$as_ac_var'}'` = yes; then
41703   cat >>confdefs.h <<_ACEOF
41704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41705 _ACEOF
41706  cat >>confdefs.h <<\_ACEOF
41707 #define HAVE_DLERROR 1
41708 _ACEOF
41709
41710 else
41711
41712                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41713 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41714 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41715   echo $ECHO_N "(cached) $ECHO_C" >&6
41716 else
41717   ac_check_lib_save_LIBS=$LIBS
41718 LIBS="-ldl  $LIBS"
41719 cat >conftest.$ac_ext <<_ACEOF
41720 /* confdefs.h.  */
41721 _ACEOF
41722 cat confdefs.h >>conftest.$ac_ext
41723 cat >>conftest.$ac_ext <<_ACEOF
41724 /* end confdefs.h.  */
41725
41726 /* Override any GCC internal prototype to avoid an error.
41727    Use char because int might match the return type of a GCC
41728    builtin and then its argument prototype would still apply.  */
41729 #ifdef __cplusplus
41730 extern "C"
41731 #endif
41732 char dlerror ();
41733 int
41734 main ()
41735 {
41736 return dlerror ();
41737   ;
41738   return 0;
41739 }
41740 _ACEOF
41741 rm -f conftest.$ac_objext conftest$ac_exeext
41742 if { (ac_try="$ac_link"
41743 case "(($ac_try" in
41744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41745   *) ac_try_echo=$ac_try;;
41746 esac
41747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41748   (eval "$ac_link") 2>conftest.er1
41749   ac_status=$?
41750   grep -v '^ *+' conftest.er1 >conftest.err
41751   rm -f conftest.er1
41752   cat conftest.err >&5
41753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754   (exit $ac_status); } && {
41755          test -z "$ac_c_werror_flag" ||
41756          test ! -s conftest.err
41757        } && test -s conftest$ac_exeext &&
41758        $as_test_x conftest$ac_exeext; then
41759   ac_cv_lib_dl_dlerror=yes
41760 else
41761   echo "$as_me: failed program was:" >&5
41762 sed 's/^/| /' conftest.$ac_ext >&5
41763
41764         ac_cv_lib_dl_dlerror=no
41765 fi
41766
41767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41768       conftest$ac_exeext conftest.$ac_ext
41769 LIBS=$ac_check_lib_save_LIBS
41770 fi
41771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41772 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41773 if test $ac_cv_lib_dl_dlerror = yes; then
41774   cat >>confdefs.h <<\_ACEOF
41775 #define HAVE_DLERROR 1
41776 _ACEOF
41777
41778 fi
41779
41780
41781
41782 fi
41783 done
41784
41785             fi
41786         fi
41787
41788                 if test "$USE_DARWIN" = 1; then
41789                         HAVE_DL_FUNCS=1
41790         fi
41791
41792         if test "$HAVE_DL_FUNCS" = 0; then
41793             if test "$HAVE_SHL_FUNCS" = 0; then
41794               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41795                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41796 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41797                   wxUSE_DYNAMIC_LOADER=no
41798                   wxUSE_DYNLIB_CLASS=no
41799               else
41800                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41801 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41802               fi
41803             fi
41804         fi
41805     fi
41806 fi
41807
41808 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41809     cat >>confdefs.h <<\_ACEOF
41810 #define wxUSE_DYNAMIC_LOADER 1
41811 _ACEOF
41812
41813 fi
41814 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41815     cat >>confdefs.h <<\_ACEOF
41816 #define wxUSE_DYNLIB_CLASS 1
41817 _ACEOF
41818
41819 fi
41820
41821
41822
41823 if test "$wxUSE_PLUGINS" = "yes" ; then
41824     if test "$wxUSE_SHARED" = "no" ; then
41825         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41826 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41827         wxUSE_PLUGINS=no
41828     fi
41829     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41830         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41831 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41832         wxUSE_PLUGINS=no
41833     fi
41834     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41835         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41836 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41837         wxUSE_PLUGINS=no
41838     fi
41839     if test "$wxUSE_PLUGINS" = "yes" ; then
41840         cat >>confdefs.h <<\_ACEOF
41841 #define wxUSE_PLUGINS 1
41842 _ACEOF
41843
41844     fi
41845 fi
41846
41847
41848 if test "$wxUSE_STL" = "yes"; then
41849   cat >>confdefs.h <<\_ACEOF
41850 #define wxUSE_STL 1
41851 _ACEOF
41852
41853 fi
41854
41855 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41856   cat >>confdefs.h <<\_ACEOF
41857 #define wxUSE_EXTENDED_RTTI 1
41858 _ACEOF
41859
41860 fi
41861
41862 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41863   cat >>confdefs.h <<\_ACEOF
41864 #define wxUSE_APPLE_IEEE 1
41865 _ACEOF
41866
41867 fi
41868
41869 if test "$wxUSE_TIMER" = "yes"; then
41870   cat >>confdefs.h <<\_ACEOF
41871 #define wxUSE_TIMER 1
41872 _ACEOF
41873
41874 fi
41875
41876 if test "$USE_UNIX" = 1 ; then
41877         if test "$wxUSE_MGL" != 1; then
41878                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41879 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41880 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41881   echo $ECHO_N "(cached) $ECHO_C" >&6
41882 else
41883
41884             cat >conftest.$ac_ext <<_ACEOF
41885 /* confdefs.h.  */
41886 _ACEOF
41887 cat confdefs.h >>conftest.$ac_ext
41888 cat >>conftest.$ac_ext <<_ACEOF
41889 /* end confdefs.h.  */
41890
41891                     #include <sys/ioctl.h>
41892                     #include <sys/soundcard.h>
41893
41894 int
41895 main ()
41896 {
41897
41898                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41899
41900   ;
41901   return 0;
41902 }
41903 _ACEOF
41904 rm -f conftest.$ac_objext conftest$ac_exeext
41905 if { (ac_try="$ac_link"
41906 case "(($ac_try" in
41907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41908   *) ac_try_echo=$ac_try;;
41909 esac
41910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41911   (eval "$ac_link") 2>conftest.er1
41912   ac_status=$?
41913   grep -v '^ *+' conftest.er1 >conftest.err
41914   rm -f conftest.er1
41915   cat conftest.err >&5
41916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917   (exit $ac_status); } && {
41918          test -z "$ac_c_werror_flag" ||
41919          test ! -s conftest.err
41920        } && test -s conftest$ac_exeext &&
41921        $as_test_x conftest$ac_exeext; then
41922   ac_cv_header_sys_soundcard=yes
41923 else
41924   echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41926
41927
41928                     saveLibs="$LIBS"
41929                     LIBS="$saveLibs -lossaudio"
41930                     cat >conftest.$ac_ext <<_ACEOF
41931 /* confdefs.h.  */
41932 _ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h.  */
41936
41937                             #include <sys/ioctl.h>
41938                             #include <sys/soundcard.h>
41939
41940 int
41941 main ()
41942 {
41943
41944                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41945
41946   ;
41947   return 0;
41948 }
41949 _ACEOF
41950 rm -f conftest.$ac_objext conftest$ac_exeext
41951 if { (ac_try="$ac_link"
41952 case "(($ac_try" in
41953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41954   *) ac_try_echo=$ac_try;;
41955 esac
41956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41957   (eval "$ac_link") 2>conftest.er1
41958   ac_status=$?
41959   grep -v '^ *+' conftest.er1 >conftest.err
41960   rm -f conftest.er1
41961   cat conftest.err >&5
41962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963   (exit $ac_status); } && {
41964          test -z "$ac_c_werror_flag" ||
41965          test ! -s conftest.err
41966        } && test -s conftest$ac_exeext &&
41967        $as_test_x conftest$ac_exeext; then
41968   ac_cv_header_sys_soundcard=yes
41969 else
41970   echo "$as_me: failed program was:" >&5
41971 sed 's/^/| /' conftest.$ac_ext >&5
41972
41973
41974                             LIBS="$saveLibs"
41975                             ac_cv_header_sys_soundcard=no
41976
41977
41978 fi
41979
41980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41981       conftest$ac_exeext conftest.$ac_ext
41982
41983
41984 fi
41985
41986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41987       conftest$ac_exeext conftest.$ac_ext
41988
41989 fi
41990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41991 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41992     fi
41993
41994     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41995         cat >>confdefs.h <<\_ACEOF
41996 #define HAVE_SYS_SOUNDCARD_H 1
41997 _ACEOF
41998
41999     fi
42000 fi
42001
42002 WITH_PLUGIN_SDL=0
42003 if test "$wxUSE_SOUND" = "yes"; then
42004   if test "$USE_UNIX" = 1 ; then
42005     if test "$wxUSE_LIBSDL" != "no"; then
42006
42007 # Check whether --with-sdl-prefix was given.
42008 if test "${with_sdl_prefix+set}" = set; then
42009   withval=$with_sdl_prefix; sdl_prefix="$withval"
42010 else
42011   sdl_prefix=""
42012 fi
42013
42014
42015 # Check whether --with-sdl-exec-prefix was given.
42016 if test "${with_sdl_exec_prefix+set}" = set; then
42017   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42018 else
42019   sdl_exec_prefix=""
42020 fi
42021
42022 # Check whether --enable-sdltest was given.
42023 if test "${enable_sdltest+set}" = set; then
42024   enableval=$enable_sdltest;
42025 else
42026   enable_sdltest=yes
42027 fi
42028
42029
42030   if test x$sdl_exec_prefix != x ; then
42031     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42032     if test x${SDL_CONFIG+set} != xset ; then
42033       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42034     fi
42035   fi
42036   if test x$sdl_prefix != x ; then
42037     sdl_args="$sdl_args --prefix=$sdl_prefix"
42038     if test x${SDL_CONFIG+set} != xset ; then
42039       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42040     fi
42041   fi
42042
42043   if test "x$prefix" != xNONE; then
42044     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42045   fi
42046   # Extract the first word of "sdl-config", so it can be a program name with args.
42047 set dummy sdl-config; ac_word=$2
42048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42050 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42051   echo $ECHO_N "(cached) $ECHO_C" >&6
42052 else
42053   case $SDL_CONFIG in
42054   [\\/]* | ?:[\\/]*)
42055   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42056   ;;
42057   *)
42058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42059 for as_dir in $PATH
42060 do
42061   IFS=$as_save_IFS
42062   test -z "$as_dir" && as_dir=.
42063   for ac_exec_ext in '' $ac_executable_extensions; do
42064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42065     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42067     break 2
42068   fi
42069 done
42070 done
42071 IFS=$as_save_IFS
42072
42073   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42074   ;;
42075 esac
42076 fi
42077 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42078 if test -n "$SDL_CONFIG"; then
42079   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42080 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42081 else
42082   { echo "$as_me:$LINENO: result: no" >&5
42083 echo "${ECHO_T}no" >&6; }
42084 fi
42085
42086
42087   min_sdl_version=1.2.0
42088   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42089 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42090   no_sdl=""
42091   if test "$SDL_CONFIG" = "no" ; then
42092     no_sdl=yes
42093   else
42094     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42095     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42096
42097     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42098            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42099     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42100            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42101     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42102            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42103     if test "x$enable_sdltest" = "xyes" ; then
42104       ac_save_CFLAGS="$CFLAGS"
42105       ac_save_CXXFLAGS="$CXXFLAGS"
42106       ac_save_LIBS="$LIBS"
42107       CFLAGS="$CFLAGS $SDL_CFLAGS"
42108       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42109       LIBS="$LIBS $SDL_LIBS"
42110       rm -f conf.sdltest
42111       if test "$cross_compiling" = yes; then
42112   echo $ac_n "cross compiling; assumed OK... $ac_c"
42113 else
42114   cat >conftest.$ac_ext <<_ACEOF
42115 /* confdefs.h.  */
42116 _ACEOF
42117 cat confdefs.h >>conftest.$ac_ext
42118 cat >>conftest.$ac_ext <<_ACEOF
42119 /* end confdefs.h.  */
42120
42121 #include <stdio.h>
42122 #include <stdlib.h>
42123 #include <string.h>
42124 #include "SDL.h"
42125
42126 char*
42127 my_strdup (char *str)
42128 {
42129   char *new_str;
42130
42131   if (str)
42132     {
42133       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42134       strcpy (new_str, str);
42135     }
42136   else
42137     new_str = NULL;
42138
42139   return new_str;
42140 }
42141
42142 int main (int argc, char *argv[])
42143 {
42144   int major, minor, micro;
42145   char *tmp_version;
42146
42147   /* This hangs on some systems (?)
42148   system ("touch conf.sdltest");
42149   */
42150   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42151
42152   /* HP/UX 9 (%@#!) writes to sscanf strings */
42153   tmp_version = my_strdup("$min_sdl_version");
42154   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42155      printf("%s, bad version string\n", "$min_sdl_version");
42156      exit(1);
42157    }
42158
42159    if (($sdl_major_version > major) ||
42160       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42161       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42162     {
42163       return 0;
42164     }
42165   else
42166     {
42167       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42168       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42169       printf("*** best to upgrade to the required version.\n");
42170       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42171       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42172       printf("*** config.cache before re-running configure\n");
42173       return 1;
42174     }
42175 }
42176
42177
42178 _ACEOF
42179 rm -f conftest$ac_exeext
42180 if { (ac_try="$ac_link"
42181 case "(($ac_try" in
42182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42183   *) ac_try_echo=$ac_try;;
42184 esac
42185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42186   (eval "$ac_link") 2>&5
42187   ac_status=$?
42188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42190   { (case "(($ac_try" in
42191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42192   *) ac_try_echo=$ac_try;;
42193 esac
42194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42195   (eval "$ac_try") 2>&5
42196   ac_status=$?
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); }; }; then
42199   :
42200 else
42201   echo "$as_me: program exited with status $ac_status" >&5
42202 echo "$as_me: failed program was:" >&5
42203 sed 's/^/| /' conftest.$ac_ext >&5
42204
42205 ( exit $ac_status )
42206 no_sdl=yes
42207 fi
42208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42209 fi
42210
42211
42212        CFLAGS="$ac_save_CFLAGS"
42213        CXXFLAGS="$ac_save_CXXFLAGS"
42214        LIBS="$ac_save_LIBS"
42215      fi
42216   fi
42217   if test "x$no_sdl" = x ; then
42218      { echo "$as_me:$LINENO: result: yes" >&5
42219 echo "${ECHO_T}yes" >&6; }
42220
42221                     EXTRALIBS_SDL="$SDL_LIBS"
42222                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42223                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42224                     cat >>confdefs.h <<\_ACEOF
42225 #define wxUSE_LIBSDL 1
42226 _ACEOF
42227
42228
42229   else
42230      { echo "$as_me:$LINENO: result: no" >&5
42231 echo "${ECHO_T}no" >&6; }
42232      if test "$SDL_CONFIG" = "no" ; then
42233        echo "*** The sdl-config script installed by SDL could not be found"
42234        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42235        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42236        echo "*** full path to sdl-config."
42237      else
42238        if test -f conf.sdltest ; then
42239         :
42240        else
42241           echo "*** Could not run SDL test program, checking why..."
42242           CFLAGS="$CFLAGS $SDL_CFLAGS"
42243           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42244           LIBS="$LIBS $SDL_LIBS"
42245           cat >conftest.$ac_ext <<_ACEOF
42246 /* confdefs.h.  */
42247 _ACEOF
42248 cat confdefs.h >>conftest.$ac_ext
42249 cat >>conftest.$ac_ext <<_ACEOF
42250 /* end confdefs.h.  */
42251
42252 #include <stdio.h>
42253 #include "SDL.h"
42254
42255 int main(int argc, char *argv[])
42256 { return 0; }
42257 #undef  main
42258 #define main K_and_R_C_main
42259
42260 int
42261 main ()
42262 {
42263  return 0;
42264   ;
42265   return 0;
42266 }
42267 _ACEOF
42268 rm -f conftest.$ac_objext conftest$ac_exeext
42269 if { (ac_try="$ac_link"
42270 case "(($ac_try" in
42271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42272   *) ac_try_echo=$ac_try;;
42273 esac
42274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42275   (eval "$ac_link") 2>conftest.er1
42276   ac_status=$?
42277   grep -v '^ *+' conftest.er1 >conftest.err
42278   rm -f conftest.er1
42279   cat conftest.err >&5
42280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281   (exit $ac_status); } && {
42282          test -z "$ac_c_werror_flag" ||
42283          test ! -s conftest.err
42284        } && test -s conftest$ac_exeext &&
42285        $as_test_x conftest$ac_exeext; then
42286    echo "*** The test program compiled, but did not run. This usually means"
42287           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42288           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42289           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42290           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42291           echo "*** is required on your system"
42292           echo "***"
42293           echo "*** If you have an old version installed, it is best to remove it, although"
42294           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42295 else
42296   echo "$as_me: failed program was:" >&5
42297 sed 's/^/| /' conftest.$ac_ext >&5
42298
42299          echo "*** The test program failed to compile or link. See the file config.log for the"
42300           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42301           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42302           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42303 fi
42304
42305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42306       conftest$ac_exeext conftest.$ac_ext
42307           CFLAGS="$ac_save_CFLAGS"
42308           CXXFLAGS="$ac_save_CXXFLAGS"
42309           LIBS="$ac_save_LIBS"
42310        fi
42311      fi
42312      SDL_CFLAGS=""
42313      SDL_LIBS=""
42314      wxUSE_LIBSDL="no"
42315   fi
42316
42317
42318   rm -f conf.sdltest
42319
42320       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42321         WITH_PLUGIN_SDL=1
42322       fi
42323     fi
42324   else
42325         if test "$wxUSE_MGL" = 1; then
42326         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42327 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42328         wxUSE_SOUND="no"
42329     fi
42330   fi
42331 fi
42332
42333 if test "$wxUSE_SOUND" = "yes"; then
42334   cat >>confdefs.h <<\_ACEOF
42335 #define wxUSE_SOUND 1
42336 _ACEOF
42337
42338   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42339 fi
42340
42341 if test "$WXGTK2" = 1; then
42342
42343
42344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42345         if test -n "$ac_tool_prefix"; then
42346   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42347 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42350 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42351   echo $ECHO_N "(cached) $ECHO_C" >&6
42352 else
42353   case $PKG_CONFIG in
42354   [\\/]* | ?:[\\/]*)
42355   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42356   ;;
42357   *)
42358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42359 for as_dir in $PATH
42360 do
42361   IFS=$as_save_IFS
42362   test -z "$as_dir" && as_dir=.
42363   for ac_exec_ext in '' $ac_executable_extensions; do
42364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42365     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42367     break 2
42368   fi
42369 done
42370 done
42371 IFS=$as_save_IFS
42372
42373   ;;
42374 esac
42375 fi
42376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42377 if test -n "$PKG_CONFIG"; then
42378   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42379 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42380 else
42381   { echo "$as_me:$LINENO: result: no" >&5
42382 echo "${ECHO_T}no" >&6; }
42383 fi
42384
42385
42386 fi
42387 if test -z "$ac_cv_path_PKG_CONFIG"; then
42388   ac_pt_PKG_CONFIG=$PKG_CONFIG
42389   # Extract the first word of "pkg-config", so it can be a program name with args.
42390 set dummy pkg-config; ac_word=$2
42391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42393 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42394   echo $ECHO_N "(cached) $ECHO_C" >&6
42395 else
42396   case $ac_pt_PKG_CONFIG in
42397   [\\/]* | ?:[\\/]*)
42398   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42399   ;;
42400   *)
42401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42402 for as_dir in $PATH
42403 do
42404   IFS=$as_save_IFS
42405   test -z "$as_dir" && as_dir=.
42406   for ac_exec_ext in '' $ac_executable_extensions; do
42407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42408     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42410     break 2
42411   fi
42412 done
42413 done
42414 IFS=$as_save_IFS
42415
42416   ;;
42417 esac
42418 fi
42419 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42420 if test -n "$ac_pt_PKG_CONFIG"; then
42421   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42422 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42423 else
42424   { echo "$as_me:$LINENO: result: no" >&5
42425 echo "${ECHO_T}no" >&6; }
42426 fi
42427
42428   if test "x$ac_pt_PKG_CONFIG" = x; then
42429     PKG_CONFIG=""
42430   else
42431     case $cross_compiling:$ac_tool_warned in
42432 yes:)
42433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42434 whose name does not start with the host triplet.  If you think this
42435 configuration is useful to you, please write to autoconf@gnu.org." >&5
42436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42437 whose name does not start with the host triplet.  If you think this
42438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42439 ac_tool_warned=yes ;;
42440 esac
42441     PKG_CONFIG=$ac_pt_PKG_CONFIG
42442   fi
42443 else
42444   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42445 fi
42446
42447 fi
42448 if test -n "$PKG_CONFIG"; then
42449         _pkg_min_version=0.9.0
42450         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42451 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42452         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42453                 { echo "$as_me:$LINENO: result: yes" >&5
42454 echo "${ECHO_T}yes" >&6; }
42455         else
42456                 { echo "$as_me:$LINENO: result: no" >&5
42457 echo "${ECHO_T}no" >&6; }
42458                 PKG_CONFIG=""
42459         fi
42460
42461 fi
42462
42463     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42464
42465         if test "$wxUSE_GTKPRINT" = "yes" ; then
42466
42467
42468 pkg_failed=no
42469 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42470 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42471
42472 if test -n "$PKG_CONFIG"; then
42473     if test -n "$GTKPRINT_CFLAGS"; then
42474         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42475     else
42476         if test -n "$PKG_CONFIG" && \
42477     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42478   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42479   ac_status=$?
42480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481   (exit $ac_status); }; then
42482   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42483 else
42484   pkg_failed=yes
42485 fi
42486     fi
42487 else
42488         pkg_failed=untried
42489 fi
42490 if test -n "$PKG_CONFIG"; then
42491     if test -n "$GTKPRINT_LIBS"; then
42492         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42493     else
42494         if test -n "$PKG_CONFIG" && \
42495     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42496   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42497   ac_status=$?
42498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499   (exit $ac_status); }; then
42500   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42501 else
42502   pkg_failed=yes
42503 fi
42504     fi
42505 else
42506         pkg_failed=untried
42507 fi
42508
42509
42510
42511 if test $pkg_failed = yes; then
42512
42513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42514         _pkg_short_errors_supported=yes
42515 else
42516         _pkg_short_errors_supported=no
42517 fi
42518         if test $_pkg_short_errors_supported = yes; then
42519                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42520         else
42521                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42522         fi
42523         # Put the nasty error message in config.log where it belongs
42524         echo "$GTKPRINT_PKG_ERRORS" >&5
42525
42526
42527                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42528 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42529                         wxUSE_GTKPRINT="no"
42530
42531
42532 elif test $pkg_failed = untried; then
42533
42534                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42535 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42536                         wxUSE_GTKPRINT="no"
42537
42538
42539 else
42540         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42541         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42542         { echo "$as_me:$LINENO: result: yes" >&5
42543 echo "${ECHO_T}yes" >&6; }
42544
42545                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42546                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42547                         cat >>confdefs.h <<\_ACEOF
42548 #define wxUSE_GTKPRINT 1
42549 _ACEOF
42550
42551
42552 fi
42553         fi
42554
42555         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42556
42557
42558 pkg_failed=no
42559 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42560 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42561
42562 if test -n "$PKG_CONFIG"; then
42563     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42564         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42565     else
42566         if test -n "$PKG_CONFIG" && \
42567     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42568   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42569   ac_status=$?
42570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42571   (exit $ac_status); }; then
42572   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42573 else
42574   pkg_failed=yes
42575 fi
42576     fi
42577 else
42578         pkg_failed=untried
42579 fi
42580 if test -n "$PKG_CONFIG"; then
42581     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42582         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42583     else
42584         if test -n "$PKG_CONFIG" && \
42585     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42586   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42587   ac_status=$?
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); }; then
42590   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42591 else
42592   pkg_failed=yes
42593 fi
42594     fi
42595 else
42596         pkg_failed=untried
42597 fi
42598
42599
42600
42601 if test $pkg_failed = yes; then
42602
42603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42604         _pkg_short_errors_supported=yes
42605 else
42606         _pkg_short_errors_supported=no
42607 fi
42608         if test $_pkg_short_errors_supported = yes; then
42609                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42610         else
42611                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42612         fi
42613         # Put the nasty error message in config.log where it belongs
42614         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42615
42616
42617                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42618 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42619                         wxUSE_LIBGNOMEPRINT="no"
42620
42621
42622 elif test $pkg_failed = untried; then
42623
42624                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42625 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42626                         wxUSE_LIBGNOMEPRINT="no"
42627
42628
42629 else
42630         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42631         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42632         { echo "$as_me:$LINENO: result: yes" >&5
42633 echo "${ECHO_T}yes" >&6; }
42634
42635                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42636                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42637                         cat >>confdefs.h <<\_ACEOF
42638 #define wxUSE_LIBGNOMEPRINT 1
42639 _ACEOF
42640
42641
42642 fi
42643         fi
42644     fi
42645
42646     if test "$wxUSE_MIMETYPE" = "yes" ; then
42647         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42648
42649
42650 pkg_failed=no
42651 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42652 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42653
42654 if test -n "$PKG_CONFIG"; then
42655     if test -n "$GNOMEVFS_CFLAGS"; then
42656         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42657     else
42658         if test -n "$PKG_CONFIG" && \
42659     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42660   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42661   ac_status=$?
42662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663   (exit $ac_status); }; then
42664   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42665 else
42666   pkg_failed=yes
42667 fi
42668     fi
42669 else
42670         pkg_failed=untried
42671 fi
42672 if test -n "$PKG_CONFIG"; then
42673     if test -n "$GNOMEVFS_LIBS"; then
42674         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42675     else
42676         if test -n "$PKG_CONFIG" && \
42677     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42678   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42679   ac_status=$?
42680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681   (exit $ac_status); }; then
42682   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42683 else
42684   pkg_failed=yes
42685 fi
42686     fi
42687 else
42688         pkg_failed=untried
42689 fi
42690
42691
42692
42693 if test $pkg_failed = yes; then
42694
42695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42696         _pkg_short_errors_supported=yes
42697 else
42698         _pkg_short_errors_supported=no
42699 fi
42700         if test $_pkg_short_errors_supported = yes; then
42701                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42702         else
42703                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42704         fi
42705         # Put the nasty error message in config.log where it belongs
42706         echo "$GNOMEVFS_PKG_ERRORS" >&5
42707
42708
42709                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42710 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42711                         wxUSE_LIBGNOMEVFS="no"
42712
42713
42714 elif test $pkg_failed = untried; then
42715
42716                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42717 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42718                         wxUSE_LIBGNOMEVFS="no"
42719
42720
42721 else
42722         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42723         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42724         { echo "$as_me:$LINENO: result: yes" >&5
42725 echo "${ECHO_T}yes" >&6; }
42726
42727                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42728                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42729                         cat >>confdefs.h <<\_ACEOF
42730 #define wxUSE_LIBGNOMEVFS 1
42731 _ACEOF
42732
42733
42734 fi
42735         fi
42736     fi
42737
42738     if test "$wxUSE_LIBHILDON" = "yes" ; then
42739
42740 pkg_failed=no
42741 { echo "$as_me:$LINENO: checking for HILDON" >&5
42742 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42743
42744 if test -n "$PKG_CONFIG"; then
42745     if test -n "$HILDON_CFLAGS"; then
42746         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42747     else
42748         if test -n "$PKG_CONFIG" && \
42749     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42750   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42751   ac_status=$?
42752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753   (exit $ac_status); }; then
42754   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42755 else
42756   pkg_failed=yes
42757 fi
42758     fi
42759 else
42760         pkg_failed=untried
42761 fi
42762 if test -n "$PKG_CONFIG"; then
42763     if test -n "$HILDON_LIBS"; then
42764         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42765     else
42766         if test -n "$PKG_CONFIG" && \
42767     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42768   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42769   ac_status=$?
42770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42771   (exit $ac_status); }; then
42772   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42773 else
42774   pkg_failed=yes
42775 fi
42776     fi
42777 else
42778         pkg_failed=untried
42779 fi
42780
42781
42782
42783 if test $pkg_failed = yes; then
42784
42785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42786         _pkg_short_errors_supported=yes
42787 else
42788         _pkg_short_errors_supported=no
42789 fi
42790         if test $_pkg_short_errors_supported = yes; then
42791                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42792         else
42793                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42794         fi
42795         # Put the nasty error message in config.log where it belongs
42796         echo "$HILDON_PKG_ERRORS" >&5
42797
42798
42799                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42800 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42801                         wxUSE_LIBHILDON="no"
42802
42803
42804 elif test $pkg_failed = untried; then
42805
42806                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42807 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42808                         wxUSE_LIBHILDON="no"
42809
42810
42811 else
42812         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42813         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42814         { echo "$as_me:$LINENO: result: yes" >&5
42815 echo "${ECHO_T}yes" >&6; }
42816
42817                 EXTRALIBS_HILDON="$HILDON_LIBS"
42818                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42819                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42820                 cat >>confdefs.h <<\_ACEOF
42821 #define wxUSE_LIBHILDON 1
42822 _ACEOF
42823
42824
42825 fi
42826     fi
42827 fi
42828
42829 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42830   cat >>confdefs.h <<\_ACEOF
42831 #define wxUSE_CMDLINE_PARSER 1
42832 _ACEOF
42833
42834 fi
42835
42836 if test "$wxUSE_STOPWATCH" = "yes"; then
42837   cat >>confdefs.h <<\_ACEOF
42838 #define wxUSE_STOPWATCH 1
42839 _ACEOF
42840
42841 fi
42842
42843 if test "$wxUSE_DATETIME" = "yes"; then
42844   cat >>confdefs.h <<\_ACEOF
42845 #define wxUSE_DATETIME 1
42846 _ACEOF
42847
42848 fi
42849
42850 if test "$wxUSE_FILE" = "yes"; then
42851   cat >>confdefs.h <<\_ACEOF
42852 #define wxUSE_FILE 1
42853 _ACEOF
42854
42855 fi
42856
42857 if test "$wxUSE_FFILE" = "yes"; then
42858   cat >>confdefs.h <<\_ACEOF
42859 #define wxUSE_FFILE 1
42860 _ACEOF
42861
42862 fi
42863
42864 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42865   if test "$wxUSE_STREAMS" != yes; then
42866     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42867 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42868     wxUSE_ARCHIVE_STREAMS=no
42869   else
42870     cat >>confdefs.h <<\_ACEOF
42871 #define wxUSE_ARCHIVE_STREAMS 1
42872 _ACEOF
42873
42874   fi
42875 fi
42876
42877 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42878   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42879     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42880 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42881   elif test "$wxUSE_ZLIB" = "no"; then
42882     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42883 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42884   else
42885     cat >>confdefs.h <<\_ACEOF
42886 #define wxUSE_ZIPSTREAM 1
42887 _ACEOF
42888
42889   fi
42890 fi
42891
42892 if test "$wxUSE_TARSTREAM" = "yes"; then
42893   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42894     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42895 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42896   else
42897     cat >>confdefs.h <<\_ACEOF
42898 #define wxUSE_TARSTREAM 1
42899 _ACEOF
42900
42901   fi
42902 fi
42903
42904 if test "$wxUSE_FILESYSTEM" = "yes"; then
42905   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42906     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42907 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42908     wxUSE_FILESYSTEM=no
42909   else
42910     cat >>confdefs.h <<\_ACEOF
42911 #define wxUSE_FILESYSTEM 1
42912 _ACEOF
42913
42914   fi
42915 fi
42916
42917 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42918   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42919     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42920 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42921   else
42922     cat >>confdefs.h <<\_ACEOF
42923 #define wxUSE_FS_ARCHIVE 1
42924 _ACEOF
42925
42926   fi
42927 fi
42928
42929 if test "$wxUSE_FS_ZIP" = "yes"; then
42930   if test "$wxUSE_FS_ARCHIVE" != yes; then
42931     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42932 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42933   else
42934     cat >>confdefs.h <<\_ACEOF
42935 #define wxUSE_FS_ZIP 1
42936 _ACEOF
42937
42938   fi
42939 fi
42940
42941 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42942   if test "$USE_UNIX" != 1; then
42943     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42944 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42945     wxUSE_ON_FATAL_EXCEPTION=no
42946   else
42947     cat >>confdefs.h <<\_ACEOF
42948 #define wxUSE_ON_FATAL_EXCEPTION 1
42949 _ACEOF
42950
42951   fi
42952 fi
42953
42954 if test "$wxUSE_STACKWALKER" = "yes"; then
42955     cat >>confdefs.h <<\_ACEOF
42956 #define wxUSE_STACKWALKER 1
42957 _ACEOF
42958
42959 fi
42960
42961 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42962     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
42963         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42964 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42965         wxUSE_DEBUGREPORT=no
42966     else
42967         cat >>confdefs.h <<\_ACEOF
42968 #define wxUSE_DEBUGREPORT 1
42969 _ACEOF
42970
42971         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42972             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42973         fi
42974     fi
42975 fi
42976
42977 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42978   cat >>confdefs.h <<\_ACEOF
42979 #define wxUSE_SNGLINST_CHECKER 1
42980 _ACEOF
42981
42982 fi
42983
42984 if test "$wxUSE_BUSYINFO" = "yes"; then
42985   cat >>confdefs.h <<\_ACEOF
42986 #define wxUSE_BUSYINFO 1
42987 _ACEOF
42988
42989 fi
42990
42991 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42992   cat >>confdefs.h <<\_ACEOF
42993 #define wxUSE_STD_IOSTREAM 1
42994 _ACEOF
42995
42996 fi
42997
42998 if test "$wxUSE_STD_STRING" = "yes"; then
42999   cat >>confdefs.h <<\_ACEOF
43000 #define wxUSE_STD_STRING 1
43001 _ACEOF
43002
43003 fi
43004
43005 if test "$wxUSE_STDPATHS" = "yes"; then
43006   cat >>confdefs.h <<\_ACEOF
43007 #define wxUSE_STDPATHS 1
43008 _ACEOF
43009
43010 fi
43011
43012 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43013     cat >>confdefs.h <<\_ACEOF
43014 #define wxUSE_TEXTBUFFER 1
43015 _ACEOF
43016
43017 fi
43018
43019 if test "$wxUSE_TEXTFILE" = "yes"; then
43020   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43021     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43022 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43023   else
43024     cat >>confdefs.h <<\_ACEOF
43025 #define wxUSE_TEXTFILE 1
43026 _ACEOF
43027
43028   fi
43029 fi
43030
43031 if test "$wxUSE_CONFIG" = "yes" ; then
43032   if test "$wxUSE_TEXTFILE" != "yes"; then
43033     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43034 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43035   else
43036     cat >>confdefs.h <<\_ACEOF
43037 #define wxUSE_CONFIG 1
43038 _ACEOF
43039
43040     cat >>confdefs.h <<\_ACEOF
43041 #define wxUSE_CONFIG_NATIVE 1
43042 _ACEOF
43043
43044     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43045   fi
43046 fi
43047
43048 if test "$wxUSE_INTL" = "yes" ; then
43049   if test "$wxUSE_FILE" != "yes"; then
43050     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43051 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43052   else
43053     cat >>confdefs.h <<\_ACEOF
43054 #define wxUSE_INTL 1
43055 _ACEOF
43056
43057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43058     GUIDIST="$GUIDIST INTL_DIST"
43059   fi
43060 fi
43061
43062 if test "$wxUSE_XLOCALE" == "yes" ; then
43063     cat >>confdefs.h <<\_ACEOF
43064 #define wxUSE_XLOCALE 1
43065 _ACEOF
43066
43067     { echo "$as_me:$LINENO: checking for locale_t" >&5
43068 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43069 if test "${ac_cv_type_locale_t+set}" = set; then
43070   echo $ECHO_N "(cached) $ECHO_C" >&6
43071 else
43072   cat >conftest.$ac_ext <<_ACEOF
43073 /* confdefs.h.  */
43074 _ACEOF
43075 cat confdefs.h >>conftest.$ac_ext
43076 cat >>conftest.$ac_ext <<_ACEOF
43077 /* end confdefs.h.  */
43078 #include <xlocale.h>
43079                     #include <locale.h>
43080
43081 typedef locale_t ac__type_new_;
43082 int
43083 main ()
43084 {
43085 if ((ac__type_new_ *) 0)
43086   return 0;
43087 if (sizeof (ac__type_new_))
43088   return 0;
43089   ;
43090   return 0;
43091 }
43092 _ACEOF
43093 rm -f conftest.$ac_objext
43094 if { (ac_try="$ac_compile"
43095 case "(($ac_try" in
43096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43097   *) ac_try_echo=$ac_try;;
43098 esac
43099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43100   (eval "$ac_compile") 2>conftest.er1
43101   ac_status=$?
43102   grep -v '^ *+' conftest.er1 >conftest.err
43103   rm -f conftest.er1
43104   cat conftest.err >&5
43105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106   (exit $ac_status); } && {
43107          test -z "$ac_c_werror_flag" ||
43108          test ! -s conftest.err
43109        } && test -s conftest.$ac_objext; then
43110   ac_cv_type_locale_t=yes
43111 else
43112   echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43114
43115         ac_cv_type_locale_t=no
43116 fi
43117
43118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43119 fi
43120 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43121 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43122 if test $ac_cv_type_locale_t = yes; then
43123
43124 cat >>confdefs.h <<_ACEOF
43125 #define HAVE_LOCALE_T 1
43126 _ACEOF
43127
43128
43129 fi
43130
43131 fi
43132
43133 if test "$wxUSE_LOG" = "yes"; then
43134   cat >>confdefs.h <<\_ACEOF
43135 #define wxUSE_LOG 1
43136 _ACEOF
43137
43138
43139     if test "$wxUSE_LOGGUI" = "yes"; then
43140       cat >>confdefs.h <<\_ACEOF
43141 #define wxUSE_LOGGUI 1
43142 _ACEOF
43143
43144     fi
43145
43146     if test "$wxUSE_LOGWINDOW" = "yes"; then
43147       cat >>confdefs.h <<\_ACEOF
43148 #define wxUSE_LOGWINDOW 1
43149 _ACEOF
43150
43151     fi
43152
43153     if test "$wxUSE_LOGDIALOG" = "yes"; then
43154       cat >>confdefs.h <<\_ACEOF
43155 #define wxUSE_LOG_DIALOG 1
43156 _ACEOF
43157
43158     fi
43159
43160         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43161 fi
43162
43163 if test "$wxUSE_LONGLONG" = "yes"; then
43164   cat >>confdefs.h <<\_ACEOF
43165 #define wxUSE_LONGLONG 1
43166 _ACEOF
43167
43168 fi
43169
43170 if test "$wxUSE_GEOMETRY" = "yes"; then
43171   cat >>confdefs.h <<\_ACEOF
43172 #define wxUSE_GEOMETRY 1
43173 _ACEOF
43174
43175 fi
43176
43177 if test "$wxUSE_BASE64" = "yes"; then
43178   cat >>confdefs.h <<\_ACEOF
43179 #define wxUSE_BASE64 1
43180 _ACEOF
43181
43182 fi
43183
43184 if test "$wxUSE_STREAMS" = "yes" ; then
43185   cat >>confdefs.h <<\_ACEOF
43186 #define wxUSE_STREAMS 1
43187 _ACEOF
43188
43189 fi
43190
43191 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43192   cat >>confdefs.h <<\_ACEOF
43193 #define wxUSE_PRINTF_POS_PARAMS 1
43194 _ACEOF
43195
43196 fi
43197
43198 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43199   cat >>confdefs.h <<\_ACEOF
43200 #define wxUSE_OBJC_UNIQUIFYING 1
43201 _ACEOF
43202
43203 fi
43204
43205
43206 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43207     cat >>confdefs.h <<\_ACEOF
43208 #define wxUSE_CONSOLE_EVENTLOOP 1
43209 _ACEOF
43210
43211
43212     if test "$wxUSE_UNIX" = "yes"; then
43213         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43214             cat >>confdefs.h <<\_ACEOF
43215 #define wxUSE_SELECT_DISPATCHER 1
43216 _ACEOF
43217
43218         fi
43219
43220         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43221
43222 for ac_header in sys/epoll.h
43223 do
43224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43228   echo $ECHO_N "(cached) $ECHO_C" >&6
43229 else
43230   cat >conftest.$ac_ext <<_ACEOF
43231 /* confdefs.h.  */
43232 _ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h.  */
43236 $ac_includes_default
43237
43238 #include <$ac_header>
43239 _ACEOF
43240 rm -f conftest.$ac_objext
43241 if { (ac_try="$ac_compile"
43242 case "(($ac_try" in
43243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43244   *) ac_try_echo=$ac_try;;
43245 esac
43246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43247   (eval "$ac_compile") 2>conftest.er1
43248   ac_status=$?
43249   grep -v '^ *+' conftest.er1 >conftest.err
43250   rm -f conftest.er1
43251   cat conftest.err >&5
43252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253   (exit $ac_status); } && {
43254          test -z "$ac_c_werror_flag" ||
43255          test ! -s conftest.err
43256        } && test -s conftest.$ac_objext; then
43257   eval "$as_ac_Header=yes"
43258 else
43259   echo "$as_me: failed program was:" >&5
43260 sed 's/^/| /' conftest.$ac_ext >&5
43261
43262         eval "$as_ac_Header=no"
43263 fi
43264
43265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43266 fi
43267 ac_res=`eval echo '${'$as_ac_Header'}'`
43268                { echo "$as_me:$LINENO: result: $ac_res" >&5
43269 echo "${ECHO_T}$ac_res" >&6; }
43270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43271   cat >>confdefs.h <<_ACEOF
43272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43273 _ACEOF
43274
43275 fi
43276
43277 done
43278
43279             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43280                 cat >>confdefs.h <<\_ACEOF
43281 #define wxUSE_EPOLL_DISPATCHER 1
43282 _ACEOF
43283
43284             else
43285                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43286 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43287             fi
43288         fi
43289     fi
43290 fi
43291
43292
43293
43294
43295 for ac_func in gettimeofday ftime
43296 do
43297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43301   echo $ECHO_N "(cached) $ECHO_C" >&6
43302 else
43303   cat >conftest.$ac_ext <<_ACEOF
43304 /* confdefs.h.  */
43305 _ACEOF
43306 cat confdefs.h >>conftest.$ac_ext
43307 cat >>conftest.$ac_ext <<_ACEOF
43308 /* end confdefs.h.  */
43309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43311 #define $ac_func innocuous_$ac_func
43312
43313 /* System header to define __stub macros and hopefully few prototypes,
43314     which can conflict with char $ac_func (); below.
43315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43316     <limits.h> exists even on freestanding compilers.  */
43317
43318 #ifdef __STDC__
43319 # include <limits.h>
43320 #else
43321 # include <assert.h>
43322 #endif
43323
43324 #undef $ac_func
43325
43326 /* Override any GCC internal prototype to avoid an error.
43327    Use char because int might match the return type of a GCC
43328    builtin and then its argument prototype would still apply.  */
43329 #ifdef __cplusplus
43330 extern "C"
43331 #endif
43332 char $ac_func ();
43333 /* The GNU C library defines this for functions which it implements
43334     to always fail with ENOSYS.  Some functions are actually named
43335     something starting with __ and the normal name is an alias.  */
43336 #if defined __stub_$ac_func || defined __stub___$ac_func
43337 choke me
43338 #endif
43339
43340 int
43341 main ()
43342 {
43343 return $ac_func ();
43344   ;
43345   return 0;
43346 }
43347 _ACEOF
43348 rm -f conftest.$ac_objext conftest$ac_exeext
43349 if { (ac_try="$ac_link"
43350 case "(($ac_try" in
43351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43352   *) ac_try_echo=$ac_try;;
43353 esac
43354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43355   (eval "$ac_link") 2>conftest.er1
43356   ac_status=$?
43357   grep -v '^ *+' conftest.er1 >conftest.err
43358   rm -f conftest.er1
43359   cat conftest.err >&5
43360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43361   (exit $ac_status); } && {
43362          test -z "$ac_c_werror_flag" ||
43363          test ! -s conftest.err
43364        } && test -s conftest$ac_exeext &&
43365        $as_test_x conftest$ac_exeext; then
43366   eval "$as_ac_var=yes"
43367 else
43368   echo "$as_me: failed program was:" >&5
43369 sed 's/^/| /' conftest.$ac_ext >&5
43370
43371         eval "$as_ac_var=no"
43372 fi
43373
43374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43375       conftest$ac_exeext conftest.$ac_ext
43376 fi
43377 ac_res=`eval echo '${'$as_ac_var'}'`
43378                { echo "$as_me:$LINENO: result: $ac_res" >&5
43379 echo "${ECHO_T}$ac_res" >&6; }
43380 if test `eval echo '${'$as_ac_var'}'` = yes; then
43381   cat >>confdefs.h <<_ACEOF
43382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43383 _ACEOF
43384  break
43385 fi
43386 done
43387
43388
43389 if test "$ac_cv_func_gettimeofday" = "yes"; then
43390     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43391 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43392 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43393   echo $ECHO_N "(cached) $ECHO_C" >&6
43394 else
43395
43396                 cat >conftest.$ac_ext <<_ACEOF
43397 /* confdefs.h.  */
43398 _ACEOF
43399 cat confdefs.h >>conftest.$ac_ext
43400 cat >>conftest.$ac_ext <<_ACEOF
43401 /* end confdefs.h.  */
43402
43403                 #include <sys/time.h>
43404                 #include <unistd.h>
43405
43406 int
43407 main ()
43408 {
43409
43410                 struct timeval tv;
43411                 gettimeofday(&tv, NULL);
43412
43413   ;
43414   return 0;
43415 }
43416 _ACEOF
43417 rm -f conftest.$ac_objext
43418 if { (ac_try="$ac_compile"
43419 case "(($ac_try" in
43420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43421   *) ac_try_echo=$ac_try;;
43422 esac
43423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43424   (eval "$ac_compile") 2>conftest.er1
43425   ac_status=$?
43426   grep -v '^ *+' conftest.er1 >conftest.err
43427   rm -f conftest.er1
43428   cat conftest.err >&5
43429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430   (exit $ac_status); } && {
43431          test -z "$ac_c_werror_flag" ||
43432          test ! -s conftest.err
43433        } && test -s conftest.$ac_objext; then
43434   wx_cv_func_gettimeofday_has_2_args=yes
43435 else
43436   echo "$as_me: failed program was:" >&5
43437 sed 's/^/| /' conftest.$ac_ext >&5
43438
43439         cat >conftest.$ac_ext <<_ACEOF
43440 /* confdefs.h.  */
43441 _ACEOF
43442 cat confdefs.h >>conftest.$ac_ext
43443 cat >>conftest.$ac_ext <<_ACEOF
43444 /* end confdefs.h.  */
43445
43446                     #include <sys/time.h>
43447                     #include <unistd.h>
43448
43449 int
43450 main ()
43451 {
43452
43453                     struct timeval tv;
43454                     gettimeofday(&tv);
43455
43456   ;
43457   return 0;
43458 }
43459 _ACEOF
43460 rm -f conftest.$ac_objext
43461 if { (ac_try="$ac_compile"
43462 case "(($ac_try" in
43463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43464   *) ac_try_echo=$ac_try;;
43465 esac
43466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43467   (eval "$ac_compile") 2>conftest.er1
43468   ac_status=$?
43469   grep -v '^ *+' conftest.er1 >conftest.err
43470   rm -f conftest.er1
43471   cat conftest.err >&5
43472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473   (exit $ac_status); } && {
43474          test -z "$ac_c_werror_flag" ||
43475          test ! -s conftest.err
43476        } && test -s conftest.$ac_objext; then
43477   wx_cv_func_gettimeofday_has_2_args=no
43478 else
43479   echo "$as_me: failed program was:" >&5
43480 sed 's/^/| /' conftest.$ac_ext >&5
43481
43482
43483                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43484 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43485                     wx_cv_func_gettimeofday_has_2_args=unknown
43486
43487
43488 fi
43489
43490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43491
43492 fi
43493
43494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43495
43496 fi
43497 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43498 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43499
43500     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43501         cat >>confdefs.h <<\_ACEOF
43502 #define WX_GETTIMEOFDAY_NO_TZ 1
43503 _ACEOF
43504
43505     fi
43506 fi
43507
43508 if test "$wxUSE_DATETIME" = "yes"; then
43509         { echo "$as_me:$LINENO: checking for strptime" >&5
43510 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43511 if test "${ac_cv_func_strptime+set}" = set; then
43512   echo $ECHO_N "(cached) $ECHO_C" >&6
43513 else
43514   cat >conftest.$ac_ext <<_ACEOF
43515 /* confdefs.h.  */
43516 _ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h.  */
43520 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43522 #define strptime innocuous_strptime
43523
43524 /* System header to define __stub macros and hopefully few prototypes,
43525     which can conflict with char strptime (); below.
43526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43527     <limits.h> exists even on freestanding compilers.  */
43528
43529 #ifdef __STDC__
43530 # include <limits.h>
43531 #else
43532 # include <assert.h>
43533 #endif
43534
43535 #undef strptime
43536
43537 /* Override any GCC internal prototype to avoid an error.
43538    Use char because int might match the return type of a GCC
43539    builtin and then its argument prototype would still apply.  */
43540 #ifdef __cplusplus
43541 extern "C"
43542 #endif
43543 char strptime ();
43544 /* The GNU C library defines this for functions which it implements
43545     to always fail with ENOSYS.  Some functions are actually named
43546     something starting with __ and the normal name is an alias.  */
43547 #if defined __stub_strptime || defined __stub___strptime
43548 choke me
43549 #endif
43550
43551 int
43552 main ()
43553 {
43554 return strptime ();
43555   ;
43556   return 0;
43557 }
43558 _ACEOF
43559 rm -f conftest.$ac_objext conftest$ac_exeext
43560 if { (ac_try="$ac_link"
43561 case "(($ac_try" in
43562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43563   *) ac_try_echo=$ac_try;;
43564 esac
43565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43566   (eval "$ac_link") 2>conftest.er1
43567   ac_status=$?
43568   grep -v '^ *+' conftest.er1 >conftest.err
43569   rm -f conftest.er1
43570   cat conftest.err >&5
43571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572   (exit $ac_status); } && {
43573          test -z "$ac_c_werror_flag" ||
43574          test ! -s conftest.err
43575        } && test -s conftest$ac_exeext &&
43576        $as_test_x conftest$ac_exeext; then
43577   ac_cv_func_strptime=yes
43578 else
43579   echo "$as_me: failed program was:" >&5
43580 sed 's/^/| /' conftest.$ac_ext >&5
43581
43582         ac_cv_func_strptime=no
43583 fi
43584
43585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43586       conftest$ac_exeext conftest.$ac_ext
43587 fi
43588 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43589 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43590
43591     if test "$ac_cv_func_strptime" = "yes"; then
43592         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43593 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43594 if test "${wx_cv_func_strptime_decl+set}" = set; then
43595   echo $ECHO_N "(cached) $ECHO_C" >&6
43596 else
43597
43598                 ac_ext=cpp
43599 ac_cpp='$CXXCPP $CPPFLAGS'
43600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43603
43604                 cat >conftest.$ac_ext <<_ACEOF
43605 /* confdefs.h.  */
43606 _ACEOF
43607 cat confdefs.h >>conftest.$ac_ext
43608 cat >>conftest.$ac_ext <<_ACEOF
43609 /* end confdefs.h.  */
43610
43611                         #include <time.h>
43612
43613 int
43614 main ()
43615 {
43616
43617                         struct tm t;
43618                         strptime("foo", "bar", &t);
43619
43620   ;
43621   return 0;
43622 }
43623 _ACEOF
43624 rm -f conftest.$ac_objext
43625 if { (ac_try="$ac_compile"
43626 case "(($ac_try" in
43627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43628   *) ac_try_echo=$ac_try;;
43629 esac
43630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43631   (eval "$ac_compile") 2>conftest.er1
43632   ac_status=$?
43633   grep -v '^ *+' conftest.er1 >conftest.err
43634   rm -f conftest.er1
43635   cat conftest.err >&5
43636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43637   (exit $ac_status); } && {
43638          test -z "$ac_cxx_werror_flag" ||
43639          test ! -s conftest.err
43640        } && test -s conftest.$ac_objext; then
43641   wx_cv_func_strptime_decl=yes
43642 else
43643   echo "$as_me: failed program was:" >&5
43644 sed 's/^/| /' conftest.$ac_ext >&5
43645
43646         wx_cv_func_strptime_decl=no
43647
43648 fi
43649
43650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43651                 ac_ext=c
43652 ac_cpp='$CPP $CPPFLAGS'
43653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43656
43657
43658
43659 fi
43660 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43661 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43662     fi
43663     if test "$wx_cv_func_strptime_decl" = "yes"; then
43664         cat >>confdefs.h <<\_ACEOF
43665 #define HAVE_STRPTIME_DECL 1
43666 _ACEOF
43667
43668     else
43669         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43670     fi
43671     if test "$ac_cv_func_strptime" = "yes"; then
43672                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43673 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43674 if test "${wx_cv_func_strptime_ok+set}" = set; then
43675   echo $ECHO_N "(cached) $ECHO_C" >&6
43676 else
43677   if test "$cross_compiling" = yes; then
43678                   wx_cv_func_strptime_ok=no
43679
43680 else
43681   cat >conftest.$ac_ext <<_ACEOF
43682
43683                     #include <stdlib.h>
43684                     #include <time.h>
43685                     #include "confdefs.h"
43686
43687                     $wx_strptime_decl
43688
43689                     int main()
43690                     {
43691                         struct tm t;
43692                         return !!strptime("", "%x", &t);
43693                     }
43694
43695 _ACEOF
43696 rm -f conftest$ac_exeext
43697 if { (ac_try="$ac_link"
43698 case "(($ac_try" in
43699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43700   *) ac_try_echo=$ac_try;;
43701 esac
43702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43703   (eval "$ac_link") 2>&5
43704   ac_status=$?
43705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43707   { (case "(($ac_try" in
43708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43709   *) ac_try_echo=$ac_try;;
43710 esac
43711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43712   (eval "$ac_try") 2>&5
43713   ac_status=$?
43714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715   (exit $ac_status); }; }; then
43716   wx_cv_func_strptime_ok=yes
43717 else
43718   echo "$as_me: program exited with status $ac_status" >&5
43719 echo "$as_me: failed program was:" >&5
43720 sed 's/^/| /' conftest.$ac_ext >&5
43721
43722 ( exit $ac_status )
43723 wx_cv_func_strptime_ok=no
43724 fi
43725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43726 fi
43727
43728
43729
43730 fi
43731 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43732 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43733
43734         if test "$wx_cv_func_strptime_ok" = "yes"; then
43735             cat >>confdefs.h <<\_ACEOF
43736 #define HAVE_STRPTIME 1
43737 _ACEOF
43738
43739         fi
43740     fi
43741
43742             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43743 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43744 if test "${wx_cv_var_timezone+set}" = set; then
43745   echo $ECHO_N "(cached) $ECHO_C" >&6
43746 else
43747
43748                         ac_ext=cpp
43749 ac_cpp='$CXXCPP $CPPFLAGS'
43750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43753
43754                         cat >conftest.$ac_ext <<_ACEOF
43755 /* confdefs.h.  */
43756 _ACEOF
43757 cat confdefs.h >>conftest.$ac_ext
43758 cat >>conftest.$ac_ext <<_ACEOF
43759 /* end confdefs.h.  */
43760
43761                                 #include <time.h>
43762
43763 int
43764 main ()
43765 {
43766
43767                                 int tz;
43768                                 tz = timezone;
43769
43770   ;
43771   return 0;
43772 }
43773 _ACEOF
43774 rm -f conftest.$ac_objext
43775 if { (ac_try="$ac_compile"
43776 case "(($ac_try" in
43777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43778   *) ac_try_echo=$ac_try;;
43779 esac
43780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43781   (eval "$ac_compile") 2>conftest.er1
43782   ac_status=$?
43783   grep -v '^ *+' conftest.er1 >conftest.err
43784   rm -f conftest.er1
43785   cat conftest.err >&5
43786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787   (exit $ac_status); } && {
43788          test -z "$ac_cxx_werror_flag" ||
43789          test ! -s conftest.err
43790        } && test -s conftest.$ac_objext; then
43791
43792                                 wx_cv_var_timezone=timezone
43793
43794 else
43795   echo "$as_me: failed program was:" >&5
43796 sed 's/^/| /' conftest.$ac_ext >&5
43797
43798
43799                                 cat >conftest.$ac_ext <<_ACEOF
43800 /* confdefs.h.  */
43801 _ACEOF
43802 cat confdefs.h >>conftest.$ac_ext
43803 cat >>conftest.$ac_ext <<_ACEOF
43804 /* end confdefs.h.  */
43805
43806                                         #include <time.h>
43807
43808 int
43809 main ()
43810 {
43811
43812                                         int tz;
43813                                         tz = _timezone;
43814
43815   ;
43816   return 0;
43817 }
43818 _ACEOF
43819 rm -f conftest.$ac_objext
43820 if { (ac_try="$ac_compile"
43821 case "(($ac_try" in
43822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43823   *) ac_try_echo=$ac_try;;
43824 esac
43825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43826   (eval "$ac_compile") 2>conftest.er1
43827   ac_status=$?
43828   grep -v '^ *+' conftest.er1 >conftest.err
43829   rm -f conftest.er1
43830   cat conftest.err >&5
43831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43832   (exit $ac_status); } && {
43833          test -z "$ac_cxx_werror_flag" ||
43834          test ! -s conftest.err
43835        } && test -s conftest.$ac_objext; then
43836
43837                                         wx_cv_var_timezone=_timezone
43838
43839 else
43840   echo "$as_me: failed program was:" >&5
43841 sed 's/^/| /' conftest.$ac_ext >&5
43842
43843
43844                                         cat >conftest.$ac_ext <<_ACEOF
43845 /* confdefs.h.  */
43846 _ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h.  */
43850
43851                                                 #include <time.h>
43852
43853 int
43854 main ()
43855 {
43856
43857                                                 int tz;
43858                                                 tz = __timezone;
43859
43860   ;
43861   return 0;
43862 }
43863 _ACEOF
43864 rm -f conftest.$ac_objext
43865 if { (ac_try="$ac_compile"
43866 case "(($ac_try" in
43867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43868   *) ac_try_echo=$ac_try;;
43869 esac
43870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43871   (eval "$ac_compile") 2>conftest.er1
43872   ac_status=$?
43873   grep -v '^ *+' conftest.er1 >conftest.err
43874   rm -f conftest.er1
43875   cat conftest.err >&5
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); } && {
43878          test -z "$ac_cxx_werror_flag" ||
43879          test ! -s conftest.err
43880        } && test -s conftest.$ac_objext; then
43881
43882                                                 wx_cv_var_timezone=__timezone
43883
43884 else
43885   echo "$as_me: failed program was:" >&5
43886 sed 's/^/| /' conftest.$ac_ext >&5
43887
43888
43889                                                 if test "$USE_DOS" = 0 ; then
43890                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43891 echo "$as_me: WARNING: no timezone variable" >&2;}
43892                                                 fi
43893
43894
43895 fi
43896
43897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43898
43899
43900 fi
43901
43902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43903
43904
43905 fi
43906
43907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43908                         ac_ext=c
43909 ac_cpp='$CPP $CPPFLAGS'
43910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43913
43914
43915
43916 fi
43917 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43918 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43919
43920         if test "x$wx_cv_var_timezone" != x ; then
43921         cat >>confdefs.h <<_ACEOF
43922 #define WX_TIMEZONE $wx_cv_var_timezone
43923 _ACEOF
43924
43925     fi
43926
43927
43928 for ac_func in localtime
43929 do
43930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43934   echo $ECHO_N "(cached) $ECHO_C" >&6
43935 else
43936   cat >conftest.$ac_ext <<_ACEOF
43937 /* confdefs.h.  */
43938 _ACEOF
43939 cat confdefs.h >>conftest.$ac_ext
43940 cat >>conftest.$ac_ext <<_ACEOF
43941 /* end confdefs.h.  */
43942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43944 #define $ac_func innocuous_$ac_func
43945
43946 /* System header to define __stub macros and hopefully few prototypes,
43947     which can conflict with char $ac_func (); below.
43948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43949     <limits.h> exists even on freestanding compilers.  */
43950
43951 #ifdef __STDC__
43952 # include <limits.h>
43953 #else
43954 # include <assert.h>
43955 #endif
43956
43957 #undef $ac_func
43958
43959 /* Override any GCC internal prototype to avoid an error.
43960    Use char because int might match the return type of a GCC
43961    builtin and then its argument prototype would still apply.  */
43962 #ifdef __cplusplus
43963 extern "C"
43964 #endif
43965 char $ac_func ();
43966 /* The GNU C library defines this for functions which it implements
43967     to always fail with ENOSYS.  Some functions are actually named
43968     something starting with __ and the normal name is an alias.  */
43969 #if defined __stub_$ac_func || defined __stub___$ac_func
43970 choke me
43971 #endif
43972
43973 int
43974 main ()
43975 {
43976 return $ac_func ();
43977   ;
43978   return 0;
43979 }
43980 _ACEOF
43981 rm -f conftest.$ac_objext conftest$ac_exeext
43982 if { (ac_try="$ac_link"
43983 case "(($ac_try" in
43984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43985   *) ac_try_echo=$ac_try;;
43986 esac
43987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43988   (eval "$ac_link") 2>conftest.er1
43989   ac_status=$?
43990   grep -v '^ *+' conftest.er1 >conftest.err
43991   rm -f conftest.er1
43992   cat conftest.err >&5
43993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994   (exit $ac_status); } && {
43995          test -z "$ac_c_werror_flag" ||
43996          test ! -s conftest.err
43997        } && test -s conftest$ac_exeext &&
43998        $as_test_x conftest$ac_exeext; then
43999   eval "$as_ac_var=yes"
44000 else
44001   echo "$as_me: failed program was:" >&5
44002 sed 's/^/| /' conftest.$ac_ext >&5
44003
44004         eval "$as_ac_var=no"
44005 fi
44006
44007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44008       conftest$ac_exeext conftest.$ac_ext
44009 fi
44010 ac_res=`eval echo '${'$as_ac_var'}'`
44011                { echo "$as_me:$LINENO: result: $ac_res" >&5
44012 echo "${ECHO_T}$ac_res" >&6; }
44013 if test `eval echo '${'$as_ac_var'}'` = yes; then
44014   cat >>confdefs.h <<_ACEOF
44015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44016 _ACEOF
44017
44018 fi
44019 done
44020
44021
44022     if test "$ac_cv_func_localtime" = "yes"; then
44023         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44024 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44025 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44026   echo $ECHO_N "(cached) $ECHO_C" >&6
44027 else
44028
44029             cat >conftest.$ac_ext <<_ACEOF
44030 /* confdefs.h.  */
44031 _ACEOF
44032 cat confdefs.h >>conftest.$ac_ext
44033 cat >>conftest.$ac_ext <<_ACEOF
44034 /* end confdefs.h.  */
44035
44036                     #include <time.h>
44037
44038 int
44039 main ()
44040 {
44041
44042                     struct tm tm;
44043                     tm.tm_gmtoff++;
44044
44045   ;
44046   return 0;
44047 }
44048 _ACEOF
44049 rm -f conftest.$ac_objext
44050 if { (ac_try="$ac_compile"
44051 case "(($ac_try" in
44052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44053   *) ac_try_echo=$ac_try;;
44054 esac
44055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44056   (eval "$ac_compile") 2>conftest.er1
44057   ac_status=$?
44058   grep -v '^ *+' conftest.er1 >conftest.err
44059   rm -f conftest.er1
44060   cat conftest.err >&5
44061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44062   (exit $ac_status); } && {
44063          test -z "$ac_c_werror_flag" ||
44064          test ! -s conftest.err
44065        } && test -s conftest.$ac_objext; then
44066
44067                     wx_cv_struct_tm_has_gmtoff=yes
44068
44069 else
44070   echo "$as_me: failed program was:" >&5
44071 sed 's/^/| /' conftest.$ac_ext >&5
44072
44073         wx_cv_struct_tm_has_gmtoff=no
44074
44075 fi
44076
44077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44078
44079 fi
44080 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44081 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44082     fi
44083
44084     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44085         cat >>confdefs.h <<\_ACEOF
44086 #define WX_GMTOFF_IN_TM 1
44087 _ACEOF
44088
44089     fi
44090
44091     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44092 fi
44093
44094
44095 if test "$wxUSE_SOCKETS" = "yes"; then
44096     if test "$wxUSE_MGL" = 1; then
44097         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44098 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44099         wxUSE_SOCKETS="no"
44100     fi
44101 fi
44102
44103 if test "$wxUSE_SOCKETS" = "yes"; then
44104         if test "$TOOLKIT" != "MSW"; then
44105                 { echo "$as_me:$LINENO: checking for socket" >&5
44106 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44107 if test "${ac_cv_func_socket+set}" = set; then
44108   echo $ECHO_N "(cached) $ECHO_C" >&6
44109 else
44110   cat >conftest.$ac_ext <<_ACEOF
44111 /* confdefs.h.  */
44112 _ACEOF
44113 cat confdefs.h >>conftest.$ac_ext
44114 cat >>conftest.$ac_ext <<_ACEOF
44115 /* end confdefs.h.  */
44116 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44118 #define socket innocuous_socket
44119
44120 /* System header to define __stub macros and hopefully few prototypes,
44121     which can conflict with char socket (); below.
44122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44123     <limits.h> exists even on freestanding compilers.  */
44124
44125 #ifdef __STDC__
44126 # include <limits.h>
44127 #else
44128 # include <assert.h>
44129 #endif
44130
44131 #undef socket
44132
44133 /* Override any GCC internal prototype to avoid an error.
44134    Use char because int might match the return type of a GCC
44135    builtin and then its argument prototype would still apply.  */
44136 #ifdef __cplusplus
44137 extern "C"
44138 #endif
44139 char socket ();
44140 /* The GNU C library defines this for functions which it implements
44141     to always fail with ENOSYS.  Some functions are actually named
44142     something starting with __ and the normal name is an alias.  */
44143 #if defined __stub_socket || defined __stub___socket
44144 choke me
44145 #endif
44146
44147 int
44148 main ()
44149 {
44150 return socket ();
44151   ;
44152   return 0;
44153 }
44154 _ACEOF
44155 rm -f conftest.$ac_objext conftest$ac_exeext
44156 if { (ac_try="$ac_link"
44157 case "(($ac_try" in
44158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44159   *) ac_try_echo=$ac_try;;
44160 esac
44161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44162   (eval "$ac_link") 2>conftest.er1
44163   ac_status=$?
44164   grep -v '^ *+' conftest.er1 >conftest.err
44165   rm -f conftest.er1
44166   cat conftest.err >&5
44167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168   (exit $ac_status); } && {
44169          test -z "$ac_c_werror_flag" ||
44170          test ! -s conftest.err
44171        } && test -s conftest$ac_exeext &&
44172        $as_test_x conftest$ac_exeext; then
44173   ac_cv_func_socket=yes
44174 else
44175   echo "$as_me: failed program was:" >&5
44176 sed 's/^/| /' conftest.$ac_ext >&5
44177
44178         ac_cv_func_socket=no
44179 fi
44180
44181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44182       conftest$ac_exeext conftest.$ac_ext
44183 fi
44184 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44185 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44186 if test $ac_cv_func_socket = yes; then
44187   :
44188 else
44189
44190                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44191 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44192 if test "${ac_cv_lib_socket_socket+set}" = set; then
44193   echo $ECHO_N "(cached) $ECHO_C" >&6
44194 else
44195   ac_check_lib_save_LIBS=$LIBS
44196 LIBS="-lsocket  $LIBS"
44197 cat >conftest.$ac_ext <<_ACEOF
44198 /* confdefs.h.  */
44199 _ACEOF
44200 cat confdefs.h >>conftest.$ac_ext
44201 cat >>conftest.$ac_ext <<_ACEOF
44202 /* end confdefs.h.  */
44203
44204 /* Override any GCC internal prototype to avoid an error.
44205    Use char because int might match the return type of a GCC
44206    builtin and then its argument prototype would still apply.  */
44207 #ifdef __cplusplus
44208 extern "C"
44209 #endif
44210 char socket ();
44211 int
44212 main ()
44213 {
44214 return socket ();
44215   ;
44216   return 0;
44217 }
44218 _ACEOF
44219 rm -f conftest.$ac_objext conftest$ac_exeext
44220 if { (ac_try="$ac_link"
44221 case "(($ac_try" in
44222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44223   *) ac_try_echo=$ac_try;;
44224 esac
44225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44226   (eval "$ac_link") 2>conftest.er1
44227   ac_status=$?
44228   grep -v '^ *+' conftest.er1 >conftest.err
44229   rm -f conftest.er1
44230   cat conftest.err >&5
44231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232   (exit $ac_status); } && {
44233          test -z "$ac_c_werror_flag" ||
44234          test ! -s conftest.err
44235        } && test -s conftest$ac_exeext &&
44236        $as_test_x conftest$ac_exeext; then
44237   ac_cv_lib_socket_socket=yes
44238 else
44239   echo "$as_me: failed program was:" >&5
44240 sed 's/^/| /' conftest.$ac_ext >&5
44241
44242         ac_cv_lib_socket_socket=no
44243 fi
44244
44245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44246       conftest$ac_exeext conftest.$ac_ext
44247 LIBS=$ac_check_lib_save_LIBS
44248 fi
44249 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44250 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44251 if test $ac_cv_lib_socket_socket = yes; then
44252   if test "$INET_LINK" != " -lsocket"; then
44253                         INET_LINK="$INET_LINK -lsocket"
44254                     fi
44255 else
44256
44257                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44258 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44259                         wxUSE_SOCKETS=no
44260
44261
44262 fi
44263
44264
44265
44266 fi
44267
44268     fi
44269 fi
44270
44271 if test "$wxUSE_SOCKETS" = "yes" ; then
44272                 if test "$TOOLKIT" != "MSW"; then
44273                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44274 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44275 if test "${wx_cv_type_getsockname3+set}" = set; then
44276   echo $ECHO_N "(cached) $ECHO_C" >&6
44277 else
44278
44279                 ac_ext=cpp
44280 ac_cpp='$CXXCPP $CPPFLAGS'
44281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44284
44285                 cat >conftest.$ac_ext <<_ACEOF
44286 /* confdefs.h.  */
44287 _ACEOF
44288 cat confdefs.h >>conftest.$ac_ext
44289 cat >>conftest.$ac_ext <<_ACEOF
44290 /* end confdefs.h.  */
44291
44292                         #include <sys/types.h>
44293                         #include <sys/socket.h>
44294
44295 int
44296 main ()
44297 {
44298
44299                         socklen_t len;
44300                         getsockname(0, 0, &len);
44301
44302   ;
44303   return 0;
44304 }
44305 _ACEOF
44306 rm -f conftest.$ac_objext
44307 if { (ac_try="$ac_compile"
44308 case "(($ac_try" in
44309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44310   *) ac_try_echo=$ac_try;;
44311 esac
44312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44313   (eval "$ac_compile") 2>conftest.er1
44314   ac_status=$?
44315   grep -v '^ *+' conftest.er1 >conftest.err
44316   rm -f conftest.er1
44317   cat conftest.err >&5
44318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44319   (exit $ac_status); } && {
44320          test -z "$ac_cxx_werror_flag" ||
44321          test ! -s conftest.err
44322        } && test -s conftest.$ac_objext; then
44323   wx_cv_type_getsockname3=socklen_t
44324 else
44325   echo "$as_me: failed program was:" >&5
44326 sed 's/^/| /' conftest.$ac_ext >&5
44327
44328
44329                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44330                         if test "$GCC" = yes ; then
44331                             CFLAGS="-Werror $CFLAGS"
44332                         fi
44333
44334                         cat >conftest.$ac_ext <<_ACEOF
44335 /* confdefs.h.  */
44336 _ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h.  */
44340
44341                                 #include <sys/types.h>
44342                                 #include <sys/socket.h>
44343
44344 int
44345 main ()
44346 {
44347
44348                                 size_t len;
44349                                 getsockname(0, 0, &len);
44350
44351   ;
44352   return 0;
44353 }
44354 _ACEOF
44355 rm -f conftest.$ac_objext
44356 if { (ac_try="$ac_compile"
44357 case "(($ac_try" in
44358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44359   *) ac_try_echo=$ac_try;;
44360 esac
44361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44362   (eval "$ac_compile") 2>conftest.er1
44363   ac_status=$?
44364   grep -v '^ *+' conftest.er1 >conftest.err
44365   rm -f conftest.er1
44366   cat conftest.err >&5
44367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368   (exit $ac_status); } && {
44369          test -z "$ac_cxx_werror_flag" ||
44370          test ! -s conftest.err
44371        } && test -s conftest.$ac_objext; then
44372   wx_cv_type_getsockname3=size_t
44373 else
44374   echo "$as_me: failed program was:" >&5
44375 sed 's/^/| /' conftest.$ac_ext >&5
44376
44377         cat >conftest.$ac_ext <<_ACEOF
44378 /* confdefs.h.  */
44379 _ACEOF
44380 cat confdefs.h >>conftest.$ac_ext
44381 cat >>conftest.$ac_ext <<_ACEOF
44382 /* end confdefs.h.  */
44383
44384                                     #include <sys/types.h>
44385                                     #include <sys/socket.h>
44386
44387 int
44388 main ()
44389 {
44390
44391                                     int len;
44392                                     getsockname(0, 0, &len);
44393
44394   ;
44395   return 0;
44396 }
44397 _ACEOF
44398 rm -f conftest.$ac_objext
44399 if { (ac_try="$ac_compile"
44400 case "(($ac_try" in
44401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44402   *) ac_try_echo=$ac_try;;
44403 esac
44404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44405   (eval "$ac_compile") 2>conftest.er1
44406   ac_status=$?
44407   grep -v '^ *+' conftest.er1 >conftest.err
44408   rm -f conftest.er1
44409   cat conftest.err >&5
44410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44411   (exit $ac_status); } && {
44412          test -z "$ac_cxx_werror_flag" ||
44413          test ! -s conftest.err
44414        } && test -s conftest.$ac_objext; then
44415   wx_cv_type_getsockname3=int
44416 else
44417   echo "$as_me: failed program was:" >&5
44418 sed 's/^/| /' conftest.$ac_ext >&5
44419
44420         wx_cv_type_getsockname3=unknown
44421
44422 fi
44423
44424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44425
44426 fi
44427
44428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44429
44430                         CFLAGS="$CFLAGS_OLD"
44431
44432
44433 fi
44434
44435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44436                 ac_ext=c
44437 ac_cpp='$CPP $CPPFLAGS'
44438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44441
44442
44443 fi
44444 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44445 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44446
44447         if test "$wx_cv_type_getsockname3" = "unknown"; then
44448             wxUSE_SOCKETS=no
44449             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44450 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44451         else
44452             cat >>confdefs.h <<_ACEOF
44453 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44454 _ACEOF
44455
44456         fi
44457                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44458 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44459 if test "${wx_cv_type_getsockopt5+set}" = set; then
44460   echo $ECHO_N "(cached) $ECHO_C" >&6
44461 else
44462
44463                                                                                                 ac_ext=cpp
44464 ac_cpp='$CXXCPP $CPPFLAGS'
44465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44468
44469                 cat >conftest.$ac_ext <<_ACEOF
44470 /* confdefs.h.  */
44471 _ACEOF
44472 cat confdefs.h >>conftest.$ac_ext
44473 cat >>conftest.$ac_ext <<_ACEOF
44474 /* end confdefs.h.  */
44475
44476                         #include <sys/types.h>
44477                         #include <sys/socket.h>
44478
44479 int
44480 main ()
44481 {
44482
44483                         socklen_t len;
44484                         getsockopt(0, 0, 0, 0, &len);
44485
44486   ;
44487   return 0;
44488 }
44489 _ACEOF
44490 rm -f conftest.$ac_objext
44491 if { (ac_try="$ac_compile"
44492 case "(($ac_try" in
44493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44494   *) ac_try_echo=$ac_try;;
44495 esac
44496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44497   (eval "$ac_compile") 2>conftest.er1
44498   ac_status=$?
44499   grep -v '^ *+' conftest.er1 >conftest.err
44500   rm -f conftest.er1
44501   cat conftest.err >&5
44502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503   (exit $ac_status); } && {
44504          test -z "$ac_cxx_werror_flag" ||
44505          test ! -s conftest.err
44506        } && test -s conftest.$ac_objext; then
44507   wx_cv_type_getsockopt5=socklen_t
44508 else
44509   echo "$as_me: failed program was:" >&5
44510 sed 's/^/| /' conftest.$ac_ext >&5
44511
44512
44513                         cat >conftest.$ac_ext <<_ACEOF
44514 /* confdefs.h.  */
44515 _ACEOF
44516 cat confdefs.h >>conftest.$ac_ext
44517 cat >>conftest.$ac_ext <<_ACEOF
44518 /* end confdefs.h.  */
44519
44520                                 #include <sys/types.h>
44521                                 #include <sys/socket.h>
44522
44523 int
44524 main ()
44525 {
44526
44527                                 size_t len;
44528                                 getsockopt(0, 0, 0, 0, &len);
44529
44530   ;
44531   return 0;
44532 }
44533 _ACEOF
44534 rm -f conftest.$ac_objext
44535 if { (ac_try="$ac_compile"
44536 case "(($ac_try" in
44537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44538   *) ac_try_echo=$ac_try;;
44539 esac
44540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44541   (eval "$ac_compile") 2>conftest.er1
44542   ac_status=$?
44543   grep -v '^ *+' conftest.er1 >conftest.err
44544   rm -f conftest.er1
44545   cat conftest.err >&5
44546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547   (exit $ac_status); } && {
44548          test -z "$ac_cxx_werror_flag" ||
44549          test ! -s conftest.err
44550        } && test -s conftest.$ac_objext; then
44551   wx_cv_type_getsockopt5=size_t
44552 else
44553   echo "$as_me: failed program was:" >&5
44554 sed 's/^/| /' conftest.$ac_ext >&5
44555
44556         cat >conftest.$ac_ext <<_ACEOF
44557 /* confdefs.h.  */
44558 _ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h.  */
44562
44563                                     #include <sys/types.h>
44564                                     #include <sys/socket.h>
44565
44566 int
44567 main ()
44568 {
44569
44570                                     int len;
44571                                     getsockopt(0, 0, 0, 0, &len);
44572
44573   ;
44574   return 0;
44575 }
44576 _ACEOF
44577 rm -f conftest.$ac_objext
44578 if { (ac_try="$ac_compile"
44579 case "(($ac_try" in
44580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44581   *) ac_try_echo=$ac_try;;
44582 esac
44583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44584   (eval "$ac_compile") 2>conftest.er1
44585   ac_status=$?
44586   grep -v '^ *+' conftest.er1 >conftest.err
44587   rm -f conftest.er1
44588   cat conftest.err >&5
44589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590   (exit $ac_status); } && {
44591          test -z "$ac_cxx_werror_flag" ||
44592          test ! -s conftest.err
44593        } && test -s conftest.$ac_objext; then
44594   wx_cv_type_getsockopt5=int
44595 else
44596   echo "$as_me: failed program was:" >&5
44597 sed 's/^/| /' conftest.$ac_ext >&5
44598
44599         wx_cv_type_getsockopt5=unknown
44600
44601 fi
44602
44603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44604
44605 fi
44606
44607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44608
44609
44610 fi
44611
44612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44613                 ac_ext=c
44614 ac_cpp='$CPP $CPPFLAGS'
44615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44618
44619
44620 fi
44621 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44622 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44623
44624         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44625             wxUSE_SOCKETS=no
44626             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44627 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44628         else
44629             cat >>confdefs.h <<_ACEOF
44630 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44631 _ACEOF
44632
44633         fi
44634     fi
44635 fi
44636
44637 if test "$wxUSE_SOCKETS" = "yes" ; then
44638     if test "$wxUSE_IPV6" = "yes"; then
44639         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44640 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44641 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44642   echo $ECHO_N "(cached) $ECHO_C" >&6
44643 else
44644
44645                 cat >conftest.$ac_ext <<_ACEOF
44646 /* confdefs.h.  */
44647 _ACEOF
44648 cat confdefs.h >>conftest.$ac_ext
44649 cat >>conftest.$ac_ext <<_ACEOF
44650 /* end confdefs.h.  */
44651
44652                         #include <sys/types.h>
44653                         #include <sys/socket.h>
44654                         #include <netinet/in.h>
44655
44656 int
44657 main ()
44658 {
44659
44660                         struct sockaddr_in6 sa6;
44661
44662   ;
44663   return 0;
44664 }
44665 _ACEOF
44666 rm -f conftest.$ac_objext
44667 if { (ac_try="$ac_compile"
44668 case "(($ac_try" in
44669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44670   *) ac_try_echo=$ac_try;;
44671 esac
44672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44673   (eval "$ac_compile") 2>conftest.er1
44674   ac_status=$?
44675   grep -v '^ *+' conftest.er1 >conftest.err
44676   rm -f conftest.er1
44677   cat conftest.err >&5
44678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44679   (exit $ac_status); } && {
44680          test -z "$ac_c_werror_flag" ||
44681          test ! -s conftest.err
44682        } && test -s conftest.$ac_objext; then
44683   wx_cv_type_sockaddr_in6=yes
44684 else
44685   echo "$as_me: failed program was:" >&5
44686 sed 's/^/| /' conftest.$ac_ext >&5
44687
44688         wx_cv_type_sockaddr_in6=no
44689
44690 fi
44691
44692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44693
44694
44695 fi
44696 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44697 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44698
44699         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44700             cat >>confdefs.h <<\_ACEOF
44701 #define wxUSE_IPV6 1
44702 _ACEOF
44703
44704         else
44705             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44706 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44707         fi
44708     fi
44709
44710     cat >>confdefs.h <<\_ACEOF
44711 #define wxUSE_SOCKETS 1
44712 _ACEOF
44713
44714     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44715 fi
44716
44717 if test "$wxUSE_PROTOCOL" = "yes"; then
44718     if test "$wxUSE_SOCKETS" != "yes"; then
44719         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44720 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44721         wxUSE_PROTOCOL=no
44722     fi
44723 fi
44724
44725 if test "$wxUSE_PROTOCOL" = "yes"; then
44726     cat >>confdefs.h <<\_ACEOF
44727 #define wxUSE_PROTOCOL 1
44728 _ACEOF
44729
44730
44731     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44732         cat >>confdefs.h <<\_ACEOF
44733 #define wxUSE_PROTOCOL_HTTP 1
44734 _ACEOF
44735
44736     fi
44737     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44738         cat >>confdefs.h <<\_ACEOF
44739 #define wxUSE_PROTOCOL_FTP 1
44740 _ACEOF
44741
44742     fi
44743     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44744         cat >>confdefs.h <<\_ACEOF
44745 #define wxUSE_PROTOCOL_FILE 1
44746 _ACEOF
44747
44748     fi
44749 else
44750     if test "$wxUSE_FS_INET" = "yes"; then
44751         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44752 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44753         wxUSE_FS_INET="no"
44754     fi
44755 fi
44756
44757 if test "$wxUSE_URL" = "yes"; then
44758     if test "$wxUSE_PROTOCOL" != "yes"; then
44759         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44760 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44761         wxUSE_URL=no
44762     fi
44763     if test "$wxUSE_URL" = "yes"; then
44764         cat >>confdefs.h <<\_ACEOF
44765 #define wxUSE_URL 1
44766 _ACEOF
44767
44768     fi
44769 fi
44770
44771 if test "$wxUSE_VARIANT" = "yes"; then
44772     cat >>confdefs.h <<\_ACEOF
44773 #define wxUSE_VARIANT 1
44774 _ACEOF
44775
44776 fi
44777
44778 if test "$wxUSE_FS_INET" = "yes"; then
44779   cat >>confdefs.h <<\_ACEOF
44780 #define wxUSE_FS_INET 1
44781 _ACEOF
44782
44783 fi
44784
44785
44786 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44787     wxUSE_JOYSTICK=no
44788
44789         if test "$TOOLKIT" = "MSW"; then
44790         wxUSE_JOYSTICK=yes
44791
44792         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44793         if test "$USE_DARWIN" = 1; then
44794                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44795 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44796             ac_ext=cpp
44797 ac_cpp='$CXXCPP $CPPFLAGS'
44798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44801
44802             cat >conftest.$ac_ext <<_ACEOF
44803 /* confdefs.h.  */
44804 _ACEOF
44805 cat confdefs.h >>conftest.$ac_ext
44806 cat >>conftest.$ac_ext <<_ACEOF
44807 /* end confdefs.h.  */
44808  #include <IOKit/hid/IOHIDLib.h>
44809 int
44810 main ()
44811 {
44812  IOHIDQueueInterface *qi = NULL;
44813                               IOHIDCallbackFunction cb = NULL;
44814                               qi->setEventCallout(NULL, cb, NULL, NULL);
44815   ;
44816   return 0;
44817 }
44818 _ACEOF
44819 rm -f conftest.$ac_objext
44820 if { (ac_try="$ac_compile"
44821 case "(($ac_try" in
44822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44823   *) ac_try_echo=$ac_try;;
44824 esac
44825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44826   (eval "$ac_compile") 2>conftest.er1
44827   ac_status=$?
44828   grep -v '^ *+' conftest.er1 >conftest.err
44829   rm -f conftest.er1
44830   cat conftest.err >&5
44831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44832   (exit $ac_status); } && {
44833          test -z "$ac_cxx_werror_flag" ||
44834          test ! -s conftest.err
44835        } && test -s conftest.$ac_objext; then
44836    wxUSE_JOYSTICK=yes
44837
44838 else
44839   echo "$as_me: failed program was:" >&5
44840 sed 's/^/| /' conftest.$ac_ext >&5
44841
44842
44843 fi
44844
44845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44846             ac_ext=c
44847 ac_cpp='$CPP $CPPFLAGS'
44848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44851
44852             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44853 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44854         fi
44855
44856         else
44857                 if test "$wxUSE_MGL" != 1; then
44858
44859 for ac_header in linux/joystick.h
44860 do
44861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44865   echo $ECHO_N "(cached) $ECHO_C" >&6
44866 else
44867   cat >conftest.$ac_ext <<_ACEOF
44868 /* confdefs.h.  */
44869 _ACEOF
44870 cat confdefs.h >>conftest.$ac_ext
44871 cat >>conftest.$ac_ext <<_ACEOF
44872 /* end confdefs.h.  */
44873 $ac_includes_default
44874
44875 #include <$ac_header>
44876 _ACEOF
44877 rm -f conftest.$ac_objext
44878 if { (ac_try="$ac_compile"
44879 case "(($ac_try" in
44880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44881   *) ac_try_echo=$ac_try;;
44882 esac
44883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44884   (eval "$ac_compile") 2>conftest.er1
44885   ac_status=$?
44886   grep -v '^ *+' conftest.er1 >conftest.err
44887   rm -f conftest.er1
44888   cat conftest.err >&5
44889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890   (exit $ac_status); } && {
44891          test -z "$ac_c_werror_flag" ||
44892          test ! -s conftest.err
44893        } && test -s conftest.$ac_objext; then
44894   eval "$as_ac_Header=yes"
44895 else
44896   echo "$as_me: failed program was:" >&5
44897 sed 's/^/| /' conftest.$ac_ext >&5
44898
44899         eval "$as_ac_Header=no"
44900 fi
44901
44902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44903 fi
44904 ac_res=`eval echo '${'$as_ac_Header'}'`
44905                { echo "$as_me:$LINENO: result: $ac_res" >&5
44906 echo "${ECHO_T}$ac_res" >&6; }
44907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44908   cat >>confdefs.h <<_ACEOF
44909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44910 _ACEOF
44911  wxUSE_JOYSTICK=yes
44912 fi
44913
44914 done
44915
44916         fi
44917     fi
44918
44919     if test "$wxUSE_JOYSTICK" = "yes"; then
44920         cat >>confdefs.h <<\_ACEOF
44921 #define wxUSE_JOYSTICK 1
44922 _ACEOF
44923
44924         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44925     else
44926         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44927 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44928     fi
44929 fi
44930
44931
44932
44933 if test "$wxUSE_FONTENUM" = "yes" ; then
44934   cat >>confdefs.h <<\_ACEOF
44935 #define wxUSE_FONTENUM 1
44936 _ACEOF
44937
44938 fi
44939
44940 if test "$wxUSE_FONTMAP" = "yes" ; then
44941   cat >>confdefs.h <<\_ACEOF
44942 #define wxUSE_FONTMAP 1
44943 _ACEOF
44944
44945 fi
44946
44947 if test "$wxUSE_UNICODE" = "yes" ; then
44948   cat >>confdefs.h <<\_ACEOF
44949 #define wxUSE_UNICODE 1
44950 _ACEOF
44951
44952
44953   if test "$USE_WIN32" != 1; then
44954       wxUSE_UNICODE_MSLU=no
44955   fi
44956
44957   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44958         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44959 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44960 if test "${ac_cv_lib_unicows_main+set}" = set; then
44961   echo $ECHO_N "(cached) $ECHO_C" >&6
44962 else
44963   ac_check_lib_save_LIBS=$LIBS
44964 LIBS="-lunicows  $LIBS"
44965 cat >conftest.$ac_ext <<_ACEOF
44966 /* confdefs.h.  */
44967 _ACEOF
44968 cat confdefs.h >>conftest.$ac_ext
44969 cat >>conftest.$ac_ext <<_ACEOF
44970 /* end confdefs.h.  */
44971
44972
44973 int
44974 main ()
44975 {
44976 return main ();
44977   ;
44978   return 0;
44979 }
44980 _ACEOF
44981 rm -f conftest.$ac_objext conftest$ac_exeext
44982 if { (ac_try="$ac_link"
44983 case "(($ac_try" in
44984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44985   *) ac_try_echo=$ac_try;;
44986 esac
44987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44988   (eval "$ac_link") 2>conftest.er1
44989   ac_status=$?
44990   grep -v '^ *+' conftest.er1 >conftest.err
44991   rm -f conftest.er1
44992   cat conftest.err >&5
44993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44994   (exit $ac_status); } && {
44995          test -z "$ac_c_werror_flag" ||
44996          test ! -s conftest.err
44997        } && test -s conftest$ac_exeext &&
44998        $as_test_x conftest$ac_exeext; then
44999   ac_cv_lib_unicows_main=yes
45000 else
45001   echo "$as_me: failed program was:" >&5
45002 sed 's/^/| /' conftest.$ac_ext >&5
45003
45004         ac_cv_lib_unicows_main=no
45005 fi
45006
45007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45008       conftest$ac_exeext conftest.$ac_ext
45009 LIBS=$ac_check_lib_save_LIBS
45010 fi
45011 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45012 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45013 if test $ac_cv_lib_unicows_main = yes; then
45014
45015                 cat >>confdefs.h <<\_ACEOF
45016 #define wxUSE_UNICODE_MSLU 1
45017 _ACEOF
45018
45019
45020 else
45021
45022                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45023                              Applications will only run on Windows NT/2000/XP!" >&5
45024 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45025                              Applications will only run on Windows NT/2000/XP!" >&2;}
45026                 wxUSE_UNICODE_MSLU=no
45027
45028 fi
45029
45030     fi
45031 fi
45032
45033 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45034     cat >>confdefs.h <<\_ACEOF
45035 #define wxUSE_UNICODE_UTF8 1
45036 _ACEOF
45037
45038
45039     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45040         cat >>confdefs.h <<\_ACEOF
45041 #define wxUSE_UTF8_LOCALE_ONLY 1
45042 _ACEOF
45043
45044     fi
45045 fi
45046
45047
45048 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45049     cat >>confdefs.h <<\_ACEOF
45050 #define wxUSE_CONSTRAINTS 1
45051 _ACEOF
45052
45053     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45054 fi
45055
45056 if test "$wxUSE_MDI" = "yes"; then
45057     cat >>confdefs.h <<\_ACEOF
45058 #define wxUSE_MDI 1
45059 _ACEOF
45060
45061
45062     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45063         cat >>confdefs.h <<\_ACEOF
45064 #define wxUSE_MDI_ARCHITECTURE 1
45065 _ACEOF
45066
45067         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45068     fi
45069 fi
45070
45071 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45072     cat >>confdefs.h <<\_ACEOF
45073 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45074 _ACEOF
45075
45076     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45077     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45078         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45079     fi
45080 fi
45081
45082 if test "$wxUSE_HELP" = "yes"; then
45083     cat >>confdefs.h <<\_ACEOF
45084 #define wxUSE_HELP 1
45085 _ACEOF
45086
45087     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45088
45089     if test "$wxUSE_MSW" = 1; then
45090       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45091         cat >>confdefs.h <<\_ACEOF
45092 #define wxUSE_MS_HTML_HELP 1
45093 _ACEOF
45094
45095       fi
45096     fi
45097
45098     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45099       if test "$wxUSE_HTML" = "yes"; then
45100         cat >>confdefs.h <<\_ACEOF
45101 #define wxUSE_WXHTML_HELP 1
45102 _ACEOF
45103
45104       else
45105         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45106 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45107         wxUSE_WXHTML_HELP=no
45108       fi
45109     fi
45110 fi
45111
45112 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45113     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45114         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45115 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45116     else
45117         cat >>confdefs.h <<\_ACEOF
45118 #define wxUSE_PRINTING_ARCHITECTURE 1
45119 _ACEOF
45120
45121     fi
45122     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45123 fi
45124
45125 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45126   cat >>confdefs.h <<\_ACEOF
45127 #define wxUSE_POSTSCRIPT 1
45128 _ACEOF
45129
45130 fi
45131
45132 cat >>confdefs.h <<\_ACEOF
45133 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45134 _ACEOF
45135
45136
45137 if test "$wxUSE_SVG" = "yes"; then
45138     cat >>confdefs.h <<\_ACEOF
45139 #define wxUSE_SVG 1
45140 _ACEOF
45141
45142 fi
45143
45144
45145 if test "$wxUSE_METAFILE" = "yes"; then
45146     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45147         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45148 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45149         wxUSE_METAFILE=no
45150     fi
45151 fi
45152
45153
45154 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45155                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45156                           -o "$wxUSE_OLE"     = "yes" \
45157                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45158     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45159 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45160 if test "${ac_cv_header_ole2_h+set}" = set; then
45161   echo $ECHO_N "(cached) $ECHO_C" >&6
45162 else
45163   cat >conftest.$ac_ext <<_ACEOF
45164 /* confdefs.h.  */
45165 _ACEOF
45166 cat confdefs.h >>conftest.$ac_ext
45167 cat >>conftest.$ac_ext <<_ACEOF
45168 /* end confdefs.h.  */
45169
45170
45171 #include <ole2.h>
45172 _ACEOF
45173 rm -f conftest.$ac_objext
45174 if { (ac_try="$ac_compile"
45175 case "(($ac_try" in
45176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45177   *) ac_try_echo=$ac_try;;
45178 esac
45179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45180   (eval "$ac_compile") 2>conftest.er1
45181   ac_status=$?
45182   grep -v '^ *+' conftest.er1 >conftest.err
45183   rm -f conftest.er1
45184   cat conftest.err >&5
45185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45186   (exit $ac_status); } && {
45187          test -z "$ac_c_werror_flag" ||
45188          test ! -s conftest.err
45189        } && test -s conftest.$ac_objext; then
45190   ac_cv_header_ole2_h=yes
45191 else
45192   echo "$as_me: failed program was:" >&5
45193 sed 's/^/| /' conftest.$ac_ext >&5
45194
45195         ac_cv_header_ole2_h=no
45196 fi
45197
45198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45199 fi
45200 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45201 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45202
45203
45204
45205     if test "$ac_cv_header_ole2_h" = "yes" ; then
45206         if test "$GCC" = yes ; then
45207             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45208 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45209             cat >conftest.$ac_ext <<_ACEOF
45210 /* confdefs.h.  */
45211 _ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h.  */
45215 #include <windows.h>
45216                             #include <ole2.h>
45217 int
45218 main ()
45219 {
45220
45221   ;
45222   return 0;
45223 }
45224 _ACEOF
45225 rm -f conftest.$ac_objext
45226 if { (ac_try="$ac_compile"
45227 case "(($ac_try" in
45228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45229   *) ac_try_echo=$ac_try;;
45230 esac
45231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45232   (eval "$ac_compile") 2>conftest.er1
45233   ac_status=$?
45234   grep -v '^ *+' conftest.er1 >conftest.err
45235   rm -f conftest.er1
45236   cat conftest.err >&5
45237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45238   (exit $ac_status); } && {
45239          test -z "$ac_c_werror_flag" ||
45240          test ! -s conftest.err
45241        } && test -s conftest.$ac_objext; then
45242   { echo "$as_me:$LINENO: result: no" >&5
45243 echo "${ECHO_T}no" >&6; }
45244 else
45245   echo "$as_me: failed program was:" >&5
45246 sed 's/^/| /' conftest.$ac_ext >&5
45247
45248         { echo "$as_me:$LINENO: result: yes" >&5
45249 echo "${ECHO_T}yes" >&6; }
45250                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45251 fi
45252
45253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45254             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45255             if test "$wxUSE_OLE" = "yes" ; then
45256                 cat >>confdefs.h <<\_ACEOF
45257 #define wxUSE_OLE 1
45258 _ACEOF
45259
45260                 cat >>confdefs.h <<\_ACEOF
45261 #define wxUSE_OLE_AUTOMATION 1
45262 _ACEOF
45263
45264                 cat >>confdefs.h <<\_ACEOF
45265 #define wxUSE_ACTIVEX 1
45266 _ACEOF
45267
45268                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45269             fi
45270         fi
45271
45272                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45273             cat >>confdefs.h <<\_ACEOF
45274 #define wxUSE_DATAOBJ 1
45275 _ACEOF
45276
45277         fi
45278     else
45279         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45280 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45281
45282         wxUSE_CLIPBOARD=no
45283         wxUSE_DRAG_AND_DROP=no
45284         wxUSE_DATAOBJ=no
45285         wxUSE_OLE=no
45286     fi
45287
45288     if test "$wxUSE_METAFILE" = "yes"; then
45289         cat >>confdefs.h <<\_ACEOF
45290 #define wxUSE_METAFILE 1
45291 _ACEOF
45292
45293
45294                 cat >>confdefs.h <<\_ACEOF
45295 #define wxUSE_ENH_METAFILE 1
45296 _ACEOF
45297
45298     fi
45299 fi
45300
45301 if test "$wxUSE_IPC" = "yes"; then
45302     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45303         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45304 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45305         wxUSE_IPC=no
45306     fi
45307
45308     if test "$wxUSE_IPC" = "yes"; then
45309         cat >>confdefs.h <<\_ACEOF
45310 #define wxUSE_IPC 1
45311 _ACEOF
45312
45313         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45314     fi
45315 fi
45316
45317 if test "$wxUSE_DATAOBJ" = "yes"; then
45318     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45319         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45320 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45321         wxUSE_DATAOBJ=no
45322     else
45323         cat >>confdefs.h <<\_ACEOF
45324 #define wxUSE_DATAOBJ 1
45325 _ACEOF
45326
45327     fi
45328 else
45329     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45330 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45331     wxUSE_CLIPBOARD=no
45332     wxUSE_DRAG_AND_DROP=no
45333 fi
45334
45335 if test "$wxUSE_CLIPBOARD" = "yes"; then
45336     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45337         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45338 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45339         wxUSE_CLIPBOARD=no
45340     fi
45341
45342     if test "$wxUSE_CLIPBOARD" = "yes"; then
45343         cat >>confdefs.h <<\_ACEOF
45344 #define wxUSE_CLIPBOARD 1
45345 _ACEOF
45346
45347     fi
45348 fi
45349
45350 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45351     if test "$wxUSE_GTK" = 1; then
45352         if test "$WXGTK12" != 1; then
45353             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45354 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45355             wxUSE_DRAG_AND_DROP=no
45356         fi
45357     fi
45358
45359     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45360             "$wxUSE_DFB" = 1; then
45361         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45362 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45363         wxUSE_DRAG_AND_DROP=no
45364     fi
45365
45366     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45367         cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_DRAG_AND_DROP 1
45369 _ACEOF
45370
45371     fi
45372
45373 fi
45374
45375 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45377 fi
45378
45379 if test "$wxUSE_SPLINES" = "yes" ; then
45380   cat >>confdefs.h <<\_ACEOF
45381 #define wxUSE_SPLINES 1
45382 _ACEOF
45383
45384 fi
45385
45386 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45387   cat >>confdefs.h <<\_ACEOF
45388 #define wxUSE_MOUSEWHEEL 1
45389 _ACEOF
45390
45391 fi
45392
45393
45394 USES_CONTROLS=0
45395 if test "$wxUSE_CONTROLS" = "yes"; then
45396   USES_CONTROLS=1
45397 fi
45398
45399 if test "$wxUSE_ACCEL" = "yes"; then
45400   cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_ACCEL 1
45402 _ACEOF
45403
45404   USES_CONTROLS=1
45405 fi
45406
45407 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45408   cat >>confdefs.h <<\_ACEOF
45409 #define wxUSE_ANIMATIONCTRL 1
45410 _ACEOF
45411
45412   USES_CONTROLS=1
45413   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45414 fi
45415
45416 if test "$wxUSE_BUTTON" = "yes"; then
45417   cat >>confdefs.h <<\_ACEOF
45418 #define wxUSE_BUTTON 1
45419 _ACEOF
45420
45421   USES_CONTROLS=1
45422 fi
45423
45424 if test "$wxUSE_BMPBUTTON" = "yes"; then
45425   cat >>confdefs.h <<\_ACEOF
45426 #define wxUSE_BMPBUTTON 1
45427 _ACEOF
45428
45429   USES_CONTROLS=1
45430 fi
45431
45432 if test "$wxUSE_CALCTRL" = "yes"; then
45433   cat >>confdefs.h <<\_ACEOF
45434 #define wxUSE_CALENDARCTRL 1
45435 _ACEOF
45436
45437   USES_CONTROLS=1
45438   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45439 fi
45440
45441 if test "$wxUSE_CARET" = "yes"; then
45442   cat >>confdefs.h <<\_ACEOF
45443 #define wxUSE_CARET 1
45444 _ACEOF
45445
45446   USES_CONTROLS=1
45447   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45448 fi
45449
45450 if test "$wxUSE_COLLPANE" = "yes"; then
45451     cat >>confdefs.h <<\_ACEOF
45452 #define wxUSE_COLLPANE 1
45453 _ACEOF
45454
45455     USES_CONTROLS=1
45456     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45457 fi
45458
45459 if test "$wxUSE_COMBOBOX" = "yes"; then
45460   cat >>confdefs.h <<\_ACEOF
45461 #define wxUSE_COMBOBOX 1
45462 _ACEOF
45463
45464   USES_CONTROLS=1
45465 fi
45466
45467 if test "$wxUSE_COMBOCTRL" = "yes"; then
45468   cat >>confdefs.h <<\_ACEOF
45469 #define wxUSE_COMBOCTRL 1
45470 _ACEOF
45471
45472   USES_CONTROLS=1
45473 fi
45474
45475 if test "$wxUSE_CHOICE" = "yes"; then
45476   cat >>confdefs.h <<\_ACEOF
45477 #define wxUSE_CHOICE 1
45478 _ACEOF
45479
45480   USES_CONTROLS=1
45481 fi
45482
45483 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45484     cat >>confdefs.h <<\_ACEOF
45485 #define wxUSE_CHOICEBOOK 1
45486 _ACEOF
45487
45488     USES_CONTROLS=1
45489 fi
45490
45491 if test "$wxUSE_CHECKBOX" = "yes"; then
45492   cat >>confdefs.h <<\_ACEOF
45493 #define wxUSE_CHECKBOX 1
45494 _ACEOF
45495
45496   USES_CONTROLS=1
45497 fi
45498
45499 if test "$wxUSE_CHECKLST" = "yes"; then
45500   cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_CHECKLISTBOX 1
45502 _ACEOF
45503
45504   USES_CONTROLS=1
45505 fi
45506
45507 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45508   cat >>confdefs.h <<\_ACEOF
45509 #define wxUSE_COLOURPICKERCTRL 1
45510 _ACEOF
45511
45512   USES_CONTROLS=1
45513 fi
45514
45515 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45516   cat >>confdefs.h <<\_ACEOF
45517 #define wxUSE_DATEPICKCTRL 1
45518 _ACEOF
45519
45520   USES_CONTROLS=1
45521 fi
45522
45523 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45524   cat >>confdefs.h <<\_ACEOF
45525 #define wxUSE_DIRPICKERCTRL 1
45526 _ACEOF
45527
45528   USES_CONTROLS=1
45529 fi
45530
45531 if test "$wxUSE_FILECTRL" = "yes"; then
45532   cat >>confdefs.h <<\_ACEOF
45533 #define wxUSE_FILECTRL 1
45534 _ACEOF
45535
45536   USES_CONTROLS=1
45537 fi
45538
45539 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45540   cat >>confdefs.h <<\_ACEOF
45541 #define wxUSE_FILEPICKERCTRL 1
45542 _ACEOF
45543
45544   USES_CONTROLS=1
45545 fi
45546
45547 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45548   cat >>confdefs.h <<\_ACEOF
45549 #define wxUSE_FONTPICKERCTRL 1
45550 _ACEOF
45551
45552   USES_CONTROLS=1
45553 fi
45554
45555 if test "$wxUSE_DISPLAY" = "yes"; then
45556     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45557         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45558 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45559         wxUSE_DISPLAY=no
45560     else
45561         cat >>confdefs.h <<\_ACEOF
45562 #define wxUSE_DISPLAY 1
45563 _ACEOF
45564
45565         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45566     fi
45567 fi
45568
45569 if test "$wxUSE_DETECT_SM" = "yes"; then
45570     cat >>confdefs.h <<\_ACEOF
45571 #define wxUSE_DETECT_SM 1
45572 _ACEOF
45573
45574 fi
45575
45576 if test "$wxUSE_GAUGE" = "yes"; then
45577   cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_GAUGE 1
45579 _ACEOF
45580
45581   USES_CONTROLS=1
45582 fi
45583
45584 if test "$wxUSE_GRID" = "yes"; then
45585   cat >>confdefs.h <<\_ACEOF
45586 #define wxUSE_GRID 1
45587 _ACEOF
45588
45589   USES_CONTROLS=1
45590   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45591 fi
45592
45593 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45594   cat >>confdefs.h <<\_ACEOF
45595 #define wxUSE_HYPERLINKCTRL 1
45596 _ACEOF
45597
45598   USES_CONTROLS=1
45599 fi
45600
45601 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45602   cat >>confdefs.h <<\_ACEOF
45603 #define wxUSE_BITMAPCOMBOBOX 1
45604 _ACEOF
45605
45606   USES_CONTROLS=1
45607 fi
45608
45609 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45610   cat >>confdefs.h <<\_ACEOF
45611 #define wxUSE_DATAVIEWCTRL 1
45612 _ACEOF
45613
45614   USES_CONTROLS=1
45615   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45616 fi
45617
45618 if test "$wxUSE_IMAGLIST" = "yes"; then
45619     cat >>confdefs.h <<\_ACEOF
45620 #define wxUSE_IMAGLIST 1
45621 _ACEOF
45622
45623 fi
45624
45625 if test "$wxUSE_LISTBOOK" = "yes"; then
45626     cat >>confdefs.h <<\_ACEOF
45627 #define wxUSE_LISTBOOK 1
45628 _ACEOF
45629
45630     USES_CONTROLS=1
45631 fi
45632
45633 if test "$wxUSE_LISTBOX" = "yes"; then
45634     cat >>confdefs.h <<\_ACEOF
45635 #define wxUSE_LISTBOX 1
45636 _ACEOF
45637
45638     USES_CONTROLS=1
45639 fi
45640
45641 if test "$wxUSE_LISTCTRL" = "yes"; then
45642     if test "$wxUSE_IMAGLIST" = "yes"; then
45643         cat >>confdefs.h <<\_ACEOF
45644 #define wxUSE_LISTCTRL 1
45645 _ACEOF
45646
45647         USES_CONTROLS=1
45648         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45649     else
45650         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45651 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45652     fi
45653 fi
45654
45655 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45656     cat >>confdefs.h <<\_ACEOF
45657 #define wxUSE_EDITABLELISTBOX 1
45658 _ACEOF
45659
45660     USES_CONTROLS=1
45661     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45662 fi
45663
45664 if test "$wxUSE_NOTEBOOK" = "yes"; then
45665     cat >>confdefs.h <<\_ACEOF
45666 #define wxUSE_NOTEBOOK 1
45667 _ACEOF
45668
45669     USES_CONTROLS=1
45670     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45671 fi
45672
45673 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45674     cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_NOTIFICATION_MESSAGE 1
45676 _ACEOF
45677
45678 fi
45679
45680 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45681   cat >>confdefs.h <<\_ACEOF
45682 #define wxUSE_ODCOMBOBOX 1
45683 _ACEOF
45684
45685   USES_CONTROLS=1
45686   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45687 fi
45688
45689 if test "$wxUSE_RADIOBOX" = "yes"; then
45690     cat >>confdefs.h <<\_ACEOF
45691 #define wxUSE_RADIOBOX 1
45692 _ACEOF
45693
45694     USES_CONTROLS=1
45695 fi
45696
45697 if test "$wxUSE_RADIOBTN" = "yes"; then
45698     cat >>confdefs.h <<\_ACEOF
45699 #define wxUSE_RADIOBTN 1
45700 _ACEOF
45701
45702     USES_CONTROLS=1
45703 fi
45704
45705 if test "$wxUSE_SASH" = "yes"; then
45706     cat >>confdefs.h <<\_ACEOF
45707 #define wxUSE_SASH 1
45708 _ACEOF
45709
45710     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45711 fi
45712
45713 if test "$wxUSE_SCROLLBAR" = "yes"; then
45714     cat >>confdefs.h <<\_ACEOF
45715 #define wxUSE_SCROLLBAR 1
45716 _ACEOF
45717
45718     USES_CONTROLS=1
45719     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45720 fi
45721
45722 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45723     cat >>confdefs.h <<\_ACEOF
45724 #define wxUSE_SEARCHCTRL 1
45725 _ACEOF
45726
45727     USES_CONTROLS=1
45728 fi
45729
45730 if test "$wxUSE_SLIDER" = "yes"; then
45731     cat >>confdefs.h <<\_ACEOF
45732 #define wxUSE_SLIDER 1
45733 _ACEOF
45734
45735     USES_CONTROLS=1
45736 fi
45737
45738 if test "$wxUSE_SPINBTN" = "yes"; then
45739     cat >>confdefs.h <<\_ACEOF
45740 #define wxUSE_SPINBTN 1
45741 _ACEOF
45742
45743     USES_CONTROLS=1
45744 fi
45745
45746 if test "$wxUSE_SPINCTRL" = "yes"; then
45747     cat >>confdefs.h <<\_ACEOF
45748 #define wxUSE_SPINCTRL 1
45749 _ACEOF
45750
45751     USES_CONTROLS=1
45752 fi
45753
45754 if test "$wxUSE_SPLITTER" = "yes"; then
45755     cat >>confdefs.h <<\_ACEOF
45756 #define wxUSE_SPLITTER 1
45757 _ACEOF
45758
45759     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45760 fi
45761
45762 if test "$wxUSE_STATBMP" = "yes"; then
45763     cat >>confdefs.h <<\_ACEOF
45764 #define wxUSE_STATBMP 1
45765 _ACEOF
45766
45767     USES_CONTROLS=1
45768 fi
45769
45770 if test "$wxUSE_STATBOX" = "yes"; then
45771     cat >>confdefs.h <<\_ACEOF
45772 #define wxUSE_STATBOX 1
45773 _ACEOF
45774
45775     USES_CONTROLS=1
45776 fi
45777
45778 if test "$wxUSE_STATTEXT" = "yes"; then
45779     cat >>confdefs.h <<\_ACEOF
45780 #define wxUSE_STATTEXT 1
45781 _ACEOF
45782
45783     USES_CONTROLS=1
45784 fi
45785
45786 if test "$wxUSE_STATLINE" = "yes"; then
45787     cat >>confdefs.h <<\_ACEOF
45788 #define wxUSE_STATLINE 1
45789 _ACEOF
45790
45791     USES_CONTROLS=1
45792 fi
45793
45794 if test "$wxUSE_STATUSBAR" = "yes"; then
45795         cat >>confdefs.h <<\_ACEOF
45796 #define wxUSE_NATIVE_STATUSBAR 1
45797 _ACEOF
45798
45799     cat >>confdefs.h <<\_ACEOF
45800 #define wxUSE_STATUSBAR 1
45801 _ACEOF
45802
45803     USES_CONTROLS=1
45804
45805     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45806 fi
45807
45808 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45809     cat >>confdefs.h <<\_ACEOF
45810 #define wxUSE_TAB_DIALOG 1
45811 _ACEOF
45812
45813 fi
45814
45815 if test "$wxUSE_TEXTCTRL" = "yes"; then
45816     cat >>confdefs.h <<\_ACEOF
45817 #define wxUSE_TEXTCTRL 1
45818 _ACEOF
45819
45820     USES_CONTROLS=1
45821     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45822
45823             cat >>confdefs.h <<\_ACEOF
45824 #define wxUSE_RICHEDIT 1
45825 _ACEOF
45826
45827     cat >>confdefs.h <<\_ACEOF
45828 #define wxUSE_RICHEDIT2 1
45829 _ACEOF
45830
45831 fi
45832
45833 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45834     if test "$wxUSE_COCOA" = 1 ; then
45835         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45836 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45837         wxUSE_TOGGLEBTN=no
45838     fi
45839
45840     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45841         cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_TOGGLEBTN 1
45843 _ACEOF
45844
45845         USES_CONTROLS=1
45846     fi
45847 fi
45848
45849 if test "$wxUSE_TOOLBAR" = "yes"; then
45850     cat >>confdefs.h <<\_ACEOF
45851 #define wxUSE_TOOLBAR 1
45852 _ACEOF
45853
45854     USES_CONTROLS=1
45855
45856     if test "$wxUSE_UNIVERSAL" = "yes"; then
45857         wxUSE_TOOLBAR_NATIVE="no"
45858     else
45859         wxUSE_TOOLBAR_NATIVE="yes"
45860         cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_TOOLBAR_NATIVE 1
45862 _ACEOF
45863
45864     fi
45865
45866     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45867 fi
45868
45869 if test "$wxUSE_TOOLTIPS" = "yes"; then
45870     if test "$wxUSE_MOTIF" = 1; then
45871         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45872 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45873     else
45874         if test "$wxUSE_UNIVERSAL" = "yes"; then
45875             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45876 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45877         else
45878             cat >>confdefs.h <<\_ACEOF
45879 #define wxUSE_TOOLTIPS 1
45880 _ACEOF
45881
45882         fi
45883     fi
45884 fi
45885
45886 if test "$wxUSE_TREEBOOK" = "yes"; then
45887     cat >>confdefs.h <<\_ACEOF
45888 #define wxUSE_TREEBOOK 1
45889 _ACEOF
45890
45891     USES_CONTROLS=1
45892 fi
45893
45894 if test "$wxUSE_TOOLBOOK" = "yes"; then
45895     cat >>confdefs.h <<\_ACEOF
45896 #define wxUSE_TOOLBOOK 1
45897 _ACEOF
45898
45899     USES_CONTROLS=1
45900 fi
45901
45902 if test "$wxUSE_TREECTRL" = "yes"; then
45903     if test "$wxUSE_IMAGLIST" = "yes"; then
45904         cat >>confdefs.h <<\_ACEOF
45905 #define wxUSE_TREECTRL 1
45906 _ACEOF
45907
45908         USES_CONTROLS=1
45909         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45910     else
45911         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45912 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45913     fi
45914 fi
45915
45916 if test "$wxUSE_POPUPWIN" = "yes"; then
45917     if test "$wxUSE_COCOA" = 1 ; then
45918         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45919 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45920     else
45921         if test "$wxUSE_PM" = 1; then
45922             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45923 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45924         else
45925             cat >>confdefs.h <<\_ACEOF
45926 #define wxUSE_POPUPWIN 1
45927 _ACEOF
45928
45929             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45930
45931             USES_CONTROLS=1
45932         fi
45933     fi
45934 fi
45935
45936 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45937     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45938         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45939 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45940     else
45941         cat >>confdefs.h <<\_ACEOF
45942 #define wxUSE_DIALUP_MANAGER 1
45943 _ACEOF
45944
45945         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45946     fi
45947 fi
45948
45949 if test "$wxUSE_TIPWINDOW" = "yes"; then
45950     if test "$wxUSE_PM" = 1; then
45951         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45952 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45953     else
45954         cat >>confdefs.h <<\_ACEOF
45955 #define wxUSE_TIPWINDOW 1
45956 _ACEOF
45957
45958     fi
45959 fi
45960
45961 if test "$USES_CONTROLS" = 1; then
45962     cat >>confdefs.h <<\_ACEOF
45963 #define wxUSE_CONTROLS 1
45964 _ACEOF
45965
45966 fi
45967
45968
45969 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45970     cat >>confdefs.h <<\_ACEOF
45971 #define wxUSE_ACCESSIBILITY 1
45972 _ACEOF
45973
45974     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45975 fi
45976
45977 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45978     cat >>confdefs.h <<\_ACEOF
45979 #define wxUSE_DRAGIMAGE 1
45980 _ACEOF
45981
45982     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45983 fi
45984
45985 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45986     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45987         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45988 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45989     else
45990         cat >>confdefs.h <<\_ACEOF
45991 #define wxUSE_EXCEPTIONS 1
45992 _ACEOF
45993
45994         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45995     fi
45996 fi
45997
45998 USE_HTML=0
45999 if test "$wxUSE_HTML" = "yes"; then
46000     cat >>confdefs.h <<\_ACEOF
46001 #define wxUSE_HTML 1
46002 _ACEOF
46003
46004     USE_HTML=1
46005     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46006     if test "$wxUSE_MAC" = 1; then
46007         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46008     fi
46009 fi
46010 if test "$wxUSE_WEBKIT" = "yes"; then
46011     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46012         old_CPPFLAGS="$CPPFLAGS"
46013         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46014         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46015 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46016 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46017   echo $ECHO_N "(cached) $ECHO_C" >&6
46018 else
46019   cat >conftest.$ac_ext <<_ACEOF
46020 /* confdefs.h.  */
46021 _ACEOF
46022 cat confdefs.h >>conftest.$ac_ext
46023 cat >>conftest.$ac_ext <<_ACEOF
46024 /* end confdefs.h.  */
46025
46026                            #include <Carbon/Carbon.h>
46027                            #include <WebKit/WebKit.h>
46028
46029
46030 #include <WebKit/HIWebView.h>
46031 _ACEOF
46032 rm -f conftest.$ac_objext
46033 if { (ac_try="$ac_compile"
46034 case "(($ac_try" in
46035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46036   *) ac_try_echo=$ac_try;;
46037 esac
46038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46039   (eval "$ac_compile") 2>conftest.er1
46040   ac_status=$?
46041   grep -v '^ *+' conftest.er1 >conftest.err
46042   rm -f conftest.er1
46043   cat conftest.err >&5
46044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46045   (exit $ac_status); } && {
46046          test -z "$ac_c_werror_flag" ||
46047          test ! -s conftest.err
46048        } && test -s conftest.$ac_objext; then
46049   ac_cv_header_WebKit_HIWebView_h=yes
46050 else
46051   echo "$as_me: failed program was:" >&5
46052 sed 's/^/| /' conftest.$ac_ext >&5
46053
46054         ac_cv_header_WebKit_HIWebView_h=no
46055 fi
46056
46057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46058 fi
46059 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46060 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46061 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46062
46063                            cat >>confdefs.h <<\_ACEOF
46064 #define wxUSE_WEBKIT 1
46065 _ACEOF
46066
46067                            WEBKIT_LINK="-framework WebKit"
46068
46069 else
46070
46071                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46072 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46073                            wxUSE_WEBKIT=no
46074
46075 fi
46076
46077
46078         CPPFLAGS="$old_CPPFLAGS"
46079     elif test "$wxUSE_COCOA" = 1; then
46080         cat >>confdefs.h <<\_ACEOF
46081 #define wxUSE_WEBKIT 1
46082 _ACEOF
46083
46084     else
46085         wxUSE_WEBKIT=no
46086     fi
46087 fi
46088
46089 USE_XRC=0
46090 if test "$wxUSE_XRC" = "yes"; then
46091     if test "$wxUSE_XML" != "yes"; then
46092         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46093 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46094         wxUSE_XRC=no
46095     else
46096         cat >>confdefs.h <<\_ACEOF
46097 #define wxUSE_XRC 1
46098 _ACEOF
46099
46100         USE_XRC=1
46101         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46102     fi
46103 fi
46104
46105 USE_AUI=0
46106 if test "$wxUSE_AUI" = "yes"; then
46107    cat >>confdefs.h <<\_ACEOF
46108 #define wxUSE_AUI 1
46109 _ACEOF
46110
46111    USE_AUI=1
46112    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46113 fi
46114
46115 USE_STC=0
46116 if test "$wxUSE_STC" = "yes"; then
46117    cat >>confdefs.h <<\_ACEOF
46118 #define wxUSE_STC 1
46119 _ACEOF
46120
46121    USE_STC=1
46122    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46123 fi
46124
46125 if test "$wxUSE_MENUS" = "yes"; then
46126     cat >>confdefs.h <<\_ACEOF
46127 #define wxUSE_MENUS 1
46128 _ACEOF
46129
46130     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46131 fi
46132
46133 if test "$wxUSE_METAFILE" = "yes"; then
46134     cat >>confdefs.h <<\_ACEOF
46135 #define wxUSE_METAFILE 1
46136 _ACEOF
46137
46138 fi
46139
46140 if test "$wxUSE_MIMETYPE" = "yes"; then
46141     cat >>confdefs.h <<\_ACEOF
46142 #define wxUSE_MIMETYPE 1
46143 _ACEOF
46144
46145 fi
46146
46147 if test "$wxUSE_MINIFRAME" = "yes"; then
46148     cat >>confdefs.h <<\_ACEOF
46149 #define wxUSE_MINIFRAME 1
46150 _ACEOF
46151
46152 fi
46153
46154 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46155     cat >>confdefs.h <<\_ACEOF
46156 #define wxUSE_SYSTEM_OPTIONS 1
46157 _ACEOF
46158
46159 fi
46160
46161 if test "$wxUSE_TASKBARICON" = "yes"; then
46162     cat >>confdefs.h <<\_ACEOF
46163 #define wxUSE_TASKBARICON 1
46164 _ACEOF
46165
46166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46167 fi
46168
46169
46170 if test "$wxUSE_VALIDATORS" = "yes"; then
46171     cat >>confdefs.h <<\_ACEOF
46172 #define wxUSE_VALIDATORS 1
46173 _ACEOF
46174
46175     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46176 fi
46177
46178 if test "$wxUSE_PALETTE" = "yes" ; then
46179     if test "$wxUSE_DFB" = 1; then
46180         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46181 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46182         wxUSE_PALETTE=no
46183     else
46184         cat >>confdefs.h <<\_ACEOF
46185 #define wxUSE_PALETTE 1
46186 _ACEOF
46187
46188     fi
46189 fi
46190
46191 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46192     LIBS=" -lunicows $LIBS"
46193 fi
46194
46195 USE_RICHTEXT=0
46196 if test "$wxUSE_RICHTEXT" = "yes"; then
46197     cat >>confdefs.h <<\_ACEOF
46198 #define wxUSE_RICHTEXT 1
46199 _ACEOF
46200
46201     USE_RICHTEXT=1
46202     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46203 fi
46204
46205
46206 if test "$wxUSE_IMAGE" = "yes" ; then
46207     cat >>confdefs.h <<\_ACEOF
46208 #define wxUSE_IMAGE 1
46209 _ACEOF
46210
46211
46212     if test "$wxUSE_GIF" = "yes" ; then
46213       cat >>confdefs.h <<\_ACEOF
46214 #define wxUSE_GIF 1
46215 _ACEOF
46216
46217     fi
46218
46219     if test "$wxUSE_PCX" = "yes" ; then
46220       cat >>confdefs.h <<\_ACEOF
46221 #define wxUSE_PCX 1
46222 _ACEOF
46223
46224     fi
46225
46226     if test "$wxUSE_TGA" = "yes" ; then
46227       cat >>confdefs.h <<\_ACEOF
46228 #define wxUSE_TGA 1
46229 _ACEOF
46230
46231     fi
46232
46233     if test "$wxUSE_IFF" = "yes" ; then
46234       cat >>confdefs.h <<\_ACEOF
46235 #define wxUSE_IFF 1
46236 _ACEOF
46237
46238     fi
46239
46240     if test "$wxUSE_PNM" = "yes" ; then
46241       cat >>confdefs.h <<\_ACEOF
46242 #define wxUSE_PNM 1
46243 _ACEOF
46244
46245     fi
46246
46247     if test "$wxUSE_XPM" = "yes" ; then
46248       cat >>confdefs.h <<\_ACEOF
46249 #define wxUSE_XPM 1
46250 _ACEOF
46251
46252     fi
46253
46254     if test "$wxUSE_ICO_CUR" = "yes" ; then
46255       cat >>confdefs.h <<\_ACEOF
46256 #define wxUSE_ICO_CUR 1
46257 _ACEOF
46258
46259     fi
46260 fi
46261
46262
46263 if test "$wxUSE_ABOUTDLG" = "yes"; then
46264     cat >>confdefs.h <<\_ACEOF
46265 #define wxUSE_ABOUTDLG 1
46266 _ACEOF
46267
46268 fi
46269
46270 if test "$wxUSE_CHOICEDLG" = "yes"; then
46271     cat >>confdefs.h <<\_ACEOF
46272 #define wxUSE_CHOICEDLG 1
46273 _ACEOF
46274
46275 fi
46276
46277 if test "$wxUSE_COLOURDLG" = "yes"; then
46278     cat >>confdefs.h <<\_ACEOF
46279 #define wxUSE_COLOURDLG 1
46280 _ACEOF
46281
46282 fi
46283
46284 if test "$wxUSE_FILEDLG" = "yes"; then
46285     cat >>confdefs.h <<\_ACEOF
46286 #define wxUSE_FILEDLG 1
46287 _ACEOF
46288
46289 fi
46290
46291 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46292     cat >>confdefs.h <<\_ACEOF
46293 #define wxUSE_FINDREPLDLG 1
46294 _ACEOF
46295
46296 fi
46297
46298 if test "$wxUSE_FONTDLG" = "yes"; then
46299     cat >>confdefs.h <<\_ACEOF
46300 #define wxUSE_FONTDLG 1
46301 _ACEOF
46302
46303 fi
46304
46305 if test "$wxUSE_DIRDLG" = "yes"; then
46306     if test "$wxUSE_TREECTRL" != "yes"; then
46307         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46308 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46309     else
46310         cat >>confdefs.h <<\_ACEOF
46311 #define wxUSE_DIRDLG 1
46312 _ACEOF
46313
46314     fi
46315 fi
46316
46317 if test "$wxUSE_MSGDLG" = "yes"; then
46318     cat >>confdefs.h <<\_ACEOF
46319 #define wxUSE_MSGDLG 1
46320 _ACEOF
46321
46322 fi
46323
46324 if test "$wxUSE_NUMBERDLG" = "yes"; then
46325     cat >>confdefs.h <<\_ACEOF
46326 #define wxUSE_NUMBERDLG 1
46327 _ACEOF
46328
46329 fi
46330
46331 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46332     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46333        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46334 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46335     else
46336         cat >>confdefs.h <<\_ACEOF
46337 #define wxUSE_PROGRESSDLG 1
46338 _ACEOF
46339
46340     fi
46341 fi
46342
46343 if test "$wxUSE_SPLASH" = "yes"; then
46344     cat >>confdefs.h <<\_ACEOF
46345 #define wxUSE_SPLASH 1
46346 _ACEOF
46347
46348     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46349 fi
46350
46351 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46352     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46353        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46354 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46355     else
46356         cat >>confdefs.h <<\_ACEOF
46357 #define wxUSE_STARTUP_TIPS 1
46358 _ACEOF
46359
46360     fi
46361 fi
46362
46363 if test "$wxUSE_TEXTDLG" = "yes"; then
46364     cat >>confdefs.h <<\_ACEOF
46365 #define wxUSE_TEXTDLG 1
46366 _ACEOF
46367
46368 fi
46369
46370 if test "$wxUSE_WIZARDDLG" = "yes"; then
46371     cat >>confdefs.h <<\_ACEOF
46372 #define wxUSE_WIZARDDLG 1
46373 _ACEOF
46374
46375     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46376 fi
46377
46378
46379 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46380     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46381         cat >>confdefs.h <<\_ACEOF
46382 #define wxUSE_OWNER_DRAWN 1
46383 _ACEOF
46384
46385     fi
46386 fi
46387
46388
46389 if test "$wxUSE_MSW" = 1 ; then
46390
46391     if test "$wxUSE_DC_CACHEING" = "yes"; then
46392         cat >>confdefs.h <<\_ACEOF
46393 #define wxUSE_DC_CACHEING 1
46394 _ACEOF
46395
46396     fi
46397
46398     if test "$wxUSE_DIB" = "yes"; then
46399         cat >>confdefs.h <<\_ACEOF
46400 #define wxUSE_WXDIB 1
46401 _ACEOF
46402
46403     fi
46404
46405     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46406         cat >>confdefs.h <<\_ACEOF
46407 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46408 _ACEOF
46409
46410     fi
46411
46412     if test "$wxUSE_UXTHEME" = "yes"; then
46413         cat >>confdefs.h <<\_ACEOF
46414 #define wxUSE_UXTHEME 1
46415 _ACEOF
46416
46417     fi
46418
46419 fi
46420
46421 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46422     cat >>confdefs.h <<\_ACEOF
46423 #define wxUSE_AUTOID_MANAGEMENT 1
46424 _ACEOF
46425
46426 fi
46427
46428 if test "$USE_WIN32" = 1 ; then
46429     if test "$wxUSE_INICONF" = "yes"; then
46430         cat >>confdefs.h <<\_ACEOF
46431 #define wxUSE_INICONF 1
46432 _ACEOF
46433
46434     fi
46435
46436     if test "$wxUSE_REGKEY" = "yes"; then
46437         cat >>confdefs.h <<\_ACEOF
46438 #define wxUSE_REGKEY 1
46439 _ACEOF
46440
46441     fi
46442 fi
46443
46444 if test "$wxUSE_MAC" = 1; then
46445         wxUSE_GRAPHICS_CONTEXT="yes"
46446 fi
46447
46448 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46449    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46450       cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_GRAPHICS_CONTEXT 1
46452 _ACEOF
46453
46454    elif test "$wxUSE_GTK" != 1; then
46455             cat >>confdefs.h <<\_ACEOF
46456 #define wxUSE_GRAPHICS_CONTEXT 1
46457 _ACEOF
46458
46459    else
46460
46461 pkg_failed=no
46462 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46463 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46464
46465 if test -n "$PKG_CONFIG"; then
46466     if test -n "$CAIRO_CFLAGS"; then
46467         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46468     else
46469         if test -n "$PKG_CONFIG" && \
46470     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46471   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46472   ac_status=$?
46473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46474   (exit $ac_status); }; then
46475   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46476 else
46477   pkg_failed=yes
46478 fi
46479     fi
46480 else
46481         pkg_failed=untried
46482 fi
46483 if test -n "$PKG_CONFIG"; then
46484     if test -n "$CAIRO_LIBS"; then
46485         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46486     else
46487         if test -n "$PKG_CONFIG" && \
46488     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46489   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46490   ac_status=$?
46491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46492   (exit $ac_status); }; then
46493   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46494 else
46495   pkg_failed=yes
46496 fi
46497     fi
46498 else
46499         pkg_failed=untried
46500 fi
46501
46502
46503
46504 if test $pkg_failed = yes; then
46505
46506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46507         _pkg_short_errors_supported=yes
46508 else
46509         _pkg_short_errors_supported=no
46510 fi
46511         if test $_pkg_short_errors_supported = yes; then
46512                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46513         else
46514                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46515         fi
46516         # Put the nasty error message in config.log where it belongs
46517         echo "$CAIRO_PKG_ERRORS" >&5
46518
46519         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46520 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46521
46522 elif test $pkg_failed = untried; then
46523         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46524 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46525
46526 else
46527         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46528         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46529         { echo "$as_me:$LINENO: result: yes" >&5
46530 echo "${ECHO_T}yes" >&6; }
46531         cat >>confdefs.h <<\_ACEOF
46532 #define wxUSE_GRAPHICS_CONTEXT 1
46533 _ACEOF
46534
46535 fi
46536    fi
46537 fi
46538
46539
46540 USE_MEDIA=0
46541
46542 if test "$wxUSE_MEDIACTRL" = "yes"; then
46543     USE_MEDIA=1
46544
46545                 if test "$wxUSE_GTK" = 1; then
46546         wxUSE_GSTREAMER="no"
46547
46548                                                                 GST_VERSION_MAJOR=0
46549         GST_VERSION_MINOR=10
46550         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46551
46552         if test "$wxUSE_GSTREAMER8" = "no"; then
46553
46554 pkg_failed=no
46555 { echo "$as_me:$LINENO: checking for GST" >&5
46556 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46557
46558 if test -n "$PKG_CONFIG"; then
46559     if test -n "$GST_CFLAGS"; then
46560         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46561     else
46562         if test -n "$PKG_CONFIG" && \
46563     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46564   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46565   ac_status=$?
46566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46567   (exit $ac_status); }; then
46568   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46569 else
46570   pkg_failed=yes
46571 fi
46572     fi
46573 else
46574         pkg_failed=untried
46575 fi
46576 if test -n "$PKG_CONFIG"; then
46577     if test -n "$GST_LIBS"; then
46578         pkg_cv_GST_LIBS="$GST_LIBS"
46579     else
46580         if test -n "$PKG_CONFIG" && \
46581     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46582   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46583   ac_status=$?
46584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46585   (exit $ac_status); }; then
46586   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46587 else
46588   pkg_failed=yes
46589 fi
46590     fi
46591 else
46592         pkg_failed=untried
46593 fi
46594
46595
46596
46597 if test $pkg_failed = yes; then
46598
46599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46600         _pkg_short_errors_supported=yes
46601 else
46602         _pkg_short_errors_supported=no
46603 fi
46604         if test $_pkg_short_errors_supported = yes; then
46605                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46606         else
46607                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46608         fi
46609         # Put the nasty error message in config.log where it belongs
46610         echo "$GST_PKG_ERRORS" >&5
46611
46612
46613                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46614 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46615                     GST_VERSION_MINOR=8
46616
46617
46618 elif test $pkg_failed = untried; then
46619
46620                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46621 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46622                     GST_VERSION_MINOR=8
46623
46624
46625 else
46626         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46627         GST_LIBS=$pkg_cv_GST_LIBS
46628         { echo "$as_me:$LINENO: result: yes" >&5
46629 echo "${ECHO_T}yes" >&6; }
46630
46631                     wxUSE_GSTREAMER="yes"
46632                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46633
46634 fi
46635         else
46636                         GST_VERSION_MINOR=8
46637         fi
46638
46639         if test $GST_VERSION_MINOR = "8"; then
46640             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46641
46642 pkg_failed=no
46643 { echo "$as_me:$LINENO: checking for GST" >&5
46644 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46645
46646 if test -n "$PKG_CONFIG"; then
46647     if test -n "$GST_CFLAGS"; then
46648         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46649     else
46650         if test -n "$PKG_CONFIG" && \
46651     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46652   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46653   ac_status=$?
46654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46655   (exit $ac_status); }; then
46656   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46657 else
46658   pkg_failed=yes
46659 fi
46660     fi
46661 else
46662         pkg_failed=untried
46663 fi
46664 if test -n "$PKG_CONFIG"; then
46665     if test -n "$GST_LIBS"; then
46666         pkg_cv_GST_LIBS="$GST_LIBS"
46667     else
46668         if test -n "$PKG_CONFIG" && \
46669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46670   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46671   ac_status=$?
46672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46673   (exit $ac_status); }; then
46674   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46675 else
46676   pkg_failed=yes
46677 fi
46678     fi
46679 else
46680         pkg_failed=untried
46681 fi
46682
46683
46684
46685 if test $pkg_failed = yes; then
46686
46687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46688         _pkg_short_errors_supported=yes
46689 else
46690         _pkg_short_errors_supported=no
46691 fi
46692         if test $_pkg_short_errors_supported = yes; then
46693                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46694         else
46695                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46696         fi
46697         # Put the nasty error message in config.log where it belongs
46698         echo "$GST_PKG_ERRORS" >&5
46699
46700
46701                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46702 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46703
46704 elif test $pkg_failed = untried; then
46705
46706                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46707 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46708
46709 else
46710         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46711         GST_LIBS=$pkg_cv_GST_LIBS
46712         { echo "$as_me:$LINENO: result: yes" >&5
46713 echo "${ECHO_T}yes" >&6; }
46714         wxUSE_GSTREAMER="yes"
46715 fi
46716         fi
46717
46718
46719         if test "$wxUSE_GSTREAMER" = "yes"; then
46720             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46721             EXTRALIBS_MEDIA="$GST_LIBS"
46722
46723             cat >>confdefs.h <<\_ACEOF
46724 #define wxUSE_GSTREAMER 1
46725 _ACEOF
46726
46727         else
46728             USE_MEDIA=0
46729         fi
46730     fi
46731
46732     if test $USE_MEDIA = 1; then
46733         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46734         cat >>confdefs.h <<\_ACEOF
46735 #define wxUSE_MEDIACTRL 1
46736 _ACEOF
46737
46738     fi
46739 fi
46740
46741
46742 if test "$cross_compiling" = "yes"; then
46743         OSINFO="\"$host\""
46744 else
46745         OSINFO=`uname -s -r -m`
46746     OSINFO="\"$OSINFO\""
46747 fi
46748
46749 cat >>confdefs.h <<_ACEOF
46750 #define WXWIN_OS_DESCRIPTION $OSINFO
46751 _ACEOF
46752
46753
46754
46755 if test "x$prefix" != "xNONE"; then
46756     wxPREFIX=$prefix
46757 else
46758     wxPREFIX=$ac_default_prefix
46759 fi
46760
46761 cat >>confdefs.h <<_ACEOF
46762 #define wxINSTALL_PREFIX "$wxPREFIX"
46763 _ACEOF
46764
46765
46766
46767
46768 STD_BASE_LIBS="base"
46769 STD_GUI_LIBS=""
46770 BUILT_WX_LIBS="base"
46771 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46772
46773 if test "$wxUSE_SOCKETS" = "yes" ; then
46774     STD_BASE_LIBS="net $STD_BASE_LIBS"
46775     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46776 fi
46777 if test "$wxUSE_XML" = "yes" ; then
46778     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46779     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46780 fi
46781
46782 if test "$wxUSE_GUI" = "yes"; then
46783     STD_GUI_LIBS="adv core"
46784     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46785
46786     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46787         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46788         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46789     fi
46790     if test "$wxUSE_HTML" = "yes" ; then
46791         STD_GUI_LIBS="html $STD_GUI_LIBS"
46792         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46793     fi
46794     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46795         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46796     fi
46797     if test "$wxUSE_OPENGL" = "yes" ; then
46798         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46799     fi
46800     if test "$wxUSE_AUI" = "yes" ; then
46801         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46802     fi
46803     if test "$wxUSE_STC" = "yes" ; then
46804         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46805     fi
46806     if test "$wxUSE_XRC" = "yes" ; then
46807         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46808         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46809     fi
46810 fi
46811
46812
46813
46814
46815
46816
46817
46818
46819 if test "$wxUSE_MAC" = 1 ; then
46820     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46821         if test "$USE_DARWIN" = 1; then
46822             LDFLAGS="$LDFLAGS -framework QuickTime"
46823         else
46824             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46825         fi
46826     fi
46827     if test "$USE_DARWIN" = 1; then
46828         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System"
46829     else
46830         LDFLAGS="$LDFLAGS -lCarbonLib"
46831     fi
46832 fi
46833 if test "$wxUSE_COCOA" = 1 ; then
46834     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46835     if test "$wxUSE_MEDIACTRL" = "yes"; then
46836         LDFLAGS="$LDFLAGS -framework QuickTime"
46837     fi
46838 fi
46839 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46840     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46841 fi
46842
46843 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46844
46845 if test "$wxUSE_GUI" = "yes"; then
46846
46847
46848         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46849                      erase event exec font image minimal mobile \
46850                      mobile/wxedit mobile/styles render \
46851                      shaped svg taborder vscroll widgets"
46852
46853     if test "$wxUSE_MONOLITHIC" != "yes"; then
46854         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46855     fi
46856     if test "$TOOLKIT" = "MSW"; then
46857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46858         if test "$wxUSE_UNIVERSAL" != "yes"; then
46859             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46860         fi
46861     fi
46862     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46863         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46864     fi
46865 else
46866     SAMPLES_SUBDIRS="console"
46867     if test "$wxUSE_SOCKETS" = "yes" ; then
46868         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46869     fi
46870     if test "$wxUSE_IPC" = "yes" ; then
46871         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46872     fi
46873 fi
46874
46875
46876 if test "x$INTELCC" = "xyes" ; then
46877                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46878 elif test "$GCC" = yes ; then
46879     CWARNINGS="-Wall -Wundef"
46880 fi
46881
46882 if test "x$INTELCXX" = "xyes" ; then
46883                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46884 elif test "$GXX" = yes ; then
46885         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46886 fi
46887
46888
46889 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46890 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46891
46892
46893 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46894  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46895  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46896  $CPPFLAGS `
46897
46898 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46899 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46900 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46901 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
46902 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
46903
46904 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46905
46906
46907 if test "x$MWCC" = "xyes"; then
46908
46909             CC="$CC -cwd source -I-"
46910     CXX="$CXX -cwd source -I-"
46911 fi
46912
46913
46914 LIBS=`echo $LIBS`
46915 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46916 EXTRALIBS_XML="$EXPAT_LINK"
46917 EXTRALIBS_HTML="$MSPACK_LINK"
46918 EXTRALIBS_MEDIA="$GST_LIBS"
46919 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46920 if test "$wxUSE_GUI" = "yes"; then
46921     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46922 fi
46923 if test "$wxUSE_OPENGL" = "yes"; then
46924     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46925 fi
46926
46927 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46928
46929 WXCONFIG_LIBS="$LIBS"
46930
46931 if test "$wxUSE_REGEX" = "builtin" ; then
46932     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46933 fi
46934 if test "$wxUSE_EXPAT" = "builtin" ; then
46935     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46936 fi
46937 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46938     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46939 fi
46940 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46941     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46942 fi
46943 if test "$wxUSE_LIBPNG" = "builtin" ; then
46944     wxconfig_3rdparty="png $wxconfig_3rdparty"
46945 fi
46946 if test "$wxUSE_ZLIB" = "builtin" ; then
46947     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46948 fi
46949
46950 for i in $wxconfig_3rdparty ; do
46951     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46952 done
46953
46954
46955 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46956     WXUNIV=1
46957
46958     case "$wxUNIV_THEMES" in
46959         ''|all)
46960             cat >>confdefs.h <<\_ACEOF
46961 #define wxUSE_ALL_THEMES 1
46962 _ACEOF
46963
46964             ;;
46965
46966         *)
46967             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
46968                 cat >>confdefs.h <<_ACEOF
46969 #define wxUSE_THEME_$t 1
46970 _ACEOF
46971
46972             done
46973     esac
46974 else
46975     WXUNIV=0
46976 fi
46977
46978
46979
46980
46981
46982
46983
46984
46985 if test $wxUSE_MONOLITHIC = "yes" ; then
46986     MONOLITHIC=1
46987 else
46988     MONOLITHIC=0
46989 fi
46990
46991 if test $wxUSE_PLUGINS = "yes" ; then
46992     USE_PLUGINS=1
46993 else
46994     USE_PLUGINS=0
46995 fi
46996
46997 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46998     USE_QA=1
46999 else
47000     USE_QA=0
47001 fi
47002
47003 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47004     OFFICIAL_BUILD=1
47005 else
47006     OFFICIAL_BUILD=0
47007 fi
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47037
47038
47039
47040
47041
47042
47043
47044
47045 case "$TOOLKIT" in
47046     GTK)
47047         TOOLKIT_DESC="GTK+"
47048         if test "$WXGTK2" = 1; then
47049             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47050             if test "$wxUSE_GTKPRINT" = "yes" ; then
47051                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47052             fi
47053             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47054                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47055             fi
47056             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47057                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47058             fi
47059             if test "$wxUSE_LIBHILDON" = "yes"; then
47060                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47061             fi
47062
47063             if test "$TOOLKIT_EXTRA" != ""; then
47064                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47065             fi
47066         fi
47067         ;;
47068
47069     ?*)
47070         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47071         ;;
47072
47073     *)
47074         TOOLKIT_DESC="base only"
47075         ;;
47076 esac
47077
47078 if test "$wxUSE_WINE" = "yes"; then
47079     BAKEFILE_FORCE_PLATFORM=win32
47080 fi
47081
47082 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47083 then
47084     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47085 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47086 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47087   echo $ECHO_N "(cached) $ECHO_C" >&6
47088 else
47089
47090             echo '#include <stdio.h>
47091                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47092
47093             echo '#include "conftest.h"
47094                   int main()
47095                   {
47096                      printf("%ls", test_var);
47097                      return 0;
47098                   }' > conftest.cpp
47099
47100             wx_cv_gcc_pch_bug="pch not supported"
47101
47102             if $CXX conftest.h >/dev/null 2>&1
47103             then
47104                 wx_cv_gcc_pch_bug=
47105
47106                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47107                 then
47108                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47109                         grep awidetest >/dev/null
47110                     then
47111                         wx_cv_gcc_pch_bug=no
47112                     else
47113                         wx_cv_gcc_pch_bug=yes
47114                     fi
47115                 fi
47116             fi
47117
47118             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47119
47120 fi
47121 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47122 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47123
47124     if test "$wx_cv_gcc_pch_bug" = yes; then
47125                         bk_use_pch=no
47126     fi
47127 fi
47128
47129
47130
47131
47132
47133
47134
47135     if test "x$BAKEFILE_HOST" = "x"; then
47136                if test "x${host}" = "x" ; then
47137                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47138 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47139    { (exit 1); exit 1; }; }
47140                fi
47141
47142         BAKEFILE_HOST="${host}"
47143     fi
47144
47145     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47146
47147     if test -n "$ac_tool_prefix"; then
47148   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47152 if test "${ac_cv_prog_RANLIB+set}" = set; then
47153   echo $ECHO_N "(cached) $ECHO_C" >&6
47154 else
47155   if test -n "$RANLIB"; then
47156   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47157 else
47158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47159 for as_dir in $PATH
47160 do
47161   IFS=$as_save_IFS
47162   test -z "$as_dir" && as_dir=.
47163   for ac_exec_ext in '' $ac_executable_extensions; do
47164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47165     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47167     break 2
47168   fi
47169 done
47170 done
47171 IFS=$as_save_IFS
47172
47173 fi
47174 fi
47175 RANLIB=$ac_cv_prog_RANLIB
47176 if test -n "$RANLIB"; then
47177   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47178 echo "${ECHO_T}$RANLIB" >&6; }
47179 else
47180   { echo "$as_me:$LINENO: result: no" >&5
47181 echo "${ECHO_T}no" >&6; }
47182 fi
47183
47184
47185 fi
47186 if test -z "$ac_cv_prog_RANLIB"; then
47187   ac_ct_RANLIB=$RANLIB
47188   # Extract the first word of "ranlib", so it can be a program name with args.
47189 set dummy ranlib; ac_word=$2
47190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47193   echo $ECHO_N "(cached) $ECHO_C" >&6
47194 else
47195   if test -n "$ac_ct_RANLIB"; then
47196   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47197 else
47198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47199 for as_dir in $PATH
47200 do
47201   IFS=$as_save_IFS
47202   test -z "$as_dir" && as_dir=.
47203   for ac_exec_ext in '' $ac_executable_extensions; do
47204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47205     ac_cv_prog_ac_ct_RANLIB="ranlib"
47206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47207     break 2
47208   fi
47209 done
47210 done
47211 IFS=$as_save_IFS
47212
47213 fi
47214 fi
47215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47216 if test -n "$ac_ct_RANLIB"; then
47217   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47218 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47219 else
47220   { echo "$as_me:$LINENO: result: no" >&5
47221 echo "${ECHO_T}no" >&6; }
47222 fi
47223
47224   if test "x$ac_ct_RANLIB" = x; then
47225     RANLIB=":"
47226   else
47227     case $cross_compiling:$ac_tool_warned in
47228 yes:)
47229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47230 whose name does not start with the host triplet.  If you think this
47231 configuration is useful to you, please write to autoconf@gnu.org." >&5
47232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47233 whose name does not start with the host triplet.  If you think this
47234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47235 ac_tool_warned=yes ;;
47236 esac
47237     RANLIB=$ac_ct_RANLIB
47238   fi
47239 else
47240   RANLIB="$ac_cv_prog_RANLIB"
47241 fi
47242
47243     # Find a good install program.  We prefer a C program (faster),
47244 # so one script is as good as another.  But avoid the broken or
47245 # incompatible versions:
47246 # SysV /etc/install, /usr/sbin/install
47247 # SunOS /usr/etc/install
47248 # IRIX /sbin/install
47249 # AIX /bin/install
47250 # AmigaOS /C/install, which installs bootblocks on floppy discs
47251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47254 # OS/2's system install, which has a completely different semantic
47255 # ./install, which can be erroneously created by make from ./install.sh.
47256 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47257 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47258 if test -z "$INSTALL"; then
47259 if test "${ac_cv_path_install+set}" = set; then
47260   echo $ECHO_N "(cached) $ECHO_C" >&6
47261 else
47262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47263 for as_dir in $PATH
47264 do
47265   IFS=$as_save_IFS
47266   test -z "$as_dir" && as_dir=.
47267   # Account for people who put trailing slashes in PATH elements.
47268 case $as_dir/ in
47269   ./ | .// | /cC/* | \
47270   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47271   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47272   /usr/ucb/* ) ;;
47273   *)
47274     # OSF1 and SCO ODT 3.0 have their own names for install.
47275     # Don't use installbsd from OSF since it installs stuff as root
47276     # by default.
47277     for ac_prog in ginstall scoinst install; do
47278       for ac_exec_ext in '' $ac_executable_extensions; do
47279         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47280           if test $ac_prog = install &&
47281             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47282             # AIX install.  It has an incompatible calling convention.
47283             :
47284           elif test $ac_prog = install &&
47285             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47286             # program-specific install script used by HP pwplus--don't use.
47287             :
47288           else
47289             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47290             break 3
47291           fi
47292         fi
47293       done
47294     done
47295     ;;
47296 esac
47297 done
47298 IFS=$as_save_IFS
47299
47300
47301 fi
47302   if test "${ac_cv_path_install+set}" = set; then
47303     INSTALL=$ac_cv_path_install
47304   else
47305     # As a last resort, use the slow shell script.  Don't cache a
47306     # value for INSTALL within a source directory, because that will
47307     # break other packages using the cache if that directory is
47308     # removed, or if the value is a relative name.
47309     INSTALL=$ac_install_sh
47310   fi
47311 fi
47312 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47313 echo "${ECHO_T}$INSTALL" >&6; }
47314
47315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47316 # It thinks the first close brace ends the variable substitution.
47317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47318
47319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47320
47321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47322
47323     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47324 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47325 LN_S=$as_ln_s
47326 if test "$LN_S" = "ln -s"; then
47327   { echo "$as_me:$LINENO: result: yes" >&5
47328 echo "${ECHO_T}yes" >&6; }
47329 else
47330   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47331 echo "${ECHO_T}no, using $LN_S" >&6; }
47332 fi
47333
47334
47335     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47336 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47337 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47338 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47339   echo $ECHO_N "(cached) $ECHO_C" >&6
47340 else
47341   cat >conftest.make <<\_ACEOF
47342 SHELL = /bin/sh
47343 all:
47344         @echo '@@@%%%=$(MAKE)=@@@%%%'
47345 _ACEOF
47346 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47347 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47348   *@@@%%%=?*=@@@%%%*)
47349     eval ac_cv_prog_make_${ac_make}_set=yes;;
47350   *)
47351     eval ac_cv_prog_make_${ac_make}_set=no;;
47352 esac
47353 rm -f conftest.make
47354 fi
47355 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47356   { echo "$as_me:$LINENO: result: yes" >&5
47357 echo "${ECHO_T}yes" >&6; }
47358   SET_MAKE=
47359 else
47360   { echo "$as_me:$LINENO: result: no" >&5
47361 echo "${ECHO_T}no" >&6; }
47362   SET_MAKE="MAKE=${MAKE-make}"
47363 fi
47364
47365
47366
47367     if test "x$SUNCXX" = "xyes"; then
47368                                 AR=$CXX
47369         AROPTIONS="-xar -o"
47370
47371     elif test "x$SGICC" = "xyes"; then
47372                 AR=$CXX
47373         AROPTIONS="-ar -o"
47374
47375     else
47376         if test -n "$ac_tool_prefix"; then
47377   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47378 set dummy ${ac_tool_prefix}ar; ac_word=$2
47379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47381 if test "${ac_cv_prog_AR+set}" = set; then
47382   echo $ECHO_N "(cached) $ECHO_C" >&6
47383 else
47384   if test -n "$AR"; then
47385   ac_cv_prog_AR="$AR" # Let the user override the test.
47386 else
47387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47388 for as_dir in $PATH
47389 do
47390   IFS=$as_save_IFS
47391   test -z "$as_dir" && as_dir=.
47392   for ac_exec_ext in '' $ac_executable_extensions; do
47393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47394     ac_cv_prog_AR="${ac_tool_prefix}ar"
47395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47396     break 2
47397   fi
47398 done
47399 done
47400 IFS=$as_save_IFS
47401
47402 fi
47403 fi
47404 AR=$ac_cv_prog_AR
47405 if test -n "$AR"; then
47406   { echo "$as_me:$LINENO: result: $AR" >&5
47407 echo "${ECHO_T}$AR" >&6; }
47408 else
47409   { echo "$as_me:$LINENO: result: no" >&5
47410 echo "${ECHO_T}no" >&6; }
47411 fi
47412
47413
47414 fi
47415 if test -z "$ac_cv_prog_AR"; then
47416   ac_ct_AR=$AR
47417   # Extract the first word of "ar", so it can be a program name with args.
47418 set dummy ar; ac_word=$2
47419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47421 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47422   echo $ECHO_N "(cached) $ECHO_C" >&6
47423 else
47424   if test -n "$ac_ct_AR"; then
47425   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47426 else
47427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47428 for as_dir in $PATH
47429 do
47430   IFS=$as_save_IFS
47431   test -z "$as_dir" && as_dir=.
47432   for ac_exec_ext in '' $ac_executable_extensions; do
47433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47434     ac_cv_prog_ac_ct_AR="ar"
47435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47436     break 2
47437   fi
47438 done
47439 done
47440 IFS=$as_save_IFS
47441
47442 fi
47443 fi
47444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47445 if test -n "$ac_ct_AR"; then
47446   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47447 echo "${ECHO_T}$ac_ct_AR" >&6; }
47448 else
47449   { echo "$as_me:$LINENO: result: no" >&5
47450 echo "${ECHO_T}no" >&6; }
47451 fi
47452
47453   if test "x$ac_ct_AR" = x; then
47454     AR="ar"
47455   else
47456     case $cross_compiling:$ac_tool_warned in
47457 yes:)
47458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47459 whose name does not start with the host triplet.  If you think this
47460 configuration is useful to you, please write to autoconf@gnu.org." >&5
47461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47462 whose name does not start with the host triplet.  If you think this
47463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47464 ac_tool_warned=yes ;;
47465 esac
47466     AR=$ac_ct_AR
47467   fi
47468 else
47469   AR="$ac_cv_prog_AR"
47470 fi
47471
47472         AROPTIONS=rcu
47473     fi
47474
47475
47476     if test -n "$ac_tool_prefix"; then
47477   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47478 set dummy ${ac_tool_prefix}strip; ac_word=$2
47479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47481 if test "${ac_cv_prog_STRIP+set}" = set; then
47482   echo $ECHO_N "(cached) $ECHO_C" >&6
47483 else
47484   if test -n "$STRIP"; then
47485   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47486 else
47487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47488 for as_dir in $PATH
47489 do
47490   IFS=$as_save_IFS
47491   test -z "$as_dir" && as_dir=.
47492   for ac_exec_ext in '' $ac_executable_extensions; do
47493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47494     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47496     break 2
47497   fi
47498 done
47499 done
47500 IFS=$as_save_IFS
47501
47502 fi
47503 fi
47504 STRIP=$ac_cv_prog_STRIP
47505 if test -n "$STRIP"; then
47506   { echo "$as_me:$LINENO: result: $STRIP" >&5
47507 echo "${ECHO_T}$STRIP" >&6; }
47508 else
47509   { echo "$as_me:$LINENO: result: no" >&5
47510 echo "${ECHO_T}no" >&6; }
47511 fi
47512
47513
47514 fi
47515 if test -z "$ac_cv_prog_STRIP"; then
47516   ac_ct_STRIP=$STRIP
47517   # Extract the first word of "strip", so it can be a program name with args.
47518 set dummy strip; ac_word=$2
47519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47522   echo $ECHO_N "(cached) $ECHO_C" >&6
47523 else
47524   if test -n "$ac_ct_STRIP"; then
47525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47526 else
47527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47528 for as_dir in $PATH
47529 do
47530   IFS=$as_save_IFS
47531   test -z "$as_dir" && as_dir=.
47532   for ac_exec_ext in '' $ac_executable_extensions; do
47533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47534     ac_cv_prog_ac_ct_STRIP="strip"
47535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47536     break 2
47537   fi
47538 done
47539 done
47540 IFS=$as_save_IFS
47541
47542 fi
47543 fi
47544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47545 if test -n "$ac_ct_STRIP"; then
47546   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47547 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47548 else
47549   { echo "$as_me:$LINENO: result: no" >&5
47550 echo "${ECHO_T}no" >&6; }
47551 fi
47552
47553   if test "x$ac_ct_STRIP" = x; then
47554     STRIP=":"
47555   else
47556     case $cross_compiling:$ac_tool_warned in
47557 yes:)
47558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47559 whose name does not start with the host triplet.  If you think this
47560 configuration is useful to you, please write to autoconf@gnu.org." >&5
47561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47562 whose name does not start with the host triplet.  If you think this
47563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47564 ac_tool_warned=yes ;;
47565 esac
47566     STRIP=$ac_ct_STRIP
47567   fi
47568 else
47569   STRIP="$ac_cv_prog_STRIP"
47570 fi
47571
47572     if test -n "$ac_tool_prefix"; then
47573   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47574 set dummy ${ac_tool_prefix}nm; ac_word=$2
47575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47577 if test "${ac_cv_prog_NM+set}" = set; then
47578   echo $ECHO_N "(cached) $ECHO_C" >&6
47579 else
47580   if test -n "$NM"; then
47581   ac_cv_prog_NM="$NM" # Let the user override the test.
47582 else
47583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47584 for as_dir in $PATH
47585 do
47586   IFS=$as_save_IFS
47587   test -z "$as_dir" && as_dir=.
47588   for ac_exec_ext in '' $ac_executable_extensions; do
47589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47590     ac_cv_prog_NM="${ac_tool_prefix}nm"
47591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47592     break 2
47593   fi
47594 done
47595 done
47596 IFS=$as_save_IFS
47597
47598 fi
47599 fi
47600 NM=$ac_cv_prog_NM
47601 if test -n "$NM"; then
47602   { echo "$as_me:$LINENO: result: $NM" >&5
47603 echo "${ECHO_T}$NM" >&6; }
47604 else
47605   { echo "$as_me:$LINENO: result: no" >&5
47606 echo "${ECHO_T}no" >&6; }
47607 fi
47608
47609
47610 fi
47611 if test -z "$ac_cv_prog_NM"; then
47612   ac_ct_NM=$NM
47613   # Extract the first word of "nm", so it can be a program name with args.
47614 set dummy nm; ac_word=$2
47615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47617 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47618   echo $ECHO_N "(cached) $ECHO_C" >&6
47619 else
47620   if test -n "$ac_ct_NM"; then
47621   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47622 else
47623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47624 for as_dir in $PATH
47625 do
47626   IFS=$as_save_IFS
47627   test -z "$as_dir" && as_dir=.
47628   for ac_exec_ext in '' $ac_executable_extensions; do
47629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47630     ac_cv_prog_ac_ct_NM="nm"
47631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47632     break 2
47633   fi
47634 done
47635 done
47636 IFS=$as_save_IFS
47637
47638 fi
47639 fi
47640 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47641 if test -n "$ac_ct_NM"; then
47642   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47643 echo "${ECHO_T}$ac_ct_NM" >&6; }
47644 else
47645   { echo "$as_me:$LINENO: result: no" >&5
47646 echo "${ECHO_T}no" >&6; }
47647 fi
47648
47649   if test "x$ac_ct_NM" = x; then
47650     NM=":"
47651   else
47652     case $cross_compiling:$ac_tool_warned in
47653 yes:)
47654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47655 whose name does not start with the host triplet.  If you think this
47656 configuration is useful to you, please write to autoconf@gnu.org." >&5
47657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47658 whose name does not start with the host triplet.  If you think this
47659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47660 ac_tool_warned=yes ;;
47661 esac
47662     NM=$ac_ct_NM
47663   fi
47664 else
47665   NM="$ac_cv_prog_NM"
47666 fi
47667
47668
47669             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47670 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47671     INSTALL_TEST_DIR=acbftest$$
47672     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47673     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47674         rmdir $INSTALL_TEST_DIR
47675                         INSTALL_DIR='$(INSTALL) -d'
47676         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47677 echo "${ECHO_T}$INSTALL -d" >&6; }
47678     else
47679         INSTALL_DIR="mkdir -p"
47680         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47681 echo "${ECHO_T}mkdir -p" >&6; }
47682     fi
47683
47684
47685     LDFLAGS_GUI=
47686     case ${BAKEFILE_HOST} in
47687         *-*-cygwin* | *-*-mingw32* )
47688         LDFLAGS_GUI="-mwindows"
47689     esac
47690
47691
47692     fi
47693
47694         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47695 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47696 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47697   echo $ECHO_N "(cached) $ECHO_C" >&6
47698 else
47699
47700         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47701                 egrep -s GNU > /dev/null); then
47702             bakefile_cv_prog_makeisgnu="yes"
47703         else
47704             bakefile_cv_prog_makeisgnu="no"
47705         fi
47706
47707 fi
47708 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47709 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47710
47711     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47712         IF_GNU_MAKE=""
47713     else
47714         IF_GNU_MAKE="#"
47715     fi
47716
47717
47718
47719     PLATFORM_UNIX=0
47720     PLATFORM_WIN32=0
47721     PLATFORM_MSDOS=0
47722     PLATFORM_MAC=0
47723     PLATFORM_MACOS=0
47724     PLATFORM_MACOSX=0
47725     PLATFORM_OS2=0
47726     PLATFORM_BEOS=0
47727
47728     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47729         case "${BAKEFILE_HOST}" in
47730             *-*-mingw32* )
47731                 PLATFORM_WIN32=1
47732             ;;
47733             *-pc-msdosdjgpp )
47734                 PLATFORM_MSDOS=1
47735             ;;
47736             *-pc-os2_emx | *-pc-os2-emx )
47737                 PLATFORM_OS2=1
47738             ;;
47739             *-*-darwin* )
47740                 PLATFORM_MAC=1
47741                 PLATFORM_MACOSX=1
47742             ;;
47743             *-*-beos* )
47744                 PLATFORM_BEOS=1
47745             ;;
47746             powerpc-apple-macos* )
47747                 PLATFORM_MAC=1
47748                 PLATFORM_MACOS=1
47749             ;;
47750             * )
47751                 PLATFORM_UNIX=1
47752             ;;
47753         esac
47754     else
47755         case "$BAKEFILE_FORCE_PLATFORM" in
47756             win32 )
47757                 PLATFORM_WIN32=1
47758             ;;
47759             msdos )
47760                 PLATFORM_MSDOS=1
47761             ;;
47762             os2 )
47763                 PLATFORM_OS2=1
47764             ;;
47765             darwin )
47766                 PLATFORM_MAC=1
47767                 PLATFORM_MACOSX=1
47768             ;;
47769             unix )
47770                 PLATFORM_UNIX=1
47771             ;;
47772             beos )
47773                 PLATFORM_BEOS=1
47774             ;;
47775             * )
47776                                             ;;
47777         esac
47778     fi
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790     # Check whether --enable-omf was given.
47791 if test "${enable_omf+set}" = set; then
47792   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47793 fi
47794
47795
47796     case "${BAKEFILE_HOST}" in
47797       *-*-darwin* )
47798                         if test "x$GCC" = "xyes"; then
47799             CFLAGS="$CFLAGS -fno-common"
47800             CXXFLAGS="$CXXFLAGS -fno-common"
47801         fi
47802         if test "x$XLCC" = "xyes"; then
47803             CFLAGS="$CFLAGS -qnocommon"
47804             CXXFLAGS="$CXXFLAGS -qnocommon"
47805         fi
47806         ;;
47807
47808       *-pc-os2_emx | *-pc-os2-emx )
47809         if test "x$bk_os2_use_omf" = "xyes" ; then
47810             AR=emxomfar
47811             RANLIB=:
47812             LDFLAGS="-Zomf $LDFLAGS"
47813             CFLAGS="-Zomf $CFLAGS"
47814             CXXFLAGS="-Zomf $CXXFLAGS"
47815             OS2_LIBEXT="lib"
47816         else
47817             OS2_LIBEXT="a"
47818         fi
47819         ;;
47820
47821       i*86-*-beos* )
47822         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47823         ;;
47824     esac
47825
47826
47827     SO_SUFFIX="so"
47828     SO_SUFFIX_MODULE="so"
47829     EXEEXT=""
47830     LIBPREFIX="lib"
47831     LIBEXT=".a"
47832     DLLPREFIX="lib"
47833     DLLPREFIX_MODULE=""
47834     DLLIMP_SUFFIX=""
47835     dlldir="$libdir"
47836
47837     case "${BAKEFILE_HOST}" in
47838         *-hp-hpux* )
47839             SO_SUFFIX="sl"
47840             SO_SUFFIX_MODULE="sl"
47841         ;;
47842         *-*-aix* )
47843                                                                         SO_SUFFIX="a"
47844             SO_SUFFIX_MODULE="a"
47845         ;;
47846         *-*-cygwin* )
47847             SO_SUFFIX="dll"
47848             SO_SUFFIX_MODULE="dll"
47849             DLLIMP_SUFFIX="dll.a"
47850             EXEEXT=".exe"
47851             DLLPREFIX="cyg"
47852             dlldir="$bindir"
47853         ;;
47854         *-*-mingw32* )
47855             SO_SUFFIX="dll"
47856             SO_SUFFIX_MODULE="dll"
47857             DLLIMP_SUFFIX="dll.a"
47858             EXEEXT=".exe"
47859             DLLPREFIX=""
47860             dlldir="$bindir"
47861         ;;
47862         *-pc-msdosdjgpp )
47863             EXEEXT=".exe"
47864             DLLPREFIX=""
47865             dlldir="$bindir"
47866         ;;
47867         *-pc-os2_emx | *-pc-os2-emx )
47868             SO_SUFFIX="dll"
47869             SO_SUFFIX_MODULE="dll"
47870             DLLIMP_SUFFIX=$OS2_LIBEXT
47871             EXEEXT=".exe"
47872             DLLPREFIX=""
47873             LIBPREFIX=""
47874             LIBEXT=".$OS2_LIBEXT"
47875             dlldir="$bindir"
47876         ;;
47877         *-*-darwin* )
47878             SO_SUFFIX="dylib"
47879             SO_SUFFIX_MODULE="bundle"
47880         ;;
47881     esac
47882
47883     if test "x$DLLIMP_SUFFIX" = "x" ; then
47884         DLLIMP_SUFFIX="$SO_SUFFIX"
47885     fi
47886
47887
47888
47889
47890
47891
47892
47893
47894
47895
47896
47897
47898         PIC_FLAG=""
47899     if test "x$GCC" = "xyes"; then
47900                 PIC_FLAG="-fPIC"
47901     fi
47902
47903         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47904     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47905     WINDOWS_IMPLIB=0
47906
47907     case "${BAKEFILE_HOST}" in
47908       *-hp-hpux* )
47909                 if test "x$GCC" != "xyes"; then
47910                         LDFLAGS="$LDFLAGS -L/usr/lib"
47911
47912             SHARED_LD_CC="${CC} -b -o"
47913             SHARED_LD_CXX="${CXX} -b -o"
47914             PIC_FLAG="+Z"
47915         fi
47916       ;;
47917
47918       *-*-linux* )
47919         if test "$INTELCC" = "yes"; then
47920             PIC_FLAG="-KPIC"
47921         elif test "x$SUNCXX" = "xyes"; then
47922             SHARED_LD_CC="${CC} -G -o"
47923             SHARED_LD_CXX="${CXX} -G -o"
47924             PIC_FLAG="-KPIC"
47925         fi
47926       ;;
47927
47928       *-*-solaris2* )
47929         if test "x$SUNCXX" = xyes ; then
47930             SHARED_LD_CC="${CC} -G -o"
47931             SHARED_LD_CXX="${CXX} -G -o"
47932             PIC_FLAG="-KPIC"
47933         fi
47934       ;;
47935
47936       *-*-darwin* )
47937
47938 D='$'
47939 cat <<EOF >shared-ld-sh
47940 #!/bin/sh
47941 #-----------------------------------------------------------------------------
47942 #-- Name:        distrib/mac/shared-ld-sh
47943 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47944 #-- Author:      Gilles Depeyrot
47945 #-- Copyright:   (c) 2002 Gilles Depeyrot
47946 #-- Licence:     any use permitted
47947 #-----------------------------------------------------------------------------
47948
47949 verbose=0
47950 args=""
47951 objects=""
47952 linking_flag="-dynamiclib"
47953 ldargs="-r -keep_private_externs -nostdlib"
47954
47955 if test "x${D}CXX" = "x"; then
47956     CXX="c++"
47957 fi
47958
47959 while test ${D}# -gt 0; do
47960     case ${D}1 in
47961
47962        -v)
47963         verbose=1
47964         ;;
47965
47966        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47967         # collect these options and values
47968         args="${D}{args} ${D}1 ${D}2"
47969         shift
47970         ;;
47971
47972        -arch|-isysroot)
47973         # collect these options and values
47974         ldargs="${D}{ldargs} ${D}1 ${D}2"
47975         shift
47976         ;;
47977
47978        -s|-Wl,*)
47979         # collect these load args
47980         ldargs="${D}{ldargs} ${D}1"
47981         ;;
47982
47983        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47984         # collect these options
47985         args="${D}{args} ${D}1"
47986         ;;
47987
47988        -dynamiclib|-bundle)
47989         linking_flag="${D}1"
47990         ;;
47991
47992        -*)
47993         echo "shared-ld: unhandled option '${D}1'"
47994         exit 1
47995         ;;
47996
47997         *.o | *.a | *.dylib)
47998         # collect object files
47999         objects="${D}{objects} ${D}1"
48000         ;;
48001
48002         *)
48003         echo "shared-ld: unhandled argument '${D}1'"
48004         exit 1
48005         ;;
48006
48007     esac
48008     shift
48009 done
48010
48011 status=0
48012
48013 #
48014 # Link one module containing all the others
48015 #
48016 if test ${D}{verbose} = 1; then
48017     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48018 fi
48019 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48020 status=${D}?
48021
48022 #
48023 # Link the shared library from the single module created, but only if the
48024 # previous command didn't fail:
48025 #
48026 if test ${D}{status} = 0; then
48027     if test ${D}{verbose} = 1; then
48028         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48029     fi
48030     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48031     status=${D}?
48032 fi
48033
48034 #
48035 # Remove intermediate module
48036 #
48037 rm -f master.${D}${D}.o
48038
48039 exit ${D}status
48040 EOF
48041
48042         chmod +x shared-ld-sh
48043
48044         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48045         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48046
48047
48048                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48049 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48050 if test "${bakefile_cv_gcc31+set}" = set; then
48051   echo $ECHO_N "(cached) $ECHO_C" >&6
48052 else
48053
48054            cat >conftest.$ac_ext <<_ACEOF
48055 /* confdefs.h.  */
48056 _ACEOF
48057 cat confdefs.h >>conftest.$ac_ext
48058 cat >>conftest.$ac_ext <<_ACEOF
48059 /* end confdefs.h.  */
48060
48061 int
48062 main ()
48063 {
48064
48065                    #if (__GNUC__ < 3) || \
48066                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48067                        This is old gcc
48068                    #endif
48069
48070   ;
48071   return 0;
48072 }
48073 _ACEOF
48074 rm -f conftest.$ac_objext
48075 if { (ac_try="$ac_compile"
48076 case "(($ac_try" in
48077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48078   *) ac_try_echo=$ac_try;;
48079 esac
48080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48081   (eval "$ac_compile") 2>conftest.er1
48082   ac_status=$?
48083   grep -v '^ *+' conftest.er1 >conftest.err
48084   rm -f conftest.er1
48085   cat conftest.err >&5
48086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48087   (exit $ac_status); } && {
48088          test -z "$ac_c_werror_flag" ||
48089          test ! -s conftest.err
48090        } && test -s conftest.$ac_objext; then
48091
48092                    bakefile_cv_gcc31=yes
48093
48094 else
48095   echo "$as_me: failed program was:" >&5
48096 sed 's/^/| /' conftest.$ac_ext >&5
48097
48098
48099                    bakefile_cv_gcc31=no
48100
48101
48102 fi
48103
48104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48105
48106 fi
48107 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48108 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48109         if test "$bakefile_cv_gcc31" = "no"; then
48110                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48111             SHARED_LD_CXX="$SHARED_LD_CC"
48112         else
48113                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48114             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48115         fi
48116
48117         if test "x$GCC" == "xyes"; then
48118             PIC_FLAG="-dynamic -fPIC"
48119         fi
48120         if test "x$XLCC" = "xyes"; then
48121             PIC_FLAG="-dynamic -DPIC"
48122         fi
48123       ;;
48124
48125       *-*-aix* )
48126         if test "x$GCC" = "xyes"; then
48127                                                             PIC_FLAG=""
48128
48129                                                                                     case "${BAKEFILE_HOST}" in
48130                 *-*-aix5* )
48131                     LD_EXPFULL="-Wl,-bexpfull"
48132                     ;;
48133             esac
48134
48135             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48136             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48137         else
48138                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48139 set dummy makeC++SharedLib; ac_word=$2
48140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48142 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48143   echo $ECHO_N "(cached) $ECHO_C" >&6
48144 else
48145   if test -n "$AIX_CXX_LD"; then
48146   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48147 else
48148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48149 for as_dir in $PATH
48150 do
48151   IFS=$as_save_IFS
48152   test -z "$as_dir" && as_dir=.
48153   for ac_exec_ext in '' $ac_executable_extensions; do
48154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48155     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48157     break 2
48158   fi
48159 done
48160 done
48161 IFS=$as_save_IFS
48162
48163   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48164 fi
48165 fi
48166 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48167 if test -n "$AIX_CXX_LD"; then
48168   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48169 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48170 else
48171   { echo "$as_me:$LINENO: result: no" >&5
48172 echo "${ECHO_T}no" >&6; }
48173 fi
48174
48175
48176             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48177             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48178         fi
48179       ;;
48180
48181       *-*-beos* )
48182                         SHARED_LD_CC="${LD} -nostart -o"
48183         SHARED_LD_CXX="${LD} -nostart -o"
48184       ;;
48185
48186       *-*-irix* )
48187                 if test "x$GCC" != "xyes"; then
48188             PIC_FLAG="-KPIC"
48189         fi
48190       ;;
48191
48192       *-*-cygwin* | *-*-mingw32* )
48193         PIC_FLAG=""
48194         SHARED_LD_CC="\$(CC) -shared -o"
48195         SHARED_LD_CXX="\$(CXX) -shared -o"
48196         WINDOWS_IMPLIB=1
48197       ;;
48198
48199       *-pc-os2_emx | *-pc-os2-emx )
48200         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48201         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48202         PIC_FLAG=""
48203
48204 D='$'
48205 cat <<EOF >dllar.sh
48206 #!/bin/sh
48207 #
48208 # dllar - a tool to build both a .dll and an .a file
48209 # from a set of object (.o) files for EMX/OS2.
48210 #
48211 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48212 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48213 #
48214 #  This script will accept a set of files on the command line.
48215 #  All the public symbols from the .o files will be exported into
48216 #  a .DEF file, then linker will be run (through gcc) against them to
48217 #  build a shared library consisting of all given .o files. All libraries
48218 #  (.a) will be first decompressed into component .o files then act as
48219 #  described above. You can optionally give a description (-d "description")
48220 #  which will be put into .DLL. To see the list of accepted options (as well
48221 #  as command-line format) simply run this program without options. The .DLL
48222 #  is built to be imported by name (there is no guarantee that new versions
48223 #  of the library you build will have same ordinals for same symbols).
48224 #
48225 #  dllar is free software; you can redistribute it and/or modify
48226 #  it under the terms of the GNU General Public License as published by
48227 #  the Free Software Foundation; either version 2, or (at your option)
48228 #  any later version.
48229 #
48230 #  dllar is distributed in the hope that it will be useful,
48231 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48232 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48233 #  GNU General Public License for more details.
48234 #
48235 #  You should have received a copy of the GNU General Public License
48236 #  along with dllar; see the file COPYING.  If not, write to the Free
48237 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48238 #  02111-1307, USA.
48239
48240 # To successfuly run this program you will need:
48241 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48242 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48243 #  - gcc
48244 #    (used to build the .dll)
48245 #  - emxexp
48246 #    (used to create .def file from .o files)
48247 #  - emximp
48248 #    (used to create .a file from .def file)
48249 #  - GNU text utilites (cat, sort, uniq)
48250 #    used to process emxexp output
48251 #  - GNU file utilities (mv, rm)
48252 #  - GNU sed
48253 #  - lxlite (optional, see flag below)
48254 #    (used for general .dll cleanup)
48255 #
48256
48257 flag_USE_LXLITE=1;
48258
48259 #
48260 # helper functions
48261 # basnam, variant of basename, which does _not_ remove the path, _iff_
48262 #                              second argument (suffix to remove) is given
48263 basnam(){
48264     case ${D}# in
48265     1)
48266         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48267         ;;
48268     2)
48269         echo ${D}1 | sed 's/'${D}2'${D}//'
48270         ;;
48271     *)
48272         echo "error in basnam ${D}*"
48273         exit 8
48274         ;;
48275     esac
48276 }
48277
48278 # Cleanup temporary files and output
48279 CleanUp() {
48280     cd ${D}curDir
48281     for i in ${D}inputFiles ; do
48282         case ${D}i in
48283         *!)
48284             rm -rf \`basnam ${D}i !\`
48285             ;;
48286         *)
48287             ;;
48288         esac
48289     done
48290
48291     # Kill result in case of failure as there is just to many stupid make/nmake
48292     # things out there which doesn't do this.
48293     if [ ${D}# -eq 0 ]; then
48294         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48295     fi
48296 }
48297
48298 # Print usage and exit script with rc=1.
48299 PrintHelp() {
48300  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48301  echo '       [-name-mangler-script script.sh]'
48302  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48303  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48304  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48305  echo '       [*.o] [*.a]'
48306  echo '*> "output_file" should have no extension.'
48307  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48308  echo '   The import library name is derived from this and is set to "name".a,'
48309  echo '   unless overridden by -import'
48310  echo '*> "importlib_name" should have no extension.'
48311  echo '   If it has the .o, or .a extension, it is automatically removed.'
48312  echo '   This name is used as the import library name and may be longer and'
48313  echo '   more descriptive than the DLL name which has to follow the old '
48314  echo '   8.3 convention of FAT.'
48315  echo '*> "script.sh may be given to override the output_file name by a'
48316  echo '   different name. It is mainly useful if the regular make process'
48317  echo '   of some package does not take into account OS/2 restriction of'
48318  echo '   DLL name lengths. It takes the importlib name as input and is'
48319  echo '   supposed to procude a shorter name as output. The script should'
48320  echo '   expect to get importlib_name without extension and should produce'
48321  echo '   a (max.) 8 letter name without extension.'
48322  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48323  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48324  echo '   These flags will be put at the start of GCC command line.'
48325  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48326  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48327  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48328  echo '   If the last character of a symbol is "*", all symbols beginning'
48329  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48330  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48331  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48332  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48333  echo '   C runtime DLLs.'
48334  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48335  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48336  echo '   unchanged to GCC at the end of command line.'
48337  echo '*> If you create a DLL from a library and you do not specify -o,'
48338  echo '   the basename for DLL and import library will be set to library name,'
48339  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48340  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48341  echo '   library will be renamed into gcc_s.a.'
48342  echo '--------'
48343  echo 'Example:'
48344  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48345  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48346  CleanUp
48347  exit 1
48348 }
48349
48350 # Execute a command.
48351 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48352 # @Uses    Whatever CleanUp() uses.
48353 doCommand() {
48354     echo "${D}*"
48355     eval ${D}*
48356     rcCmd=${D}?
48357
48358     if [ ${D}rcCmd -ne 0 ]; then
48359         echo "command failed, exit code="${D}rcCmd
48360         CleanUp
48361         exit ${D}rcCmd
48362     fi
48363 }
48364
48365 # main routine
48366 # setup globals
48367 cmdLine=${D}*
48368 outFile=""
48369 outimpFile=""
48370 inputFiles=""
48371 renameScript=""
48372 description=""
48373 CC=gcc.exe
48374 CFLAGS="-s -Zcrtdll"
48375 EXTRA_CFLAGS=""
48376 EXPORT_BY_ORDINALS=0
48377 exclude_symbols=""
48378 library_flags=""
48379 curDir=\`pwd\`
48380 curDirS=curDir
48381 case ${D}curDirS in
48382 */)
48383   ;;
48384 *)
48385   curDirS=${D}{curDirS}"/"
48386   ;;
48387 esac
48388 # Parse commandline
48389 libsToLink=0
48390 omfLinking=0
48391 while [ ${D}1 ]; do
48392     case ${D}1 in
48393     -ord*)
48394         EXPORT_BY_ORDINALS=1;
48395         ;;
48396     -o*)
48397         shift
48398         outFile=${D}1
48399         ;;
48400     -i*)
48401         shift
48402         outimpFile=${D}1
48403         ;;
48404     -name-mangler-script)
48405         shift
48406         renameScript=${D}1
48407         ;;
48408     -d*)
48409         shift
48410         description=${D}1
48411         ;;
48412     -f*)
48413         shift
48414         CFLAGS=${D}1
48415         ;;
48416     -c*)
48417         shift
48418         CC=${D}1
48419         ;;
48420     -h*)
48421         PrintHelp
48422         ;;
48423     -ex*)
48424         shift
48425         exclude_symbols=${D}{exclude_symbols}${D}1" "
48426         ;;
48427     -libf*)
48428         shift
48429         library_flags=${D}{library_flags}${D}1" "
48430         ;;
48431     -nocrt*)
48432         CFLAGS="-s"
48433         ;;
48434     -nolxl*)
48435         flag_USE_LXLITE=0
48436         ;;
48437     -* | /*)
48438         case ${D}1 in
48439         -L* | -l*)
48440             libsToLink=1
48441             ;;
48442         -Zomf)
48443             omfLinking=1
48444             ;;
48445         *)
48446             ;;
48447         esac
48448         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48449         ;;
48450     *.dll)
48451         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48452         if [ ${D}omfLinking -eq 1 ]; then
48453             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48454         else
48455             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48456         fi
48457         ;;
48458     *)
48459         found=0;
48460         if [ ${D}libsToLink -ne 0 ]; then
48461             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48462         else
48463             for file in ${D}1 ; do
48464                 if [ -f ${D}file ]; then
48465                     inputFiles="${D}{inputFiles} ${D}file"
48466                     found=1
48467                 fi
48468             done
48469             if [ ${D}found -eq 0 ]; then
48470                 echo "ERROR: No file(s) found: "${D}1
48471                 exit 8
48472             fi
48473         fi
48474       ;;
48475     esac
48476     shift
48477 done # iterate cmdline words
48478
48479 #
48480 if [ -z "${D}inputFiles" ]; then
48481     echo "dllar: no input files"
48482     PrintHelp
48483 fi
48484
48485 # Now extract all .o files from .a files
48486 newInputFiles=""
48487 for file in ${D}inputFiles ; do
48488     case ${D}file in
48489     *.a | *.lib)
48490         case ${D}file in
48491         *.a)
48492             suffix=".a"
48493             AR="ar"
48494             ;;
48495         *.lib)
48496             suffix=".lib"
48497             AR="emxomfar"
48498             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48499             ;;
48500         *)
48501             ;;
48502         esac
48503         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48504         mkdir ${D}dirname
48505         if [ ${D}? -ne 0 ]; then
48506             echo "Failed to create subdirectory ./${D}dirname"
48507             CleanUp
48508             exit 8;
48509         fi
48510         # Append '!' to indicate archive
48511         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48512         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48513         cd ${D}curDir
48514         found=0;
48515         for subfile in ${D}dirname/*.o* ; do
48516             if [ -f ${D}subfile ]; then
48517                 found=1
48518                 if [ -s ${D}subfile ]; then
48519                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48520                     newInputFiles="${D}newInputFiles ${D}subfile"
48521                 fi
48522             fi
48523         done
48524         if [ ${D}found -eq 0 ]; then
48525             echo "WARNING: there are no files in archive \\'${D}file\\'"
48526         fi
48527         ;;
48528     *)
48529         newInputFiles="${D}{newInputFiles} ${D}file"
48530         ;;
48531     esac
48532 done
48533 inputFiles="${D}newInputFiles"
48534
48535 # Output filename(s).
48536 do_backup=0;
48537 if [ -z ${D}outFile ]; then
48538     do_backup=1;
48539     set outFile ${D}inputFiles; outFile=${D}2
48540 fi
48541
48542 # If it is an archive, remove the '!' and the '_%' suffixes
48543 case ${D}outFile in
48544 *_%!)
48545     outFile=\`basnam ${D}outFile _%!\`
48546     ;;
48547 *)
48548     ;;
48549 esac
48550 case ${D}outFile in
48551 *.dll)
48552     outFile=\`basnam ${D}outFile .dll\`
48553     ;;
48554 *.DLL)
48555     outFile=\`basnam ${D}outFile .DLL\`
48556     ;;
48557 *.o)
48558     outFile=\`basnam ${D}outFile .o\`
48559     ;;
48560 *.obj)
48561     outFile=\`basnam ${D}outFile .obj\`
48562     ;;
48563 *.a)
48564     outFile=\`basnam ${D}outFile .a\`
48565     ;;
48566 *.lib)
48567     outFile=\`basnam ${D}outFile .lib\`
48568     ;;
48569 *)
48570     ;;
48571 esac
48572 case ${D}outimpFile in
48573 *.a)
48574     outimpFile=\`basnam ${D}outimpFile .a\`
48575     ;;
48576 *.lib)
48577     outimpFile=\`basnam ${D}outimpFile .lib\`
48578     ;;
48579 *)
48580     ;;
48581 esac
48582 if [ -z ${D}outimpFile ]; then
48583     outimpFile=${D}outFile
48584 fi
48585 defFile="${D}{outFile}.def"
48586 arcFile="${D}{outimpFile}.a"
48587 arcFile2="${D}{outimpFile}.lib"
48588
48589 #create ${D}dllFile as something matching 8.3 restrictions,
48590 if [ -z ${D}renameScript ] ; then
48591     dllFile="${D}outFile"
48592 else
48593     dllFile=\`${D}renameScript ${D}outimpFile\`
48594 fi
48595
48596 if [ ${D}do_backup -ne 0 ] ; then
48597     if [ -f ${D}arcFile ] ; then
48598         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48599     fi
48600     if [ -f ${D}arcFile2 ] ; then
48601         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48602     fi
48603 fi
48604
48605 # Extract public symbols from all the object files.
48606 tmpdefFile=${D}{defFile}_%
48607 rm -f ${D}tmpdefFile
48608 for file in ${D}inputFiles ; do
48609     case ${D}file in
48610     *!)
48611         ;;
48612     *)
48613         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48614         ;;
48615     esac
48616 done
48617
48618 # Create the def file.
48619 rm -f ${D}defFile
48620 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48621 dllFile="${D}{dllFile}.dll"
48622 if [ ! -z ${D}description ]; then
48623     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48624 fi
48625 echo "EXPORTS" >> ${D}defFile
48626
48627 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48628 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48629
48630 # Checks if the export is ok or not.
48631 for word in ${D}exclude_symbols; do
48632     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48633     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48634 done
48635
48636
48637 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48638     sed "=" < ${D}tmpdefFile | \\
48639     sed '
48640       N
48641       : loop
48642       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48643       t loop
48644     ' > ${D}{tmpdefFile}%
48645     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48646 else
48647     rm -f ${D}{tmpdefFile}%
48648 fi
48649 cat ${D}tmpdefFile >> ${D}defFile
48650 rm -f ${D}tmpdefFile
48651
48652 # Do linking, create implib, and apply lxlite.
48653 gccCmdl="";
48654 for file in ${D}inputFiles ; do
48655     case ${D}file in
48656     *!)
48657         ;;
48658     *)
48659         gccCmdl="${D}gccCmdl ${D}file"
48660         ;;
48661     esac
48662 done
48663 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48664 touch "${D}{outFile}.dll"
48665
48666 doCommand "emximp -o ${D}arcFile ${D}defFile"
48667 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48668     add_flags="";
48669     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48670         add_flags="-ynd"
48671     fi
48672     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48673 fi
48674 doCommand "emxomf -s -l ${D}arcFile"
48675
48676 # Successful exit.
48677 CleanUp 1
48678 exit 0
48679 EOF
48680
48681         chmod +x dllar.sh
48682       ;;
48683
48684       powerpc-apple-macos* | \
48685       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48686       *-*-mirbsd* | \
48687       *-*-sunos4* | \
48688       *-*-osf* | \
48689       *-*-dgux5* | \
48690       *-*-sysv5* | \
48691       *-pc-msdosdjgpp )
48692               ;;
48693
48694       *)
48695         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48696 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48697    { (exit 1); exit 1; }; }
48698     esac
48699
48700     if test "x$PIC_FLAG" != "x" ; then
48701         PIC_FLAG="$PIC_FLAG -DPIC"
48702     fi
48703
48704     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48705         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48706     fi
48707     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48708         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48709     fi
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719     USE_SOVERSION=0
48720     USE_SOVERLINUX=0
48721     USE_SOVERSOLARIS=0
48722     USE_SOVERCYGWIN=0
48723     USE_SOSYMLINKS=0
48724     USE_MACVERSION=0
48725     SONAME_FLAG=
48726
48727     case "${BAKEFILE_HOST}" in
48728       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48729       *-*-k*bsd*-gnu | *-*-mirbsd* )
48730         if test "x$SUNCXX" = "xyes"; then
48731             SONAME_FLAG="-h "
48732         else
48733             SONAME_FLAG="-Wl,-soname,"
48734         fi
48735         USE_SOVERSION=1
48736         USE_SOVERLINUX=1
48737         USE_SOSYMLINKS=1
48738       ;;
48739
48740       *-*-solaris2* )
48741         SONAME_FLAG="-h "
48742         USE_SOVERSION=1
48743         USE_SOVERSOLARIS=1
48744         USE_SOSYMLINKS=1
48745       ;;
48746
48747       *-*-darwin* )
48748         USE_MACVERSION=1
48749         USE_SOVERSION=1
48750         USE_SOSYMLINKS=1
48751       ;;
48752
48753       *-*-cygwin* )
48754         USE_SOVERSION=1
48755         USE_SOVERCYGWIN=1
48756       ;;
48757     esac
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767
48768     # Check whether --enable-dependency-tracking was given.
48769 if test "${enable_dependency_tracking+set}" = set; then
48770   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48771 fi
48772
48773
48774     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48775 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48776
48777     BK_DEPS=""
48778     if test "x$bk_use_trackdeps" = "xno" ; then
48779         DEPS_TRACKING=0
48780         { echo "$as_me:$LINENO: result: disabled" >&5
48781 echo "${ECHO_T}disabled" >&6; }
48782     else
48783         DEPS_TRACKING=1
48784
48785         if test "x$GCC" = "xyes"; then
48786             DEPSMODE=gcc
48787             case "${BAKEFILE_HOST}" in
48788                 *-*-darwin* )
48789                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48790                 ;;
48791                 * )
48792                     DEPSFLAG="-MMD"
48793                 ;;
48794             esac
48795             { echo "$as_me:$LINENO: result: gcc" >&5
48796 echo "${ECHO_T}gcc" >&6; }
48797         elif test "x$MWCC" = "xyes"; then
48798             DEPSMODE=mwcc
48799             DEPSFLAG="-MM"
48800             { echo "$as_me:$LINENO: result: mwcc" >&5
48801 echo "${ECHO_T}mwcc" >&6; }
48802         elif test "x$SUNCC" = "xyes"; then
48803             DEPSMODE=unixcc
48804             DEPSFLAG="-xM1"
48805             { echo "$as_me:$LINENO: result: Sun cc" >&5
48806 echo "${ECHO_T}Sun cc" >&6; }
48807         elif test "x$SGICC" = "xyes"; then
48808             DEPSMODE=unixcc
48809             DEPSFLAG="-M"
48810             { echo "$as_me:$LINENO: result: SGI cc" >&5
48811 echo "${ECHO_T}SGI cc" >&6; }
48812         elif test "x$HPCC" = "xyes"; then
48813             DEPSMODE=unixcc
48814             DEPSFLAG="+make"
48815             { echo "$as_me:$LINENO: result: HP cc" >&5
48816 echo "${ECHO_T}HP cc" >&6; }
48817         elif test "x$COMPAQCC" = "xyes"; then
48818             DEPSMODE=gcc
48819             DEPSFLAG="-MD"
48820             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48821 echo "${ECHO_T}Compaq cc" >&6; }
48822         else
48823             DEPS_TRACKING=0
48824             { echo "$as_me:$LINENO: result: none" >&5
48825 echo "${ECHO_T}none" >&6; }
48826         fi
48827
48828         if test $DEPS_TRACKING = 1 ; then
48829
48830 D='$'
48831 cat <<EOF >bk-deps
48832 #!/bin/sh
48833
48834 # This script is part of Bakefile (http://www.bakefile.org) autoconf
48835 # script. It is used to track C/C++ files dependencies in portable way.
48836 #
48837 # Permission is given to use this file in any way.
48838
48839 DEPSMODE=${DEPSMODE}
48840 DEPSDIR=.deps
48841 DEPSFLAG="${DEPSFLAG}"
48842
48843 mkdir -p ${D}DEPSDIR
48844
48845 if test ${D}DEPSMODE = gcc ; then
48846     ${D}* ${D}{DEPSFLAG}
48847     status=${D}?
48848
48849     # determine location of created files:
48850     while test ${D}# -gt 0; do
48851         case "${D}1" in
48852             -o )
48853                 shift
48854                 objfile=${D}1
48855             ;;
48856             -* )
48857             ;;
48858             * )
48859                 srcfile=${D}1
48860             ;;
48861         esac
48862         shift
48863     done
48864     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48865     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48866
48867     # if the compiler failed, we're done:
48868     if test ${D}{status} != 0 ; then
48869         rm -f ${D}depfile
48870         exit ${D}{status}
48871     fi
48872
48873     # move created file to the location we want it in:
48874     if test -f ${D}depfile ; then
48875         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48876         rm -f ${D}depfile
48877     else
48878         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48879         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48880         if test ! -f ${D}depfile ; then
48881             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48882             depfile="${D}objfile.d"
48883         fi
48884         if test -f ${D}depfile ; then
48885             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48886             rm -f ${D}depfile
48887         fi
48888     fi
48889     exit 0
48890 elif test ${D}DEPSMODE = mwcc ; then
48891     ${D}* || exit ${D}?
48892     # Run mwcc again with -MM and redirect into the dep file we want
48893     # NOTE: We can't use shift here because we need ${D}* to be valid
48894     prevarg=
48895     for arg in ${D}* ; do
48896         if test "${D}prevarg" = "-o"; then
48897             objfile=${D}arg
48898         else
48899             case "${D}arg" in
48900                 -* )
48901                 ;;
48902                 * )
48903                     srcfile=${D}arg
48904                 ;;
48905             esac
48906         fi
48907         prevarg="${D}arg"
48908     done
48909     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48910     exit 0
48911 elif test ${D}DEPSMODE = unixcc; then
48912     ${D}* || exit ${D}?
48913     # Run compiler again with deps flag and redirect into the dep file.
48914     # It doesn't work if the '-o FILE' option is used, but without it the
48915     # dependency file will contain the wrong name for the object. So it is
48916     # removed from the command line, and the dep file is fixed with sed.
48917     cmd=""
48918     while test ${D}# -gt 0; do
48919         case "${D}1" in
48920             -o )
48921                 shift
48922                 objfile=${D}1
48923             ;;
48924             * )
48925                 eval arg${D}#=\\${D}1
48926                 cmd="${D}cmd \\${D}arg${D}#"
48927             ;;
48928         esac
48929         shift
48930     done
48931     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48932     exit 0
48933 else
48934     ${D}*
48935     exit ${D}?
48936 fi
48937 EOF
48938
48939             chmod +x bk-deps
48940                                     BK_DEPS="`pwd`/bk-deps"
48941         fi
48942     fi
48943
48944
48945
48946
48947
48948     case ${BAKEFILE_HOST} in
48949         *-*-cygwin* | *-*-mingw32* )
48950                         if test -n "$ac_tool_prefix"; then
48951   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48952 set dummy ${ac_tool_prefix}windres; ac_word=$2
48953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48955 if test "${ac_cv_prog_WINDRES+set}" = set; then
48956   echo $ECHO_N "(cached) $ECHO_C" >&6
48957 else
48958   if test -n "$WINDRES"; then
48959   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48960 else
48961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48962 for as_dir in $PATH
48963 do
48964   IFS=$as_save_IFS
48965   test -z "$as_dir" && as_dir=.
48966   for ac_exec_ext in '' $ac_executable_extensions; do
48967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48968     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48970     break 2
48971   fi
48972 done
48973 done
48974 IFS=$as_save_IFS
48975
48976 fi
48977 fi
48978 WINDRES=$ac_cv_prog_WINDRES
48979 if test -n "$WINDRES"; then
48980   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48981 echo "${ECHO_T}$WINDRES" >&6; }
48982 else
48983   { echo "$as_me:$LINENO: result: no" >&5
48984 echo "${ECHO_T}no" >&6; }
48985 fi
48986
48987
48988 fi
48989 if test -z "$ac_cv_prog_WINDRES"; then
48990   ac_ct_WINDRES=$WINDRES
48991   # Extract the first word of "windres", so it can be a program name with args.
48992 set dummy windres; ac_word=$2
48993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48995 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48996   echo $ECHO_N "(cached) $ECHO_C" >&6
48997 else
48998   if test -n "$ac_ct_WINDRES"; then
48999   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49000 else
49001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49002 for as_dir in $PATH
49003 do
49004   IFS=$as_save_IFS
49005   test -z "$as_dir" && as_dir=.
49006   for ac_exec_ext in '' $ac_executable_extensions; do
49007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49008     ac_cv_prog_ac_ct_WINDRES="windres"
49009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49010     break 2
49011   fi
49012 done
49013 done
49014 IFS=$as_save_IFS
49015
49016 fi
49017 fi
49018 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49019 if test -n "$ac_ct_WINDRES"; then
49020   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49021 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49022 else
49023   { echo "$as_me:$LINENO: result: no" >&5
49024 echo "${ECHO_T}no" >&6; }
49025 fi
49026
49027   if test "x$ac_ct_WINDRES" = x; then
49028     WINDRES=""
49029   else
49030     case $cross_compiling:$ac_tool_warned in
49031 yes:)
49032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49033 whose name does not start with the host triplet.  If you think this
49034 configuration is useful to you, please write to autoconf@gnu.org." >&5
49035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49036 whose name does not start with the host triplet.  If you think this
49037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49038 ac_tool_warned=yes ;;
49039 esac
49040     WINDRES=$ac_ct_WINDRES
49041   fi
49042 else
49043   WINDRES="$ac_cv_prog_WINDRES"
49044 fi
49045
49046          ;;
49047
49048       *-*-darwin* | powerpc-apple-macos* )
49049             # Extract the first word of "Rez", so it can be a program name with args.
49050 set dummy Rez; ac_word=$2
49051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49053 if test "${ac_cv_prog_REZ+set}" = set; then
49054   echo $ECHO_N "(cached) $ECHO_C" >&6
49055 else
49056   if test -n "$REZ"; then
49057   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49058 else
49059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49060 for as_dir in $PATH
49061 do
49062   IFS=$as_save_IFS
49063   test -z "$as_dir" && as_dir=.
49064   for ac_exec_ext in '' $ac_executable_extensions; do
49065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49066     ac_cv_prog_REZ="Rez"
49067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49068     break 2
49069   fi
49070 done
49071 done
49072 IFS=$as_save_IFS
49073
49074   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49075 fi
49076 fi
49077 REZ=$ac_cv_prog_REZ
49078 if test -n "$REZ"; then
49079   { echo "$as_me:$LINENO: result: $REZ" >&5
49080 echo "${ECHO_T}$REZ" >&6; }
49081 else
49082   { echo "$as_me:$LINENO: result: no" >&5
49083 echo "${ECHO_T}no" >&6; }
49084 fi
49085
49086
49087             # Extract the first word of "SetFile", so it can be a program name with args.
49088 set dummy SetFile; ac_word=$2
49089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49091 if test "${ac_cv_prog_SETFILE+set}" = set; then
49092   echo $ECHO_N "(cached) $ECHO_C" >&6
49093 else
49094   if test -n "$SETFILE"; then
49095   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49096 else
49097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49098 for as_dir in $PATH
49099 do
49100   IFS=$as_save_IFS
49101   test -z "$as_dir" && as_dir=.
49102   for ac_exec_ext in '' $ac_executable_extensions; do
49103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49104     ac_cv_prog_SETFILE="SetFile"
49105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49106     break 2
49107   fi
49108 done
49109 done
49110 IFS=$as_save_IFS
49111
49112   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49113 fi
49114 fi
49115 SETFILE=$ac_cv_prog_SETFILE
49116 if test -n "$SETFILE"; then
49117   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49118 echo "${ECHO_T}$SETFILE" >&6; }
49119 else
49120   { echo "$as_me:$LINENO: result: no" >&5
49121 echo "${ECHO_T}no" >&6; }
49122 fi
49123
49124
49125         ;;
49126     esac
49127
49128
49129
49130
49131
49132
49133     BAKEFILE_BAKEFILE_M4_VERSION="0.2.3"
49134
49135
49136 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.3"
49137
49138
49139
49140     # Check whether --enable-precomp-headers was given.
49141 if test "${enable_precomp_headers+set}" = set; then
49142   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49143 fi
49144
49145
49146     GCC_PCH=0
49147     ICC_PCH=0
49148     USE_PCH=0
49149     BK_MAKE_PCH=""
49150
49151     case ${BAKEFILE_HOST} in
49152         *-*-cygwin* )
49153                                                 bk_use_pch="no"
49154             ;;
49155     esac
49156
49157     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49158         if test "x$GCC" = "xyes"; then
49159                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49160 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49161             cat >conftest.$ac_ext <<_ACEOF
49162 /* confdefs.h.  */
49163 _ACEOF
49164 cat confdefs.h >>conftest.$ac_ext
49165 cat >>conftest.$ac_ext <<_ACEOF
49166 /* end confdefs.h.  */
49167
49168 int
49169 main ()
49170 {
49171
49172                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49173                         There is no PCH support
49174                     #endif
49175                     #if (__GNUC__ < 3)
49176                         There is no PCH support
49177                     #endif
49178                     #if (__GNUC__ == 3) && \
49179                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49180                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49181                        ( defined(__INTEL_COMPILER) )
49182                         There is no PCH support
49183                     #endif
49184
49185   ;
49186   return 0;
49187 }
49188 _ACEOF
49189 rm -f conftest.$ac_objext
49190 if { (ac_try="$ac_compile"
49191 case "(($ac_try" in
49192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49193   *) ac_try_echo=$ac_try;;
49194 esac
49195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49196   (eval "$ac_compile") 2>conftest.er1
49197   ac_status=$?
49198   grep -v '^ *+' conftest.er1 >conftest.err
49199   rm -f conftest.er1
49200   cat conftest.err >&5
49201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49202   (exit $ac_status); } && {
49203          test -z "$ac_c_werror_flag" ||
49204          test ! -s conftest.err
49205        } && test -s conftest.$ac_objext; then
49206
49207                     { echo "$as_me:$LINENO: result: yes" >&5
49208 echo "${ECHO_T}yes" >&6; }
49209                     GCC_PCH=1
49210
49211 else
49212   echo "$as_me: failed program was:" >&5
49213 sed 's/^/| /' conftest.$ac_ext >&5
49214
49215
49216                     cat >conftest.$ac_ext <<_ACEOF
49217 /* confdefs.h.  */
49218 _ACEOF
49219 cat confdefs.h >>conftest.$ac_ext
49220 cat >>conftest.$ac_ext <<_ACEOF
49221 /* end confdefs.h.  */
49222
49223 int
49224 main ()
49225 {
49226
49227                             #if !defined(__INTEL_COMPILER) || \
49228                                 (__INTEL_COMPILER < 800)
49229                                 There is no PCH support
49230                             #endif
49231
49232   ;
49233   return 0;
49234 }
49235 _ACEOF
49236 rm -f conftest.$ac_objext
49237 if { (ac_try="$ac_compile"
49238 case "(($ac_try" in
49239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49240   *) ac_try_echo=$ac_try;;
49241 esac
49242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49243   (eval "$ac_compile") 2>conftest.er1
49244   ac_status=$?
49245   grep -v '^ *+' conftest.er1 >conftest.err
49246   rm -f conftest.er1
49247   cat conftest.err >&5
49248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249   (exit $ac_status); } && {
49250          test -z "$ac_c_werror_flag" ||
49251          test ! -s conftest.err
49252        } && test -s conftest.$ac_objext; then
49253
49254                             { echo "$as_me:$LINENO: result: yes" >&5
49255 echo "${ECHO_T}yes" >&6; }
49256                             ICC_PCH=1
49257
49258 else
49259   echo "$as_me: failed program was:" >&5
49260 sed 's/^/| /' conftest.$ac_ext >&5
49261
49262
49263                             { echo "$as_me:$LINENO: result: no" >&5
49264 echo "${ECHO_T}no" >&6; }
49265
49266 fi
49267
49268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49269
49270 fi
49271
49272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49273             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49274                 USE_PCH=1
49275
49276 D='$'
49277 cat <<EOF >bk-make-pch
49278 #!/bin/sh
49279
49280 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49281 # script. It is used to generated precompiled headers.
49282 #
49283 # Permission is given to use this file in any way.
49284
49285 outfile="${D}{1}"
49286 header="${D}{2}"
49287 shift
49288 shift
49289
49290 compiler=""
49291 headerfile=""
49292
49293 while test ${D}{#} -gt 0; do
49294     add_to_cmdline=1
49295     case "${D}{1}" in
49296         -I* )
49297             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49298             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49299                 headerfile="${D}{incdir}/${D}{header}"
49300             fi
49301         ;;
49302         -use-pch|-use_pch )
49303             shift
49304             add_to_cmdline=0
49305         ;;
49306     esac
49307     if test ${D}add_to_cmdline = 1 ; then
49308         compiler="${D}{compiler} ${D}{1}"
49309     fi
49310     shift
49311 done
49312
49313 if test "x${D}{headerfile}" = "x" ; then
49314     echo "error: can't find header ${D}{header} in include paths" >&2
49315 else
49316     if test -f ${D}{outfile} ; then
49317         rm -f ${D}{outfile}
49318     else
49319         mkdir -p \`dirname ${D}{outfile}\`
49320     fi
49321     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49322     mkdir -p .deps
49323     if test "x${GCC_PCH}" = "x1" ; then
49324         # can do this because gcc is >= 3.4:
49325         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49326     elif test "x${ICC_PCH}" = "x1" ; then
49327         filename=pch_gen-${D}${D}
49328         file=${D}{filename}.c
49329         dfile=${D}{filename}.d
49330         cat > ${D}file <<EOT
49331 #include "${D}header"
49332 EOT
49333         # using -MF icc complains about differing command lines in creation/use
49334         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49335           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49336           rm -f ${D}file ${D}dfile ${D}{filename}.o
49337     fi
49338     exit ${D}{?}
49339 fi
49340 EOF
49341
49342                 chmod +x bk-make-pch
49343                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49344             fi
49345         fi
49346     fi
49347
49348
49349
49350
49351
49352     COND_BUILD_DEBUG="#"
49353     if test "x$BUILD" = "xdebug" ; then
49354         COND_BUILD_DEBUG=""
49355     fi
49356
49357     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49358     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49359         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49360     fi
49361
49362     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49363     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49364         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49365     fi
49366
49367     COND_BUILD_DEBUG_UNICODE_0="#"
49368     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49369         COND_BUILD_DEBUG_UNICODE_0=""
49370     fi
49371
49372     COND_BUILD_DEBUG_UNICODE_1="#"
49373     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49374         COND_BUILD_DEBUG_UNICODE_1=""
49375     fi
49376
49377     COND_BUILD_RELEASE="#"
49378     if test "x$BUILD" = "xrelease" ; then
49379         COND_BUILD_RELEASE=""
49380     fi
49381
49382     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49383     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49384         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49385     fi
49386
49387     COND_BUILD_RELEASE_UNICODE_0="#"
49388     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49389         COND_BUILD_RELEASE_UNICODE_0=""
49390     fi
49391
49392     COND_BUILD_RELEASE_UNICODE_1="#"
49393     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49394         COND_BUILD_RELEASE_UNICODE_1=""
49395     fi
49396
49397     COND_DEBUG_FLAG_1="#"
49398     if test "x$DEBUG_FLAG" = "x1" ; then
49399         COND_DEBUG_FLAG_1=""
49400     fi
49401
49402     COND_DEBUG_INFO_0="#"
49403     if test "x$DEBUG_INFO" = "x0" ; then
49404         COND_DEBUG_INFO_0=""
49405     fi
49406
49407     COND_DEBUG_INFO_1="#"
49408     if test "x$DEBUG_INFO" = "x1" ; then
49409         COND_DEBUG_INFO_1=""
49410     fi
49411
49412     COND_DEPS_TRACKING_0="#"
49413     if test "x$DEPS_TRACKING" = "x0" ; then
49414         COND_DEPS_TRACKING_0=""
49415     fi
49416
49417     COND_DEPS_TRACKING_1="#"
49418     if test "x$DEPS_TRACKING" = "x1" ; then
49419         COND_DEPS_TRACKING_1=""
49420     fi
49421
49422     COND_GCC_PCH_1="#"
49423     if test "x$GCC_PCH" = "x1" ; then
49424         COND_GCC_PCH_1=""
49425     fi
49426
49427     COND_ICC_PCH_1="#"
49428     if test "x$ICC_PCH" = "x1" ; then
49429         COND_ICC_PCH_1=""
49430     fi
49431
49432     COND_MONOLITHIC_0="#"
49433     if test "x$MONOLITHIC" = "x0" ; then
49434         COND_MONOLITHIC_0=""
49435     fi
49436
49437     COND_MONOLITHIC_0_SHARED_0="#"
49438     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49439         COND_MONOLITHIC_0_SHARED_0=""
49440     fi
49441
49442     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49443     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49444         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49445     fi
49446
49447     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49448     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49449         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49450     fi
49451
49452     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49453     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49454         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49455     fi
49456
49457     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49458     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49459         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49460     fi
49461
49462     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49463     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49464         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49465     fi
49466
49467     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49468     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49469         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49470     fi
49471
49472     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49473     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49474         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49475     fi
49476
49477     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49478     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49479         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49480     fi
49481
49482     COND_MONOLITHIC_0_SHARED_1="#"
49483     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49484         COND_MONOLITHIC_0_SHARED_1=""
49485     fi
49486
49487     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49488     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49489         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49490     fi
49491
49492     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49493     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49494         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49495     fi
49496
49497     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49498     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49499         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49500     fi
49501
49502     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49503     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49504         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49505     fi
49506
49507     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49508     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49509         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49510     fi
49511
49512     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49513     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49514         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49515     fi
49516
49517     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49518     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49519         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49520     fi
49521
49522     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49523     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49524         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49525     fi
49526
49527     COND_MONOLITHIC_0_USE_AUI_1="#"
49528     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49529         COND_MONOLITHIC_0_USE_AUI_1=""
49530     fi
49531
49532     COND_MONOLITHIC_0_USE_GUI_1="#"
49533     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49534         COND_MONOLITHIC_0_USE_GUI_1=""
49535     fi
49536
49537     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49538     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49539         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49540     fi
49541
49542     COND_MONOLITHIC_0_USE_HTML_1="#"
49543     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49544         COND_MONOLITHIC_0_USE_HTML_1=""
49545     fi
49546
49547     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49548     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49549         COND_MONOLITHIC_0_USE_MEDIA_1=""
49550     fi
49551
49552     COND_MONOLITHIC_0_USE_QA_1="#"
49553     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49554         COND_MONOLITHIC_0_USE_QA_1=""
49555     fi
49556
49557     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49558     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49559         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49560     fi
49561
49562     COND_MONOLITHIC_0_USE_STC_1="#"
49563     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49564         COND_MONOLITHIC_0_USE_STC_1=""
49565     fi
49566
49567     COND_MONOLITHIC_0_USE_XRC_1="#"
49568     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49569         COND_MONOLITHIC_0_USE_XRC_1=""
49570     fi
49571
49572     COND_MONOLITHIC_1="#"
49573     if test "x$MONOLITHIC" = "x1" ; then
49574         COND_MONOLITHIC_1=""
49575     fi
49576
49577     COND_MONOLITHIC_1_SHARED_0="#"
49578     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49579         COND_MONOLITHIC_1_SHARED_0=""
49580     fi
49581
49582     COND_MONOLITHIC_1_SHARED_1="#"
49583     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49584         COND_MONOLITHIC_1_SHARED_1=""
49585     fi
49586
49587     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49588     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49589         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49590     fi
49591
49592     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49593     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49594         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49595     fi
49596
49597     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49598     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49599         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49600     fi
49601
49602     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49603     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49604         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49605     fi
49606
49607     COND_PLATFORM_MACOSX_1="#"
49608     if test "x$PLATFORM_MACOSX" = "x1" ; then
49609         COND_PLATFORM_MACOSX_1=""
49610     fi
49611
49612     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49613     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49614         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49615     fi
49616
49617     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49618     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49619         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49620     fi
49621
49622     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49623     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49624         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49625     fi
49626
49627     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49628     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49629         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49630     fi
49631
49632     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49633     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49634         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49635     fi
49636
49637     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49638     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49639         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49640     fi
49641
49642     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49643     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49644         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49645     fi
49646
49647     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49648     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49649         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49650     fi
49651
49652     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49653     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49654         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49655     fi
49656
49657     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49658     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49659         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49660     fi
49661
49662     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49663     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49664         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49665     fi
49666
49667     COND_PLATFORM_MACOS_1="#"
49668     if test "x$PLATFORM_MACOS" = "x1" ; then
49669         COND_PLATFORM_MACOS_1=""
49670     fi
49671
49672     COND_PLATFORM_MAC_0="#"
49673     if test "x$PLATFORM_MAC" = "x0" ; then
49674         COND_PLATFORM_MAC_0=""
49675     fi
49676
49677     COND_PLATFORM_MAC_1="#"
49678     if test "x$PLATFORM_MAC" = "x1" ; then
49679         COND_PLATFORM_MAC_1=""
49680     fi
49681
49682     COND_PLATFORM_MSDOS_0="#"
49683     if test "x$PLATFORM_MSDOS" = "x0" ; then
49684         COND_PLATFORM_MSDOS_0=""
49685     fi
49686
49687     COND_PLATFORM_MSDOS_1="#"
49688     if test "x$PLATFORM_MSDOS" = "x1" ; then
49689         COND_PLATFORM_MSDOS_1=""
49690     fi
49691
49692     COND_PLATFORM_OS2_1="#"
49693     if test "x$PLATFORM_OS2" = "x1" ; then
49694         COND_PLATFORM_OS2_1=""
49695     fi
49696
49697     COND_PLATFORM_UNIX_0="#"
49698     if test "x$PLATFORM_UNIX" = "x0" ; then
49699         COND_PLATFORM_UNIX_0=""
49700     fi
49701
49702     COND_PLATFORM_UNIX_1="#"
49703     if test "x$PLATFORM_UNIX" = "x1" ; then
49704         COND_PLATFORM_UNIX_1=""
49705     fi
49706
49707     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49708     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49709         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49710     fi
49711
49712     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49713     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49714         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49715     fi
49716
49717     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49718     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49719         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49720     fi
49721
49722     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49723     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49724         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49725     fi
49726
49727     COND_PLATFORM_WIN32_0="#"
49728     if test "x$PLATFORM_WIN32" = "x0" ; then
49729         COND_PLATFORM_WIN32_0=""
49730     fi
49731
49732     COND_PLATFORM_WIN32_1="#"
49733     if test "x$PLATFORM_WIN32" = "x1" ; then
49734         COND_PLATFORM_WIN32_1=""
49735     fi
49736
49737     COND_SHARED_0="#"
49738     if test "x$SHARED" = "x0" ; then
49739         COND_SHARED_0=""
49740     fi
49741
49742     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49743     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49744         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49745     fi
49746
49747     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49748     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49749         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49750     fi
49751
49752     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49753     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49754         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49755     fi
49756
49757     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49758     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49759         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49760     fi
49761
49762     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49763     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49764         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49765     fi
49766
49767     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49768     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49769         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49770     fi
49771
49772     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49773     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49774         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49775     fi
49776
49777     COND_SHARED_0_USE_STC_1="#"
49778     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49779         COND_SHARED_0_USE_STC_1=""
49780     fi
49781
49782     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49783     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49784         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49785     fi
49786
49787     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49788     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49789         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49790     fi
49791
49792     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49793     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49794         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49795     fi
49796
49797     COND_SHARED_1="#"
49798     if test "x$SHARED" = "x1" ; then
49799         COND_SHARED_1=""
49800     fi
49801
49802     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49803     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49804         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49805     fi
49806
49807     COND_TOOLKIT_="#"
49808     if test "x$TOOLKIT" = "x" ; then
49809         COND_TOOLKIT_=""
49810     fi
49811
49812     COND_TOOLKIT_COCOA="#"
49813     if test "x$TOOLKIT" = "xCOCOA" ; then
49814         COND_TOOLKIT_COCOA=""
49815     fi
49816
49817     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49818     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49819         COND_TOOLKIT_COCOA_USE_GUI_1=""
49820     fi
49821
49822     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49823     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49824         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49825     fi
49826
49827     COND_TOOLKIT_DFB="#"
49828     if test "x$TOOLKIT" = "xDFB" ; then
49829         COND_TOOLKIT_DFB=""
49830     fi
49831
49832     COND_TOOLKIT_DFB_USE_GUI_1="#"
49833     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49834         COND_TOOLKIT_DFB_USE_GUI_1=""
49835     fi
49836
49837     COND_TOOLKIT_GTK="#"
49838     if test "x$TOOLKIT" = "xGTK" ; then
49839         COND_TOOLKIT_GTK=""
49840     fi
49841
49842     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49843     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49844         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49845     fi
49846
49847     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49848     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49849         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49850     fi
49851
49852     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49853     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49854         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49855     fi
49856
49857     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49858     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49859         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49860     fi
49861
49862     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
49863     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
49864         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
49865     fi
49866
49867     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49868     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49869         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49870     fi
49871
49872     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49873     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49874         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49875     fi
49876
49877     COND_TOOLKIT_GTK_USE_GUI_1="#"
49878     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49879         COND_TOOLKIT_GTK_USE_GUI_1=""
49880     fi
49881
49882     COND_TOOLKIT_MAC="#"
49883     if test "x$TOOLKIT" = "xMAC" ; then
49884         COND_TOOLKIT_MAC=""
49885     fi
49886
49887     COND_TOOLKIT_MAC_USE_GUI_1="#"
49888     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49889         COND_TOOLKIT_MAC_USE_GUI_1=""
49890     fi
49891
49892     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49893     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49894         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49895     fi
49896
49897     COND_TOOLKIT_MGL="#"
49898     if test "x$TOOLKIT" = "xMGL" ; then
49899         COND_TOOLKIT_MGL=""
49900     fi
49901
49902     COND_TOOLKIT_MGL_USE_GUI_1="#"
49903     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49904         COND_TOOLKIT_MGL_USE_GUI_1=""
49905     fi
49906
49907     COND_TOOLKIT_MOTIF="#"
49908     if test "x$TOOLKIT" = "xMOTIF" ; then
49909         COND_TOOLKIT_MOTIF=""
49910     fi
49911
49912     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49913     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49914         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49915     fi
49916
49917     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49918     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49919         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49920     fi
49921
49922     COND_TOOLKIT_MSW="#"
49923     if test "x$TOOLKIT" = "xMSW" ; then
49924         COND_TOOLKIT_MSW=""
49925     fi
49926
49927     COND_TOOLKIT_MSW_USE_GUI_1="#"
49928     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49929         COND_TOOLKIT_MSW_USE_GUI_1=""
49930     fi
49931
49932     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49933     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49934         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49935     fi
49936
49937     COND_TOOLKIT_MSW_WXUNIV_0="#"
49938     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49939         COND_TOOLKIT_MSW_WXUNIV_0=""
49940     fi
49941
49942     COND_TOOLKIT_PM="#"
49943     if test "x$TOOLKIT" = "xPM" ; then
49944         COND_TOOLKIT_PM=""
49945     fi
49946
49947     COND_TOOLKIT_PM_USE_GUI_1="#"
49948     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49949         COND_TOOLKIT_PM_USE_GUI_1=""
49950     fi
49951
49952     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49953     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49954         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49955     fi
49956
49957     COND_TOOLKIT_WINCE="#"
49958     if test "x$TOOLKIT" = "xWINCE" ; then
49959         COND_TOOLKIT_WINCE=""
49960     fi
49961
49962     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49963     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49964         COND_TOOLKIT_WINCE_USE_GUI_1=""
49965     fi
49966
49967     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49968     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49969         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49970     fi
49971
49972     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49973     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49974         COND_TOOLKIT_WINCE_WXUNIV_0=""
49975     fi
49976
49977     COND_TOOLKIT_X11="#"
49978     if test "x$TOOLKIT" = "xX11" ; then
49979         COND_TOOLKIT_X11=""
49980     fi
49981
49982     COND_TOOLKIT_X11_USE_GUI_1="#"
49983     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49984         COND_TOOLKIT_X11_USE_GUI_1=""
49985     fi
49986
49987     COND_UNICODE_1="#"
49988     if test "x$UNICODE" = "x1" ; then
49989         COND_UNICODE_1=""
49990     fi
49991
49992     COND_USE_EXCEPTIONS_0="#"
49993     if test "x$USE_EXCEPTIONS" = "x0" ; then
49994         COND_USE_EXCEPTIONS_0=""
49995     fi
49996
49997     COND_USE_EXCEPTIONS_1="#"
49998     if test "x$USE_EXCEPTIONS" = "x1" ; then
49999         COND_USE_EXCEPTIONS_1=""
50000     fi
50001
50002     COND_USE_GUI_0="#"
50003     if test "x$USE_GUI" = "x0" ; then
50004         COND_USE_GUI_0=""
50005     fi
50006
50007     COND_USE_GUI_1="#"
50008     if test "x$USE_GUI" = "x1" ; then
50009         COND_USE_GUI_1=""
50010     fi
50011
50012     COND_USE_GUI_1_USE_OPENGL_1="#"
50013     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50014         COND_USE_GUI_1_USE_OPENGL_1=""
50015     fi
50016
50017     COND_USE_GUI_1_WXUNIV_0="#"
50018     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50019         COND_USE_GUI_1_WXUNIV_0=""
50020     fi
50021
50022     COND_USE_GUI_1_WXUNIV_1="#"
50023     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50024         COND_USE_GUI_1_WXUNIV_1=""
50025     fi
50026
50027     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50028     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50029         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50030     fi
50031
50032     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50033     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50034         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50035     fi
50036
50037     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50038     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50039         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50040     fi
50041
50042     COND_USE_OPENGL_1="#"
50043     if test "x$USE_OPENGL" = "x1" ; then
50044         COND_USE_OPENGL_1=""
50045     fi
50046
50047     COND_USE_PCH_1="#"
50048     if test "x$USE_PCH" = "x1" ; then
50049         COND_USE_PCH_1=""
50050     fi
50051
50052     COND_USE_PLUGINS_0="#"
50053     if test "x$USE_PLUGINS" = "x0" ; then
50054         COND_USE_PLUGINS_0=""
50055     fi
50056
50057     COND_USE_RTTI_0="#"
50058     if test "x$USE_RTTI" = "x0" ; then
50059         COND_USE_RTTI_0=""
50060     fi
50061
50062     COND_USE_RTTI_1="#"
50063     if test "x$USE_RTTI" = "x1" ; then
50064         COND_USE_RTTI_1=""
50065     fi
50066
50067     COND_USE_SOSYMLINKS_1="#"
50068     if test "x$USE_SOSYMLINKS" = "x1" ; then
50069         COND_USE_SOSYMLINKS_1=""
50070     fi
50071
50072     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50073     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50074         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50075     fi
50076
50077     COND_USE_SOVERLINUX_1="#"
50078     if test "x$USE_SOVERLINUX" = "x1" ; then
50079         COND_USE_SOVERLINUX_1=""
50080     fi
50081
50082     COND_USE_SOVERSION_0="#"
50083     if test "x$USE_SOVERSION" = "x0" ; then
50084         COND_USE_SOVERSION_0=""
50085     fi
50086
50087     COND_USE_SOVERSOLARIS_1="#"
50088     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50089         COND_USE_SOVERSOLARIS_1=""
50090     fi
50091
50092     COND_USE_STC_1="#"
50093     if test "x$USE_STC" = "x1" ; then
50094         COND_USE_STC_1=""
50095     fi
50096
50097     COND_USE_THREADS_0="#"
50098     if test "x$USE_THREADS" = "x0" ; then
50099         COND_USE_THREADS_0=""
50100     fi
50101
50102     COND_USE_THREADS_1="#"
50103     if test "x$USE_THREADS" = "x1" ; then
50104         COND_USE_THREADS_1=""
50105     fi
50106
50107     COND_USE_XRC_1="#"
50108     if test "x$USE_XRC" = "x1" ; then
50109         COND_USE_XRC_1=""
50110     fi
50111
50112     COND_WINDOWS_IMPLIB_1="#"
50113     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50114         COND_WINDOWS_IMPLIB_1=""
50115     fi
50116
50117     COND_WITH_PLUGIN_SDL_1="#"
50118     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50119         COND_WITH_PLUGIN_SDL_1=""
50120     fi
50121
50122     COND_WXUNIV_0="#"
50123     if test "x$WXUNIV" = "x0" ; then
50124         COND_WXUNIV_0=""
50125     fi
50126
50127     COND_WXUNIV_1="#"
50128     if test "x$WXUNIV" = "x1" ; then
50129         COND_WXUNIV_1=""
50130     fi
50131
50132     COND_WXUSE_EXPAT_BUILTIN="#"
50133     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50134         COND_WXUSE_EXPAT_BUILTIN=""
50135     fi
50136
50137     COND_WXUSE_LIBJPEG_BUILTIN="#"
50138     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50139         COND_WXUSE_LIBJPEG_BUILTIN=""
50140     fi
50141
50142     COND_WXUSE_LIBPNG_BUILTIN="#"
50143     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50144         COND_WXUSE_LIBPNG_BUILTIN=""
50145     fi
50146
50147     COND_WXUSE_LIBTIFF_BUILTIN="#"
50148     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50149         COND_WXUSE_LIBTIFF_BUILTIN=""
50150     fi
50151
50152     COND_WXUSE_REGEX_BUILTIN="#"
50153     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50154         COND_WXUSE_REGEX_BUILTIN=""
50155     fi
50156
50157     COND_WXUSE_ZLIB_BUILTIN="#"
50158     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50159         COND_WXUSE_ZLIB_BUILTIN=""
50160     fi
50161
50162
50163
50164     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50165         { { 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
50166 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;}
50167    { (exit 1); exit 1; }; }
50168     fi
50169
50170     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50171         { { 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
50172 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;}
50173    { (exit 1); exit 1; }; }
50174     fi
50175
50176
50177 case ${INSTALL} in
50178   /* ) # Absolute
50179      ;;
50180   ?:* ) # Drive letter, considered as absolute.
50181      ;;
50182   *)
50183      INSTALL=`pwd`/${INSTALL} ;;
50184 esac
50185
50186 if test "$wxUSE_GUI" = "yes"; then
50187
50188 if test "$wxUSE_MSW" = 1 ; then
50189     if test "x$WINDRES" = "x"; then
50190         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50191 echo "$as_me: error: Required windres program not found" >&2;}
50192    { (exit 1); exit 1; }; }
50193     fi
50194
50195     RESCOMP="$WINDRES"
50196 fi
50197
50198 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50199             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50200     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50201
50202         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50203
50204     # Extract the first word of "DeRez", so it can be a program name with args.
50205 set dummy DeRez; ac_word=$2
50206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50208 if test "${ac_cv_prog_DEREZ+set}" = set; then
50209   echo $ECHO_N "(cached) $ECHO_C" >&6
50210 else
50211   if test -n "$DEREZ"; then
50212   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50213 else
50214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50215 for as_dir in $PATH
50216 do
50217   IFS=$as_save_IFS
50218   test -z "$as_dir" && as_dir=.
50219   for ac_exec_ext in '' $ac_executable_extensions; do
50220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50221     ac_cv_prog_DEREZ="DeRez"
50222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50223     break 2
50224   fi
50225 done
50226 done
50227 IFS=$as_save_IFS
50228
50229   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50230 fi
50231 fi
50232 DEREZ=$ac_cv_prog_DEREZ
50233 if test -n "$DEREZ"; then
50234   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50235 echo "${ECHO_T}$DEREZ" >&6; }
50236 else
50237   { echo "$as_me:$LINENO: result: no" >&5
50238 echo "${ECHO_T}no" >&6; }
50239 fi
50240
50241
50242
50243     MACSETFILE="\$(SETFILE)"
50244
50245             if test "$wxUSE_MAC" = 1; then
50246         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50247         RESCOMP="$REZ"
50248         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50249     else
50250         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50251         RESCOMP="cat /dev/null \| $REZ"
50252         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50253     fi
50254
50255 else
50256         MACSETFILE="@true"
50257
50258     if test "$wxUSE_PM" = 1; then
50259         RESCOMP="emxbind"
50260         WXCONFIG_RESFLAGS="-ep"
50261
50262                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50263     else
50264         POSTLINK_COMMAND="@true"
50265     fi
50266 fi
50267
50268 fi
50269
50270
50271 if test $GCC_PCH = 1
50272 then
50273     if test "$wx_cv_gcc_pch_bug" = yes; then
50274         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50275 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50276         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50277 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50278         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50279 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50280     fi
50281
50282     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50283     # the headers that benefit from precompilation are mostly C++ headers.
50284     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50285     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50286     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50287 fi
50288
50289
50290 if test "$wxUSE_MAC" = 1 ; then
50291     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50292         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50293         mv temp bk-deps
50294         chmod +x bk-deps
50295     fi
50296 fi
50297
50298 if test "$wxUSE_SHARED" = "yes"; then
50299                 case "${host}" in
50300       *-pc-os2_emx | *-pc-os2-emx )
50301         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50302         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50303         cp -p ${srcdir}/src/os2/dllnames.sh .
50304         cp -p ${srcdir}/src/os2/dllar.sh .
50305       ;;
50306     esac
50307 fi
50308 if test "$wxUSE_OMF" = "yes"; then
50309     case "${host}" in
50310       *-pc-os2_emx | *-pc-os2-emx )
50311         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50312         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50313         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50314       ;;
50315     esac
50316 fi
50317
50318 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50319
50320
50321 case "${host}" in
50322     *-*-solaris2* )
50323                         if test "$GCC" = yes; then
50324             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50325             LIBS=`echo $LIBS | sed 's/-mt//'`
50326             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50327         fi
50328         ;;
50329
50330     *-*-linux* )
50331                         if test "x$SUNCXX" = xyes; then
50332             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50333             LIBS=`echo $LIBS | sed 's/-pthread//'`
50334             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50335         fi
50336         ;;
50337 esac
50338
50339 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50340 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50341
50342 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50404 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50405 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50406 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50407   echo $ECHO_N "(cached) $ECHO_C" >&6
50408 else
50409   cat >conftest.make <<\_ACEOF
50410 SHELL = /bin/sh
50411 all:
50412         @echo '@@@%%%=$(MAKE)=@@@%%%'
50413 _ACEOF
50414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50416   *@@@%%%=?*=@@@%%%*)
50417     eval ac_cv_prog_make_${ac_make}_set=yes;;
50418   *)
50419     eval ac_cv_prog_make_${ac_make}_set=no;;
50420 esac
50421 rm -f conftest.make
50422 fi
50423 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50424   { echo "$as_me:$LINENO: result: yes" >&5
50425 echo "${ECHO_T}yes" >&6; }
50426   SET_MAKE=
50427 else
50428   { echo "$as_me:$LINENO: result: no" >&5
50429 echo "${ECHO_T}no" >&6; }
50430   SET_MAKE="MAKE=${MAKE-make}"
50431 fi
50432
50433
50434
50435 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50436
50437
50438 if test "$USE_WIN32" = 1; then
50439     ac_config_commands="$ac_config_commands
50440             rcdefs.h
50441         "
50442
50443 fi
50444
50445 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50446
50447
50448 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50449
50450
50451 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50452
50453
50454 if test "$wx_cv_version_script" = "yes"; then
50455     ac_config_files="$ac_config_files version-script"
50456
50457 fi
50458 ac_config_files="$ac_config_files Makefile"
50459
50460
50461 ac_config_commands="$ac_config_commands wx-config"
50462
50463
50464
50465 if test "$wxWITH_SUBDIRS" != "no"; then
50466 if test "$wxUSE_GUI" = "yes"; then
50467     SUBDIRS="samples demos utils"
50468 else
50469             SUBDIRS="samples utils"
50470 fi
50471
50472
50473
50474 # Check whether --with-cppunit-prefix was given.
50475 if test "${with_cppunit_prefix+set}" = set; then
50476   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50477 else
50478   cppunit_config_prefix=""
50479 fi
50480
50481
50482 # Check whether --with-cppunit-exec-prefix was given.
50483 if test "${with_cppunit_exec_prefix+set}" = set; then
50484   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50485 else
50486   cppunit_config_exec_prefix=""
50487 fi
50488
50489
50490   if test x$cppunit_config_exec_prefix != x ; then
50491      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50492      if test x${CPPUNIT_CONFIG+set} != xset ; then
50493         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50494      fi
50495   fi
50496   if test x$cppunit_config_prefix != x ; then
50497      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50498      if test x${CPPUNIT_CONFIG+set} != xset ; then
50499         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50500      fi
50501   fi
50502
50503   # Extract the first word of "cppunit-config", so it can be a program name with args.
50504 set dummy cppunit-config; ac_word=$2
50505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50507 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50508   echo $ECHO_N "(cached) $ECHO_C" >&6
50509 else
50510   case $CPPUNIT_CONFIG in
50511   [\\/]* | ?:[\\/]*)
50512   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50513   ;;
50514   *)
50515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50516 for as_dir in $PATH
50517 do
50518   IFS=$as_save_IFS
50519   test -z "$as_dir" && as_dir=.
50520   for ac_exec_ext in '' $ac_executable_extensions; do
50521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50522     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50524     break 2
50525   fi
50526 done
50527 done
50528 IFS=$as_save_IFS
50529
50530   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50531   ;;
50532 esac
50533 fi
50534 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50535 if test -n "$CPPUNIT_CONFIG"; then
50536   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50537 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50538 else
50539   { echo "$as_me:$LINENO: result: no" >&5
50540 echo "${ECHO_T}no" >&6; }
50541 fi
50542
50543
50544   cppunit_version_min=1.8.0
50545
50546   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50547 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50548   no_cppunit=""
50549   if test "$CPPUNIT_CONFIG" = "no" ; then
50550     { echo "$as_me:$LINENO: result: no" >&5
50551 echo "${ECHO_T}no" >&6; }
50552     no_cppunit=yes
50553   else
50554     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50555     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50556     cppunit_version=`$CPPUNIT_CONFIG --version`
50557
50558     cppunit_major_version=`echo $cppunit_version | \
50559            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50560     cppunit_minor_version=`echo $cppunit_version | \
50561            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50562     cppunit_micro_version=`echo $cppunit_version | \
50563            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50564
50565     cppunit_major_min=`echo $cppunit_version_min | \
50566            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50567     cppunit_minor_min=`echo $cppunit_version_min | \
50568            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50569     cppunit_micro_min=`echo $cppunit_version_min | \
50570            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50571
50572     cppunit_version_proper=`expr \
50573         $cppunit_major_version \> $cppunit_major_min \| \
50574         $cppunit_major_version \= $cppunit_major_min \& \
50575         $cppunit_minor_version \> $cppunit_minor_min \| \
50576         $cppunit_major_version \= $cppunit_major_min \& \
50577         $cppunit_minor_version \= $cppunit_minor_min \& \
50578         $cppunit_micro_version \>= $cppunit_micro_min `
50579
50580     if test "$cppunit_version_proper" = "1" ; then
50581       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50582 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50583     else
50584       { echo "$as_me:$LINENO: result: no" >&5
50585 echo "${ECHO_T}no" >&6; }
50586       no_cppunit=yes
50587     fi
50588   fi
50589
50590   if test "x$no_cppunit" = x ; then
50591      SUBDIRS="$SUBDIRS tests"
50592   else
50593      CPPUNIT_CFLAGS=""
50594      CPPUNIT_LIBS=""
50595      :
50596   fi
50597
50598
50599
50600
50601
50602 for subdir in $SUBDIRS; do
50603     if test -d ${srcdir}/${subdir} ; then
50604         if test "$wxUSE_GUI" = "yes"; then
50605             if test ${subdir} = "samples"; then
50606                                                 makefiles="samples/Makefile.in $makefiles"
50607                 for sample in $SAMPLES_SUBDIRS; do
50608                     if test -d $srcdir/samples/$sample; then
50609                         makefiles="samples/$sample/Makefile.in $makefiles"
50610                     fi
50611                 done
50612             else
50613                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50614                 eval "disabled=\$$disabled_var"
50615                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50616                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50617             fi
50618         else
50619                                     if test ${subdir} = "samples"; then
50620                                                 makefiles="samples/Makefile.in $makefiles"
50621                 for sample in `echo $SAMPLES_SUBDIRS`; do
50622                     if test -d $srcdir/samples/$sample; then
50623                         makefiles="samples/$sample/Makefile.in $makefiles"
50624                     fi
50625                 done
50626             elif test ${subdir} = "utils"; then
50627                 makefiles=""
50628                 for util in ifacecheck ; do
50629                     if test -d $srcdir/utils/$util ; then
50630                         makefiles="utils/$util/src/Makefile.in \
50631                                    $makefiles"
50632                     fi
50633                 done
50634             else
50635                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50636             fi
50637         fi
50638
50639         for mkin in $makefiles ; do
50640             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50641             ac_config_files="$ac_config_files $mk"
50642
50643         done
50644     fi
50645 done
50646 fi
50647 cat >confcache <<\_ACEOF
50648 # This file is a shell script that caches the results of configure
50649 # tests run on this system so they can be shared between configure
50650 # scripts and configure runs, see configure's option --config-cache.
50651 # It is not useful on other systems.  If it contains results you don't
50652 # want to keep, you may remove or edit it.
50653 #
50654 # config.status only pays attention to the cache file if you give it
50655 # the --recheck option to rerun configure.
50656 #
50657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50659 # following values.
50660
50661 _ACEOF
50662
50663 # The following way of writing the cache mishandles newlines in values,
50664 # but we know of no workaround that is simple, portable, and efficient.
50665 # So, we kill variables containing newlines.
50666 # Ultrix sh set writes to stderr and can't be redirected directly,
50667 # and sets the high bit in the cache file unless we assign to the vars.
50668 (
50669   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50670     eval ac_val=\$$ac_var
50671     case $ac_val in #(
50672     *${as_nl}*)
50673       case $ac_var in #(
50674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50676       esac
50677       case $ac_var in #(
50678       _ | IFS | as_nl) ;; #(
50679       *) $as_unset $ac_var ;;
50680       esac ;;
50681     esac
50682   done
50683
50684   (set) 2>&1 |
50685     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50686     *${as_nl}ac_space=\ *)
50687       # `set' does not quote correctly, so add quotes (double-quote
50688       # substitution turns \\\\ into \\, and sed turns \\ into \).
50689       sed -n \
50690         "s/'/'\\\\''/g;
50691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50692       ;; #(
50693     *)
50694       # `set' quotes correctly as required by POSIX, so do not add quotes.
50695       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50696       ;;
50697     esac |
50698     sort
50699 ) |
50700   sed '
50701      /^ac_cv_env_/b end
50702      t clear
50703      :clear
50704      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50705      t end
50706      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50707      :end' >>confcache
50708 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50709   if test -w "$cache_file"; then
50710     test "x$cache_file" != "x/dev/null" &&
50711       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50712 echo "$as_me: updating cache $cache_file" >&6;}
50713     cat confcache >$cache_file
50714   else
50715     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50716 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50717   fi
50718 fi
50719 rm -f confcache
50720
50721 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50722 # Let make expand exec_prefix.
50723 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50724
50725 DEFS=-DHAVE_CONFIG_H
50726
50727 ac_libobjs=
50728 ac_ltlibobjs=
50729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50730   # 1. Remove the extension, and $U if already installed.
50731   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50732   ac_i=`echo "$ac_i" | sed "$ac_script"`
50733   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50734   #    will be set to the directory where LIBOBJS objects are built.
50735   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50736   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50737 done
50738 LIBOBJS=$ac_libobjs
50739
50740 LTLIBOBJS=$ac_ltlibobjs
50741
50742
50743
50744 : ${CONFIG_STATUS=./config.status}
50745 ac_clean_files_save=$ac_clean_files
50746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50749 cat >$CONFIG_STATUS <<_ACEOF
50750 #! $SHELL
50751 # Generated by $as_me.
50752 # Run this file to recreate the current configuration.
50753 # Compiler output produced by configure, useful for debugging
50754 # configure, is in config.log if it exists.
50755
50756 debug=false
50757 ac_cs_recheck=false
50758 ac_cs_silent=false
50759 SHELL=\${CONFIG_SHELL-$SHELL}
50760 _ACEOF
50761
50762 cat >>$CONFIG_STATUS <<\_ACEOF
50763 ## --------------------- ##
50764 ## M4sh Initialization.  ##
50765 ## --------------------- ##
50766
50767 # Be more Bourne compatible
50768 DUALCASE=1; export DUALCASE # for MKS sh
50769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50770   emulate sh
50771   NULLCMD=:
50772   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50773   # is contrary to our usage.  Disable this feature.
50774   alias -g '${1+"$@"}'='"$@"'
50775   setopt NO_GLOB_SUBST
50776 else
50777   case `(set -o) 2>/dev/null` in
50778   *posix*) set -o posix ;;
50779 esac
50780
50781 fi
50782
50783
50784
50785
50786 # PATH needs CR
50787 # Avoid depending upon Character Ranges.
50788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50791 as_cr_digits='0123456789'
50792 as_cr_alnum=$as_cr_Letters$as_cr_digits
50793
50794 # The user is always right.
50795 if test "${PATH_SEPARATOR+set}" != set; then
50796   echo "#! /bin/sh" >conf$$.sh
50797   echo  "exit 0"   >>conf$$.sh
50798   chmod +x conf$$.sh
50799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50800     PATH_SEPARATOR=';'
50801   else
50802     PATH_SEPARATOR=:
50803   fi
50804   rm -f conf$$.sh
50805 fi
50806
50807 # Support unset when possible.
50808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50809   as_unset=unset
50810 else
50811   as_unset=false
50812 fi
50813
50814
50815 # IFS
50816 # We need space, tab and new line, in precisely that order.  Quoting is
50817 # there to prevent editors from complaining about space-tab.
50818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50819 # splitting by setting IFS to empty value.)
50820 as_nl='
50821 '
50822 IFS=" ""        $as_nl"
50823
50824 # Find who we are.  Look in the path if we contain no directory separator.
50825 case $0 in
50826   *[\\/]* ) as_myself=$0 ;;
50827   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50828 for as_dir in $PATH
50829 do
50830   IFS=$as_save_IFS
50831   test -z "$as_dir" && as_dir=.
50832   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50833 done
50834 IFS=$as_save_IFS
50835
50836      ;;
50837 esac
50838 # We did not find ourselves, most probably we were run as `sh COMMAND'
50839 # in which case we are not to be found in the path.
50840 if test "x$as_myself" = x; then
50841   as_myself=$0
50842 fi
50843 if test ! -f "$as_myself"; then
50844   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50845   { (exit 1); exit 1; }
50846 fi
50847
50848 # Work around bugs in pre-3.0 UWIN ksh.
50849 for as_var in ENV MAIL MAILPATH
50850 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50851 done
50852 PS1='$ '
50853 PS2='> '
50854 PS4='+ '
50855
50856 # NLS nuisances.
50857 for as_var in \
50858   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50859   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50860   LC_TELEPHONE LC_TIME
50861 do
50862   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50863     eval $as_var=C; export $as_var
50864   else
50865     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50866   fi
50867 done
50868
50869 # Required to use basename.
50870 if expr a : '\(a\)' >/dev/null 2>&1 &&
50871    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50872   as_expr=expr
50873 else
50874   as_expr=false
50875 fi
50876
50877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50878   as_basename=basename
50879 else
50880   as_basename=false
50881 fi
50882
50883
50884 # Name of the executable.
50885 as_me=`$as_basename -- "$0" ||
50886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50887          X"$0" : 'X\(//\)$' \| \
50888          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50889 echo X/"$0" |
50890     sed '/^.*\/\([^/][^/]*\)\/*$/{
50891             s//\1/
50892             q
50893           }
50894           /^X\/\(\/\/\)$/{
50895             s//\1/
50896             q
50897           }
50898           /^X\/\(\/\).*/{
50899             s//\1/
50900             q
50901           }
50902           s/.*/./; q'`
50903
50904 # CDPATH.
50905 $as_unset CDPATH
50906
50907
50908
50909   as_lineno_1=$LINENO
50910   as_lineno_2=$LINENO
50911   test "x$as_lineno_1" != "x$as_lineno_2" &&
50912   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50913
50914   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50915   # uniformly replaced by the line number.  The first 'sed' inserts a
50916   # line-number line after each line using $LINENO; the second 'sed'
50917   # does the real work.  The second script uses 'N' to pair each
50918   # line-number line with the line containing $LINENO, and appends
50919   # trailing '-' during substitution so that $LINENO is not a special
50920   # case at line end.
50921   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50922   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50923   # E. McMahon (1931-1989) for sed's syntax.  :-)
50924   sed -n '
50925     p
50926     /[$]LINENO/=
50927   ' <$as_myself |
50928     sed '
50929       s/[$]LINENO.*/&-/
50930       t lineno
50931       b
50932       :lineno
50933       N
50934       :loop
50935       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50936       t loop
50937       s/-\n.*//
50938     ' >$as_me.lineno &&
50939   chmod +x "$as_me.lineno" ||
50940     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50941    { (exit 1); exit 1; }; }
50942
50943   # Don't try to exec as it changes $[0], causing all sort of problems
50944   # (the dirname of $[0] is not the place where we might find the
50945   # original and so on.  Autoconf is especially sensitive to this).
50946   . "./$as_me.lineno"
50947   # Exit status is that of the last command.
50948   exit
50949 }
50950
50951
50952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50953   as_dirname=dirname
50954 else
50955   as_dirname=false
50956 fi
50957
50958 ECHO_C= ECHO_N= ECHO_T=
50959 case `echo -n x` in
50960 -n*)
50961   case `echo 'x\c'` in
50962   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50963   *)   ECHO_C='\c';;
50964   esac;;
50965 *)
50966   ECHO_N='-n';;
50967 esac
50968
50969 if expr a : '\(a\)' >/dev/null 2>&1 &&
50970    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50971   as_expr=expr
50972 else
50973   as_expr=false
50974 fi
50975
50976 rm -f conf$$ conf$$.exe conf$$.file
50977 if test -d conf$$.dir; then
50978   rm -f conf$$.dir/conf$$.file
50979 else
50980   rm -f conf$$.dir
50981   mkdir conf$$.dir
50982 fi
50983 echo >conf$$.file
50984 if ln -s conf$$.file conf$$ 2>/dev/null; then
50985   as_ln_s='ln -s'
50986   # ... but there are two gotchas:
50987   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50988   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50989   # In both cases, we have to default to `cp -p'.
50990   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50991     as_ln_s='cp -p'
50992 elif ln conf$$.file conf$$ 2>/dev/null; then
50993   as_ln_s=ln
50994 else
50995   as_ln_s='cp -p'
50996 fi
50997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50998 rmdir conf$$.dir 2>/dev/null
50999
51000 if mkdir -p . 2>/dev/null; then
51001   as_mkdir_p=:
51002 else
51003   test -d ./-p && rmdir ./-p
51004   as_mkdir_p=false
51005 fi
51006
51007 if test -x / >/dev/null 2>&1; then
51008   as_test_x='test -x'
51009 else
51010   if ls -dL / >/dev/null 2>&1; then
51011     as_ls_L_option=L
51012   else
51013     as_ls_L_option=
51014   fi
51015   as_test_x='
51016     eval sh -c '\''
51017       if test -d "$1"; then
51018         test -d "$1/.";
51019       else
51020         case $1 in
51021         -*)set "./$1";;
51022         esac;
51023         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51024         ???[sx]*):;;*)false;;esac;fi
51025     '\'' sh
51026   '
51027 fi
51028 as_executable_p=$as_test_x
51029
51030 # Sed expression to map a string onto a valid CPP name.
51031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51032
51033 # Sed expression to map a string onto a valid variable name.
51034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51035
51036
51037 exec 6>&1
51038
51039 # Save the log message, to keep $[0] and so on meaningful, and to
51040 # report actual input values of CONFIG_FILES etc. instead of their
51041 # values after options handling.
51042 ac_log="
51043 This file was extended by wxWidgets $as_me 2.9.0, which was
51044 generated by GNU Autoconf 2.61.  Invocation command line was
51045
51046   CONFIG_FILES    = $CONFIG_FILES
51047   CONFIG_HEADERS  = $CONFIG_HEADERS
51048   CONFIG_LINKS    = $CONFIG_LINKS
51049   CONFIG_COMMANDS = $CONFIG_COMMANDS
51050   $ $0 $@
51051
51052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51053 "
51054
51055 _ACEOF
51056
51057 cat >>$CONFIG_STATUS <<_ACEOF
51058 # Files that config.status was made for.
51059 config_files="$ac_config_files"
51060 config_headers="$ac_config_headers"
51061 config_commands="$ac_config_commands"
51062
51063 _ACEOF
51064
51065 cat >>$CONFIG_STATUS <<\_ACEOF
51066 ac_cs_usage="\
51067 \`$as_me' instantiates files from templates according to the
51068 current configuration.
51069
51070 Usage: $0 [OPTIONS] [FILE]...
51071
51072   -h, --help       print this help, then exit
51073   -V, --version    print version number and configuration settings, then exit
51074   -q, --quiet      do not print progress messages
51075   -d, --debug      don't remove temporary files
51076       --recheck    update $as_me by reconfiguring in the same conditions
51077   --file=FILE[:TEMPLATE]
51078                    instantiate the configuration file FILE
51079   --header=FILE[:TEMPLATE]
51080                    instantiate the configuration header FILE
51081
51082 Configuration files:
51083 $config_files
51084
51085 Configuration headers:
51086 $config_headers
51087
51088 Configuration commands:
51089 $config_commands
51090
51091 Report bugs to <bug-autoconf@gnu.org>."
51092
51093 _ACEOF
51094 cat >>$CONFIG_STATUS <<_ACEOF
51095 ac_cs_version="\\
51096 wxWidgets config.status 2.9.0
51097 configured by $0, generated by GNU Autoconf 2.61,
51098   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51099
51100 Copyright (C) 2006 Free Software Foundation, Inc.
51101 This config.status script is free software; the Free Software Foundation
51102 gives unlimited permission to copy, distribute and modify it."
51103
51104 ac_pwd='$ac_pwd'
51105 srcdir='$srcdir'
51106 INSTALL='$INSTALL'
51107 _ACEOF
51108
51109 cat >>$CONFIG_STATUS <<\_ACEOF
51110 # If no file are specified by the user, then we need to provide default
51111 # value.  By we need to know if files were specified by the user.
51112 ac_need_defaults=:
51113 while test $# != 0
51114 do
51115   case $1 in
51116   --*=*)
51117     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51118     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51119     ac_shift=:
51120     ;;
51121   *)
51122     ac_option=$1
51123     ac_optarg=$2
51124     ac_shift=shift
51125     ;;
51126   esac
51127
51128   case $ac_option in
51129   # Handling of the options.
51130   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51131     ac_cs_recheck=: ;;
51132   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51133     echo "$ac_cs_version"; exit ;;
51134   --debug | --debu | --deb | --de | --d | -d )
51135     debug=: ;;
51136   --file | --fil | --fi | --f )
51137     $ac_shift
51138     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51139     ac_need_defaults=false;;
51140   --header | --heade | --head | --hea )
51141     $ac_shift
51142     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51143     ac_need_defaults=false;;
51144   --he | --h)
51145     # Conflict between --help and --header
51146     { echo "$as_me: error: ambiguous option: $1
51147 Try \`$0 --help' for more information." >&2
51148    { (exit 1); exit 1; }; };;
51149   --help | --hel | -h )
51150     echo "$ac_cs_usage"; exit ;;
51151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51152   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51153     ac_cs_silent=: ;;
51154
51155   # This is an error.
51156   -*) { echo "$as_me: error: unrecognized option: $1
51157 Try \`$0 --help' for more information." >&2
51158    { (exit 1); exit 1; }; } ;;
51159
51160   *) ac_config_targets="$ac_config_targets $1"
51161      ac_need_defaults=false ;;
51162
51163   esac
51164   shift
51165 done
51166
51167 ac_configure_extra_args=
51168
51169 if $ac_cs_silent; then
51170   exec 6>/dev/null
51171   ac_configure_extra_args="$ac_configure_extra_args --silent"
51172 fi
51173
51174 _ACEOF
51175 cat >>$CONFIG_STATUS <<_ACEOF
51176 if \$ac_cs_recheck; then
51177   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51178   CONFIG_SHELL=$SHELL
51179   export CONFIG_SHELL
51180   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51181 fi
51182
51183 _ACEOF
51184 cat >>$CONFIG_STATUS <<\_ACEOF
51185 exec 5>>config.log
51186 {
51187   echo
51188   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51189 ## Running $as_me. ##
51190 _ASBOX
51191   echo "$ac_log"
51192 } >&5
51193
51194 _ACEOF
51195 cat >>$CONFIG_STATUS <<_ACEOF
51196 #
51197 # INIT-COMMANDS
51198 #
51199
51200             CPP="$CPP"
51201             infile="$srcdir/include/wx/msw/genrcdefs.h"
51202             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51203
51204
51205  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51206  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51207  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51208                      LN_S="${LN_S}"
51209
51210
51211 _ACEOF
51212
51213 cat >>$CONFIG_STATUS <<\_ACEOF
51214
51215 # Handling of arguments.
51216 for ac_config_target in $ac_config_targets
51217 do
51218   case $ac_config_target in
51219     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51220     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51221     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51222     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51223     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51224     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51225     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51226     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51227     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51228
51229   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51231    { (exit 1); exit 1; }; };;
51232   esac
51233 done
51234
51235
51236 # If the user did not use the arguments to specify the items to instantiate,
51237 # then the envvar interface is used.  Set only those that are not.
51238 # We use the long form for the default assignment because of an extremely
51239 # bizarre bug on SunOS 4.1.3.
51240 if $ac_need_defaults; then
51241   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51242   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51243   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51244 fi
51245
51246 # Have a temporary directory for convenience.  Make it in the build tree
51247 # simply because there is no reason against having it here, and in addition,
51248 # creating and moving files from /tmp can sometimes cause problems.
51249 # Hook for its removal unless debugging.
51250 # Note that there is a small window in which the directory will not be cleaned:
51251 # after its creation but before its name has been assigned to `$tmp'.
51252 $debug ||
51253 {
51254   tmp=
51255   trap 'exit_status=$?
51256   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51257 ' 0
51258   trap '{ (exit 1); exit 1; }' 1 2 13 15
51259 }
51260 # Create a (secure) tmp directory for tmp files.
51261
51262 {
51263   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51264   test -n "$tmp" && test -d "$tmp"
51265 }  ||
51266 {
51267   tmp=./conf$$-$RANDOM
51268   (umask 077 && mkdir "$tmp")
51269 } ||
51270 {
51271    echo "$me: cannot create a temporary directory in ." >&2
51272    { (exit 1); exit 1; }
51273 }
51274
51275 #
51276 # Set up the sed scripts for CONFIG_FILES section.
51277 #
51278
51279 # No need to generate the scripts if there are no CONFIG_FILES.
51280 # This happens for instance when ./config.status config.h
51281 if test -n "$CONFIG_FILES"; then
51282
51283 _ACEOF
51284
51285
51286
51287 ac_delim='%!_!# '
51288 for ac_last_try in false false false false false :; do
51289   cat >conf$$subs.sed <<_ACEOF
51290 SHELL!$SHELL$ac_delim
51291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51297 exec_prefix!$exec_prefix$ac_delim
51298 prefix!$prefix$ac_delim
51299 program_transform_name!$program_transform_name$ac_delim
51300 bindir!$bindir$ac_delim
51301 sbindir!$sbindir$ac_delim
51302 libexecdir!$libexecdir$ac_delim
51303 datarootdir!$datarootdir$ac_delim
51304 datadir!$datadir$ac_delim
51305 sysconfdir!$sysconfdir$ac_delim
51306 sharedstatedir!$sharedstatedir$ac_delim
51307 localstatedir!$localstatedir$ac_delim
51308 includedir!$includedir$ac_delim
51309 oldincludedir!$oldincludedir$ac_delim
51310 docdir!$docdir$ac_delim
51311 infodir!$infodir$ac_delim
51312 htmldir!$htmldir$ac_delim
51313 dvidir!$dvidir$ac_delim
51314 pdfdir!$pdfdir$ac_delim
51315 psdir!$psdir$ac_delim
51316 libdir!$libdir$ac_delim
51317 localedir!$localedir$ac_delim
51318 mandir!$mandir$ac_delim
51319 DEFS!$DEFS$ac_delim
51320 ECHO_C!$ECHO_C$ac_delim
51321 ECHO_N!$ECHO_N$ac_delim
51322 ECHO_T!$ECHO_T$ac_delim
51323 LIBS!$LIBS$ac_delim
51324 build_alias!$build_alias$ac_delim
51325 host_alias!$host_alias$ac_delim
51326 target_alias!$target_alias$ac_delim
51327 build!$build$ac_delim
51328 build_cpu!$build_cpu$ac_delim
51329 build_vendor!$build_vendor$ac_delim
51330 build_os!$build_os$ac_delim
51331 host!$host$ac_delim
51332 host_cpu!$host_cpu$ac_delim
51333 host_vendor!$host_vendor$ac_delim
51334 host_os!$host_os$ac_delim
51335 target!$target$ac_delim
51336 target_cpu!$target_cpu$ac_delim
51337 target_vendor!$target_vendor$ac_delim
51338 target_os!$target_os$ac_delim
51339 wx_top_builddir!$wx_top_builddir$ac_delim
51340 CC!$CC$ac_delim
51341 CFLAGS!$CFLAGS$ac_delim
51342 LDFLAGS!$LDFLAGS$ac_delim
51343 CPPFLAGS!$CPPFLAGS$ac_delim
51344 ac_ct_CC!$ac_ct_CC$ac_delim
51345 EXEEXT!$EXEEXT$ac_delim
51346 OBJEXT!$OBJEXT$ac_delim
51347 CPP!$CPP$ac_delim
51348 GREP!$GREP$ac_delim
51349 EGREP!$EGREP$ac_delim
51350 CXX!$CXX$ac_delim
51351 CXXFLAGS!$CXXFLAGS$ac_delim
51352 ac_ct_CXX!$ac_ct_CXX$ac_delim
51353 AR!$AR$ac_delim
51354 subdirs!$subdirs$ac_delim
51355 PKG_CONFIG!$PKG_CONFIG$ac_delim
51356 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51357 GTK_LIBS!$GTK_LIBS$ac_delim
51358 GTK_CONFIG!$GTK_CONFIG$ac_delim
51359 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51360 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51361 XMKMF!$XMKMF$ac_delim
51362 X_CFLAGS!$X_CFLAGS$ac_delim
51363 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51364 X_LIBS!$X_LIBS$ac_delim
51365 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51366 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51367 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51368 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51369 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51370 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51371 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51372 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51373 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51374 LIBICONV!$LIBICONV$ac_delim
51375 SDL_CONFIG!$SDL_CONFIG$ac_delim
51376 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51377 SDL_LIBS!$SDL_LIBS$ac_delim
51378 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51379 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51380 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51381 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51382 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51383 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51384 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51385 HILDON_LIBS!$HILDON_LIBS$ac_delim
51386 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51387 _ACEOF
51388
51389   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51390     break
51391   elif $ac_last_try; then
51392     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51394    { (exit 1); exit 1; }; }
51395   else
51396     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51397   fi
51398 done
51399
51400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51401 if test -n "$ac_eof"; then
51402   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51403   ac_eof=`expr $ac_eof + 1`
51404 fi
51405
51406 cat >>$CONFIG_STATUS <<_ACEOF
51407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51409 _ACEOF
51410 sed '
51411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51412 s/^/s,@/; s/!/@,|#_!!_#|/
51413 :n
51414 t n
51415 s/'"$ac_delim"'$/,g/; t
51416 s/$/\\/; p
51417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51418 ' >>$CONFIG_STATUS <conf$$subs.sed
51419 rm -f conf$$subs.sed
51420 cat >>$CONFIG_STATUS <<_ACEOF
51421 CEOF$ac_eof
51422 _ACEOF
51423
51424
51425 ac_delim='%!_!# '
51426 for ac_last_try in false false false false false :; do
51427   cat >conf$$subs.sed <<_ACEOF
51428 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51429 GST_CFLAGS!$GST_CFLAGS$ac_delim
51430 GST_LIBS!$GST_LIBS$ac_delim
51431 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51432 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51433 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51434 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51435 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51436 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51437 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51438 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51439 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51440 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51441 VENDOR!$VENDOR$ac_delim
51442 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51443 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51444 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51445 WXUNIV!$WXUNIV$ac_delim
51446 MONOLITHIC!$MONOLITHIC$ac_delim
51447 USE_PLUGINS!$USE_PLUGINS$ac_delim
51448 CXXWARNINGS!$CXXWARNINGS$ac_delim
51449 EXTRALIBS!$EXTRALIBS$ac_delim
51450 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51451 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51452 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51453 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51454 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51455 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51456 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51457 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51458 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51459 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51460 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51461 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51462 UNICODE!$UNICODE$ac_delim
51463 BUILD!$BUILD$ac_delim
51464 DEBUG_INFO!$DEBUG_INFO$ac_delim
51465 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51466 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51467 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51468 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51469 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51470 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51471 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51472 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51473 RANLIB!$RANLIB$ac_delim
51474 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51475 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51476 INSTALL_DATA!$INSTALL_DATA$ac_delim
51477 LN_S!$LN_S$ac_delim
51478 SET_MAKE!$SET_MAKE$ac_delim
51479 MAKE_SET!$MAKE_SET$ac_delim
51480 AROPTIONS!$AROPTIONS$ac_delim
51481 STRIP!$STRIP$ac_delim
51482 NM!$NM$ac_delim
51483 INSTALL_DIR!$INSTALL_DIR$ac_delim
51484 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51485 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51486 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51487 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51488 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51489 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51490 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51491 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51492 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51493 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51494 SO_SUFFIX!$SO_SUFFIX$ac_delim
51495 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51496 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51497 LIBPREFIX!$LIBPREFIX$ac_delim
51498 LIBEXT!$LIBEXT$ac_delim
51499 DLLPREFIX!$DLLPREFIX$ac_delim
51500 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51501 dlldir!$dlldir$ac_delim
51502 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51503 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51504 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51505 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51506 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51507 PIC_FLAG!$PIC_FLAG$ac_delim
51508 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51509 USE_SOVERSION!$USE_SOVERSION$ac_delim
51510 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51511 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51512 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51513 USE_MACVERSION!$USE_MACVERSION$ac_delim
51514 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51515 SONAME_FLAG!$SONAME_FLAG$ac_delim
51516 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51517 BK_DEPS!$BK_DEPS$ac_delim
51518 WINDRES!$WINDRES$ac_delim
51519 REZ!$REZ$ac_delim
51520 SETFILE!$SETFILE$ac_delim
51521 GCC_PCH!$GCC_PCH$ac_delim
51522 ICC_PCH!$ICC_PCH$ac_delim
51523 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51524 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51525 _ACEOF
51526
51527   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51528     break
51529   elif $ac_last_try; then
51530     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51531 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51532    { (exit 1); exit 1; }; }
51533   else
51534     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51535   fi
51536 done
51537
51538 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51539 if test -n "$ac_eof"; then
51540   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51541   ac_eof=`expr $ac_eof + 1`
51542 fi
51543
51544 cat >>$CONFIG_STATUS <<_ACEOF
51545 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51547 _ACEOF
51548 sed '
51549 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51550 s/^/s,@/; s/!/@,|#_!!_#|/
51551 :n
51552 t n
51553 s/'"$ac_delim"'$/,g/; t
51554 s/$/\\/; p
51555 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51556 ' >>$CONFIG_STATUS <conf$$subs.sed
51557 rm -f conf$$subs.sed
51558 cat >>$CONFIG_STATUS <<_ACEOF
51559 CEOF$ac_eof
51560 _ACEOF
51561
51562
51563 ac_delim='%!_!# '
51564 for ac_last_try in false false false false false :; do
51565   cat >conf$$subs.sed <<_ACEOF
51566 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51567 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51568 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51569 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51570 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51571 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51572 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51573 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51574 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51575 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51576 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51577 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51578 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51579 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51580 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51581 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51582 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51583 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51584 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51585 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51586 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51587 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51588 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51589 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51590 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51591 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51592 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51593 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51594 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51595 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51596 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51597 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51598 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51599 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51600 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51601 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51602 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51603 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51604 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51605 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51606 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51607 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51608 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51609 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51610 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51611 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51612 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51613 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51614 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51615 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51616 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51617 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51618 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
51619 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
51620 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
51621 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
51622 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
51623 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
51624 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
51625 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51626 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51627 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51628 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51629 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51630 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51631 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51632 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51633 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51634 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51635 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51636 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51637 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51638 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51639 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51640 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51641 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51642 COND_SHARED_0!$COND_SHARED_0$ac_delim
51643 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51644 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51645 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51646 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51647 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51648 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51649 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51650 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51651 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51652 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51653 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51654 COND_SHARED_1!$COND_SHARED_1$ac_delim
51655 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51656 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51657 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51658 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51659 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51660 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51661 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51662 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51663 _ACEOF
51664
51665   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51666     break
51667   elif $ac_last_try; then
51668     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51669 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51670    { (exit 1); exit 1; }; }
51671   else
51672     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51673   fi
51674 done
51675
51676 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51677 if test -n "$ac_eof"; then
51678   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51679   ac_eof=`expr $ac_eof + 1`
51680 fi
51681
51682 cat >>$CONFIG_STATUS <<_ACEOF
51683 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51685 _ACEOF
51686 sed '
51687 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51688 s/^/s,@/; s/!/@,|#_!!_#|/
51689 :n
51690 t n
51691 s/'"$ac_delim"'$/,g/; t
51692 s/$/\\/; p
51693 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51694 ' >>$CONFIG_STATUS <conf$$subs.sed
51695 rm -f conf$$subs.sed
51696 cat >>$CONFIG_STATUS <<_ACEOF
51697 CEOF$ac_eof
51698 _ACEOF
51699
51700
51701 ac_delim='%!_!# '
51702 for ac_last_try in false false false false false :; do
51703   cat >conf$$subs.sed <<_ACEOF
51704 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51705 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51706 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51707 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51708 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51709 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51710 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51711 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51712 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51713 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
51714 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
51715 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51716 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51717 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51718 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51719 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51720 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51721 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51722 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51723 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51724 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51725 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51726 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51727 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51728 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51729 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51730 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51731 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51732 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51733 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51734 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51735 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51736 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51737 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51738 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51739 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51740 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51741 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51742 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51743 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51744 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
51745 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51746 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51747 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51748 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51749 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51750 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51751 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51752 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51753 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51754 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51755 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51756 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51757 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51758 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51759 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51760 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51761 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51762 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51763 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51764 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51765 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51766 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51767 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51768 DEREZ!$DEREZ$ac_delim
51769 SHARED!$SHARED$ac_delim
51770 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51771 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51772 USE_GUI!$USE_GUI$ac_delim
51773 AFMINSTALL!$AFMINSTALL$ac_delim
51774 WIN32INSTALL!$WIN32INSTALL$ac_delim
51775 TOOLKIT!$TOOLKIT$ac_delim
51776 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51777 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51778 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51779 cross_compiling!$cross_compiling$ac_delim
51780 WIDGET_SET!$WIDGET_SET$ac_delim
51781 WX_RELEASE!$WX_RELEASE$ac_delim
51782 WX_VERSION!$WX_VERSION$ac_delim
51783 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51784 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51785 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51786 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51787 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51788 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51789 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51790 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51791 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51792 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51793 GUIDIST!$GUIDIST$ac_delim
51794 DISTDIR!$DISTDIR$ac_delim
51795 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51796 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
51797 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
51798 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
51799 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
51800 RESCOMP!$RESCOMP$ac_delim
51801 _ACEOF
51802
51803   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51804     break
51805   elif $ac_last_try; then
51806     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51807 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51808    { (exit 1); exit 1; }; }
51809   else
51810     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51811   fi
51812 done
51813
51814 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51815 if test -n "$ac_eof"; then
51816   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51817   ac_eof=`expr $ac_eof + 1`
51818 fi
51819
51820 cat >>$CONFIG_STATUS <<_ACEOF
51821 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51823 _ACEOF
51824 sed '
51825 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51826 s/^/s,@/; s/!/@,|#_!!_#|/
51827 :n
51828 t n
51829 s/'"$ac_delim"'$/,g/; t
51830 s/$/\\/; p
51831 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51832 ' >>$CONFIG_STATUS <conf$$subs.sed
51833 rm -f conf$$subs.sed
51834 cat >>$CONFIG_STATUS <<_ACEOF
51835 CEOF$ac_eof
51836 _ACEOF
51837
51838
51839 ac_delim='%!_!# '
51840 for ac_last_try in false false false false false :; do
51841   cat >conf$$subs.sed <<_ACEOF
51842 RESFLAGS!$RESFLAGS$ac_delim
51843 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
51844 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
51845 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
51846 LIBWXMACRES!$LIBWXMACRES$ac_delim
51847 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
51848 MACSETFILE!$MACSETFILE$ac_delim
51849 GCC!$GCC$ac_delim
51850 DLLTOOL!$DLLTOOL$ac_delim
51851 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
51852 LIBOBJS!$LIBOBJS$ac_delim
51853 LTLIBOBJS!$LTLIBOBJS$ac_delim
51854 _ACEOF
51855
51856   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
51857     break
51858   elif $ac_last_try; then
51859     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51860 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51861    { (exit 1); exit 1; }; }
51862   else
51863     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51864   fi
51865 done
51866
51867 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51868 if test -n "$ac_eof"; then
51869   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51870   ac_eof=`expr $ac_eof + 1`
51871 fi
51872
51873 cat >>$CONFIG_STATUS <<_ACEOF
51874 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51876 _ACEOF
51877 sed '
51878 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51879 s/^/s,@/; s/!/@,|#_!!_#|/
51880 :n
51881 t n
51882 s/'"$ac_delim"'$/,g/; t
51883 s/$/\\/; p
51884 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51885 ' >>$CONFIG_STATUS <conf$$subs.sed
51886 rm -f conf$$subs.sed
51887 cat >>$CONFIG_STATUS <<_ACEOF
51888 :end
51889 s/|#_!!_#|//g
51890 CEOF$ac_eof
51891 _ACEOF
51892
51893
51894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51896 # trailing colons and then remove the whole line if VPATH becomes empty
51897 # (actually we leave an empty line to preserve line numbers).
51898 if test "x$srcdir" = x.; then
51899   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51900 s/:*\$(srcdir):*/:/
51901 s/:*\${srcdir}:*/:/
51902 s/:*@srcdir@:*/:/
51903 s/^\([^=]*=[     ]*\):*/\1/
51904 s/:*$//
51905 s/^[^=]*=[       ]*$//
51906 }'
51907 fi
51908
51909 cat >>$CONFIG_STATUS <<\_ACEOF
51910 fi # test -n "$CONFIG_FILES"
51911
51912
51913 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51914 do
51915   case $ac_tag in
51916   :[FHLC]) ac_mode=$ac_tag; continue;;
51917   esac
51918   case $ac_mode$ac_tag in
51919   :[FHL]*:*);;
51920   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51921 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51922    { (exit 1); exit 1; }; };;
51923   :[FH]-) ac_tag=-:-;;
51924   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51925   esac
51926   ac_save_IFS=$IFS
51927   IFS=:
51928   set x $ac_tag
51929   IFS=$ac_save_IFS
51930   shift
51931   ac_file=$1
51932   shift
51933
51934   case $ac_mode in
51935   :L) ac_source=$1;;
51936   :[FH])
51937     ac_file_inputs=
51938     for ac_f
51939     do
51940       case $ac_f in
51941       -) ac_f="$tmp/stdin";;
51942       *) # Look for the file first in the build tree, then in the source tree
51943          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51944          # because $ac_f cannot contain `:'.
51945          test -f "$ac_f" ||
51946            case $ac_f in
51947            [\\/$]*) false;;
51948            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51949            esac ||
51950            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51951 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51952    { (exit 1); exit 1; }; };;
51953       esac
51954       ac_file_inputs="$ac_file_inputs $ac_f"
51955     done
51956
51957     # Let's still pretend it is `configure' which instantiates (i.e., don't
51958     # use $as_me), people would be surprised to read:
51959     #    /* config.h.  Generated by config.status.  */
51960     configure_input="Generated from "`IFS=:
51961           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51962     if test x"$ac_file" != x-; then
51963       configure_input="$ac_file.  $configure_input"
51964       { echo "$as_me:$LINENO: creating $ac_file" >&5
51965 echo "$as_me: creating $ac_file" >&6;}
51966     fi
51967
51968     case $ac_tag in
51969     *:-:* | *:-) cat >"$tmp/stdin";;
51970     esac
51971     ;;
51972   esac
51973
51974   ac_dir=`$as_dirname -- "$ac_file" ||
51975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51976          X"$ac_file" : 'X\(//\)[^/]' \| \
51977          X"$ac_file" : 'X\(//\)$' \| \
51978          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51979 echo X"$ac_file" |
51980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51981             s//\1/
51982             q
51983           }
51984           /^X\(\/\/\)[^/].*/{
51985             s//\1/
51986             q
51987           }
51988           /^X\(\/\/\)$/{
51989             s//\1/
51990             q
51991           }
51992           /^X\(\/\).*/{
51993             s//\1/
51994             q
51995           }
51996           s/.*/./; q'`
51997   { as_dir="$ac_dir"
51998   case $as_dir in #(
51999   -*) as_dir=./$as_dir;;
52000   esac
52001   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52002     as_dirs=
52003     while :; do
52004       case $as_dir in #(
52005       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52006       *) as_qdir=$as_dir;;
52007       esac
52008       as_dirs="'$as_qdir' $as_dirs"
52009       as_dir=`$as_dirname -- "$as_dir" ||
52010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52011          X"$as_dir" : 'X\(//\)[^/]' \| \
52012          X"$as_dir" : 'X\(//\)$' \| \
52013          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52014 echo X"$as_dir" |
52015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52016             s//\1/
52017             q
52018           }
52019           /^X\(\/\/\)[^/].*/{
52020             s//\1/
52021             q
52022           }
52023           /^X\(\/\/\)$/{
52024             s//\1/
52025             q
52026           }
52027           /^X\(\/\).*/{
52028             s//\1/
52029             q
52030           }
52031           s/.*/./; q'`
52032       test -d "$as_dir" && break
52033     done
52034     test -z "$as_dirs" || eval "mkdir $as_dirs"
52035   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52036 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52037    { (exit 1); exit 1; }; }; }
52038   ac_builddir=.
52039
52040 case "$ac_dir" in
52041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52042 *)
52043   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52044   # A ".." for each directory in $ac_dir_suffix.
52045   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52046   case $ac_top_builddir_sub in
52047   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52048   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52049   esac ;;
52050 esac
52051 ac_abs_top_builddir=$ac_pwd
52052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52053 # for backward compatibility:
52054 ac_top_builddir=$ac_top_build_prefix
52055
52056 case $srcdir in
52057   .)  # We are building in place.
52058     ac_srcdir=.
52059     ac_top_srcdir=$ac_top_builddir_sub
52060     ac_abs_top_srcdir=$ac_pwd ;;
52061   [\\/]* | ?:[\\/]* )  # Absolute name.
52062     ac_srcdir=$srcdir$ac_dir_suffix;
52063     ac_top_srcdir=$srcdir
52064     ac_abs_top_srcdir=$srcdir ;;
52065   *) # Relative name.
52066     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52067     ac_top_srcdir=$ac_top_build_prefix$srcdir
52068     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52069 esac
52070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52071
52072
52073   case $ac_mode in
52074   :F)
52075   #
52076   # CONFIG_FILE
52077   #
52078
52079   case $INSTALL in
52080   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52081   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52082   esac
52083 _ACEOF
52084
52085 cat >>$CONFIG_STATUS <<\_ACEOF
52086 # If the template does not know about datarootdir, expand it.
52087 # FIXME: This hack should be removed a few years after 2.60.
52088 ac_datarootdir_hack=; ac_datarootdir_seen=
52089
52090 case `sed -n '/datarootdir/ {
52091   p
52092   q
52093 }
52094 /@datadir@/p
52095 /@docdir@/p
52096 /@infodir@/p
52097 /@localedir@/p
52098 /@mandir@/p
52099 ' $ac_file_inputs` in
52100 *datarootdir*) ac_datarootdir_seen=yes;;
52101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52102   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52103 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52104 _ACEOF
52105 cat >>$CONFIG_STATUS <<_ACEOF
52106   ac_datarootdir_hack='
52107   s&@datadir@&$datadir&g
52108   s&@docdir@&$docdir&g
52109   s&@infodir@&$infodir&g
52110   s&@localedir@&$localedir&g
52111   s&@mandir@&$mandir&g
52112     s&\\\${datarootdir}&$datarootdir&g' ;;
52113 esac
52114 _ACEOF
52115
52116 # Neutralize VPATH when `$srcdir' = `.'.
52117 # Shell code in configure.ac might set extrasub.
52118 # FIXME: do we really want to maintain this feature?
52119 cat >>$CONFIG_STATUS <<_ACEOF
52120   sed "$ac_vpsub
52121 $extrasub
52122 _ACEOF
52123 cat >>$CONFIG_STATUS <<\_ACEOF
52124 :t
52125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52126 s&@configure_input@&$configure_input&;t t
52127 s&@top_builddir@&$ac_top_builddir_sub&;t t
52128 s&@srcdir@&$ac_srcdir&;t t
52129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52130 s&@top_srcdir@&$ac_top_srcdir&;t t
52131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52132 s&@builddir@&$ac_builddir&;t t
52133 s&@abs_builddir@&$ac_abs_builddir&;t t
52134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52135 s&@INSTALL@&$ac_INSTALL&;t t
52136 $ac_datarootdir_hack
52137 " $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
52138
52139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52140   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52141   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52142   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52143 which seems to be undefined.  Please make sure it is defined." >&5
52144 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52145 which seems to be undefined.  Please make sure it is defined." >&2;}
52146
52147   rm -f "$tmp/stdin"
52148   case $ac_file in
52149   -) cat "$tmp/out"; rm -f "$tmp/out";;
52150   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52151   esac
52152  ;;
52153   :H)
52154   #
52155   # CONFIG_HEADER
52156   #
52157 _ACEOF
52158
52159 # Transform confdefs.h into a sed script `conftest.defines', that
52160 # substitutes the proper values into config.h.in to produce config.h.
52161 rm -f conftest.defines conftest.tail
52162 # First, append a space to every undef/define line, to ease matching.
52163 echo 's/$/ /' >conftest.defines
52164 # Then, protect against being on the right side of a sed subst, or in
52165 # an unquoted here document, in config.status.  If some macros were
52166 # called several times there might be several #defines for the same
52167 # symbol, which is useless.  But do not sort them, since the last
52168 # AC_DEFINE must be honored.
52169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52170 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52171 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52172 # PARAMS is the parameter list in the macro definition--in most cases, it's
52173 # just an empty string.
52174 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52175 ac_dB='\\)[      (].*,\\1define\\2'
52176 ac_dC=' '
52177 ac_dD=' ,'
52178
52179 uniq confdefs.h |
52180   sed -n '
52181         t rset
52182         :rset
52183         s/^[     ]*#[    ]*define[       ][      ]*//
52184         t ok
52185         d
52186         :ok
52187         s/[\\&,]/\\&/g
52188         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52189         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52190   ' >>conftest.defines
52191
52192 # Remove the space that was appended to ease matching.
52193 # Then replace #undef with comments.  This is necessary, for
52194 # example, in the case of _POSIX_SOURCE, which is predefined and required
52195 # on some systems where configure will not decide to define it.
52196 # (The regexp can be short, since the line contains either #define or #undef.)
52197 echo 's/ $//
52198 s,^[     #]*u.*,/* & */,' >>conftest.defines
52199
52200 # Break up conftest.defines:
52201 ac_max_sed_lines=50
52202
52203 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52204 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52205 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52206 # et cetera.
52207 ac_in='$ac_file_inputs'
52208 ac_out='"$tmp/out1"'
52209 ac_nxt='"$tmp/out2"'
52210
52211 while :
52212 do
52213   # Write a here document:
52214     cat >>$CONFIG_STATUS <<_ACEOF
52215     # First, check the format of the line:
52216     cat >"\$tmp/defines.sed" <<\\CEOF
52217 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52218 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52219 b
52220 :def
52221 _ACEOF
52222   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52223   echo 'CEOF
52224     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52225   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52226   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52227   grep . conftest.tail >/dev/null || break
52228   rm -f conftest.defines
52229   mv conftest.tail conftest.defines
52230 done
52231 rm -f conftest.defines conftest.tail
52232
52233 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52234 cat >>$CONFIG_STATUS <<\_ACEOF
52235   if test x"$ac_file" != x-; then
52236     echo "/* $configure_input  */" >"$tmp/config.h"
52237     cat "$ac_result" >>"$tmp/config.h"
52238     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52239       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52240 echo "$as_me: $ac_file is unchanged" >&6;}
52241     else
52242       rm -f $ac_file
52243       mv "$tmp/config.h" $ac_file
52244     fi
52245   else
52246     echo "/* $configure_input  */"
52247     cat "$ac_result"
52248   fi
52249   rm -f "$tmp/out12"
52250  ;;
52251
52252   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52253 echo "$as_me: executing $ac_file commands" >&6;}
52254  ;;
52255   esac
52256
52257
52258   case $ac_file$ac_mode in
52259     "rcdefs.h":C)
52260             mkdir -p $outdir &&
52261             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52262          ;;
52263     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52264     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52265     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52266     "wx-config":C)  rm -f wx-config
52267                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52268                     ;;
52269
52270   esac
52271 done # for ac_tag
52272
52273
52274 { (exit 0); exit 0; }
52275 _ACEOF
52276 chmod +x $CONFIG_STATUS
52277 ac_clean_files=$ac_clean_files_save
52278
52279
52280 # configure is writing to config.log, and then calls config.status.
52281 # config.status does its own redirection, appending to config.log.
52282 # Unfortunately, on DOS this fails, as config.log is still kept open
52283 # by configure, so config.status won't be able to write to it; its
52284 # output is simply discarded.  So we exec the FD to /dev/null,
52285 # effectively closing config.log, so it can be properly (re)opened and
52286 # appended to by config.status.  When coming back to configure, we
52287 # need to make the FD available again.
52288 if test "$no_create" != yes; then
52289   ac_cs_success=:
52290   ac_config_status_args=
52291   test "$silent" = yes &&
52292     ac_config_status_args="$ac_config_status_args --quiet"
52293   exec 5>/dev/null
52294   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52295   exec 5>>config.log
52296   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52297   # would make configure fail if this is the last instruction.
52298   $ac_cs_success || { (exit 1); exit 1; }
52299 fi
52300
52301 #
52302 # CONFIG_SUBDIRS section.
52303 #
52304 if test "$no_recursion" != yes; then
52305
52306   # Remove --cache-file and --srcdir arguments so they do not pile up.
52307   ac_sub_configure_args=
52308   ac_prev=
52309   eval "set x $ac_configure_args"
52310   shift
52311   for ac_arg
52312   do
52313     if test -n "$ac_prev"; then
52314       ac_prev=
52315       continue
52316     fi
52317     case $ac_arg in
52318     -cache-file | --cache-file | --cache-fil | --cache-fi \
52319     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52320       ac_prev=cache_file ;;
52321     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52322     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52323     | --c=*)
52324       ;;
52325     --config-cache | -C)
52326       ;;
52327     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52328       ac_prev=srcdir ;;
52329     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52330       ;;
52331     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52332       ac_prev=prefix ;;
52333     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52334       ;;
52335     *)
52336       case $ac_arg in
52337       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52338       esac
52339       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52340     esac
52341   done
52342
52343   # Always prepend --prefix to ensure using the same prefix
52344   # in subdir configurations.
52345   ac_arg="--prefix=$prefix"
52346   case $ac_arg in
52347   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52348   esac
52349   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52350
52351   # Pass --silent
52352   if test "$silent" = yes; then
52353     ac_sub_configure_args="--silent $ac_sub_configure_args"
52354   fi
52355
52356   ac_popdir=`pwd`
52357   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52358
52359     # Do not complain, so a configure script can configure whichever
52360     # parts of a large source tree are present.
52361     test -d "$srcdir/$ac_dir" || continue
52362
52363     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52364     echo "$as_me:$LINENO: $ac_msg" >&5
52365     echo "$ac_msg" >&6
52366     { as_dir="$ac_dir"
52367   case $as_dir in #(
52368   -*) as_dir=./$as_dir;;
52369   esac
52370   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52371     as_dirs=
52372     while :; do
52373       case $as_dir in #(
52374       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52375       *) as_qdir=$as_dir;;
52376       esac
52377       as_dirs="'$as_qdir' $as_dirs"
52378       as_dir=`$as_dirname -- "$as_dir" ||
52379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52380          X"$as_dir" : 'X\(//\)[^/]' \| \
52381          X"$as_dir" : 'X\(//\)$' \| \
52382          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52383 echo X"$as_dir" |
52384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52385             s//\1/
52386             q
52387           }
52388           /^X\(\/\/\)[^/].*/{
52389             s//\1/
52390             q
52391           }
52392           /^X\(\/\/\)$/{
52393             s//\1/
52394             q
52395           }
52396           /^X\(\/\).*/{
52397             s//\1/
52398             q
52399           }
52400           s/.*/./; q'`
52401       test -d "$as_dir" && break
52402     done
52403     test -z "$as_dirs" || eval "mkdir $as_dirs"
52404   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52406    { (exit 1); exit 1; }; }; }
52407     ac_builddir=.
52408
52409 case "$ac_dir" in
52410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52411 *)
52412   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52413   # A ".." for each directory in $ac_dir_suffix.
52414   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52415   case $ac_top_builddir_sub in
52416   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52417   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52418   esac ;;
52419 esac
52420 ac_abs_top_builddir=$ac_pwd
52421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52422 # for backward compatibility:
52423 ac_top_builddir=$ac_top_build_prefix
52424
52425 case $srcdir in
52426   .)  # We are building in place.
52427     ac_srcdir=.
52428     ac_top_srcdir=$ac_top_builddir_sub
52429     ac_abs_top_srcdir=$ac_pwd ;;
52430   [\\/]* | ?:[\\/]* )  # Absolute name.
52431     ac_srcdir=$srcdir$ac_dir_suffix;
52432     ac_top_srcdir=$srcdir
52433     ac_abs_top_srcdir=$srcdir ;;
52434   *) # Relative name.
52435     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52436     ac_top_srcdir=$ac_top_build_prefix$srcdir
52437     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52438 esac
52439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52440
52441
52442     cd "$ac_dir"
52443
52444     # Check for guested configure; otherwise get Cygnus style configure.
52445     if test -f "$ac_srcdir/configure.gnu"; then
52446       ac_sub_configure=$ac_srcdir/configure.gnu
52447     elif test -f "$ac_srcdir/configure"; then
52448       ac_sub_configure=$ac_srcdir/configure
52449     elif test -f "$ac_srcdir/configure.in"; then
52450       # This should be Cygnus configure.
52451       ac_sub_configure=$ac_aux_dir/configure
52452     else
52453       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52454 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52455       ac_sub_configure=
52456     fi
52457
52458     # The recursion is here.
52459     if test -n "$ac_sub_configure"; then
52460       # Make the cache file name correct relative to the subdirectory.
52461       case $cache_file in
52462       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52463       *) # Relative name.
52464         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52465       esac
52466
52467       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52468 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52469       # The eval makes quoting arguments work.
52470       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52471            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52472         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52473 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52474    { (exit 1); exit 1; }; }
52475     fi
52476
52477     cd "$ac_popdir"
52478   done
52479 fi
52480
52481
52482 echo
52483 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52484 echo ""
52485 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52486 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52487
52488 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52489 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52490 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52491 if test "$wxUSE_UNICODE" = "yes"; then
52492     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52493         echo " (using UTF-8)"
52494     else
52495         echo " (using wchar_t)"
52496     fi
52497 else
52498     echo
52499 fi
52500
52501 echo "  What level of wxWidgets compatibility should be enabled?"
52502 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52503 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52504
52505 echo "  Which libraries should wxWidgets use?"
52506 echo "                                       STL                ${wxUSE_STL}"
52507 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52508 echo "                                       png                ${wxUSE_LIBPNG-none}"
52509 echo "                                       regex              ${wxUSE_REGEX}"
52510 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52511 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52512 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52513 fi
52514 echo "                                       zlib               ${wxUSE_ZLIB}"
52515 echo "                                       expat              ${wxUSE_EXPAT}"
52516 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52517 echo "                                       sdl                ${wxUSE_LIBSDL}"
52518
52519 echo ""
52520