added wxDocument::AlreadySaved() and use it in OnUpdateFileSave() to ensure that...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 56400 2008-10-17 12:39:21Z RR .
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 OBJCXXFLAGS
810 GCC_PCH
811 ICC_PCH
812 BK_MAKE_PCH
813 COND_BUILD_DEBUG
814 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
815 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
816 COND_BUILD_DEBUG_UNICODE_0
817 COND_BUILD_DEBUG_UNICODE_1
818 COND_BUILD_RELEASE
819 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
820 COND_BUILD_RELEASE_UNICODE_0
821 COND_BUILD_RELEASE_UNICODE_1
822 COND_BUILD_debug
823 COND_BUILD_debug_DEBUG_FLAG_default
824 COND_BUILD_debug_DEBUG_INFO_default
825 COND_BUILD_debug_UNICODE_0
826 COND_BUILD_debug_UNICODE_1
827 COND_BUILD_release
828 COND_BUILD_release_DEBUG_INFO_default
829 COND_BUILD_release_UNICODE_0
830 COND_BUILD_release_UNICODE_1
831 COND_DEBUG_FLAG_1
832 COND_DEBUG_INFO_0
833 COND_DEBUG_INFO_1
834 COND_DEPS_TRACKING_0
835 COND_DEPS_TRACKING_1
836 COND_GCC_PCH_1
837 COND_ICC_PCH_1
838 COND_MONOLITHIC_0
839 COND_MONOLITHIC_0_SHARED_0
840 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
845 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
846 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
847 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
848 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
849 COND_MONOLITHIC_0_SHARED_1
850 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
851 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
852 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
855 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
856 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
857 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
858 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
859 COND_MONOLITHIC_0_USE_AUI_1
860 COND_MONOLITHIC_0_USE_GUI_1
861 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_USE_HTML_1
863 COND_MONOLITHIC_0_USE_MEDIA_1
864 COND_MONOLITHIC_0_USE_PROPGRID_1
865 COND_MONOLITHIC_0_USE_QA_1
866 COND_MONOLITHIC_0_USE_RICHTEXT_1
867 COND_MONOLITHIC_0_USE_STC_1
868 COND_MONOLITHIC_0_USE_XRC_1
869 COND_MONOLITHIC_1
870 COND_MONOLITHIC_1_SHARED_0
871 COND_MONOLITHIC_1_SHARED_1
872 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
873 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
874 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
875 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
876 COND_PLATFORM_MACOSX_1
877 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
878 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
879 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
880 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
882 COND_PLATFORM_MACOSX_1_USE_GUI_1
883 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
884 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
885 COND_PLATFORM_MACOS_1
886 COND_PLATFORM_MAC_0
887 COND_PLATFORM_MAC_1
888 COND_PLATFORM_MSDOS_0
889 COND_PLATFORM_MSDOS_1
890 COND_PLATFORM_OS2_1
891 COND_PLATFORM_UNIX_0
892 COND_PLATFORM_UNIX_1
893 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
894 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
895 COND_PLATFORM_UNIX_1_USE_GUI_1
896 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
897 COND_PLATFORM_WIN32_0
898 COND_PLATFORM_WIN32_1
899 COND_SHARED_0
900 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
901 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
902 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
903 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
904 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
905 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
906 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
907 COND_SHARED_0_USE_STC_1
908 COND_SHARED_0_wxUSE_EXPAT_builtin
909 COND_SHARED_0_wxUSE_REGEX_builtin
910 COND_SHARED_0_wxUSE_ZLIB_builtin
911 COND_SHARED_1
912 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
913 COND_TOOLKIT_
914 COND_TOOLKIT_COCOA
915 COND_TOOLKIT_COCOA_USE_GUI_1
916 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_DFB
918 COND_TOOLKIT_DFB_USE_GUI_1
919 COND_TOOLKIT_GTK
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
921 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
922 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_GTK_USE_GUI_1
927 COND_TOOLKIT_MAC
928 COND_TOOLKIT_MGL
929 COND_TOOLKIT_MGL_USE_GUI_1
930 COND_TOOLKIT_MOTIF
931 COND_TOOLKIT_MOTIF_USE_GUI_1
932 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW
934 COND_TOOLKIT_MSW_USE_GUI_1
935 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW_WXUNIV_0
937 COND_TOOLKIT_OSX_CARBON
938 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
939 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_OSX_COCOA
941 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
942 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_OSX_IPHONE
944 COND_TOOLKIT_PM
945 COND_TOOLKIT_PM_USE_GUI_1
946 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_WINCE
948 COND_TOOLKIT_WINCE_USE_GUI_1
949 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_WINCE_WXUNIV_0
951 COND_TOOLKIT_X11
952 COND_TOOLKIT_X11_USE_GUI_1
953 COND_UNICODE_1
954 COND_USE_EXCEPTIONS_0
955 COND_USE_EXCEPTIONS_1
956 COND_USE_GUI_0
957 COND_USE_GUI_1
958 COND_USE_GUI_1_USE_OPENGL_1
959 COND_USE_GUI_1_WXUNIV_0
960 COND_USE_GUI_1_WXUNIV_1
961 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
962 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
964 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
965 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
966 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
967 COND_USE_OPENGL_1
968 COND_USE_PCH_1
969 COND_USE_PLUGINS_0
970 COND_USE_RTTI_0
971 COND_USE_RTTI_1
972 COND_USE_SOSYMLINKS_1
973 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
974 COND_USE_SOVERLINUX_1
975 COND_USE_SOVERSION_0
976 COND_USE_SOVERSOLARIS_1
977 COND_USE_STC_1
978 COND_USE_THREADS_0
979 COND_USE_THREADS_1
980 COND_USE_XRC_1
981 COND_WINDOWS_IMPLIB_1
982 COND_WITH_PLUGIN_SDL_1
983 COND_WXUNIV_0
984 COND_WXUNIV_1
985 COND_WXUSE_EXPAT_BUILTIN
986 COND_WXUSE_LIBJPEG_BUILTIN
987 COND_WXUSE_LIBPNG_BUILTIN
988 COND_WXUSE_LIBTIFF_BUILTIN
989 COND_WXUSE_REGEX_BUILTIN
990 COND_WXUSE_ZLIB_BUILTIN
991 COND_wxUSE_EXPAT_builtin
992 COND_wxUSE_LIBJPEG_builtin
993 COND_wxUSE_LIBPNG_builtin
994 COND_wxUSE_LIBTIFF_builtin
995 COND_wxUSE_REGEX_builtin
996 COND_wxUSE_ZLIB_builtin
997 DEREZ
998 SHARED
999 WX_LIBRARY_BASENAME_NOGUI
1000 WX_LIBRARY_BASENAME_GUI
1001 USE_GUI
1002 AFMINSTALL
1003 WIN32INSTALL
1004 TOOLKIT
1005 TOOLKIT_DIR
1006 TOOLCHAIN_NAME
1007 TOOLCHAIN_FULLNAME
1008 cross_compiling
1009 WIDGET_SET
1010 WX_RELEASE
1011 WX_VERSION
1012 WX_SUBVERSION
1013 WX_CHARTYPE
1014 WX_DEBUGTYPE
1015 WXCONFIG_CPPFLAGS
1016 WXCONFIG_CFLAGS
1017 WXCONFIG_CXXFLAGS
1018 WXCONFIG_LIBS
1019 WXCONFIG_RPATH
1020 WXCONFIG_LDFLAGS_GUI
1021 WXCONFIG_RESFLAGS
1022 GUIDIST
1023 DISTDIR
1024 SAMPLES_SUBDIRS
1025 LDFLAGS_GL
1026 OPENGL_LIBS
1027 DMALLOC_LIBS
1028 WX_VERSION_TAG
1029 RESCOMP
1030 RESFLAGS
1031 RESPROGRAMOBJ
1032 WX_RESOURCES_MACOSX_ASCII
1033 WX_RESOURCES_MACOSX_DATA
1034 LIBWXMACRES
1035 POSTLINK_COMMAND
1036 MACSETFILE
1037 GCC
1038 DLLTOOL
1039 CPPUNIT_CONFIG
1040 LIBOBJS
1041 LTLIBOBJS'
1042 ac_subst_files=''
1043       ac_precious_vars='build_alias
1044 host_alias
1045 target_alias
1046 CC
1047 CFLAGS
1048 LDFLAGS
1049 LIBS
1050 CPPFLAGS
1051 CPP
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 PKG_CONFIG
1056 DIRECTFB_CFLAGS
1057 DIRECTFB_LIBS
1058 XMKMF
1059 PANGOX_CFLAGS
1060 PANGOX_LIBS
1061 PANGOFT2_CFLAGS
1062 PANGOFT2_LIBS
1063 PANGOXFT_CFLAGS
1064 PANGOXFT_LIBS
1065 GTKPRINT_CFLAGS
1066 GTKPRINT_LIBS
1067 LIBGNOMEPRINTUI_CFLAGS
1068 LIBGNOMEPRINTUI_LIBS
1069 GNOMEVFS_CFLAGS
1070 GNOMEVFS_LIBS
1071 HILDON_CFLAGS
1072 HILDON_LIBS
1073 CAIRO_CFLAGS
1074 CAIRO_LIBS
1075 GST_CFLAGS
1076 GST_LIBS'
1077 ac_subdirs_all='src/tiff
1078 src/expat'
1079
1080 # Initialize some variables set by options.
1081 ac_init_help=
1082 ac_init_version=false
1083 # The variables have the same names as the options, with
1084 # dashes changed to underlines.
1085 cache_file=/dev/null
1086 exec_prefix=NONE
1087 no_create=
1088 no_recursion=
1089 prefix=NONE
1090 program_prefix=NONE
1091 program_suffix=NONE
1092 program_transform_name=s,x,x,
1093 silent=
1094 site=
1095 srcdir=
1096 verbose=
1097 x_includes=NONE
1098 x_libraries=NONE
1099
1100 # Installation directory options.
1101 # These are left unexpanded so users can "make install exec_prefix=/foo"
1102 # and all the variables that are supposed to be based on exec_prefix
1103 # by default will actually change.
1104 # Use braces instead of parens because sh, perl, etc. also accept them.
1105 # (The list follows the same order as the GNU Coding Standards.)
1106 bindir='${exec_prefix}/bin'
1107 sbindir='${exec_prefix}/sbin'
1108 libexecdir='${exec_prefix}/libexec'
1109 datarootdir='${prefix}/share'
1110 datadir='${datarootdir}'
1111 sysconfdir='${prefix}/etc'
1112 sharedstatedir='${prefix}/com'
1113 localstatedir='${prefix}/var'
1114 includedir='${prefix}/include'
1115 oldincludedir='/usr/include'
1116 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1117 infodir='${datarootdir}/info'
1118 htmldir='${docdir}'
1119 dvidir='${docdir}'
1120 pdfdir='${docdir}'
1121 psdir='${docdir}'
1122 libdir='${exec_prefix}/lib'
1123 localedir='${datarootdir}/locale'
1124 mandir='${datarootdir}/man'
1125
1126 ac_prev=
1127 ac_dashdash=
1128 for ac_option
1129 do
1130   # If the previous option needs an argument, assign it.
1131   if test -n "$ac_prev"; then
1132     eval $ac_prev=\$ac_option
1133     ac_prev=
1134     continue
1135   fi
1136
1137   case $ac_option in
1138   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139   *)    ac_optarg=yes ;;
1140   esac
1141
1142   # Accept the important Cygnus configure options, so we can diagnose typos.
1143
1144   case $ac_dashdash$ac_option in
1145   --)
1146     ac_dashdash=yes ;;
1147
1148   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1149     ac_prev=bindir ;;
1150   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1151     bindir=$ac_optarg ;;
1152
1153   -build | --build | --buil | --bui | --bu)
1154     ac_prev=build_alias ;;
1155   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1156     build_alias=$ac_optarg ;;
1157
1158   -cache-file | --cache-file | --cache-fil | --cache-fi \
1159   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1160     ac_prev=cache_file ;;
1161   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1162   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1163     cache_file=$ac_optarg ;;
1164
1165   --config-cache | -C)
1166     cache_file=config.cache ;;
1167
1168   -datadir | --datadir | --datadi | --datad)
1169     ac_prev=datadir ;;
1170   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1171     datadir=$ac_optarg ;;
1172
1173   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1174   | --dataroo | --dataro | --datar)
1175     ac_prev=datarootdir ;;
1176   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1177   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1178     datarootdir=$ac_optarg ;;
1179
1180   -disable-* | --disable-*)
1181     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187     eval enable_$ac_feature=no ;;
1188
1189   -docdir | --docdir | --docdi | --doc | --do)
1190     ac_prev=docdir ;;
1191   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192     docdir=$ac_optarg ;;
1193
1194   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195     ac_prev=dvidir ;;
1196   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197     dvidir=$ac_optarg ;;
1198
1199   -enable-* | --enable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=\$ac_optarg ;;
1207
1208   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210   | --exec | --exe | --ex)
1211     ac_prev=exec_prefix ;;
1212   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214   | --exec=* | --exe=* | --ex=*)
1215     exec_prefix=$ac_optarg ;;
1216
1217   -gas | --gas | --ga | --g)
1218     # Obsolete; use --with-gas.
1219     with_gas=yes ;;
1220
1221   -help | --help | --hel | --he | -h)
1222     ac_init_help=long ;;
1223   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224     ac_init_help=recursive ;;
1225   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226     ac_init_help=short ;;
1227
1228   -host | --host | --hos | --ho)
1229     ac_prev=host_alias ;;
1230   -host=* | --host=* | --hos=* | --ho=*)
1231     host_alias=$ac_optarg ;;
1232
1233   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234     ac_prev=htmldir ;;
1235   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236   | --ht=*)
1237     htmldir=$ac_optarg ;;
1238
1239   -includedir | --includedir | --includedi | --included | --include \
1240   | --includ | --inclu | --incl | --inc)
1241     ac_prev=includedir ;;
1242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243   | --includ=* | --inclu=* | --incl=* | --inc=*)
1244     includedir=$ac_optarg ;;
1245
1246   -infodir | --infodir | --infodi | --infod | --info | --inf)
1247     ac_prev=infodir ;;
1248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249     infodir=$ac_optarg ;;
1250
1251   -libdir | --libdir | --libdi | --libd)
1252     ac_prev=libdir ;;
1253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254     libdir=$ac_optarg ;;
1255
1256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257   | --libexe | --libex | --libe)
1258     ac_prev=libexecdir ;;
1259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260   | --libexe=* | --libex=* | --libe=*)
1261     libexecdir=$ac_optarg ;;
1262
1263   -localedir | --localedir | --localedi | --localed | --locale)
1264     ac_prev=localedir ;;
1265   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266     localedir=$ac_optarg ;;
1267
1268   -localstatedir | --localstatedir | --localstatedi | --localstated \
1269   | --localstate | --localstat | --localsta | --localst | --locals)
1270     ac_prev=localstatedir ;;
1271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273     localstatedir=$ac_optarg ;;
1274
1275   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276     ac_prev=mandir ;;
1277   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278     mandir=$ac_optarg ;;
1279
1280   -nfp | --nfp | --nf)
1281     # Obsolete; use --without-fp.
1282     with_fp=no ;;
1283
1284   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285   | --no-cr | --no-c | -n)
1286     no_create=yes ;;
1287
1288   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290     no_recursion=yes ;;
1291
1292   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294   | --oldin | --oldi | --old | --ol | --o)
1295     ac_prev=oldincludedir ;;
1296   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299     oldincludedir=$ac_optarg ;;
1300
1301   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302     ac_prev=prefix ;;
1303   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304     prefix=$ac_optarg ;;
1305
1306   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307   | --program-pre | --program-pr | --program-p)
1308     ac_prev=program_prefix ;;
1309   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311     program_prefix=$ac_optarg ;;
1312
1313   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314   | --program-suf | --program-su | --program-s)
1315     ac_prev=program_suffix ;;
1316   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318     program_suffix=$ac_optarg ;;
1319
1320   -program-transform-name | --program-transform-name \
1321   | --program-transform-nam | --program-transform-na \
1322   | --program-transform-n | --program-transform- \
1323   | --program-transform | --program-transfor \
1324   | --program-transfo | --program-transf \
1325   | --program-trans | --program-tran \
1326   | --progr-tra | --program-tr | --program-t)
1327     ac_prev=program_transform_name ;;
1328   -program-transform-name=* | --program-transform-name=* \
1329   | --program-transform-nam=* | --program-transform-na=* \
1330   | --program-transform-n=* | --program-transform-=* \
1331   | --program-transform=* | --program-transfor=* \
1332   | --program-transfo=* | --program-transf=* \
1333   | --program-trans=* | --program-tran=* \
1334   | --progr-tra=* | --program-tr=* | --program-t=*)
1335     program_transform_name=$ac_optarg ;;
1336
1337   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338     ac_prev=pdfdir ;;
1339   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340     pdfdir=$ac_optarg ;;
1341
1342   -psdir | --psdir | --psdi | --psd | --ps)
1343     ac_prev=psdir ;;
1344   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345     psdir=$ac_optarg ;;
1346
1347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348   | -silent | --silent | --silen | --sile | --sil)
1349     silent=yes ;;
1350
1351   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352     ac_prev=sbindir ;;
1353   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354   | --sbi=* | --sb=*)
1355     sbindir=$ac_optarg ;;
1356
1357   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359   | --sharedst | --shareds | --shared | --share | --shar \
1360   | --sha | --sh)
1361     ac_prev=sharedstatedir ;;
1362   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365   | --sha=* | --sh=*)
1366     sharedstatedir=$ac_optarg ;;
1367
1368   -site | --site | --sit)
1369     ac_prev=site ;;
1370   -site=* | --site=* | --sit=*)
1371     site=$ac_optarg ;;
1372
1373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374     ac_prev=srcdir ;;
1375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376     srcdir=$ac_optarg ;;
1377
1378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379   | --syscon | --sysco | --sysc | --sys | --sy)
1380     ac_prev=sysconfdir ;;
1381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383     sysconfdir=$ac_optarg ;;
1384
1385   -target | --target | --targe | --targ | --tar | --ta | --t)
1386     ac_prev=target_alias ;;
1387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388     target_alias=$ac_optarg ;;
1389
1390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391     verbose=yes ;;
1392
1393   -version | --version | --versio | --versi | --vers | -V)
1394     ac_init_version=: ;;
1395
1396   -with-* | --with-*)
1397     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=\$ac_optarg ;;
1404
1405   -without-* | --without-*)
1406     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1407     # Reject names that are not valid shell variable names.
1408     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409       { echo "$as_me: error: invalid package name: $ac_package" >&2
1410    { (exit 1); exit 1; }; }
1411     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1412     eval with_$ac_package=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) { echo "$as_me: error: unrecognized option: $ac_option
1433 Try \`$0 --help' for more information." >&2
1434    { (exit 1); exit 1; }; }
1435     ;;
1436
1437   *=*)
1438     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1439     # Reject names that are not valid shell variable names.
1440     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1441       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1442    { (exit 1); exit 1; }; }
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   { echo "$as_me: error: missing argument to $ac_option" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462
1463 # Be sure to have absolute directory names.
1464 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465                 datadir sysconfdir sharedstatedir localstatedir includedir \
1466                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467                 libdir localedir mandir
1468 do
1469   eval ac_val=\$$ac_var
1470   case $ac_val in
1471     [\\/$]* | ?:[\\/]* )  continue;;
1472     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473   esac
1474   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1475    { (exit 1); exit 1; }; }
1476 done
1477
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1481 build=$build_alias
1482 host=$host_alias
1483 target=$target_alias
1484
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x; then
1487   if test "x$build_alias" = x; then
1488     cross_compiling=maybe
1489     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1490     If a cross compiler is detected then cross compile mode will be used." >&2
1491   elif test "x$build_alias" != "x$host_alias"; then
1492     cross_compiling=yes
1493   fi
1494 fi
1495
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499 test "$silent" = yes && exec 6>/dev/null
1500
1501
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505   { echo "$as_me: error: Working directory cannot be determined" >&2
1506    { (exit 1); exit 1; }; }
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508   { echo "$as_me: error: pwd does not report name of working directory" >&2
1509    { (exit 1); exit 1; }; }
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514   ac_srcdir_defaulted=yes
1515   # Try the directory containing this script, then the parent directory.
1516   ac_confdir=`$as_dirname -- "$0" ||
1517 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518          X"$0" : 'X\(//\)[^/]' \| \
1519          X"$0" : 'X\(//\)$' \| \
1520          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1521 echo X"$0" |
1522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)[^/].*/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\/\)$/{
1531             s//\1/
1532             q
1533           }
1534           /^X\(\/\).*/{
1535             s//\1/
1536             q
1537           }
1538           s/.*/./; q'`
1539   srcdir=$ac_confdir
1540   if test ! -r "$srcdir/$ac_unique_file"; then
1541     srcdir=..
1542   fi
1543 else
1544   ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1549    { (exit 1); exit 1; }; }
1550 fi
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 ac_abs_confdir=`(
1553         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1554    { (exit 1); exit 1; }; }
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR           user executables [EPREFIX/bin]
1615   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR       program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR           object code libraries [EPREFIX/lib]
1621   --includedir=DIR       C header files [PREFIX/include]
1622   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR          info documentation [DATAROOTDIR/info]
1626   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR           man documentation [DATAROOTDIR/man]
1628   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1629   --htmldir=DIR          html documentation [DOCDIR]
1630   --dvidir=DIR           dvi documentation [DOCDIR]
1631   --pdfdir=DIR           pdf documentation [DOCDIR]
1632   --psdir=DIR            ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 X features:
1638   --x-includes=DIR    X include files are in DIR
1639   --x-libraries=DIR   X library files are in DIR
1640
1641 System types:
1642   --build=BUILD     configure for building on BUILD [guessed]
1643   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1644   --target=TARGET   configure for building compilers for TARGET [HOST]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649   case $ac_init_help in
1650      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1651    esac
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1656   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1657   --disable-gui           don't build GUI parts of the library
1658   --enable-monolithic     build wxWidgets as single library
1659   --enable-plugins        build parts of wxWidgets as loadable components
1660   --enable-official_build official build of wxWidgets (win32 DLL only)
1661   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1662   --disable-all-features  disable all optional features to build minimal library
1663   --enable-universal      use wxWidgets GUI controls instead of native ones
1664   --enable-nanox          use NanoX
1665   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1666   --enable-gpe            use GNOME PDA Environment features if possible
1667   --disable-shared        create static library instead of shared
1668   --enable-debug          same as debug_flag and debug_info
1669   --enable-stl            use STL for containers
1670   --enable-std_iostreams  use standard C++ stream classes
1671   --enable-std_string     use standard C++ string classes
1672   --disable-unicode       compile without Unicode support
1673   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1674   --enable-utf8           use UTF-8 representation for strings (Unix only)
1675   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1676   --enable-extended_rtti  use extended RTTI (XTI)
1677   --enable-omf            use OMF object format
1678   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1679   --enable-debug_info     create code with debugging information
1680   --disable-optimise      compile without optimisations
1681   --enable-debug_gdb      create code with extra GDB debugging information
1682   --enable-debug_cntxt    use wxDebugContext
1683   --enable-mem_tracing    create code with memory tracing
1684   --enable-profile        create code with profiling information
1685   --enable-no_rtti        create code without RTTI information
1686   --enable-no_exceptions  create code without C++ exceptions handling
1687   --enable-permissive     compile code disregarding strict ANSI
1688   --enable-no_deps        create code without dependency information
1689   --disable-vararg_macros don't use vararg macros, even if they are supported
1690   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1691   --enable-compat26       enable wxWidgets 2.6 compatibility
1692   --disable-compat28      disable wxWidgets 2.8 compatibility
1693   --disable-rpath         disable use of rpath for uninstalled builds
1694   --enable-objc_uniquifying enable Objective-C class name uniquifying
1695   --disable-visibility    disable use of ELF symbols visibility even if supported
1696   --enable-intl           use internationalization system
1697   --enable-xlocale        use x-locale support (requires wxLocale)
1698   --enable-config         use wxConfig (and derived) classes
1699   --enable-protocols      use wxProtocol and derived classes
1700   --enable-ftp            use wxFTP (requires wxProtocol
1701   --enable-http           use wxHTTP (requires wxProtocol
1702   --enable-fileproto      use wxFileProto class (requires wxProtocol
1703   --enable-sockets        use socket/network classes
1704   --enable-ipv6           enable IPv6 support in wxSocket
1705   --enable-ole            use OLE classes (Win32 only)
1706   --enable-dataobj        use data object classes
1707   --enable-ipc            use interprocess communication (wxSocket etc.)
1708   --enable-baseevtloop    use event loop in console programs too
1709   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1710   --enable-selectloop     use wxSelectDispatcher class
1711   --enable-apple_ieee     use the Apple IEEE codec
1712   --enable-arcstream      use wxArchive streams
1713   --enable-base64         use base64 encoding/decoding functions
1714   --enable-backtrace      use wxStackWalker class for getting backtraces
1715   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1716   --enable-cmdline        use wxCmdLineParser class
1717   --enable-datetime       use wxDateTime class
1718   --enable-debugreport    use wxDebugReport class
1719   --enable-dialupman      use dialup network classes
1720   --enable-dynlib         use wxLibrary class for DLL loading
1721   --enable-dynamicloader  use (new) wxDynamicLibrary class
1722   --enable-exceptions     build exception-safe library
1723   --enable-ffile          use wxFFile class
1724   --enable-file           use wxFile class
1725   --enable-filesystem     use virtual file systems classes
1726   --enable-fontenum       use wxFontEnumerator class
1727   --enable-fontmap        use font encodings conversion classes
1728   --enable-fs_archive     use virtual archive filesystems
1729   --enable-fs_inet        use virtual HTTP/FTP filesystems
1730   --enable-fs_zip         now replaced by fs_archive
1731   --enable-geometry       use geometry class
1732   --enable-log            use logging system
1733   --enable-longlong       use wxLongLong class
1734   --enable-mimetype       use wxMimeTypesManager
1735   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1736   --enable-snglinst       use wxSingleInstanceChecker class
1737   --enable-sound          use wxSound class
1738   --enable-stdpaths       use wxStandardPaths class
1739   --enable-stopwatch      use wxStopWatch class
1740   --enable-streams        use wxStream etc classes
1741   --enable-sysoptions     use wxSystemOptions
1742   --enable-tarstream      use wxTar streams
1743   --enable-textbuf        use wxTextBuffer class
1744   --enable-textfile       use wxTextFile class
1745   --enable-timer          use wxTimer class
1746   --enable-variant        use wxVariant class
1747   --enable-zipstream      use wxZip streams
1748   --enable-url            use wxURL class
1749   --enable-protocol       use wxProtocol class
1750   --enable-protocol-http  HTTP support in wxProtocol
1751   --enable-protocol-ftp   FTP support in wxProtocol
1752   --enable-protocol-file  FILE support in wxProtocol
1753   --enable-threads        use threads
1754   --enable-iniconf        use wxIniConfig (Win32 only)
1755   --enable-regkey         use wxRegKey class (Win32 only)
1756   --enable-docview        use document view architecture
1757   --enable-help           use help subsystem
1758   --enable-mshtmlhelp     use MS HTML Help (win32)
1759   --enable-html           use wxHTML sub-library
1760   --enable-htmlhelp       use wxHTML-based help
1761   --enable-xrc            use XRC resources sub-library
1762   --enable-aui            use AUI docking library
1763   --enable-propgrid       use wxPropertyGrid library
1764   --enable-stc            use wxStyledTextCtrl library
1765   --enable-constraints    use layout-constraints system
1766   --enable-loggui         use standard GUI logger
1767   --enable-logwin         use wxLogWindow
1768   --enable-logdialog      use wxLogDialog
1769   --enable-mdi            use multiple document interface architecture
1770   --enable-mdidoc         use docview architecture with MDI
1771   --enable-mediactrl      use wxMediaCtrl class
1772   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1773   --enable-webkit         use wxWebKitCtrl (Mac)
1774   --enable-richtext       use wxRichTextCtrl
1775   --enable-graphics_ctx   use graphics context 2D drawing API
1776   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1777   --enable-printarch      use printing architecture
1778   --enable-svg            use wxSVGFileDC device context
1779   --enable-clipboard      use wxClipboard class
1780   --enable-dnd            use Drag'n'Drop classes
1781   --enable-metafile       use win32 metafiles
1782   --disable-controls      disable compilation of all standard controls
1783   --enable-accel          use accelerators
1784   --enable-animatectrl    use wxAnimationCtrl class
1785   --enable-button         use wxButton class
1786   --enable-bmpbutton      use wxBitmapButton class
1787   --enable-bmpcombobox    use wxBitmapComboBox class
1788   --enable-calendar       use wxCalendarCtrl class
1789   --enable-caret          use wxCaret class
1790   --enable-checkbox       use wxCheckBox class
1791   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1792   --enable-choice         use wxChoice class
1793   --enable-choicebook     use wxChoicebook class
1794   --enable-collpane       use wxCollapsiblePane class
1795   --enable-colourpicker   use wxColourPickerCtrl class
1796   --enable-combobox       use wxComboBox class
1797   --enable-comboctrl      use wxComboCtrl class
1798   --enable-datepick       use wxDatePickerCtrl class
1799   --enable-dirpicker      use wxDirPickerCtrl class
1800   --enable-display        use wxDisplay class
1801   --enable-detect_sm      use code to detect X11 session manager
1802   --enable-editablebox    use wxEditableListBox class
1803   --enable-filepicker     use wxFilePickerCtrl class
1804   --enable-filectrl       use wxFileCtrl class
1805   --enable-fontpicker     use wxFontPickerCtrl class
1806   --enable-gauge          use wxGauge class
1807   --enable-grid           use wxGrid class
1808   --enable-dataviewctrl   use wxDataViewCtrl class
1809   --enable-hyperlink      use wxHyperlinkCtrl class
1810   --enable-imaglist       use wxImageList class
1811   --enable-listbook       use wxListbook class
1812   --enable-listbox        use wxListBox class
1813   --enable-listctrl       use wxListCtrl class
1814   --enable-notebook       use wxNotebook class
1815   --enable-notifmsg       use wxNotificationMessage class
1816   --enable-odcombobox     use wxOwnerDrawnComboBox class
1817   --enable-radiobox       use wxRadioBox class
1818   --enable-radiobtn       use wxRadioButton class
1819   --enable-sash           use wxSashWindow class
1820   --enable-scrollbar      use wxScrollBar class and scrollable windows
1821   --enable-searchctrl     use wxSearchCtrl class
1822   --enable-slider         use wxSlider class
1823   --enable-spinbtn        use wxSpinButton class
1824   --enable-spinctrl       use wxSpinCtrl class
1825   --enable-splitter       use wxSplitterWindow class
1826   --enable-statbmp        use wxStaticBitmap class
1827   --enable-statbox        use wxStaticBox class
1828   --enable-statline       use wxStaticLine class
1829   --enable-stattext       use wxStaticText class
1830   --enable-statusbar      use wxStatusBar class
1831   --enable-tabdialog      use wxTabControl class
1832   --enable-taskbaricon    use wxTaskBarIcon class
1833   --enable-textctrl       use wxTextCtrl class
1834   --enable-togglebtn      use wxToggleButton class
1835   --enable-toolbar        use wxToolBar class
1836   --enable-tbarnative     use native wxToolBar class
1837   --enable-treebook       use wxTreebook class
1838   --enable-toolbook       use wxToolbook class
1839   --enable-treectrl       use wxTreeCtrl class
1840   --enable-tipwindow      use wxTipWindow class
1841   --enable-popupwin       use wxPopUpWindow class
1842   --enable-commondlg      use all common dialogs
1843   --enable-aboutdlg       use wxAboutBox
1844   --enable-choicedlg      use wxChoiceDialog
1845   --enable-coldlg         use wxColourDialog
1846   --enable-filedlg        use wxFileDialog
1847   --enable-finddlg        use wxFindReplaceDialog
1848   --enable-fontdlg        use wxFontDialog
1849   --enable-dirdlg         use wxDirDialog
1850   --enable-msgdlg         use wxMessageDialog
1851   --enable-numberdlg      use wxNumberEntryDialog
1852   --enable-splash         use wxSplashScreen
1853   --enable-textdlg        use wxTextDialog
1854   --enable-tipdlg         use startup tips
1855   --enable-progressdlg    use wxProgressDialog
1856   --enable-wizarddlg      use wxWizard
1857   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1858   --enable-miniframe      use wxMiniFrame class
1859   --enable-tooltips       use wxToolTip class
1860   --enable-splines        use spline drawing code
1861   --enable-mousewheel     use mousewheel
1862   --enable-validators     use wxValidator and derived classes
1863   --enable-busyinfo       use wxBusyInfo
1864   --enable-joystick       use wxJoystick
1865   --enable-metafiles      use wxMetaFile (Win32 only)
1866   --enable-dragimage      use wxDragImage
1867   --enable-accessibility  enable accessibility support
1868   --enable-palette        use wxPalette class
1869   --enable-image          use wxImage class
1870   --enable-gif            use gif images (GIF file format)
1871   --enable-pcx            use pcx images (PCX file format)
1872   --enable-tga            use tga images (TGA file format)
1873   --enable-iff            use iff images (IFF file format)
1874   --enable-pnm            use pnm images (PNM file format)
1875   --enable-xpm            use xpm images (XPM file format)
1876   --enable-ico_cur        use Windows ICO and CUR formats
1877   --enable-dccache        cache temporary wxDC objects (Win32 only)
1878   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1879   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1880   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1881   --enable-wxdib          use wxDIB class (Win32 only)
1882   --enable-autoidman      use automatic ids management
1883   --disable-largefile     omit support for large files
1884   --disable-gtktest       do not try to compile and run a test GTK+ program
1885   --disable-gtktest       Do not try to compile and run a test GTK program
1886   --disable-sdltest       Do not try to compile and run a test SDL program
1887   --enable-omf            use OMF object format (OS/2)
1888   --disable-dependency-tracking
1889                           don't use dependency tracking even if the compiler
1890                           can
1891   --disable-precomp-headers
1892                           don't use precompiled headers even if compiler can
1893
1894 Optional Packages:
1895   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1896   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1897   --without-subdirs       don't generate makefiles for samples/demos/...
1898   --with-flavour=NAME     specify a name to identify this build
1899   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1900   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1901   --with-motif            use Motif/Lesstif
1902   --with-osx_carbon       use Mac OS X (Carbon)
1903   --with-osx_cocoa        use Mac OS X (Cocoa)
1904   --with-mac              use Mac OS X (Default)
1905   --with-cocoa            use Cocoa
1906   --with-wine             use Wine
1907   --with-msw              use MS-Windows
1908   --with-pm               use OS/2 Presentation Manager
1909   --with-mgl              use SciTech MGL
1910   --with-directfb         use DirectFB
1911   --with-microwin         use MicroWindows
1912   --with-x11              use X11
1913   --with-libpng           use libpng (PNG image format)
1914   --with-libjpeg          use libjpeg (JPEG file format)
1915   --with-libtiff          use libtiff (TIFF file format)
1916   --with-libxpm           use libxpm (XPM file format)
1917   --with-libiconv         use libiconv (character conversion)
1918   --with-libmspack        use libmspack (CHM help files loading)
1919   --without-gtkprint      don't use GTK printing support
1920   --without-gnomeprint    don't use GNOME printing libraries
1921   --with-gnomevfs         use GNOME VFS for associating MIME types
1922   --with-hildon           use Hildon framework for Nokia 770
1923   --with-opengl           use OpenGL (or Mesa)
1924   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1925   --with-sdl              use SDL for audio on Unix
1926   --with-regex            enable support for wxRegEx class
1927   --with-zlib             use zlib for LZW compression
1928   --with-expat            enable XML support using expat parser
1929   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1930   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1931   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1932   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1933   --with-x                use the X Window System
1934   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1935   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1936   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1937   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1938   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1939
1940 Some influential environment variables:
1941   CC          C compiler command
1942   CFLAGS      C compiler flags
1943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1944               nonstandard directory <lib dir>
1945   LIBS        libraries to pass to the linker, e.g. -l<library>
1946   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1947               you have headers in a nonstandard directory <include dir>
1948   CPP         C preprocessor
1949   CXX         C++ compiler command
1950   CXXFLAGS    C++ compiler flags
1951   PKG_CONFIG  path to pkg-config utility
1952   DIRECTFB_CFLAGS
1953               C compiler flags for DIRECTFB, overriding pkg-config
1954   DIRECTFB_LIBS
1955               linker flags for DIRECTFB, overriding pkg-config
1956   XMKMF       Path to xmkmf, Makefile generator for X Window System
1957   PANGOX_CFLAGS
1958               C compiler flags for PANGOX, overriding pkg-config
1959   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1960   PANGOFT2_CFLAGS
1961               C compiler flags for PANGOFT2, overriding pkg-config
1962   PANGOFT2_LIBS
1963               linker flags for PANGOFT2, overriding pkg-config
1964   PANGOXFT_CFLAGS
1965               C compiler flags for PANGOXFT, overriding pkg-config
1966   PANGOXFT_LIBS
1967               linker flags for PANGOXFT, overriding pkg-config
1968   GTKPRINT_CFLAGS
1969               C compiler flags for GTKPRINT, overriding pkg-config
1970   GTKPRINT_LIBS
1971               linker flags for GTKPRINT, overriding pkg-config
1972   LIBGNOMEPRINTUI_CFLAGS
1973               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1974   LIBGNOMEPRINTUI_LIBS
1975               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1976   GNOMEVFS_CFLAGS
1977               C compiler flags for GNOMEVFS, overriding pkg-config
1978   GNOMEVFS_LIBS
1979               linker flags for GNOMEVFS, overriding pkg-config
1980   HILDON_CFLAGS
1981               C compiler flags for HILDON, overriding pkg-config
1982   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1983   CAIRO_CFLAGS
1984               C compiler flags for CAIRO, overriding pkg-config
1985   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1986   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1987   GST_LIBS    linker flags for GST, overriding pkg-config
1988
1989 Use these variables to override the choices made by `configure' or to help
1990 it to find libraries and programs with nonstandard names/locations.
1991
1992 Report bugs to <wx-dev@lists.wxwidgets.org>.
1993 _ACEOF
1994 ac_status=$?
1995 fi
1996
1997 if test "$ac_init_help" = "recursive"; then
1998   # If there are subdirs, report their specific --help.
1999   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2000     test -d "$ac_dir" || continue
2001     ac_builddir=.
2002
2003 case "$ac_dir" in
2004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005 *)
2006   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2007   # A ".." for each directory in $ac_dir_suffix.
2008   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2009   case $ac_top_builddir_sub in
2010   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2011   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2012   esac ;;
2013 esac
2014 ac_abs_top_builddir=$ac_pwd
2015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2016 # for backward compatibility:
2017 ac_top_builddir=$ac_top_build_prefix
2018
2019 case $srcdir in
2020   .)  # We are building in place.
2021     ac_srcdir=.
2022     ac_top_srcdir=$ac_top_builddir_sub
2023     ac_abs_top_srcdir=$ac_pwd ;;
2024   [\\/]* | ?:[\\/]* )  # Absolute name.
2025     ac_srcdir=$srcdir$ac_dir_suffix;
2026     ac_top_srcdir=$srcdir
2027     ac_abs_top_srcdir=$srcdir ;;
2028   *) # Relative name.
2029     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2030     ac_top_srcdir=$ac_top_build_prefix$srcdir
2031     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2032 esac
2033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2034
2035     cd "$ac_dir" || { ac_status=$?; continue; }
2036     # Check for guested configure.
2037     if test -f "$ac_srcdir/configure.gnu"; then
2038       echo &&
2039       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2040     elif test -f "$ac_srcdir/configure"; then
2041       echo &&
2042       $SHELL "$ac_srcdir/configure" --help=recursive
2043     else
2044       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2045     fi || ac_status=$?
2046     cd "$ac_pwd" || { ac_status=$?; break; }
2047   done
2048 fi
2049
2050 test -n "$ac_init_help" && exit $ac_status
2051 if $ac_init_version; then
2052   cat <<\_ACEOF
2053 wxWidgets configure 2.9.0
2054 generated by GNU Autoconf 2.61
2055
2056 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2057 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2058 This configure script is free software; the Free Software Foundation
2059 gives unlimited permission to copy, distribute and modify it.
2060 _ACEOF
2061   exit
2062 fi
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by wxWidgets $as_me 2.9.0, which was
2068 generated by GNU Autoconf 2.61.  Invocation command line was
2069
2070   $ $0 $@
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2088
2089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   echo "PATH: $as_dir"
2105 done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131   for ac_arg
2132   do
2133     case $ac_arg in
2134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136     | -silent | --silent | --silen | --sile | --sil)
2137       continue ;;
2138     *\'*)
2139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140     esac
2141     case $ac_pass in
2142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2143     2)
2144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2145       if test $ac_must_keep_next = true; then
2146         ac_must_keep_next=false # Got value, back to normal.
2147       else
2148         case $ac_arg in
2149           *=* | --config-cache | -C | -disable-* | --disable-* \
2150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152           | -with-* | --with-* | -without-* | --without-* | --x)
2153             case "$ac_configure_args0 " in
2154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155             esac
2156             ;;
2157           -* ) ac_must_keep_next=true ;;
2158         esac
2159       fi
2160       ac_configure_args="$ac_configure_args '$ac_arg'"
2161       ;;
2162     esac
2163   done
2164 done
2165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log.  We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174   # Save into config.log some information that might help in debugging.
2175   {
2176     echo
2177
2178     cat <<\_ASBOX
2179 ## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##
2182 _ASBOX
2183     echo
2184     # The following way of writing the cache mishandles newlines in values,
2185 (
2186   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187     eval ac_val=\$$ac_var
2188     case $ac_val in #(
2189     *${as_nl}*)
2190       case $ac_var in #(
2191       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2192 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2193       esac
2194       case $ac_var in #(
2195       _ | IFS | as_nl) ;; #(
2196       *) $as_unset $ac_var ;;
2197       esac ;;
2198     esac
2199   done
2200   (set) 2>&1 |
2201     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202     *${as_nl}ac_space=\ *)
2203       sed -n \
2204         "s/'\''/'\''\\\\'\'''\''/g;
2205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206       ;; #(
2207     *)
2208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209       ;;
2210     esac |
2211     sort
2212 )
2213     echo
2214
2215     cat <<\_ASBOX
2216 ## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##
2219 _ASBOX
2220     echo
2221     for ac_var in $ac_subst_vars
2222     do
2223       eval ac_val=\$$ac_var
2224       case $ac_val in
2225       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226       esac
2227       echo "$ac_var='\''$ac_val'\''"
2228     done | sort
2229     echo
2230
2231     if test -n "$ac_subst_files"; then
2232       cat <<\_ASBOX
2233 ## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##
2236 _ASBOX
2237       echo
2238       for ac_var in $ac_subst_files
2239       do
2240         eval ac_val=\$$ac_var
2241         case $ac_val in
2242         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243         esac
2244         echo "$ac_var='\''$ac_val'\''"
2245       done | sort
2246       echo
2247     fi
2248
2249     if test -s confdefs.h; then
2250       cat <<\_ASBOX
2251 ## ----------- ##
2252 ## confdefs.h. ##
2253 ## ----------- ##
2254 _ASBOX
2255       echo
2256       cat confdefs.h
2257       echo
2258     fi
2259     test "$ac_signal" != 0 &&
2260       echo "$as_me: caught signal $ac_signal"
2261     echo "$as_me: exit $exit_status"
2262   } >&5
2263   rm -f core *.core core.conftest.* &&
2264     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265     exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284 _ACEOF
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2294 _ACEOF
2295
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 _ACEOF
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer explicitly selected file to automatically selected ones.
2304 if test -n "$CONFIG_SITE"; then
2305   set x "$CONFIG_SITE"
2306 elif test "x$prefix" != xNONE; then
2307   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2308 else
2309   set x "$ac_default_prefix/share/config.site" \
2310         "$ac_default_prefix/etc/config.site"
2311 fi
2312 shift
2313 for ac_site_file
2314 do
2315   if test -r "$ac_site_file"; then
2316     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2317 echo "$as_me: loading site script $ac_site_file" >&6;}
2318     sed 's/^/| /' "$ac_site_file" >&5
2319     . "$ac_site_file"
2320   fi
2321 done
2322
2323 if test -r "$cache_file"; then
2324   # Some versions of bash will fail to source /dev/null (special
2325   # files actually), so we avoid doing that.
2326   if test -f "$cache_file"; then
2327     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2328 echo "$as_me: loading cache $cache_file" >&6;}
2329     case $cache_file in
2330       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331       *)                      . "./$cache_file";;
2332     esac
2333   fi
2334 else
2335   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2336 echo "$as_me: creating cache $cache_file" >&6;}
2337   >$cache_file
2338 fi
2339
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345   eval ac_new_set=\$ac_env_${ac_var}_set
2346   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347   eval ac_new_val=\$ac_env_${ac_var}_value
2348   case $ac_old_set,$ac_new_set in
2349     set,)
2350       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352       ac_cache_corrupted=: ;;
2353     ,set)
2354       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2355 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,);;
2358     *)
2359       if test "x$ac_old_val" != "x$ac_new_val"; then
2360         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2361 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2363 echo "$as_me:   former value:  $ac_old_val" >&2;}
2364         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2365 echo "$as_me:   current value: $ac_new_val" >&2;}
2366         ac_cache_corrupted=:
2367       fi;;
2368   esac
2369   # Pass precious variables to config.status.
2370   if test "$ac_new_set" = set; then
2371     case $ac_new_val in
2372     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373     *) ac_arg=$ac_var=$ac_new_val ;;
2374     esac
2375     case " $ac_configure_args " in
2376       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2377       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2378     esac
2379   fi
2380 done
2381 if $ac_cache_corrupted; then
2382   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2383 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2384   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2385 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2386    { (exit 1); exit 1; }; }
2387 fi
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
2421
2422
2423 ac_aux_dir=
2424 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2425   if test -f "$ac_dir/install-sh"; then
2426     ac_aux_dir=$ac_dir
2427     ac_install_sh="$ac_aux_dir/install-sh -c"
2428     break
2429   elif test -f "$ac_dir/install.sh"; then
2430     ac_aux_dir=$ac_dir
2431     ac_install_sh="$ac_aux_dir/install.sh -c"
2432     break
2433   elif test -f "$ac_dir/shtool"; then
2434     ac_aux_dir=$ac_dir
2435     ac_install_sh="$ac_aux_dir/shtool install -c"
2436     break
2437   fi
2438 done
2439 if test -z "$ac_aux_dir"; then
2440   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2441 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2442    { (exit 1); exit 1; }; }
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2457 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2458    { (exit 1); exit 1; }; }
2459
2460 { echo "$as_me:$LINENO: checking build system type" >&5
2461 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2462 if test "${ac_cv_build+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_build_alias=$build_alias
2466 test "x$ac_build_alias" = x &&
2467   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2468 test "x$ac_build_alias" = x &&
2469   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2470 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2471    { (exit 1); exit 1; }; }
2472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 fi
2478 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2479 echo "${ECHO_T}$ac_cv_build" >&6; }
2480 case $ac_cv_build in
2481 *-*-*) ;;
2482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2483 echo "$as_me: error: invalid value of canonical build" >&2;}
2484    { (exit 1); exit 1; }; };;
2485 esac
2486 build=$ac_cv_build
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_build
2489 shift
2490 build_cpu=$1
2491 build_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 build_os=$*
2496 IFS=$ac_save_IFS
2497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2498
2499
2500 { echo "$as_me:$LINENO: checking host system type" >&5
2501 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2502 if test "${ac_cv_host+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test "x$host_alias" = x; then
2506   ac_cv_host=$ac_cv_build
2507 else
2508   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2510 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2511    { (exit 1); exit 1; }; }
2512 fi
2513
2514 fi
2515 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2516 echo "${ECHO_T}$ac_cv_host" >&6; }
2517 case $ac_cv_host in
2518 *-*-*) ;;
2519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2520 echo "$as_me: error: invalid value of canonical host" >&2;}
2521    { (exit 1); exit 1; }; };;
2522 esac
2523 host=$ac_cv_host
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_host
2526 shift
2527 host_cpu=$1
2528 host_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 host_os=$*
2533 IFS=$ac_save_IFS
2534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2535
2536
2537 { echo "$as_me:$LINENO: checking target system type" >&5
2538 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2539 if test "${ac_cv_target+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test "x$target_alias" = x; then
2543   ac_cv_target=$ac_cv_host
2544 else
2545   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2546     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2547 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2548    { (exit 1); exit 1; }; }
2549 fi
2550
2551 fi
2552 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2553 echo "${ECHO_T}$ac_cv_target" >&6; }
2554 case $ac_cv_target in
2555 *-*-*) ;;
2556 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2557 echo "$as_me: error: invalid value of canonical target" >&2;}
2558    { (exit 1); exit 1; }; };;
2559 esac
2560 target=$ac_cv_target
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_target
2563 shift
2564 target_cpu=$1
2565 target_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 target_os=$*
2570 IFS=$ac_save_IFS
2571 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 # The aliases save the names the user supplied, while $host etc.
2575 # will get canonicalized.
2576 test -n "$target_alias" &&
2577   test "$program_prefix$program_suffix$program_transform_name" = \
2578     NONENONEs,x,x, &&
2579   program_prefix=${target_alias}-
2580
2581
2582
2583 wx_major_version_number=2
2584 wx_minor_version_number=9
2585 wx_release_number=0
2586 wx_subrelease_number=0
2587
2588 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2589 WX_VERSION=$WX_RELEASE.$wx_release_number
2590 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2591
2592 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2593
2594
2595 wx_top_builddir="`pwd`"
2596
2597
2598
2599
2600 USE_UNIX=1
2601 USE_OS2=0
2602 USE_WIN32=0
2603 USE_DOS=0
2604 USE_BEOS=0
2605 USE_MAC=0
2606
2607 USE_AIX=
2608 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2609 USE_GNU=                            USE_HPUX=
2610 USE_LINUX=
2611 USE_NETBSD=
2612 USE_OPENBSD=
2613 USE_OSF=                            USE_SGI=
2614 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2615 USE_ULTRIX=
2616 USE_UNIXWARE=
2617
2618 USE_ALPHA=
2619
2620 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2621
2622 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2623
2624 DEFAULT_wxUSE_COCOA=0
2625 DEFAULT_wxUSE_GTK=0
2626 DEFAULT_wxUSE_OSX_CARBON=0
2627 DEFAULT_wxUSE_OSX_COCOA=0
2628 DEFAULT_wxUSE_MGL=0
2629 DEFAULT_wxUSE_MICROWIN=0
2630 DEFAULT_wxUSE_MOTIF=0
2631 DEFAULT_wxUSE_MSW=0
2632 DEFAULT_wxUSE_PM=0
2633 DEFAULT_wxUSE_X11=0
2634 DEFAULT_wxUSE_DFB=0
2635
2636 DEFAULT_DEFAULT_wxUSE_COCOA=0
2637 DEFAULT_DEFAULT_wxUSE_GTK=0
2638 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2639 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2640 DEFAULT_DEFAULT_wxUSE_MGL=0
2641 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2642 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2643 DEFAULT_DEFAULT_wxUSE_MSW=0
2644 DEFAULT_DEFAULT_wxUSE_PM=0
2645 DEFAULT_DEFAULT_wxUSE_X11=0
2646 DEFAULT_DEFAULT_wxUSE_DFB=0
2647
2648 PROGRAM_EXT=
2649 SO_SUFFIX=so
2650 SAMPLES_RPATH_FLAG=
2651 SAMPLES_RPATH_POSTLINK=
2652
2653 DEFAULT_STD_FLAG=yes
2654
2655 case "${host}" in
2656   *-hp-hpux* )
2657     USE_HPUX=1
2658     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2659     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2660     SO_SUFFIX=sl
2661     cat >>confdefs.h <<\_ACEOF
2662 #define __HPUX__ 1
2663 _ACEOF
2664
2665
2666             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2667   ;;
2668   *-*-linux* )
2669     USE_LINUX=1
2670     cat >>confdefs.h <<\_ACEOF
2671 #define __LINUX__ 1
2672 _ACEOF
2673
2674     TMP=`uname -m`
2675     if test "x$TMP" = "xalpha"; then
2676       USE_ALPHA=1
2677       cat >>confdefs.h <<\_ACEOF
2678 #define __ALPHA__ 1
2679 _ACEOF
2680
2681     fi
2682     DEFAULT_DEFAULT_wxUSE_GTK=1
2683   ;;
2684   *-*-gnu* | *-*-k*bsd*-gnu )
2685     USE_GNU=1
2686     TMP=`uname -m`
2687     if test "x$TMP" = "xalpha"; then
2688       USE_ALPHA=1
2689       cat >>confdefs.h <<\_ACEOF
2690 #define __ALPHA__ 1
2691 _ACEOF
2692
2693     fi
2694     DEFAULT_DEFAULT_wxUSE_GTK=1
2695   ;;
2696   *-*-irix5* | *-*-irix6* )
2697     USE_SGI=1
2698     USE_SVR4=1
2699     cat >>confdefs.h <<\_ACEOF
2700 #define __SGI__ 1
2701 _ACEOF
2702
2703     cat >>confdefs.h <<\_ACEOF
2704 #define __SVR4__ 1
2705 _ACEOF
2706
2707     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2708   ;;
2709   *-*-solaris2* )
2710     USE_SUN=1
2711     USE_SOLARIS=1
2712     USE_SVR4=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __SUN__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __SOLARIS__ 1
2719 _ACEOF
2720
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __SVR4__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2726     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2727   ;;
2728   *-*-sunos4* )
2729     USE_SUN=1
2730     USE_SUNOS=1
2731     USE_BSD=1
2732     cat >>confdefs.h <<\_ACEOF
2733 #define __SUN__ 1
2734 _ACEOF
2735
2736     cat >>confdefs.h <<\_ACEOF
2737 #define __SUNOS__ 1
2738 _ACEOF
2739
2740     cat >>confdefs.h <<\_ACEOF
2741 #define __BSD__ 1
2742 _ACEOF
2743
2744     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2745   ;;
2746   *-*-freebsd*)
2747     USE_BSD=1
2748     USE_FREEBSD=1
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __FREEBSD__ 1
2751 _ACEOF
2752
2753     cat >>confdefs.h <<\_ACEOF
2754 #define __BSD__ 1
2755 _ACEOF
2756
2757     DEFAULT_DEFAULT_wxUSE_GTK=1
2758   ;;
2759   *-*-openbsd*|*-*-mirbsd*)
2760     USE_BSD=1
2761     USE_OPENBSD=1
2762     cat >>confdefs.h <<\_ACEOF
2763 #define __OPENBSD__ 1
2764 _ACEOF
2765
2766     cat >>confdefs.h <<\_ACEOF
2767 #define __BSD__ 1
2768 _ACEOF
2769
2770     DEFAULT_DEFAULT_wxUSE_GTK=1
2771   ;;
2772   *-*-netbsd*)
2773     USE_BSD=1
2774     USE_NETBSD=1
2775     cat >>confdefs.h <<\_ACEOF
2776 #define __NETBSD__ 1
2777 _ACEOF
2778
2779     cat >>confdefs.h <<\_ACEOF
2780 #define __BSD__ 1
2781 _ACEOF
2782
2783     DEFAULT_DEFAULT_wxUSE_GTK=1
2784     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2785
2786             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2787   ;;
2788   *-*-osf* )
2789     USE_ALPHA=1
2790     USE_OSF=1
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __ALPHA__ 1
2793 _ACEOF
2794
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __OSF__ 1
2797 _ACEOF
2798
2799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2800     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2801   ;;
2802   *-*-dgux5* )
2803     USE_ALPHA=1
2804     USE_SVR4=1
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __ALPHA__ 1
2807 _ACEOF
2808
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __SVR4__ 1
2811 _ACEOF
2812
2813     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2814   ;;
2815   *-*-sysv5* )
2816     USE_SYSV=1
2817     USE_SVR4=1
2818     cat >>confdefs.h <<\_ACEOF
2819 #define __SYSV__ 1
2820 _ACEOF
2821
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __SVR4__ 1
2824 _ACEOF
2825
2826     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2827   ;;
2828   *-*-aix* )
2829     USE_AIX=1
2830     USE_SYSV=1
2831     USE_SVR4=1
2832                         SO_SUFFIX=a
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __AIX__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SYSV__ 1
2839 _ACEOF
2840
2841     cat >>confdefs.h <<\_ACEOF
2842 #define __SVR4__ 1
2843 _ACEOF
2844
2845     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2846   ;;
2847
2848   *-*-*UnixWare*)
2849     USE_SYSV=1
2850     USE_SVR4=1
2851     USE_UNIXWARE=1
2852     cat >>confdefs.h <<\_ACEOF
2853 #define __UNIXWARE__ 1
2854 _ACEOF
2855
2856   ;;
2857
2858   *-*-cygwin* | *-*-mingw32* )
2859                 SO_SUFFIX=dll
2860     PROGRAM_EXT=".exe"
2861     DEFAULT_DEFAULT_wxUSE_MSW=1
2862   ;;
2863
2864   *-pc-msdosdjgpp )
2865     USE_UNIX=0
2866     USE_DOS=1
2867     cat >>confdefs.h <<\_ACEOF
2868 #define __DOS__ 1
2869 _ACEOF
2870
2871     PROGRAM_EXT=".exe"
2872     DEFAULT_DEFAULT_wxUSE_MGL=1
2873   ;;
2874
2875   *-pc-os2_emx | *-pc-os2-emx )
2876     cat >>confdefs.h <<\_ACEOF
2877 #define __EMX__ 1
2878 _ACEOF
2879
2880     USE_OS2=1
2881     cat >>confdefs.h <<\_ACEOF
2882 #define __OS2__ 1
2883 _ACEOF
2884
2885     PROGRAM_EXT=".exe"
2886     DEFAULT_DEFAULT_wxUSE_PM=1
2887         CXX=gcc
2888     LDFLAGS="$LDFLAGS -Zcrtdll"
2889                         ac_executable_extensions=".exe"
2890     export ac_executable_extensions
2891             ac_save_IFS="$IFS"
2892     IFS='\\'
2893     ac_TEMP_PATH=
2894     for ac_dir in $PATH; do
2895       IFS=$ac_save_IFS
2896       if test -z "$ac_TEMP_PATH"; then
2897         ac_TEMP_PATH="$ac_dir"
2898       else
2899         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2900       fi
2901     done
2902     export PATH="$ac_TEMP_PATH"
2903     unset ac_TEMP_PATH
2904     DEFAULT_STD_FLAG=no
2905   ;;
2906
2907   *-*-darwin* )
2908         USE_BSD=1
2909     USE_DARWIN=1
2910     SO_SUFFIX=dylib
2911     cat >>confdefs.h <<\_ACEOF
2912 #define __BSD__ 1
2913 _ACEOF
2914
2915     cat >>confdefs.h <<\_ACEOF
2916 #define __DARWIN__ 1
2917 _ACEOF
2918
2919     cat >>confdefs.h <<\_ACEOF
2920 #define TARGET_CARBON 1
2921 _ACEOF
2922
2923     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2924     DEFAULT_STD_FLAG=no
2925   ;;
2926   powerpc-apple-macos* )
2927         USE_UNIX=0
2928             ac_cv_c_bigendian=yes
2929     SO_SUFFIX=shlib
2930             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2931     DEFAULT_STD_FLAG=no
2932   ;;
2933
2934   *-*-beos* )
2935         USE_BEOS=1
2936     cat >>confdefs.h <<\_ACEOF
2937 #define __BEOS__ 1
2938 _ACEOF
2939
2940   ;;
2941
2942   *)
2943     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2944 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2945     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2946 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2947
2948     DEFAULT_DEFAULT_wxUSE_X11=1
2949     DEFAULT_wxUSE_SHARED=no
2950 esac
2951
2952
2953
2954 DEFAULT_wxUSE_ALL_FEATURES=yes
2955
2956 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2957 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2958
2959 DEFAULT_wxUSE_DMALLOC=no
2960 DEFAULT_wxUSE_LIBGNOMEVFS=no
2961 DEFAULT_wxUSE_LIBHILDON=no
2962 DEFAULT_wxUSE_LIBMSPACK=no
2963 DEFAULT_wxUSE_LIBSDL=no
2964 DEFAULT_wxUSE_OPENGL=no
2965
2966 DEFAULT_wxUSE_ACCESSIBILITY=no
2967 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2968 DEFAULT_wxUSE_IPV6=no
2969 DEFAULT_wxUSE_MEDIACTRL=no
2970 DEFAULT_wxUSE_TAB_DIALOG=no
2971 DEFAULT_wxUSE_GSTREAMER8=no
2972
2973 DEFAULT_wxUSE_UNICODE_UTF8=auto
2974 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2975
2976 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2977
2978 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2979
2980 DEFAULT_wxUSE_GTK2=yes
2981
2982 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2983
2984
2985
2986
2987
2988           enablestring=disable
2989           defaultval=
2990           if test -z "$defaultval"; then
2991               if test x"$enablestring" = xdisable; then
2992                   defaultval=yes
2993               else
2994                   defaultval=no
2995               fi
2996           fi
2997
2998           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2999 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3000           # Check whether --enable-gui was given.
3001 if test "${enable_gui+set}" = set; then
3002   enableval=$enable_gui;
3003                           if test "$enableval" = yes; then
3004                             wx_cv_use_gui='wxUSE_GUI=yes'
3005                           else
3006                             wx_cv_use_gui='wxUSE_GUI=no'
3007                           fi
3008
3009 else
3010
3011                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3012
3013 fi
3014
3015
3016           eval "$wx_cv_use_gui"
3017
3018           if test x"$enablestring" = xdisable; then
3019             if test $wxUSE_GUI = yes; then
3020               result=no
3021             else
3022               result=yes
3023             fi
3024           else
3025             result=$wxUSE_GUI
3026           fi
3027
3028           { echo "$as_me:$LINENO: result: $result" >&5
3029 echo "${ECHO_T}$result" >&6; }
3030
3031
3032           enablestring=
3033           defaultval=
3034           if test -z "$defaultval"; then
3035               if test x"$enablestring" = xdisable; then
3036                   defaultval=yes
3037               else
3038                   defaultval=no
3039               fi
3040           fi
3041
3042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3043 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3044           # Check whether --enable-monolithic was given.
3045 if test "${enable_monolithic+set}" = set; then
3046   enableval=$enable_monolithic;
3047                           if test "$enableval" = yes; then
3048                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3049                           else
3050                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3051                           fi
3052
3053 else
3054
3055                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3056
3057 fi
3058
3059
3060           eval "$wx_cv_use_monolithic"
3061
3062           if test x"$enablestring" = xdisable; then
3063             if test $wxUSE_MONOLITHIC = yes; then
3064               result=no
3065             else
3066               result=yes
3067             fi
3068           else
3069             result=$wxUSE_MONOLITHIC
3070           fi
3071
3072           { echo "$as_me:$LINENO: result: $result" >&5
3073 echo "${ECHO_T}$result" >&6; }
3074
3075
3076           enablestring=
3077           defaultval=
3078           if test -z "$defaultval"; then
3079               if test x"$enablestring" = xdisable; then
3080                   defaultval=yes
3081               else
3082                   defaultval=no
3083               fi
3084           fi
3085
3086           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3087 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3088           # Check whether --enable-plugins was given.
3089 if test "${enable_plugins+set}" = set; then
3090   enableval=$enable_plugins;
3091                           if test "$enableval" = yes; then
3092                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3093                           else
3094                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3095                           fi
3096
3097 else
3098
3099                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3100
3101 fi
3102
3103
3104           eval "$wx_cv_use_plugins"
3105
3106           if test x"$enablestring" = xdisable; then
3107             if test $wxUSE_PLUGINS = yes; then
3108               result=no
3109             else
3110               result=yes
3111             fi
3112           else
3113             result=$wxUSE_PLUGINS
3114           fi
3115
3116           { echo "$as_me:$LINENO: result: $result" >&5
3117 echo "${ECHO_T}$result" >&6; }
3118
3119
3120           withstring=without
3121           defaultval=$wxUSE_ALL_FEATURES
3122           if test -z "$defaultval"; then
3123               if test x"$withstring" = xwithout; then
3124                   defaultval=yes
3125               else
3126                   defaultval=no
3127               fi
3128           fi
3129           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3130 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3131
3132 # Check whether --with-subdirs was given.
3133 if test "${with_subdirs+set}" = set; then
3134   withval=$with_subdirs;
3135                         if test "$withval" = yes; then
3136                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3137                         else
3138                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3139                         fi
3140
3141 else
3142
3143                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3144
3145 fi
3146
3147
3148           eval "$wx_cv_use_subdirs"
3149
3150           if test x"$withstring" = xwithout; then
3151             if test $wxWITH_SUBDIRS = yes; then
3152               result=no
3153             else
3154               result=yes
3155             fi
3156           else
3157             result=$wxWITH_SUBDIRS
3158           fi
3159
3160           { echo "$as_me:$LINENO: result: $result" >&5
3161 echo "${ECHO_T}$result" >&6; }
3162
3163
3164 # Check whether --with-flavour was given.
3165 if test "${with_flavour+set}" = set; then
3166   withval=$with_flavour; WX_FLAVOUR="$withval"
3167 fi
3168
3169
3170           enablestring=
3171           defaultval=
3172           if test -z "$defaultval"; then
3173               if test x"$enablestring" = xdisable; then
3174                   defaultval=yes
3175               else
3176                   defaultval=no
3177               fi
3178           fi
3179
3180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3181 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3182           # Check whether --enable-official_build was given.
3183 if test "${enable_official_build+set}" = set; then
3184   enableval=$enable_official_build;
3185                           if test "$enableval" = yes; then
3186                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3187                           else
3188                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3189                           fi
3190
3191 else
3192
3193                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3194
3195 fi
3196
3197
3198           eval "$wx_cv_use_official_build"
3199
3200           if test x"$enablestring" = xdisable; then
3201             if test $wxUSE_OFFICIAL_BUILD = yes; then
3202               result=no
3203             else
3204               result=yes
3205             fi
3206           else
3207             result=$wxUSE_OFFICIAL_BUILD
3208           fi
3209
3210           { echo "$as_me:$LINENO: result: $result" >&5
3211 echo "${ECHO_T}$result" >&6; }
3212
3213 # Check whether --enable-vendor was given.
3214 if test "${enable_vendor+set}" = set; then
3215   enableval=$enable_vendor; VENDOR="$enableval"
3216 fi
3217
3218 if test "x$VENDOR" = "x"; then
3219     VENDOR="custom"
3220 fi
3221
3222
3223           enablestring=disable
3224           defaultval=
3225           if test -z "$defaultval"; then
3226               if test x"$enablestring" = xdisable; then
3227                   defaultval=yes
3228               else
3229                   defaultval=no
3230               fi
3231           fi
3232
3233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3234 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3235           # Check whether --enable-all-features was given.
3236 if test "${enable_all_features+set}" = set; then
3237   enableval=$enable_all_features;
3238                           if test "$enableval" = yes; then
3239                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3240                           else
3241                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3242                           fi
3243
3244 else
3245
3246                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3247
3248 fi
3249
3250
3251           eval "$wx_cv_use_all_features"
3252
3253           if test x"$enablestring" = xdisable; then
3254             if test $wxUSE_ALL_FEATURES = yes; then
3255               result=no
3256             else
3257               result=yes
3258             fi
3259           else
3260             result=$wxUSE_ALL_FEATURES
3261           fi
3262
3263           { echo "$as_me:$LINENO: result: $result" >&5
3264 echo "${ECHO_T}$result" >&6; }
3265
3266
3267
3268 if test "$wxUSE_GUI" = "yes"; then
3269
3270
3271           enablestring=
3272           defaultval=
3273           if test -z "$defaultval"; then
3274               if test x"$enablestring" = xdisable; then
3275                   defaultval=yes
3276               else
3277                   defaultval=no
3278               fi
3279           fi
3280
3281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3282 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3283           # Check whether --enable-universal was given.
3284 if test "${enable_universal+set}" = set; then
3285   enableval=$enable_universal;
3286                           if test "$enableval" = yes; then
3287                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3288                           else
3289                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3290                           fi
3291
3292 else
3293
3294                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3295
3296 fi
3297
3298
3299           eval "$wx_cv_use_universal"
3300
3301           if test x"$enablestring" = xdisable; then
3302             if test $wxUSE_UNIVERSAL = yes; then
3303               result=no
3304             else
3305               result=yes
3306             fi
3307           else
3308             result=$wxUSE_UNIVERSAL
3309           fi
3310
3311           { echo "$as_me:$LINENO: result: $result" >&5
3312 echo "${ECHO_T}$result" >&6; }
3313
3314 if test "$wxUSE_UNIVERSAL" = "yes"; then
3315
3316 # Check whether --with-themes was given.
3317 if test "${with_themes+set}" = set; then
3318   withval=$with_themes; wxUNIV_THEMES="$withval"
3319 fi
3320
3321 fi
3322
3323
3324 # Check whether --with-gtk was given.
3325 if test "${with_gtk+set}" = set; then
3326   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3327 fi
3328
3329
3330 # Check whether --with-motif was given.
3331 if test "${with_motif+set}" = set; then
3332   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3333 fi
3334
3335
3336 # Check whether --with-osx_carbon was given.
3337 if test "${with_osx_carbon+set}" = set; then
3338   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3339 fi
3340
3341
3342 # Check whether --with-osx_cocoa was given.
3343 if test "${with_osx_cocoa+set}" = set; then
3344   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3345 fi
3346
3347
3348 # Check whether --with-mac was given.
3349 if test "${with_mac+set}" = set; then
3350   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3351 fi
3352
3353
3354 # Check whether --with-cocoa was given.
3355 if test "${with_cocoa+set}" = set; then
3356   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-wine was given.
3361 if test "${with_wine+set}" = set; then
3362   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3363 fi
3364
3365
3366 # Check whether --with-msw was given.
3367 if test "${with_msw+set}" = set; then
3368   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-pm was given.
3373 if test "${with_pm+set}" = set; then
3374   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-mgl was given.
3379 if test "${with_mgl+set}" = set; then
3380   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-directfb was given.
3385 if test "${with_directfb+set}" = set; then
3386   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-microwin was given.
3391 if test "${with_microwin+set}" = set; then
3392   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-x11 was given.
3397 if test "${with_x11+set}" = set; then
3398   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402           enablestring=
3403           defaultval=
3404           if test -z "$defaultval"; then
3405               if test x"$enablestring" = xdisable; then
3406                   defaultval=yes
3407               else
3408                   defaultval=no
3409               fi
3410           fi
3411
3412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3413 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3414           # Check whether --enable-nanox was given.
3415 if test "${enable_nanox+set}" = set; then
3416   enableval=$enable_nanox;
3417                           if test "$enableval" = yes; then
3418                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3419                           else
3420                             wx_cv_use_nanox='wxUSE_NANOX=no'
3421                           fi
3422
3423 else
3424
3425                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3426
3427 fi
3428
3429
3430           eval "$wx_cv_use_nanox"
3431
3432           if test x"$enablestring" = xdisable; then
3433             if test $wxUSE_NANOX = yes; then
3434               result=no
3435             else
3436               result=yes
3437             fi
3438           else
3439             result=$wxUSE_NANOX
3440           fi
3441
3442           { echo "$as_me:$LINENO: result: $result" >&5
3443 echo "${ECHO_T}$result" >&6; }
3444
3445
3446 # Check whether --enable-gtk2 was given.
3447 if test "${enable_gtk2+set}" = set; then
3448   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3449 fi
3450
3451
3452           enablestring=
3453           defaultval=
3454           if test -z "$defaultval"; then
3455               if test x"$enablestring" = xdisable; then
3456                   defaultval=yes
3457               else
3458                   defaultval=no
3459               fi
3460           fi
3461
3462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3463 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3464           # Check whether --enable-gpe was given.
3465 if test "${enable_gpe+set}" = set; then
3466   enableval=$enable_gpe;
3467                           if test "$enableval" = yes; then
3468                             wx_cv_use_gpe='wxUSE_GPE=yes'
3469                           else
3470                             wx_cv_use_gpe='wxUSE_GPE=no'
3471                           fi
3472
3473 else
3474
3475                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3476
3477 fi
3478
3479
3480           eval "$wx_cv_use_gpe"
3481
3482           if test x"$enablestring" = xdisable; then
3483             if test $wxUSE_GPE = yes; then
3484               result=no
3485             else
3486               result=yes
3487             fi
3488           else
3489             result=$wxUSE_GPE
3490           fi
3491
3492           { echo "$as_me:$LINENO: result: $result" >&5
3493 echo "${ECHO_T}$result" >&6; }
3494
3495
3496
3497 { echo "$as_me:$LINENO: checking for toolkit" >&5
3498 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3499
3500
3501
3502 # In Wine, we need to default to MSW, not GTK or MOTIF
3503 if test "$wxUSE_WINE" = "yes"; then
3504     DEFAULT_DEFAULT_wxUSE_GTK=0
3505     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3506     DEFAULT_DEFAULT_wxUSE_MSW=1
3507     wxUSE_SHARED=no
3508     CC=${CC:-winegcc}
3509     CXX=${CXX:-wineg++}
3510 fi
3511
3512
3513 if test "$wxUSE_GUI" = "yes"; then
3514
3515     if test "$USE_BEOS" = 1; then
3516         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3517 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3518    { (exit 1); exit 1; }; }
3519     fi
3520
3521     if test "$TOOLKIT_GIVEN" = 1; then
3522             for toolkit in $ALL_TOOLKITS; do
3523         var=wxUSE_$toolkit
3524         eval "value=\$${var}"
3525         if test "x$value" = "xno"; then
3526           eval "$var=0"
3527         elif test "x$value" != "x"; then
3528           eval "$var=1"
3529         fi
3530
3531         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3532           eval "wx${toolkit}_VERSION=$value"
3533         fi
3534       done
3535     else
3536             for toolkit in $ALL_TOOLKITS; do
3537         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3538         eval "wxUSE_$toolkit=\$${var}"
3539       done
3540     fi
3541
3542             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3543                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3544                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3545
3546         case "${host}" in
3547       *-pc-os2_emx | *-pc-os2-emx )
3548         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3549     esac
3550
3551     case "$NUM_TOOLKITS" in
3552       1)
3553       ;;
3554       0)
3555         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3556 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3557    { (exit 1); exit 1; }; }
3558       ;;
3559       *)
3560         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3561 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3562    { (exit 1); exit 1; }; }
3563     esac
3564
3565     # to be removed when --disable-gtk2 isn't needed
3566     if test "x$wxUSE_GTK2" = "xyes"; then
3567         wxGTK_VERSION=2
3568     elif test "x$wxUSE_GTK2" = "xno"; then
3569         wxGTK_VERSION=1
3570     fi
3571
3572     for toolkit in $ALL_TOOLKITS; do
3573         var=wxUSE_$toolkit
3574         eval "value=\$${var}"
3575         if test "$value" = 1; then
3576           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3577           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3578 echo "${ECHO_T}$toolkit_echo" >&6; }
3579         fi
3580     done
3581 else
3582     if test "x$host_alias" != "x"; then
3583         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3584 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3585     else
3586         { echo "$as_me:$LINENO: result: base only" >&5
3587 echo "${ECHO_T}base only" >&6; }
3588     fi
3589 fi
3590
3591 wxUSE_MAC=0
3592 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3593     wxUSE_MAC=1
3594 fi
3595
3596
3597
3598           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3599 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3600
3601 # Check whether --with-libpng was given.
3602 if test "${with_libpng+set}" = set; then
3603   withval=$with_libpng;
3604                         if test "$withval" = yes; then
3605                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3606                         elif test "$withval" = no; then
3607                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3608                         elif test "$withval" = sys; then
3609                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3610                         elif test "$withval" = builtin; then
3611                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3612                         else
3613                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3614 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3615    { (exit 1); exit 1; }; }
3616                         fi
3617
3618 else
3619
3620                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3621
3622 fi
3623
3624
3625           eval "$wx_cv_use_libpng"
3626
3627           if test "$wxUSE_LIBPNG" = yes; then
3628             { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3630           elif test "$wxUSE_LIBPNG" = no; then
3631             { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3633           elif test "$wxUSE_LIBPNG" = sys; then
3634             { echo "$as_me:$LINENO: result: system version" >&5
3635 echo "${ECHO_T}system version" >&6; }
3636           elif test "$wxUSE_LIBPNG" = builtin; then
3637             { echo "$as_me:$LINENO: result: builtin version" >&5
3638 echo "${ECHO_T}builtin version" >&6; }
3639           else
3640             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3641 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3642    { (exit 1); exit 1; }; }
3643           fi
3644
3645
3646           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3647 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3648
3649 # Check whether --with-libjpeg was given.
3650 if test "${with_libjpeg+set}" = set; then
3651   withval=$with_libjpeg;
3652                         if test "$withval" = yes; then
3653                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3654                         elif test "$withval" = no; then
3655                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3656                         elif test "$withval" = sys; then
3657                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3658                         elif test "$withval" = builtin; then
3659                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3660                         else
3661                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3662 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3663    { (exit 1); exit 1; }; }
3664                         fi
3665
3666 else
3667
3668                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3669
3670 fi
3671
3672
3673           eval "$wx_cv_use_libjpeg"
3674
3675           if test "$wxUSE_LIBJPEG" = yes; then
3676             { echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6; }
3678           elif test "$wxUSE_LIBJPEG" = no; then
3679             { echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6; }
3681           elif test "$wxUSE_LIBJPEG" = sys; then
3682             { echo "$as_me:$LINENO: result: system version" >&5
3683 echo "${ECHO_T}system version" >&6; }
3684           elif test "$wxUSE_LIBJPEG" = builtin; then
3685             { echo "$as_me:$LINENO: result: builtin version" >&5
3686 echo "${ECHO_T}builtin version" >&6; }
3687           else
3688             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3689 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3690    { (exit 1); exit 1; }; }
3691           fi
3692
3693
3694           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3695 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3696
3697 # Check whether --with-libtiff was given.
3698 if test "${with_libtiff+set}" = set; then
3699   withval=$with_libtiff;
3700                         if test "$withval" = yes; then
3701                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3702                         elif test "$withval" = no; then
3703                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3704                         elif test "$withval" = sys; then
3705                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3706                         elif test "$withval" = builtin; then
3707                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3708                         else
3709                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3710 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3711    { (exit 1); exit 1; }; }
3712                         fi
3713
3714 else
3715
3716                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3717
3718 fi
3719
3720
3721           eval "$wx_cv_use_libtiff"
3722
3723           if test "$wxUSE_LIBTIFF" = yes; then
3724             { echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6; }
3726           elif test "$wxUSE_LIBTIFF" = no; then
3727             { echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6; }
3729           elif test "$wxUSE_LIBTIFF" = sys; then
3730             { echo "$as_me:$LINENO: result: system version" >&5
3731 echo "${ECHO_T}system version" >&6; }
3732           elif test "$wxUSE_LIBTIFF" = builtin; then
3733             { echo "$as_me:$LINENO: result: builtin version" >&5
3734 echo "${ECHO_T}builtin version" >&6; }
3735           else
3736             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3737 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3738    { (exit 1); exit 1; }; }
3739           fi
3740
3741
3742           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3743 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3744
3745 # Check whether --with-libxpm was given.
3746 if test "${with_libxpm+set}" = set; then
3747   withval=$with_libxpm;
3748                         if test "$withval" = yes; then
3749                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3750                         elif test "$withval" = no; then
3751                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3752                         elif test "$withval" = sys; then
3753                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3754                         elif test "$withval" = builtin; then
3755                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3756                         else
3757                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3758 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3759    { (exit 1); exit 1; }; }
3760                         fi
3761
3762 else
3763
3764                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3765
3766 fi
3767
3768
3769           eval "$wx_cv_use_libxpm"
3770
3771           if test "$wxUSE_LIBXPM" = yes; then
3772             { echo "$as_me:$LINENO: result: yes" >&5
3773 echo "${ECHO_T}yes" >&6; }
3774           elif test "$wxUSE_LIBXPM" = no; then
3775             { echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6; }
3777           elif test "$wxUSE_LIBXPM" = sys; then
3778             { echo "$as_me:$LINENO: result: system version" >&5
3779 echo "${ECHO_T}system version" >&6; }
3780           elif test "$wxUSE_LIBXPM" = builtin; then
3781             { echo "$as_me:$LINENO: result: builtin version" >&5
3782 echo "${ECHO_T}builtin version" >&6; }
3783           else
3784             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3785 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3786    { (exit 1); exit 1; }; }
3787           fi
3788
3789
3790           withstring=
3791           defaultval=$wxUSE_ALL_FEATURES
3792           if test -z "$defaultval"; then
3793               if test x"$withstring" = xwithout; then
3794                   defaultval=yes
3795               else
3796                   defaultval=no
3797               fi
3798           fi
3799           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3800 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3801
3802 # Check whether --with-libiconv was given.
3803 if test "${with_libiconv+set}" = set; then
3804   withval=$with_libiconv;
3805                         if test "$withval" = yes; then
3806                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3807                         else
3808                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3809                         fi
3810
3811 else
3812
3813                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3814
3815 fi
3816
3817
3818           eval "$wx_cv_use_libiconv"
3819
3820           if test x"$withstring" = xwithout; then
3821             if test $wxUSE_LIBICONV = yes; then
3822               result=no
3823             else
3824               result=yes
3825             fi
3826           else
3827             result=$wxUSE_LIBICONV
3828           fi
3829
3830           { echo "$as_me:$LINENO: result: $result" >&5
3831 echo "${ECHO_T}$result" >&6; }
3832
3833
3834           withstring=
3835           defaultval=$wxUSE_ALL_FEATURES
3836           if test -z "$defaultval"; then
3837               if test x"$withstring" = xwithout; then
3838                   defaultval=yes
3839               else
3840                   defaultval=no
3841               fi
3842           fi
3843           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3844 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3845
3846 # Check whether --with-libmspack was given.
3847 if test "${with_libmspack+set}" = set; then
3848   withval=$with_libmspack;
3849                         if test "$withval" = yes; then
3850                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3851                         else
3852                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3853                         fi
3854
3855 else
3856
3857                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3858
3859 fi
3860
3861
3862           eval "$wx_cv_use_libmspack"
3863
3864           if test x"$withstring" = xwithout; then
3865             if test $wxUSE_LIBMSPACK = yes; then
3866               result=no
3867             else
3868               result=yes
3869             fi
3870           else
3871             result=$wxUSE_LIBMSPACK
3872           fi
3873
3874           { echo "$as_me:$LINENO: result: $result" >&5
3875 echo "${ECHO_T}$result" >&6; }
3876
3877
3878           withstring=without
3879           defaultval=$wxUSE_ALL_FEATURES
3880           if test -z "$defaultval"; then
3881               if test x"$withstring" = xwithout; then
3882                   defaultval=yes
3883               else
3884                   defaultval=no
3885               fi
3886           fi
3887           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3888 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3889
3890 # Check whether --with-gtkprint was given.
3891 if test "${with_gtkprint+set}" = set; then
3892   withval=$with_gtkprint;
3893                         if test "$withval" = yes; then
3894                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3895                         else
3896                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3897                         fi
3898
3899 else
3900
3901                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3902
3903 fi
3904
3905
3906           eval "$wx_cv_use_gtkprint"
3907
3908           if test x"$withstring" = xwithout; then
3909             if test $wxUSE_GTKPRINT = yes; then
3910               result=no
3911             else
3912               result=yes
3913             fi
3914           else
3915             result=$wxUSE_GTKPRINT
3916           fi
3917
3918           { echo "$as_me:$LINENO: result: $result" >&5
3919 echo "${ECHO_T}$result" >&6; }
3920
3921
3922           withstring=without
3923           defaultval=$wxUSE_ALL_FEATURES
3924           if test -z "$defaultval"; then
3925               if test x"$withstring" = xwithout; then
3926                   defaultval=yes
3927               else
3928                   defaultval=no
3929               fi
3930           fi
3931           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3932 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3933
3934 # Check whether --with-gnomeprint was given.
3935 if test "${with_gnomeprint+set}" = set; then
3936   withval=$with_gnomeprint;
3937                         if test "$withval" = yes; then
3938                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3939                         else
3940                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3941                         fi
3942
3943 else
3944
3945                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3946
3947 fi
3948
3949
3950           eval "$wx_cv_use_gnomeprint"
3951
3952           if test x"$withstring" = xwithout; then
3953             if test $wxUSE_LIBGNOMEPRINT = yes; then
3954               result=no
3955             else
3956               result=yes
3957             fi
3958           else
3959             result=$wxUSE_LIBGNOMEPRINT
3960           fi
3961
3962           { echo "$as_me:$LINENO: result: $result" >&5
3963 echo "${ECHO_T}$result" >&6; }
3964
3965
3966           withstring=
3967           defaultval=$wxUSE_ALL_FEATURES
3968           if test -z "$defaultval"; then
3969               if test x"$withstring" = xwithout; then
3970                   defaultval=yes
3971               else
3972                   defaultval=no
3973               fi
3974           fi
3975           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3976 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3977
3978 # Check whether --with-gnomevfs was given.
3979 if test "${with_gnomevfs+set}" = set; then
3980   withval=$with_gnomevfs;
3981                         if test "$withval" = yes; then
3982                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3983                         else
3984                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3985                         fi
3986
3987 else
3988
3989                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3990
3991 fi
3992
3993
3994           eval "$wx_cv_use_gnomevfs"
3995
3996           if test x"$withstring" = xwithout; then
3997             if test $wxUSE_LIBGNOMEVFS = yes; then
3998               result=no
3999             else
4000               result=yes
4001             fi
4002           else
4003             result=$wxUSE_LIBGNOMEVFS
4004           fi
4005
4006           { echo "$as_me:$LINENO: result: $result" >&5
4007 echo "${ECHO_T}$result" >&6; }
4008
4009
4010           withstring=
4011           defaultval=$wxUSE_ALL_FEATURES
4012           if test -z "$defaultval"; then
4013               if test x"$withstring" = xwithout; then
4014                   defaultval=yes
4015               else
4016                   defaultval=no
4017               fi
4018           fi
4019           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4020 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4021
4022 # Check whether --with-hildon was given.
4023 if test "${with_hildon+set}" = set; then
4024   withval=$with_hildon;
4025                         if test "$withval" = yes; then
4026                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4027                         else
4028                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4029                         fi
4030
4031 else
4032
4033                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4034
4035 fi
4036
4037
4038           eval "$wx_cv_use_hildon"
4039
4040           if test x"$withstring" = xwithout; then
4041             if test $wxUSE_LIBHILDON = yes; then
4042               result=no
4043             else
4044               result=yes
4045             fi
4046           else
4047             result=$wxUSE_LIBHILDON
4048           fi
4049
4050           { echo "$as_me:$LINENO: result: $result" >&5
4051 echo "${ECHO_T}$result" >&6; }
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}-opengl" >&5
4064 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4065
4066 # Check whether --with-opengl was given.
4067 if test "${with_opengl+set}" = set; then
4068   withval=$with_opengl;
4069                         if test "$withval" = yes; then
4070                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4071                         else
4072                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4073                         fi
4074
4075 else
4076
4077                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4078
4079 fi
4080
4081
4082           eval "$wx_cv_use_opengl"
4083
4084           if test x"$withstring" = xwithout; then
4085             if test $wxUSE_OPENGL = yes; then
4086               result=no
4087             else
4088               result=yes
4089             fi
4090           else
4091             result=$wxUSE_OPENGL
4092           fi
4093
4094           { echo "$as_me:$LINENO: result: $result" >&5
4095 echo "${ECHO_T}$result" >&6; }
4096
4097
4098 fi
4099
4100
4101           withstring=
4102           defaultval=$wxUSE_ALL_FEATURES
4103           if test -z "$defaultval"; then
4104               if test x"$withstring" = xwithout; then
4105                   defaultval=yes
4106               else
4107                   defaultval=no
4108               fi
4109           fi
4110           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4111 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4112
4113 # Check whether --with-dmalloc was given.
4114 if test "${with_dmalloc+set}" = set; then
4115   withval=$with_dmalloc;
4116                         if test "$withval" = yes; then
4117                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4118                         else
4119                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4120                         fi
4121
4122 else
4123
4124                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4125
4126 fi
4127
4128
4129           eval "$wx_cv_use_dmalloc"
4130
4131           if test x"$withstring" = xwithout; then
4132             if test $wxUSE_DMALLOC = yes; then
4133               result=no
4134             else
4135               result=yes
4136             fi
4137           else
4138             result=$wxUSE_DMALLOC
4139           fi
4140
4141           { echo "$as_me:$LINENO: result: $result" >&5
4142 echo "${ECHO_T}$result" >&6; }
4143
4144
4145           withstring=
4146           defaultval=$wxUSE_ALL_FEATURES
4147           if test -z "$defaultval"; then
4148               if test x"$withstring" = xwithout; then
4149                   defaultval=yes
4150               else
4151                   defaultval=no
4152               fi
4153           fi
4154           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4155 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4156
4157 # Check whether --with-sdl was given.
4158 if test "${with_sdl+set}" = set; then
4159   withval=$with_sdl;
4160                         if test "$withval" = yes; then
4161                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4162                         else
4163                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4164                         fi
4165
4166 else
4167
4168                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4169
4170 fi
4171
4172
4173           eval "$wx_cv_use_sdl"
4174
4175           if test x"$withstring" = xwithout; then
4176             if test $wxUSE_LIBSDL = yes; then
4177               result=no
4178             else
4179               result=yes
4180             fi
4181           else
4182             result=$wxUSE_LIBSDL
4183           fi
4184
4185           { echo "$as_me:$LINENO: result: $result" >&5
4186 echo "${ECHO_T}$result" >&6; }
4187
4188
4189           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4190 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4191
4192 # Check whether --with-regex was given.
4193 if test "${with_regex+set}" = set; then
4194   withval=$with_regex;
4195                         if test "$withval" = yes; then
4196                           wx_cv_use_regex='wxUSE_REGEX=yes'
4197                         elif test "$withval" = no; then
4198                           wx_cv_use_regex='wxUSE_REGEX=no'
4199                         elif test "$withval" = sys; then
4200                           wx_cv_use_regex='wxUSE_REGEX=sys'
4201                         elif test "$withval" = builtin; then
4202                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4203                         else
4204                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4205 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4206    { (exit 1); exit 1; }; }
4207                         fi
4208
4209 else
4210
4211                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4212
4213 fi
4214
4215
4216           eval "$wx_cv_use_regex"
4217
4218           if test "$wxUSE_REGEX" = yes; then
4219             { echo "$as_me:$LINENO: result: yes" >&5
4220 echo "${ECHO_T}yes" >&6; }
4221           elif test "$wxUSE_REGEX" = no; then
4222             { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4224           elif test "$wxUSE_REGEX" = sys; then
4225             { echo "$as_me:$LINENO: result: system version" >&5
4226 echo "${ECHO_T}system version" >&6; }
4227           elif test "$wxUSE_REGEX" = builtin; then
4228             { echo "$as_me:$LINENO: result: builtin version" >&5
4229 echo "${ECHO_T}builtin version" >&6; }
4230           else
4231             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4232 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4233    { (exit 1); exit 1; }; }
4234           fi
4235
4236
4237           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4238 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4239
4240 # Check whether --with-zlib was given.
4241 if test "${with_zlib+set}" = set; then
4242   withval=$with_zlib;
4243                         if test "$withval" = yes; then
4244                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4245                         elif test "$withval" = no; then
4246                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4247                         elif test "$withval" = sys; then
4248                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4249                         elif test "$withval" = builtin; then
4250                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4251                         else
4252                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4253 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4254    { (exit 1); exit 1; }; }
4255                         fi
4256
4257 else
4258
4259                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4260
4261 fi
4262
4263
4264           eval "$wx_cv_use_zlib"
4265
4266           if test "$wxUSE_ZLIB" = yes; then
4267             { echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6; }
4269           elif test "$wxUSE_ZLIB" = no; then
4270             { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4272           elif test "$wxUSE_ZLIB" = sys; then
4273             { echo "$as_me:$LINENO: result: system version" >&5
4274 echo "${ECHO_T}system version" >&6; }
4275           elif test "$wxUSE_ZLIB" = builtin; then
4276             { echo "$as_me:$LINENO: result: builtin version" >&5
4277 echo "${ECHO_T}builtin version" >&6; }
4278           else
4279             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4280 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4281    { (exit 1); exit 1; }; }
4282           fi
4283
4284
4285           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4286 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4287
4288 # Check whether --with-expat was given.
4289 if test "${with_expat+set}" = set; then
4290   withval=$with_expat;
4291                         if test "$withval" = yes; then
4292                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4293                         elif test "$withval" = no; then
4294                           wx_cv_use_expat='wxUSE_EXPAT=no'
4295                         elif test "$withval" = sys; then
4296                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4297                         elif test "$withval" = builtin; then
4298                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4299                         else
4300                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4301 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4302    { (exit 1); exit 1; }; }
4303                         fi
4304
4305 else
4306
4307                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4308
4309 fi
4310
4311
4312           eval "$wx_cv_use_expat"
4313
4314           if test "$wxUSE_EXPAT" = yes; then
4315             { echo "$as_me:$LINENO: result: yes" >&5
4316 echo "${ECHO_T}yes" >&6; }
4317           elif test "$wxUSE_EXPAT" = no; then
4318             { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4320           elif test "$wxUSE_EXPAT" = sys; then
4321             { echo "$as_me:$LINENO: result: system version" >&5
4322 echo "${ECHO_T}system version" >&6; }
4323           elif test "$wxUSE_EXPAT" = builtin; then
4324             { echo "$as_me:$LINENO: result: builtin version" >&5
4325 echo "${ECHO_T}builtin version" >&6; }
4326           else
4327             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4328 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4329    { (exit 1); exit 1; }; }
4330           fi
4331
4332
4333 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4334 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4335
4336 # Check whether --with-macosx-sdk was given.
4337 if test "${with_macosx_sdk+set}" = set; then
4338   withval=$with_macosx_sdk;
4339         wxUSE_MACOSX_SDK=$withval
4340         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4341
4342 fi
4343
4344 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4345 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4346
4347 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4348 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4349
4350 # Check whether --with-macosx-version-min was given.
4351 if test "${with_macosx_version_min+set}" = set; then
4352   withval=$with_macosx_version_min;
4353         wxUSE_MACOSX_VERSION_MIN=$withval
4354         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4355
4356 fi
4357
4358 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4359 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4360
4361
4362
4363           enablestring=disable
4364           defaultval=
4365           if test -z "$defaultval"; then
4366               if test x"$enablestring" = xdisable; then
4367                   defaultval=yes
4368               else
4369                   defaultval=no
4370               fi
4371           fi
4372
4373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4374 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4375           # Check whether --enable-shared was given.
4376 if test "${enable_shared+set}" = set; then
4377   enableval=$enable_shared;
4378                           if test "$enableval" = yes; then
4379                             wx_cv_use_shared='wxUSE_SHARED=yes'
4380                           else
4381                             wx_cv_use_shared='wxUSE_SHARED=no'
4382                           fi
4383
4384 else
4385
4386                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4387
4388 fi
4389
4390
4391           eval "$wx_cv_use_shared"
4392
4393           if test x"$enablestring" = xdisable; then
4394             if test $wxUSE_SHARED = yes; then
4395               result=no
4396             else
4397               result=yes
4398             fi
4399           else
4400             result=$wxUSE_SHARED
4401           fi
4402
4403           { echo "$as_me:$LINENO: result: $result" >&5
4404 echo "${ECHO_T}$result" >&6; }
4405
4406
4407           enablestring=
4408           defaultval=
4409           if test -z "$defaultval"; then
4410               if test x"$enablestring" = xdisable; then
4411                   defaultval=yes
4412               else
4413                   defaultval=no
4414               fi
4415           fi
4416
4417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4418 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4419           # Check whether --enable-debug was given.
4420 if test "${enable_debug+set}" = set; then
4421   enableval=$enable_debug;
4422                           if test "$enableval" = yes; then
4423                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4424                           else
4425                             wx_cv_use_debug='wxUSE_DEBUG=no'
4426                           fi
4427
4428 else
4429
4430                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4431
4432 fi
4433
4434
4435           eval "$wx_cv_use_debug"
4436
4437           if test x"$enablestring" = xdisable; then
4438             if test $wxUSE_DEBUG = yes; then
4439               result=no
4440             else
4441               result=yes
4442             fi
4443           else
4444             result=$wxUSE_DEBUG
4445           fi
4446
4447           { echo "$as_me:$LINENO: result: $result" >&5
4448 echo "${ECHO_T}$result" >&6; }
4449
4450
4451           enablestring=
4452           defaultval=
4453           if test -z "$defaultval"; then
4454               if test x"$enablestring" = xdisable; then
4455                   defaultval=yes
4456               else
4457                   defaultval=no
4458               fi
4459           fi
4460
4461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4462 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4463           # Check whether --enable-stl was given.
4464 if test "${enable_stl+set}" = set; then
4465   enableval=$enable_stl;
4466                           if test "$enableval" = yes; then
4467                             wx_cv_use_stl='wxUSE_STL=yes'
4468                           else
4469                             wx_cv_use_stl='wxUSE_STL=no'
4470                           fi
4471
4472 else
4473
4474                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4475
4476 fi
4477
4478
4479           eval "$wx_cv_use_stl"
4480
4481           if test x"$enablestring" = xdisable; then
4482             if test $wxUSE_STL = yes; then
4483               result=no
4484             else
4485               result=yes
4486             fi
4487           else
4488             result=$wxUSE_STL
4489           fi
4490
4491           { echo "$as_me:$LINENO: result: $result" >&5
4492 echo "${ECHO_T}$result" >&6; }
4493
4494
4495           enablestring=
4496           defaultval=
4497           if test -z "$defaultval"; then
4498               if test x"$enablestring" = xdisable; then
4499                   defaultval=yes
4500               else
4501                   defaultval=no
4502               fi
4503           fi
4504
4505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4506 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4507           # Check whether --enable-std_iostreams was given.
4508 if test "${enable_std_iostreams+set}" = set; then
4509   enableval=$enable_std_iostreams;
4510                           if test "$enableval" = yes; then
4511                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4512                           else
4513                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4514                           fi
4515
4516 else
4517
4518                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4519
4520 fi
4521
4522
4523           eval "$wx_cv_use_std_iostreams"
4524
4525           if test x"$enablestring" = xdisable; then
4526             if test $wxUSE_STD_IOSTREAM = yes; then
4527               result=no
4528             else
4529               result=yes
4530             fi
4531           else
4532             result=$wxUSE_STD_IOSTREAM
4533           fi
4534
4535           { echo "$as_me:$LINENO: result: $result" >&5
4536 echo "${ECHO_T}$result" >&6; }
4537
4538
4539           enablestring=
4540           defaultval=
4541           if test -z "$defaultval"; then
4542               if test x"$enablestring" = xdisable; then
4543                   defaultval=yes
4544               else
4545                   defaultval=no
4546               fi
4547           fi
4548
4549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4550 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4551           # Check whether --enable-std_string was given.
4552 if test "${enable_std_string+set}" = set; then
4553   enableval=$enable_std_string;
4554                           if test "$enableval" = yes; then
4555                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4556                           else
4557                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4558                           fi
4559
4560 else
4561
4562                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4563
4564 fi
4565
4566
4567           eval "$wx_cv_use_std_string"
4568
4569           if test x"$enablestring" = xdisable; then
4570             if test $wxUSE_STD_STRING = yes; then
4571               result=no
4572             else
4573               result=yes
4574             fi
4575           else
4576             result=$wxUSE_STD_STRING
4577           fi
4578
4579           { echo "$as_me:$LINENO: result: $result" >&5
4580 echo "${ECHO_T}$result" >&6; }
4581
4582
4583           enablestring=disable
4584           defaultval=
4585           if test -z "$defaultval"; then
4586               if test x"$enablestring" = xdisable; then
4587                   defaultval=yes
4588               else
4589                   defaultval=no
4590               fi
4591           fi
4592
4593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4594 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4595           # Check whether --enable-unicode was given.
4596 if test "${enable_unicode+set}" = set; then
4597   enableval=$enable_unicode;
4598                           if test "$enableval" = yes; then
4599                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4600                           else
4601                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4602                           fi
4603
4604 else
4605
4606                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4607
4608 fi
4609
4610
4611           eval "$wx_cv_use_unicode"
4612
4613           if test x"$enablestring" = xdisable; then
4614             if test $wxUSE_UNICODE = yes; then
4615               result=no
4616             else
4617               result=yes
4618             fi
4619           else
4620             result=$wxUSE_UNICODE
4621           fi
4622
4623           { echo "$as_me:$LINENO: result: $result" >&5
4624 echo "${ECHO_T}$result" >&6; }
4625
4626
4627           enablestring=
4628           defaultval=
4629           if test -z "$defaultval"; then
4630               if test x"$enablestring" = xdisable; then
4631                   defaultval=yes
4632               else
4633                   defaultval=no
4634               fi
4635           fi
4636
4637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4638 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4639           # Check whether --enable-mslu was given.
4640 if test "${enable_mslu+set}" = set; then
4641   enableval=$enable_mslu;
4642                           if test "$enableval" = yes; then
4643                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4644                           else
4645                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4646                           fi
4647
4648 else
4649
4650                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4651
4652 fi
4653
4654
4655           eval "$wx_cv_use_mslu"
4656
4657           if test x"$enablestring" = xdisable; then
4658             if test $wxUSE_UNICODE_MSLU = yes; then
4659               result=no
4660             else
4661               result=yes
4662             fi
4663           else
4664             result=$wxUSE_UNICODE_MSLU
4665           fi
4666
4667           { echo "$as_me:$LINENO: result: $result" >&5
4668 echo "${ECHO_T}$result" >&6; }
4669
4670
4671           enablestring=
4672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4673 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4674           # Check whether --enable-utf8 was given.
4675 if test "${enable_utf8+set}" = set; then
4676   enableval=$enable_utf8;
4677                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4678
4679 else
4680
4681                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4682
4683 fi
4684
4685
4686           eval "$wx_cv_use_utf8"
4687
4688           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4689 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4690
4691
4692           enablestring=
4693           defaultval=
4694           if test -z "$defaultval"; then
4695               if test x"$enablestring" = xdisable; then
4696                   defaultval=yes
4697               else
4698                   defaultval=no
4699               fi
4700           fi
4701
4702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4703 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4704           # Check whether --enable-utf8only was given.
4705 if test "${enable_utf8only+set}" = set; then
4706   enableval=$enable_utf8only;
4707                           if test "$enableval" = yes; then
4708                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4709                           else
4710                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4711                           fi
4712
4713 else
4714
4715                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4716
4717 fi
4718
4719
4720           eval "$wx_cv_use_utf8only"
4721
4722           if test x"$enablestring" = xdisable; then
4723             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4724               result=no
4725             else
4726               result=yes
4727             fi
4728           else
4729             result=$wxUSE_UNICODE_UTF8_LOCALE
4730           fi
4731
4732           { echo "$as_me:$LINENO: result: $result" >&5
4733 echo "${ECHO_T}$result" >&6; }
4734
4735
4736           enablestring=
4737           defaultval=
4738           if test -z "$defaultval"; then
4739               if test x"$enablestring" = xdisable; then
4740                   defaultval=yes
4741               else
4742                   defaultval=no
4743               fi
4744           fi
4745
4746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4747 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4748           # Check whether --enable-extended_rtti was given.
4749 if test "${enable_extended_rtti+set}" = set; then
4750   enableval=$enable_extended_rtti;
4751                           if test "$enableval" = yes; then
4752                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4753                           else
4754                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4755                           fi
4756
4757 else
4758
4759                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4760
4761 fi
4762
4763
4764           eval "$wx_cv_use_extended_rtti"
4765
4766           if test x"$enablestring" = xdisable; then
4767             if test $wxUSE_EXTENDED_RTTI = yes; then
4768               result=no
4769             else
4770               result=yes
4771             fi
4772           else
4773             result=$wxUSE_EXTENDED_RTTI
4774           fi
4775
4776           { echo "$as_me:$LINENO: result: $result" >&5
4777 echo "${ECHO_T}$result" >&6; }
4778
4779 if test "$USE_OS2" = 1; then
4780     DEFAULT_wxUSE_OMF=no
4781
4782           enablestring=
4783           defaultval=
4784           if test -z "$defaultval"; then
4785               if test x"$enablestring" = xdisable; then
4786                   defaultval=yes
4787               else
4788                   defaultval=no
4789               fi
4790           fi
4791
4792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4793 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4794           # Check whether --enable-omf was given.
4795 if test "${enable_omf+set}" = set; then
4796   enableval=$enable_omf;
4797                           if test "$enableval" = yes; then
4798                             wx_cv_use_omf='wxUSE_OMF=yes'
4799                           else
4800                             wx_cv_use_omf='wxUSE_OMF=no'
4801                           fi
4802
4803 else
4804
4805                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4806
4807 fi
4808
4809
4810           eval "$wx_cv_use_omf"
4811
4812           if test x"$enablestring" = xdisable; then
4813             if test $wxUSE_OMF = yes; then
4814               result=no
4815             else
4816               result=yes
4817             fi
4818           else
4819             result=$wxUSE_OMF
4820           fi
4821
4822           { echo "$as_me:$LINENO: result: $result" >&5
4823 echo "${ECHO_T}$result" >&6; }
4824
4825 fi
4826
4827 if test "$wxUSE_DEBUG" = "yes"; then
4828     DEFAULT_wxUSE_DEBUG_FLAG=yes
4829     DEFAULT_wxUSE_DEBUG_INFO=yes
4830     BUILD=debug
4831 elif test "$wxUSE_DEBUG" = "no"; then
4832     DEFAULT_wxUSE_DEBUG_FLAG=no
4833     DEFAULT_wxUSE_DEBUG_INFO=no
4834     BUILD=release
4835 fi
4836
4837
4838           enablestring=
4839           defaultval=
4840           if test -z "$defaultval"; then
4841               if test x"$enablestring" = xdisable; then
4842                   defaultval=yes
4843               else
4844                   defaultval=no
4845               fi
4846           fi
4847
4848           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4849 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4850           # Check whether --enable-debug_flag was given.
4851 if test "${enable_debug_flag+set}" = set; then
4852   enableval=$enable_debug_flag;
4853                           if test "$enableval" = yes; then
4854                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4855                           else
4856                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4857                           fi
4858
4859 else
4860
4861                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4862
4863 fi
4864
4865
4866           eval "$wx_cv_use_debug_flag"
4867
4868           if test x"$enablestring" = xdisable; then
4869             if test $wxUSE_DEBUG_FLAG = yes; then
4870               result=no
4871             else
4872               result=yes
4873             fi
4874           else
4875             result=$wxUSE_DEBUG_FLAG
4876           fi
4877
4878           { echo "$as_me:$LINENO: result: $result" >&5
4879 echo "${ECHO_T}$result" >&6; }
4880
4881
4882           enablestring=
4883           defaultval=
4884           if test -z "$defaultval"; then
4885               if test x"$enablestring" = xdisable; then
4886                   defaultval=yes
4887               else
4888                   defaultval=no
4889               fi
4890           fi
4891
4892           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4893 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4894           # Check whether --enable-debug_info was given.
4895 if test "${enable_debug_info+set}" = set; then
4896   enableval=$enable_debug_info;
4897                           if test "$enableval" = yes; then
4898                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4899                           else
4900                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4901                           fi
4902
4903 else
4904
4905                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4906
4907 fi
4908
4909
4910           eval "$wx_cv_use_debug_info"
4911
4912           if test x"$enablestring" = xdisable; then
4913             if test $wxUSE_DEBUG_INFO = yes; then
4914               result=no
4915             else
4916               result=yes
4917             fi
4918           else
4919             result=$wxUSE_DEBUG_INFO
4920           fi
4921
4922           { echo "$as_me:$LINENO: result: $result" >&5
4923 echo "${ECHO_T}$result" >&6; }
4924
4925
4926 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4927     wxUSE_DEBUG=yes
4928     BUILD=debug
4929 fi
4930
4931 if test "$wxUSE_DEBUG" = "yes"; then
4932     DEFAULT_wxUSE_OPTIMISE=no
4933 fi
4934
4935
4936           enablestring=disable
4937           defaultval=
4938           if test -z "$defaultval"; then
4939               if test x"$enablestring" = xdisable; then
4940                   defaultval=yes
4941               else
4942                   defaultval=no
4943               fi
4944           fi
4945
4946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4947 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4948           # Check whether --enable-optimise was given.
4949 if test "${enable_optimise+set}" = set; then
4950   enableval=$enable_optimise;
4951                           if test "$enableval" = yes; then
4952                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4953                           else
4954                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4955                           fi
4956
4957 else
4958
4959                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4960
4961 fi
4962
4963
4964           eval "$wx_cv_use_optimise"
4965
4966           if test x"$enablestring" = xdisable; then
4967             if test $wxUSE_OPTIMISE = yes; then
4968               result=no
4969             else
4970               result=yes
4971             fi
4972           else
4973             result=$wxUSE_OPTIMISE
4974           fi
4975
4976           { echo "$as_me:$LINENO: result: $result" >&5
4977 echo "${ECHO_T}$result" >&6; }
4978
4979
4980
4981           enablestring=
4982           defaultval=
4983           if test -z "$defaultval"; then
4984               if test x"$enablestring" = xdisable; then
4985                   defaultval=yes
4986               else
4987                   defaultval=no
4988               fi
4989           fi
4990
4991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4992 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4993           # Check whether --enable-debug_gdb was given.
4994 if test "${enable_debug_gdb+set}" = set; then
4995   enableval=$enable_debug_gdb;
4996                           if test "$enableval" = yes; then
4997                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4998                           else
4999                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5000                           fi
5001
5002 else
5003
5004                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5005
5006 fi
5007
5008
5009           eval "$wx_cv_use_debug_gdb"
5010
5011           if test x"$enablestring" = xdisable; then
5012             if test $wxUSE_DEBUG_GDB = yes; then
5013               result=no
5014             else
5015               result=yes
5016             fi
5017           else
5018             result=$wxUSE_DEBUG_GDB
5019           fi
5020
5021           { echo "$as_me:$LINENO: result: $result" >&5
5022 echo "${ECHO_T}$result" >&6; }
5023
5024
5025           enablestring=
5026           defaultval=
5027           if test -z "$defaultval"; then
5028               if test x"$enablestring" = xdisable; then
5029                   defaultval=yes
5030               else
5031                   defaultval=no
5032               fi
5033           fi
5034
5035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5036 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5037           # Check whether --enable-debug_cntxt was given.
5038 if test "${enable_debug_cntxt+set}" = set; then
5039   enableval=$enable_debug_cntxt;
5040                           if test "$enableval" = yes; then
5041                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5042                           else
5043                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5044                           fi
5045
5046 else
5047
5048                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5049
5050 fi
5051
5052
5053           eval "$wx_cv_use_debug_cntxt"
5054
5055           if test x"$enablestring" = xdisable; then
5056             if test $wxUSE_DEBUG_CONTEXT = yes; then
5057               result=no
5058             else
5059               result=yes
5060             fi
5061           else
5062             result=$wxUSE_DEBUG_CONTEXT
5063           fi
5064
5065           { echo "$as_me:$LINENO: result: $result" >&5
5066 echo "${ECHO_T}$result" >&6; }
5067
5068
5069           enablestring=
5070           defaultval=
5071           if test -z "$defaultval"; then
5072               if test x"$enablestring" = xdisable; then
5073                   defaultval=yes
5074               else
5075                   defaultval=no
5076               fi
5077           fi
5078
5079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5080 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5081           # Check whether --enable-mem_tracing was given.
5082 if test "${enable_mem_tracing+set}" = set; then
5083   enableval=$enable_mem_tracing;
5084                           if test "$enableval" = yes; then
5085                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5086                           else
5087                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5088                           fi
5089
5090 else
5091
5092                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5093
5094 fi
5095
5096
5097           eval "$wx_cv_use_mem_tracing"
5098
5099           if test x"$enablestring" = xdisable; then
5100             if test $wxUSE_MEM_TRACING = yes; then
5101               result=no
5102             else
5103               result=yes
5104             fi
5105           else
5106             result=$wxUSE_MEM_TRACING
5107           fi
5108
5109           { echo "$as_me:$LINENO: result: $result" >&5
5110 echo "${ECHO_T}$result" >&6; }
5111
5112
5113           enablestring=
5114           defaultval=
5115           if test -z "$defaultval"; then
5116               if test x"$enablestring" = xdisable; then
5117                   defaultval=yes
5118               else
5119                   defaultval=no
5120               fi
5121           fi
5122
5123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5124 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5125           # Check whether --enable-profile was given.
5126 if test "${enable_profile+set}" = set; then
5127   enableval=$enable_profile;
5128                           if test "$enableval" = yes; then
5129                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5130                           else
5131                             wx_cv_use_profile='wxUSE_PROFILE=no'
5132                           fi
5133
5134 else
5135
5136                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5137
5138 fi
5139
5140
5141           eval "$wx_cv_use_profile"
5142
5143           if test x"$enablestring" = xdisable; then
5144             if test $wxUSE_PROFILE = yes; then
5145               result=no
5146             else
5147               result=yes
5148             fi
5149           else
5150             result=$wxUSE_PROFILE
5151           fi
5152
5153           { echo "$as_me:$LINENO: result: $result" >&5
5154 echo "${ECHO_T}$result" >&6; }
5155
5156
5157           enablestring=
5158           defaultval=
5159           if test -z "$defaultval"; then
5160               if test x"$enablestring" = xdisable; then
5161                   defaultval=yes
5162               else
5163                   defaultval=no
5164               fi
5165           fi
5166
5167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5168 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5169           # Check whether --enable-no_rtti was given.
5170 if test "${enable_no_rtti+set}" = set; then
5171   enableval=$enable_no_rtti;
5172                           if test "$enableval" = yes; then
5173                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5174                           else
5175                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5176                           fi
5177
5178 else
5179
5180                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5181
5182 fi
5183
5184
5185           eval "$wx_cv_use_no_rtti"
5186
5187           if test x"$enablestring" = xdisable; then
5188             if test $wxUSE_NO_RTTI = yes; then
5189               result=no
5190             else
5191               result=yes
5192             fi
5193           else
5194             result=$wxUSE_NO_RTTI
5195           fi
5196
5197           { echo "$as_me:$LINENO: result: $result" >&5
5198 echo "${ECHO_T}$result" >&6; }
5199
5200
5201           enablestring=
5202           defaultval=
5203           if test -z "$defaultval"; then
5204               if test x"$enablestring" = xdisable; then
5205                   defaultval=yes
5206               else
5207                   defaultval=no
5208               fi
5209           fi
5210
5211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5212 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5213           # Check whether --enable-no_exceptions was given.
5214 if test "${enable_no_exceptions+set}" = set; then
5215   enableval=$enable_no_exceptions;
5216                           if test "$enableval" = yes; then
5217                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5218                           else
5219                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5220                           fi
5221
5222 else
5223
5224                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5225
5226 fi
5227
5228
5229           eval "$wx_cv_use_no_exceptions"
5230
5231           if test x"$enablestring" = xdisable; then
5232             if test $wxUSE_NO_EXCEPTIONS = yes; then
5233               result=no
5234             else
5235               result=yes
5236             fi
5237           else
5238             result=$wxUSE_NO_EXCEPTIONS
5239           fi
5240
5241           { echo "$as_me:$LINENO: result: $result" >&5
5242 echo "${ECHO_T}$result" >&6; }
5243
5244
5245           enablestring=
5246           defaultval=
5247           if test -z "$defaultval"; then
5248               if test x"$enablestring" = xdisable; then
5249                   defaultval=yes
5250               else
5251                   defaultval=no
5252               fi
5253           fi
5254
5255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5256 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5257           # Check whether --enable-permissive was given.
5258 if test "${enable_permissive+set}" = set; then
5259   enableval=$enable_permissive;
5260                           if test "$enableval" = yes; then
5261                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5262                           else
5263                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5264                           fi
5265
5266 else
5267
5268                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5269
5270 fi
5271
5272
5273           eval "$wx_cv_use_permissive"
5274
5275           if test x"$enablestring" = xdisable; then
5276             if test $wxUSE_PERMISSIVE = yes; then
5277               result=no
5278             else
5279               result=yes
5280             fi
5281           else
5282             result=$wxUSE_PERMISSIVE
5283           fi
5284
5285           { echo "$as_me:$LINENO: result: $result" >&5
5286 echo "${ECHO_T}$result" >&6; }
5287
5288
5289           enablestring=
5290           defaultval=
5291           if test -z "$defaultval"; then
5292               if test x"$enablestring" = xdisable; then
5293                   defaultval=yes
5294               else
5295                   defaultval=no
5296               fi
5297           fi
5298
5299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5300 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5301           # Check whether --enable-no_deps was given.
5302 if test "${enable_no_deps+set}" = set; then
5303   enableval=$enable_no_deps;
5304                           if test "$enableval" = yes; then
5305                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5306                           else
5307                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5308                           fi
5309
5310 else
5311
5312                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5313
5314 fi
5315
5316
5317           eval "$wx_cv_use_no_deps"
5318
5319           if test x"$enablestring" = xdisable; then
5320             if test $wxUSE_NO_DEPS = yes; then
5321               result=no
5322             else
5323               result=yes
5324             fi
5325           else
5326             result=$wxUSE_NO_DEPS
5327           fi
5328
5329           { echo "$as_me:$LINENO: result: $result" >&5
5330 echo "${ECHO_T}$result" >&6; }
5331
5332
5333           enablestring=disable
5334           defaultval=
5335           if test -z "$defaultval"; then
5336               if test x"$enablestring" = xdisable; then
5337                   defaultval=yes
5338               else
5339                   defaultval=no
5340               fi
5341           fi
5342
5343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5344 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5345           # Check whether --enable-vararg_macros was given.
5346 if test "${enable_vararg_macros+set}" = set; then
5347   enableval=$enable_vararg_macros;
5348                           if test "$enableval" = yes; then
5349                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5350                           else
5351                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5352                           fi
5353
5354 else
5355
5356                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5357
5358 fi
5359
5360
5361           eval "$wx_cv_use_vararg_macros"
5362
5363           if test x"$enablestring" = xdisable; then
5364             if test $wxUSE_VARARG_MACROS = yes; then
5365               result=no
5366             else
5367               result=yes
5368             fi
5369           else
5370             result=$wxUSE_VARARG_MACROS
5371           fi
5372
5373           { echo "$as_me:$LINENO: result: $result" >&5
5374 echo "${ECHO_T}$result" >&6; }
5375
5376
5377           enablestring=
5378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5379 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5380           # Check whether --enable-universal_binary was given.
5381 if test "${enable_universal_binary+set}" = set; then
5382   enableval=$enable_universal_binary;
5383                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5384
5385 else
5386
5387                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5388
5389 fi
5390
5391
5392           eval "$wx_cv_use_universal_binary"
5393
5394           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5395 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5396
5397
5398
5399           enablestring=
5400           defaultval=
5401           if test -z "$defaultval"; then
5402               if test x"$enablestring" = xdisable; then
5403                   defaultval=yes
5404               else
5405                   defaultval=no
5406               fi
5407           fi
5408
5409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5410 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5411           # Check whether --enable-compat26 was given.
5412 if test "${enable_compat26+set}" = set; then
5413   enableval=$enable_compat26;
5414                           if test "$enableval" = yes; then
5415                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5416                           else
5417                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5418                           fi
5419
5420 else
5421
5422                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5423
5424 fi
5425
5426
5427           eval "$wx_cv_use_compat26"
5428
5429           if test x"$enablestring" = xdisable; then
5430             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5431               result=no
5432             else
5433               result=yes
5434             fi
5435           else
5436             result=$WXWIN_COMPATIBILITY_2_6
5437           fi
5438
5439           { echo "$as_me:$LINENO: result: $result" >&5
5440 echo "${ECHO_T}$result" >&6; }
5441
5442
5443           enablestring=disable
5444           defaultval=
5445           if test -z "$defaultval"; then
5446               if test x"$enablestring" = xdisable; then
5447                   defaultval=yes
5448               else
5449                   defaultval=no
5450               fi
5451           fi
5452
5453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5454 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5455           # Check whether --enable-compat28 was given.
5456 if test "${enable_compat28+set}" = set; then
5457   enableval=$enable_compat28;
5458                           if test "$enableval" = yes; then
5459                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5460                           else
5461                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5462                           fi
5463
5464 else
5465
5466                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5467
5468 fi
5469
5470
5471           eval "$wx_cv_use_compat28"
5472
5473           if test x"$enablestring" = xdisable; then
5474             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5475               result=no
5476             else
5477               result=yes
5478             fi
5479           else
5480             result=$WXWIN_COMPATIBILITY_2_8
5481           fi
5482
5483           { echo "$as_me:$LINENO: result: $result" >&5
5484 echo "${ECHO_T}$result" >&6; }
5485
5486
5487
5488           enablestring=disable
5489           defaultval=
5490           if test -z "$defaultval"; then
5491               if test x"$enablestring" = xdisable; then
5492                   defaultval=yes
5493               else
5494                   defaultval=no
5495               fi
5496           fi
5497
5498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5499 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5500           # Check whether --enable-rpath was given.
5501 if test "${enable_rpath+set}" = set; then
5502   enableval=$enable_rpath;
5503                           if test "$enableval" = yes; then
5504                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5505                           else
5506                             wx_cv_use_rpath='wxUSE_RPATH=no'
5507                           fi
5508
5509 else
5510
5511                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5512
5513 fi
5514
5515
5516           eval "$wx_cv_use_rpath"
5517
5518           if test x"$enablestring" = xdisable; then
5519             if test $wxUSE_RPATH = yes; then
5520               result=no
5521             else
5522               result=yes
5523             fi
5524           else
5525             result=$wxUSE_RPATH
5526           fi
5527
5528           { echo "$as_me:$LINENO: result: $result" >&5
5529 echo "${ECHO_T}$result" >&6; }
5530
5531
5532
5533           enablestring=
5534           defaultval=
5535           if test -z "$defaultval"; then
5536               if test x"$enablestring" = xdisable; then
5537                   defaultval=yes
5538               else
5539                   defaultval=no
5540               fi
5541           fi
5542
5543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5544 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5545           # Check whether --enable-objc_uniquifying was given.
5546 if test "${enable_objc_uniquifying+set}" = set; then
5547   enableval=$enable_objc_uniquifying;
5548                           if test "$enableval" = yes; then
5549                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5550                           else
5551                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5552                           fi
5553
5554 else
5555
5556                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5557
5558 fi
5559
5560
5561           eval "$wx_cv_use_objc_uniquifying"
5562
5563           if test x"$enablestring" = xdisable; then
5564             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5565               result=no
5566             else
5567               result=yes
5568             fi
5569           else
5570             result=$wxUSE_OBJC_UNIQUIFYING
5571           fi
5572
5573           { echo "$as_me:$LINENO: result: $result" >&5
5574 echo "${ECHO_T}$result" >&6; }
5575
5576
5577
5578           enablestring=disable
5579           defaultval=
5580           if test -z "$defaultval"; then
5581               if test x"$enablestring" = xdisable; then
5582                   defaultval=yes
5583               else
5584                   defaultval=no
5585               fi
5586           fi
5587
5588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5589 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5590           # Check whether --enable-visibility was given.
5591 if test "${enable_visibility+set}" = set; then
5592   enableval=$enable_visibility;
5593                           if test "$enableval" = yes; then
5594                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5595                           else
5596                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5597                           fi
5598
5599 else
5600
5601                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5602
5603 fi
5604
5605
5606           eval "$wx_cv_use_visibility"
5607
5608           if test x"$enablestring" = xdisable; then
5609             if test $wxUSE_VISIBILITY = yes; then
5610               result=no
5611             else
5612               result=yes
5613             fi
5614           else
5615             result=$wxUSE_VISIBILITY
5616           fi
5617
5618           { echo "$as_me:$LINENO: result: $result" >&5
5619 echo "${ECHO_T}$result" >&6; }
5620
5621
5622
5623
5624           enablestring=
5625           defaultval=$wxUSE_ALL_FEATURES
5626           if test -z "$defaultval"; then
5627               if test x"$enablestring" = xdisable; then
5628                   defaultval=yes
5629               else
5630                   defaultval=no
5631               fi
5632           fi
5633
5634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5635 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5636           # Check whether --enable-intl was given.
5637 if test "${enable_intl+set}" = set; then
5638   enableval=$enable_intl;
5639                           if test "$enableval" = yes; then
5640                             wx_cv_use_intl='wxUSE_INTL=yes'
5641                           else
5642                             wx_cv_use_intl='wxUSE_INTL=no'
5643                           fi
5644
5645 else
5646
5647                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5648
5649 fi
5650
5651
5652           eval "$wx_cv_use_intl"
5653
5654           if test x"$enablestring" = xdisable; then
5655             if test $wxUSE_INTL = yes; then
5656               result=no
5657             else
5658               result=yes
5659             fi
5660           else
5661             result=$wxUSE_INTL
5662           fi
5663
5664           { echo "$as_me:$LINENO: result: $result" >&5
5665 echo "${ECHO_T}$result" >&6; }
5666
5667
5668           enablestring=
5669           defaultval=$wxUSE_ALL_FEATURES
5670           if test -z "$defaultval"; then
5671               if test x"$enablestring" = xdisable; then
5672                   defaultval=yes
5673               else
5674                   defaultval=no
5675               fi
5676           fi
5677
5678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5679 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5680           # Check whether --enable-xlocale was given.
5681 if test "${enable_xlocale+set}" = set; then
5682   enableval=$enable_xlocale;
5683                           if test "$enableval" = yes; then
5684                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5685                           else
5686                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5687                           fi
5688
5689 else
5690
5691                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5692
5693 fi
5694
5695
5696           eval "$wx_cv_use_xlocale"
5697
5698           if test x"$enablestring" = xdisable; then
5699             if test $wxUSE_XLOCALE = yes; then
5700               result=no
5701             else
5702               result=yes
5703             fi
5704           else
5705             result=$wxUSE_XLOCALE
5706           fi
5707
5708           { echo "$as_me:$LINENO: result: $result" >&5
5709 echo "${ECHO_T}$result" >&6; }
5710
5711
5712           enablestring=
5713           defaultval=$wxUSE_ALL_FEATURES
5714           if test -z "$defaultval"; then
5715               if test x"$enablestring" = xdisable; then
5716                   defaultval=yes
5717               else
5718                   defaultval=no
5719               fi
5720           fi
5721
5722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5723 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5724           # Check whether --enable-config was given.
5725 if test "${enable_config+set}" = set; then
5726   enableval=$enable_config;
5727                           if test "$enableval" = yes; then
5728                             wx_cv_use_config='wxUSE_CONFIG=yes'
5729                           else
5730                             wx_cv_use_config='wxUSE_CONFIG=no'
5731                           fi
5732
5733 else
5734
5735                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5736
5737 fi
5738
5739
5740           eval "$wx_cv_use_config"
5741
5742           if test x"$enablestring" = xdisable; then
5743             if test $wxUSE_CONFIG = yes; then
5744               result=no
5745             else
5746               result=yes
5747             fi
5748           else
5749             result=$wxUSE_CONFIG
5750           fi
5751
5752           { echo "$as_me:$LINENO: result: $result" >&5
5753 echo "${ECHO_T}$result" >&6; }
5754
5755
5756
5757           enablestring=
5758           defaultval=$wxUSE_ALL_FEATURES
5759           if test -z "$defaultval"; then
5760               if test x"$enablestring" = xdisable; then
5761                   defaultval=yes
5762               else
5763                   defaultval=no
5764               fi
5765           fi
5766
5767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5768 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5769           # Check whether --enable-protocols was given.
5770 if test "${enable_protocols+set}" = set; then
5771   enableval=$enable_protocols;
5772                           if test "$enableval" = yes; then
5773                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5774                           else
5775                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5776                           fi
5777
5778 else
5779
5780                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5781
5782 fi
5783
5784
5785           eval "$wx_cv_use_protocols"
5786
5787           if test x"$enablestring" = xdisable; then
5788             if test $wxUSE_PROTOCOL = yes; then
5789               result=no
5790             else
5791               result=yes
5792             fi
5793           else
5794             result=$wxUSE_PROTOCOL
5795           fi
5796
5797           { echo "$as_me:$LINENO: result: $result" >&5
5798 echo "${ECHO_T}$result" >&6; }
5799
5800
5801           enablestring=
5802           defaultval=$wxUSE_ALL_FEATURES
5803           if test -z "$defaultval"; then
5804               if test x"$enablestring" = xdisable; then
5805                   defaultval=yes
5806               else
5807                   defaultval=no
5808               fi
5809           fi
5810
5811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5812 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5813           # Check whether --enable-ftp was given.
5814 if test "${enable_ftp+set}" = set; then
5815   enableval=$enable_ftp;
5816                           if test "$enableval" = yes; then
5817                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5818                           else
5819                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5820                           fi
5821
5822 else
5823
5824                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5825
5826 fi
5827
5828
5829           eval "$wx_cv_use_ftp"
5830
5831           if test x"$enablestring" = xdisable; then
5832             if test $wxUSE_PROTOCOL_FTP = yes; then
5833               result=no
5834             else
5835               result=yes
5836             fi
5837           else
5838             result=$wxUSE_PROTOCOL_FTP
5839           fi
5840
5841           { echo "$as_me:$LINENO: result: $result" >&5
5842 echo "${ECHO_T}$result" >&6; }
5843
5844
5845           enablestring=
5846           defaultval=$wxUSE_ALL_FEATURES
5847           if test -z "$defaultval"; then
5848               if test x"$enablestring" = xdisable; then
5849                   defaultval=yes
5850               else
5851                   defaultval=no
5852               fi
5853           fi
5854
5855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5856 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5857           # Check whether --enable-http was given.
5858 if test "${enable_http+set}" = set; then
5859   enableval=$enable_http;
5860                           if test "$enableval" = yes; then
5861                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5862                           else
5863                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5864                           fi
5865
5866 else
5867
5868                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5869
5870 fi
5871
5872
5873           eval "$wx_cv_use_http"
5874
5875           if test x"$enablestring" = xdisable; then
5876             if test $wxUSE_PROTOCOL_HTTP = yes; then
5877               result=no
5878             else
5879               result=yes
5880             fi
5881           else
5882             result=$wxUSE_PROTOCOL_HTTP
5883           fi
5884
5885           { echo "$as_me:$LINENO: result: $result" >&5
5886 echo "${ECHO_T}$result" >&6; }
5887
5888
5889           enablestring=
5890           defaultval=$wxUSE_ALL_FEATURES
5891           if test -z "$defaultval"; then
5892               if test x"$enablestring" = xdisable; then
5893                   defaultval=yes
5894               else
5895                   defaultval=no
5896               fi
5897           fi
5898
5899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5900 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5901           # Check whether --enable-fileproto was given.
5902 if test "${enable_fileproto+set}" = set; then
5903   enableval=$enable_fileproto;
5904                           if test "$enableval" = yes; then
5905                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5906                           else
5907                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5908                           fi
5909
5910 else
5911
5912                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5913
5914 fi
5915
5916
5917           eval "$wx_cv_use_fileproto"
5918
5919           if test x"$enablestring" = xdisable; then
5920             if test $wxUSE_PROTOCOL_FILE = yes; then
5921               result=no
5922             else
5923               result=yes
5924             fi
5925           else
5926             result=$wxUSE_PROTOCOL_FILE
5927           fi
5928
5929           { echo "$as_me:$LINENO: result: $result" >&5
5930 echo "${ECHO_T}$result" >&6; }
5931
5932
5933           enablestring=
5934           defaultval=$wxUSE_ALL_FEATURES
5935           if test -z "$defaultval"; then
5936               if test x"$enablestring" = xdisable; then
5937                   defaultval=yes
5938               else
5939                   defaultval=no
5940               fi
5941           fi
5942
5943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5944 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5945           # Check whether --enable-sockets was given.
5946 if test "${enable_sockets+set}" = set; then
5947   enableval=$enable_sockets;
5948                           if test "$enableval" = yes; then
5949                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5950                           else
5951                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5952                           fi
5953
5954 else
5955
5956                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5957
5958 fi
5959
5960
5961           eval "$wx_cv_use_sockets"
5962
5963           if test x"$enablestring" = xdisable; then
5964             if test $wxUSE_SOCKETS = yes; then
5965               result=no
5966             else
5967               result=yes
5968             fi
5969           else
5970             result=$wxUSE_SOCKETS
5971           fi
5972
5973           { echo "$as_me:$LINENO: result: $result" >&5
5974 echo "${ECHO_T}$result" >&6; }
5975
5976
5977           enablestring=
5978           defaultval=$wxUSE_ALL_FEATURES
5979           if test -z "$defaultval"; then
5980               if test x"$enablestring" = xdisable; then
5981                   defaultval=yes
5982               else
5983                   defaultval=no
5984               fi
5985           fi
5986
5987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5988 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5989           # Check whether --enable-ipv6 was given.
5990 if test "${enable_ipv6+set}" = set; then
5991   enableval=$enable_ipv6;
5992                           if test "$enableval" = yes; then
5993                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5994                           else
5995                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5996                           fi
5997
5998 else
5999
6000                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6001
6002 fi
6003
6004
6005           eval "$wx_cv_use_ipv6"
6006
6007           if test x"$enablestring" = xdisable; then
6008             if test $wxUSE_IPV6 = yes; then
6009               result=no
6010             else
6011               result=yes
6012             fi
6013           else
6014             result=$wxUSE_IPV6
6015           fi
6016
6017           { echo "$as_me:$LINENO: result: $result" >&5
6018 echo "${ECHO_T}$result" >&6; }
6019
6020
6021           enablestring=
6022           defaultval=$wxUSE_ALL_FEATURES
6023           if test -z "$defaultval"; then
6024               if test x"$enablestring" = xdisable; then
6025                   defaultval=yes
6026               else
6027                   defaultval=no
6028               fi
6029           fi
6030
6031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6032 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6033           # Check whether --enable-ole was given.
6034 if test "${enable_ole+set}" = set; then
6035   enableval=$enable_ole;
6036                           if test "$enableval" = yes; then
6037                             wx_cv_use_ole='wxUSE_OLE=yes'
6038                           else
6039                             wx_cv_use_ole='wxUSE_OLE=no'
6040                           fi
6041
6042 else
6043
6044                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6045
6046 fi
6047
6048
6049           eval "$wx_cv_use_ole"
6050
6051           if test x"$enablestring" = xdisable; then
6052             if test $wxUSE_OLE = yes; then
6053               result=no
6054             else
6055               result=yes
6056             fi
6057           else
6058             result=$wxUSE_OLE
6059           fi
6060
6061           { echo "$as_me:$LINENO: result: $result" >&5
6062 echo "${ECHO_T}$result" >&6; }
6063
6064
6065           enablestring=
6066           defaultval=$wxUSE_ALL_FEATURES
6067           if test -z "$defaultval"; then
6068               if test x"$enablestring" = xdisable; then
6069                   defaultval=yes
6070               else
6071                   defaultval=no
6072               fi
6073           fi
6074
6075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6076 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6077           # Check whether --enable-dataobj was given.
6078 if test "${enable_dataobj+set}" = set; then
6079   enableval=$enable_dataobj;
6080                           if test "$enableval" = yes; then
6081                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6082                           else
6083                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6084                           fi
6085
6086 else
6087
6088                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6089
6090 fi
6091
6092
6093           eval "$wx_cv_use_dataobj"
6094
6095           if test x"$enablestring" = xdisable; then
6096             if test $wxUSE_DATAOBJ = yes; then
6097               result=no
6098             else
6099               result=yes
6100             fi
6101           else
6102             result=$wxUSE_DATAOBJ
6103           fi
6104
6105           { echo "$as_me:$LINENO: result: $result" >&5
6106 echo "${ECHO_T}$result" >&6; }
6107
6108
6109
6110           enablestring=
6111           defaultval=$wxUSE_ALL_FEATURES
6112           if test -z "$defaultval"; then
6113               if test x"$enablestring" = xdisable; then
6114                   defaultval=yes
6115               else
6116                   defaultval=no
6117               fi
6118           fi
6119
6120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6121 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6122           # Check whether --enable-ipc was given.
6123 if test "${enable_ipc+set}" = set; then
6124   enableval=$enable_ipc;
6125                           if test "$enableval" = yes; then
6126                             wx_cv_use_ipc='wxUSE_IPC=yes'
6127                           else
6128                             wx_cv_use_ipc='wxUSE_IPC=no'
6129                           fi
6130
6131 else
6132
6133                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6134
6135 fi
6136
6137
6138           eval "$wx_cv_use_ipc"
6139
6140           if test x"$enablestring" = xdisable; then
6141             if test $wxUSE_IPC = yes; then
6142               result=no
6143             else
6144               result=yes
6145             fi
6146           else
6147             result=$wxUSE_IPC
6148           fi
6149
6150           { echo "$as_me:$LINENO: result: $result" >&5
6151 echo "${ECHO_T}$result" >&6; }
6152
6153
6154
6155           enablestring=
6156           defaultval=$wxUSE_ALL_FEATURES
6157           if test -z "$defaultval"; then
6158               if test x"$enablestring" = xdisable; then
6159                   defaultval=yes
6160               else
6161                   defaultval=no
6162               fi
6163           fi
6164
6165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6166 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6167           # Check whether --enable-baseevtloop was given.
6168 if test "${enable_baseevtloop+set}" = set; then
6169   enableval=$enable_baseevtloop;
6170                           if test "$enableval" = yes; then
6171                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6172                           else
6173                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6174                           fi
6175
6176 else
6177
6178                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6179
6180 fi
6181
6182
6183           eval "$wx_cv_use_baseevtloop"
6184
6185           if test x"$enablestring" = xdisable; then
6186             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6187               result=no
6188             else
6189               result=yes
6190             fi
6191           else
6192             result=$wxUSE_CONSOLE_EVENTLOOP
6193           fi
6194
6195           { echo "$as_me:$LINENO: result: $result" >&5
6196 echo "${ECHO_T}$result" >&6; }
6197
6198
6199           enablestring=
6200           defaultval=$wxUSE_ALL_FEATURES
6201           if test -z "$defaultval"; then
6202               if test x"$enablestring" = xdisable; then
6203                   defaultval=yes
6204               else
6205                   defaultval=no
6206               fi
6207           fi
6208
6209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6210 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6211           # Check whether --enable-epollloop was given.
6212 if test "${enable_epollloop+set}" = set; then
6213   enableval=$enable_epollloop;
6214                           if test "$enableval" = yes; then
6215                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6216                           else
6217                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6218                           fi
6219
6220 else
6221
6222                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6223
6224 fi
6225
6226
6227           eval "$wx_cv_use_epollloop"
6228
6229           if test x"$enablestring" = xdisable; then
6230             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6231               result=no
6232             else
6233               result=yes
6234             fi
6235           else
6236             result=$wxUSE_EPOLL_DISPATCHER
6237           fi
6238
6239           { echo "$as_me:$LINENO: result: $result" >&5
6240 echo "${ECHO_T}$result" >&6; }
6241
6242
6243           enablestring=
6244           defaultval=$wxUSE_ALL_FEATURES
6245           if test -z "$defaultval"; then
6246               if test x"$enablestring" = xdisable; then
6247                   defaultval=yes
6248               else
6249                   defaultval=no
6250               fi
6251           fi
6252
6253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6254 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6255           # Check whether --enable-selectloop was given.
6256 if test "${enable_selectloop+set}" = set; then
6257   enableval=$enable_selectloop;
6258                           if test "$enableval" = yes; then
6259                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6260                           else
6261                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6262                           fi
6263
6264 else
6265
6266                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6267
6268 fi
6269
6270
6271           eval "$wx_cv_use_selectloop"
6272
6273           if test x"$enablestring" = xdisable; then
6274             if test $wxUSE_SELECT_DISPATCHER = yes; then
6275               result=no
6276             else
6277               result=yes
6278             fi
6279           else
6280             result=$wxUSE_SELECT_DISPATCHER
6281           fi
6282
6283           { echo "$as_me:$LINENO: result: $result" >&5
6284 echo "${ECHO_T}$result" >&6; }
6285
6286
6287
6288           enablestring=
6289           defaultval=$wxUSE_ALL_FEATURES
6290           if test -z "$defaultval"; then
6291               if test x"$enablestring" = xdisable; then
6292                   defaultval=yes
6293               else
6294                   defaultval=no
6295               fi
6296           fi
6297
6298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6299 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6300           # Check whether --enable-apple_ieee was given.
6301 if test "${enable_apple_ieee+set}" = set; then
6302   enableval=$enable_apple_ieee;
6303                           if test "$enableval" = yes; then
6304                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6305                           else
6306                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6307                           fi
6308
6309 else
6310
6311                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6312
6313 fi
6314
6315
6316           eval "$wx_cv_use_apple_ieee"
6317
6318           if test x"$enablestring" = xdisable; then
6319             if test $wxUSE_APPLE_IEEE = yes; then
6320               result=no
6321             else
6322               result=yes
6323             fi
6324           else
6325             result=$wxUSE_APPLE_IEEE
6326           fi
6327
6328           { echo "$as_me:$LINENO: result: $result" >&5
6329 echo "${ECHO_T}$result" >&6; }
6330
6331
6332           enablestring=
6333           defaultval=$wxUSE_ALL_FEATURES
6334           if test -z "$defaultval"; then
6335               if test x"$enablestring" = xdisable; then
6336                   defaultval=yes
6337               else
6338                   defaultval=no
6339               fi
6340           fi
6341
6342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6343 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6344           # Check whether --enable-arcstream was given.
6345 if test "${enable_arcstream+set}" = set; then
6346   enableval=$enable_arcstream;
6347                           if test "$enableval" = yes; then
6348                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6349                           else
6350                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6351                           fi
6352
6353 else
6354
6355                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6356
6357 fi
6358
6359
6360           eval "$wx_cv_use_arcstream"
6361
6362           if test x"$enablestring" = xdisable; then
6363             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6364               result=no
6365             else
6366               result=yes
6367             fi
6368           else
6369             result=$wxUSE_ARCHIVE_STREAMS
6370           fi
6371
6372           { echo "$as_me:$LINENO: result: $result" >&5
6373 echo "${ECHO_T}$result" >&6; }
6374
6375
6376           enablestring=
6377           defaultval=$wxUSE_ALL_FEATURES
6378           if test -z "$defaultval"; then
6379               if test x"$enablestring" = xdisable; then
6380                   defaultval=yes
6381               else
6382                   defaultval=no
6383               fi
6384           fi
6385
6386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6387 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6388           # Check whether --enable-base64 was given.
6389 if test "${enable_base64+set}" = set; then
6390   enableval=$enable_base64;
6391                           if test "$enableval" = yes; then
6392                             wx_cv_use_base64='wxUSE_BASE64=yes'
6393                           else
6394                             wx_cv_use_base64='wxUSE_BASE64=no'
6395                           fi
6396
6397 else
6398
6399                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6400
6401 fi
6402
6403
6404           eval "$wx_cv_use_base64"
6405
6406           if test x"$enablestring" = xdisable; then
6407             if test $wxUSE_BASE64 = yes; then
6408               result=no
6409             else
6410               result=yes
6411             fi
6412           else
6413             result=$wxUSE_BASE64
6414           fi
6415
6416           { echo "$as_me:$LINENO: result: $result" >&5
6417 echo "${ECHO_T}$result" >&6; }
6418
6419
6420           enablestring=
6421           defaultval=$wxUSE_ALL_FEATURES
6422           if test -z "$defaultval"; then
6423               if test x"$enablestring" = xdisable; then
6424                   defaultval=yes
6425               else
6426                   defaultval=no
6427               fi
6428           fi
6429
6430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6431 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6432           # Check whether --enable-backtrace was given.
6433 if test "${enable_backtrace+set}" = set; then
6434   enableval=$enable_backtrace;
6435                           if test "$enableval" = yes; then
6436                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6437                           else
6438                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6439                           fi
6440
6441 else
6442
6443                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6444
6445 fi
6446
6447
6448           eval "$wx_cv_use_backtrace"
6449
6450           if test x"$enablestring" = xdisable; then
6451             if test $wxUSE_STACKWALKER = yes; then
6452               result=no
6453             else
6454               result=yes
6455             fi
6456           else
6457             result=$wxUSE_STACKWALKER
6458           fi
6459
6460           { echo "$as_me:$LINENO: result: $result" >&5
6461 echo "${ECHO_T}$result" >&6; }
6462
6463
6464           enablestring=
6465           defaultval=$wxUSE_ALL_FEATURES
6466           if test -z "$defaultval"; then
6467               if test x"$enablestring" = xdisable; then
6468                   defaultval=yes
6469               else
6470                   defaultval=no
6471               fi
6472           fi
6473
6474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6475 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6476           # Check whether --enable-catch_segvs was given.
6477 if test "${enable_catch_segvs+set}" = set; then
6478   enableval=$enable_catch_segvs;
6479                           if test "$enableval" = yes; then
6480                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6481                           else
6482                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6483                           fi
6484
6485 else
6486
6487                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6488
6489 fi
6490
6491
6492           eval "$wx_cv_use_catch_segvs"
6493
6494           if test x"$enablestring" = xdisable; then
6495             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6496               result=no
6497             else
6498               result=yes
6499             fi
6500           else
6501             result=$wxUSE_ON_FATAL_EXCEPTION
6502           fi
6503
6504           { echo "$as_me:$LINENO: result: $result" >&5
6505 echo "${ECHO_T}$result" >&6; }
6506
6507
6508           enablestring=
6509           defaultval=$wxUSE_ALL_FEATURES
6510           if test -z "$defaultval"; then
6511               if test x"$enablestring" = xdisable; then
6512                   defaultval=yes
6513               else
6514                   defaultval=no
6515               fi
6516           fi
6517
6518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6519 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6520           # Check whether --enable-cmdline was given.
6521 if test "${enable_cmdline+set}" = set; then
6522   enableval=$enable_cmdline;
6523                           if test "$enableval" = yes; then
6524                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6525                           else
6526                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6527                           fi
6528
6529 else
6530
6531                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6532
6533 fi
6534
6535
6536           eval "$wx_cv_use_cmdline"
6537
6538           if test x"$enablestring" = xdisable; then
6539             if test $wxUSE_CMDLINE_PARSER = yes; then
6540               result=no
6541             else
6542               result=yes
6543             fi
6544           else
6545             result=$wxUSE_CMDLINE_PARSER
6546           fi
6547
6548           { echo "$as_me:$LINENO: result: $result" >&5
6549 echo "${ECHO_T}$result" >&6; }
6550
6551
6552           enablestring=
6553           defaultval=$wxUSE_ALL_FEATURES
6554           if test -z "$defaultval"; then
6555               if test x"$enablestring" = xdisable; then
6556                   defaultval=yes
6557               else
6558                   defaultval=no
6559               fi
6560           fi
6561
6562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6563 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6564           # Check whether --enable-datetime was given.
6565 if test "${enable_datetime+set}" = set; then
6566   enableval=$enable_datetime;
6567                           if test "$enableval" = yes; then
6568                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6569                           else
6570                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6571                           fi
6572
6573 else
6574
6575                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6576
6577 fi
6578
6579
6580           eval "$wx_cv_use_datetime"
6581
6582           if test x"$enablestring" = xdisable; then
6583             if test $wxUSE_DATETIME = yes; then
6584               result=no
6585             else
6586               result=yes
6587             fi
6588           else
6589             result=$wxUSE_DATETIME
6590           fi
6591
6592           { echo "$as_me:$LINENO: result: $result" >&5
6593 echo "${ECHO_T}$result" >&6; }
6594
6595
6596           enablestring=
6597           defaultval=$wxUSE_ALL_FEATURES
6598           if test -z "$defaultval"; then
6599               if test x"$enablestring" = xdisable; then
6600                   defaultval=yes
6601               else
6602                   defaultval=no
6603               fi
6604           fi
6605
6606           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6607 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6608           # Check whether --enable-debugreport was given.
6609 if test "${enable_debugreport+set}" = set; then
6610   enableval=$enable_debugreport;
6611                           if test "$enableval" = yes; then
6612                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6613                           else
6614                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6615                           fi
6616
6617 else
6618
6619                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6620
6621 fi
6622
6623
6624           eval "$wx_cv_use_debugreport"
6625
6626           if test x"$enablestring" = xdisable; then
6627             if test $wxUSE_DEBUGREPORT = yes; then
6628               result=no
6629             else
6630               result=yes
6631             fi
6632           else
6633             result=$wxUSE_DEBUGREPORT
6634           fi
6635
6636           { echo "$as_me:$LINENO: result: $result" >&5
6637 echo "${ECHO_T}$result" >&6; }
6638
6639
6640           enablestring=
6641           defaultval=$wxUSE_ALL_FEATURES
6642           if test -z "$defaultval"; then
6643               if test x"$enablestring" = xdisable; then
6644                   defaultval=yes
6645               else
6646                   defaultval=no
6647               fi
6648           fi
6649
6650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6651 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6652           # Check whether --enable-dialupman was given.
6653 if test "${enable_dialupman+set}" = set; then
6654   enableval=$enable_dialupman;
6655                           if test "$enableval" = yes; then
6656                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6657                           else
6658                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6659                           fi
6660
6661 else
6662
6663                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6664
6665 fi
6666
6667
6668           eval "$wx_cv_use_dialupman"
6669
6670           if test x"$enablestring" = xdisable; then
6671             if test $wxUSE_DIALUP_MANAGER = yes; then
6672               result=no
6673             else
6674               result=yes
6675             fi
6676           else
6677             result=$wxUSE_DIALUP_MANAGER
6678           fi
6679
6680           { echo "$as_me:$LINENO: result: $result" >&5
6681 echo "${ECHO_T}$result" >&6; }
6682
6683
6684           enablestring=
6685           defaultval=$wxUSE_ALL_FEATURES
6686           if test -z "$defaultval"; then
6687               if test x"$enablestring" = xdisable; then
6688                   defaultval=yes
6689               else
6690                   defaultval=no
6691               fi
6692           fi
6693
6694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6695 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6696           # Check whether --enable-dynlib was given.
6697 if test "${enable_dynlib+set}" = set; then
6698   enableval=$enable_dynlib;
6699                           if test "$enableval" = yes; then
6700                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6701                           else
6702                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6703                           fi
6704
6705 else
6706
6707                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6708
6709 fi
6710
6711
6712           eval "$wx_cv_use_dynlib"
6713
6714           if test x"$enablestring" = xdisable; then
6715             if test $wxUSE_DYNLIB_CLASS = yes; then
6716               result=no
6717             else
6718               result=yes
6719             fi
6720           else
6721             result=$wxUSE_DYNLIB_CLASS
6722           fi
6723
6724           { echo "$as_me:$LINENO: result: $result" >&5
6725 echo "${ECHO_T}$result" >&6; }
6726
6727
6728           enablestring=
6729           defaultval=$wxUSE_ALL_FEATURES
6730           if test -z "$defaultval"; then
6731               if test x"$enablestring" = xdisable; then
6732                   defaultval=yes
6733               else
6734                   defaultval=no
6735               fi
6736           fi
6737
6738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6739 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6740           # Check whether --enable-dynamicloader was given.
6741 if test "${enable_dynamicloader+set}" = set; then
6742   enableval=$enable_dynamicloader;
6743                           if test "$enableval" = yes; then
6744                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6745                           else
6746                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6747                           fi
6748
6749 else
6750
6751                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6752
6753 fi
6754
6755
6756           eval "$wx_cv_use_dynamicloader"
6757
6758           if test x"$enablestring" = xdisable; then
6759             if test $wxUSE_DYNAMIC_LOADER = yes; then
6760               result=no
6761             else
6762               result=yes
6763             fi
6764           else
6765             result=$wxUSE_DYNAMIC_LOADER
6766           fi
6767
6768           { echo "$as_me:$LINENO: result: $result" >&5
6769 echo "${ECHO_T}$result" >&6; }
6770
6771
6772           enablestring=
6773           defaultval=$wxUSE_ALL_FEATURES
6774           if test -z "$defaultval"; then
6775               if test x"$enablestring" = xdisable; then
6776                   defaultval=yes
6777               else
6778                   defaultval=no
6779               fi
6780           fi
6781
6782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6783 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6784           # Check whether --enable-exceptions was given.
6785 if test "${enable_exceptions+set}" = set; then
6786   enableval=$enable_exceptions;
6787                           if test "$enableval" = yes; then
6788                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6789                           else
6790                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6791                           fi
6792
6793 else
6794
6795                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6796
6797 fi
6798
6799
6800           eval "$wx_cv_use_exceptions"
6801
6802           if test x"$enablestring" = xdisable; then
6803             if test $wxUSE_EXCEPTIONS = yes; then
6804               result=no
6805             else
6806               result=yes
6807             fi
6808           else
6809             result=$wxUSE_EXCEPTIONS
6810           fi
6811
6812           { echo "$as_me:$LINENO: result: $result" >&5
6813 echo "${ECHO_T}$result" >&6; }
6814
6815
6816           enablestring=
6817           defaultval=$wxUSE_ALL_FEATURES
6818           if test -z "$defaultval"; then
6819               if test x"$enablestring" = xdisable; then
6820                   defaultval=yes
6821               else
6822                   defaultval=no
6823               fi
6824           fi
6825
6826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6827 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6828           # Check whether --enable-ffile was given.
6829 if test "${enable_ffile+set}" = set; then
6830   enableval=$enable_ffile;
6831                           if test "$enableval" = yes; then
6832                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6833                           else
6834                             wx_cv_use_ffile='wxUSE_FFILE=no'
6835                           fi
6836
6837 else
6838
6839                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6840
6841 fi
6842
6843
6844           eval "$wx_cv_use_ffile"
6845
6846           if test x"$enablestring" = xdisable; then
6847             if test $wxUSE_FFILE = yes; then
6848               result=no
6849             else
6850               result=yes
6851             fi
6852           else
6853             result=$wxUSE_FFILE
6854           fi
6855
6856           { echo "$as_me:$LINENO: result: $result" >&5
6857 echo "${ECHO_T}$result" >&6; }
6858
6859
6860           enablestring=
6861           defaultval=$wxUSE_ALL_FEATURES
6862           if test -z "$defaultval"; then
6863               if test x"$enablestring" = xdisable; then
6864                   defaultval=yes
6865               else
6866                   defaultval=no
6867               fi
6868           fi
6869
6870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6871 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6872           # Check whether --enable-file was given.
6873 if test "${enable_file+set}" = set; then
6874   enableval=$enable_file;
6875                           if test "$enableval" = yes; then
6876                             wx_cv_use_file='wxUSE_FILE=yes'
6877                           else
6878                             wx_cv_use_file='wxUSE_FILE=no'
6879                           fi
6880
6881 else
6882
6883                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6884
6885 fi
6886
6887
6888           eval "$wx_cv_use_file"
6889
6890           if test x"$enablestring" = xdisable; then
6891             if test $wxUSE_FILE = yes; then
6892               result=no
6893             else
6894               result=yes
6895             fi
6896           else
6897             result=$wxUSE_FILE
6898           fi
6899
6900           { echo "$as_me:$LINENO: result: $result" >&5
6901 echo "${ECHO_T}$result" >&6; }
6902
6903
6904           enablestring=
6905           defaultval=$wxUSE_ALL_FEATURES
6906           if test -z "$defaultval"; then
6907               if test x"$enablestring" = xdisable; then
6908                   defaultval=yes
6909               else
6910                   defaultval=no
6911               fi
6912           fi
6913
6914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6915 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6916           # Check whether --enable-filesystem was given.
6917 if test "${enable_filesystem+set}" = set; then
6918   enableval=$enable_filesystem;
6919                           if test "$enableval" = yes; then
6920                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6921                           else
6922                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6923                           fi
6924
6925 else
6926
6927                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6928
6929 fi
6930
6931
6932           eval "$wx_cv_use_filesystem"
6933
6934           if test x"$enablestring" = xdisable; then
6935             if test $wxUSE_FILESYSTEM = yes; then
6936               result=no
6937             else
6938               result=yes
6939             fi
6940           else
6941             result=$wxUSE_FILESYSTEM
6942           fi
6943
6944           { echo "$as_me:$LINENO: result: $result" >&5
6945 echo "${ECHO_T}$result" >&6; }
6946
6947
6948           enablestring=
6949           defaultval=$wxUSE_ALL_FEATURES
6950           if test -z "$defaultval"; then
6951               if test x"$enablestring" = xdisable; then
6952                   defaultval=yes
6953               else
6954                   defaultval=no
6955               fi
6956           fi
6957
6958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6959 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6960           # Check whether --enable-fontenum was given.
6961 if test "${enable_fontenum+set}" = set; then
6962   enableval=$enable_fontenum;
6963                           if test "$enableval" = yes; then
6964                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6965                           else
6966                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6967                           fi
6968
6969 else
6970
6971                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6972
6973 fi
6974
6975
6976           eval "$wx_cv_use_fontenum"
6977
6978           if test x"$enablestring" = xdisable; then
6979             if test $wxUSE_FONTENUM = yes; then
6980               result=no
6981             else
6982               result=yes
6983             fi
6984           else
6985             result=$wxUSE_FONTENUM
6986           fi
6987
6988           { echo "$as_me:$LINENO: result: $result" >&5
6989 echo "${ECHO_T}$result" >&6; }
6990
6991
6992           enablestring=
6993           defaultval=$wxUSE_ALL_FEATURES
6994           if test -z "$defaultval"; then
6995               if test x"$enablestring" = xdisable; then
6996                   defaultval=yes
6997               else
6998                   defaultval=no
6999               fi
7000           fi
7001
7002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7003 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7004           # Check whether --enable-fontmap was given.
7005 if test "${enable_fontmap+set}" = set; then
7006   enableval=$enable_fontmap;
7007                           if test "$enableval" = yes; then
7008                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7009                           else
7010                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7011                           fi
7012
7013 else
7014
7015                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7016
7017 fi
7018
7019
7020           eval "$wx_cv_use_fontmap"
7021
7022           if test x"$enablestring" = xdisable; then
7023             if test $wxUSE_FONTMAP = yes; then
7024               result=no
7025             else
7026               result=yes
7027             fi
7028           else
7029             result=$wxUSE_FONTMAP
7030           fi
7031
7032           { echo "$as_me:$LINENO: result: $result" >&5
7033 echo "${ECHO_T}$result" >&6; }
7034
7035
7036           enablestring=
7037           defaultval=$wxUSE_ALL_FEATURES
7038           if test -z "$defaultval"; then
7039               if test x"$enablestring" = xdisable; then
7040                   defaultval=yes
7041               else
7042                   defaultval=no
7043               fi
7044           fi
7045
7046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7047 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7048           # Check whether --enable-fs_archive was given.
7049 if test "${enable_fs_archive+set}" = set; then
7050   enableval=$enable_fs_archive;
7051                           if test "$enableval" = yes; then
7052                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7053                           else
7054                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7055                           fi
7056
7057 else
7058
7059                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7060
7061 fi
7062
7063
7064           eval "$wx_cv_use_fs_archive"
7065
7066           if test x"$enablestring" = xdisable; then
7067             if test $wxUSE_FS_ARCHIVE = yes; then
7068               result=no
7069             else
7070               result=yes
7071             fi
7072           else
7073             result=$wxUSE_FS_ARCHIVE
7074           fi
7075
7076           { echo "$as_me:$LINENO: result: $result" >&5
7077 echo "${ECHO_T}$result" >&6; }
7078
7079
7080           enablestring=
7081           defaultval=$wxUSE_ALL_FEATURES
7082           if test -z "$defaultval"; then
7083               if test x"$enablestring" = xdisable; then
7084                   defaultval=yes
7085               else
7086                   defaultval=no
7087               fi
7088           fi
7089
7090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7091 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7092           # Check whether --enable-fs_inet was given.
7093 if test "${enable_fs_inet+set}" = set; then
7094   enableval=$enable_fs_inet;
7095                           if test "$enableval" = yes; then
7096                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7097                           else
7098                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7099                           fi
7100
7101 else
7102
7103                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7104
7105 fi
7106
7107
7108           eval "$wx_cv_use_fs_inet"
7109
7110           if test x"$enablestring" = xdisable; then
7111             if test $wxUSE_FS_INET = yes; then
7112               result=no
7113             else
7114               result=yes
7115             fi
7116           else
7117             result=$wxUSE_FS_INET
7118           fi
7119
7120           { echo "$as_me:$LINENO: result: $result" >&5
7121 echo "${ECHO_T}$result" >&6; }
7122
7123
7124           enablestring=
7125           defaultval=$wxUSE_ALL_FEATURES
7126           if test -z "$defaultval"; then
7127               if test x"$enablestring" = xdisable; then
7128                   defaultval=yes
7129               else
7130                   defaultval=no
7131               fi
7132           fi
7133
7134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7135 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7136           # Check whether --enable-fs_zip was given.
7137 if test "${enable_fs_zip+set}" = set; then
7138   enableval=$enable_fs_zip;
7139                           if test "$enableval" = yes; then
7140                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7141                           else
7142                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7143                           fi
7144
7145 else
7146
7147                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7148
7149 fi
7150
7151
7152           eval "$wx_cv_use_fs_zip"
7153
7154           if test x"$enablestring" = xdisable; then
7155             if test $wxUSE_FS_ZIP = yes; then
7156               result=no
7157             else
7158               result=yes
7159             fi
7160           else
7161             result=$wxUSE_FS_ZIP
7162           fi
7163
7164           { echo "$as_me:$LINENO: result: $result" >&5
7165 echo "${ECHO_T}$result" >&6; }
7166
7167
7168           enablestring=
7169           defaultval=$wxUSE_ALL_FEATURES
7170           if test -z "$defaultval"; then
7171               if test x"$enablestring" = xdisable; then
7172                   defaultval=yes
7173               else
7174                   defaultval=no
7175               fi
7176           fi
7177
7178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7179 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7180           # Check whether --enable-geometry was given.
7181 if test "${enable_geometry+set}" = set; then
7182   enableval=$enable_geometry;
7183                           if test "$enableval" = yes; then
7184                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7185                           else
7186                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7187                           fi
7188
7189 else
7190
7191                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7192
7193 fi
7194
7195
7196           eval "$wx_cv_use_geometry"
7197
7198           if test x"$enablestring" = xdisable; then
7199             if test $wxUSE_GEOMETRY = yes; then
7200               result=no
7201             else
7202               result=yes
7203             fi
7204           else
7205             result=$wxUSE_GEOMETRY
7206           fi
7207
7208           { echo "$as_me:$LINENO: result: $result" >&5
7209 echo "${ECHO_T}$result" >&6; }
7210
7211
7212           enablestring=
7213           defaultval=$wxUSE_ALL_FEATURES
7214           if test -z "$defaultval"; then
7215               if test x"$enablestring" = xdisable; then
7216                   defaultval=yes
7217               else
7218                   defaultval=no
7219               fi
7220           fi
7221
7222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7223 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7224           # Check whether --enable-log was given.
7225 if test "${enable_log+set}" = set; then
7226   enableval=$enable_log;
7227                           if test "$enableval" = yes; then
7228                             wx_cv_use_log='wxUSE_LOG=yes'
7229                           else
7230                             wx_cv_use_log='wxUSE_LOG=no'
7231                           fi
7232
7233 else
7234
7235                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7236
7237 fi
7238
7239
7240           eval "$wx_cv_use_log"
7241
7242           if test x"$enablestring" = xdisable; then
7243             if test $wxUSE_LOG = yes; then
7244               result=no
7245             else
7246               result=yes
7247             fi
7248           else
7249             result=$wxUSE_LOG
7250           fi
7251
7252           { echo "$as_me:$LINENO: result: $result" >&5
7253 echo "${ECHO_T}$result" >&6; }
7254
7255
7256           enablestring=
7257           defaultval=$wxUSE_ALL_FEATURES
7258           if test -z "$defaultval"; then
7259               if test x"$enablestring" = xdisable; then
7260                   defaultval=yes
7261               else
7262                   defaultval=no
7263               fi
7264           fi
7265
7266           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7267 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7268           # Check whether --enable-longlong was given.
7269 if test "${enable_longlong+set}" = set; then
7270   enableval=$enable_longlong;
7271                           if test "$enableval" = yes; then
7272                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7273                           else
7274                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7275                           fi
7276
7277 else
7278
7279                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7280
7281 fi
7282
7283
7284           eval "$wx_cv_use_longlong"
7285
7286           if test x"$enablestring" = xdisable; then
7287             if test $wxUSE_LONGLONG = yes; then
7288               result=no
7289             else
7290               result=yes
7291             fi
7292           else
7293             result=$wxUSE_LONGLONG
7294           fi
7295
7296           { echo "$as_me:$LINENO: result: $result" >&5
7297 echo "${ECHO_T}$result" >&6; }
7298
7299
7300           enablestring=
7301           defaultval=$wxUSE_ALL_FEATURES
7302           if test -z "$defaultval"; then
7303               if test x"$enablestring" = xdisable; then
7304                   defaultval=yes
7305               else
7306                   defaultval=no
7307               fi
7308           fi
7309
7310           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7311 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7312           # Check whether --enable-mimetype was given.
7313 if test "${enable_mimetype+set}" = set; then
7314   enableval=$enable_mimetype;
7315                           if test "$enableval" = yes; then
7316                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7317                           else
7318                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7319                           fi
7320
7321 else
7322
7323                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7324
7325 fi
7326
7327
7328           eval "$wx_cv_use_mimetype"
7329
7330           if test x"$enablestring" = xdisable; then
7331             if test $wxUSE_MIMETYPE = yes; then
7332               result=no
7333             else
7334               result=yes
7335             fi
7336           else
7337             result=$wxUSE_MIMETYPE
7338           fi
7339
7340           { echo "$as_me:$LINENO: result: $result" >&5
7341 echo "${ECHO_T}$result" >&6; }
7342
7343
7344           enablestring=
7345           defaultval=$wxUSE_ALL_FEATURES
7346           if test -z "$defaultval"; then
7347               if test x"$enablestring" = xdisable; then
7348                   defaultval=yes
7349               else
7350                   defaultval=no
7351               fi
7352           fi
7353
7354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7355 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7356           # Check whether --enable-printfposparam was given.
7357 if test "${enable_printfposparam+set}" = set; then
7358   enableval=$enable_printfposparam;
7359                           if test "$enableval" = yes; then
7360                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7361                           else
7362                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7363                           fi
7364
7365 else
7366
7367                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7368
7369 fi
7370
7371
7372           eval "$wx_cv_use_printfposparam"
7373
7374           if test x"$enablestring" = xdisable; then
7375             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7376               result=no
7377             else
7378               result=yes
7379             fi
7380           else
7381             result=$wxUSE_PRINTF_POS_PARAMS
7382           fi
7383
7384           { echo "$as_me:$LINENO: result: $result" >&5
7385 echo "${ECHO_T}$result" >&6; }
7386
7387
7388           enablestring=
7389           defaultval=$wxUSE_ALL_FEATURES
7390           if test -z "$defaultval"; then
7391               if test x"$enablestring" = xdisable; then
7392                   defaultval=yes
7393               else
7394                   defaultval=no
7395               fi
7396           fi
7397
7398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7399 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7400           # Check whether --enable-snglinst was given.
7401 if test "${enable_snglinst+set}" = set; then
7402   enableval=$enable_snglinst;
7403                           if test "$enableval" = yes; then
7404                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7405                           else
7406                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7407                           fi
7408
7409 else
7410
7411                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7412
7413 fi
7414
7415
7416           eval "$wx_cv_use_snglinst"
7417
7418           if test x"$enablestring" = xdisable; then
7419             if test $wxUSE_SNGLINST_CHECKER = yes; then
7420               result=no
7421             else
7422               result=yes
7423             fi
7424           else
7425             result=$wxUSE_SNGLINST_CHECKER
7426           fi
7427
7428           { echo "$as_me:$LINENO: result: $result" >&5
7429 echo "${ECHO_T}$result" >&6; }
7430
7431
7432           enablestring=
7433           defaultval=$wxUSE_ALL_FEATURES
7434           if test -z "$defaultval"; then
7435               if test x"$enablestring" = xdisable; then
7436                   defaultval=yes
7437               else
7438                   defaultval=no
7439               fi
7440           fi
7441
7442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7443 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7444           # Check whether --enable-sound was given.
7445 if test "${enable_sound+set}" = set; then
7446   enableval=$enable_sound;
7447                           if test "$enableval" = yes; then
7448                             wx_cv_use_sound='wxUSE_SOUND=yes'
7449                           else
7450                             wx_cv_use_sound='wxUSE_SOUND=no'
7451                           fi
7452
7453 else
7454
7455                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7456
7457 fi
7458
7459
7460           eval "$wx_cv_use_sound"
7461
7462           if test x"$enablestring" = xdisable; then
7463             if test $wxUSE_SOUND = yes; then
7464               result=no
7465             else
7466               result=yes
7467             fi
7468           else
7469             result=$wxUSE_SOUND
7470           fi
7471
7472           { echo "$as_me:$LINENO: result: $result" >&5
7473 echo "${ECHO_T}$result" >&6; }
7474
7475
7476           enablestring=
7477           defaultval=$wxUSE_ALL_FEATURES
7478           if test -z "$defaultval"; then
7479               if test x"$enablestring" = xdisable; then
7480                   defaultval=yes
7481               else
7482                   defaultval=no
7483               fi
7484           fi
7485
7486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7487 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7488           # Check whether --enable-stdpaths was given.
7489 if test "${enable_stdpaths+set}" = set; then
7490   enableval=$enable_stdpaths;
7491                           if test "$enableval" = yes; then
7492                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7493                           else
7494                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7495                           fi
7496
7497 else
7498
7499                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7500
7501 fi
7502
7503
7504           eval "$wx_cv_use_stdpaths"
7505
7506           if test x"$enablestring" = xdisable; then
7507             if test $wxUSE_STDPATHS = yes; then
7508               result=no
7509             else
7510               result=yes
7511             fi
7512           else
7513             result=$wxUSE_STDPATHS
7514           fi
7515
7516           { echo "$as_me:$LINENO: result: $result" >&5
7517 echo "${ECHO_T}$result" >&6; }
7518
7519
7520           enablestring=
7521           defaultval=$wxUSE_ALL_FEATURES
7522           if test -z "$defaultval"; then
7523               if test x"$enablestring" = xdisable; then
7524                   defaultval=yes
7525               else
7526                   defaultval=no
7527               fi
7528           fi
7529
7530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7531 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7532           # Check whether --enable-stopwatch was given.
7533 if test "${enable_stopwatch+set}" = set; then
7534   enableval=$enable_stopwatch;
7535                           if test "$enableval" = yes; then
7536                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7537                           else
7538                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7539                           fi
7540
7541 else
7542
7543                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7544
7545 fi
7546
7547
7548           eval "$wx_cv_use_stopwatch"
7549
7550           if test x"$enablestring" = xdisable; then
7551             if test $wxUSE_STOPWATCH = yes; then
7552               result=no
7553             else
7554               result=yes
7555             fi
7556           else
7557             result=$wxUSE_STOPWATCH
7558           fi
7559
7560           { echo "$as_me:$LINENO: result: $result" >&5
7561 echo "${ECHO_T}$result" >&6; }
7562
7563
7564           enablestring=
7565           defaultval=$wxUSE_ALL_FEATURES
7566           if test -z "$defaultval"; then
7567               if test x"$enablestring" = xdisable; then
7568                   defaultval=yes
7569               else
7570                   defaultval=no
7571               fi
7572           fi
7573
7574           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7575 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7576           # Check whether --enable-streams was given.
7577 if test "${enable_streams+set}" = set; then
7578   enableval=$enable_streams;
7579                           if test "$enableval" = yes; then
7580                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7581                           else
7582                             wx_cv_use_streams='wxUSE_STREAMS=no'
7583                           fi
7584
7585 else
7586
7587                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7588
7589 fi
7590
7591
7592           eval "$wx_cv_use_streams"
7593
7594           if test x"$enablestring" = xdisable; then
7595             if test $wxUSE_STREAMS = yes; then
7596               result=no
7597             else
7598               result=yes
7599             fi
7600           else
7601             result=$wxUSE_STREAMS
7602           fi
7603
7604           { echo "$as_me:$LINENO: result: $result" >&5
7605 echo "${ECHO_T}$result" >&6; }
7606
7607
7608           enablestring=
7609           defaultval=$wxUSE_ALL_FEATURES
7610           if test -z "$defaultval"; then
7611               if test x"$enablestring" = xdisable; then
7612                   defaultval=yes
7613               else
7614                   defaultval=no
7615               fi
7616           fi
7617
7618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7619 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7620           # Check whether --enable-system_options was given.
7621 if test "${enable_system_options+set}" = set; then
7622   enableval=$enable_system_options;
7623                           if test "$enableval" = yes; then
7624                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7625                           else
7626                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7627                           fi
7628
7629 else
7630
7631                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7632
7633 fi
7634
7635
7636           eval "$wx_cv_use_system_options"
7637
7638           if test x"$enablestring" = xdisable; then
7639             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7640               result=no
7641             else
7642               result=yes
7643             fi
7644           else
7645             result=$wxUSE_SYSTEM_OPTIONS
7646           fi
7647
7648           { echo "$as_me:$LINENO: result: $result" >&5
7649 echo "${ECHO_T}$result" >&6; }
7650
7651
7652           enablestring=
7653           defaultval=$wxUSE_ALL_FEATURES
7654           if test -z "$defaultval"; then
7655               if test x"$enablestring" = xdisable; then
7656                   defaultval=yes
7657               else
7658                   defaultval=no
7659               fi
7660           fi
7661
7662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7663 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7664           # Check whether --enable-tarstream was given.
7665 if test "${enable_tarstream+set}" = set; then
7666   enableval=$enable_tarstream;
7667                           if test "$enableval" = yes; then
7668                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7669                           else
7670                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7671                           fi
7672
7673 else
7674
7675                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7676
7677 fi
7678
7679
7680           eval "$wx_cv_use_tarstream"
7681
7682           if test x"$enablestring" = xdisable; then
7683             if test $wxUSE_TARSTREAM = yes; then
7684               result=no
7685             else
7686               result=yes
7687             fi
7688           else
7689             result=$wxUSE_TARSTREAM
7690           fi
7691
7692           { echo "$as_me:$LINENO: result: $result" >&5
7693 echo "${ECHO_T}$result" >&6; }
7694
7695
7696           enablestring=
7697           defaultval=$wxUSE_ALL_FEATURES
7698           if test -z "$defaultval"; then
7699               if test x"$enablestring" = xdisable; then
7700                   defaultval=yes
7701               else
7702                   defaultval=no
7703               fi
7704           fi
7705
7706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7707 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7708           # Check whether --enable-textbuf was given.
7709 if test "${enable_textbuf+set}" = set; then
7710   enableval=$enable_textbuf;
7711                           if test "$enableval" = yes; then
7712                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7713                           else
7714                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7715                           fi
7716
7717 else
7718
7719                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7720
7721 fi
7722
7723
7724           eval "$wx_cv_use_textbuf"
7725
7726           if test x"$enablestring" = xdisable; then
7727             if test $wxUSE_TEXTBUFFER = yes; then
7728               result=no
7729             else
7730               result=yes
7731             fi
7732           else
7733             result=$wxUSE_TEXTBUFFER
7734           fi
7735
7736           { echo "$as_me:$LINENO: result: $result" >&5
7737 echo "${ECHO_T}$result" >&6; }
7738
7739
7740           enablestring=
7741           defaultval=$wxUSE_ALL_FEATURES
7742           if test -z "$defaultval"; then
7743               if test x"$enablestring" = xdisable; then
7744                   defaultval=yes
7745               else
7746                   defaultval=no
7747               fi
7748           fi
7749
7750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7751 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7752           # Check whether --enable-textfile was given.
7753 if test "${enable_textfile+set}" = set; then
7754   enableval=$enable_textfile;
7755                           if test "$enableval" = yes; then
7756                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7757                           else
7758                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7759                           fi
7760
7761 else
7762
7763                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7764
7765 fi
7766
7767
7768           eval "$wx_cv_use_textfile"
7769
7770           if test x"$enablestring" = xdisable; then
7771             if test $wxUSE_TEXTFILE = yes; then
7772               result=no
7773             else
7774               result=yes
7775             fi
7776           else
7777             result=$wxUSE_TEXTFILE
7778           fi
7779
7780           { echo "$as_me:$LINENO: result: $result" >&5
7781 echo "${ECHO_T}$result" >&6; }
7782
7783
7784           enablestring=
7785           defaultval=$wxUSE_ALL_FEATURES
7786           if test -z "$defaultval"; then
7787               if test x"$enablestring" = xdisable; then
7788                   defaultval=yes
7789               else
7790                   defaultval=no
7791               fi
7792           fi
7793
7794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7795 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7796           # Check whether --enable-timer was given.
7797 if test "${enable_timer+set}" = set; then
7798   enableval=$enable_timer;
7799                           if test "$enableval" = yes; then
7800                             wx_cv_use_timer='wxUSE_TIMER=yes'
7801                           else
7802                             wx_cv_use_timer='wxUSE_TIMER=no'
7803                           fi
7804
7805 else
7806
7807                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7808
7809 fi
7810
7811
7812           eval "$wx_cv_use_timer"
7813
7814           if test x"$enablestring" = xdisable; then
7815             if test $wxUSE_TIMER = yes; then
7816               result=no
7817             else
7818               result=yes
7819             fi
7820           else
7821             result=$wxUSE_TIMER
7822           fi
7823
7824           { echo "$as_me:$LINENO: result: $result" >&5
7825 echo "${ECHO_T}$result" >&6; }
7826
7827
7828           enablestring=
7829           defaultval=$wxUSE_ALL_FEATURES
7830           if test -z "$defaultval"; then
7831               if test x"$enablestring" = xdisable; then
7832                   defaultval=yes
7833               else
7834                   defaultval=no
7835               fi
7836           fi
7837
7838           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7839 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7840           # Check whether --enable-variant was given.
7841 if test "${enable_variant+set}" = set; then
7842   enableval=$enable_variant;
7843                           if test "$enableval" = yes; then
7844                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7845                           else
7846                             wx_cv_use_variant='wxUSE_VARIANT=no'
7847                           fi
7848
7849 else
7850
7851                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7852
7853 fi
7854
7855
7856           eval "$wx_cv_use_variant"
7857
7858           if test x"$enablestring" = xdisable; then
7859             if test $wxUSE_VARIANT = yes; then
7860               result=no
7861             else
7862               result=yes
7863             fi
7864           else
7865             result=$wxUSE_VARIANT
7866           fi
7867
7868           { echo "$as_me:$LINENO: result: $result" >&5
7869 echo "${ECHO_T}$result" >&6; }
7870
7871
7872           enablestring=
7873           defaultval=$wxUSE_ALL_FEATURES
7874           if test -z "$defaultval"; then
7875               if test x"$enablestring" = xdisable; then
7876                   defaultval=yes
7877               else
7878                   defaultval=no
7879               fi
7880           fi
7881
7882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7883 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7884           # Check whether --enable-zipstream was given.
7885 if test "${enable_zipstream+set}" = set; then
7886   enableval=$enable_zipstream;
7887                           if test "$enableval" = yes; then
7888                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7889                           else
7890                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7891                           fi
7892
7893 else
7894
7895                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7896
7897 fi
7898
7899
7900           eval "$wx_cv_use_zipstream"
7901
7902           if test x"$enablestring" = xdisable; then
7903             if test $wxUSE_ZIPSTREAM = yes; then
7904               result=no
7905             else
7906               result=yes
7907             fi
7908           else
7909             result=$wxUSE_ZIPSTREAM
7910           fi
7911
7912           { echo "$as_me:$LINENO: result: $result" >&5
7913 echo "${ECHO_T}$result" >&6; }
7914
7915
7916
7917           enablestring=
7918           defaultval=$wxUSE_ALL_FEATURES
7919           if test -z "$defaultval"; then
7920               if test x"$enablestring" = xdisable; then
7921                   defaultval=yes
7922               else
7923                   defaultval=no
7924               fi
7925           fi
7926
7927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7928 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7929           # Check whether --enable-url was given.
7930 if test "${enable_url+set}" = set; then
7931   enableval=$enable_url;
7932                           if test "$enableval" = yes; then
7933                             wx_cv_use_url='wxUSE_URL=yes'
7934                           else
7935                             wx_cv_use_url='wxUSE_URL=no'
7936                           fi
7937
7938 else
7939
7940                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7941
7942 fi
7943
7944
7945           eval "$wx_cv_use_url"
7946
7947           if test x"$enablestring" = xdisable; then
7948             if test $wxUSE_URL = yes; then
7949               result=no
7950             else
7951               result=yes
7952             fi
7953           else
7954             result=$wxUSE_URL
7955           fi
7956
7957           { echo "$as_me:$LINENO: result: $result" >&5
7958 echo "${ECHO_T}$result" >&6; }
7959
7960
7961           enablestring=
7962           defaultval=$wxUSE_ALL_FEATURES
7963           if test -z "$defaultval"; then
7964               if test x"$enablestring" = xdisable; then
7965                   defaultval=yes
7966               else
7967                   defaultval=no
7968               fi
7969           fi
7970
7971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7972 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7973           # Check whether --enable-protocol was given.
7974 if test "${enable_protocol+set}" = set; then
7975   enableval=$enable_protocol;
7976                           if test "$enableval" = yes; then
7977                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7978                           else
7979                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7980                           fi
7981
7982 else
7983
7984                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7985
7986 fi
7987
7988
7989           eval "$wx_cv_use_protocol"
7990
7991           if test x"$enablestring" = xdisable; then
7992             if test $wxUSE_PROTOCOL = yes; then
7993               result=no
7994             else
7995               result=yes
7996             fi
7997           else
7998             result=$wxUSE_PROTOCOL
7999           fi
8000
8001           { echo "$as_me:$LINENO: result: $result" >&5
8002 echo "${ECHO_T}$result" >&6; }
8003
8004
8005           enablestring=
8006           defaultval=$wxUSE_ALL_FEATURES
8007           if test -z "$defaultval"; then
8008               if test x"$enablestring" = xdisable; then
8009                   defaultval=yes
8010               else
8011                   defaultval=no
8012               fi
8013           fi
8014
8015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8016 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8017           # Check whether --enable-protocol_http was given.
8018 if test "${enable_protocol_http+set}" = set; then
8019   enableval=$enable_protocol_http;
8020                           if test "$enableval" = yes; then
8021                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8022                           else
8023                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8024                           fi
8025
8026 else
8027
8028                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8029
8030 fi
8031
8032
8033           eval "$wx_cv_use_protocol_http"
8034
8035           if test x"$enablestring" = xdisable; then
8036             if test $wxUSE_PROTOCOL_HTTP = yes; then
8037               result=no
8038             else
8039               result=yes
8040             fi
8041           else
8042             result=$wxUSE_PROTOCOL_HTTP
8043           fi
8044
8045           { echo "$as_me:$LINENO: result: $result" >&5
8046 echo "${ECHO_T}$result" >&6; }
8047
8048
8049           enablestring=
8050           defaultval=$wxUSE_ALL_FEATURES
8051           if test -z "$defaultval"; then
8052               if test x"$enablestring" = xdisable; then
8053                   defaultval=yes
8054               else
8055                   defaultval=no
8056               fi
8057           fi
8058
8059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8060 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8061           # Check whether --enable-protocol_ftp was given.
8062 if test "${enable_protocol_ftp+set}" = set; then
8063   enableval=$enable_protocol_ftp;
8064                           if test "$enableval" = yes; then
8065                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8066                           else
8067                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8068                           fi
8069
8070 else
8071
8072                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8073
8074 fi
8075
8076
8077           eval "$wx_cv_use_protocol_ftp"
8078
8079           if test x"$enablestring" = xdisable; then
8080             if test $wxUSE_PROTOCOL_FTP = yes; then
8081               result=no
8082             else
8083               result=yes
8084             fi
8085           else
8086             result=$wxUSE_PROTOCOL_FTP
8087           fi
8088
8089           { echo "$as_me:$LINENO: result: $result" >&5
8090 echo "${ECHO_T}$result" >&6; }
8091
8092
8093           enablestring=
8094           defaultval=$wxUSE_ALL_FEATURES
8095           if test -z "$defaultval"; then
8096               if test x"$enablestring" = xdisable; then
8097                   defaultval=yes
8098               else
8099                   defaultval=no
8100               fi
8101           fi
8102
8103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8104 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8105           # Check whether --enable-protocol_file was given.
8106 if test "${enable_protocol_file+set}" = set; then
8107   enableval=$enable_protocol_file;
8108                           if test "$enableval" = yes; then
8109                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8110                           else
8111                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8112                           fi
8113
8114 else
8115
8116                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8117
8118 fi
8119
8120
8121           eval "$wx_cv_use_protocol_file"
8122
8123           if test x"$enablestring" = xdisable; then
8124             if test $wxUSE_PROTOCOL_FILE = yes; then
8125               result=no
8126             else
8127               result=yes
8128             fi
8129           else
8130             result=$wxUSE_PROTOCOL_FILE
8131           fi
8132
8133           { echo "$as_me:$LINENO: result: $result" >&5
8134 echo "${ECHO_T}$result" >&6; }
8135
8136
8137
8138           enablestring=
8139           defaultval=$wxUSE_ALL_FEATURES
8140           if test -z "$defaultval"; then
8141               if test x"$enablestring" = xdisable; then
8142                   defaultval=yes
8143               else
8144                   defaultval=no
8145               fi
8146           fi
8147
8148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8149 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8150           # Check whether --enable-threads was given.
8151 if test "${enable_threads+set}" = set; then
8152   enableval=$enable_threads;
8153                           if test "$enableval" = yes; then
8154                             wx_cv_use_threads='wxUSE_THREADS=yes'
8155                           else
8156                             wx_cv_use_threads='wxUSE_THREADS=no'
8157                           fi
8158
8159 else
8160
8161                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8162
8163 fi
8164
8165
8166           eval "$wx_cv_use_threads"
8167
8168           if test x"$enablestring" = xdisable; then
8169             if test $wxUSE_THREADS = yes; then
8170               result=no
8171             else
8172               result=yes
8173             fi
8174           else
8175             result=$wxUSE_THREADS
8176           fi
8177
8178           { echo "$as_me:$LINENO: result: $result" >&5
8179 echo "${ECHO_T}$result" >&6; }
8180
8181
8182
8183           enablestring=
8184           defaultval=
8185           if test -z "$defaultval"; then
8186               if test x"$enablestring" = xdisable; then
8187                   defaultval=yes
8188               else
8189                   defaultval=no
8190               fi
8191           fi
8192
8193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8194 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8195           # Check whether --enable-iniconf was given.
8196 if test "${enable_iniconf+set}" = set; then
8197   enableval=$enable_iniconf;
8198                           if test "$enableval" = yes; then
8199                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8200                           else
8201                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8202                           fi
8203
8204 else
8205
8206                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8207
8208 fi
8209
8210
8211           eval "$wx_cv_use_iniconf"
8212
8213           if test x"$enablestring" = xdisable; then
8214             if test $wxUSE_INICONF = yes; then
8215               result=no
8216             else
8217               result=yes
8218             fi
8219           else
8220             result=$wxUSE_INICONF
8221           fi
8222
8223           { echo "$as_me:$LINENO: result: $result" >&5
8224 echo "${ECHO_T}$result" >&6; }
8225
8226
8227           enablestring=
8228           defaultval=$wxUSE_ALL_FEATURES
8229           if test -z "$defaultval"; then
8230               if test x"$enablestring" = xdisable; then
8231                   defaultval=yes
8232               else
8233                   defaultval=no
8234               fi
8235           fi
8236
8237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8238 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8239           # Check whether --enable-regkey was given.
8240 if test "${enable_regkey+set}" = set; then
8241   enableval=$enable_regkey;
8242                           if test "$enableval" = yes; then
8243                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8244                           else
8245                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8246                           fi
8247
8248 else
8249
8250                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8251
8252 fi
8253
8254
8255           eval "$wx_cv_use_regkey"
8256
8257           if test x"$enablestring" = xdisable; then
8258             if test $wxUSE_REGKEY = yes; then
8259               result=no
8260             else
8261               result=yes
8262             fi
8263           else
8264             result=$wxUSE_REGKEY
8265           fi
8266
8267           { echo "$as_me:$LINENO: result: $result" >&5
8268 echo "${ECHO_T}$result" >&6; }
8269
8270
8271 if test "$wxUSE_GUI" = "yes"; then
8272
8273
8274
8275           enablestring=
8276           defaultval=$wxUSE_ALL_FEATURES
8277           if test -z "$defaultval"; then
8278               if test x"$enablestring" = xdisable; then
8279                   defaultval=yes
8280               else
8281                   defaultval=no
8282               fi
8283           fi
8284
8285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8286 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8287           # Check whether --enable-docview was given.
8288 if test "${enable_docview+set}" = set; then
8289   enableval=$enable_docview;
8290                           if test "$enableval" = yes; then
8291                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8292                           else
8293                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8294                           fi
8295
8296 else
8297
8298                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8299
8300 fi
8301
8302
8303           eval "$wx_cv_use_docview"
8304
8305           if test x"$enablestring" = xdisable; then
8306             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8307               result=no
8308             else
8309               result=yes
8310             fi
8311           else
8312             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8313           fi
8314
8315           { echo "$as_me:$LINENO: result: $result" >&5
8316 echo "${ECHO_T}$result" >&6; }
8317
8318
8319           enablestring=
8320           defaultval=$wxUSE_ALL_FEATURES
8321           if test -z "$defaultval"; then
8322               if test x"$enablestring" = xdisable; then
8323                   defaultval=yes
8324               else
8325                   defaultval=no
8326               fi
8327           fi
8328
8329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8330 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8331           # Check whether --enable-help was given.
8332 if test "${enable_help+set}" = set; then
8333   enableval=$enable_help;
8334                           if test "$enableval" = yes; then
8335                             wx_cv_use_help='wxUSE_HELP=yes'
8336                           else
8337                             wx_cv_use_help='wxUSE_HELP=no'
8338                           fi
8339
8340 else
8341
8342                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8343
8344 fi
8345
8346
8347           eval "$wx_cv_use_help"
8348
8349           if test x"$enablestring" = xdisable; then
8350             if test $wxUSE_HELP = yes; then
8351               result=no
8352             else
8353               result=yes
8354             fi
8355           else
8356             result=$wxUSE_HELP
8357           fi
8358
8359           { echo "$as_me:$LINENO: result: $result" >&5
8360 echo "${ECHO_T}$result" >&6; }
8361
8362
8363           enablestring=
8364           defaultval=$wxUSE_ALL_FEATURES
8365           if test -z "$defaultval"; then
8366               if test x"$enablestring" = xdisable; then
8367                   defaultval=yes
8368               else
8369                   defaultval=no
8370               fi
8371           fi
8372
8373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8374 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8375           # Check whether --enable-mshtmlhelp was given.
8376 if test "${enable_mshtmlhelp+set}" = set; then
8377   enableval=$enable_mshtmlhelp;
8378                           if test "$enableval" = yes; then
8379                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8380                           else
8381                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8382                           fi
8383
8384 else
8385
8386                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8387
8388 fi
8389
8390
8391           eval "$wx_cv_use_mshtmlhelp"
8392
8393           if test x"$enablestring" = xdisable; then
8394             if test $wxUSE_MS_HTML_HELP = yes; then
8395               result=no
8396             else
8397               result=yes
8398             fi
8399           else
8400             result=$wxUSE_MS_HTML_HELP
8401           fi
8402
8403           { echo "$as_me:$LINENO: result: $result" >&5
8404 echo "${ECHO_T}$result" >&6; }
8405
8406
8407           enablestring=
8408           defaultval=$wxUSE_ALL_FEATURES
8409           if test -z "$defaultval"; then
8410               if test x"$enablestring" = xdisable; then
8411                   defaultval=yes
8412               else
8413                   defaultval=no
8414               fi
8415           fi
8416
8417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8418 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8419           # Check whether --enable-html was given.
8420 if test "${enable_html+set}" = set; then
8421   enableval=$enable_html;
8422                           if test "$enableval" = yes; then
8423                             wx_cv_use_html='wxUSE_HTML=yes'
8424                           else
8425                             wx_cv_use_html='wxUSE_HTML=no'
8426                           fi
8427
8428 else
8429
8430                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8431
8432 fi
8433
8434
8435           eval "$wx_cv_use_html"
8436
8437           if test x"$enablestring" = xdisable; then
8438             if test $wxUSE_HTML = yes; then
8439               result=no
8440             else
8441               result=yes
8442             fi
8443           else
8444             result=$wxUSE_HTML
8445           fi
8446
8447           { echo "$as_me:$LINENO: result: $result" >&5
8448 echo "${ECHO_T}$result" >&6; }
8449
8450
8451           enablestring=
8452           defaultval=$wxUSE_ALL_FEATURES
8453           if test -z "$defaultval"; then
8454               if test x"$enablestring" = xdisable; then
8455                   defaultval=yes
8456               else
8457                   defaultval=no
8458               fi
8459           fi
8460
8461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8462 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8463           # Check whether --enable-htmlhelp was given.
8464 if test "${enable_htmlhelp+set}" = set; then
8465   enableval=$enable_htmlhelp;
8466                           if test "$enableval" = yes; then
8467                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8468                           else
8469                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8470                           fi
8471
8472 else
8473
8474                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8475
8476 fi
8477
8478
8479           eval "$wx_cv_use_htmlhelp"
8480
8481           if test x"$enablestring" = xdisable; then
8482             if test $wxUSE_WXHTML_HELP = yes; then
8483               result=no
8484             else
8485               result=yes
8486             fi
8487           else
8488             result=$wxUSE_WXHTML_HELP
8489           fi
8490
8491           { echo "$as_me:$LINENO: result: $result" >&5
8492 echo "${ECHO_T}$result" >&6; }
8493
8494
8495           enablestring=
8496           defaultval=$wxUSE_ALL_FEATURES
8497           if test -z "$defaultval"; then
8498               if test x"$enablestring" = xdisable; then
8499                   defaultval=yes
8500               else
8501                   defaultval=no
8502               fi
8503           fi
8504
8505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8506 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8507           # Check whether --enable-xrc was given.
8508 if test "${enable_xrc+set}" = set; then
8509   enableval=$enable_xrc;
8510                           if test "$enableval" = yes; then
8511                             wx_cv_use_xrc='wxUSE_XRC=yes'
8512                           else
8513                             wx_cv_use_xrc='wxUSE_XRC=no'
8514                           fi
8515
8516 else
8517
8518                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8519
8520 fi
8521
8522
8523           eval "$wx_cv_use_xrc"
8524
8525           if test x"$enablestring" = xdisable; then
8526             if test $wxUSE_XRC = yes; then
8527               result=no
8528             else
8529               result=yes
8530             fi
8531           else
8532             result=$wxUSE_XRC
8533           fi
8534
8535           { echo "$as_me:$LINENO: result: $result" >&5
8536 echo "${ECHO_T}$result" >&6; }
8537
8538
8539           enablestring=
8540           defaultval=$wxUSE_ALL_FEATURES
8541           if test -z "$defaultval"; then
8542               if test x"$enablestring" = xdisable; then
8543                   defaultval=yes
8544               else
8545                   defaultval=no
8546               fi
8547           fi
8548
8549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8550 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8551           # Check whether --enable-aui was given.
8552 if test "${enable_aui+set}" = set; then
8553   enableval=$enable_aui;
8554                           if test "$enableval" = yes; then
8555                             wx_cv_use_aui='wxUSE_AUI=yes'
8556                           else
8557                             wx_cv_use_aui='wxUSE_AUI=no'
8558                           fi
8559
8560 else
8561
8562                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8563
8564 fi
8565
8566
8567           eval "$wx_cv_use_aui"
8568
8569           if test x"$enablestring" = xdisable; then
8570             if test $wxUSE_AUI = yes; then
8571               result=no
8572             else
8573               result=yes
8574             fi
8575           else
8576             result=$wxUSE_AUI
8577           fi
8578
8579           { echo "$as_me:$LINENO: result: $result" >&5
8580 echo "${ECHO_T}$result" >&6; }
8581
8582
8583           enablestring=
8584           defaultval=$wxUSE_ALL_FEATURES
8585           if test -z "$defaultval"; then
8586               if test x"$enablestring" = xdisable; then
8587                   defaultval=yes
8588               else
8589                   defaultval=no
8590               fi
8591           fi
8592
8593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8594 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8595           # Check whether --enable-propgrid was given.
8596 if test "${enable_propgrid+set}" = set; then
8597   enableval=$enable_propgrid;
8598                           if test "$enableval" = yes; then
8599                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8600                           else
8601                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8602                           fi
8603
8604 else
8605
8606                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8607
8608 fi
8609
8610
8611           eval "$wx_cv_use_propgrid"
8612
8613           if test x"$enablestring" = xdisable; then
8614             if test $wxUSE_PROPGRID = yes; then
8615               result=no
8616             else
8617               result=yes
8618             fi
8619           else
8620             result=$wxUSE_PROPGRID
8621           fi
8622
8623           { echo "$as_me:$LINENO: result: $result" >&5
8624 echo "${ECHO_T}$result" >&6; }
8625
8626
8627           enablestring=
8628           defaultval=$wxUSE_ALL_FEATURES
8629           if test -z "$defaultval"; then
8630               if test x"$enablestring" = xdisable; then
8631                   defaultval=yes
8632               else
8633                   defaultval=no
8634               fi
8635           fi
8636
8637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8638 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8639           # Check whether --enable-stc was given.
8640 if test "${enable_stc+set}" = set; then
8641   enableval=$enable_stc;
8642                           if test "$enableval" = yes; then
8643                             wx_cv_use_stc='wxUSE_STC=yes'
8644                           else
8645                             wx_cv_use_stc='wxUSE_STC=no'
8646                           fi
8647
8648 else
8649
8650                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8651
8652 fi
8653
8654
8655           eval "$wx_cv_use_stc"
8656
8657           if test x"$enablestring" = xdisable; then
8658             if test $wxUSE_STC = yes; then
8659               result=no
8660             else
8661               result=yes
8662             fi
8663           else
8664             result=$wxUSE_STC
8665           fi
8666
8667           { echo "$as_me:$LINENO: result: $result" >&5
8668 echo "${ECHO_T}$result" >&6; }
8669
8670
8671           enablestring=
8672           defaultval=$wxUSE_ALL_FEATURES
8673           if test -z "$defaultval"; then
8674               if test x"$enablestring" = xdisable; then
8675                   defaultval=yes
8676               else
8677                   defaultval=no
8678               fi
8679           fi
8680
8681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8682 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8683           # Check whether --enable-constraints was given.
8684 if test "${enable_constraints+set}" = set; then
8685   enableval=$enable_constraints;
8686                           if test "$enableval" = yes; then
8687                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8688                           else
8689                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8690                           fi
8691
8692 else
8693
8694                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8695
8696 fi
8697
8698
8699           eval "$wx_cv_use_constraints"
8700
8701           if test x"$enablestring" = xdisable; then
8702             if test $wxUSE_CONSTRAINTS = yes; then
8703               result=no
8704             else
8705               result=yes
8706             fi
8707           else
8708             result=$wxUSE_CONSTRAINTS
8709           fi
8710
8711           { echo "$as_me:$LINENO: result: $result" >&5
8712 echo "${ECHO_T}$result" >&6; }
8713
8714
8715           enablestring=
8716           defaultval=$wxUSE_ALL_FEATURES
8717           if test -z "$defaultval"; then
8718               if test x"$enablestring" = xdisable; then
8719                   defaultval=yes
8720               else
8721                   defaultval=no
8722               fi
8723           fi
8724
8725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8726 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8727           # Check whether --enable-loggui was given.
8728 if test "${enable_loggui+set}" = set; then
8729   enableval=$enable_loggui;
8730                           if test "$enableval" = yes; then
8731                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8732                           else
8733                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8734                           fi
8735
8736 else
8737
8738                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8739
8740 fi
8741
8742
8743           eval "$wx_cv_use_loggui"
8744
8745           if test x"$enablestring" = xdisable; then
8746             if test $wxUSE_LOGGUI = yes; then
8747               result=no
8748             else
8749               result=yes
8750             fi
8751           else
8752             result=$wxUSE_LOGGUI
8753           fi
8754
8755           { echo "$as_me:$LINENO: result: $result" >&5
8756 echo "${ECHO_T}$result" >&6; }
8757
8758
8759           enablestring=
8760           defaultval=$wxUSE_ALL_FEATURES
8761           if test -z "$defaultval"; then
8762               if test x"$enablestring" = xdisable; then
8763                   defaultval=yes
8764               else
8765                   defaultval=no
8766               fi
8767           fi
8768
8769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8770 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8771           # Check whether --enable-logwin was given.
8772 if test "${enable_logwin+set}" = set; then
8773   enableval=$enable_logwin;
8774                           if test "$enableval" = yes; then
8775                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8776                           else
8777                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8778                           fi
8779
8780 else
8781
8782                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8783
8784 fi
8785
8786
8787           eval "$wx_cv_use_logwin"
8788
8789           if test x"$enablestring" = xdisable; then
8790             if test $wxUSE_LOGWINDOW = yes; then
8791               result=no
8792             else
8793               result=yes
8794             fi
8795           else
8796             result=$wxUSE_LOGWINDOW
8797           fi
8798
8799           { echo "$as_me:$LINENO: result: $result" >&5
8800 echo "${ECHO_T}$result" >&6; }
8801
8802
8803           enablestring=
8804           defaultval=$wxUSE_ALL_FEATURES
8805           if test -z "$defaultval"; then
8806               if test x"$enablestring" = xdisable; then
8807                   defaultval=yes
8808               else
8809                   defaultval=no
8810               fi
8811           fi
8812
8813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8814 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8815           # Check whether --enable-logdialog was given.
8816 if test "${enable_logdialog+set}" = set; then
8817   enableval=$enable_logdialog;
8818                           if test "$enableval" = yes; then
8819                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8820                           else
8821                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8822                           fi
8823
8824 else
8825
8826                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8827
8828 fi
8829
8830
8831           eval "$wx_cv_use_logdialog"
8832
8833           if test x"$enablestring" = xdisable; then
8834             if test $wxUSE_LOGDIALOG = yes; then
8835               result=no
8836             else
8837               result=yes
8838             fi
8839           else
8840             result=$wxUSE_LOGDIALOG
8841           fi
8842
8843           { echo "$as_me:$LINENO: result: $result" >&5
8844 echo "${ECHO_T}$result" >&6; }
8845
8846
8847           enablestring=
8848           defaultval=$wxUSE_ALL_FEATURES
8849           if test -z "$defaultval"; then
8850               if test x"$enablestring" = xdisable; then
8851                   defaultval=yes
8852               else
8853                   defaultval=no
8854               fi
8855           fi
8856
8857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8858 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8859           # Check whether --enable-mdi was given.
8860 if test "${enable_mdi+set}" = set; then
8861   enableval=$enable_mdi;
8862                           if test "$enableval" = yes; then
8863                             wx_cv_use_mdi='wxUSE_MDI=yes'
8864                           else
8865                             wx_cv_use_mdi='wxUSE_MDI=no'
8866                           fi
8867
8868 else
8869
8870                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8871
8872 fi
8873
8874
8875           eval "$wx_cv_use_mdi"
8876
8877           if test x"$enablestring" = xdisable; then
8878             if test $wxUSE_MDI = yes; then
8879               result=no
8880             else
8881               result=yes
8882             fi
8883           else
8884             result=$wxUSE_MDI
8885           fi
8886
8887           { echo "$as_me:$LINENO: result: $result" >&5
8888 echo "${ECHO_T}$result" >&6; }
8889
8890
8891           enablestring=
8892           defaultval=$wxUSE_ALL_FEATURES
8893           if test -z "$defaultval"; then
8894               if test x"$enablestring" = xdisable; then
8895                   defaultval=yes
8896               else
8897                   defaultval=no
8898               fi
8899           fi
8900
8901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8902 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8903           # Check whether --enable-mdidoc was given.
8904 if test "${enable_mdidoc+set}" = set; then
8905   enableval=$enable_mdidoc;
8906                           if test "$enableval" = yes; then
8907                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8908                           else
8909                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8910                           fi
8911
8912 else
8913
8914                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8915
8916 fi
8917
8918
8919           eval "$wx_cv_use_mdidoc"
8920
8921           if test x"$enablestring" = xdisable; then
8922             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8923               result=no
8924             else
8925               result=yes
8926             fi
8927           else
8928             result=$wxUSE_MDI_ARCHITECTURE
8929           fi
8930
8931           { echo "$as_me:$LINENO: result: $result" >&5
8932 echo "${ECHO_T}$result" >&6; }
8933
8934
8935           enablestring=
8936           defaultval=$wxUSE_ALL_FEATURES
8937           if test -z "$defaultval"; then
8938               if test x"$enablestring" = xdisable; then
8939                   defaultval=yes
8940               else
8941                   defaultval=no
8942               fi
8943           fi
8944
8945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8946 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8947           # Check whether --enable-mediactrl was given.
8948 if test "${enable_mediactrl+set}" = set; then
8949   enableval=$enable_mediactrl;
8950                           if test "$enableval" = yes; then
8951                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8952                           else
8953                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8954                           fi
8955
8956 else
8957
8958                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8959
8960 fi
8961
8962
8963           eval "$wx_cv_use_mediactrl"
8964
8965           if test x"$enablestring" = xdisable; then
8966             if test $wxUSE_MEDIACTRL = yes; then
8967               result=no
8968             else
8969               result=yes
8970             fi
8971           else
8972             result=$wxUSE_MEDIACTRL
8973           fi
8974
8975           { echo "$as_me:$LINENO: result: $result" >&5
8976 echo "${ECHO_T}$result" >&6; }
8977
8978
8979           enablestring=
8980           defaultval=$wxUSE_ALL_FEATURES
8981           if test -z "$defaultval"; then
8982               if test x"$enablestring" = xdisable; then
8983                   defaultval=yes
8984               else
8985                   defaultval=no
8986               fi
8987           fi
8988
8989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8990 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8991           # Check whether --enable-gstreamer8 was given.
8992 if test "${enable_gstreamer8+set}" = set; then
8993   enableval=$enable_gstreamer8;
8994                           if test "$enableval" = yes; then
8995                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8996                           else
8997                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8998                           fi
8999
9000 else
9001
9002                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9003
9004 fi
9005
9006
9007           eval "$wx_cv_use_gstreamer8"
9008
9009           if test x"$enablestring" = xdisable; then
9010             if test $wxUSE_GSTREAMER8 = yes; then
9011               result=no
9012             else
9013               result=yes
9014             fi
9015           else
9016             result=$wxUSE_GSTREAMER8
9017           fi
9018
9019           { echo "$as_me:$LINENO: result: $result" >&5
9020 echo "${ECHO_T}$result" >&6; }
9021
9022
9023           enablestring=
9024           defaultval=$wxUSE_ALL_FEATURES
9025           if test -z "$defaultval"; then
9026               if test x"$enablestring" = xdisable; then
9027                   defaultval=yes
9028               else
9029                   defaultval=no
9030               fi
9031           fi
9032
9033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9034 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9035           # Check whether --enable-webkit was given.
9036 if test "${enable_webkit+set}" = set; then
9037   enableval=$enable_webkit;
9038                           if test "$enableval" = yes; then
9039                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9040                           else
9041                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9042                           fi
9043
9044 else
9045
9046                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9047
9048 fi
9049
9050
9051           eval "$wx_cv_use_webkit"
9052
9053           if test x"$enablestring" = xdisable; then
9054             if test $wxUSE_WEBKIT = yes; then
9055               result=no
9056             else
9057               result=yes
9058             fi
9059           else
9060             result=$wxUSE_WEBKIT
9061           fi
9062
9063           { echo "$as_me:$LINENO: result: $result" >&5
9064 echo "${ECHO_T}$result" >&6; }
9065
9066
9067           enablestring=
9068           defaultval=$wxUSE_ALL_FEATURES
9069           if test -z "$defaultval"; then
9070               if test x"$enablestring" = xdisable; then
9071                   defaultval=yes
9072               else
9073                   defaultval=no
9074               fi
9075           fi
9076
9077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9078 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9079           # Check whether --enable-richtext was given.
9080 if test "${enable_richtext+set}" = set; then
9081   enableval=$enable_richtext;
9082                           if test "$enableval" = yes; then
9083                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9084                           else
9085                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9086                           fi
9087
9088 else
9089
9090                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9091
9092 fi
9093
9094
9095           eval "$wx_cv_use_richtext"
9096
9097           if test x"$enablestring" = xdisable; then
9098             if test $wxUSE_RICHTEXT = yes; then
9099               result=no
9100             else
9101               result=yes
9102             fi
9103           else
9104             result=$wxUSE_RICHTEXT
9105           fi
9106
9107           { echo "$as_me:$LINENO: result: $result" >&5
9108 echo "${ECHO_T}$result" >&6; }
9109
9110
9111           enablestring=
9112           defaultval=$wxUSE_ALL_FEATURES
9113           if test -z "$defaultval"; then
9114               if test x"$enablestring" = xdisable; then
9115                   defaultval=yes
9116               else
9117                   defaultval=no
9118               fi
9119           fi
9120
9121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9122 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9123           # Check whether --enable-graphics_ctx was given.
9124 if test "${enable_graphics_ctx+set}" = set; then
9125   enableval=$enable_graphics_ctx;
9126                           if test "$enableval" = yes; then
9127                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9128                           else
9129                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9130                           fi
9131
9132 else
9133
9134                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9135
9136 fi
9137
9138
9139           eval "$wx_cv_use_graphics_ctx"
9140
9141           if test x"$enablestring" = xdisable; then
9142             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9143               result=no
9144             else
9145               result=yes
9146             fi
9147           else
9148             result=$wxUSE_GRAPHICS_CONTEXT
9149           fi
9150
9151           { echo "$as_me:$LINENO: result: $result" >&5
9152 echo "${ECHO_T}$result" >&6; }
9153
9154
9155           enablestring=
9156           defaultval=$wxUSE_ALL_FEATURES
9157           if test -z "$defaultval"; then
9158               if test x"$enablestring" = xdisable; then
9159                   defaultval=yes
9160               else
9161                   defaultval=no
9162               fi
9163           fi
9164
9165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9166 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9167           # Check whether --enable-postscript was given.
9168 if test "${enable_postscript+set}" = set; then
9169   enableval=$enable_postscript;
9170                           if test "$enableval" = yes; then
9171                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9172                           else
9173                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9174                           fi
9175
9176 else
9177
9178                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9179
9180 fi
9181
9182
9183           eval "$wx_cv_use_postscript"
9184
9185           if test x"$enablestring" = xdisable; then
9186             if test $wxUSE_POSTSCRIPT = yes; then
9187               result=no
9188             else
9189               result=yes
9190             fi
9191           else
9192             result=$wxUSE_POSTSCRIPT
9193           fi
9194
9195           { echo "$as_me:$LINENO: result: $result" >&5
9196 echo "${ECHO_T}$result" >&6; }
9197
9198
9199           enablestring=
9200           defaultval=$wxUSE_ALL_FEATURES
9201           if test -z "$defaultval"; then
9202               if test x"$enablestring" = xdisable; then
9203                   defaultval=yes
9204               else
9205                   defaultval=no
9206               fi
9207           fi
9208
9209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9210 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9211           # Check whether --enable-printarch was given.
9212 if test "${enable_printarch+set}" = set; then
9213   enableval=$enable_printarch;
9214                           if test "$enableval" = yes; then
9215                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9216                           else
9217                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9218                           fi
9219
9220 else
9221
9222                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9223
9224 fi
9225
9226
9227           eval "$wx_cv_use_printarch"
9228
9229           if test x"$enablestring" = xdisable; then
9230             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9231               result=no
9232             else
9233               result=yes
9234             fi
9235           else
9236             result=$wxUSE_PRINTING_ARCHITECTURE
9237           fi
9238
9239           { echo "$as_me:$LINENO: result: $result" >&5
9240 echo "${ECHO_T}$result" >&6; }
9241
9242
9243           enablestring=
9244           defaultval=$wxUSE_ALL_FEATURES
9245           if test -z "$defaultval"; then
9246               if test x"$enablestring" = xdisable; then
9247                   defaultval=yes
9248               else
9249                   defaultval=no
9250               fi
9251           fi
9252
9253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9254 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9255           # Check whether --enable-svg was given.
9256 if test "${enable_svg+set}" = set; then
9257   enableval=$enable_svg;
9258                           if test "$enableval" = yes; then
9259                             wx_cv_use_svg='wxUSE_SVG=yes'
9260                           else
9261                             wx_cv_use_svg='wxUSE_SVG=no'
9262                           fi
9263
9264 else
9265
9266                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9267
9268 fi
9269
9270
9271           eval "$wx_cv_use_svg"
9272
9273           if test x"$enablestring" = xdisable; then
9274             if test $wxUSE_SVG = yes; then
9275               result=no
9276             else
9277               result=yes
9278             fi
9279           else
9280             result=$wxUSE_SVG
9281           fi
9282
9283           { echo "$as_me:$LINENO: result: $result" >&5
9284 echo "${ECHO_T}$result" >&6; }
9285
9286
9287
9288
9289           enablestring=
9290           defaultval=$wxUSE_ALL_FEATURES
9291           if test -z "$defaultval"; then
9292               if test x"$enablestring" = xdisable; then
9293                   defaultval=yes
9294               else
9295                   defaultval=no
9296               fi
9297           fi
9298
9299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9300 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9301           # Check whether --enable-clipboard was given.
9302 if test "${enable_clipboard+set}" = set; then
9303   enableval=$enable_clipboard;
9304                           if test "$enableval" = yes; then
9305                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9306                           else
9307                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9308                           fi
9309
9310 else
9311
9312                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9313
9314 fi
9315
9316
9317           eval "$wx_cv_use_clipboard"
9318
9319           if test x"$enablestring" = xdisable; then
9320             if test $wxUSE_CLIPBOARD = yes; then
9321               result=no
9322             else
9323               result=yes
9324             fi
9325           else
9326             result=$wxUSE_CLIPBOARD
9327           fi
9328
9329           { echo "$as_me:$LINENO: result: $result" >&5
9330 echo "${ECHO_T}$result" >&6; }
9331
9332
9333           enablestring=
9334           defaultval=$wxUSE_ALL_FEATURES
9335           if test -z "$defaultval"; then
9336               if test x"$enablestring" = xdisable; then
9337                   defaultval=yes
9338               else
9339                   defaultval=no
9340               fi
9341           fi
9342
9343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9344 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9345           # Check whether --enable-dnd was given.
9346 if test "${enable_dnd+set}" = set; then
9347   enableval=$enable_dnd;
9348                           if test "$enableval" = yes; then
9349                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9350                           else
9351                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9352                           fi
9353
9354 else
9355
9356                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9357
9358 fi
9359
9360
9361           eval "$wx_cv_use_dnd"
9362
9363           if test x"$enablestring" = xdisable; then
9364             if test $wxUSE_DRAG_AND_DROP = yes; then
9365               result=no
9366             else
9367               result=yes
9368             fi
9369           else
9370             result=$wxUSE_DRAG_AND_DROP
9371           fi
9372
9373           { echo "$as_me:$LINENO: result: $result" >&5
9374 echo "${ECHO_T}$result" >&6; }
9375
9376
9377           enablestring=
9378           defaultval=$wxUSE_ALL_FEATURES
9379           if test -z "$defaultval"; then
9380               if test x"$enablestring" = xdisable; then
9381                   defaultval=yes
9382               else
9383                   defaultval=no
9384               fi
9385           fi
9386
9387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9388 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9389           # Check whether --enable-metafile was given.
9390 if test "${enable_metafile+set}" = set; then
9391   enableval=$enable_metafile;
9392                           if test "$enableval" = yes; then
9393                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9394                           else
9395                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9396                           fi
9397
9398 else
9399
9400                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9401
9402 fi
9403
9404
9405           eval "$wx_cv_use_metafile"
9406
9407           if test x"$enablestring" = xdisable; then
9408             if test $wxUSE_METAFILE = yes; then
9409               result=no
9410             else
9411               result=yes
9412             fi
9413           else
9414             result=$wxUSE_METAFILE
9415           fi
9416
9417           { echo "$as_me:$LINENO: result: $result" >&5
9418 echo "${ECHO_T}$result" >&6; }
9419
9420
9421
9422 DEFAULT_wxUSE_CONTROLS=none
9423
9424           enablestring=disable
9425           defaultval=
9426           if test -z "$defaultval"; then
9427               if test x"$enablestring" = xdisable; then
9428                   defaultval=yes
9429               else
9430                   defaultval=no
9431               fi
9432           fi
9433
9434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9435 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9436           # Check whether --enable-controls was given.
9437 if test "${enable_controls+set}" = set; then
9438   enableval=$enable_controls;
9439                           if test "$enableval" = yes; then
9440                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9441                           else
9442                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9443                           fi
9444
9445 else
9446
9447                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9448
9449 fi
9450
9451
9452           eval "$wx_cv_use_controls"
9453
9454           if test x"$enablestring" = xdisable; then
9455             if test $wxUSE_CONTROLS = yes; then
9456               result=no
9457             else
9458               result=yes
9459             fi
9460           else
9461             result=$wxUSE_CONTROLS
9462           fi
9463
9464           { echo "$as_me:$LINENO: result: $result" >&5
9465 echo "${ECHO_T}$result" >&6; }
9466
9467
9468 if test "$wxUSE_CONTROLS" = "yes"; then
9469   DEFAULT_wxUSE_ACCEL=yes
9470   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9471   DEFAULT_wxUSE_BMPBUTTON=yes
9472   DEFAULT_wxUSE_BUTTON=yes
9473   DEFAULT_wxUSE_CALCTRL=yes
9474   DEFAULT_wxUSE_CARET=yes
9475   DEFAULT_wxUSE_COMBOBOX=yes
9476   DEFAULT_wxUSE_CHECKBOX=yes
9477   DEFAULT_wxUSE_CHECKLISTBOX=yes
9478   DEFAULT_wxUSE_CHOICE=yes
9479   DEFAULT_wxUSE_CHOICEBOOK=yes
9480   DEFAULT_wxUSE_COLLPANE=yes
9481   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9482   DEFAULT_wxUSE_COMBOBOX=yes
9483   DEFAULT_wxUSE_DATEPICKCTRL=yes
9484   DEFAULT_wxUSE_DISPLAY=yes
9485   DEFAULT_wxUSE_DETECT_SM=yes
9486   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9487   DEFAULT_wxUSE_FILECTRL=yes
9488   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9489   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9490   DEFAULT_wxUSE_GAUGE=yes
9491   DEFAULT_wxUSE_GRID=yes
9492   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9493   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9494   DEFAULT_wxUSE_IMAGLIST=yes
9495   DEFAULT_wxUSE_LISTBOOK=yes
9496   DEFAULT_wxUSE_LISTBOX=yes
9497   DEFAULT_wxUSE_LISTCTRL=yes
9498   DEFAULT_wxUSE_NOTEBOOK=yes
9499   DEFAULT_wxUSE_RADIOBOX=yes
9500   DEFAULT_wxUSE_RADIOBTN=yes
9501   DEFAULT_wxUSE_SASH=yes
9502   DEFAULT_wxUSE_SCROLLBAR=yes
9503   DEFAULT_wxUSE_SEARCHCTRL=yes
9504   DEFAULT_wxUSE_SLIDER=yes
9505   DEFAULT_wxUSE_SPINBTN=yes
9506   DEFAULT_wxUSE_SPINCTRL=yes
9507   DEFAULT_wxUSE_SPLITTER=yes
9508   DEFAULT_wxUSE_STATBMP=yes
9509   DEFAULT_wxUSE_STATBOX=yes
9510   DEFAULT_wxUSE_STATLINE=yes
9511   DEFAULT_wxUSE_STATUSBAR=yes
9512   DEFAULT_wxUSE_TAB_DIALOG=yes
9513   DEFAULT_wxUSE_TOGGLEBTN=yes
9514   DEFAULT_wxUSE_TOOLBAR=yes
9515   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9516   DEFAULT_wxUSE_TOOLTIPS=yes
9517   DEFAULT_wxUSE_TREEBOOK=yes
9518   DEFAULT_wxUSE_TOOLBOOK=yes
9519   DEFAULT_wxUSE_TREECTRL=yes
9520   DEFAULT_wxUSE_POPUPWIN=yes
9521   DEFAULT_wxUSE_TIPWINDOW=yes
9522 elif test "$wxUSE_CONTROLS" = "no"; then
9523   DEFAULT_wxUSE_ACCEL=no
9524   DEFAULT_wxUSE_ANIMATIONCTRL=no
9525   DEFAULT_wxUSE_BMPBUTTON=no
9526   DEFAULT_wxUSE_BUTTON=no
9527   DEFAULT_wxUSE_CALCTRL=no
9528   DEFAULT_wxUSE_CARET=no
9529   DEFAULT_wxUSE_COLLPANE=no
9530   DEFAULT_wxUSE_COMBOBOX=no
9531   DEFAULT_wxUSE_CHECKBOX=no
9532   DEFAULT_wxUSE_CHECKLISTBOX=no
9533   DEFAULT_wxUSE_CHOICE=no
9534   DEFAULT_wxUSE_CHOICEBOOK=no
9535   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9536   DEFAULT_wxUSE_COMBOBOX=no
9537   DEFAULT_wxUSE_DATEPICKCTRL=no
9538   DEFAULT_wxUSE_DISPLAY=no
9539   DEFAULT_wxUSE_DETECT_SM=no
9540   DEFAULT_wxUSE_DIRPICKERCTRL=no
9541   DEFAULT_wxUSE_FILECTRL=no
9542   DEFAULT_wxUSE_FILEPICKERCTRL=no
9543   DEFAULT_wxUSE_FONTPICKERCTRL=no
9544   DEFAULT_wxUSE_GAUGE=no
9545   DEFAULT_wxUSE_GRID=no
9546   DEFAULT_wxUSE_HYPERLINKCTRL=no
9547   DEFAULT_wxUSE_DATAVIEWCTRL=no
9548   DEFAULT_wxUSE_IMAGLIST=no
9549   DEFAULT_wxUSE_LISTBOOK=no
9550   DEFAULT_wxUSE_LISTBOX=no
9551   DEFAULT_wxUSE_LISTCTRL=no
9552   DEFAULT_wxUSE_NOTEBOOK=no
9553   DEFAULT_wxUSE_RADIOBOX=no
9554   DEFAULT_wxUSE_RADIOBTN=no
9555   DEFAULT_wxUSE_SASH=no
9556   DEFAULT_wxUSE_SCROLLBAR=no
9557   DEFAULT_wxUSE_SEARCHCTRL=no
9558   DEFAULT_wxUSE_SLIDER=no
9559   DEFAULT_wxUSE_SPINBTN=no
9560   DEFAULT_wxUSE_SPINCTRL=no
9561   DEFAULT_wxUSE_SPLITTER=no
9562   DEFAULT_wxUSE_STATBMP=no
9563   DEFAULT_wxUSE_STATBOX=no
9564   DEFAULT_wxUSE_STATLINE=no
9565   DEFAULT_wxUSE_STATUSBAR=no
9566   DEFAULT_wxUSE_TAB_DIALOG=no
9567   DEFAULT_wxUSE_TOGGLEBTN=no
9568   DEFAULT_wxUSE_TOOLBAR=no
9569   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9570   DEFAULT_wxUSE_TOOLTIPS=no
9571   DEFAULT_wxUSE_TREEBOOK=no
9572   DEFAULT_wxUSE_TOOLBOOK=no
9573   DEFAULT_wxUSE_TREECTRL=no
9574   DEFAULT_wxUSE_POPUPWIN=no
9575   DEFAULT_wxUSE_TIPWINDOW=no
9576 fi
9577
9578
9579           enablestring=
9580           defaultval=$wxUSE_ALL_FEATURES
9581           if test -z "$defaultval"; then
9582               if test x"$enablestring" = xdisable; then
9583                   defaultval=yes
9584               else
9585                   defaultval=no
9586               fi
9587           fi
9588
9589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9590 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9591           # Check whether --enable-accel was given.
9592 if test "${enable_accel+set}" = set; then
9593   enableval=$enable_accel;
9594                           if test "$enableval" = yes; then
9595                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9596                           else
9597                             wx_cv_use_accel='wxUSE_ACCEL=no'
9598                           fi
9599
9600 else
9601
9602                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9603
9604 fi
9605
9606
9607           eval "$wx_cv_use_accel"
9608
9609           if test x"$enablestring" = xdisable; then
9610             if test $wxUSE_ACCEL = yes; then
9611               result=no
9612             else
9613               result=yes
9614             fi
9615           else
9616             result=$wxUSE_ACCEL
9617           fi
9618
9619           { echo "$as_me:$LINENO: result: $result" >&5
9620 echo "${ECHO_T}$result" >&6; }
9621
9622
9623           enablestring=
9624           defaultval=$wxUSE_ALL_FEATURES
9625           if test -z "$defaultval"; then
9626               if test x"$enablestring" = xdisable; then
9627                   defaultval=yes
9628               else
9629                   defaultval=no
9630               fi
9631           fi
9632
9633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9634 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9635           # Check whether --enable-animatectrl was given.
9636 if test "${enable_animatectrl+set}" = set; then
9637   enableval=$enable_animatectrl;
9638                           if test "$enableval" = yes; then
9639                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9640                           else
9641                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9642                           fi
9643
9644 else
9645
9646                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9647
9648 fi
9649
9650
9651           eval "$wx_cv_use_animatectrl"
9652
9653           if test x"$enablestring" = xdisable; then
9654             if test $wxUSE_ANIMATIONCTRL = yes; then
9655               result=no
9656             else
9657               result=yes
9658             fi
9659           else
9660             result=$wxUSE_ANIMATIONCTRL
9661           fi
9662
9663           { echo "$as_me:$LINENO: result: $result" >&5
9664 echo "${ECHO_T}$result" >&6; }
9665
9666
9667           enablestring=
9668           defaultval=$wxUSE_ALL_FEATURES
9669           if test -z "$defaultval"; then
9670               if test x"$enablestring" = xdisable; then
9671                   defaultval=yes
9672               else
9673                   defaultval=no
9674               fi
9675           fi
9676
9677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9678 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9679           # Check whether --enable-button was given.
9680 if test "${enable_button+set}" = set; then
9681   enableval=$enable_button;
9682                           if test "$enableval" = yes; then
9683                             wx_cv_use_button='wxUSE_BUTTON=yes'
9684                           else
9685                             wx_cv_use_button='wxUSE_BUTTON=no'
9686                           fi
9687
9688 else
9689
9690                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9691
9692 fi
9693
9694
9695           eval "$wx_cv_use_button"
9696
9697           if test x"$enablestring" = xdisable; then
9698             if test $wxUSE_BUTTON = yes; then
9699               result=no
9700             else
9701               result=yes
9702             fi
9703           else
9704             result=$wxUSE_BUTTON
9705           fi
9706
9707           { echo "$as_me:$LINENO: result: $result" >&5
9708 echo "${ECHO_T}$result" >&6; }
9709
9710
9711           enablestring=
9712           defaultval=$wxUSE_ALL_FEATURES
9713           if test -z "$defaultval"; then
9714               if test x"$enablestring" = xdisable; then
9715                   defaultval=yes
9716               else
9717                   defaultval=no
9718               fi
9719           fi
9720
9721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9722 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9723           # Check whether --enable-bmpbutton was given.
9724 if test "${enable_bmpbutton+set}" = set; then
9725   enableval=$enable_bmpbutton;
9726                           if test "$enableval" = yes; then
9727                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9728                           else
9729                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9730                           fi
9731
9732 else
9733
9734                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9735
9736 fi
9737
9738
9739           eval "$wx_cv_use_bmpbutton"
9740
9741           if test x"$enablestring" = xdisable; then
9742             if test $wxUSE_BMPBUTTON = yes; then
9743               result=no
9744             else
9745               result=yes
9746             fi
9747           else
9748             result=$wxUSE_BMPBUTTON
9749           fi
9750
9751           { echo "$as_me:$LINENO: result: $result" >&5
9752 echo "${ECHO_T}$result" >&6; }
9753
9754
9755           enablestring=
9756           defaultval=$wxUSE_ALL_FEATURES
9757           if test -z "$defaultval"; then
9758               if test x"$enablestring" = xdisable; then
9759                   defaultval=yes
9760               else
9761                   defaultval=no
9762               fi
9763           fi
9764
9765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9766 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9767           # Check whether --enable-bmpcombobox was given.
9768 if test "${enable_bmpcombobox+set}" = set; then
9769   enableval=$enable_bmpcombobox;
9770                           if test "$enableval" = yes; then
9771                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9772                           else
9773                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9774                           fi
9775
9776 else
9777
9778                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9779
9780 fi
9781
9782
9783           eval "$wx_cv_use_bmpcombobox"
9784
9785           if test x"$enablestring" = xdisable; then
9786             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9787               result=no
9788             else
9789               result=yes
9790             fi
9791           else
9792             result=$wxUSE_BITMAPCOMBOBOX
9793           fi
9794
9795           { echo "$as_me:$LINENO: result: $result" >&5
9796 echo "${ECHO_T}$result" >&6; }
9797
9798
9799           enablestring=
9800           defaultval=$wxUSE_ALL_FEATURES
9801           if test -z "$defaultval"; then
9802               if test x"$enablestring" = xdisable; then
9803                   defaultval=yes
9804               else
9805                   defaultval=no
9806               fi
9807           fi
9808
9809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9810 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9811           # Check whether --enable-calendar was given.
9812 if test "${enable_calendar+set}" = set; then
9813   enableval=$enable_calendar;
9814                           if test "$enableval" = yes; then
9815                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9816                           else
9817                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9818                           fi
9819
9820 else
9821
9822                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9823
9824 fi
9825
9826
9827           eval "$wx_cv_use_calendar"
9828
9829           if test x"$enablestring" = xdisable; then
9830             if test $wxUSE_CALCTRL = yes; then
9831               result=no
9832             else
9833               result=yes
9834             fi
9835           else
9836             result=$wxUSE_CALCTRL
9837           fi
9838
9839           { echo "$as_me:$LINENO: result: $result" >&5
9840 echo "${ECHO_T}$result" >&6; }
9841
9842
9843           enablestring=
9844           defaultval=$wxUSE_ALL_FEATURES
9845           if test -z "$defaultval"; then
9846               if test x"$enablestring" = xdisable; then
9847                   defaultval=yes
9848               else
9849                   defaultval=no
9850               fi
9851           fi
9852
9853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9854 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9855           # Check whether --enable-caret was given.
9856 if test "${enable_caret+set}" = set; then
9857   enableval=$enable_caret;
9858                           if test "$enableval" = yes; then
9859                             wx_cv_use_caret='wxUSE_CARET=yes'
9860                           else
9861                             wx_cv_use_caret='wxUSE_CARET=no'
9862                           fi
9863
9864 else
9865
9866                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9867
9868 fi
9869
9870
9871           eval "$wx_cv_use_caret"
9872
9873           if test x"$enablestring" = xdisable; then
9874             if test $wxUSE_CARET = yes; then
9875               result=no
9876             else
9877               result=yes
9878             fi
9879           else
9880             result=$wxUSE_CARET
9881           fi
9882
9883           { echo "$as_me:$LINENO: result: $result" >&5
9884 echo "${ECHO_T}$result" >&6; }
9885
9886
9887           enablestring=
9888           defaultval=$wxUSE_ALL_FEATURES
9889           if test -z "$defaultval"; then
9890               if test x"$enablestring" = xdisable; then
9891                   defaultval=yes
9892               else
9893                   defaultval=no
9894               fi
9895           fi
9896
9897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9898 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9899           # Check whether --enable-checkbox was given.
9900 if test "${enable_checkbox+set}" = set; then
9901   enableval=$enable_checkbox;
9902                           if test "$enableval" = yes; then
9903                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9904                           else
9905                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9906                           fi
9907
9908 else
9909
9910                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9911
9912 fi
9913
9914
9915           eval "$wx_cv_use_checkbox"
9916
9917           if test x"$enablestring" = xdisable; then
9918             if test $wxUSE_CHECKBOX = yes; then
9919               result=no
9920             else
9921               result=yes
9922             fi
9923           else
9924             result=$wxUSE_CHECKBOX
9925           fi
9926
9927           { echo "$as_me:$LINENO: result: $result" >&5
9928 echo "${ECHO_T}$result" >&6; }
9929
9930
9931           enablestring=
9932           defaultval=$wxUSE_ALL_FEATURES
9933           if test -z "$defaultval"; then
9934               if test x"$enablestring" = xdisable; then
9935                   defaultval=yes
9936               else
9937                   defaultval=no
9938               fi
9939           fi
9940
9941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9942 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9943           # Check whether --enable-checklst was given.
9944 if test "${enable_checklst+set}" = set; then
9945   enableval=$enable_checklst;
9946                           if test "$enableval" = yes; then
9947                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9948                           else
9949                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9950                           fi
9951
9952 else
9953
9954                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9955
9956 fi
9957
9958
9959           eval "$wx_cv_use_checklst"
9960
9961           if test x"$enablestring" = xdisable; then
9962             if test $wxUSE_CHECKLST = yes; then
9963               result=no
9964             else
9965               result=yes
9966             fi
9967           else
9968             result=$wxUSE_CHECKLST
9969           fi
9970
9971           { echo "$as_me:$LINENO: result: $result" >&5
9972 echo "${ECHO_T}$result" >&6; }
9973
9974
9975           enablestring=
9976           defaultval=$wxUSE_ALL_FEATURES
9977           if test -z "$defaultval"; then
9978               if test x"$enablestring" = xdisable; then
9979                   defaultval=yes
9980               else
9981                   defaultval=no
9982               fi
9983           fi
9984
9985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9986 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9987           # Check whether --enable-choice was given.
9988 if test "${enable_choice+set}" = set; then
9989   enableval=$enable_choice;
9990                           if test "$enableval" = yes; then
9991                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9992                           else
9993                             wx_cv_use_choice='wxUSE_CHOICE=no'
9994                           fi
9995
9996 else
9997
9998                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9999
10000 fi
10001
10002
10003           eval "$wx_cv_use_choice"
10004
10005           if test x"$enablestring" = xdisable; then
10006             if test $wxUSE_CHOICE = yes; then
10007               result=no
10008             else
10009               result=yes
10010             fi
10011           else
10012             result=$wxUSE_CHOICE
10013           fi
10014
10015           { echo "$as_me:$LINENO: result: $result" >&5
10016 echo "${ECHO_T}$result" >&6; }
10017
10018
10019           enablestring=
10020           defaultval=$wxUSE_ALL_FEATURES
10021           if test -z "$defaultval"; then
10022               if test x"$enablestring" = xdisable; then
10023                   defaultval=yes
10024               else
10025                   defaultval=no
10026               fi
10027           fi
10028
10029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10030 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10031           # Check whether --enable-choicebook was given.
10032 if test "${enable_choicebook+set}" = set; then
10033   enableval=$enable_choicebook;
10034                           if test "$enableval" = yes; then
10035                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10036                           else
10037                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10038                           fi
10039
10040 else
10041
10042                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10043
10044 fi
10045
10046
10047           eval "$wx_cv_use_choicebook"
10048
10049           if test x"$enablestring" = xdisable; then
10050             if test $wxUSE_CHOICEBOOK = yes; then
10051               result=no
10052             else
10053               result=yes
10054             fi
10055           else
10056             result=$wxUSE_CHOICEBOOK
10057           fi
10058
10059           { echo "$as_me:$LINENO: result: $result" >&5
10060 echo "${ECHO_T}$result" >&6; }
10061
10062
10063           enablestring=
10064           defaultval=$wxUSE_ALL_FEATURES
10065           if test -z "$defaultval"; then
10066               if test x"$enablestring" = xdisable; then
10067                   defaultval=yes
10068               else
10069                   defaultval=no
10070               fi
10071           fi
10072
10073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10074 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10075           # Check whether --enable-collpane was given.
10076 if test "${enable_collpane+set}" = set; then
10077   enableval=$enable_collpane;
10078                           if test "$enableval" = yes; then
10079                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10080                           else
10081                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10082                           fi
10083
10084 else
10085
10086                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10087
10088 fi
10089
10090
10091           eval "$wx_cv_use_collpane"
10092
10093           if test x"$enablestring" = xdisable; then
10094             if test $wxUSE_COLLPANE = yes; then
10095               result=no
10096             else
10097               result=yes
10098             fi
10099           else
10100             result=$wxUSE_COLLPANE
10101           fi
10102
10103           { echo "$as_me:$LINENO: result: $result" >&5
10104 echo "${ECHO_T}$result" >&6; }
10105
10106
10107           enablestring=
10108           defaultval=$wxUSE_ALL_FEATURES
10109           if test -z "$defaultval"; then
10110               if test x"$enablestring" = xdisable; then
10111                   defaultval=yes
10112               else
10113                   defaultval=no
10114               fi
10115           fi
10116
10117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10118 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10119           # Check whether --enable-colourpicker was given.
10120 if test "${enable_colourpicker+set}" = set; then
10121   enableval=$enable_colourpicker;
10122                           if test "$enableval" = yes; then
10123                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10124                           else
10125                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10126                           fi
10127
10128 else
10129
10130                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10131
10132 fi
10133
10134
10135           eval "$wx_cv_use_colourpicker"
10136
10137           if test x"$enablestring" = xdisable; then
10138             if test $wxUSE_COLOURPICKERCTRL = yes; then
10139               result=no
10140             else
10141               result=yes
10142             fi
10143           else
10144             result=$wxUSE_COLOURPICKERCTRL
10145           fi
10146
10147           { echo "$as_me:$LINENO: result: $result" >&5
10148 echo "${ECHO_T}$result" >&6; }
10149
10150
10151           enablestring=
10152           defaultval=$wxUSE_ALL_FEATURES
10153           if test -z "$defaultval"; then
10154               if test x"$enablestring" = xdisable; then
10155                   defaultval=yes
10156               else
10157                   defaultval=no
10158               fi
10159           fi
10160
10161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10162 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10163           # Check whether --enable-combobox was given.
10164 if test "${enable_combobox+set}" = set; then
10165   enableval=$enable_combobox;
10166                           if test "$enableval" = yes; then
10167                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10168                           else
10169                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10170                           fi
10171
10172 else
10173
10174                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10175
10176 fi
10177
10178
10179           eval "$wx_cv_use_combobox"
10180
10181           if test x"$enablestring" = xdisable; then
10182             if test $wxUSE_COMBOBOX = yes; then
10183               result=no
10184             else
10185               result=yes
10186             fi
10187           else
10188             result=$wxUSE_COMBOBOX
10189           fi
10190
10191           { echo "$as_me:$LINENO: result: $result" >&5
10192 echo "${ECHO_T}$result" >&6; }
10193
10194
10195           enablestring=
10196           defaultval=$wxUSE_ALL_FEATURES
10197           if test -z "$defaultval"; then
10198               if test x"$enablestring" = xdisable; then
10199                   defaultval=yes
10200               else
10201                   defaultval=no
10202               fi
10203           fi
10204
10205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10206 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10207           # Check whether --enable-comboctrl was given.
10208 if test "${enable_comboctrl+set}" = set; then
10209   enableval=$enable_comboctrl;
10210                           if test "$enableval" = yes; then
10211                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10212                           else
10213                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10214                           fi
10215
10216 else
10217
10218                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10219
10220 fi
10221
10222
10223           eval "$wx_cv_use_comboctrl"
10224
10225           if test x"$enablestring" = xdisable; then
10226             if test $wxUSE_COMBOCTRL = yes; then
10227               result=no
10228             else
10229               result=yes
10230             fi
10231           else
10232             result=$wxUSE_COMBOCTRL
10233           fi
10234
10235           { echo "$as_me:$LINENO: result: $result" >&5
10236 echo "${ECHO_T}$result" >&6; }
10237
10238
10239           enablestring=
10240           defaultval=$wxUSE_ALL_FEATURES
10241           if test -z "$defaultval"; then
10242               if test x"$enablestring" = xdisable; then
10243                   defaultval=yes
10244               else
10245                   defaultval=no
10246               fi
10247           fi
10248
10249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10250 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10251           # Check whether --enable-datepick was given.
10252 if test "${enable_datepick+set}" = set; then
10253   enableval=$enable_datepick;
10254                           if test "$enableval" = yes; then
10255                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10256                           else
10257                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10258                           fi
10259
10260 else
10261
10262                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10263
10264 fi
10265
10266
10267           eval "$wx_cv_use_datepick"
10268
10269           if test x"$enablestring" = xdisable; then
10270             if test $wxUSE_DATEPICKCTRL = yes; then
10271               result=no
10272             else
10273               result=yes
10274             fi
10275           else
10276             result=$wxUSE_DATEPICKCTRL
10277           fi
10278
10279           { echo "$as_me:$LINENO: result: $result" >&5
10280 echo "${ECHO_T}$result" >&6; }
10281
10282
10283           enablestring=
10284           defaultval=$wxUSE_ALL_FEATURES
10285           if test -z "$defaultval"; then
10286               if test x"$enablestring" = xdisable; then
10287                   defaultval=yes
10288               else
10289                   defaultval=no
10290               fi
10291           fi
10292
10293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10294 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10295           # Check whether --enable-dirpicker was given.
10296 if test "${enable_dirpicker+set}" = set; then
10297   enableval=$enable_dirpicker;
10298                           if test "$enableval" = yes; then
10299                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10300                           else
10301                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10302                           fi
10303
10304 else
10305
10306                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10307
10308 fi
10309
10310
10311           eval "$wx_cv_use_dirpicker"
10312
10313           if test x"$enablestring" = xdisable; then
10314             if test $wxUSE_DIRPICKERCTRL = yes; then
10315               result=no
10316             else
10317               result=yes
10318             fi
10319           else
10320             result=$wxUSE_DIRPICKERCTRL
10321           fi
10322
10323           { echo "$as_me:$LINENO: result: $result" >&5
10324 echo "${ECHO_T}$result" >&6; }
10325
10326
10327           enablestring=
10328           defaultval=$wxUSE_ALL_FEATURES
10329           if test -z "$defaultval"; then
10330               if test x"$enablestring" = xdisable; then
10331                   defaultval=yes
10332               else
10333                   defaultval=no
10334               fi
10335           fi
10336
10337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10338 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10339           # Check whether --enable-display was given.
10340 if test "${enable_display+set}" = set; then
10341   enableval=$enable_display;
10342                           if test "$enableval" = yes; then
10343                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10344                           else
10345                             wx_cv_use_display='wxUSE_DISPLAY=no'
10346                           fi
10347
10348 else
10349
10350                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10351
10352 fi
10353
10354
10355           eval "$wx_cv_use_display"
10356
10357           if test x"$enablestring" = xdisable; then
10358             if test $wxUSE_DISPLAY = yes; then
10359               result=no
10360             else
10361               result=yes
10362             fi
10363           else
10364             result=$wxUSE_DISPLAY
10365           fi
10366
10367           { echo "$as_me:$LINENO: result: $result" >&5
10368 echo "${ECHO_T}$result" >&6; }
10369
10370
10371           enablestring=
10372           defaultval=$wxUSE_ALL_FEATURES
10373           if test -z "$defaultval"; then
10374               if test x"$enablestring" = xdisable; then
10375                   defaultval=yes
10376               else
10377                   defaultval=no
10378               fi
10379           fi
10380
10381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10382 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10383           # Check whether --enable-detect_sm was given.
10384 if test "${enable_detect_sm+set}" = set; then
10385   enableval=$enable_detect_sm;
10386                           if test "$enableval" = yes; then
10387                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10388                           else
10389                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10390                           fi
10391
10392 else
10393
10394                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10395
10396 fi
10397
10398
10399           eval "$wx_cv_use_detect_sm"
10400
10401           if test x"$enablestring" = xdisable; then
10402             if test $wxUSE_DETECT_SM = yes; then
10403               result=no
10404             else
10405               result=yes
10406             fi
10407           else
10408             result=$wxUSE_DETECT_SM
10409           fi
10410
10411           { echo "$as_me:$LINENO: result: $result" >&5
10412 echo "${ECHO_T}$result" >&6; }
10413
10414
10415           enablestring=
10416           defaultval=$wxUSE_ALL_FEATURES
10417           if test -z "$defaultval"; then
10418               if test x"$enablestring" = xdisable; then
10419                   defaultval=yes
10420               else
10421                   defaultval=no
10422               fi
10423           fi
10424
10425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10426 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10427           # Check whether --enable-editablebox was given.
10428 if test "${enable_editablebox+set}" = set; then
10429   enableval=$enable_editablebox;
10430                           if test "$enableval" = yes; then
10431                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10432                           else
10433                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10434                           fi
10435
10436 else
10437
10438                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10439
10440 fi
10441
10442
10443           eval "$wx_cv_use_editablebox"
10444
10445           if test x"$enablestring" = xdisable; then
10446             if test $wxUSE_EDITABLELISTBOX = yes; then
10447               result=no
10448             else
10449               result=yes
10450             fi
10451           else
10452             result=$wxUSE_EDITABLELISTBOX
10453           fi
10454
10455           { echo "$as_me:$LINENO: result: $result" >&5
10456 echo "${ECHO_T}$result" >&6; }
10457
10458
10459           enablestring=
10460           defaultval=$wxUSE_ALL_FEATURES
10461           if test -z "$defaultval"; then
10462               if test x"$enablestring" = xdisable; then
10463                   defaultval=yes
10464               else
10465                   defaultval=no
10466               fi
10467           fi
10468
10469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10470 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10471           # Check whether --enable-filepicker was given.
10472 if test "${enable_filepicker+set}" = set; then
10473   enableval=$enable_filepicker;
10474                           if test "$enableval" = yes; then
10475                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10476                           else
10477                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10478                           fi
10479
10480 else
10481
10482                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10483
10484 fi
10485
10486
10487           eval "$wx_cv_use_filepicker"
10488
10489           if test x"$enablestring" = xdisable; then
10490             if test $wxUSE_FILEPICKERCTRL = yes; then
10491               result=no
10492             else
10493               result=yes
10494             fi
10495           else
10496             result=$wxUSE_FILEPICKERCTRL
10497           fi
10498
10499           { echo "$as_me:$LINENO: result: $result" >&5
10500 echo "${ECHO_T}$result" >&6; }
10501
10502
10503           enablestring=
10504           defaultval=$wxUSE_ALL_FEATURES
10505           if test -z "$defaultval"; then
10506               if test x"$enablestring" = xdisable; then
10507                   defaultval=yes
10508               else
10509                   defaultval=no
10510               fi
10511           fi
10512
10513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10514 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10515           # Check whether --enable-filectrl was given.
10516 if test "${enable_filectrl+set}" = set; then
10517   enableval=$enable_filectrl;
10518                           if test "$enableval" = yes; then
10519                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10520                           else
10521                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10522                           fi
10523
10524 else
10525
10526                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10527
10528 fi
10529
10530
10531           eval "$wx_cv_use_filectrl"
10532
10533           if test x"$enablestring" = xdisable; then
10534             if test $wxUSE_FILECTRL = yes; then
10535               result=no
10536             else
10537               result=yes
10538             fi
10539           else
10540             result=$wxUSE_FILECTRL
10541           fi
10542
10543           { echo "$as_me:$LINENO: result: $result" >&5
10544 echo "${ECHO_T}$result" >&6; }
10545
10546
10547           enablestring=
10548           defaultval=$wxUSE_ALL_FEATURES
10549           if test -z "$defaultval"; then
10550               if test x"$enablestring" = xdisable; then
10551                   defaultval=yes
10552               else
10553                   defaultval=no
10554               fi
10555           fi
10556
10557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10558 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10559           # Check whether --enable-fontpicker was given.
10560 if test "${enable_fontpicker+set}" = set; then
10561   enableval=$enable_fontpicker;
10562                           if test "$enableval" = yes; then
10563                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10564                           else
10565                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10566                           fi
10567
10568 else
10569
10570                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10571
10572 fi
10573
10574
10575           eval "$wx_cv_use_fontpicker"
10576
10577           if test x"$enablestring" = xdisable; then
10578             if test $wxUSE_FONTPICKERCTRL = yes; then
10579               result=no
10580             else
10581               result=yes
10582             fi
10583           else
10584             result=$wxUSE_FONTPICKERCTRL
10585           fi
10586
10587           { echo "$as_me:$LINENO: result: $result" >&5
10588 echo "${ECHO_T}$result" >&6; }
10589
10590
10591           enablestring=
10592           defaultval=$wxUSE_ALL_FEATURES
10593           if test -z "$defaultval"; then
10594               if test x"$enablestring" = xdisable; then
10595                   defaultval=yes
10596               else
10597                   defaultval=no
10598               fi
10599           fi
10600
10601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10602 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10603           # Check whether --enable-gauge was given.
10604 if test "${enable_gauge+set}" = set; then
10605   enableval=$enable_gauge;
10606                           if test "$enableval" = yes; then
10607                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10608                           else
10609                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10610                           fi
10611
10612 else
10613
10614                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10615
10616 fi
10617
10618
10619           eval "$wx_cv_use_gauge"
10620
10621           if test x"$enablestring" = xdisable; then
10622             if test $wxUSE_GAUGE = yes; then
10623               result=no
10624             else
10625               result=yes
10626             fi
10627           else
10628             result=$wxUSE_GAUGE
10629           fi
10630
10631           { echo "$as_me:$LINENO: result: $result" >&5
10632 echo "${ECHO_T}$result" >&6; }
10633
10634
10635           enablestring=
10636           defaultval=$wxUSE_ALL_FEATURES
10637           if test -z "$defaultval"; then
10638               if test x"$enablestring" = xdisable; then
10639                   defaultval=yes
10640               else
10641                   defaultval=no
10642               fi
10643           fi
10644
10645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10646 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10647           # Check whether --enable-grid was given.
10648 if test "${enable_grid+set}" = set; then
10649   enableval=$enable_grid;
10650                           if test "$enableval" = yes; then
10651                             wx_cv_use_grid='wxUSE_GRID=yes'
10652                           else
10653                             wx_cv_use_grid='wxUSE_GRID=no'
10654                           fi
10655
10656 else
10657
10658                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10659
10660 fi
10661
10662
10663           eval "$wx_cv_use_grid"
10664
10665           if test x"$enablestring" = xdisable; then
10666             if test $wxUSE_GRID = yes; then
10667               result=no
10668             else
10669               result=yes
10670             fi
10671           else
10672             result=$wxUSE_GRID
10673           fi
10674
10675           { echo "$as_me:$LINENO: result: $result" >&5
10676 echo "${ECHO_T}$result" >&6; }
10677
10678
10679           enablestring=
10680           defaultval=$wxUSE_ALL_FEATURES
10681           if test -z "$defaultval"; then
10682               if test x"$enablestring" = xdisable; then
10683                   defaultval=yes
10684               else
10685                   defaultval=no
10686               fi
10687           fi
10688
10689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10690 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10691           # Check whether --enable-dataviewctrl was given.
10692 if test "${enable_dataviewctrl+set}" = set; then
10693   enableval=$enable_dataviewctrl;
10694                           if test "$enableval" = yes; then
10695                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10696                           else
10697                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10698                           fi
10699
10700 else
10701
10702                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10703
10704 fi
10705
10706
10707           eval "$wx_cv_use_dataviewctrl"
10708
10709           if test x"$enablestring" = xdisable; then
10710             if test $wxUSE_DATAVIEWCTRL = yes; then
10711               result=no
10712             else
10713               result=yes
10714             fi
10715           else
10716             result=$wxUSE_DATAVIEWCTRL
10717           fi
10718
10719           { echo "$as_me:$LINENO: result: $result" >&5
10720 echo "${ECHO_T}$result" >&6; }
10721
10722
10723           enablestring=
10724           defaultval=$wxUSE_ALL_FEATURES
10725           if test -z "$defaultval"; then
10726               if test x"$enablestring" = xdisable; then
10727                   defaultval=yes
10728               else
10729                   defaultval=no
10730               fi
10731           fi
10732
10733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10734 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10735           # Check whether --enable-hyperlink was given.
10736 if test "${enable_hyperlink+set}" = set; then
10737   enableval=$enable_hyperlink;
10738                           if test "$enableval" = yes; then
10739                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10740                           else
10741                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10742                           fi
10743
10744 else
10745
10746                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10747
10748 fi
10749
10750
10751           eval "$wx_cv_use_hyperlink"
10752
10753           if test x"$enablestring" = xdisable; then
10754             if test $wxUSE_HYPERLINKCTRL = yes; then
10755               result=no
10756             else
10757               result=yes
10758             fi
10759           else
10760             result=$wxUSE_HYPERLINKCTRL
10761           fi
10762
10763           { echo "$as_me:$LINENO: result: $result" >&5
10764 echo "${ECHO_T}$result" >&6; }
10765
10766
10767           enablestring=
10768           defaultval=$wxUSE_ALL_FEATURES
10769           if test -z "$defaultval"; then
10770               if test x"$enablestring" = xdisable; then
10771                   defaultval=yes
10772               else
10773                   defaultval=no
10774               fi
10775           fi
10776
10777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10778 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10779           # Check whether --enable-imaglist was given.
10780 if test "${enable_imaglist+set}" = set; then
10781   enableval=$enable_imaglist;
10782                           if test "$enableval" = yes; then
10783                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10784                           else
10785                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10786                           fi
10787
10788 else
10789
10790                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10791
10792 fi
10793
10794
10795           eval "$wx_cv_use_imaglist"
10796
10797           if test x"$enablestring" = xdisable; then
10798             if test $wxUSE_IMAGLIST = yes; then
10799               result=no
10800             else
10801               result=yes
10802             fi
10803           else
10804             result=$wxUSE_IMAGLIST
10805           fi
10806
10807           { echo "$as_me:$LINENO: result: $result" >&5
10808 echo "${ECHO_T}$result" >&6; }
10809
10810
10811           enablestring=
10812           defaultval=$wxUSE_ALL_FEATURES
10813           if test -z "$defaultval"; then
10814               if test x"$enablestring" = xdisable; then
10815                   defaultval=yes
10816               else
10817                   defaultval=no
10818               fi
10819           fi
10820
10821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10822 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10823           # Check whether --enable-listbook was given.
10824 if test "${enable_listbook+set}" = set; then
10825   enableval=$enable_listbook;
10826                           if test "$enableval" = yes; then
10827                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10828                           else
10829                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10830                           fi
10831
10832 else
10833
10834                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10835
10836 fi
10837
10838
10839           eval "$wx_cv_use_listbook"
10840
10841           if test x"$enablestring" = xdisable; then
10842             if test $wxUSE_LISTBOOK = yes; then
10843               result=no
10844             else
10845               result=yes
10846             fi
10847           else
10848             result=$wxUSE_LISTBOOK
10849           fi
10850
10851           { echo "$as_me:$LINENO: result: $result" >&5
10852 echo "${ECHO_T}$result" >&6; }
10853
10854
10855           enablestring=
10856           defaultval=$wxUSE_ALL_FEATURES
10857           if test -z "$defaultval"; then
10858               if test x"$enablestring" = xdisable; then
10859                   defaultval=yes
10860               else
10861                   defaultval=no
10862               fi
10863           fi
10864
10865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10866 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10867           # Check whether --enable-listbox was given.
10868 if test "${enable_listbox+set}" = set; then
10869   enableval=$enable_listbox;
10870                           if test "$enableval" = yes; then
10871                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10872                           else
10873                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10874                           fi
10875
10876 else
10877
10878                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10879
10880 fi
10881
10882
10883           eval "$wx_cv_use_listbox"
10884
10885           if test x"$enablestring" = xdisable; then
10886             if test $wxUSE_LISTBOX = yes; then
10887               result=no
10888             else
10889               result=yes
10890             fi
10891           else
10892             result=$wxUSE_LISTBOX
10893           fi
10894
10895           { echo "$as_me:$LINENO: result: $result" >&5
10896 echo "${ECHO_T}$result" >&6; }
10897
10898
10899           enablestring=
10900           defaultval=$wxUSE_ALL_FEATURES
10901           if test -z "$defaultval"; then
10902               if test x"$enablestring" = xdisable; then
10903                   defaultval=yes
10904               else
10905                   defaultval=no
10906               fi
10907           fi
10908
10909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10910 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10911           # Check whether --enable-listctrl was given.
10912 if test "${enable_listctrl+set}" = set; then
10913   enableval=$enable_listctrl;
10914                           if test "$enableval" = yes; then
10915                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10916                           else
10917                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10918                           fi
10919
10920 else
10921
10922                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10923
10924 fi
10925
10926
10927           eval "$wx_cv_use_listctrl"
10928
10929           if test x"$enablestring" = xdisable; then
10930             if test $wxUSE_LISTCTRL = yes; then
10931               result=no
10932             else
10933               result=yes
10934             fi
10935           else
10936             result=$wxUSE_LISTCTRL
10937           fi
10938
10939           { echo "$as_me:$LINENO: result: $result" >&5
10940 echo "${ECHO_T}$result" >&6; }
10941
10942
10943           enablestring=
10944           defaultval=$wxUSE_ALL_FEATURES
10945           if test -z "$defaultval"; then
10946               if test x"$enablestring" = xdisable; then
10947                   defaultval=yes
10948               else
10949                   defaultval=no
10950               fi
10951           fi
10952
10953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10954 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10955           # Check whether --enable-notebook was given.
10956 if test "${enable_notebook+set}" = set; then
10957   enableval=$enable_notebook;
10958                           if test "$enableval" = yes; then
10959                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10960                           else
10961                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10962                           fi
10963
10964 else
10965
10966                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10967
10968 fi
10969
10970
10971           eval "$wx_cv_use_notebook"
10972
10973           if test x"$enablestring" = xdisable; then
10974             if test $wxUSE_NOTEBOOK = yes; then
10975               result=no
10976             else
10977               result=yes
10978             fi
10979           else
10980             result=$wxUSE_NOTEBOOK
10981           fi
10982
10983           { echo "$as_me:$LINENO: result: $result" >&5
10984 echo "${ECHO_T}$result" >&6; }
10985
10986
10987           enablestring=
10988           defaultval=$wxUSE_ALL_FEATURES
10989           if test -z "$defaultval"; then
10990               if test x"$enablestring" = xdisable; then
10991                   defaultval=yes
10992               else
10993                   defaultval=no
10994               fi
10995           fi
10996
10997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10998 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10999           # Check whether --enable-notifmsg was given.
11000 if test "${enable_notifmsg+set}" = set; then
11001   enableval=$enable_notifmsg;
11002                           if test "$enableval" = yes; then
11003                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11004                           else
11005                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11006                           fi
11007
11008 else
11009
11010                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11011
11012 fi
11013
11014
11015           eval "$wx_cv_use_notifmsg"
11016
11017           if test x"$enablestring" = xdisable; then
11018             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
11019               result=no
11020             else
11021               result=yes
11022             fi
11023           else
11024             result=$wxUSE_NOTIFICATION_MESSAGE
11025           fi
11026
11027           { echo "$as_me:$LINENO: result: $result" >&5
11028 echo "${ECHO_T}$result" >&6; }
11029
11030
11031           enablestring=
11032           defaultval=$wxUSE_ALL_FEATURES
11033           if test -z "$defaultval"; then
11034               if test x"$enablestring" = xdisable; then
11035                   defaultval=yes
11036               else
11037                   defaultval=no
11038               fi
11039           fi
11040
11041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11042 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11043           # Check whether --enable-odcombobox was given.
11044 if test "${enable_odcombobox+set}" = set; then
11045   enableval=$enable_odcombobox;
11046                           if test "$enableval" = yes; then
11047                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11048                           else
11049                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11050                           fi
11051
11052 else
11053
11054                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11055
11056 fi
11057
11058
11059           eval "$wx_cv_use_odcombobox"
11060
11061           if test x"$enablestring" = xdisable; then
11062             if test $wxUSE_ODCOMBOBOX = yes; then
11063               result=no
11064             else
11065               result=yes
11066             fi
11067           else
11068             result=$wxUSE_ODCOMBOBOX
11069           fi
11070
11071           { echo "$as_me:$LINENO: result: $result" >&5
11072 echo "${ECHO_T}$result" >&6; }
11073
11074
11075           enablestring=
11076           defaultval=$wxUSE_ALL_FEATURES
11077           if test -z "$defaultval"; then
11078               if test x"$enablestring" = xdisable; then
11079                   defaultval=yes
11080               else
11081                   defaultval=no
11082               fi
11083           fi
11084
11085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11086 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11087           # Check whether --enable-radiobox was given.
11088 if test "${enable_radiobox+set}" = set; then
11089   enableval=$enable_radiobox;
11090                           if test "$enableval" = yes; then
11091                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11092                           else
11093                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11094                           fi
11095
11096 else
11097
11098                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11099
11100 fi
11101
11102
11103           eval "$wx_cv_use_radiobox"
11104
11105           if test x"$enablestring" = xdisable; then
11106             if test $wxUSE_RADIOBOX = yes; then
11107               result=no
11108             else
11109               result=yes
11110             fi
11111           else
11112             result=$wxUSE_RADIOBOX
11113           fi
11114
11115           { echo "$as_me:$LINENO: result: $result" >&5
11116 echo "${ECHO_T}$result" >&6; }
11117
11118
11119           enablestring=
11120           defaultval=$wxUSE_ALL_FEATURES
11121           if test -z "$defaultval"; then
11122               if test x"$enablestring" = xdisable; then
11123                   defaultval=yes
11124               else
11125                   defaultval=no
11126               fi
11127           fi
11128
11129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11130 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11131           # Check whether --enable-radiobtn was given.
11132 if test "${enable_radiobtn+set}" = set; then
11133   enableval=$enable_radiobtn;
11134                           if test "$enableval" = yes; then
11135                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11136                           else
11137                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11138                           fi
11139
11140 else
11141
11142                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11143
11144 fi
11145
11146
11147           eval "$wx_cv_use_radiobtn"
11148
11149           if test x"$enablestring" = xdisable; then
11150             if test $wxUSE_RADIOBTN = yes; then
11151               result=no
11152             else
11153               result=yes
11154             fi
11155           else
11156             result=$wxUSE_RADIOBTN
11157           fi
11158
11159           { echo "$as_me:$LINENO: result: $result" >&5
11160 echo "${ECHO_T}$result" >&6; }
11161
11162
11163           enablestring=
11164           defaultval=$wxUSE_ALL_FEATURES
11165           if test -z "$defaultval"; then
11166               if test x"$enablestring" = xdisable; then
11167                   defaultval=yes
11168               else
11169                   defaultval=no
11170               fi
11171           fi
11172
11173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11174 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11175           # Check whether --enable-sash was given.
11176 if test "${enable_sash+set}" = set; then
11177   enableval=$enable_sash;
11178                           if test "$enableval" = yes; then
11179                             wx_cv_use_sash='wxUSE_SASH=yes'
11180                           else
11181                             wx_cv_use_sash='wxUSE_SASH=no'
11182                           fi
11183
11184 else
11185
11186                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11187
11188 fi
11189
11190
11191           eval "$wx_cv_use_sash"
11192
11193           if test x"$enablestring" = xdisable; then
11194             if test $wxUSE_SASH = yes; then
11195               result=no
11196             else
11197               result=yes
11198             fi
11199           else
11200             result=$wxUSE_SASH
11201           fi
11202
11203           { echo "$as_me:$LINENO: result: $result" >&5
11204 echo "${ECHO_T}$result" >&6; }
11205
11206
11207           enablestring=
11208           defaultval=$wxUSE_ALL_FEATURES
11209           if test -z "$defaultval"; then
11210               if test x"$enablestring" = xdisable; then
11211                   defaultval=yes
11212               else
11213                   defaultval=no
11214               fi
11215           fi
11216
11217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11218 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11219           # Check whether --enable-scrollbar was given.
11220 if test "${enable_scrollbar+set}" = set; then
11221   enableval=$enable_scrollbar;
11222                           if test "$enableval" = yes; then
11223                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11224                           else
11225                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11226                           fi
11227
11228 else
11229
11230                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11231
11232 fi
11233
11234
11235           eval "$wx_cv_use_scrollbar"
11236
11237           if test x"$enablestring" = xdisable; then
11238             if test $wxUSE_SCROLLBAR = yes; then
11239               result=no
11240             else
11241               result=yes
11242             fi
11243           else
11244             result=$wxUSE_SCROLLBAR
11245           fi
11246
11247           { echo "$as_me:$LINENO: result: $result" >&5
11248 echo "${ECHO_T}$result" >&6; }
11249
11250
11251           enablestring=
11252           defaultval=$wxUSE_ALL_FEATURES
11253           if test -z "$defaultval"; then
11254               if test x"$enablestring" = xdisable; then
11255                   defaultval=yes
11256               else
11257                   defaultval=no
11258               fi
11259           fi
11260
11261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11262 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11263           # Check whether --enable-searchctrl was given.
11264 if test "${enable_searchctrl+set}" = set; then
11265   enableval=$enable_searchctrl;
11266                           if test "$enableval" = yes; then
11267                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11268                           else
11269                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11270                           fi
11271
11272 else
11273
11274                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11275
11276 fi
11277
11278
11279           eval "$wx_cv_use_searchctrl"
11280
11281           if test x"$enablestring" = xdisable; then
11282             if test $wxUSE_SEARCHCTRL = yes; then
11283               result=no
11284             else
11285               result=yes
11286             fi
11287           else
11288             result=$wxUSE_SEARCHCTRL
11289           fi
11290
11291           { echo "$as_me:$LINENO: result: $result" >&5
11292 echo "${ECHO_T}$result" >&6; }
11293
11294
11295           enablestring=
11296           defaultval=$wxUSE_ALL_FEATURES
11297           if test -z "$defaultval"; then
11298               if test x"$enablestring" = xdisable; then
11299                   defaultval=yes
11300               else
11301                   defaultval=no
11302               fi
11303           fi
11304
11305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11306 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11307           # Check whether --enable-slider was given.
11308 if test "${enable_slider+set}" = set; then
11309   enableval=$enable_slider;
11310                           if test "$enableval" = yes; then
11311                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11312                           else
11313                             wx_cv_use_slider='wxUSE_SLIDER=no'
11314                           fi
11315
11316 else
11317
11318                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11319
11320 fi
11321
11322
11323           eval "$wx_cv_use_slider"
11324
11325           if test x"$enablestring" = xdisable; then
11326             if test $wxUSE_SLIDER = yes; then
11327               result=no
11328             else
11329               result=yes
11330             fi
11331           else
11332             result=$wxUSE_SLIDER
11333           fi
11334
11335           { echo "$as_me:$LINENO: result: $result" >&5
11336 echo "${ECHO_T}$result" >&6; }
11337
11338
11339           enablestring=
11340           defaultval=$wxUSE_ALL_FEATURES
11341           if test -z "$defaultval"; then
11342               if test x"$enablestring" = xdisable; then
11343                   defaultval=yes
11344               else
11345                   defaultval=no
11346               fi
11347           fi
11348
11349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11350 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11351           # Check whether --enable-spinbtn was given.
11352 if test "${enable_spinbtn+set}" = set; then
11353   enableval=$enable_spinbtn;
11354                           if test "$enableval" = yes; then
11355                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11356                           else
11357                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11358                           fi
11359
11360 else
11361
11362                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11363
11364 fi
11365
11366
11367           eval "$wx_cv_use_spinbtn"
11368
11369           if test x"$enablestring" = xdisable; then
11370             if test $wxUSE_SPINBTN = yes; then
11371               result=no
11372             else
11373               result=yes
11374             fi
11375           else
11376             result=$wxUSE_SPINBTN
11377           fi
11378
11379           { echo "$as_me:$LINENO: result: $result" >&5
11380 echo "${ECHO_T}$result" >&6; }
11381
11382
11383           enablestring=
11384           defaultval=$wxUSE_ALL_FEATURES
11385           if test -z "$defaultval"; then
11386               if test x"$enablestring" = xdisable; then
11387                   defaultval=yes
11388               else
11389                   defaultval=no
11390               fi
11391           fi
11392
11393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11394 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11395           # Check whether --enable-spinctrl was given.
11396 if test "${enable_spinctrl+set}" = set; then
11397   enableval=$enable_spinctrl;
11398                           if test "$enableval" = yes; then
11399                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11400                           else
11401                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11402                           fi
11403
11404 else
11405
11406                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11407
11408 fi
11409
11410
11411           eval "$wx_cv_use_spinctrl"
11412
11413           if test x"$enablestring" = xdisable; then
11414             if test $wxUSE_SPINCTRL = yes; then
11415               result=no
11416             else
11417               result=yes
11418             fi
11419           else
11420             result=$wxUSE_SPINCTRL
11421           fi
11422
11423           { echo "$as_me:$LINENO: result: $result" >&5
11424 echo "${ECHO_T}$result" >&6; }
11425
11426
11427           enablestring=
11428           defaultval=$wxUSE_ALL_FEATURES
11429           if test -z "$defaultval"; then
11430               if test x"$enablestring" = xdisable; then
11431                   defaultval=yes
11432               else
11433                   defaultval=no
11434               fi
11435           fi
11436
11437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11438 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11439           # Check whether --enable-splitter was given.
11440 if test "${enable_splitter+set}" = set; then
11441   enableval=$enable_splitter;
11442                           if test "$enableval" = yes; then
11443                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11444                           else
11445                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11446                           fi
11447
11448 else
11449
11450                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11451
11452 fi
11453
11454
11455           eval "$wx_cv_use_splitter"
11456
11457           if test x"$enablestring" = xdisable; then
11458             if test $wxUSE_SPLITTER = yes; then
11459               result=no
11460             else
11461               result=yes
11462             fi
11463           else
11464             result=$wxUSE_SPLITTER
11465           fi
11466
11467           { echo "$as_me:$LINENO: result: $result" >&5
11468 echo "${ECHO_T}$result" >&6; }
11469
11470
11471           enablestring=
11472           defaultval=$wxUSE_ALL_FEATURES
11473           if test -z "$defaultval"; then
11474               if test x"$enablestring" = xdisable; then
11475                   defaultval=yes
11476               else
11477                   defaultval=no
11478               fi
11479           fi
11480
11481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11482 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11483           # Check whether --enable-statbmp was given.
11484 if test "${enable_statbmp+set}" = set; then
11485   enableval=$enable_statbmp;
11486                           if test "$enableval" = yes; then
11487                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11488                           else
11489                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11490                           fi
11491
11492 else
11493
11494                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11495
11496 fi
11497
11498
11499           eval "$wx_cv_use_statbmp"
11500
11501           if test x"$enablestring" = xdisable; then
11502             if test $wxUSE_STATBMP = yes; then
11503               result=no
11504             else
11505               result=yes
11506             fi
11507           else
11508             result=$wxUSE_STATBMP
11509           fi
11510
11511           { echo "$as_me:$LINENO: result: $result" >&5
11512 echo "${ECHO_T}$result" >&6; }
11513
11514
11515           enablestring=
11516           defaultval=$wxUSE_ALL_FEATURES
11517           if test -z "$defaultval"; then
11518               if test x"$enablestring" = xdisable; then
11519                   defaultval=yes
11520               else
11521                   defaultval=no
11522               fi
11523           fi
11524
11525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11526 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11527           # Check whether --enable-statbox was given.
11528 if test "${enable_statbox+set}" = set; then
11529   enableval=$enable_statbox;
11530                           if test "$enableval" = yes; then
11531                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11532                           else
11533                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11534                           fi
11535
11536 else
11537
11538                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11539
11540 fi
11541
11542
11543           eval "$wx_cv_use_statbox"
11544
11545           if test x"$enablestring" = xdisable; then
11546             if test $wxUSE_STATBOX = yes; then
11547               result=no
11548             else
11549               result=yes
11550             fi
11551           else
11552             result=$wxUSE_STATBOX
11553           fi
11554
11555           { echo "$as_me:$LINENO: result: $result" >&5
11556 echo "${ECHO_T}$result" >&6; }
11557
11558
11559           enablestring=
11560           defaultval=$wxUSE_ALL_FEATURES
11561           if test -z "$defaultval"; then
11562               if test x"$enablestring" = xdisable; then
11563                   defaultval=yes
11564               else
11565                   defaultval=no
11566               fi
11567           fi
11568
11569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11570 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11571           # Check whether --enable-statline was given.
11572 if test "${enable_statline+set}" = set; then
11573   enableval=$enable_statline;
11574                           if test "$enableval" = yes; then
11575                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11576                           else
11577                             wx_cv_use_statline='wxUSE_STATLINE=no'
11578                           fi
11579
11580 else
11581
11582                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11583
11584 fi
11585
11586
11587           eval "$wx_cv_use_statline"
11588
11589           if test x"$enablestring" = xdisable; then
11590             if test $wxUSE_STATLINE = yes; then
11591               result=no
11592             else
11593               result=yes
11594             fi
11595           else
11596             result=$wxUSE_STATLINE
11597           fi
11598
11599           { echo "$as_me:$LINENO: result: $result" >&5
11600 echo "${ECHO_T}$result" >&6; }
11601
11602
11603           enablestring=
11604           defaultval=$wxUSE_ALL_FEATURES
11605           if test -z "$defaultval"; then
11606               if test x"$enablestring" = xdisable; then
11607                   defaultval=yes
11608               else
11609                   defaultval=no
11610               fi
11611           fi
11612
11613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11614 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11615           # Check whether --enable-stattext was given.
11616 if test "${enable_stattext+set}" = set; then
11617   enableval=$enable_stattext;
11618                           if test "$enableval" = yes; then
11619                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11620                           else
11621                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11622                           fi
11623
11624 else
11625
11626                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11627
11628 fi
11629
11630
11631           eval "$wx_cv_use_stattext"
11632
11633           if test x"$enablestring" = xdisable; then
11634             if test $wxUSE_STATTEXT = yes; then
11635               result=no
11636             else
11637               result=yes
11638             fi
11639           else
11640             result=$wxUSE_STATTEXT
11641           fi
11642
11643           { echo "$as_me:$LINENO: result: $result" >&5
11644 echo "${ECHO_T}$result" >&6; }
11645
11646
11647           enablestring=
11648           defaultval=$wxUSE_ALL_FEATURES
11649           if test -z "$defaultval"; then
11650               if test x"$enablestring" = xdisable; then
11651                   defaultval=yes
11652               else
11653                   defaultval=no
11654               fi
11655           fi
11656
11657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11658 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11659           # Check whether --enable-statusbar was given.
11660 if test "${enable_statusbar+set}" = set; then
11661   enableval=$enable_statusbar;
11662                           if test "$enableval" = yes; then
11663                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11664                           else
11665                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11666                           fi
11667
11668 else
11669
11670                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11671
11672 fi
11673
11674
11675           eval "$wx_cv_use_statusbar"
11676
11677           if test x"$enablestring" = xdisable; then
11678             if test $wxUSE_STATUSBAR = yes; then
11679               result=no
11680             else
11681               result=yes
11682             fi
11683           else
11684             result=$wxUSE_STATUSBAR
11685           fi
11686
11687           { echo "$as_me:$LINENO: result: $result" >&5
11688 echo "${ECHO_T}$result" >&6; }
11689
11690
11691           enablestring=
11692           defaultval=$wxUSE_ALL_FEATURES
11693           if test -z "$defaultval"; then
11694               if test x"$enablestring" = xdisable; then
11695                   defaultval=yes
11696               else
11697                   defaultval=no
11698               fi
11699           fi
11700
11701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11702 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11703           # Check whether --enable-tabdialog was given.
11704 if test "${enable_tabdialog+set}" = set; then
11705   enableval=$enable_tabdialog;
11706                           if test "$enableval" = yes; then
11707                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11708                           else
11709                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11710                           fi
11711
11712 else
11713
11714                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11715
11716 fi
11717
11718
11719           eval "$wx_cv_use_tabdialog"
11720
11721           if test x"$enablestring" = xdisable; then
11722             if test $wxUSE_TAB_DIALOG = yes; then
11723               result=no
11724             else
11725               result=yes
11726             fi
11727           else
11728             result=$wxUSE_TAB_DIALOG
11729           fi
11730
11731           { echo "$as_me:$LINENO: result: $result" >&5
11732 echo "${ECHO_T}$result" >&6; }
11733
11734
11735           enablestring=
11736           defaultval=$wxUSE_ALL_FEATURES
11737           if test -z "$defaultval"; then
11738               if test x"$enablestring" = xdisable; then
11739                   defaultval=yes
11740               else
11741                   defaultval=no
11742               fi
11743           fi
11744
11745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11746 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11747           # Check whether --enable-taskbaricon was given.
11748 if test "${enable_taskbaricon+set}" = set; then
11749   enableval=$enable_taskbaricon;
11750                           if test "$enableval" = yes; then
11751                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11752                           else
11753                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11754                           fi
11755
11756 else
11757
11758                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11759
11760 fi
11761
11762
11763           eval "$wx_cv_use_taskbaricon"
11764
11765           if test x"$enablestring" = xdisable; then
11766             if test $wxUSE_TASKBARICON = yes; then
11767               result=no
11768             else
11769               result=yes
11770             fi
11771           else
11772             result=$wxUSE_TASKBARICON
11773           fi
11774
11775           { echo "$as_me:$LINENO: result: $result" >&5
11776 echo "${ECHO_T}$result" >&6; }
11777
11778
11779           enablestring=
11780           defaultval=$wxUSE_ALL_FEATURES
11781           if test -z "$defaultval"; then
11782               if test x"$enablestring" = xdisable; then
11783                   defaultval=yes
11784               else
11785                   defaultval=no
11786               fi
11787           fi
11788
11789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11790 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11791           # Check whether --enable-textctrl was given.
11792 if test "${enable_textctrl+set}" = set; then
11793   enableval=$enable_textctrl;
11794                           if test "$enableval" = yes; then
11795                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11796                           else
11797                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11798                           fi
11799
11800 else
11801
11802                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11803
11804 fi
11805
11806
11807           eval "$wx_cv_use_textctrl"
11808
11809           if test x"$enablestring" = xdisable; then
11810             if test $wxUSE_TEXTCTRL = yes; then
11811               result=no
11812             else
11813               result=yes
11814             fi
11815           else
11816             result=$wxUSE_TEXTCTRL
11817           fi
11818
11819           { echo "$as_me:$LINENO: result: $result" >&5
11820 echo "${ECHO_T}$result" >&6; }
11821
11822
11823           enablestring=
11824           defaultval=$wxUSE_ALL_FEATURES
11825           if test -z "$defaultval"; then
11826               if test x"$enablestring" = xdisable; then
11827                   defaultval=yes
11828               else
11829                   defaultval=no
11830               fi
11831           fi
11832
11833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11834 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11835           # Check whether --enable-togglebtn was given.
11836 if test "${enable_togglebtn+set}" = set; then
11837   enableval=$enable_togglebtn;
11838                           if test "$enableval" = yes; then
11839                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11840                           else
11841                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11842                           fi
11843
11844 else
11845
11846                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11847
11848 fi
11849
11850
11851           eval "$wx_cv_use_togglebtn"
11852
11853           if test x"$enablestring" = xdisable; then
11854             if test $wxUSE_TOGGLEBTN = yes; then
11855               result=no
11856             else
11857               result=yes
11858             fi
11859           else
11860             result=$wxUSE_TOGGLEBTN
11861           fi
11862
11863           { echo "$as_me:$LINENO: result: $result" >&5
11864 echo "${ECHO_T}$result" >&6; }
11865
11866
11867           enablestring=
11868           defaultval=$wxUSE_ALL_FEATURES
11869           if test -z "$defaultval"; then
11870               if test x"$enablestring" = xdisable; then
11871                   defaultval=yes
11872               else
11873                   defaultval=no
11874               fi
11875           fi
11876
11877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11878 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11879           # Check whether --enable-toolbar was given.
11880 if test "${enable_toolbar+set}" = set; then
11881   enableval=$enable_toolbar;
11882                           if test "$enableval" = yes; then
11883                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11884                           else
11885                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11886                           fi
11887
11888 else
11889
11890                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11891
11892 fi
11893
11894
11895           eval "$wx_cv_use_toolbar"
11896
11897           if test x"$enablestring" = xdisable; then
11898             if test $wxUSE_TOOLBAR = yes; then
11899               result=no
11900             else
11901               result=yes
11902             fi
11903           else
11904             result=$wxUSE_TOOLBAR
11905           fi
11906
11907           { echo "$as_me:$LINENO: result: $result" >&5
11908 echo "${ECHO_T}$result" >&6; }
11909
11910
11911           enablestring=
11912           defaultval=$wxUSE_ALL_FEATURES
11913           if test -z "$defaultval"; then
11914               if test x"$enablestring" = xdisable; then
11915                   defaultval=yes
11916               else
11917                   defaultval=no
11918               fi
11919           fi
11920
11921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11922 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11923           # Check whether --enable-tbarnative was given.
11924 if test "${enable_tbarnative+set}" = set; then
11925   enableval=$enable_tbarnative;
11926                           if test "$enableval" = yes; then
11927                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11928                           else
11929                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11930                           fi
11931
11932 else
11933
11934                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11935
11936 fi
11937
11938
11939           eval "$wx_cv_use_tbarnative"
11940
11941           if test x"$enablestring" = xdisable; then
11942             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11943               result=no
11944             else
11945               result=yes
11946             fi
11947           else
11948             result=$wxUSE_TOOLBAR_NATIVE
11949           fi
11950
11951           { echo "$as_me:$LINENO: result: $result" >&5
11952 echo "${ECHO_T}$result" >&6; }
11953
11954
11955           enablestring=
11956           defaultval=$wxUSE_ALL_FEATURES
11957           if test -z "$defaultval"; then
11958               if test x"$enablestring" = xdisable; then
11959                   defaultval=yes
11960               else
11961                   defaultval=no
11962               fi
11963           fi
11964
11965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11966 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11967           # Check whether --enable-treebook was given.
11968 if test "${enable_treebook+set}" = set; then
11969   enableval=$enable_treebook;
11970                           if test "$enableval" = yes; then
11971                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11972                           else
11973                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11974                           fi
11975
11976 else
11977
11978                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11979
11980 fi
11981
11982
11983           eval "$wx_cv_use_treebook"
11984
11985           if test x"$enablestring" = xdisable; then
11986             if test $wxUSE_TREEBOOK = yes; then
11987               result=no
11988             else
11989               result=yes
11990             fi
11991           else
11992             result=$wxUSE_TREEBOOK
11993           fi
11994
11995           { echo "$as_me:$LINENO: result: $result" >&5
11996 echo "${ECHO_T}$result" >&6; }
11997
11998
11999           enablestring=
12000           defaultval=$wxUSE_ALL_FEATURES
12001           if test -z "$defaultval"; then
12002               if test x"$enablestring" = xdisable; then
12003                   defaultval=yes
12004               else
12005                   defaultval=no
12006               fi
12007           fi
12008
12009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12010 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12011           # Check whether --enable-toolbook was given.
12012 if test "${enable_toolbook+set}" = set; then
12013   enableval=$enable_toolbook;
12014                           if test "$enableval" = yes; then
12015                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12016                           else
12017                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12018                           fi
12019
12020 else
12021
12022                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12023
12024 fi
12025
12026
12027           eval "$wx_cv_use_toolbook"
12028
12029           if test x"$enablestring" = xdisable; then
12030             if test $wxUSE_TOOLBOOK = yes; then
12031               result=no
12032             else
12033               result=yes
12034             fi
12035           else
12036             result=$wxUSE_TOOLBOOK
12037           fi
12038
12039           { echo "$as_me:$LINENO: result: $result" >&5
12040 echo "${ECHO_T}$result" >&6; }
12041
12042
12043           enablestring=
12044           defaultval=$wxUSE_ALL_FEATURES
12045           if test -z "$defaultval"; then
12046               if test x"$enablestring" = xdisable; then
12047                   defaultval=yes
12048               else
12049                   defaultval=no
12050               fi
12051           fi
12052
12053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12054 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12055           # Check whether --enable-treectrl was given.
12056 if test "${enable_treectrl+set}" = set; then
12057   enableval=$enable_treectrl;
12058                           if test "$enableval" = yes; then
12059                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12060                           else
12061                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12062                           fi
12063
12064 else
12065
12066                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12067
12068 fi
12069
12070
12071           eval "$wx_cv_use_treectrl"
12072
12073           if test x"$enablestring" = xdisable; then
12074             if test $wxUSE_TREECTRL = yes; then
12075               result=no
12076             else
12077               result=yes
12078             fi
12079           else
12080             result=$wxUSE_TREECTRL
12081           fi
12082
12083           { echo "$as_me:$LINENO: result: $result" >&5
12084 echo "${ECHO_T}$result" >&6; }
12085
12086
12087           enablestring=
12088           defaultval=$wxUSE_ALL_FEATURES
12089           if test -z "$defaultval"; then
12090               if test x"$enablestring" = xdisable; then
12091                   defaultval=yes
12092               else
12093                   defaultval=no
12094               fi
12095           fi
12096
12097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12098 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12099           # Check whether --enable-tipwindow was given.
12100 if test "${enable_tipwindow+set}" = set; then
12101   enableval=$enable_tipwindow;
12102                           if test "$enableval" = yes; then
12103                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12104                           else
12105                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12106                           fi
12107
12108 else
12109
12110                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12111
12112 fi
12113
12114
12115           eval "$wx_cv_use_tipwindow"
12116
12117           if test x"$enablestring" = xdisable; then
12118             if test $wxUSE_TIPWINDOW = yes; then
12119               result=no
12120             else
12121               result=yes
12122             fi
12123           else
12124             result=$wxUSE_TIPWINDOW
12125           fi
12126
12127           { echo "$as_me:$LINENO: result: $result" >&5
12128 echo "${ECHO_T}$result" >&6; }
12129
12130
12131           enablestring=
12132           defaultval=$wxUSE_ALL_FEATURES
12133           if test -z "$defaultval"; then
12134               if test x"$enablestring" = xdisable; then
12135                   defaultval=yes
12136               else
12137                   defaultval=no
12138               fi
12139           fi
12140
12141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12142 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12143           # Check whether --enable-popupwin was given.
12144 if test "${enable_popupwin+set}" = set; then
12145   enableval=$enable_popupwin;
12146                           if test "$enableval" = yes; then
12147                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12148                           else
12149                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12150                           fi
12151
12152 else
12153
12154                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12155
12156 fi
12157
12158
12159           eval "$wx_cv_use_popupwin"
12160
12161           if test x"$enablestring" = xdisable; then
12162             if test $wxUSE_POPUPWIN = yes; then
12163               result=no
12164             else
12165               result=yes
12166             fi
12167           else
12168             result=$wxUSE_POPUPWIN
12169           fi
12170
12171           { echo "$as_me:$LINENO: result: $result" >&5
12172 echo "${ECHO_T}$result" >&6; }
12173
12174
12175
12176
12177           enablestring=
12178           defaultval=$wxUSE_ALL_FEATURES
12179           if test -z "$defaultval"; then
12180               if test x"$enablestring" = xdisable; then
12181                   defaultval=yes
12182               else
12183                   defaultval=no
12184               fi
12185           fi
12186
12187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12188 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12189           # Check whether --enable-commondlg was given.
12190 if test "${enable_commondlg+set}" = set; then
12191   enableval=$enable_commondlg;
12192                           if test "$enableval" = yes; then
12193                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12194                           else
12195                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12196                           fi
12197
12198 else
12199
12200                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12201
12202 fi
12203
12204
12205           eval "$wx_cv_use_commondlg"
12206
12207           if test x"$enablestring" = xdisable; then
12208             if test $wxUSE_COMMONDLGS = yes; then
12209               result=no
12210             else
12211               result=yes
12212             fi
12213           else
12214             result=$wxUSE_COMMONDLGS
12215           fi
12216
12217           { echo "$as_me:$LINENO: result: $result" >&5
12218 echo "${ECHO_T}$result" >&6; }
12219
12220
12221           enablestring=
12222           defaultval=$wxUSE_ALL_FEATURES
12223           if test -z "$defaultval"; then
12224               if test x"$enablestring" = xdisable; then
12225                   defaultval=yes
12226               else
12227                   defaultval=no
12228               fi
12229           fi
12230
12231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12232 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12233           # Check whether --enable-aboutdlg was given.
12234 if test "${enable_aboutdlg+set}" = set; then
12235   enableval=$enable_aboutdlg;
12236                           if test "$enableval" = yes; then
12237                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12238                           else
12239                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12240                           fi
12241
12242 else
12243
12244                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12245
12246 fi
12247
12248
12249           eval "$wx_cv_use_aboutdlg"
12250
12251           if test x"$enablestring" = xdisable; then
12252             if test $wxUSE_ABOUTDLG = yes; then
12253               result=no
12254             else
12255               result=yes
12256             fi
12257           else
12258             result=$wxUSE_ABOUTDLG
12259           fi
12260
12261           { echo "$as_me:$LINENO: result: $result" >&5
12262 echo "${ECHO_T}$result" >&6; }
12263
12264
12265           enablestring=
12266           defaultval=$wxUSE_ALL_FEATURES
12267           if test -z "$defaultval"; then
12268               if test x"$enablestring" = xdisable; then
12269                   defaultval=yes
12270               else
12271                   defaultval=no
12272               fi
12273           fi
12274
12275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12276 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12277           # Check whether --enable-choicedlg was given.
12278 if test "${enable_choicedlg+set}" = set; then
12279   enableval=$enable_choicedlg;
12280                           if test "$enableval" = yes; then
12281                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12282                           else
12283                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12284                           fi
12285
12286 else
12287
12288                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12289
12290 fi
12291
12292
12293           eval "$wx_cv_use_choicedlg"
12294
12295           if test x"$enablestring" = xdisable; then
12296             if test $wxUSE_CHOICEDLG = yes; then
12297               result=no
12298             else
12299               result=yes
12300             fi
12301           else
12302             result=$wxUSE_CHOICEDLG
12303           fi
12304
12305           { echo "$as_me:$LINENO: result: $result" >&5
12306 echo "${ECHO_T}$result" >&6; }
12307
12308
12309           enablestring=
12310           defaultval=$wxUSE_ALL_FEATURES
12311           if test -z "$defaultval"; then
12312               if test x"$enablestring" = xdisable; then
12313                   defaultval=yes
12314               else
12315                   defaultval=no
12316               fi
12317           fi
12318
12319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12320 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12321           # Check whether --enable-coldlg was given.
12322 if test "${enable_coldlg+set}" = set; then
12323   enableval=$enable_coldlg;
12324                           if test "$enableval" = yes; then
12325                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12326                           else
12327                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12328                           fi
12329
12330 else
12331
12332                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12333
12334 fi
12335
12336
12337           eval "$wx_cv_use_coldlg"
12338
12339           if test x"$enablestring" = xdisable; then
12340             if test $wxUSE_COLOURDLG = yes; then
12341               result=no
12342             else
12343               result=yes
12344             fi
12345           else
12346             result=$wxUSE_COLOURDLG
12347           fi
12348
12349           { echo "$as_me:$LINENO: result: $result" >&5
12350 echo "${ECHO_T}$result" >&6; }
12351
12352
12353           enablestring=
12354           defaultval=$wxUSE_ALL_FEATURES
12355           if test -z "$defaultval"; then
12356               if test x"$enablestring" = xdisable; then
12357                   defaultval=yes
12358               else
12359                   defaultval=no
12360               fi
12361           fi
12362
12363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12364 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12365           # Check whether --enable-filedlg was given.
12366 if test "${enable_filedlg+set}" = set; then
12367   enableval=$enable_filedlg;
12368                           if test "$enableval" = yes; then
12369                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12370                           else
12371                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12372                           fi
12373
12374 else
12375
12376                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12377
12378 fi
12379
12380
12381           eval "$wx_cv_use_filedlg"
12382
12383           if test x"$enablestring" = xdisable; then
12384             if test $wxUSE_FILEDLG = yes; then
12385               result=no
12386             else
12387               result=yes
12388             fi
12389           else
12390             result=$wxUSE_FILEDLG
12391           fi
12392
12393           { echo "$as_me:$LINENO: result: $result" >&5
12394 echo "${ECHO_T}$result" >&6; }
12395
12396
12397           enablestring=
12398           defaultval=$wxUSE_ALL_FEATURES
12399           if test -z "$defaultval"; then
12400               if test x"$enablestring" = xdisable; then
12401                   defaultval=yes
12402               else
12403                   defaultval=no
12404               fi
12405           fi
12406
12407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12408 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12409           # Check whether --enable-finddlg was given.
12410 if test "${enable_finddlg+set}" = set; then
12411   enableval=$enable_finddlg;
12412                           if test "$enableval" = yes; then
12413                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12414                           else
12415                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12416                           fi
12417
12418 else
12419
12420                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12421
12422 fi
12423
12424
12425           eval "$wx_cv_use_finddlg"
12426
12427           if test x"$enablestring" = xdisable; then
12428             if test $wxUSE_FINDREPLDLG = yes; then
12429               result=no
12430             else
12431               result=yes
12432             fi
12433           else
12434             result=$wxUSE_FINDREPLDLG
12435           fi
12436
12437           { echo "$as_me:$LINENO: result: $result" >&5
12438 echo "${ECHO_T}$result" >&6; }
12439
12440
12441           enablestring=
12442           defaultval=$wxUSE_ALL_FEATURES
12443           if test -z "$defaultval"; then
12444               if test x"$enablestring" = xdisable; then
12445                   defaultval=yes
12446               else
12447                   defaultval=no
12448               fi
12449           fi
12450
12451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12452 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12453           # Check whether --enable-fontdlg was given.
12454 if test "${enable_fontdlg+set}" = set; then
12455   enableval=$enable_fontdlg;
12456                           if test "$enableval" = yes; then
12457                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12458                           else
12459                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12460                           fi
12461
12462 else
12463
12464                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12465
12466 fi
12467
12468
12469           eval "$wx_cv_use_fontdlg"
12470
12471           if test x"$enablestring" = xdisable; then
12472             if test $wxUSE_FONTDLG = yes; then
12473               result=no
12474             else
12475               result=yes
12476             fi
12477           else
12478             result=$wxUSE_FONTDLG
12479           fi
12480
12481           { echo "$as_me:$LINENO: result: $result" >&5
12482 echo "${ECHO_T}$result" >&6; }
12483
12484
12485           enablestring=
12486           defaultval=$wxUSE_ALL_FEATURES
12487           if test -z "$defaultval"; then
12488               if test x"$enablestring" = xdisable; then
12489                   defaultval=yes
12490               else
12491                   defaultval=no
12492               fi
12493           fi
12494
12495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12496 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12497           # Check whether --enable-dirdlg was given.
12498 if test "${enable_dirdlg+set}" = set; then
12499   enableval=$enable_dirdlg;
12500                           if test "$enableval" = yes; then
12501                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12502                           else
12503                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12504                           fi
12505
12506 else
12507
12508                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12509
12510 fi
12511
12512
12513           eval "$wx_cv_use_dirdlg"
12514
12515           if test x"$enablestring" = xdisable; then
12516             if test $wxUSE_DIRDLG = yes; then
12517               result=no
12518             else
12519               result=yes
12520             fi
12521           else
12522             result=$wxUSE_DIRDLG
12523           fi
12524
12525           { echo "$as_me:$LINENO: result: $result" >&5
12526 echo "${ECHO_T}$result" >&6; }
12527
12528
12529           enablestring=
12530           defaultval=$wxUSE_ALL_FEATURES
12531           if test -z "$defaultval"; then
12532               if test x"$enablestring" = xdisable; then
12533                   defaultval=yes
12534               else
12535                   defaultval=no
12536               fi
12537           fi
12538
12539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12540 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12541           # Check whether --enable-msgdlg was given.
12542 if test "${enable_msgdlg+set}" = set; then
12543   enableval=$enable_msgdlg;
12544                           if test "$enableval" = yes; then
12545                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12546                           else
12547                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12548                           fi
12549
12550 else
12551
12552                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12553
12554 fi
12555
12556
12557           eval "$wx_cv_use_msgdlg"
12558
12559           if test x"$enablestring" = xdisable; then
12560             if test $wxUSE_MSGDLG = yes; then
12561               result=no
12562             else
12563               result=yes
12564             fi
12565           else
12566             result=$wxUSE_MSGDLG
12567           fi
12568
12569           { echo "$as_me:$LINENO: result: $result" >&5
12570 echo "${ECHO_T}$result" >&6; }
12571
12572
12573           enablestring=
12574           defaultval=$wxUSE_ALL_FEATURES
12575           if test -z "$defaultval"; then
12576               if test x"$enablestring" = xdisable; then
12577                   defaultval=yes
12578               else
12579                   defaultval=no
12580               fi
12581           fi
12582
12583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12584 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12585           # Check whether --enable-numberdlg was given.
12586 if test "${enable_numberdlg+set}" = set; then
12587   enableval=$enable_numberdlg;
12588                           if test "$enableval" = yes; then
12589                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12590                           else
12591                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12592                           fi
12593
12594 else
12595
12596                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12597
12598 fi
12599
12600
12601           eval "$wx_cv_use_numberdlg"
12602
12603           if test x"$enablestring" = xdisable; then
12604             if test $wxUSE_NUMBERDLG = yes; then
12605               result=no
12606             else
12607               result=yes
12608             fi
12609           else
12610             result=$wxUSE_NUMBERDLG
12611           fi
12612
12613           { echo "$as_me:$LINENO: result: $result" >&5
12614 echo "${ECHO_T}$result" >&6; }
12615
12616
12617           enablestring=
12618           defaultval=$wxUSE_ALL_FEATURES
12619           if test -z "$defaultval"; then
12620               if test x"$enablestring" = xdisable; then
12621                   defaultval=yes
12622               else
12623                   defaultval=no
12624               fi
12625           fi
12626
12627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12628 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12629           # Check whether --enable-splash was given.
12630 if test "${enable_splash+set}" = set; then
12631   enableval=$enable_splash;
12632                           if test "$enableval" = yes; then
12633                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12634                           else
12635                             wx_cv_use_splash='wxUSE_SPLASH=no'
12636                           fi
12637
12638 else
12639
12640                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12641
12642 fi
12643
12644
12645           eval "$wx_cv_use_splash"
12646
12647           if test x"$enablestring" = xdisable; then
12648             if test $wxUSE_SPLASH = yes; then
12649               result=no
12650             else
12651               result=yes
12652             fi
12653           else
12654             result=$wxUSE_SPLASH
12655           fi
12656
12657           { echo "$as_me:$LINENO: result: $result" >&5
12658 echo "${ECHO_T}$result" >&6; }
12659
12660
12661           enablestring=
12662           defaultval=$wxUSE_ALL_FEATURES
12663           if test -z "$defaultval"; then
12664               if test x"$enablestring" = xdisable; then
12665                   defaultval=yes
12666               else
12667                   defaultval=no
12668               fi
12669           fi
12670
12671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12672 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12673           # Check whether --enable-textdlg was given.
12674 if test "${enable_textdlg+set}" = set; then
12675   enableval=$enable_textdlg;
12676                           if test "$enableval" = yes; then
12677                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12678                           else
12679                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12680                           fi
12681
12682 else
12683
12684                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12685
12686 fi
12687
12688
12689           eval "$wx_cv_use_textdlg"
12690
12691           if test x"$enablestring" = xdisable; then
12692             if test $wxUSE_TEXTDLG = yes; then
12693               result=no
12694             else
12695               result=yes
12696             fi
12697           else
12698             result=$wxUSE_TEXTDLG
12699           fi
12700
12701           { echo "$as_me:$LINENO: result: $result" >&5
12702 echo "${ECHO_T}$result" >&6; }
12703
12704
12705           enablestring=
12706           defaultval=$wxUSE_ALL_FEATURES
12707           if test -z "$defaultval"; then
12708               if test x"$enablestring" = xdisable; then
12709                   defaultval=yes
12710               else
12711                   defaultval=no
12712               fi
12713           fi
12714
12715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12716 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12717           # Check whether --enable-tipdlg was given.
12718 if test "${enable_tipdlg+set}" = set; then
12719   enableval=$enable_tipdlg;
12720                           if test "$enableval" = yes; then
12721                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12722                           else
12723                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12724                           fi
12725
12726 else
12727
12728                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12729
12730 fi
12731
12732
12733           eval "$wx_cv_use_tipdlg"
12734
12735           if test x"$enablestring" = xdisable; then
12736             if test $wxUSE_STARTUP_TIPS = yes; then
12737               result=no
12738             else
12739               result=yes
12740             fi
12741           else
12742             result=$wxUSE_STARTUP_TIPS
12743           fi
12744
12745           { echo "$as_me:$LINENO: result: $result" >&5
12746 echo "${ECHO_T}$result" >&6; }
12747
12748
12749           enablestring=
12750           defaultval=$wxUSE_ALL_FEATURES
12751           if test -z "$defaultval"; then
12752               if test x"$enablestring" = xdisable; then
12753                   defaultval=yes
12754               else
12755                   defaultval=no
12756               fi
12757           fi
12758
12759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12760 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12761           # Check whether --enable-progressdlg was given.
12762 if test "${enable_progressdlg+set}" = set; then
12763   enableval=$enable_progressdlg;
12764                           if test "$enableval" = yes; then
12765                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12766                           else
12767                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12768                           fi
12769
12770 else
12771
12772                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12773
12774 fi
12775
12776
12777           eval "$wx_cv_use_progressdlg"
12778
12779           if test x"$enablestring" = xdisable; then
12780             if test $wxUSE_PROGRESSDLG = yes; then
12781               result=no
12782             else
12783               result=yes
12784             fi
12785           else
12786             result=$wxUSE_PROGRESSDLG
12787           fi
12788
12789           { echo "$as_me:$LINENO: result: $result" >&5
12790 echo "${ECHO_T}$result" >&6; }
12791
12792
12793           enablestring=
12794           defaultval=$wxUSE_ALL_FEATURES
12795           if test -z "$defaultval"; then
12796               if test x"$enablestring" = xdisable; then
12797                   defaultval=yes
12798               else
12799                   defaultval=no
12800               fi
12801           fi
12802
12803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12804 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12805           # Check whether --enable-wizarddlg was given.
12806 if test "${enable_wizarddlg+set}" = set; then
12807   enableval=$enable_wizarddlg;
12808                           if test "$enableval" = yes; then
12809                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12810                           else
12811                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12812                           fi
12813
12814 else
12815
12816                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12817
12818 fi
12819
12820
12821           eval "$wx_cv_use_wizarddlg"
12822
12823           if test x"$enablestring" = xdisable; then
12824             if test $wxUSE_WIZARDDLG = yes; then
12825               result=no
12826             else
12827               result=yes
12828             fi
12829           else
12830             result=$wxUSE_WIZARDDLG
12831           fi
12832
12833           { echo "$as_me:$LINENO: result: $result" >&5
12834 echo "${ECHO_T}$result" >&6; }
12835
12836
12837
12838
12839           enablestring=
12840           defaultval=$wxUSE_ALL_FEATURES
12841           if test -z "$defaultval"; then
12842               if test x"$enablestring" = xdisable; then
12843                   defaultval=yes
12844               else
12845                   defaultval=no
12846               fi
12847           fi
12848
12849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12850 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12851           # Check whether --enable-menus was given.
12852 if test "${enable_menus+set}" = set; then
12853   enableval=$enable_menus;
12854                           if test "$enableval" = yes; then
12855                             wx_cv_use_menus='wxUSE_MENUS=yes'
12856                           else
12857                             wx_cv_use_menus='wxUSE_MENUS=no'
12858                           fi
12859
12860 else
12861
12862                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12863
12864 fi
12865
12866
12867           eval "$wx_cv_use_menus"
12868
12869           if test x"$enablestring" = xdisable; then
12870             if test $wxUSE_MENUS = yes; then
12871               result=no
12872             else
12873               result=yes
12874             fi
12875           else
12876             result=$wxUSE_MENUS
12877           fi
12878
12879           { echo "$as_me:$LINENO: result: $result" >&5
12880 echo "${ECHO_T}$result" >&6; }
12881
12882
12883           enablestring=
12884           defaultval=$wxUSE_ALL_FEATURES
12885           if test -z "$defaultval"; then
12886               if test x"$enablestring" = xdisable; then
12887                   defaultval=yes
12888               else
12889                   defaultval=no
12890               fi
12891           fi
12892
12893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12894 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12895           # Check whether --enable-miniframe was given.
12896 if test "${enable_miniframe+set}" = set; then
12897   enableval=$enable_miniframe;
12898                           if test "$enableval" = yes; then
12899                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12900                           else
12901                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12902                           fi
12903
12904 else
12905
12906                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12907
12908 fi
12909
12910
12911           eval "$wx_cv_use_miniframe"
12912
12913           if test x"$enablestring" = xdisable; then
12914             if test $wxUSE_MINIFRAME = yes; then
12915               result=no
12916             else
12917               result=yes
12918             fi
12919           else
12920             result=$wxUSE_MINIFRAME
12921           fi
12922
12923           { echo "$as_me:$LINENO: result: $result" >&5
12924 echo "${ECHO_T}$result" >&6; }
12925
12926
12927           enablestring=
12928           defaultval=$wxUSE_ALL_FEATURES
12929           if test -z "$defaultval"; then
12930               if test x"$enablestring" = xdisable; then
12931                   defaultval=yes
12932               else
12933                   defaultval=no
12934               fi
12935           fi
12936
12937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12938 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12939           # Check whether --enable-tooltips was given.
12940 if test "${enable_tooltips+set}" = set; then
12941   enableval=$enable_tooltips;
12942                           if test "$enableval" = yes; then
12943                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12944                           else
12945                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12946                           fi
12947
12948 else
12949
12950                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12951
12952 fi
12953
12954
12955           eval "$wx_cv_use_tooltips"
12956
12957           if test x"$enablestring" = xdisable; then
12958             if test $wxUSE_TOOLTIPS = yes; then
12959               result=no
12960             else
12961               result=yes
12962             fi
12963           else
12964             result=$wxUSE_TOOLTIPS
12965           fi
12966
12967           { echo "$as_me:$LINENO: result: $result" >&5
12968 echo "${ECHO_T}$result" >&6; }
12969
12970
12971           enablestring=
12972           defaultval=$wxUSE_ALL_FEATURES
12973           if test -z "$defaultval"; then
12974               if test x"$enablestring" = xdisable; then
12975                   defaultval=yes
12976               else
12977                   defaultval=no
12978               fi
12979           fi
12980
12981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12982 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12983           # Check whether --enable-splines was given.
12984 if test "${enable_splines+set}" = set; then
12985   enableval=$enable_splines;
12986                           if test "$enableval" = yes; then
12987                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12988                           else
12989                             wx_cv_use_splines='wxUSE_SPLINES=no'
12990                           fi
12991
12992 else
12993
12994                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12995
12996 fi
12997
12998
12999           eval "$wx_cv_use_splines"
13000
13001           if test x"$enablestring" = xdisable; then
13002             if test $wxUSE_SPLINES = yes; then
13003               result=no
13004             else
13005               result=yes
13006             fi
13007           else
13008             result=$wxUSE_SPLINES
13009           fi
13010
13011           { echo "$as_me:$LINENO: result: $result" >&5
13012 echo "${ECHO_T}$result" >&6; }
13013
13014
13015           enablestring=
13016           defaultval=$wxUSE_ALL_FEATURES
13017           if test -z "$defaultval"; then
13018               if test x"$enablestring" = xdisable; then
13019                   defaultval=yes
13020               else
13021                   defaultval=no
13022               fi
13023           fi
13024
13025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13026 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13027           # Check whether --enable-mousewheel was given.
13028 if test "${enable_mousewheel+set}" = set; then
13029   enableval=$enable_mousewheel;
13030                           if test "$enableval" = yes; then
13031                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13032                           else
13033                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13034                           fi
13035
13036 else
13037
13038                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13039
13040 fi
13041
13042
13043           eval "$wx_cv_use_mousewheel"
13044
13045           if test x"$enablestring" = xdisable; then
13046             if test $wxUSE_MOUSEWHEEL = yes; then
13047               result=no
13048             else
13049               result=yes
13050             fi
13051           else
13052             result=$wxUSE_MOUSEWHEEL
13053           fi
13054
13055           { echo "$as_me:$LINENO: result: $result" >&5
13056 echo "${ECHO_T}$result" >&6; }
13057
13058
13059           enablestring=
13060           defaultval=$wxUSE_ALL_FEATURES
13061           if test -z "$defaultval"; then
13062               if test x"$enablestring" = xdisable; then
13063                   defaultval=yes
13064               else
13065                   defaultval=no
13066               fi
13067           fi
13068
13069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13070 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13071           # Check whether --enable-validators was given.
13072 if test "${enable_validators+set}" = set; then
13073   enableval=$enable_validators;
13074                           if test "$enableval" = yes; then
13075                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13076                           else
13077                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13078                           fi
13079
13080 else
13081
13082                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13083
13084 fi
13085
13086
13087           eval "$wx_cv_use_validators"
13088
13089           if test x"$enablestring" = xdisable; then
13090             if test $wxUSE_VALIDATORS = yes; then
13091               result=no
13092             else
13093               result=yes
13094             fi
13095           else
13096             result=$wxUSE_VALIDATORS
13097           fi
13098
13099           { echo "$as_me:$LINENO: result: $result" >&5
13100 echo "${ECHO_T}$result" >&6; }
13101
13102
13103           enablestring=
13104           defaultval=$wxUSE_ALL_FEATURES
13105           if test -z "$defaultval"; then
13106               if test x"$enablestring" = xdisable; then
13107                   defaultval=yes
13108               else
13109                   defaultval=no
13110               fi
13111           fi
13112
13113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13114 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13115           # Check whether --enable-busyinfo was given.
13116 if test "${enable_busyinfo+set}" = set; then
13117   enableval=$enable_busyinfo;
13118                           if test "$enableval" = yes; then
13119                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13120                           else
13121                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13122                           fi
13123
13124 else
13125
13126                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13127
13128 fi
13129
13130
13131           eval "$wx_cv_use_busyinfo"
13132
13133           if test x"$enablestring" = xdisable; then
13134             if test $wxUSE_BUSYINFO = yes; then
13135               result=no
13136             else
13137               result=yes
13138             fi
13139           else
13140             result=$wxUSE_BUSYINFO
13141           fi
13142
13143           { echo "$as_me:$LINENO: result: $result" >&5
13144 echo "${ECHO_T}$result" >&6; }
13145
13146
13147           enablestring=
13148           defaultval=$wxUSE_ALL_FEATURES
13149           if test -z "$defaultval"; then
13150               if test x"$enablestring" = xdisable; then
13151                   defaultval=yes
13152               else
13153                   defaultval=no
13154               fi
13155           fi
13156
13157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13158 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13159           # Check whether --enable-joystick was given.
13160 if test "${enable_joystick+set}" = set; then
13161   enableval=$enable_joystick;
13162                           if test "$enableval" = yes; then
13163                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13164                           else
13165                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13166                           fi
13167
13168 else
13169
13170                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13171
13172 fi
13173
13174
13175           eval "$wx_cv_use_joystick"
13176
13177           if test x"$enablestring" = xdisable; then
13178             if test $wxUSE_JOYSTICK = yes; then
13179               result=no
13180             else
13181               result=yes
13182             fi
13183           else
13184             result=$wxUSE_JOYSTICK
13185           fi
13186
13187           { echo "$as_me:$LINENO: result: $result" >&5
13188 echo "${ECHO_T}$result" >&6; }
13189
13190
13191           enablestring=
13192           defaultval=$wxUSE_ALL_FEATURES
13193           if test -z "$defaultval"; then
13194               if test x"$enablestring" = xdisable; then
13195                   defaultval=yes
13196               else
13197                   defaultval=no
13198               fi
13199           fi
13200
13201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13202 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13203           # Check whether --enable-metafile was given.
13204 if test "${enable_metafile+set}" = set; then
13205   enableval=$enable_metafile;
13206                           if test "$enableval" = yes; then
13207                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13208                           else
13209                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13210                           fi
13211
13212 else
13213
13214                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13215
13216 fi
13217
13218
13219           eval "$wx_cv_use_metafile"
13220
13221           if test x"$enablestring" = xdisable; then
13222             if test $wxUSE_METAFILE = yes; then
13223               result=no
13224             else
13225               result=yes
13226             fi
13227           else
13228             result=$wxUSE_METAFILE
13229           fi
13230
13231           { echo "$as_me:$LINENO: result: $result" >&5
13232 echo "${ECHO_T}$result" >&6; }
13233
13234
13235           enablestring=
13236           defaultval=$wxUSE_ALL_FEATURES
13237           if test -z "$defaultval"; then
13238               if test x"$enablestring" = xdisable; then
13239                   defaultval=yes
13240               else
13241                   defaultval=no
13242               fi
13243           fi
13244
13245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13246 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13247           # Check whether --enable-dragimage was given.
13248 if test "${enable_dragimage+set}" = set; then
13249   enableval=$enable_dragimage;
13250                           if test "$enableval" = yes; then
13251                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13252                           else
13253                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13254                           fi
13255
13256 else
13257
13258                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13259
13260 fi
13261
13262
13263           eval "$wx_cv_use_dragimage"
13264
13265           if test x"$enablestring" = xdisable; then
13266             if test $wxUSE_DRAGIMAGE = yes; then
13267               result=no
13268             else
13269               result=yes
13270             fi
13271           else
13272             result=$wxUSE_DRAGIMAGE
13273           fi
13274
13275           { echo "$as_me:$LINENO: result: $result" >&5
13276 echo "${ECHO_T}$result" >&6; }
13277
13278
13279           enablestring=
13280           defaultval=$wxUSE_ALL_FEATURES
13281           if test -z "$defaultval"; then
13282               if test x"$enablestring" = xdisable; then
13283                   defaultval=yes
13284               else
13285                   defaultval=no
13286               fi
13287           fi
13288
13289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13290 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13291           # Check whether --enable-accessibility was given.
13292 if test "${enable_accessibility+set}" = set; then
13293   enableval=$enable_accessibility;
13294                           if test "$enableval" = yes; then
13295                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13296                           else
13297                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13298                           fi
13299
13300 else
13301
13302                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13303
13304 fi
13305
13306
13307           eval "$wx_cv_use_accessibility"
13308
13309           if test x"$enablestring" = xdisable; then
13310             if test $wxUSE_ACCESSIBILITY = yes; then
13311               result=no
13312             else
13313               result=yes
13314             fi
13315           else
13316             result=$wxUSE_ACCESSIBILITY
13317           fi
13318
13319           { echo "$as_me:$LINENO: result: $result" >&5
13320 echo "${ECHO_T}$result" >&6; }
13321
13322
13323
13324
13325           enablestring=
13326           defaultval=$wxUSE_ALL_FEATURES
13327           if test -z "$defaultval"; then
13328               if test x"$enablestring" = xdisable; then
13329                   defaultval=yes
13330               else
13331                   defaultval=no
13332               fi
13333           fi
13334
13335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13336 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13337           # Check whether --enable-palette was given.
13338 if test "${enable_palette+set}" = set; then
13339   enableval=$enable_palette;
13340                           if test "$enableval" = yes; then
13341                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13342                           else
13343                             wx_cv_use_palette='wxUSE_PALETTE=no'
13344                           fi
13345
13346 else
13347
13348                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13349
13350 fi
13351
13352
13353           eval "$wx_cv_use_palette"
13354
13355           if test x"$enablestring" = xdisable; then
13356             if test $wxUSE_PALETTE = yes; then
13357               result=no
13358             else
13359               result=yes
13360             fi
13361           else
13362             result=$wxUSE_PALETTE
13363           fi
13364
13365           { echo "$as_me:$LINENO: result: $result" >&5
13366 echo "${ECHO_T}$result" >&6; }
13367
13368
13369           enablestring=
13370           defaultval=$wxUSE_ALL_FEATURES
13371           if test -z "$defaultval"; then
13372               if test x"$enablestring" = xdisable; then
13373                   defaultval=yes
13374               else
13375                   defaultval=no
13376               fi
13377           fi
13378
13379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13380 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13381           # Check whether --enable-image was given.
13382 if test "${enable_image+set}" = set; then
13383   enableval=$enable_image;
13384                           if test "$enableval" = yes; then
13385                             wx_cv_use_image='wxUSE_IMAGE=yes'
13386                           else
13387                             wx_cv_use_image='wxUSE_IMAGE=no'
13388                           fi
13389
13390 else
13391
13392                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13393
13394 fi
13395
13396
13397           eval "$wx_cv_use_image"
13398
13399           if test x"$enablestring" = xdisable; then
13400             if test $wxUSE_IMAGE = yes; then
13401               result=no
13402             else
13403               result=yes
13404             fi
13405           else
13406             result=$wxUSE_IMAGE
13407           fi
13408
13409           { echo "$as_me:$LINENO: result: $result" >&5
13410 echo "${ECHO_T}$result" >&6; }
13411
13412
13413           enablestring=
13414           defaultval=$wxUSE_ALL_FEATURES
13415           if test -z "$defaultval"; then
13416               if test x"$enablestring" = xdisable; then
13417                   defaultval=yes
13418               else
13419                   defaultval=no
13420               fi
13421           fi
13422
13423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13424 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13425           # Check whether --enable-gif was given.
13426 if test "${enable_gif+set}" = set; then
13427   enableval=$enable_gif;
13428                           if test "$enableval" = yes; then
13429                             wx_cv_use_gif='wxUSE_GIF=yes'
13430                           else
13431                             wx_cv_use_gif='wxUSE_GIF=no'
13432                           fi
13433
13434 else
13435
13436                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13437
13438 fi
13439
13440
13441           eval "$wx_cv_use_gif"
13442
13443           if test x"$enablestring" = xdisable; then
13444             if test $wxUSE_GIF = yes; then
13445               result=no
13446             else
13447               result=yes
13448             fi
13449           else
13450             result=$wxUSE_GIF
13451           fi
13452
13453           { echo "$as_me:$LINENO: result: $result" >&5
13454 echo "${ECHO_T}$result" >&6; }
13455
13456
13457           enablestring=
13458           defaultval=$wxUSE_ALL_FEATURES
13459           if test -z "$defaultval"; then
13460               if test x"$enablestring" = xdisable; then
13461                   defaultval=yes
13462               else
13463                   defaultval=no
13464               fi
13465           fi
13466
13467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13468 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13469           # Check whether --enable-pcx was given.
13470 if test "${enable_pcx+set}" = set; then
13471   enableval=$enable_pcx;
13472                           if test "$enableval" = yes; then
13473                             wx_cv_use_pcx='wxUSE_PCX=yes'
13474                           else
13475                             wx_cv_use_pcx='wxUSE_PCX=no'
13476                           fi
13477
13478 else
13479
13480                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13481
13482 fi
13483
13484
13485           eval "$wx_cv_use_pcx"
13486
13487           if test x"$enablestring" = xdisable; then
13488             if test $wxUSE_PCX = yes; then
13489               result=no
13490             else
13491               result=yes
13492             fi
13493           else
13494             result=$wxUSE_PCX
13495           fi
13496
13497           { echo "$as_me:$LINENO: result: $result" >&5
13498 echo "${ECHO_T}$result" >&6; }
13499
13500
13501           enablestring=
13502           defaultval=$wxUSE_ALL_FEATURES
13503           if test -z "$defaultval"; then
13504               if test x"$enablestring" = xdisable; then
13505                   defaultval=yes
13506               else
13507                   defaultval=no
13508               fi
13509           fi
13510
13511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13512 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13513           # Check whether --enable-tga was given.
13514 if test "${enable_tga+set}" = set; then
13515   enableval=$enable_tga;
13516                           if test "$enableval" = yes; then
13517                             wx_cv_use_tga='wxUSE_TGA=yes'
13518                           else
13519                             wx_cv_use_tga='wxUSE_TGA=no'
13520                           fi
13521
13522 else
13523
13524                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13525
13526 fi
13527
13528
13529           eval "$wx_cv_use_tga"
13530
13531           if test x"$enablestring" = xdisable; then
13532             if test $wxUSE_TGA = yes; then
13533               result=no
13534             else
13535               result=yes
13536             fi
13537           else
13538             result=$wxUSE_TGA
13539           fi
13540
13541           { echo "$as_me:$LINENO: result: $result" >&5
13542 echo "${ECHO_T}$result" >&6; }
13543
13544
13545           enablestring=
13546           defaultval=$wxUSE_ALL_FEATURES
13547           if test -z "$defaultval"; then
13548               if test x"$enablestring" = xdisable; then
13549                   defaultval=yes
13550               else
13551                   defaultval=no
13552               fi
13553           fi
13554
13555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13556 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13557           # Check whether --enable-iff was given.
13558 if test "${enable_iff+set}" = set; then
13559   enableval=$enable_iff;
13560                           if test "$enableval" = yes; then
13561                             wx_cv_use_iff='wxUSE_IFF=yes'
13562                           else
13563                             wx_cv_use_iff='wxUSE_IFF=no'
13564                           fi
13565
13566 else
13567
13568                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13569
13570 fi
13571
13572
13573           eval "$wx_cv_use_iff"
13574
13575           if test x"$enablestring" = xdisable; then
13576             if test $wxUSE_IFF = yes; then
13577               result=no
13578             else
13579               result=yes
13580             fi
13581           else
13582             result=$wxUSE_IFF
13583           fi
13584
13585           { echo "$as_me:$LINENO: result: $result" >&5
13586 echo "${ECHO_T}$result" >&6; }
13587
13588
13589           enablestring=
13590           defaultval=$wxUSE_ALL_FEATURES
13591           if test -z "$defaultval"; then
13592               if test x"$enablestring" = xdisable; then
13593                   defaultval=yes
13594               else
13595                   defaultval=no
13596               fi
13597           fi
13598
13599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13600 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13601           # Check whether --enable-pnm was given.
13602 if test "${enable_pnm+set}" = set; then
13603   enableval=$enable_pnm;
13604                           if test "$enableval" = yes; then
13605                             wx_cv_use_pnm='wxUSE_PNM=yes'
13606                           else
13607                             wx_cv_use_pnm='wxUSE_PNM=no'
13608                           fi
13609
13610 else
13611
13612                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13613
13614 fi
13615
13616
13617           eval "$wx_cv_use_pnm"
13618
13619           if test x"$enablestring" = xdisable; then
13620             if test $wxUSE_PNM = yes; then
13621               result=no
13622             else
13623               result=yes
13624             fi
13625           else
13626             result=$wxUSE_PNM
13627           fi
13628
13629           { echo "$as_me:$LINENO: result: $result" >&5
13630 echo "${ECHO_T}$result" >&6; }
13631
13632
13633           enablestring=
13634           defaultval=$wxUSE_ALL_FEATURES
13635           if test -z "$defaultval"; then
13636               if test x"$enablestring" = xdisable; then
13637                   defaultval=yes
13638               else
13639                   defaultval=no
13640               fi
13641           fi
13642
13643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13644 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13645           # Check whether --enable-xpm was given.
13646 if test "${enable_xpm+set}" = set; then
13647   enableval=$enable_xpm;
13648                           if test "$enableval" = yes; then
13649                             wx_cv_use_xpm='wxUSE_XPM=yes'
13650                           else
13651                             wx_cv_use_xpm='wxUSE_XPM=no'
13652                           fi
13653
13654 else
13655
13656                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13657
13658 fi
13659
13660
13661           eval "$wx_cv_use_xpm"
13662
13663           if test x"$enablestring" = xdisable; then
13664             if test $wxUSE_XPM = yes; then
13665               result=no
13666             else
13667               result=yes
13668             fi
13669           else
13670             result=$wxUSE_XPM
13671           fi
13672
13673           { echo "$as_me:$LINENO: result: $result" >&5
13674 echo "${ECHO_T}$result" >&6; }
13675
13676
13677           enablestring=
13678           defaultval=$wxUSE_ALL_FEATURES
13679           if test -z "$defaultval"; then
13680               if test x"$enablestring" = xdisable; then
13681                   defaultval=yes
13682               else
13683                   defaultval=no
13684               fi
13685           fi
13686
13687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13688 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13689           # Check whether --enable-ico_cur was given.
13690 if test "${enable_ico_cur+set}" = set; then
13691   enableval=$enable_ico_cur;
13692                           if test "$enableval" = yes; then
13693                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13694                           else
13695                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13696                           fi
13697
13698 else
13699
13700                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13701
13702 fi
13703
13704
13705           eval "$wx_cv_use_ico_cur"
13706
13707           if test x"$enablestring" = xdisable; then
13708             if test $wxUSE_ICO_CUR = yes; then
13709               result=no
13710             else
13711               result=yes
13712             fi
13713           else
13714             result=$wxUSE_ICO_CUR
13715           fi
13716
13717           { echo "$as_me:$LINENO: result: $result" >&5
13718 echo "${ECHO_T}$result" >&6; }
13719
13720
13721
13722
13723           enablestring=
13724           defaultval=$wxUSE_ALL_FEATURES
13725           if test -z "$defaultval"; then
13726               if test x"$enablestring" = xdisable; then
13727                   defaultval=yes
13728               else
13729                   defaultval=no
13730               fi
13731           fi
13732
13733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13734 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13735           # Check whether --enable-dccache was given.
13736 if test "${enable_dccache+set}" = set; then
13737   enableval=$enable_dccache;
13738                           if test "$enableval" = yes; then
13739                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13740                           else
13741                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13742                           fi
13743
13744 else
13745
13746                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13747
13748 fi
13749
13750
13751           eval "$wx_cv_use_dccache"
13752
13753           if test x"$enablestring" = xdisable; then
13754             if test $wxUSE_DC_CACHEING = yes; then
13755               result=no
13756             else
13757               result=yes
13758             fi
13759           else
13760             result=$wxUSE_DC_CACHEING
13761           fi
13762
13763           { echo "$as_me:$LINENO: result: $result" >&5
13764 echo "${ECHO_T}$result" >&6; }
13765
13766
13767           enablestring=
13768           defaultval=$wxUSE_ALL_FEATURES
13769           if test -z "$defaultval"; then
13770               if test x"$enablestring" = xdisable; then
13771                   defaultval=yes
13772               else
13773                   defaultval=no
13774               fi
13775           fi
13776
13777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13778 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13779           # Check whether --enable-ps-in-msw was given.
13780 if test "${enable_ps_in_msw+set}" = set; then
13781   enableval=$enable_ps_in_msw;
13782                           if test "$enableval" = yes; then
13783                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13784                           else
13785                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13786                           fi
13787
13788 else
13789
13790                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13791
13792 fi
13793
13794
13795           eval "$wx_cv_use_ps_in_msw"
13796
13797           if test x"$enablestring" = xdisable; then
13798             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13799               result=no
13800             else
13801               result=yes
13802             fi
13803           else
13804             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13805           fi
13806
13807           { echo "$as_me:$LINENO: result: $result" >&5
13808 echo "${ECHO_T}$result" >&6; }
13809
13810
13811           enablestring=
13812           defaultval=$wxUSE_ALL_FEATURES
13813           if test -z "$defaultval"; then
13814               if test x"$enablestring" = xdisable; then
13815                   defaultval=yes
13816               else
13817                   defaultval=no
13818               fi
13819           fi
13820
13821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13822 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13823           # Check whether --enable-ownerdrawn was given.
13824 if test "${enable_ownerdrawn+set}" = set; then
13825   enableval=$enable_ownerdrawn;
13826                           if test "$enableval" = yes; then
13827                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13828                           else
13829                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13830                           fi
13831
13832 else
13833
13834                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13835
13836 fi
13837
13838
13839           eval "$wx_cv_use_ownerdrawn"
13840
13841           if test x"$enablestring" = xdisable; then
13842             if test $wxUSE_OWNER_DRAWN = yes; then
13843               result=no
13844             else
13845               result=yes
13846             fi
13847           else
13848             result=$wxUSE_OWNER_DRAWN
13849           fi
13850
13851           { echo "$as_me:$LINENO: result: $result" >&5
13852 echo "${ECHO_T}$result" >&6; }
13853
13854
13855           enablestring=
13856           defaultval=$wxUSE_ALL_FEATURES
13857           if test -z "$defaultval"; then
13858               if test x"$enablestring" = xdisable; then
13859                   defaultval=yes
13860               else
13861                   defaultval=no
13862               fi
13863           fi
13864
13865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13866 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13867           # Check whether --enable-uxtheme was given.
13868 if test "${enable_uxtheme+set}" = set; then
13869   enableval=$enable_uxtheme;
13870                           if test "$enableval" = yes; then
13871                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13872                           else
13873                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13874                           fi
13875
13876 else
13877
13878                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13879
13880 fi
13881
13882
13883           eval "$wx_cv_use_uxtheme"
13884
13885           if test x"$enablestring" = xdisable; then
13886             if test $wxUSE_UXTHEME = yes; then
13887               result=no
13888             else
13889               result=yes
13890             fi
13891           else
13892             result=$wxUSE_UXTHEME
13893           fi
13894
13895           { echo "$as_me:$LINENO: result: $result" >&5
13896 echo "${ECHO_T}$result" >&6; }
13897
13898
13899           enablestring=
13900           defaultval=$wxUSE_ALL_FEATURES
13901           if test -z "$defaultval"; then
13902               if test x"$enablestring" = xdisable; then
13903                   defaultval=yes
13904               else
13905                   defaultval=no
13906               fi
13907           fi
13908
13909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13910 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13911           # Check whether --enable-wxdib was given.
13912 if test "${enable_wxdib+set}" = set; then
13913   enableval=$enable_wxdib;
13914                           if test "$enableval" = yes; then
13915                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13916                           else
13917                             wx_cv_use_wxdib='wxUSE_DIB=no'
13918                           fi
13919
13920 else
13921
13922                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13923
13924 fi
13925
13926
13927           eval "$wx_cv_use_wxdib"
13928
13929           if test x"$enablestring" = xdisable; then
13930             if test $wxUSE_DIB = yes; then
13931               result=no
13932             else
13933               result=yes
13934             fi
13935           else
13936             result=$wxUSE_DIB
13937           fi
13938
13939           { echo "$as_me:$LINENO: result: $result" >&5
13940 echo "${ECHO_T}$result" >&6; }
13941
13942
13943 if test "$wxUSE_MSW" != 1; then
13944     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13945 fi
13946
13947
13948           enablestring=
13949           defaultval=$wxUSE_ALL_FEATURES
13950           if test -z "$defaultval"; then
13951               if test x"$enablestring" = xdisable; then
13952                   defaultval=yes
13953               else
13954                   defaultval=no
13955               fi
13956           fi
13957
13958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13959 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13960           # Check whether --enable-autoidman was given.
13961 if test "${enable_autoidman+set}" = set; then
13962   enableval=$enable_autoidman;
13963                           if test "$enableval" = yes; then
13964                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13965                           else
13966                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13967                           fi
13968
13969 else
13970
13971                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13972
13973 fi
13974
13975
13976           eval "$wx_cv_use_autoidman"
13977
13978           if test x"$enablestring" = xdisable; then
13979             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13980               result=no
13981             else
13982               result=yes
13983             fi
13984           else
13985             result=$wxUSE_AUTOID_MANAGEMENT
13986           fi
13987
13988           { echo "$as_me:$LINENO: result: $result" >&5
13989 echo "${ECHO_T}$result" >&6; }
13990
13991
13992 fi
13993
13994
13995 cat >confcache <<\_ACEOF
13996 # This file is a shell script that caches the results of configure
13997 # tests run on this system so they can be shared between configure
13998 # scripts and configure runs, see configure's option --config-cache.
13999 # It is not useful on other systems.  If it contains results you don't
14000 # want to keep, you may remove or edit it.
14001 #
14002 # config.status only pays attention to the cache file if you give it
14003 # the --recheck option to rerun configure.
14004 #
14005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14007 # following values.
14008
14009 _ACEOF
14010
14011 # The following way of writing the cache mishandles newlines in values,
14012 # but we know of no workaround that is simple, portable, and efficient.
14013 # So, we kill variables containing newlines.
14014 # Ultrix sh set writes to stderr and can't be redirected directly,
14015 # and sets the high bit in the cache file unless we assign to the vars.
14016 (
14017   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14018     eval ac_val=\$$ac_var
14019     case $ac_val in #(
14020     *${as_nl}*)
14021       case $ac_var in #(
14022       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14023 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14024       esac
14025       case $ac_var in #(
14026       _ | IFS | as_nl) ;; #(
14027       *) $as_unset $ac_var ;;
14028       esac ;;
14029     esac
14030   done
14031
14032   (set) 2>&1 |
14033     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14034     *${as_nl}ac_space=\ *)
14035       # `set' does not quote correctly, so add quotes (double-quote
14036       # substitution turns \\\\ into \\, and sed turns \\ into \).
14037       sed -n \
14038         "s/'/'\\\\''/g;
14039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14040       ;; #(
14041     *)
14042       # `set' quotes correctly as required by POSIX, so do not add quotes.
14043       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14044       ;;
14045     esac |
14046     sort
14047 ) |
14048   sed '
14049      /^ac_cv_env_/b end
14050      t clear
14051      :clear
14052      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14053      t end
14054      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14055      :end' >>confcache
14056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14057   if test -w "$cache_file"; then
14058     test "x$cache_file" != "x/dev/null" &&
14059       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14060 echo "$as_me: updating cache $cache_file" >&6;}
14061     cat confcache >$cache_file
14062   else
14063     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14064 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14065   fi
14066 fi
14067 rm -f confcache
14068
14069 CFLAGS=${CFLAGS:=}
14070
14071
14072
14073     ac_ext=c
14074 ac_cpp='$CPP $CPPFLAGS'
14075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078 if test -n "$ac_tool_prefix"; then
14079   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14083 if test "${ac_cv_prog_CC+set}" = set; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   if test -n "$CC"; then
14087   ac_cv_prog_CC="$CC" # Let the user override the test.
14088 else
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090 for as_dir in $PATH
14091 do
14092   IFS=$as_save_IFS
14093   test -z "$as_dir" && as_dir=.
14094   for ac_exec_ext in '' $ac_executable_extensions; do
14095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14098     break 2
14099   fi
14100 done
14101 done
14102 IFS=$as_save_IFS
14103
14104 fi
14105 fi
14106 CC=$ac_cv_prog_CC
14107 if test -n "$CC"; then
14108   { echo "$as_me:$LINENO: result: $CC" >&5
14109 echo "${ECHO_T}$CC" >&6; }
14110 else
14111   { echo "$as_me:$LINENO: result: no" >&5
14112 echo "${ECHO_T}no" >&6; }
14113 fi
14114
14115
14116 fi
14117 if test -z "$ac_cv_prog_CC"; then
14118   ac_ct_CC=$CC
14119   # Extract the first word of "gcc", so it can be a program name with args.
14120 set dummy gcc; ac_word=$2
14121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   if test -n "$ac_ct_CC"; then
14127   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14128 else
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14131 do
14132   IFS=$as_save_IFS
14133   test -z "$as_dir" && as_dir=.
14134   for ac_exec_ext in '' $ac_executable_extensions; do
14135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14136     ac_cv_prog_ac_ct_CC="gcc"
14137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14138     break 2
14139   fi
14140 done
14141 done
14142 IFS=$as_save_IFS
14143
14144 fi
14145 fi
14146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14147 if test -n "$ac_ct_CC"; then
14148   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14149 echo "${ECHO_T}$ac_ct_CC" >&6; }
14150 else
14151   { echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6; }
14153 fi
14154
14155   if test "x$ac_ct_CC" = x; then
14156     CC=""
14157   else
14158     case $cross_compiling:$ac_tool_warned in
14159 yes:)
14160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14161 whose name does not start with the host triplet.  If you think this
14162 configuration is useful to you, please write to autoconf@gnu.org." >&5
14163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14164 whose name does not start with the host triplet.  If you think this
14165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14166 ac_tool_warned=yes ;;
14167 esac
14168     CC=$ac_ct_CC
14169   fi
14170 else
14171   CC="$ac_cv_prog_CC"
14172 fi
14173
14174 if test -z "$CC"; then
14175           if test -n "$ac_tool_prefix"; then
14176     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14177 set dummy ${ac_tool_prefix}cc; ac_word=$2
14178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14180 if test "${ac_cv_prog_CC+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test -n "$CC"; then
14184   ac_cv_prog_CC="$CC" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189   IFS=$as_save_IFS
14190   test -z "$as_dir" && as_dir=.
14191   for ac_exec_ext in '' $ac_executable_extensions; do
14192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14193     ac_cv_prog_CC="${ac_tool_prefix}cc"
14194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195     break 2
14196   fi
14197 done
14198 done
14199 IFS=$as_save_IFS
14200
14201 fi
14202 fi
14203 CC=$ac_cv_prog_CC
14204 if test -n "$CC"; then
14205   { echo "$as_me:$LINENO: result: $CC" >&5
14206 echo "${ECHO_T}$CC" >&6; }
14207 else
14208   { echo "$as_me:$LINENO: result: no" >&5
14209 echo "${ECHO_T}no" >&6; }
14210 fi
14211
14212
14213   fi
14214 fi
14215 if test -z "$CC"; then
14216   # Extract the first word of "cc", so it can be a program name with args.
14217 set dummy cc; ac_word=$2
14218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14220 if test "${ac_cv_prog_CC+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   if test -n "$CC"; then
14224   ac_cv_prog_CC="$CC" # Let the user override the test.
14225 else
14226   ac_prog_rejected=no
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14229 do
14230   IFS=$as_save_IFS
14231   test -z "$as_dir" && as_dir=.
14232   for ac_exec_ext in '' $ac_executable_extensions; do
14233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14234     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14235        ac_prog_rejected=yes
14236        continue
14237      fi
14238     ac_cv_prog_CC="cc"
14239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14240     break 2
14241   fi
14242 done
14243 done
14244 IFS=$as_save_IFS
14245
14246 if test $ac_prog_rejected = yes; then
14247   # We found a bogon in the path, so make sure we never use it.
14248   set dummy $ac_cv_prog_CC
14249   shift
14250   if test $# != 0; then
14251     # We chose a different compiler from the bogus one.
14252     # However, it has the same basename, so the bogon will be chosen
14253     # first if we set CC to just the basename; use the full file name.
14254     shift
14255     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14256   fi
14257 fi
14258 fi
14259 fi
14260 CC=$ac_cv_prog_CC
14261 if test -n "$CC"; then
14262   { echo "$as_me:$LINENO: result: $CC" >&5
14263 echo "${ECHO_T}$CC" >&6; }
14264 else
14265   { echo "$as_me:$LINENO: result: no" >&5
14266 echo "${ECHO_T}no" >&6; }
14267 fi
14268
14269
14270 fi
14271 if test -z "$CC"; then
14272   if test -n "$ac_tool_prefix"; then
14273   for ac_prog in cl.exe
14274   do
14275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14279 if test "${ac_cv_prog_CC+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   if test -n "$CC"; then
14283   ac_cv_prog_CC="$CC" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288   IFS=$as_save_IFS
14289   test -z "$as_dir" && as_dir=.
14290   for ac_exec_ext in '' $ac_executable_extensions; do
14291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14294     break 2
14295   fi
14296 done
14297 done
14298 IFS=$as_save_IFS
14299
14300 fi
14301 fi
14302 CC=$ac_cv_prog_CC
14303 if test -n "$CC"; then
14304   { echo "$as_me:$LINENO: result: $CC" >&5
14305 echo "${ECHO_T}$CC" >&6; }
14306 else
14307   { echo "$as_me:$LINENO: result: no" >&5
14308 echo "${ECHO_T}no" >&6; }
14309 fi
14310
14311
14312     test -n "$CC" && break
14313   done
14314 fi
14315 if test -z "$CC"; then
14316   ac_ct_CC=$CC
14317   for ac_prog in cl.exe
14318 do
14319   # Extract the first word of "$ac_prog", so it can be a program name with args.
14320 set dummy $ac_prog; ac_word=$2
14321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test -n "$ac_ct_CC"; then
14327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14328 else
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14331 do
14332   IFS=$as_save_IFS
14333   test -z "$as_dir" && as_dir=.
14334   for ac_exec_ext in '' $ac_executable_extensions; do
14335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336     ac_cv_prog_ac_ct_CC="$ac_prog"
14337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338     break 2
14339   fi
14340 done
14341 done
14342 IFS=$as_save_IFS
14343
14344 fi
14345 fi
14346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14347 if test -n "$ac_ct_CC"; then
14348   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14349 echo "${ECHO_T}$ac_ct_CC" >&6; }
14350 else
14351   { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14353 fi
14354
14355
14356   test -n "$ac_ct_CC" && break
14357 done
14358
14359   if test "x$ac_ct_CC" = x; then
14360     CC=""
14361   else
14362     case $cross_compiling:$ac_tool_warned in
14363 yes:)
14364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14365 whose name does not start with the host triplet.  If you think this
14366 configuration is useful to you, please write to autoconf@gnu.org." >&5
14367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14368 whose name does not start with the host triplet.  If you think this
14369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14370 ac_tool_warned=yes ;;
14371 esac
14372     CC=$ac_ct_CC
14373   fi
14374 fi
14375
14376 fi
14377
14378
14379 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14380 See \`config.log' for more details." >&5
14381 echo "$as_me: error: no acceptable C compiler found in \$PATH
14382 See \`config.log' for more details." >&2;}
14383    { (exit 1); exit 1; }; }
14384
14385 # Provide some information about the compiler.
14386 echo "$as_me:$LINENO: checking for C compiler version" >&5
14387 ac_compiler=`set X $ac_compile; echo $2`
14388 { (ac_try="$ac_compiler --version >&5"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_compiler --version >&5") 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }
14398 { (ac_try="$ac_compiler -v >&5"
14399 case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_compiler -v >&5") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }
14408 { (ac_try="$ac_compiler -V >&5"
14409 case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_compiler -V >&5") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }
14418
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425
14426 int
14427 main ()
14428 {
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 ac_clean_files_save=$ac_clean_files
14435 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14436 # Try to create an executable without -o first, disregard a.out.
14437 # It will help us diagnose broken compilers, and finding out an intuition
14438 # of exeext.
14439 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14440 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14441 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14442 #
14443 # List of possible output files, starting from the most likely.
14444 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14445 # only as a last resort.  b.out is created by i960 compilers.
14446 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14447 #
14448 # The IRIX 6 linker writes into existing files which may not be
14449 # executable, retaining their permissions.  Remove them first so a
14450 # subsequent execution test works.
14451 ac_rmfiles=
14452 for ac_file in $ac_files
14453 do
14454   case $ac_file in
14455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14456     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14457   esac
14458 done
14459 rm -f $ac_rmfiles
14460
14461 if { (ac_try="$ac_link_default"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_link_default") 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; then
14471   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14472 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14473 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14474 # so that the user can short-circuit this test for compilers unknown to
14475 # Autoconf.
14476 for ac_file in $ac_files ''
14477 do
14478   test -f "$ac_file" || continue
14479   case $ac_file in
14480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14481         ;;
14482     [ab].out )
14483         # We found the default executable, but exeext='' is most
14484         # certainly right.
14485         break;;
14486     *.* )
14487         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14488         then :; else
14489            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14490         fi
14491         # We set ac_cv_exeext here because the later test for it is not
14492         # safe: cross compilers may not add the suffix if given an `-o'
14493         # argument, so we may need to know it at that point already.
14494         # Even if this section looks crufty: it has the advantage of
14495         # actually working.
14496         break;;
14497     * )
14498         break;;
14499   esac
14500 done
14501 test "$ac_cv_exeext" = no && ac_cv_exeext=
14502
14503 else
14504   ac_file=''
14505 fi
14506
14507 { echo "$as_me:$LINENO: result: $ac_file" >&5
14508 echo "${ECHO_T}$ac_file" >&6; }
14509 if test -z "$ac_file"; then
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14514 See \`config.log' for more details." >&5
14515 echo "$as_me: error: C compiler cannot create executables
14516 See \`config.log' for more details." >&2;}
14517    { (exit 77); exit 77; }; }
14518 fi
14519
14520 ac_exeext=$ac_cv_exeext
14521
14522 # Check that the compiler produces executables we can run.  If not, either
14523 # the compiler is broken, or we cross compile.
14524 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14525 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14526 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14527 # If not cross compiling, check that we can run a simple program.
14528 if test "$cross_compiling" != yes; then
14529   if { ac_try='./$ac_file'
14530   { (case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_try") 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539     cross_compiling=no
14540   else
14541     if test "$cross_compiling" = maybe; then
14542         cross_compiling=yes
14543     else
14544         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14545 If you meant to cross compile, use \`--host'.
14546 See \`config.log' for more details." >&5
14547 echo "$as_me: error: cannot run C compiled programs.
14548 If you meant to cross compile, use \`--host'.
14549 See \`config.log' for more details." >&2;}
14550    { (exit 1); exit 1; }; }
14551     fi
14552   fi
14553 fi
14554 { echo "$as_me:$LINENO: result: yes" >&5
14555 echo "${ECHO_T}yes" >&6; }
14556
14557 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14558 ac_clean_files=$ac_clean_files_save
14559 # Check that the compiler produces executables we can run.  If not, either
14560 # the compiler is broken, or we cross compile.
14561 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14562 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14563 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14564 echo "${ECHO_T}$cross_compiling" >&6; }
14565
14566 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14567 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_link") 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; then
14578   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14579 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14580 # work properly (i.e., refer to `conftest.exe'), while it won't with
14581 # `rm'.
14582 for ac_file in conftest.exe conftest conftest.*; do
14583   test -f "$ac_file" || continue
14584   case $ac_file in
14585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14586     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14587           break;;
14588     * ) break;;
14589   esac
14590 done
14591 else
14592   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14593 See \`config.log' for more details." >&5
14594 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14595 See \`config.log' for more details." >&2;}
14596    { (exit 1); exit 1; }; }
14597 fi
14598
14599 rm -f conftest$ac_cv_exeext
14600 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14601 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14602
14603 rm -f conftest.$ac_ext
14604 EXEEXT=$ac_cv_exeext
14605 ac_exeext=$EXEEXT
14606 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14607 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14608 if test "${ac_cv_objext+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618 int
14619 main ()
14620 {
14621
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.o conftest.obj
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_compile") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; then
14637   for ac_file in conftest.o conftest.obj conftest.*; do
14638   test -f "$ac_file" || continue;
14639   case $ac_file in
14640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14641     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14642        break;;
14643   esac
14644 done
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14650 See \`config.log' for more details." >&5
14651 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14652 See \`config.log' for more details." >&2;}
14653    { (exit 1); exit 1; }; }
14654 fi
14655
14656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14659 echo "${ECHO_T}$ac_cv_objext" >&6; }
14660 OBJEXT=$ac_cv_objext
14661 ac_objext=$OBJEXT
14662 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667   cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673
14674 int
14675 main ()
14676 {
14677 #ifndef __GNUC__
14678        choke me
14679 #endif
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   ac_compiler_gnu=yes
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707         ac_compiler_gnu=no
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14712
14713 fi
14714 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14715 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14716 GCC=`test $ac_compiler_gnu = yes && echo yes`
14717 ac_test_CFLAGS=${CFLAGS+set}
14718 ac_save_CFLAGS=$CFLAGS
14719 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14720 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14721 if test "${ac_cv_prog_cc_g+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   ac_save_c_werror_flag=$ac_c_werror_flag
14725    ac_c_werror_flag=yes
14726    ac_cv_prog_cc_g=no
14727    CFLAGS="-g"
14728    cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h.  */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h.  */
14734
14735 int
14736 main ()
14737 {
14738
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (ac_try="$ac_compile"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_compile") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } && {
14757          test -z "$ac_c_werror_flag" ||
14758          test ! -s conftest.err
14759        } && test -s conftest.$ac_objext; then
14760   ac_cv_prog_cc_g=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765         CFLAGS=""
14766       cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772
14773 int
14774 main ()
14775 {
14776
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_compile") 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } && {
14795          test -z "$ac_c_werror_flag" ||
14796          test ! -s conftest.err
14797        } && test -s conftest.$ac_objext; then
14798   :
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         ac_c_werror_flag=$ac_save_c_werror_flag
14804          CFLAGS="-g"
14805          cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811
14812 int
14813 main ()
14814 {
14815
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_compile") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } && {
14834          test -z "$ac_c_werror_flag" ||
14835          test ! -s conftest.err
14836        } && test -s conftest.$ac_objext; then
14837   ac_cv_prog_cc_g=yes
14838 else
14839   echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842
14843 fi
14844
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 fi
14847
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852    ac_c_werror_flag=$ac_save_c_werror_flag
14853 fi
14854 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14856 if test "$ac_test_CFLAGS" = set; then
14857   CFLAGS=$ac_save_CFLAGS
14858 elif test $ac_cv_prog_cc_g = yes; then
14859   if test "$GCC" = yes; then
14860     CFLAGS="-g -O2"
14861   else
14862     CFLAGS="-g"
14863   fi
14864 else
14865   if test "$GCC" = yes; then
14866     CFLAGS="-O2"
14867   else
14868     CFLAGS=
14869   fi
14870 fi
14871 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14872 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14873 if test "${ac_cv_prog_cc_c89+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_cv_prog_cc_c89=no
14877 ac_save_CC=$CC
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884 #include <stdarg.h>
14885 #include <stdio.h>
14886 #include <sys/types.h>
14887 #include <sys/stat.h>
14888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14889 struct buf { int x; };
14890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14891 static char *e (p, i)
14892      char **p;
14893      int i;
14894 {
14895   return p[i];
14896 }
14897 static char *f (char * (*g) (char **, int), char **p, ...)
14898 {
14899   char *s;
14900   va_list v;
14901   va_start (v,p);
14902   s = g (p, va_arg (v,int));
14903   va_end (v);
14904   return s;
14905 }
14906
14907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14908    function prototypes and stuff, but not '\xHH' hex character constants.
14909    These don't provoke an error unfortunately, instead are silently treated
14910    as 'x'.  The following induces an error, until -std is added to get
14911    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14912    array size at least.  It's necessary to write '\x00'==0 to get something
14913    that's true only with -std.  */
14914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14915
14916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14917    inside strings and character constants.  */
14918 #define FOO(x) 'x'
14919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14920
14921 int test (int i, double x);
14922 struct s1 {int (*f) (int a);};
14923 struct s2 {int (*f) (double a);};
14924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14925 int argc;
14926 char **argv;
14927 int
14928 main ()
14929 {
14930 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14931   ;
14932   return 0;
14933 }
14934 _ACEOF
14935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14936         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14937 do
14938   CC="$ac_save_CC $ac_arg"
14939   rm -f conftest.$ac_objext
14940 if { (ac_try="$ac_compile"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_compile") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } && {
14953          test -z "$ac_c_werror_flag" ||
14954          test ! -s conftest.err
14955        } && test -s conftest.$ac_objext; then
14956   ac_cv_prog_cc_c89=$ac_arg
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961
14962 fi
14963
14964 rm -f core conftest.err conftest.$ac_objext
14965   test "x$ac_cv_prog_cc_c89" != "xno" && break
14966 done
14967 rm -f conftest.$ac_ext
14968 CC=$ac_save_CC
14969
14970 fi
14971 # AC_CACHE_VAL
14972 case "x$ac_cv_prog_cc_c89" in
14973   x)
14974     { echo "$as_me:$LINENO: result: none needed" >&5
14975 echo "${ECHO_T}none needed" >&6; } ;;
14976   xno)
14977     { echo "$as_me:$LINENO: result: unsupported" >&5
14978 echo "${ECHO_T}unsupported" >&6; } ;;
14979   *)
14980     CC="$CC $ac_cv_prog_cc_c89"
14981     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14982 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14983 esac
14984
14985
14986 ac_ext=c
14987 ac_cpp='$CPP $CPPFLAGS'
14988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14991
14992
14993
14994
14995     ac_ext=c
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15000
15001     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15002 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15003 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012
15013 int
15014 main ()
15015 {
15016
15017              #ifndef __INTEL_COMPILER
15018                 choke me
15019              #endif
15020
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032   (eval "$ac_compile") 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } && {
15039          test -z "$ac_c_werror_flag" ||
15040          test ! -s conftest.err
15041        } && test -s conftest.$ac_objext; then
15042   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047         bakefile_cv_c_compiler___INTEL_COMPILER=no
15048
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052
15053
15054 fi
15055 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15056 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15057     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15058         :; INTELCC=yes
15059     else
15060         :;
15061     fi
15062     ac_ext=c
15063 ac_cpp='$CPP $CPPFLAGS'
15064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15067
15068
15069
15070
15071         if test "x$GCC" != "xyes"; then
15072         if test "xCC" = "xC"; then
15073             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15074 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15075 if test "${bakefile_cv_c_exto+set}" = set; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078   cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h.  */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h.  */
15084
15085 int
15086 main ()
15087 {
15088
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest.$ac_objext conftest.$ac_ext.o
15094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095   (eval $ac_compile) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; then
15099   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15100     case $ac_file in
15101         conftest.$ac_ext.o)
15102             bakefile_cv_c_exto="-ext o"
15103             ;;
15104         *)
15105             ;;
15106     esac
15107 done
15108 else
15109   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15110 See \`config.log' for more details." >&5
15111 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15112 See \`config.log' for more details." >&2;}
15113    { (exit 1); exit 1; }; }
15114
15115 fi
15116
15117 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15118
15119 fi
15120 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15121 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15122 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15123     if test "c" = "c"; then
15124         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15125     fi
15126     if test "c" = "cxx"; then
15127         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15128     fi
15129 fi
15130
15131             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15132                 unset ac_cv_prog_cc_g
15133                 ac_test_CFLAGS=${CFLAGS+set}
15134 ac_save_CFLAGS=$CFLAGS
15135 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15137 if test "${ac_cv_prog_cc_g+set}" = set; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140   ac_save_c_werror_flag=$ac_c_werror_flag
15141    ac_c_werror_flag=yes
15142    ac_cv_prog_cc_g=no
15143    CFLAGS="-g"
15144    cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150
15151 int
15152 main ()
15153 {
15154
15155   ;
15156   return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_compile") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } && {
15173          test -z "$ac_c_werror_flag" ||
15174          test ! -s conftest.err
15175        } && test -s conftest.$ac_objext; then
15176   ac_cv_prog_cc_g=yes
15177 else
15178   echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181         CFLAGS=""
15182       cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188
15189 int
15190 main ()
15191 {
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (ac_try="$ac_compile"
15199 case "(($ac_try" in
15200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201   *) ac_try_echo=$ac_try;;
15202 esac
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204   (eval "$ac_compile") 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } && {
15211          test -z "$ac_c_werror_flag" ||
15212          test ! -s conftest.err
15213        } && test -s conftest.$ac_objext; then
15214   :
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219         ac_c_werror_flag=$ac_save_c_werror_flag
15220          CFLAGS="-g"
15221          cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15227
15228 int
15229 main ()
15230 {
15231
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (ac_try="$ac_compile"
15238 case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_compile") 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } && {
15250          test -z "$ac_c_werror_flag" ||
15251          test ! -s conftest.err
15252        } && test -s conftest.$ac_objext; then
15253   ac_cv_prog_cc_g=yes
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258
15259 fi
15260
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268    ac_c_werror_flag=$ac_save_c_werror_flag
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15272 if test "$ac_test_CFLAGS" = set; then
15273   CFLAGS=$ac_save_CFLAGS
15274 elif test $ac_cv_prog_cc_g = yes; then
15275   if test "$GCC" = yes; then
15276     CFLAGS="-g -O2"
15277   else
15278     CFLAGS="-g"
15279   fi
15280 else
15281   if test "$GCC" = yes; then
15282     CFLAGS="-O2"
15283   else
15284     CFLAGS=
15285   fi
15286 fi
15287             fi
15288         fi
15289
15290                         case `uname -s` in
15291             AIX*)
15292
15293
15294     ac_ext=c
15295 ac_cpp='$CPP $CPPFLAGS'
15296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15299
15300     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15301 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15302 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15303   echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305   cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h.  */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h.  */
15311
15312 int
15313 main ()
15314 {
15315
15316              #ifndef __xlC__
15317                 choke me
15318              #endif
15319
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328   *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331   (eval "$ac_compile") 2>conftest.er1
15332   ac_status=$?
15333   grep -v '^ *+' conftest.er1 >conftest.err
15334   rm -f conftest.er1
15335   cat conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } && {
15338          test -z "$ac_c_werror_flag" ||
15339          test ! -s conftest.err
15340        } && test -s conftest.$ac_objext; then
15341   bakefile_cv_c_compiler___xlC__=yes
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346         bakefile_cv_c_compiler___xlC__=no
15347
15348 fi
15349
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351
15352
15353 fi
15354 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15355 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15356     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15357         :; XLCC=yes
15358     else
15359         :;
15360     fi
15361     ac_ext=c
15362 ac_cpp='$CPP $CPPFLAGS'
15363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15366
15367
15368
15369                 ;;
15370
15371             Darwin)
15372
15373
15374     ac_ext=c
15375 ac_cpp='$CPP $CPPFLAGS'
15376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15379
15380     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15381 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15382 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h.  */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h.  */
15391
15392 int
15393 main ()
15394 {
15395
15396              #ifndef __MWERKS__
15397                 choke me
15398              #endif
15399
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (ac_try="$ac_compile"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_compile") 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } && {
15418          test -z "$ac_c_werror_flag" ||
15419          test ! -s conftest.err
15420        } && test -s conftest.$ac_objext; then
15421   bakefile_cv_c_compiler___MWERKS__=yes
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426         bakefile_cv_c_compiler___MWERKS__=no
15427
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431
15432
15433 fi
15434 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15435 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15436     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15437         :; MWCC=yes
15438     else
15439         :;
15440     fi
15441     ac_ext=c
15442 ac_cpp='$CPP $CPPFLAGS'
15443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15446
15447
15448
15449
15450
15451     ac_ext=c
15452 ac_cpp='$CPP $CPPFLAGS'
15453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15456
15457     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15458 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15459 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468
15469 int
15470 main ()
15471 {
15472
15473              #ifndef __xlC__
15474                 choke me
15475              #endif
15476
15477   ;
15478   return 0;
15479 }
15480 _ACEOF
15481 rm -f conftest.$ac_objext
15482 if { (ac_try="$ac_compile"
15483 case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_compile") 2>conftest.er1
15489   ac_status=$?
15490   grep -v '^ *+' conftest.er1 >conftest.err
15491   rm -f conftest.er1
15492   cat conftest.err >&5
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); } && {
15495          test -z "$ac_c_werror_flag" ||
15496          test ! -s conftest.err
15497        } && test -s conftest.$ac_objext; then
15498   bakefile_cv_c_compiler___xlC__=yes
15499 else
15500   echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503         bakefile_cv_c_compiler___xlC__=no
15504
15505 fi
15506
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508
15509
15510 fi
15511 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15512 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15513     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15514         :; XLCC=yes
15515     else
15516         :;
15517     fi
15518     ac_ext=c
15519 ac_cpp='$CPP $CPPFLAGS'
15520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15523
15524
15525
15526                 ;;
15527
15528             IRIX*)
15529
15530
15531     ac_ext=c
15532 ac_cpp='$CPP $CPPFLAGS'
15533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15536
15537     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15538 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15539 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548
15549 int
15550 main ()
15551 {
15552
15553              #ifndef _SGI_COMPILER_VERSION
15554                 choke me
15555              #endif
15556
15557   ;
15558   return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext
15562 if { (ac_try="$ac_compile"
15563 case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_compile") 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } && {
15575          test -z "$ac_c_werror_flag" ||
15576          test ! -s conftest.err
15577        } && test -s conftest.$ac_objext; then
15578   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15584
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588
15589
15590 fi
15591 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15592 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15593     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15594         :; SGICC=yes
15595     else
15596         :;
15597     fi
15598     ac_ext=c
15599 ac_cpp='$CPP $CPPFLAGS'
15600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15603
15604
15605
15606                 ;;
15607
15608             Linux*)
15609
15610
15611     ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15618 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15619 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628
15629 int
15630 main ()
15631 {
15632
15633              #ifndef __SUNPRO_C
15634                 choke me
15635              #endif
15636
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_compile") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } && {
15655          test -z "$ac_c_werror_flag" ||
15656          test ! -s conftest.err
15657        } && test -s conftest.$ac_objext; then
15658   bakefile_cv_c_compiler___SUNPRO_C=yes
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663         bakefile_cv_c_compiler___SUNPRO_C=no
15664
15665 fi
15666
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668
15669
15670 fi
15671 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15672 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15673     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15674         :; SUNCC=yes
15675     else
15676         :;
15677     fi
15678     ac_ext=c
15679 ac_cpp='$CPP $CPPFLAGS'
15680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15683
15684
15685
15686                 ;;
15687
15688             HP-UX*)
15689
15690
15691     ac_ext=c
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15696
15697     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15698 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15699 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15700   echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702   cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708
15709 int
15710 main ()
15711 {
15712
15713              #ifndef __HP_cc
15714                 choke me
15715              #endif
15716
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext
15722 if { (ac_try="$ac_compile"
15723 case "(($ac_try" in
15724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725   *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728   (eval "$ac_compile") 2>conftest.er1
15729   ac_status=$?
15730   grep -v '^ *+' conftest.er1 >conftest.err
15731   rm -f conftest.er1
15732   cat conftest.err >&5
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); } && {
15735          test -z "$ac_c_werror_flag" ||
15736          test ! -s conftest.err
15737        } && test -s conftest.$ac_objext; then
15738   bakefile_cv_c_compiler___HP_cc=yes
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743         bakefile_cv_c_compiler___HP_cc=no
15744
15745 fi
15746
15747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748
15749
15750 fi
15751 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15752 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15753     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15754         :; HPCC=yes
15755     else
15756         :;
15757     fi
15758     ac_ext=c
15759 ac_cpp='$CPP $CPPFLAGS'
15760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15763
15764
15765
15766                 ;;
15767
15768             OSF1)
15769
15770
15771     ac_ext=c
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15776
15777     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15778 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15779 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782   cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h.  */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h.  */
15788
15789 int
15790 main ()
15791 {
15792
15793              #ifndef __DECC
15794                 choke me
15795              #endif
15796
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (ac_try="$ac_compile"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808   (eval "$ac_compile") 2>conftest.er1
15809   ac_status=$?
15810   grep -v '^ *+' conftest.er1 >conftest.err
15811   rm -f conftest.er1
15812   cat conftest.err >&5
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } && {
15815          test -z "$ac_c_werror_flag" ||
15816          test ! -s conftest.err
15817        } && test -s conftest.$ac_objext; then
15818   bakefile_cv_c_compiler___DECC=yes
15819 else
15820   echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823         bakefile_cv_c_compiler___DECC=no
15824
15825 fi
15826
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828
15829
15830 fi
15831 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15832 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15833     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15834         :; COMPAQCC=yes
15835     else
15836         :;
15837     fi
15838     ac_ext=c
15839 ac_cpp='$CPP $CPPFLAGS'
15840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15843
15844
15845
15846                 ;;
15847
15848             SunOS)
15849
15850
15851     ac_ext=c
15852 ac_cpp='$CPP $CPPFLAGS'
15853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15856
15857     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15858 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15859 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868
15869 int
15870 main ()
15871 {
15872
15873              #ifndef __SUNPRO_C
15874                 choke me
15875              #endif
15876
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_compile") 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } && {
15895          test -z "$ac_c_werror_flag" ||
15896          test ! -s conftest.err
15897        } && test -s conftest.$ac_objext; then
15898   bakefile_cv_c_compiler___SUNPRO_C=yes
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903         bakefile_cv_c_compiler___SUNPRO_C=no
15904
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908
15909
15910 fi
15911 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15912 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15913     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15914         :; SUNCC=yes
15915     else
15916         :;
15917     fi
15918     ac_ext=c
15919 ac_cpp='$CPP $CPPFLAGS'
15920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15923
15924
15925
15926                 ;;
15927         esac
15928     fi
15929
15930
15931
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15939 # On Suns, sometimes $CPP names a directory.
15940 if test -n "$CPP" && test -d "$CPP"; then
15941   CPP=
15942 fi
15943 if test -z "$CPP"; then
15944   if test "${ac_cv_prog_CPP+set}" = set; then
15945   echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947       # Double quotes because CPP needs to be expanded
15948     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15949     do
15950       ac_preproc_ok=false
15951 for ac_c_preproc_warn_flag in '' yes
15952 do
15953   # Use a header file that comes with gcc, so configuring glibc
15954   # with a fresh cross-compiler works.
15955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15956   # <limits.h> exists even on freestanding compilers.
15957   # On the NeXT, cc -E runs the code through the compiler's parser,
15958   # not just through cpp. "Syntax error" is here to catch this case.
15959   cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965 #ifdef __STDC__
15966 # include <limits.h>
15967 #else
15968 # include <assert.h>
15969 #endif
15970                      Syntax error
15971 _ACEOF
15972 if { (ac_try="$ac_cpp conftest.$ac_ext"
15973 case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } >/dev/null && {
15985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15986          test ! -s conftest.err
15987        }; then
15988   :
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993   # Broken: fails on valid input.
15994 continue
15995 fi
15996
15997 rm -f conftest.err conftest.$ac_ext
15998
15999   # OK, works on sane cases.  Now check whether nonexistent headers
16000   # can be detected and how.
16001   cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 #include <ac_nonexistent.h>
16008 _ACEOF
16009 if { (ac_try="$ac_cpp conftest.$ac_ext"
16010 case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016   ac_status=$?
16017   grep -v '^ *+' conftest.er1 >conftest.err
16018   rm -f conftest.er1
16019   cat conftest.err >&5
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); } >/dev/null && {
16022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16023          test ! -s conftest.err
16024        }; then
16025   # Broken: success on invalid input.
16026 continue
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031   # Passes both tests.
16032 ac_preproc_ok=:
16033 break
16034 fi
16035
16036 rm -f conftest.err conftest.$ac_ext
16037
16038 done
16039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16040 rm -f conftest.err conftest.$ac_ext
16041 if $ac_preproc_ok; then
16042   break
16043 fi
16044
16045     done
16046     ac_cv_prog_CPP=$CPP
16047
16048 fi
16049   CPP=$ac_cv_prog_CPP
16050 else
16051   ac_cv_prog_CPP=$CPP
16052 fi
16053 { echo "$as_me:$LINENO: result: $CPP" >&5
16054 echo "${ECHO_T}$CPP" >&6; }
16055 ac_preproc_ok=false
16056 for ac_c_preproc_warn_flag in '' yes
16057 do
16058   # Use a header file that comes with gcc, so configuring glibc
16059   # with a fresh cross-compiler works.
16060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16061   # <limits.h> exists even on freestanding compilers.
16062   # On the NeXT, cc -E runs the code through the compiler's parser,
16063   # not just through cpp. "Syntax error" is here to catch this case.
16064   cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 #ifdef __STDC__
16071 # include <limits.h>
16072 #else
16073 # include <assert.h>
16074 #endif
16075                      Syntax error
16076 _ACEOF
16077 if { (ac_try="$ac_cpp conftest.$ac_ext"
16078 case "(($ac_try" in
16079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080   *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16084   ac_status=$?
16085   grep -v '^ *+' conftest.er1 >conftest.err
16086   rm -f conftest.er1
16087   cat conftest.err >&5
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); } >/dev/null && {
16090          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16091          test ! -s conftest.err
16092        }; then
16093   :
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098   # Broken: fails on valid input.
16099 continue
16100 fi
16101
16102 rm -f conftest.err conftest.$ac_ext
16103
16104   # OK, works on sane cases.  Now check whether nonexistent headers
16105   # can be detected and how.
16106   cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112 #include <ac_nonexistent.h>
16113 _ACEOF
16114 if { (ac_try="$ac_cpp conftest.$ac_ext"
16115 case "(($ac_try" in
16116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117   *) ac_try_echo=$ac_try;;
16118 esac
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16121   ac_status=$?
16122   grep -v '^ *+' conftest.er1 >conftest.err
16123   rm -f conftest.er1
16124   cat conftest.err >&5
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); } >/dev/null && {
16127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16128          test ! -s conftest.err
16129        }; then
16130   # Broken: success on invalid input.
16131 continue
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136   # Passes both tests.
16137 ac_preproc_ok=:
16138 break
16139 fi
16140
16141 rm -f conftest.err conftest.$ac_ext
16142
16143 done
16144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16145 rm -f conftest.err conftest.$ac_ext
16146 if $ac_preproc_ok; then
16147   :
16148 else
16149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16150 See \`config.log' for more details." >&5
16151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16152 See \`config.log' for more details." >&2;}
16153    { (exit 1); exit 1; }; }
16154 fi
16155
16156 ac_ext=c
16157 ac_cpp='$CPP $CPPFLAGS'
16158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16161
16162
16163 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16164 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16165 if test "${ac_cv_path_GREP+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   # Extract the first word of "grep ggrep" to use in msg output
16169 if test -z "$GREP"; then
16170 set dummy grep ggrep; ac_prog_name=$2
16171 if test "${ac_cv_path_GREP+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   ac_path_GREP_found=false
16175 # Loop through the user's path and test for each of PROGNAME-LIST
16176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16178 do
16179   IFS=$as_save_IFS
16180   test -z "$as_dir" && as_dir=.
16181   for ac_prog in grep ggrep; do
16182   for ac_exec_ext in '' $ac_executable_extensions; do
16183     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16184     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16185     # Check for GNU ac_path_GREP and select it if it is found.
16186   # Check for GNU $ac_path_GREP
16187 case `"$ac_path_GREP" --version 2>&1` in
16188 *GNU*)
16189   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16190 *)
16191   ac_count=0
16192   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16193   while :
16194   do
16195     cat "conftest.in" "conftest.in" >"conftest.tmp"
16196     mv "conftest.tmp" "conftest.in"
16197     cp "conftest.in" "conftest.nl"
16198     echo 'GREP' >> "conftest.nl"
16199     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16201     ac_count=`expr $ac_count + 1`
16202     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16203       # Best one so far, save it but keep looking for a better one
16204       ac_cv_path_GREP="$ac_path_GREP"
16205       ac_path_GREP_max=$ac_count
16206     fi
16207     # 10*(2^10) chars as input seems more than enough
16208     test $ac_count -gt 10 && break
16209   done
16210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16211 esac
16212
16213
16214     $ac_path_GREP_found && break 3
16215   done
16216 done
16217
16218 done
16219 IFS=$as_save_IFS
16220
16221
16222 fi
16223
16224 GREP="$ac_cv_path_GREP"
16225 if test -z "$GREP"; then
16226   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16227 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16228    { (exit 1); exit 1; }; }
16229 fi
16230
16231 else
16232   ac_cv_path_GREP=$GREP
16233 fi
16234
16235
16236 fi
16237 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16238 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16239  GREP="$ac_cv_path_GREP"
16240
16241
16242 { echo "$as_me:$LINENO: checking for egrep" >&5
16243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16244 if test "${ac_cv_path_EGREP+set}" = set; then
16245   echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16248    then ac_cv_path_EGREP="$GREP -E"
16249    else
16250      # Extract the first word of "egrep" to use in msg output
16251 if test -z "$EGREP"; then
16252 set dummy egrep; ac_prog_name=$2
16253 if test "${ac_cv_path_EGREP+set}" = set; then
16254   echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256   ac_path_EGREP_found=false
16257 # Loop through the user's path and test for each of PROGNAME-LIST
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16260 do
16261   IFS=$as_save_IFS
16262   test -z "$as_dir" && as_dir=.
16263   for ac_prog in egrep; do
16264   for ac_exec_ext in '' $ac_executable_extensions; do
16265     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16266     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16267     # Check for GNU ac_path_EGREP and select it if it is found.
16268   # Check for GNU $ac_path_EGREP
16269 case `"$ac_path_EGREP" --version 2>&1` in
16270 *GNU*)
16271   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16272 *)
16273   ac_count=0
16274   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16275   while :
16276   do
16277     cat "conftest.in" "conftest.in" >"conftest.tmp"
16278     mv "conftest.tmp" "conftest.in"
16279     cp "conftest.in" "conftest.nl"
16280     echo 'EGREP' >> "conftest.nl"
16281     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16283     ac_count=`expr $ac_count + 1`
16284     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16285       # Best one so far, save it but keep looking for a better one
16286       ac_cv_path_EGREP="$ac_path_EGREP"
16287       ac_path_EGREP_max=$ac_count
16288     fi
16289     # 10*(2^10) chars as input seems more than enough
16290     test $ac_count -gt 10 && break
16291   done
16292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16293 esac
16294
16295
16296     $ac_path_EGREP_found && break 3
16297   done
16298 done
16299
16300 done
16301 IFS=$as_save_IFS
16302
16303
16304 fi
16305
16306 EGREP="$ac_cv_path_EGREP"
16307 if test -z "$EGREP"; then
16308   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16309 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16310    { (exit 1); exit 1; }; }
16311 fi
16312
16313 else
16314   ac_cv_path_EGREP=$EGREP
16315 fi
16316
16317
16318    fi
16319 fi
16320 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16321 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16322  EGREP="$ac_cv_path_EGREP"
16323
16324
16325 if test $ac_cv_c_compiler_gnu = yes; then
16326     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16327 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16328 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16329   echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331     ac_pattern="Autoconf.*'x'"
16332   cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338 #include <sgtty.h>
16339 Autoconf TIOCGETP
16340 _ACEOF
16341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16342   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16343   ac_cv_prog_gcc_traditional=yes
16344 else
16345   ac_cv_prog_gcc_traditional=no
16346 fi
16347 rm -f conftest*
16348
16349
16350   if test $ac_cv_prog_gcc_traditional = no; then
16351     cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 #include <termio.h>
16358 Autoconf TCGETA
16359 _ACEOF
16360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16361   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16362   ac_cv_prog_gcc_traditional=yes
16363 fi
16364 rm -f conftest*
16365
16366   fi
16367 fi
16368 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16369 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16370   if test $ac_cv_prog_gcc_traditional = yes; then
16371     CC="$CC -traditional"
16372   fi
16373 fi
16374
16375
16376 CXXFLAGS=${CXXFLAGS:=}
16377
16378
16379
16380     ac_ext=cpp
16381 ac_cpp='$CXXCPP $CPPFLAGS'
16382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16385 if test -z "$CXX"; then
16386   if test -n "$CCC"; then
16387     CXX=$CCC
16388   else
16389     if test -n "$ac_tool_prefix"; then
16390   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16391   do
16392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16396 if test "${ac_cv_prog_CXX+set}" = set; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399   if test -n "$CXX"; then
16400   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16401 else
16402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16403 for as_dir in $PATH
16404 do
16405   IFS=$as_save_IFS
16406   test -z "$as_dir" && as_dir=.
16407   for ac_exec_ext in '' $ac_executable_extensions; do
16408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16409     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16411     break 2
16412   fi
16413 done
16414 done
16415 IFS=$as_save_IFS
16416
16417 fi
16418 fi
16419 CXX=$ac_cv_prog_CXX
16420 if test -n "$CXX"; then
16421   { echo "$as_me:$LINENO: result: $CXX" >&5
16422 echo "${ECHO_T}$CXX" >&6; }
16423 else
16424   { echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6; }
16426 fi
16427
16428
16429     test -n "$CXX" && break
16430   done
16431 fi
16432 if test -z "$CXX"; then
16433   ac_ct_CXX=$CXX
16434   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16435 do
16436   # Extract the first word of "$ac_prog", so it can be a program name with args.
16437 set dummy $ac_prog; ac_word=$2
16438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   if test -n "$ac_ct_CXX"; then
16444   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16445 else
16446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16447 for as_dir in $PATH
16448 do
16449   IFS=$as_save_IFS
16450   test -z "$as_dir" && as_dir=.
16451   for ac_exec_ext in '' $ac_executable_extensions; do
16452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16453     ac_cv_prog_ac_ct_CXX="$ac_prog"
16454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16455     break 2
16456   fi
16457 done
16458 done
16459 IFS=$as_save_IFS
16460
16461 fi
16462 fi
16463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16464 if test -n "$ac_ct_CXX"; then
16465   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16466 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16467 else
16468   { echo "$as_me:$LINENO: result: no" >&5
16469 echo "${ECHO_T}no" >&6; }
16470 fi
16471
16472
16473   test -n "$ac_ct_CXX" && break
16474 done
16475
16476   if test "x$ac_ct_CXX" = x; then
16477     CXX="g++"
16478   else
16479     case $cross_compiling:$ac_tool_warned in
16480 yes:)
16481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16482 whose name does not start with the host triplet.  If you think this
16483 configuration is useful to you, please write to autoconf@gnu.org." >&5
16484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16485 whose name does not start with the host triplet.  If you think this
16486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16487 ac_tool_warned=yes ;;
16488 esac
16489     CXX=$ac_ct_CXX
16490   fi
16491 fi
16492
16493   fi
16494 fi
16495 # Provide some information about the compiler.
16496 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16497 ac_compiler=`set X $ac_compile; echo $2`
16498 { (ac_try="$ac_compiler --version >&5"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compiler --version >&5") 2>&5
16505   ac_status=$?
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); }
16508 { (ac_try="$ac_compiler -v >&5"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_compiler -v >&5") 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }
16518 { (ac_try="$ac_compiler -V >&5"
16519 case "(($ac_try" in
16520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521   *) ac_try_echo=$ac_try;;
16522 esac
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524   (eval "$ac_compiler -V >&5") 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }
16528
16529 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16530 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16531 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16532   echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534   cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540
16541 int
16542 main ()
16543 {
16544 #ifndef __GNUC__
16545        choke me
16546 #endif
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   ac_compiler_gnu=yes
16570 else
16571   echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574         ac_compiler_gnu=no
16575 fi
16576
16577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16579
16580 fi
16581 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16582 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16583 GXX=`test $ac_compiler_gnu = yes && echo yes`
16584 ac_test_CXXFLAGS=${CXXFLAGS+set}
16585 ac_save_CXXFLAGS=$CXXFLAGS
16586 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16587 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16588 if test "${ac_cv_prog_cxx_g+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16592    ac_cxx_werror_flag=yes
16593    ac_cv_prog_cxx_g=no
16594    CXXFLAGS="-g"
16595    cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601
16602 int
16603 main ()
16604 {
16605
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (ac_try="$ac_compile"
16612 case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_compile") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } && {
16624          test -z "$ac_cxx_werror_flag" ||
16625          test ! -s conftest.err
16626        } && test -s conftest.$ac_objext; then
16627   ac_cv_prog_cxx_g=yes
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632         CXXFLAGS=""
16633       cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h.  */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h.  */
16639
16640 int
16641 main ()
16642 {
16643
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (ac_try="$ac_compile"
16650 case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_compile") 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } && {
16662          test -z "$ac_cxx_werror_flag" ||
16663          test ! -s conftest.err
16664        } && test -s conftest.$ac_objext; then
16665   :
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16671          CXXFLAGS="-g"
16672          cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 int
16680 main ()
16681 {
16682
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext
16688 if { (ac_try="$ac_compile"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_compile") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } && {
16701          test -z "$ac_cxx_werror_flag" ||
16702          test ! -s conftest.err
16703        } && test -s conftest.$ac_objext; then
16704   ac_cv_prog_cxx_g=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709
16710 fi
16711
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 fi
16717
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16719    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16720 fi
16721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16722 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16723 if test "$ac_test_CXXFLAGS" = set; then
16724   CXXFLAGS=$ac_save_CXXFLAGS
16725 elif test $ac_cv_prog_cxx_g = yes; then
16726   if test "$GXX" = yes; then
16727     CXXFLAGS="-g -O2"
16728   else
16729     CXXFLAGS="-g"
16730   fi
16731 else
16732   if test "$GXX" = yes; then
16733     CXXFLAGS="-O2"
16734   else
16735     CXXFLAGS=
16736   fi
16737 fi
16738 ac_ext=c
16739 ac_cpp='$CPP $CPPFLAGS'
16740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16743
16744
16745
16746
16747     ac_ext=cpp
16748 ac_cpp='$CXXCPP $CPPFLAGS'
16749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16752
16753     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16754 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16755 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764
16765 int
16766 main ()
16767 {
16768
16769              #ifndef __INTEL_COMPILER
16770                 choke me
16771              #endif
16772
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_compile") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } && {
16791          test -z "$ac_cxx_werror_flag" ||
16792          test ! -s conftest.err
16793        } && test -s conftest.$ac_objext; then
16794   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16800
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805
16806 fi
16807 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16808 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16809     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16810         :; INTELCXX=yes
16811     else
16812         :;
16813     fi
16814     ac_ext=c
16815 ac_cpp='$CPP $CPPFLAGS'
16816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16819
16820
16821
16822
16823         if test "x$GCXX" != "xyes"; then
16824         if test "xCXX" = "xC"; then
16825             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16826 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16827 if test "${bakefile_cv_c_exto+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 int
16838 main ()
16839 {
16840
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest.$ac_ext.o
16846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16847   (eval $ac_compile) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; then
16851   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16852     case $ac_file in
16853         conftest.$ac_ext.o)
16854             bakefile_cv_c_exto="-ext o"
16855             ;;
16856         *)
16857             ;;
16858     esac
16859 done
16860 else
16861   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16862 See \`config.log' for more details." >&5
16863 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16864 See \`config.log' for more details." >&2;}
16865    { (exit 1); exit 1; }; }
16866
16867 fi
16868
16869 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16870
16871 fi
16872 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16873 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16874 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16875     if test "c" = "c"; then
16876         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16877     fi
16878     if test "c" = "cxx"; then
16879         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16880     fi
16881 fi
16882
16883             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16884                 unset ac_cv_prog_cc_g
16885                 ac_test_CFLAGS=${CFLAGS+set}
16886 ac_save_CFLAGS=$CFLAGS
16887 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16888 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16889 if test "${ac_cv_prog_cc_g+set}" = set; then
16890   echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892   ac_save_c_werror_flag=$ac_c_werror_flag
16893    ac_c_werror_flag=yes
16894    ac_cv_prog_cc_g=no
16895    CFLAGS="-g"
16896    cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h.  */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h.  */
16902
16903 int
16904 main ()
16905 {
16906
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext
16912 if { (ac_try="$ac_compile"
16913 case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_compile") 2>conftest.er1
16919   ac_status=$?
16920   grep -v '^ *+' conftest.er1 >conftest.err
16921   rm -f conftest.er1
16922   cat conftest.err >&5
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } && {
16925          test -z "$ac_c_werror_flag" ||
16926          test ! -s conftest.err
16927        } && test -s conftest.$ac_objext; then
16928   ac_cv_prog_cc_g=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933         CFLAGS=""
16934       cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h.  */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h.  */
16940
16941 int
16942 main ()
16943 {
16944
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_compile") 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } && {
16963          test -z "$ac_c_werror_flag" ||
16964          test ! -s conftest.err
16965        } && test -s conftest.$ac_objext; then
16966   :
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971         ac_c_werror_flag=$ac_save_c_werror_flag
16972          CFLAGS="-g"
16973          cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h.  */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h.  */
16979
16980 int
16981 main ()
16982 {
16983
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext
16989 if { (ac_try="$ac_compile"
16990 case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_compile") 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } && {
17002          test -z "$ac_c_werror_flag" ||
17003          test ! -s conftest.err
17004        } && test -s conftest.$ac_objext; then
17005   ac_cv_prog_cc_g=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010
17011 fi
17012
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 fi
17015
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 fi
17018
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020    ac_c_werror_flag=$ac_save_c_werror_flag
17021 fi
17022 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17024 if test "$ac_test_CFLAGS" = set; then
17025   CFLAGS=$ac_save_CFLAGS
17026 elif test $ac_cv_prog_cc_g = yes; then
17027   if test "$GCC" = yes; then
17028     CFLAGS="-g -O2"
17029   else
17030     CFLAGS="-g"
17031   fi
17032 else
17033   if test "$GCC" = yes; then
17034     CFLAGS="-O2"
17035   else
17036     CFLAGS=
17037   fi
17038 fi
17039             fi
17040         fi
17041
17042                         case `uname -s` in
17043             AIX*)
17044
17045
17046     ac_ext=cpp
17047 ac_cpp='$CXXCPP $CPPFLAGS'
17048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17051
17052     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17053 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17054 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063
17064 int
17065 main ()
17066 {
17067
17068              #ifndef __xlC__
17069                 choke me
17070              #endif
17071
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext
17077 if { (ac_try="$ac_compile"
17078 case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_compile") 2>conftest.er1
17084   ac_status=$?
17085   grep -v '^ *+' conftest.er1 >conftest.err
17086   rm -f conftest.er1
17087   cat conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } && {
17090          test -z "$ac_cxx_werror_flag" ||
17091          test ! -s conftest.err
17092        } && test -s conftest.$ac_objext; then
17093   bakefile_cv_cxx_compiler___xlC__=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098         bakefile_cv_cxx_compiler___xlC__=no
17099
17100 fi
17101
17102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103
17104
17105 fi
17106 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17107 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17108     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17109         :; XLCXX=yes
17110     else
17111         :;
17112     fi
17113     ac_ext=c
17114 ac_cpp='$CPP $CPPFLAGS'
17115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17118
17119
17120
17121                 ;;
17122
17123             Darwin)
17124
17125
17126     ac_ext=cpp
17127 ac_cpp='$CXXCPP $CPPFLAGS'
17128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17131
17132     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17133 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17134 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17135   echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137   cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h.  */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h.  */
17143
17144 int
17145 main ()
17146 {
17147
17148              #ifndef __MWERKS__
17149                 choke me
17150              #endif
17151
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (ac_try="$ac_compile"
17158 case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_compile") 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } && {
17170          test -z "$ac_cxx_werror_flag" ||
17171          test ! -s conftest.err
17172        } && test -s conftest.$ac_objext; then
17173   bakefile_cv_cxx_compiler___MWERKS__=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178         bakefile_cv_cxx_compiler___MWERKS__=no
17179
17180 fi
17181
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183
17184
17185 fi
17186 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17187 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17188     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17189         :; MWCXX=yes
17190     else
17191         :;
17192     fi
17193     ac_ext=c
17194 ac_cpp='$CPP $CPPFLAGS'
17195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17198
17199
17200
17201
17202
17203     ac_ext=cpp
17204 ac_cpp='$CXXCPP $CPPFLAGS'
17205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17208
17209     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17210 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17211 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214   cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h.  */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h.  */
17220
17221 int
17222 main ()
17223 {
17224
17225              #ifndef __xlC__
17226                 choke me
17227              #endif
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_compile") 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } && {
17247          test -z "$ac_cxx_werror_flag" ||
17248          test ! -s conftest.err
17249        } && test -s conftest.$ac_objext; then
17250   bakefile_cv_cxx_compiler___xlC__=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         bakefile_cv_cxx_compiler___xlC__=no
17256
17257 fi
17258
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260
17261
17262 fi
17263 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17264 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17265     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17266         :; XLCXX=yes
17267     else
17268         :;
17269     fi
17270     ac_ext=c
17271 ac_cpp='$CPP $CPPFLAGS'
17272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17275
17276
17277
17278                 ;;
17279
17280             IRIX*)
17281
17282
17283     ac_ext=cpp
17284 ac_cpp='$CXXCPP $CPPFLAGS'
17285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17288
17289     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17290 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17291 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300
17301 int
17302 main ()
17303 {
17304
17305              #ifndef _SGI_COMPILER_VERSION
17306                 choke me
17307              #endif
17308
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (ac_try="$ac_compile"
17315 case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_compile") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_cxx_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest.$ac_objext; then
17330   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17336
17337 fi
17338
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340
17341
17342 fi
17343 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17344 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17345     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17346         :; SGICXX=yes
17347     else
17348         :;
17349     fi
17350     ac_ext=c
17351 ac_cpp='$CPP $CPPFLAGS'
17352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17355
17356
17357
17358                 ;;
17359
17360             Linux*)
17361
17362
17363     ac_ext=cpp
17364 ac_cpp='$CXXCPP $CPPFLAGS'
17365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368
17369     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17370 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17371 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374   cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h.  */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h.  */
17380
17381 int
17382 main ()
17383 {
17384
17385              #ifndef __SUNPRO_CC
17386                 choke me
17387              #endif
17388
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext
17394 if { (ac_try="$ac_compile"
17395 case "(($ac_try" in
17396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397   *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400   (eval "$ac_compile") 2>conftest.er1
17401   ac_status=$?
17402   grep -v '^ *+' conftest.er1 >conftest.err
17403   rm -f conftest.er1
17404   cat conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } && {
17407          test -z "$ac_cxx_werror_flag" ||
17408          test ! -s conftest.err
17409        } && test -s conftest.$ac_objext; then
17410   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17416
17417 fi
17418
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420
17421
17422 fi
17423 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17424 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17425     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17426         :; SUNCXX=yes
17427     else
17428         :;
17429     fi
17430     ac_ext=c
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17435
17436
17437
17438                 ;;
17439
17440             HP-UX*)
17441
17442
17443     ac_ext=cpp
17444 ac_cpp='$CXXCPP $CPPFLAGS'
17445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17448
17449     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17450 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17451 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460
17461 int
17462 main ()
17463 {
17464
17465              #ifndef __HP_aCC
17466                 choke me
17467              #endif
17468
17469   ;
17470   return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext
17474 if { (ac_try="$ac_compile"
17475 case "(($ac_try" in
17476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477   *) ac_try_echo=$ac_try;;
17478 esac
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480   (eval "$ac_compile") 2>conftest.er1
17481   ac_status=$?
17482   grep -v '^ *+' conftest.er1 >conftest.err
17483   rm -f conftest.er1
17484   cat conftest.err >&5
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } && {
17487          test -z "$ac_cxx_werror_flag" ||
17488          test ! -s conftest.err
17489        } && test -s conftest.$ac_objext; then
17490   bakefile_cv_cxx_compiler___HP_aCC=yes
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495         bakefile_cv_cxx_compiler___HP_aCC=no
17496
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17500
17501
17502 fi
17503 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17504 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17505     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17506         :; HPCXX=yes
17507     else
17508         :;
17509     fi
17510     ac_ext=c
17511 ac_cpp='$CPP $CPPFLAGS'
17512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17515
17516
17517
17518                 ;;
17519
17520             OSF1)
17521
17522
17523     ac_ext=cpp
17524 ac_cpp='$CXXCPP $CPPFLAGS'
17525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17528
17529     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17530 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17531 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540
17541 int
17542 main ()
17543 {
17544
17545              #ifndef __DECCXX
17546                 choke me
17547              #endif
17548
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (ac_try="$ac_compile"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_compile") 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } && {
17567          test -z "$ac_cxx_werror_flag" ||
17568          test ! -s conftest.err
17569        } && test -s conftest.$ac_objext; then
17570   bakefile_cv_cxx_compiler___DECCXX=yes
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575         bakefile_cv_cxx_compiler___DECCXX=no
17576
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580
17581
17582 fi
17583 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17584 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17585     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17586         :; COMPAQCXX=yes
17587     else
17588         :;
17589     fi
17590     ac_ext=c
17591 ac_cpp='$CPP $CPPFLAGS'
17592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17595
17596
17597
17598                 ;;
17599
17600             SunOS)
17601
17602
17603     ac_ext=cpp
17604 ac_cpp='$CXXCPP $CPPFLAGS'
17605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17608
17609     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17610 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17611 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h.  */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h.  */
17620
17621 int
17622 main ()
17623 {
17624
17625              #ifndef __SUNPRO_CC
17626                 choke me
17627              #endif
17628
17629   ;
17630   return 0;
17631 }
17632 _ACEOF
17633 rm -f conftest.$ac_objext
17634 if { (ac_try="$ac_compile"
17635 case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_compile") 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } && {
17647          test -z "$ac_cxx_werror_flag" ||
17648          test ! -s conftest.err
17649        } && test -s conftest.$ac_objext; then
17650   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17651 else
17652   echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17656
17657 fi
17658
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660
17661
17662 fi
17663 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17664 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17665     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17666         :; SUNCXX=yes
17667     else
17668         :;
17669     fi
17670     ac_ext=c
17671 ac_cpp='$CPP $CPPFLAGS'
17672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17675
17676
17677
17678                 ;;
17679         esac
17680     fi
17681
17682
17683
17684 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17685     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17686 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17687    { (exit 1); exit 1; }; }
17688 fi
17689
17690 if test "x$SUNCXX" != xyes; then
17691     if test -n "$ac_tool_prefix"; then
17692   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17693 set dummy ${ac_tool_prefix}ar; ac_word=$2
17694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17696 if test "${ac_cv_prog_AR+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   if test -n "$AR"; then
17700   ac_cv_prog_AR="$AR" # Let the user override the test.
17701 else
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17704 do
17705   IFS=$as_save_IFS
17706   test -z "$as_dir" && as_dir=.
17707   for ac_exec_ext in '' $ac_executable_extensions; do
17708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17709     ac_cv_prog_AR="${ac_tool_prefix}ar"
17710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17711     break 2
17712   fi
17713 done
17714 done
17715 IFS=$as_save_IFS
17716
17717 fi
17718 fi
17719 AR=$ac_cv_prog_AR
17720 if test -n "$AR"; then
17721   { echo "$as_me:$LINENO: result: $AR" >&5
17722 echo "${ECHO_T}$AR" >&6; }
17723 else
17724   { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726 fi
17727
17728
17729 fi
17730 if test -z "$ac_cv_prog_AR"; then
17731   ac_ct_AR=$AR
17732   # Extract the first word of "ar", so it can be a program name with args.
17733 set dummy ar; ac_word=$2
17734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17737   echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739   if test -n "$ac_ct_AR"; then
17740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17741 else
17742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17743 for as_dir in $PATH
17744 do
17745   IFS=$as_save_IFS
17746   test -z "$as_dir" && as_dir=.
17747   for ac_exec_ext in '' $ac_executable_extensions; do
17748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17749     ac_cv_prog_ac_ct_AR="ar"
17750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17751     break 2
17752   fi
17753 done
17754 done
17755 IFS=$as_save_IFS
17756
17757 fi
17758 fi
17759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17760 if test -n "$ac_ct_AR"; then
17761   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17762 echo "${ECHO_T}$ac_ct_AR" >&6; }
17763 else
17764   { echo "$as_me:$LINENO: result: no" >&5
17765 echo "${ECHO_T}no" >&6; }
17766 fi
17767
17768   if test "x$ac_ct_AR" = x; then
17769     AR=""
17770   else
17771     case $cross_compiling:$ac_tool_warned in
17772 yes:)
17773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17774 whose name does not start with the host triplet.  If you think this
17775 configuration is useful to you, please write to autoconf@gnu.org." >&5
17776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17777 whose name does not start with the host triplet.  If you think this
17778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17779 ac_tool_warned=yes ;;
17780 esac
17781     AR=$ac_ct_AR
17782   fi
17783 else
17784   AR="$ac_cv_prog_AR"
17785 fi
17786
17787     if test "x$AR" = "x" ; then
17788         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17789 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17790    { (exit 1); exit 1; }; }
17791     fi
17792 fi
17793
17794 retest_macosx_linking=no
17795
17796 #if test "$wxUSE_MAC" = 1; then
17797     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17798                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17799             # Implicitly turn on the new --with-macosx-sdk using the default
17800             # SDK which provides the behavior this option has always had.
17801             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17802                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17803 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17804                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17805 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17806                 wxUSE_MACOSX_SDK=yes
17807             fi
17808         else
17809             # Complain to user if he specified an argument to --enable-universal_binary
17810             # and also 1) specified --with-macosx-sdk using the default (yes) or
17811             # 2) specified --with-macosx-sdk using a path or 3) specified
17812             # --without-macosx-sdk (no).
17813             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17814                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17815 See \`config.log' for more details." >&5
17816 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17817 See \`config.log' for more details." >&2;}
17818    { (exit 1); exit 1; }; }
17819             else
17820                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17821                 # special-case the empty string because the below test simply
17822                 # converts "no" to the empty string anyway.
17823                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17824                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17825 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17826             fi
17827         fi
17828                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17829         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17830         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17831         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
17832         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
17833         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17834                                                                                                                 retest_macosx_linking=yes
17835
17836                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17837 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17838         bk_use_pch=no
17839     fi
17840 #fi
17841
17842 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17843     wxUSE_MACOSX_SDK=
17844 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17845     # TODO: Search for most recent SDK and use it.
17846     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17847 fi
17848
17849
17850 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17851     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17852 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17853     if ! test -d "$wxUSE_MACOSX_SDK"; then
17854         { { echo "$as_me:$LINENO: error: not found
17855 See \`config.log' for more details." >&5
17856 echo "$as_me: error: not found
17857 See \`config.log' for more details." >&2;}
17858    { (exit 1); exit 1; }; }
17859     else
17860         { echo "$as_me:$LINENO: result: exists" >&5
17861 echo "${ECHO_T}exists" >&6; }
17862     fi
17863     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17864     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17865     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17866     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17867     retest_macosx_linking=yes
17868             fi
17869
17870 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17871     wxUSE_MACOSX_VERSION_MIN=
17872 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17873     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17874         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17875 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17876
17877         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/'`
17878
17879         # If that failed, try again with the new key
17880         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17881
17882             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/'`
17883
17884         fi
17885
17886         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17887             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17888             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17889 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17890         else
17891             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17892 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17893             wxUSE_MACOSX_VERSION_MIN=
17894         fi
17895     else
17896         wxUSE_MACOSX_VERSION_MIN=
17897     fi
17898 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
17899     if test "$wxUSE_MAC" = 1; then
17900         # otherwise configure stops on leopard for universal_binary
17901         wxUSE_MACOSX_VERSION_MIN=10.4
17902     fi
17903 fi
17904
17905 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17906     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17907     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17908     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17909     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17910     retest_macosx_linking=yes
17911 fi
17912
17913 if test "x$retest_macosx_linking" = "xyes"; then
17914     ac_ext=c
17915 ac_cpp='$CPP $CPPFLAGS'
17916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919
17920     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17921 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17922     cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 int
17930 main ()
17931 {
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_link") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && {
17951          test -z "$ac_c_werror_flag" ||
17952          test ! -s conftest.err
17953        } && test -s conftest$ac_exeext &&
17954        $as_test_x conftest$ac_exeext; then
17955   { echo "$as_me:$LINENO: result: yes" >&5
17956 echo "${ECHO_T}yes" >&6; }
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17962 See \`config.log' for more details." >&5
17963 echo "$as_me: error: no.  Try a different SDK
17964 See \`config.log' for more details." >&2;}
17965    { (exit 1); exit 1; }; }; exit 1
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17969       conftest$ac_exeext conftest.$ac_ext
17970     ac_ext=c
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976
17977     ac_ext=cpp
17978 ac_cpp='$CXXCPP $CPPFLAGS'
17979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17982
17983     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17984 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17985     cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991
17992 int
17993 main ()
17994 {
17995
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (ac_try="$ac_link"
18002 case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_link") 2>conftest.er1
18008   ac_status=$?
18009   grep -v '^ *+' conftest.er1 >conftest.err
18010   rm -f conftest.er1
18011   cat conftest.err >&5
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); } && {
18014          test -z "$ac_cxx_werror_flag" ||
18015          test ! -s conftest.err
18016        } && test -s conftest$ac_exeext &&
18017        $as_test_x conftest$ac_exeext; then
18018   { echo "$as_me:$LINENO: result: yes" >&5
18019 echo "${ECHO_T}yes" >&6; }
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18025 See \`config.log' for more details." >&5
18026 echo "$as_me: error: no.  Try a different SDK
18027 See \`config.log' for more details." >&2;}
18028    { (exit 1); exit 1; }; }; exit 1
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18032       conftest$ac_exeext conftest.$ac_ext
18033     ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039 fi
18040
18041
18042 case "${host}" in
18043
18044                 *-*-darwin* )
18045         INSTALL_PROGRAM="cp -fp"
18046         INSTALL_DATA="cp -fp"
18047         ;;
18048     *)
18049         ;;
18050 esac
18051
18052
18053 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18054     CXXFLAGS="-qunique $CXXFLAGS"
18055 fi
18056
18057 case "${host}" in
18058   powerpc-*-darwin* )
18059     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18060 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18061     cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h.  */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h.  */
18067
18068 int
18069 main ()
18070 {
18071 #ifndef __POWERPC__
18072         choke me for lack of PowerPC
18073 #endif
18074
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (ac_try="$ac_compile"
18081 case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_compile") 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } && {
18093          test -z "$ac_c_werror_flag" ||
18094          test ! -s conftest.err
18095        } && test -s conftest.$ac_objext; then
18096   { echo "$as_me:$LINENO: result: yes" >&5
18097 echo "${ECHO_T}yes" >&6; }
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102         { echo "$as_me:$LINENO: result: no" >&5
18103 echo "${ECHO_T}no" >&6; }
18104         cat >>confdefs.h <<\_ACEOF
18105 #define __POWERPC__ 1
18106 _ACEOF
18107
18108
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112   ;;
18113 esac
18114
18115 case "${host}" in
18116   *-*-darwin* )
18117     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18118 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18119     cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h.  */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h.  */
18125 #include <CoreFoundation/CFBase.h>
18126
18127 int
18128 main ()
18129 {
18130
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext
18136 if { (ac_try="$ac_compile"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_compile") 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } && {
18149          test -z "$ac_c_werror_flag" ||
18150          test ! -s conftest.err
18151        } && test -s conftest.$ac_objext; then
18152   { echo "$as_me:$LINENO: result: yes" >&5
18153 echo "${ECHO_T}yes" >&6; }
18154 else
18155   echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         { echo "$as_me:$LINENO: result: no" >&5
18159 echo "${ECHO_T}no" >&6; }
18160         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18161 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18162         cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168 #define __CF_USE_FRAMEWORK_INCLUDES__
18169 #include <CoreFoundation/CFBase.h>
18170
18171 int
18172 main ()
18173 {
18174
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext
18180 if { (ac_try="$ac_compile"
18181 case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_compile") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest.$ac_objext; then
18196   { echo "$as_me:$LINENO: result: yes" >&5
18197 echo "${ECHO_T}yes" >&6; }
18198                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18204 See \`config.log' for more details." >&5
18205 echo "$as_me: error: no.  CoreFoundation not available.
18206 See \`config.log' for more details." >&2;}
18207    { (exit 1); exit 1; }; }
18208
18209 fi
18210
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212
18213
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217   ;;
18218 esac
18219
18220 wants_win32=0
18221 doesnt_want_win32=0
18222 case "${host}" in
18223   *-*-cygwin*)
18224       if test "$wxUSE_MSW" = 1 ; then
18225         wants_win32=1
18226       else
18227                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18228 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18229 if test "${wx_cv_nocygwin+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232
18233                 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239
18240 int
18241 main ()
18242 {
18243
18244                         #ifdef __MINGW32__
18245                             choke me
18246                         #endif
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext
18253 if { (ac_try="$ac_compile"
18254 case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_compile") 2>conftest.er1
18260   ac_status=$?
18261   grep -v '^ *+' conftest.er1 >conftest.err
18262   rm -f conftest.er1
18263   cat conftest.err >&5
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); } && {
18266          test -z "$ac_c_werror_flag" ||
18267          test ! -s conftest.err
18268        } && test -s conftest.$ac_objext; then
18269   wx_cv_nocygwin=no
18270 else
18271   echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274         wx_cv_nocygwin=yes
18275
18276 fi
18277
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279
18280
18281 fi
18282 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18283 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18284
18285         if test "$wx_cv_nocygwin" = "yes"; then
18286             wants_win32=1
18287         else
18288             doesnt_want_win32=1
18289         fi
18290       fi
18291       if test "$wants_win32" = 1 ; then
18292         BAKEFILE_FORCE_PLATFORM=win32
18293       fi
18294   ;;
18295   *-*-mingw*)
18296       wants_win32=1
18297   ;;
18298 esac
18299
18300 if test "$wxUSE_WINE" = "yes"; then
18301     wants_win32=1
18302     LDFLAGS_GUI="-mwindows"
18303 fi
18304
18305 if test "$wants_win32" = 1 ; then
18306     USE_UNIX=0
18307     USE_WIN32=1
18308     cat >>confdefs.h <<\_ACEOF
18309 #define __WIN32__ 1
18310 _ACEOF
18311
18312     cat >>confdefs.h <<\_ACEOF
18313 #define __WIN95__ 1
18314 _ACEOF
18315
18316     cat >>confdefs.h <<\_ACEOF
18317 #define __WINDOWS__ 1
18318 _ACEOF
18319
18320     cat >>confdefs.h <<\_ACEOF
18321 #define __GNUWIN32__ 1
18322 _ACEOF
18323
18324     cat >>confdefs.h <<\_ACEOF
18325 #define STRICT 1
18326 _ACEOF
18327
18328 fi
18329 if test "$doesnt_want_win32" = 1 ; then
18330     USE_UNIX=1
18331     USE_WIN32=0
18332 fi
18333
18334 if test "$USE_UNIX" = 1 ; then
18335     wxUSE_UNIX=yes
18336     cat >>confdefs.h <<\_ACEOF
18337 #define __UNIX__ 1
18338 _ACEOF
18339
18340 fi
18341
18342 case "${host}" in
18343   *-pc-os2_emx | *-pc-os2-emx )
18344                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18345                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18346 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18347 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   ac_check_lib_save_LIBS=$LIBS
18351 LIBS="-lcExt  $LIBS"
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358
18359 /* Override any GCC internal prototype to avoid an error.
18360    Use char because int might match the return type of a GCC
18361    builtin and then its argument prototype would still apply.  */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 char drand48 ();
18366 int
18367 main ()
18368 {
18369 return drand48 ();
18370   ;
18371   return 0;
18372 }
18373 _ACEOF
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (ac_try="$ac_link"
18376 case "(($ac_try" in
18377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378   *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381   (eval "$ac_link") 2>conftest.er1
18382   ac_status=$?
18383   grep -v '^ *+' conftest.er1 >conftest.err
18384   rm -f conftest.er1
18385   cat conftest.err >&5
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } && {
18388          test -z "$ac_c_werror_flag" ||
18389          test ! -s conftest.err
18390        } && test -s conftest$ac_exeext &&
18391        $as_test_x conftest$ac_exeext; then
18392   ac_cv_lib_cExt_drand48=yes
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397         ac_cv_lib_cExt_drand48=no
18398 fi
18399
18400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18401       conftest$ac_exeext conftest.$ac_ext
18402 LIBS=$ac_check_lib_save_LIBS
18403 fi
18404 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18405 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18406 if test $ac_cv_lib_cExt_drand48 = yes; then
18407   LIBS="$LIBS -lcExt"
18408 fi
18409
18410       else
18411                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18412       fi
18413                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18414 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18415 if test "${wx_cv_gccversion+set}" = set; then
18416   echo $ECHO_N "(cached) $ECHO_C" >&6
18417 else
18418
18419           if test "$cross_compiling" = yes; then
18420                 wx_cv_gccversion="EMX2"
18421
18422 else
18423   cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429
18430                   #include <stdio.h>
18431
18432                   int main()
18433                   {
18434                       FILE *f=fopen("conftestval", "w");
18435                       if (!f) exit(1);
18436                       fprintf(f,
18437                   #if (__GNUC__ < 3)
18438                               "EMX2"
18439                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18440                               "EMX3"
18441                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18442                               "Innotek5"
18443                   #else
18444                               "Innotek6"
18445                   #endif
18446                       );
18447                       exit(0);
18448                   }
18449
18450 _ACEOF
18451 rm -f conftest$ac_exeext
18452 if { (ac_try="$ac_link"
18453 case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_link") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18462   { (case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_try") 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; }; then
18471   wx_cv_gccversion=`cat conftestval`
18472 else
18473   echo "$as_me: program exited with status $ac_status" >&5
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ( exit $ac_status )
18478 wx_cv_gccversion="EMX2"
18479 fi
18480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18481 fi
18482
18483
18484
18485 fi
18486 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18487 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18488       if test "$wx_cv_gccversion" = "EMX2"; then
18489           LIBS="$LIBS -lstdcpp"
18490           LDFLAGS="$LDFLAGS -Zsysv-signals"
18491       else
18492           if test "$wx_cv_gccversion" = "EMX3"; then
18493               LIBS="$LIBS -lstdcxx -lgcc"
18494               LDFLAGS="$LDFLAGS -Zsysv-signals"
18495           else
18496               LIBS="$LIBS -lstdc++"
18497           fi
18498       fi
18499       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18500         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18501 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18502         wxUSE_OMF=yes
18503         enable_omf=yes
18504       fi
18505         ;;
18506   *)
18507
18508       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18509 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18510 if test "${ac_cv_string_strcasecmp+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513
18514           cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h.  */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h.  */
18520
18521               #include <string.h>
18522
18523 int
18524 main ()
18525 {
18526
18527                   strcasecmp("foo", "bar");
18528
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (ac_try="$ac_link"
18535 case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540   (eval "$ac_link") 2>conftest.er1
18541   ac_status=$?
18542   grep -v '^ *+' conftest.er1 >conftest.err
18543   rm -f conftest.er1
18544   cat conftest.err >&5
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } && {
18547          test -z "$ac_c_werror_flag" ||
18548          test ! -s conftest.err
18549        } && test -s conftest$ac_exeext &&
18550        $as_test_x conftest$ac_exeext; then
18551   ac_cv_string_strcasecmp=yes
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         ac_cv_string_strcasecmp=no
18557
18558 fi
18559
18560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18561       conftest$ac_exeext conftest.$ac_ext
18562
18563 fi
18564 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18565 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18566
18567       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18568           cat >>confdefs.h <<\_ACEOF
18569 #define HAVE_STRCASECMP_IN_STRING_H 1
18570 _ACEOF
18571
18572       else
18573           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18574 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18575 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578
18579               cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586                   #include <strings.h>
18587
18588 int
18589 main ()
18590 {
18591
18592                       strcasecmp("foo", "bar");
18593
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest$ac_exeext &&
18615        $as_test_x conftest$ac_exeext; then
18616   ac_cv_strings_strcasecmp=yes
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621         ac_cv_strings_strcasecmp=no
18622
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626       conftest$ac_exeext conftest.$ac_ext
18627
18628 fi
18629 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18630 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18631
18632           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18633               cat >>confdefs.h <<\_ACEOF
18634 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18635 _ACEOF
18636
18637           else
18638               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18639 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18640    { (exit 1); exit 1; }; }
18641           fi
18642       fi
18643
18644         ;;
18645 esac
18646
18647
18648 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18650 if test "${ac_cv_header_stdc+set}" = set; then
18651   echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653   cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659 #include <stdlib.h>
18660 #include <stdarg.h>
18661 #include <string.h>
18662 #include <float.h>
18663
18664 int
18665 main ()
18666 {
18667
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext
18673 if { (ac_try="$ac_compile"
18674 case "(($ac_try" in
18675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676   *) ac_try_echo=$ac_try;;
18677 esac
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679   (eval "$ac_compile") 2>conftest.er1
18680   ac_status=$?
18681   grep -v '^ *+' conftest.er1 >conftest.err
18682   rm -f conftest.er1
18683   cat conftest.err >&5
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } && {
18686          test -z "$ac_c_werror_flag" ||
18687          test ! -s conftest.err
18688        } && test -s conftest.$ac_objext; then
18689   ac_cv_header_stdc=yes
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694         ac_cv_header_stdc=no
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698
18699 if test $ac_cv_header_stdc = yes; then
18700   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18701   cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707 #include <string.h>
18708
18709 _ACEOF
18710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18711   $EGREP "memchr" >/dev/null 2>&1; then
18712   :
18713 else
18714   ac_cv_header_stdc=no
18715 fi
18716 rm -f conftest*
18717
18718 fi
18719
18720 if test $ac_cv_header_stdc = yes; then
18721   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18722   cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h.  */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h.  */
18728 #include <stdlib.h>
18729
18730 _ACEOF
18731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18732   $EGREP "free" >/dev/null 2>&1; then
18733   :
18734 else
18735   ac_cv_header_stdc=no
18736 fi
18737 rm -f conftest*
18738
18739 fi
18740
18741 if test $ac_cv_header_stdc = yes; then
18742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18743   if test "$cross_compiling" = yes; then
18744   :
18745 else
18746   cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752 #include <ctype.h>
18753 #include <stdlib.h>
18754 #if ((' ' & 0x0FF) == 0x020)
18755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18757 #else
18758 # define ISLOWER(c) \
18759                    (('a' <= (c) && (c) <= 'i') \
18760                      || ('j' <= (c) && (c) <= 'r') \
18761                      || ('s' <= (c) && (c) <= 'z'))
18762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18763 #endif
18764
18765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18766 int
18767 main ()
18768 {
18769   int i;
18770   for (i = 0; i < 256; i++)
18771     if (XOR (islower (i), ISLOWER (i))
18772         || toupper (i) != TOUPPER (i))
18773       return 2;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_link") 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18788   { (case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_try") 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; }; then
18797   :
18798 else
18799   echo "$as_me: program exited with status $ac_status" >&5
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 ( exit $ac_status )
18804 ac_cv_header_stdc=no
18805 fi
18806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18807 fi
18808
18809
18810 fi
18811 fi
18812 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18813 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18814 if test $ac_cv_header_stdc = yes; then
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define STDC_HEADERS 1
18818 _ACEOF
18819
18820 fi
18821
18822 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18833                   inttypes.h stdint.h unistd.h
18834 do
18835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h.  */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h.  */
18847 $ac_includes_default
18848
18849 #include <$ac_header>
18850 _ACEOF
18851 rm -f conftest.$ac_objext
18852 if { (ac_try="$ac_compile"
18853 case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_compile") 2>conftest.er1
18859   ac_status=$?
18860   grep -v '^ *+' conftest.er1 >conftest.err
18861   rm -f conftest.er1
18862   cat conftest.err >&5
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } && {
18865          test -z "$ac_c_werror_flag" ||
18866          test ! -s conftest.err
18867        } && test -s conftest.$ac_objext; then
18868   eval "$as_ac_Header=yes"
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         eval "$as_ac_Header=no"
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877 fi
18878 ac_res=`eval echo '${'$as_ac_Header'}'`
18879                { echo "$as_me:$LINENO: result: $ac_res" >&5
18880 echo "${ECHO_T}$ac_res" >&6; }
18881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18882   cat >>confdefs.h <<_ACEOF
18883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18884 _ACEOF
18885
18886 fi
18887
18888 done
18889
18890
18891
18892
18893 for ac_header in langinfo.h wchar.h
18894 do
18895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907 $ac_includes_default
18908
18909 #include <$ac_header>
18910 _ACEOF
18911 rm -f conftest.$ac_objext
18912 if { (ac_try="$ac_compile"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_compile") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } && {
18925          test -z "$ac_c_werror_flag" ||
18926          test ! -s conftest.err
18927        } && test -s conftest.$ac_objext; then
18928   eval "$as_ac_Header=yes"
18929 else
18930   echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18932
18933         eval "$as_ac_Header=no"
18934 fi
18935
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937 fi
18938 ac_res=`eval echo '${'$as_ac_Header'}'`
18939                { echo "$as_me:$LINENO: result: $ac_res" >&5
18940 echo "${ECHO_T}$ac_res" >&6; }
18941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18942   cat >>confdefs.h <<_ACEOF
18943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18944 _ACEOF
18945
18946 fi
18947
18948 done
18949
18950
18951 if test "$ac_cv_header_wchar_h" != "yes"; then
18952
18953 for ac_header in wcstr.h
18954 do
18955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18959   echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961   cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 $ac_includes_default
18968
18969 #include <$ac_header>
18970 _ACEOF
18971 rm -f conftest.$ac_objext
18972 if { (ac_try="$ac_compile"
18973 case "(($ac_try" in
18974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975   *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978   (eval "$ac_compile") 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } && {
18985          test -z "$ac_c_werror_flag" ||
18986          test ! -s conftest.err
18987        } && test -s conftest.$ac_objext; then
18988   eval "$as_ac_Header=yes"
18989 else
18990   echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993         eval "$as_ac_Header=no"
18994 fi
18995
18996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 fi
18998 ac_res=`eval echo '${'$as_ac_Header'}'`
18999                { echo "$as_me:$LINENO: result: $ac_res" >&5
19000 echo "${ECHO_T}$ac_res" >&6; }
19001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19002   cat >>confdefs.h <<_ACEOF
19003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19004 _ACEOF
19005
19006 fi
19007
19008 done
19009
19010 fi
19011
19012 case "${host}" in
19013   *-pc-os2_emx | *-pc-os2-emx )
19014                   if test $ac_cv_header_langinfo_h = "yes" \
19015                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19016                      -o "$wx_cv_gccversion" = "EMX3" \
19017                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19018           LIBS="$LIBS -lintl"
19019       fi
19020   ;;
19021 esac
19022
19023 if test "$USE_UNIX" = 1 ; then
19024
19025 for ac_header in sys/select.h
19026 do
19027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h.  */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h.  */
19039 $ac_includes_default
19040
19041 #include <$ac_header>
19042 _ACEOF
19043 rm -f conftest.$ac_objext
19044 if { (ac_try="$ac_compile"
19045 case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050   (eval "$ac_compile") 2>conftest.er1
19051   ac_status=$?
19052   grep -v '^ *+' conftest.er1 >conftest.err
19053   rm -f conftest.er1
19054   cat conftest.err >&5
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); } && {
19057          test -z "$ac_c_werror_flag" ||
19058          test ! -s conftest.err
19059        } && test -s conftest.$ac_objext; then
19060   eval "$as_ac_Header=yes"
19061 else
19062   echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065         eval "$as_ac_Header=no"
19066 fi
19067
19068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 fi
19070 ac_res=`eval echo '${'$as_ac_Header'}'`
19071                { echo "$as_me:$LINENO: result: $ac_res" >&5
19072 echo "${ECHO_T}$ac_res" >&6; }
19073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19074   cat >>confdefs.h <<_ACEOF
19075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19076 _ACEOF
19077
19078 fi
19079
19080 done
19081
19082 fi
19083
19084
19085 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19086 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19087 if test "${ac_cv_c_const+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 int
19098 main ()
19099 {
19100 /* FIXME: Include the comments suggested by Paul. */
19101 #ifndef __cplusplus
19102   /* Ultrix mips cc rejects this.  */
19103   typedef int charset[2];
19104   const charset cs;
19105   /* SunOS 4.1.1 cc rejects this.  */
19106   char const *const *pcpcc;
19107   char **ppc;
19108   /* NEC SVR4.0.2 mips cc rejects this.  */
19109   struct point {int x, y;};
19110   static struct point const zero = {0,0};
19111   /* AIX XL C 1.02.0.0 rejects this.
19112      It does not let you subtract one const X* pointer from another in
19113      an arm of an if-expression whose if-part is not a constant
19114      expression */
19115   const char *g = "string";
19116   pcpcc = &g + (g ? g-g : 0);
19117   /* HPUX 7.0 cc rejects these. */
19118   ++pcpcc;
19119   ppc = (char**) pcpcc;
19120   pcpcc = (char const *const *) ppc;
19121   { /* SCO 3.2v4 cc rejects this.  */
19122     char *t;
19123     char const *s = 0 ? (char *) 0 : (char const *) 0;
19124
19125     *t++ = 0;
19126     if (s) return 0;
19127   }
19128   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19129     int x[] = {25, 17};
19130     const int *foo = &x[0];
19131     ++foo;
19132   }
19133   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19134     typedef const int *iptr;
19135     iptr p = 0;
19136     ++p;
19137   }
19138   { /* AIX XL C 1.02.0.0 rejects this saying
19139        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19140     struct s { int j; const int *ap[3]; };
19141     struct s *b; b->j = 5;
19142   }
19143   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19144     const int foo = 10;
19145     if (!foo) return 0;
19146   }
19147   return !cs[0] && !zero.x;
19148 #endif
19149
19150   ;
19151   return 0;
19152 }
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158   *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161   (eval "$ac_compile") 2>conftest.er1
19162   ac_status=$?
19163   grep -v '^ *+' conftest.er1 >conftest.err
19164   rm -f conftest.er1
19165   cat conftest.err >&5
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); } && {
19168          test -z "$ac_c_werror_flag" ||
19169          test ! -s conftest.err
19170        } && test -s conftest.$ac_objext; then
19171   ac_cv_c_const=yes
19172 else
19173   echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176         ac_cv_c_const=no
19177 fi
19178
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 fi
19181 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19182 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19183 if test $ac_cv_c_const = no; then
19184
19185 cat >>confdefs.h <<\_ACEOF
19186 #define const
19187 _ACEOF
19188
19189 fi
19190
19191 { echo "$as_me:$LINENO: checking for inline" >&5
19192 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19193 if test "${ac_cv_c_inline+set}" = set; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   ac_cv_c_inline=no
19197 for ac_kw in inline __inline__ __inline; do
19198   cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204 #ifndef __cplusplus
19205 typedef int foo_t;
19206 static $ac_kw foo_t static_foo () {return 0; }
19207 $ac_kw foo_t foo () {return 0; }
19208 #endif
19209
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_compile") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } && {
19225          test -z "$ac_c_werror_flag" ||
19226          test ! -s conftest.err
19227        } && test -s conftest.$ac_objext; then
19228   ac_cv_c_inline=$ac_kw
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233
19234 fi
19235
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237   test "$ac_cv_c_inline" != no && break
19238 done
19239
19240 fi
19241 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19242 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19243
19244
19245 case $ac_cv_c_inline in
19246   inline | yes) ;;
19247   *)
19248     case $ac_cv_c_inline in
19249       no) ac_val=;;
19250       *) ac_val=$ac_cv_c_inline;;
19251     esac
19252     cat >>confdefs.h <<_ACEOF
19253 #ifndef __cplusplus
19254 #define inline $ac_val
19255 #endif
19256 _ACEOF
19257     ;;
19258 esac
19259
19260
19261 { echo "$as_me:$LINENO: checking for short" >&5
19262 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19263 if test "${ac_cv_type_short+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 $ac_includes_default
19273 typedef short ac__type_new_;
19274 int
19275 main ()
19276 {
19277 if ((ac__type_new_ *) 0)
19278   return 0;
19279 if (sizeof (ac__type_new_))
19280   return 0;
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_cv_type_short=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         ac_cv_type_short=no
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 fi
19312 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19313 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19314
19315 # The cast to long int works around a bug in the HP C Compiler
19316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19318 # This bug is HP SR number 8606223364.
19319 { echo "$as_me:$LINENO: checking size of short" >&5
19320 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19321 if test "${ac_cv_sizeof_short+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   if test "$cross_compiling" = yes; then
19325   # Depending upon the size, compute the lo and hi bounds.
19326 cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332 $ac_includes_default
19333    typedef short ac__type_sizeof_;
19334 int
19335 main ()
19336 {
19337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19338 test_array [0] = 0
19339
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 rm -f conftest.$ac_objext
19345 if { (ac_try="$ac_compile"
19346 case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_compile") 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } && {
19358          test -z "$ac_c_werror_flag" ||
19359          test ! -s conftest.err
19360        } && test -s conftest.$ac_objext; then
19361   ac_lo=0 ac_mid=0
19362   while :; do
19363     cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369 $ac_includes_default
19370    typedef short ac__type_sizeof_;
19371 int
19372 main ()
19373 {
19374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19375 test_array [0] = 0
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (ac_try="$ac_compile"
19383 case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_compile") 2>conftest.er1
19389   ac_status=$?
19390   grep -v '^ *+' conftest.er1 >conftest.err
19391   rm -f conftest.er1
19392   cat conftest.err >&5
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); } && {
19395          test -z "$ac_c_werror_flag" ||
19396          test ! -s conftest.err
19397        } && test -s conftest.$ac_objext; then
19398   ac_hi=$ac_mid; break
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         ac_lo=`expr $ac_mid + 1`
19404                         if test $ac_lo -le $ac_mid; then
19405                           ac_lo= ac_hi=
19406                           break
19407                         fi
19408                         ac_mid=`expr 2 '*' $ac_mid + 1`
19409 fi
19410
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412   done
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417         cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 $ac_includes_default
19424    typedef short ac__type_sizeof_;
19425 int
19426 main ()
19427 {
19428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19429 test_array [0] = 0
19430
19431   ;
19432   return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext
19436 if { (ac_try="$ac_compile"
19437 case "(($ac_try" in
19438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439   *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442   (eval "$ac_compile") 2>conftest.er1
19443   ac_status=$?
19444   grep -v '^ *+' conftest.er1 >conftest.err
19445   rm -f conftest.er1
19446   cat conftest.err >&5
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } && {
19449          test -z "$ac_c_werror_flag" ||
19450          test ! -s conftest.err
19451        } && test -s conftest.$ac_objext; then
19452   ac_hi=-1 ac_mid=-1
19453   while :; do
19454     cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460 $ac_includes_default
19461    typedef short ac__type_sizeof_;
19462 int
19463 main ()
19464 {
19465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19466 test_array [0] = 0
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (ac_try="$ac_compile"
19474 case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_compile") 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } && {
19486          test -z "$ac_c_werror_flag" ||
19487          test ! -s conftest.err
19488        } && test -s conftest.$ac_objext; then
19489   ac_lo=$ac_mid; break
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         ac_hi=`expr '(' $ac_mid ')' - 1`
19495                         if test $ac_mid -le $ac_hi; then
19496                           ac_lo= ac_hi=
19497                           break
19498                         fi
19499                         ac_mid=`expr 2 '*' $ac_mid`
19500 fi
19501
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503   done
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508         ac_lo= ac_hi=
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 fi
19513
19514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19515 # Binary search between lo and hi bounds.
19516 while test "x$ac_lo" != "x$ac_hi"; do
19517   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 $ac_includes_default
19525    typedef short ac__type_sizeof_;
19526 int
19527 main ()
19528 {
19529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19530 test_array [0] = 0
19531
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_compile") 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } && {
19550          test -z "$ac_c_werror_flag" ||
19551          test ! -s conftest.err
19552        } && test -s conftest.$ac_objext; then
19553   ac_hi=$ac_mid
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558         ac_lo=`expr '(' $ac_mid ')' + 1`
19559 fi
19560
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 done
19563 case $ac_lo in
19564 ?*) ac_cv_sizeof_short=$ac_lo;;
19565 '') if test "$ac_cv_type_short" = yes; then
19566      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19567 See \`config.log' for more details." >&5
19568 echo "$as_me: error: cannot compute sizeof (short)
19569 See \`config.log' for more details." >&2;}
19570    { (exit 77); exit 77; }; }
19571    else
19572      ac_cv_sizeof_short=0
19573    fi ;;
19574 esac
19575 else
19576   cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 $ac_includes_default
19583    typedef short ac__type_sizeof_;
19584 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19585 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19586 #include <stdio.h>
19587 #include <stdlib.h>
19588 int
19589 main ()
19590 {
19591
19592   FILE *f = fopen ("conftest.val", "w");
19593   if (! f)
19594     return 1;
19595   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19596     {
19597       long int i = longval ();
19598       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19599         return 1;
19600       fprintf (f, "%ld\n", i);
19601     }
19602   else
19603     {
19604       unsigned long int i = ulongval ();
19605       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19606         return 1;
19607       fprintf (f, "%lu\n", i);
19608     }
19609   return ferror (f) || fclose (f) != 0;
19610
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_link") 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19626   { (case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_try") 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; }; then
19635   ac_cv_sizeof_short=`cat conftest.val`
19636 else
19637   echo "$as_me: program exited with status $ac_status" >&5
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ( exit $ac_status )
19642 if test "$ac_cv_type_short" = yes; then
19643      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19644 See \`config.log' for more details." >&5
19645 echo "$as_me: error: cannot compute sizeof (short)
19646 See \`config.log' for more details." >&2;}
19647    { (exit 77); exit 77; }; }
19648    else
19649      ac_cv_sizeof_short=0
19650    fi
19651 fi
19652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19653 fi
19654 rm -f conftest.val
19655 fi
19656 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19657 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19658
19659
19660
19661 cat >>confdefs.h <<_ACEOF
19662 #define SIZEOF_SHORT $ac_cv_sizeof_short
19663 _ACEOF
19664
19665
19666 { echo "$as_me:$LINENO: checking for void *" >&5
19667 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19668 if test "${ac_cv_type_void_p+set}" = set; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 $ac_includes_default
19678 typedef void * ac__type_new_;
19679 int
19680 main ()
19681 {
19682 if ((ac__type_new_ *) 0)
19683   return 0;
19684 if (sizeof (ac__type_new_))
19685   return 0;
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_cv_type_void_p=yes
19708 else
19709   echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712         ac_cv_type_void_p=no
19713 fi
19714
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 fi
19717 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19718 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19719
19720 # The cast to long int works around a bug in the HP C Compiler
19721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19723 # This bug is HP SR number 8606223364.
19724 { echo "$as_me:$LINENO: checking size of void *" >&5
19725 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19726 if test "${ac_cv_sizeof_void_p+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   if test "$cross_compiling" = yes; then
19730   # Depending upon the size, compute the lo and hi bounds.
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 $ac_includes_default
19738    typedef void * ac__type_sizeof_;
19739 int
19740 main ()
19741 {
19742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19743 test_array [0] = 0
19744
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756   (eval "$ac_compile") 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } && {
19763          test -z "$ac_c_werror_flag" ||
19764          test ! -s conftest.err
19765        } && test -s conftest.$ac_objext; then
19766   ac_lo=0 ac_mid=0
19767   while :; do
19768     cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775    typedef void * ac__type_sizeof_;
19776 int
19777 main ()
19778 {
19779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19780 test_array [0] = 0
19781
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (ac_try="$ac_compile"
19788 case "(($ac_try" in
19789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790   *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793   (eval "$ac_compile") 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } && {
19800          test -z "$ac_c_werror_flag" ||
19801          test ! -s conftest.err
19802        } && test -s conftest.$ac_objext; then
19803   ac_hi=$ac_mid; break
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808         ac_lo=`expr $ac_mid + 1`
19809                         if test $ac_lo -le $ac_mid; then
19810                           ac_lo= ac_hi=
19811                           break
19812                         fi
19813                         ac_mid=`expr 2 '*' $ac_mid + 1`
19814 fi
19815
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817   done
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828 $ac_includes_default
19829    typedef void * ac__type_sizeof_;
19830 int
19831 main ()
19832 {
19833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19834 test_array [0] = 0
19835
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_compile") 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && {
19854          test -z "$ac_c_werror_flag" ||
19855          test ! -s conftest.err
19856        } && test -s conftest.$ac_objext; then
19857   ac_hi=-1 ac_mid=-1
19858   while :; do
19859     cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 $ac_includes_default
19866    typedef void * ac__type_sizeof_;
19867 int
19868 main ()
19869 {
19870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19871 test_array [0] = 0
19872
19873   ;
19874   return 0;
19875 }
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_compile") 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } && {
19891          test -z "$ac_c_werror_flag" ||
19892          test ! -s conftest.err
19893        } && test -s conftest.$ac_objext; then
19894   ac_lo=$ac_mid; break
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899         ac_hi=`expr '(' $ac_mid ')' - 1`
19900                         if test $ac_mid -le $ac_hi; then
19901                           ac_lo= ac_hi=
19902                           break
19903                         fi
19904                         ac_mid=`expr 2 '*' $ac_mid`
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908   done
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913         ac_lo= ac_hi=
19914 fi
19915
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 fi
19918
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920 # Binary search between lo and hi bounds.
19921 while test "x$ac_lo" != "x$ac_hi"; do
19922   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19923   cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 $ac_includes_default
19930    typedef void * ac__type_sizeof_;
19931 int
19932 main ()
19933 {
19934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19935 test_array [0] = 0
19936
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && {
19955          test -z "$ac_c_werror_flag" ||
19956          test ! -s conftest.err
19957        } && test -s conftest.$ac_objext; then
19958   ac_hi=$ac_mid
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         ac_lo=`expr '(' $ac_mid ')' + 1`
19964 fi
19965
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19967 done
19968 case $ac_lo in
19969 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19970 '') if test "$ac_cv_type_void_p" = yes; then
19971      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19972 See \`config.log' for more details." >&5
19973 echo "$as_me: error: cannot compute sizeof (void *)
19974 See \`config.log' for more details." >&2;}
19975    { (exit 77); exit 77; }; }
19976    else
19977      ac_cv_sizeof_void_p=0
19978    fi ;;
19979 esac
19980 else
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 $ac_includes_default
19988    typedef void * ac__type_sizeof_;
19989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19991 #include <stdio.h>
19992 #include <stdlib.h>
19993 int
19994 main ()
19995 {
19996
19997   FILE *f = fopen ("conftest.val", "w");
19998   if (! f)
19999     return 1;
20000   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20001     {
20002       long int i = longval ();
20003       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20004         return 1;
20005       fprintf (f, "%ld\n", i);
20006     }
20007   else
20008     {
20009       unsigned long int i = ulongval ();
20010       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20011         return 1;
20012       fprintf (f, "%lu\n", i);
20013     }
20014   return ferror (f) || fclose (f) != 0;
20015
20016   ;
20017   return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest$ac_exeext
20021 if { (ac_try="$ac_link"
20022 case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_link") 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20031   { (case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036   (eval "$ac_try") 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; }; then
20040   ac_cv_sizeof_void_p=`cat conftest.val`
20041 else
20042   echo "$as_me: program exited with status $ac_status" >&5
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ( exit $ac_status )
20047 if test "$ac_cv_type_void_p" = yes; then
20048      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20049 See \`config.log' for more details." >&5
20050 echo "$as_me: error: cannot compute sizeof (void *)
20051 See \`config.log' for more details." >&2;}
20052    { (exit 77); exit 77; }; }
20053    else
20054      ac_cv_sizeof_void_p=0
20055    fi
20056 fi
20057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20058 fi
20059 rm -f conftest.val
20060 fi
20061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20062 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20063
20064
20065
20066 cat >>confdefs.h <<_ACEOF
20067 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20068 _ACEOF
20069
20070
20071 { echo "$as_me:$LINENO: checking for int" >&5
20072 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20073 if test "${ac_cv_type_int+set}" = set; then
20074   echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076   cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 $ac_includes_default
20083 typedef int ac__type_new_;
20084 int
20085 main ()
20086 {
20087 if ((ac__type_new_ *) 0)
20088   return 0;
20089 if (sizeof (ac__type_new_))
20090   return 0;
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_cv_type_int=yes
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117         ac_cv_type_int=no
20118 fi
20119
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20121 fi
20122 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20123 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20124
20125 # The cast to long int works around a bug in the HP C Compiler
20126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20128 # This bug is HP SR number 8606223364.
20129 { echo "$as_me:$LINENO: checking size of int" >&5
20130 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20131 if test "${ac_cv_sizeof_int+set}" = set; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134   if test "$cross_compiling" = yes; then
20135   # Depending upon the size, compute the lo and hi bounds.
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142 $ac_includes_default
20143    typedef int ac__type_sizeof_;
20144 int
20145 main ()
20146 {
20147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20148 test_array [0] = 0
20149
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_lo=0 ac_mid=0
20172   while :; do
20173     cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 $ac_includes_default
20180    typedef int ac__type_sizeof_;
20181 int
20182 main ()
20183 {
20184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20185 test_array [0] = 0
20186
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext
20192 if { (ac_try="$ac_compile"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_compile") 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && {
20205          test -z "$ac_c_werror_flag" ||
20206          test ! -s conftest.err
20207        } && test -s conftest.$ac_objext; then
20208   ac_hi=$ac_mid; break
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         ac_lo=`expr $ac_mid + 1`
20214                         if test $ac_lo -le $ac_mid; then
20215                           ac_lo= ac_hi=
20216                           break
20217                         fi
20218                         ac_mid=`expr 2 '*' $ac_mid + 1`
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222   done
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227         cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 $ac_includes_default
20234    typedef int ac__type_sizeof_;
20235 int
20236 main ()
20237 {
20238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20239 test_array [0] = 0
20240
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252   (eval "$ac_compile") 2>conftest.er1
20253   ac_status=$?
20254   grep -v '^ *+' conftest.er1 >conftest.err
20255   rm -f conftest.er1
20256   cat conftest.err >&5
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } && {
20259          test -z "$ac_c_werror_flag" ||
20260          test ! -s conftest.err
20261        } && test -s conftest.$ac_objext; then
20262   ac_hi=-1 ac_mid=-1
20263   while :; do
20264     cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 $ac_includes_default
20271    typedef int ac__type_sizeof_;
20272 int
20273 main ()
20274 {
20275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20276 test_array [0] = 0
20277
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest.$ac_objext
20283 if { (ac_try="$ac_compile"
20284 case "(($ac_try" in
20285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286   *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289   (eval "$ac_compile") 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } && {
20296          test -z "$ac_c_werror_flag" ||
20297          test ! -s conftest.err
20298        } && test -s conftest.$ac_objext; then
20299   ac_lo=$ac_mid; break
20300 else
20301   echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304         ac_hi=`expr '(' $ac_mid ')' - 1`
20305                         if test $ac_mid -le $ac_hi; then
20306                           ac_lo= ac_hi=
20307                           break
20308                         fi
20309                         ac_mid=`expr 2 '*' $ac_mid`
20310 fi
20311
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313   done
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318         ac_lo= ac_hi=
20319 fi
20320
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322 fi
20323
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325 # Binary search between lo and hi bounds.
20326 while test "x$ac_lo" != "x$ac_hi"; do
20327   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 $ac_includes_default
20335    typedef int ac__type_sizeof_;
20336 int
20337 main ()
20338 {
20339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20340 test_array [0] = 0
20341
20342   ;
20343   return 0;
20344 }
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (ac_try="$ac_compile"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_compile") 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } && {
20360          test -z "$ac_c_werror_flag" ||
20361          test ! -s conftest.err
20362        } && test -s conftest.$ac_objext; then
20363   ac_hi=$ac_mid
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368         ac_lo=`expr '(' $ac_mid ')' + 1`
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 done
20373 case $ac_lo in
20374 ?*) ac_cv_sizeof_int=$ac_lo;;
20375 '') if test "$ac_cv_type_int" = yes; then
20376      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20377 See \`config.log' for more details." >&5
20378 echo "$as_me: error: cannot compute sizeof (int)
20379 See \`config.log' for more details." >&2;}
20380    { (exit 77); exit 77; }; }
20381    else
20382      ac_cv_sizeof_int=0
20383    fi ;;
20384 esac
20385 else
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 $ac_includes_default
20393    typedef int ac__type_sizeof_;
20394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20396 #include <stdio.h>
20397 #include <stdlib.h>
20398 int
20399 main ()
20400 {
20401
20402   FILE *f = fopen ("conftest.val", "w");
20403   if (! f)
20404     return 1;
20405   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20406     {
20407       long int i = longval ();
20408       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20409         return 1;
20410       fprintf (f, "%ld\n", i);
20411     }
20412   else
20413     {
20414       unsigned long int i = ulongval ();
20415       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20416         return 1;
20417       fprintf (f, "%lu\n", i);
20418     }
20419   return ferror (f) || fclose (f) != 0;
20420
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_link") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   ac_cv_sizeof_int=`cat conftest.val`
20446 else
20447   echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 ( exit $ac_status )
20452 if test "$ac_cv_type_int" = yes; then
20453      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20454 See \`config.log' for more details." >&5
20455 echo "$as_me: error: cannot compute sizeof (int)
20456 See \`config.log' for more details." >&2;}
20457    { (exit 77); exit 77; }; }
20458    else
20459      ac_cv_sizeof_int=0
20460    fi
20461 fi
20462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20463 fi
20464 rm -f conftest.val
20465 fi
20466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20468
20469
20470
20471 cat >>confdefs.h <<_ACEOF
20472 #define SIZEOF_INT $ac_cv_sizeof_int
20473 _ACEOF
20474
20475
20476 { echo "$as_me:$LINENO: checking for long" >&5
20477 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20478 if test "${ac_cv_type_long+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487 $ac_includes_default
20488 typedef long ac__type_new_;
20489 int
20490 main ()
20491 {
20492 if ((ac__type_new_ *) 0)
20493   return 0;
20494 if (sizeof (ac__type_new_))
20495   return 0;
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_cv_type_long=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522         ac_cv_type_long=no
20523 fi
20524
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20529
20530 # The cast to long int works around a bug in the HP C Compiler
20531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20533 # This bug is HP SR number 8606223364.
20534 { echo "$as_me:$LINENO: checking size of long" >&5
20535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20536 if test "${ac_cv_sizeof_long+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   if test "$cross_compiling" = yes; then
20540   # Depending upon the size, compute the lo and hi bounds.
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 $ac_includes_default
20548    typedef long ac__type_sizeof_;
20549 int
20550 main ()
20551 {
20552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20553 test_array [0] = 0
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   ac_lo=0 ac_mid=0
20577   while :; do
20578     cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 $ac_includes_default
20585    typedef long ac__type_sizeof_;
20586 int
20587 main ()
20588 {
20589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20590 test_array [0] = 0
20591
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_compile") 2>conftest.er1
20604   ac_status=$?
20605   grep -v '^ *+' conftest.er1 >conftest.err
20606   rm -f conftest.er1
20607   cat conftest.err >&5
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } && {
20610          test -z "$ac_c_werror_flag" ||
20611          test ! -s conftest.err
20612        } && test -s conftest.$ac_objext; then
20613   ac_hi=$ac_mid; break
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618         ac_lo=`expr $ac_mid + 1`
20619                         if test $ac_lo -le $ac_mid; then
20620                           ac_lo= ac_hi=
20621                           break
20622                         fi
20623                         ac_mid=`expr 2 '*' $ac_mid + 1`
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627   done
20628 else
20629   echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632         cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20638 $ac_includes_default
20639    typedef long ac__type_sizeof_;
20640 int
20641 main ()
20642 {
20643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20644 test_array [0] = 0
20645
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 rm -f conftest.$ac_objext
20651 if { (ac_try="$ac_compile"
20652 case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657   (eval "$ac_compile") 2>conftest.er1
20658   ac_status=$?
20659   grep -v '^ *+' conftest.er1 >conftest.err
20660   rm -f conftest.er1
20661   cat conftest.err >&5
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } && {
20664          test -z "$ac_c_werror_flag" ||
20665          test ! -s conftest.err
20666        } && test -s conftest.$ac_objext; then
20667   ac_hi=-1 ac_mid=-1
20668   while :; do
20669     cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675 $ac_includes_default
20676    typedef long ac__type_sizeof_;
20677 int
20678 main ()
20679 {
20680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20681 test_array [0] = 0
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_compile") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest.$ac_objext; then
20704   ac_lo=$ac_mid; break
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_hi=`expr '(' $ac_mid ')' - 1`
20710                         if test $ac_mid -le $ac_hi; then
20711                           ac_lo= ac_hi=
20712                           break
20713                         fi
20714                         ac_mid=`expr 2 '*' $ac_mid`
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718   done
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         ac_lo= ac_hi=
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 # Binary search between lo and hi bounds.
20731 while test "x$ac_lo" != "x$ac_hi"; do
20732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 $ac_includes_default
20740    typedef long ac__type_sizeof_;
20741 int
20742 main ()
20743 {
20744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20745 test_array [0] = 0
20746
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext
20752 if { (ac_try="$ac_compile"
20753 case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_compile") 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } && {
20765          test -z "$ac_c_werror_flag" ||
20766          test ! -s conftest.err
20767        } && test -s conftest.$ac_objext; then
20768   ac_hi=$ac_mid
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773         ac_lo=`expr '(' $ac_mid ')' + 1`
20774 fi
20775
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 done
20778 case $ac_lo in
20779 ?*) ac_cv_sizeof_long=$ac_lo;;
20780 '') if test "$ac_cv_type_long" = yes; then
20781      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20782 See \`config.log' for more details." >&5
20783 echo "$as_me: error: cannot compute sizeof (long)
20784 See \`config.log' for more details." >&2;}
20785    { (exit 77); exit 77; }; }
20786    else
20787      ac_cv_sizeof_long=0
20788    fi ;;
20789 esac
20790 else
20791   cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 $ac_includes_default
20798    typedef long ac__type_sizeof_;
20799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20801 #include <stdio.h>
20802 #include <stdlib.h>
20803 int
20804 main ()
20805 {
20806
20807   FILE *f = fopen ("conftest.val", "w");
20808   if (! f)
20809     return 1;
20810   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20811     {
20812       long int i = longval ();
20813       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20814         return 1;
20815       fprintf (f, "%ld\n", i);
20816     }
20817   else
20818     {
20819       unsigned long int i = ulongval ();
20820       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20821         return 1;
20822       fprintf (f, "%lu\n", i);
20823     }
20824   return ferror (f) || fclose (f) != 0;
20825
20826   ;
20827   return 0;
20828 }
20829 _ACEOF
20830 rm -f conftest$ac_exeext
20831 if { (ac_try="$ac_link"
20832 case "(($ac_try" in
20833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834   *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837   (eval "$ac_link") 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20841   { (case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_try") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_cv_sizeof_long=`cat conftest.val`
20851 else
20852   echo "$as_me: program exited with status $ac_status" >&5
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 ( exit $ac_status )
20857 if test "$ac_cv_type_long" = yes; then
20858      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20859 See \`config.log' for more details." >&5
20860 echo "$as_me: error: cannot compute sizeof (long)
20861 See \`config.log' for more details." >&2;}
20862    { (exit 77); exit 77; }; }
20863    else
20864      ac_cv_sizeof_long=0
20865    fi
20866 fi
20867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 fi
20869 rm -f conftest.val
20870 fi
20871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20873
20874
20875
20876 cat >>confdefs.h <<_ACEOF
20877 #define SIZEOF_LONG $ac_cv_sizeof_long
20878 _ACEOF
20879
20880
20881 { echo "$as_me:$LINENO: checking for size_t" >&5
20882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20883 if test "${ac_cv_type_size_t+set}" = set; then
20884   echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886   cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 $ac_includes_default
20893 typedef size_t ac__type_new_;
20894 int
20895 main ()
20896 {
20897 if ((ac__type_new_ *) 0)
20898   return 0;
20899 if (sizeof (ac__type_new_))
20900   return 0;
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_cv_type_size_t=yes
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_cv_type_size_t=no
20928 fi
20929
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931 fi
20932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20934
20935 # The cast to long int works around a bug in the HP C Compiler
20936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20938 # This bug is HP SR number 8606223364.
20939 { echo "$as_me:$LINENO: checking size of size_t" >&5
20940 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20941 if test "${ac_cv_sizeof_size_t+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   if test "$cross_compiling" = yes; then
20945   # Depending upon the size, compute the lo and hi bounds.
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 $ac_includes_default
20953    typedef size_t ac__type_sizeof_;
20954 int
20955 main ()
20956 {
20957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20958 test_array [0] = 0
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_lo=0 ac_mid=0
20982   while :; do
20983     cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 $ac_includes_default
20990    typedef size_t ac__type_sizeof_;
20991 int
20992 main ()
20993 {
20994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20995 test_array [0] = 0
20996
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (ac_try="$ac_compile"
21003 case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_compile") 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } && {
21015          test -z "$ac_c_werror_flag" ||
21016          test ! -s conftest.err
21017        } && test -s conftest.$ac_objext; then
21018   ac_hi=$ac_mid; break
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         ac_lo=`expr $ac_mid + 1`
21024                         if test $ac_lo -le $ac_mid; then
21025                           ac_lo= ac_hi=
21026                           break
21027                         fi
21028                         ac_mid=`expr 2 '*' $ac_mid + 1`
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032   done
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 $ac_includes_default
21044    typedef size_t ac__type_sizeof_;
21045 int
21046 main ()
21047 {
21048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21049 test_array [0] = 0
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_compile") 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } && {
21069          test -z "$ac_c_werror_flag" ||
21070          test ! -s conftest.err
21071        } && test -s conftest.$ac_objext; then
21072   ac_hi=-1 ac_mid=-1
21073   while :; do
21074     cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081    typedef size_t ac__type_sizeof_;
21082 int
21083 main ()
21084 {
21085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21086 test_array [0] = 0
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_compile") 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } && {
21106          test -z "$ac_c_werror_flag" ||
21107          test ! -s conftest.err
21108        } && test -s conftest.$ac_objext; then
21109   ac_lo=$ac_mid; break
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_hi=`expr '(' $ac_mid ')' - 1`
21115                         if test $ac_mid -le $ac_hi; then
21116                           ac_lo= ac_hi=
21117                           break
21118                         fi
21119                         ac_mid=`expr 2 '*' $ac_mid`
21120 fi
21121
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123   done
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         ac_lo= ac_hi=
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 # Binary search between lo and hi bounds.
21136 while test "x$ac_lo" != "x$ac_hi"; do
21137   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21138   cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 $ac_includes_default
21145    typedef size_t ac__type_sizeof_;
21146 int
21147 main ()
21148 {
21149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21150 test_array [0] = 0
21151
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_compile") 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && {
21170          test -z "$ac_c_werror_flag" ||
21171          test ! -s conftest.err
21172        } && test -s conftest.$ac_objext; then
21173   ac_hi=$ac_mid
21174 else
21175   echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178         ac_lo=`expr '(' $ac_mid ')' + 1`
21179 fi
21180
21181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 done
21183 case $ac_lo in
21184 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21185 '') if test "$ac_cv_type_size_t" = yes; then
21186      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21187 See \`config.log' for more details." >&5
21188 echo "$as_me: error: cannot compute sizeof (size_t)
21189 See \`config.log' for more details." >&2;}
21190    { (exit 77); exit 77; }; }
21191    else
21192      ac_cv_sizeof_size_t=0
21193    fi ;;
21194 esac
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 $ac_includes_default
21203    typedef size_t ac__type_sizeof_;
21204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21206 #include <stdio.h>
21207 #include <stdlib.h>
21208 int
21209 main ()
21210 {
21211
21212   FILE *f = fopen ("conftest.val", "w");
21213   if (! f)
21214     return 1;
21215   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21216     {
21217       long int i = longval ();
21218       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21219         return 1;
21220       fprintf (f, "%ld\n", i);
21221     }
21222   else
21223     {
21224       unsigned long int i = ulongval ();
21225       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21226         return 1;
21227       fprintf (f, "%lu\n", i);
21228     }
21229   return ferror (f) || fclose (f) != 0;
21230
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_link") 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246   { (case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_try") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; }; then
21255   ac_cv_sizeof_size_t=`cat conftest.val`
21256 else
21257   echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261 ( exit $ac_status )
21262 if test "$ac_cv_type_size_t" = yes; then
21263      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21264 See \`config.log' for more details." >&5
21265 echo "$as_me: error: cannot compute sizeof (size_t)
21266 See \`config.log' for more details." >&2;}
21267    { (exit 77); exit 77; }; }
21268    else
21269      ac_cv_sizeof_size_t=0
21270    fi
21271 fi
21272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21273 fi
21274 rm -f conftest.val
21275 fi
21276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21278
21279
21280
21281 cat >>confdefs.h <<_ACEOF
21282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21283 _ACEOF
21284
21285
21286
21287 case "${host}" in
21288     arm-*-linux* )
21289         { echo "$as_me:$LINENO: checking for long long" >&5
21290 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21291 if test "${ac_cv_type_long_long+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294   cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h.  */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h.  */
21300 $ac_includes_default
21301 typedef long long ac__type_new_;
21302 int
21303 main ()
21304 {
21305 if ((ac__type_new_ *) 0)
21306   return 0;
21307 if (sizeof (ac__type_new_))
21308   return 0;
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_cv_type_long_long=yes
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         ac_cv_type_long_long=no
21336 fi
21337
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21339 fi
21340 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21341 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21342
21343 # The cast to long int works around a bug in the HP C Compiler
21344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21346 # This bug is HP SR number 8606223364.
21347 { echo "$as_me:$LINENO: checking size of long long" >&5
21348 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21349 if test "${ac_cv_sizeof_long_long+set}" = set; then
21350   echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352   if test "$cross_compiling" = yes; then
21353   # Depending upon the size, compute the lo and hi bounds.
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 $ac_includes_default
21361    typedef long long ac__type_sizeof_;
21362 int
21363 main ()
21364 {
21365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21366 test_array [0] = 0
21367
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376   *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379   (eval "$ac_compile") 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } && {
21386          test -z "$ac_c_werror_flag" ||
21387          test ! -s conftest.err
21388        } && test -s conftest.$ac_objext; then
21389   ac_lo=0 ac_mid=0
21390   while :; do
21391     cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 $ac_includes_default
21398    typedef long long ac__type_sizeof_;
21399 int
21400 main ()
21401 {
21402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21403 test_array [0] = 0
21404
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_compile") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && {
21423          test -z "$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        } && test -s conftest.$ac_objext; then
21426   ac_hi=$ac_mid; break
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_lo=`expr $ac_mid + 1`
21432                         if test $ac_lo -le $ac_mid; then
21433                           ac_lo= ac_hi=
21434                           break
21435                         fi
21436                         ac_mid=`expr 2 '*' $ac_mid + 1`
21437 fi
21438
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440   done
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451 $ac_includes_default
21452    typedef long long ac__type_sizeof_;
21453 int
21454 main ()
21455 {
21456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21457 test_array [0] = 0
21458
21459   ;
21460   return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467   *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470   (eval "$ac_compile") 2>conftest.er1
21471   ac_status=$?
21472   grep -v '^ *+' conftest.er1 >conftest.err
21473   rm -f conftest.er1
21474   cat conftest.err >&5
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } && {
21477          test -z "$ac_c_werror_flag" ||
21478          test ! -s conftest.err
21479        } && test -s conftest.$ac_objext; then
21480   ac_hi=-1 ac_mid=-1
21481   while :; do
21482     cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 $ac_includes_default
21489    typedef long long ac__type_sizeof_;
21490 int
21491 main ()
21492 {
21493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21494 test_array [0] = 0
21495
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_compile") 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } && {
21514          test -z "$ac_c_werror_flag" ||
21515          test ! -s conftest.err
21516        } && test -s conftest.$ac_objext; then
21517   ac_lo=$ac_mid; break
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522         ac_hi=`expr '(' $ac_mid ')' - 1`
21523                         if test $ac_mid -le $ac_hi; then
21524                           ac_lo= ac_hi=
21525                           break
21526                         fi
21527                         ac_mid=`expr 2 '*' $ac_mid`
21528 fi
21529
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531   done
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_lo= ac_hi=
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 # Binary search between lo and hi bounds.
21544 while test "x$ac_lo" != "x$ac_hi"; do
21545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 $ac_includes_default
21553    typedef long long ac__type_sizeof_;
21554 int
21555 main ()
21556 {
21557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21558 test_array [0] = 0
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_compile") 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } && {
21578          test -z "$ac_c_werror_flag" ||
21579          test ! -s conftest.err
21580        } && test -s conftest.$ac_objext; then
21581   ac_hi=$ac_mid
21582 else
21583   echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21585
21586         ac_lo=`expr '(' $ac_mid ')' + 1`
21587 fi
21588
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 done
21591 case $ac_lo in
21592 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21593 '') if test "$ac_cv_type_long_long" = yes; then
21594      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21595 See \`config.log' for more details." >&5
21596 echo "$as_me: error: cannot compute sizeof (long long)
21597 See \`config.log' for more details." >&2;}
21598    { (exit 77); exit 77; }; }
21599    else
21600      ac_cv_sizeof_long_long=0
21601    fi ;;
21602 esac
21603 else
21604   cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610 $ac_includes_default
21611    typedef long long ac__type_sizeof_;
21612 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21613 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21614 #include <stdio.h>
21615 #include <stdlib.h>
21616 int
21617 main ()
21618 {
21619
21620   FILE *f = fopen ("conftest.val", "w");
21621   if (! f)
21622     return 1;
21623   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21624     {
21625       long int i = longval ();
21626       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21627         return 1;
21628       fprintf (f, "%ld\n", i);
21629     }
21630   else
21631     {
21632       unsigned long int i = ulongval ();
21633       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21634         return 1;
21635       fprintf (f, "%lu\n", i);
21636     }
21637   return ferror (f) || fclose (f) != 0;
21638
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650   (eval "$ac_link") 2>&5
21651   ac_status=$?
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21654   { (case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_try") 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ac_cv_sizeof_long_long=`cat conftest.val`
21664 else
21665   echo "$as_me: program exited with status $ac_status" >&5
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ( exit $ac_status )
21670 if test "$ac_cv_type_long_long" = yes; then
21671      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21672 See \`config.log' for more details." >&5
21673 echo "$as_me: error: cannot compute sizeof (long long)
21674 See \`config.log' for more details." >&2;}
21675    { (exit 77); exit 77; }; }
21676    else
21677      ac_cv_sizeof_long_long=0
21678    fi
21679 fi
21680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21681 fi
21682 rm -f conftest.val
21683 fi
21684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21685 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21686
21687
21688
21689 cat >>confdefs.h <<_ACEOF
21690 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21691 _ACEOF
21692
21693
21694     ;;
21695     *-hp-hpux* )
21696         { echo "$as_me:$LINENO: checking for long long" >&5
21697 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21698 if test "${ac_cv_type_long_long+set}" = set; then
21699   echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701   cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h.  */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h.  */
21707 $ac_includes_default
21708 typedef long long ac__type_new_;
21709 int
21710 main ()
21711 {
21712 if ((ac__type_new_ *) 0)
21713   return 0;
21714 if (sizeof (ac__type_new_))
21715   return 0;
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_cv_type_long_long=yes
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742         ac_cv_type_long_long=no
21743 fi
21744
21745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 fi
21747 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21748 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21749
21750 # The cast to long int works around a bug in the HP C Compiler
21751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21753 # This bug is HP SR number 8606223364.
21754 { echo "$as_me:$LINENO: checking size of long long" >&5
21755 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21756 if test "${ac_cv_sizeof_long_long+set}" = set; then
21757   echo $ECHO_N "(cached) $ECHO_C" >&6
21758 else
21759   if test "$cross_compiling" = yes; then
21760   # Depending upon the size, compute the lo and hi bounds.
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 $ac_includes_default
21768    typedef long long ac__type_sizeof_;
21769 int
21770 main ()
21771 {
21772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21773 test_array [0] = 0
21774
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_compile") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } && {
21793          test -z "$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        } && test -s conftest.$ac_objext; then
21796   ac_lo=0 ac_mid=0
21797   while :; do
21798     cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 $ac_includes_default
21805    typedef long long ac__type_sizeof_;
21806 int
21807 main ()
21808 {
21809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21810 test_array [0] = 0
21811
21812   ;
21813   return 0;
21814 }
21815 _ACEOF
21816 rm -f conftest.$ac_objext
21817 if { (ac_try="$ac_compile"
21818 case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_compile") 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } && {
21830          test -z "$ac_c_werror_flag" ||
21831          test ! -s conftest.err
21832        } && test -s conftest.$ac_objext; then
21833   ac_hi=$ac_mid; break
21834 else
21835   echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838         ac_lo=`expr $ac_mid + 1`
21839                         if test $ac_lo -le $ac_mid; then
21840                           ac_lo= ac_hi=
21841                           break
21842                         fi
21843                         ac_mid=`expr 2 '*' $ac_mid + 1`
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847   done
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 $ac_includes_default
21859    typedef long long ac__type_sizeof_;
21860 int
21861 main ()
21862 {
21863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21864 test_array [0] = 0
21865
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_compile") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } && {
21884          test -z "$ac_c_werror_flag" ||
21885          test ! -s conftest.err
21886        } && test -s conftest.$ac_objext; then
21887   ac_hi=-1 ac_mid=-1
21888   while :; do
21889     cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895 $ac_includes_default
21896    typedef long long ac__type_sizeof_;
21897 int
21898 main ()
21899 {
21900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21901 test_array [0] = 0
21902
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_compile") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } && {
21921          test -z "$ac_c_werror_flag" ||
21922          test ! -s conftest.err
21923        } && test -s conftest.$ac_objext; then
21924   ac_lo=$ac_mid; break
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929         ac_hi=`expr '(' $ac_mid ')' - 1`
21930                         if test $ac_mid -le $ac_hi; then
21931                           ac_lo= ac_hi=
21932                           break
21933                         fi
21934                         ac_mid=`expr 2 '*' $ac_mid`
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938   done
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943         ac_lo= ac_hi=
21944 fi
21945
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 fi
21948
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 # Binary search between lo and hi bounds.
21951 while test "x$ac_lo" != "x$ac_hi"; do
21952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 $ac_includes_default
21960    typedef long long ac__type_sizeof_;
21961 int
21962 main ()
21963 {
21964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21965 test_array [0] = 0
21966
21967   ;
21968   return 0;
21969 }
21970 _ACEOF
21971 rm -f conftest.$ac_objext
21972 if { (ac_try="$ac_compile"
21973 case "(($ac_try" in
21974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975   *) ac_try_echo=$ac_try;;
21976 esac
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978   (eval "$ac_compile") 2>conftest.er1
21979   ac_status=$?
21980   grep -v '^ *+' conftest.er1 >conftest.err
21981   rm -f conftest.er1
21982   cat conftest.err >&5
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); } && {
21985          test -z "$ac_c_werror_flag" ||
21986          test ! -s conftest.err
21987        } && test -s conftest.$ac_objext; then
21988   ac_hi=$ac_mid
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         ac_lo=`expr '(' $ac_mid ')' + 1`
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 done
21998 case $ac_lo in
21999 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22000 '') if test "$ac_cv_type_long_long" = yes; then
22001      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22002 See \`config.log' for more details." >&5
22003 echo "$as_me: error: cannot compute sizeof (long long)
22004 See \`config.log' for more details." >&2;}
22005    { (exit 77); exit 77; }; }
22006    else
22007      ac_cv_sizeof_long_long=0
22008    fi ;;
22009 esac
22010 else
22011   cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 $ac_includes_default
22018    typedef long long ac__type_sizeof_;
22019 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22020 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22021 #include <stdio.h>
22022 #include <stdlib.h>
22023 int
22024 main ()
22025 {
22026
22027   FILE *f = fopen ("conftest.val", "w");
22028   if (! f)
22029     return 1;
22030   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22031     {
22032       long int i = longval ();
22033       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22034         return 1;
22035       fprintf (f, "%ld\n", i);
22036     }
22037   else
22038     {
22039       unsigned long int i = ulongval ();
22040       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22041         return 1;
22042       fprintf (f, "%lu\n", i);
22043     }
22044   return ferror (f) || fclose (f) != 0;
22045
22046   ;
22047   return 0;
22048 }
22049 _ACEOF
22050 rm -f conftest$ac_exeext
22051 if { (ac_try="$ac_link"
22052 case "(($ac_try" in
22053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054   *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057   (eval "$ac_link") 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22061   { (case "(($ac_try" in
22062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063   *) ac_try_echo=$ac_try;;
22064 esac
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066   (eval "$ac_try") 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); }; }; then
22070   ac_cv_sizeof_long_long=`cat conftest.val`
22071 else
22072   echo "$as_me: program exited with status $ac_status" >&5
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076 ( exit $ac_status )
22077 if test "$ac_cv_type_long_long" = yes; then
22078      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22079 See \`config.log' for more details." >&5
22080 echo "$as_me: error: cannot compute sizeof (long long)
22081 See \`config.log' for more details." >&2;}
22082    { (exit 77); exit 77; }; }
22083    else
22084      ac_cv_sizeof_long_long=0
22085    fi
22086 fi
22087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22088 fi
22089 rm -f conftest.val
22090 fi
22091 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22092 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22093
22094
22095
22096 cat >>confdefs.h <<_ACEOF
22097 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22098 _ACEOF
22099
22100
22101         if test "$ac_cv_sizeof_long_long" != 0; then
22102                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22103         fi
22104     ;;
22105     * )
22106         { echo "$as_me:$LINENO: checking for long long" >&5
22107 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22108 if test "${ac_cv_type_long_long+set}" = set; then
22109   echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117 $ac_includes_default
22118 typedef long long ac__type_new_;
22119 int
22120 main ()
22121 {
22122 if ((ac__type_new_ *) 0)
22123   return 0;
22124 if (sizeof (ac__type_new_))
22125   return 0;
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_cv_type_long_long=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         ac_cv_type_long_long=no
22153 fi
22154
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 fi
22157 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22158 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22159
22160 # The cast to long int works around a bug in the HP C Compiler
22161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22163 # This bug is HP SR number 8606223364.
22164 { echo "$as_me:$LINENO: checking size of long long" >&5
22165 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22166 if test "${ac_cv_sizeof_long_long+set}" = set; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   if test "$cross_compiling" = yes; then
22170   # Depending upon the size, compute the lo and hi bounds.
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 $ac_includes_default
22178    typedef long long ac__type_sizeof_;
22179 int
22180 main ()
22181 {
22182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22183 test_array [0] = 0
22184
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_compile") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } && {
22203          test -z "$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        } && test -s conftest.$ac_objext; then
22206   ac_lo=0 ac_mid=0
22207   while :; do
22208     cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h.  */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h.  */
22214 $ac_includes_default
22215    typedef long long ac__type_sizeof_;
22216 int
22217 main ()
22218 {
22219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22220 test_array [0] = 0
22221
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230   *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233   (eval "$ac_compile") 2>conftest.er1
22234   ac_status=$?
22235   grep -v '^ *+' conftest.er1 >conftest.err
22236   rm -f conftest.er1
22237   cat conftest.err >&5
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } && {
22240          test -z "$ac_c_werror_flag" ||
22241          test ! -s conftest.err
22242        } && test -s conftest.$ac_objext; then
22243   ac_hi=$ac_mid; break
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248         ac_lo=`expr $ac_mid + 1`
22249                         if test $ac_lo -le $ac_mid; then
22250                           ac_lo= ac_hi=
22251                           break
22252                         fi
22253                         ac_mid=`expr 2 '*' $ac_mid + 1`
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257   done
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h.  */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h.  */
22268 $ac_includes_default
22269    typedef long long ac__type_sizeof_;
22270 int
22271 main ()
22272 {
22273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22274 test_array [0] = 0
22275
22276   ;
22277   return 0;
22278 }
22279 _ACEOF
22280 rm -f conftest.$ac_objext
22281 if { (ac_try="$ac_compile"
22282 case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287   (eval "$ac_compile") 2>conftest.er1
22288   ac_status=$?
22289   grep -v '^ *+' conftest.er1 >conftest.err
22290   rm -f conftest.er1
22291   cat conftest.err >&5
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); } && {
22294          test -z "$ac_c_werror_flag" ||
22295          test ! -s conftest.err
22296        } && test -s conftest.$ac_objext; then
22297   ac_hi=-1 ac_mid=-1
22298   while :; do
22299     cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h.  */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h.  */
22305 $ac_includes_default
22306    typedef long long ac__type_sizeof_;
22307 int
22308 main ()
22309 {
22310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22311 test_array [0] = 0
22312
22313   ;
22314   return 0;
22315 }
22316 _ACEOF
22317 rm -f conftest.$ac_objext
22318 if { (ac_try="$ac_compile"
22319 case "(($ac_try" in
22320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321   *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324   (eval "$ac_compile") 2>conftest.er1
22325   ac_status=$?
22326   grep -v '^ *+' conftest.er1 >conftest.err
22327   rm -f conftest.er1
22328   cat conftest.err >&5
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); } && {
22331          test -z "$ac_c_werror_flag" ||
22332          test ! -s conftest.err
22333        } && test -s conftest.$ac_objext; then
22334   ac_lo=$ac_mid; break
22335 else
22336   echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22338
22339         ac_hi=`expr '(' $ac_mid ')' - 1`
22340                         if test $ac_mid -le $ac_hi; then
22341                           ac_lo= ac_hi=
22342                           break
22343                         fi
22344                         ac_mid=`expr 2 '*' $ac_mid`
22345 fi
22346
22347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348   done
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353         ac_lo= ac_hi=
22354 fi
22355
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 fi
22358
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 # Binary search between lo and hi bounds.
22361 while test "x$ac_lo" != "x$ac_hi"; do
22362   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22363   cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h.  */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h.  */
22369 $ac_includes_default
22370    typedef long long ac__type_sizeof_;
22371 int
22372 main ()
22373 {
22374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22375 test_array [0] = 0
22376
22377   ;
22378   return 0;
22379 }
22380 _ACEOF
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_compile") 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } && {
22395          test -z "$ac_c_werror_flag" ||
22396          test ! -s conftest.err
22397        } && test -s conftest.$ac_objext; then
22398   ac_hi=$ac_mid
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403         ac_lo=`expr '(' $ac_mid ')' + 1`
22404 fi
22405
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407 done
22408 case $ac_lo in
22409 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22410 '') if test "$ac_cv_type_long_long" = yes; then
22411      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22412 See \`config.log' for more details." >&5
22413 echo "$as_me: error: cannot compute sizeof (long long)
22414 See \`config.log' for more details." >&2;}
22415    { (exit 77); exit 77; }; }
22416    else
22417      ac_cv_sizeof_long_long=0
22418    fi ;;
22419 esac
22420 else
22421   cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h.  */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h.  */
22427 $ac_includes_default
22428    typedef long long ac__type_sizeof_;
22429 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22430 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22431 #include <stdio.h>
22432 #include <stdlib.h>
22433 int
22434 main ()
22435 {
22436
22437   FILE *f = fopen ("conftest.val", "w");
22438   if (! f)
22439     return 1;
22440   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22441     {
22442       long int i = longval ();
22443       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22444         return 1;
22445       fprintf (f, "%ld\n", i);
22446     }
22447   else
22448     {
22449       unsigned long int i = ulongval ();
22450       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22451         return 1;
22452       fprintf (f, "%lu\n", i);
22453     }
22454   return ferror (f) || fclose (f) != 0;
22455
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest$ac_exeext
22461 if { (ac_try="$ac_link"
22462 case "(($ac_try" in
22463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464   *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467   (eval "$ac_link") 2>&5
22468   ac_status=$?
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22471   { (case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_try") 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; }; then
22480   ac_cv_sizeof_long_long=`cat conftest.val`
22481 else
22482   echo "$as_me: program exited with status $ac_status" >&5
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 ( exit $ac_status )
22487 if test "$ac_cv_type_long_long" = yes; then
22488      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22489 See \`config.log' for more details." >&5
22490 echo "$as_me: error: cannot compute sizeof (long long)
22491 See \`config.log' for more details." >&2;}
22492    { (exit 77); exit 77; }; }
22493    else
22494      ac_cv_sizeof_long_long=0
22495    fi
22496 fi
22497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22498 fi
22499 rm -f conftest.val
22500 fi
22501 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22502 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22503
22504
22505
22506 cat >>confdefs.h <<_ACEOF
22507 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22508 _ACEOF
22509
22510
22511 esac
22512
22513 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22514 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22515 if test "${ac_cv_type_wchar_t+set}" = set; then
22516   echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518   cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524
22525         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22526         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22527         #  error "fake wchar_t"
22528         #endif
22529         #ifdef HAVE_WCHAR_H
22530         #  ifdef __CYGWIN__
22531         #    include <stddef.h>
22532         #  endif
22533         #  include <wchar.h>
22534         #endif
22535         #ifdef HAVE_STDLIB_H
22536         #  include <stdlib.h>
22537         #endif
22538         #include <stdio.h>
22539
22540
22541
22542 typedef wchar_t ac__type_new_;
22543 int
22544 main ()
22545 {
22546 if ((ac__type_new_ *) 0)
22547   return 0;
22548 if (sizeof (ac__type_new_))
22549   return 0;
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_cv_type_wchar_t=yes
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_cv_type_wchar_t=no
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22582 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22583
22584 # The cast to long int works around a bug in the HP C Compiler
22585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22587 # This bug is HP SR number 8606223364.
22588 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22589 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22590 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22591   echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593   if test "$cross_compiling" = yes; then
22594   # Depending upon the size, compute the lo and hi bounds.
22595 cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601
22602         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22603         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22604         #  error "fake wchar_t"
22605         #endif
22606         #ifdef HAVE_WCHAR_H
22607         #  ifdef __CYGWIN__
22608         #    include <stddef.h>
22609         #  endif
22610         #  include <wchar.h>
22611         #endif
22612         #ifdef HAVE_STDLIB_H
22613         #  include <stdlib.h>
22614         #endif
22615         #include <stdio.h>
22616
22617
22618
22619    typedef wchar_t ac__type_sizeof_;
22620 int
22621 main ()
22622 {
22623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22624 test_array [0] = 0
22625
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext
22631 if { (ac_try="$ac_compile"
22632 case "(($ac_try" in
22633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634   *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637   (eval "$ac_compile") 2>conftest.er1
22638   ac_status=$?
22639   grep -v '^ *+' conftest.er1 >conftest.err
22640   rm -f conftest.er1
22641   cat conftest.err >&5
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && {
22644          test -z "$ac_c_werror_flag" ||
22645          test ! -s conftest.err
22646        } && test -s conftest.$ac_objext; then
22647   ac_lo=0 ac_mid=0
22648   while :; do
22649     cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655
22656         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22657         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22658         #  error "fake wchar_t"
22659         #endif
22660         #ifdef HAVE_WCHAR_H
22661         #  ifdef __CYGWIN__
22662         #    include <stddef.h>
22663         #  endif
22664         #  include <wchar.h>
22665         #endif
22666         #ifdef HAVE_STDLIB_H
22667         #  include <stdlib.h>
22668         #endif
22669         #include <stdio.h>
22670
22671
22672
22673    typedef wchar_t ac__type_sizeof_;
22674 int
22675 main ()
22676 {
22677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22678 test_array [0] = 0
22679
22680   ;
22681   return 0;
22682 }
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_compile") 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } && {
22698          test -z "$ac_c_werror_flag" ||
22699          test ! -s conftest.err
22700        } && test -s conftest.$ac_objext; then
22701   ac_hi=$ac_mid; break
22702 else
22703   echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706         ac_lo=`expr $ac_mid + 1`
22707                         if test $ac_lo -le $ac_mid; then
22708                           ac_lo= ac_hi=
22709                           break
22710                         fi
22711                         ac_mid=`expr 2 '*' $ac_mid + 1`
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715   done
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22719
22720         cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726
22727         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22728         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22729         #  error "fake wchar_t"
22730         #endif
22731         #ifdef HAVE_WCHAR_H
22732         #  ifdef __CYGWIN__
22733         #    include <stddef.h>
22734         #  endif
22735         #  include <wchar.h>
22736         #endif
22737         #ifdef HAVE_STDLIB_H
22738         #  include <stdlib.h>
22739         #endif
22740         #include <stdio.h>
22741
22742
22743
22744    typedef wchar_t ac__type_sizeof_;
22745 int
22746 main ()
22747 {
22748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22749 test_array [0] = 0
22750
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762   (eval "$ac_compile") 2>conftest.er1
22763   ac_status=$?
22764   grep -v '^ *+' conftest.er1 >conftest.err
22765   rm -f conftest.er1
22766   cat conftest.err >&5
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); } && {
22769          test -z "$ac_c_werror_flag" ||
22770          test ! -s conftest.err
22771        } && test -s conftest.$ac_objext; then
22772   ac_hi=-1 ac_mid=-1
22773   while :; do
22774     cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780
22781         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22782         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22783         #  error "fake wchar_t"
22784         #endif
22785         #ifdef HAVE_WCHAR_H
22786         #  ifdef __CYGWIN__
22787         #    include <stddef.h>
22788         #  endif
22789         #  include <wchar.h>
22790         #endif
22791         #ifdef HAVE_STDLIB_H
22792         #  include <stdlib.h>
22793         #endif
22794         #include <stdio.h>
22795
22796
22797
22798    typedef wchar_t ac__type_sizeof_;
22799 int
22800 main ()
22801 {
22802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22803 test_array [0] = 0
22804
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_compile") 2>conftest.er1
22817   ac_status=$?
22818   grep -v '^ *+' conftest.er1 >conftest.err
22819   rm -f conftest.er1
22820   cat conftest.err >&5
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } && {
22823          test -z "$ac_c_werror_flag" ||
22824          test ! -s conftest.err
22825        } && test -s conftest.$ac_objext; then
22826   ac_lo=$ac_mid; break
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831         ac_hi=`expr '(' $ac_mid ')' - 1`
22832                         if test $ac_mid -le $ac_hi; then
22833                           ac_lo= ac_hi=
22834                           break
22835                         fi
22836                         ac_mid=`expr 2 '*' $ac_mid`
22837 fi
22838
22839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840   done
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845         ac_lo= ac_hi=
22846 fi
22847
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 fi
22850
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 # Binary search between lo and hi bounds.
22853 while test "x$ac_lo" != "x$ac_hi"; do
22854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22855   cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h.  */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h.  */
22861
22862         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22863         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22864         #  error "fake wchar_t"
22865         #endif
22866         #ifdef HAVE_WCHAR_H
22867         #  ifdef __CYGWIN__
22868         #    include <stddef.h>
22869         #  endif
22870         #  include <wchar.h>
22871         #endif
22872         #ifdef HAVE_STDLIB_H
22873         #  include <stdlib.h>
22874         #endif
22875         #include <stdio.h>
22876
22877
22878
22879    typedef wchar_t ac__type_sizeof_;
22880 int
22881 main ()
22882 {
22883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22884 test_array [0] = 0
22885
22886   ;
22887   return 0;
22888 }
22889 _ACEOF
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } && {
22904          test -z "$ac_c_werror_flag" ||
22905          test ! -s conftest.err
22906        } && test -s conftest.$ac_objext; then
22907   ac_hi=$ac_mid
22908 else
22909   echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912         ac_lo=`expr '(' $ac_mid ')' + 1`
22913 fi
22914
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 done
22917 case $ac_lo in
22918 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22919 '') if test "$ac_cv_type_wchar_t" = yes; then
22920      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22921 See \`config.log' for more details." >&5
22922 echo "$as_me: error: cannot compute sizeof (wchar_t)
22923 See \`config.log' for more details." >&2;}
22924    { (exit 77); exit 77; }; }
22925    else
22926      ac_cv_sizeof_wchar_t=0
22927    fi ;;
22928 esac
22929 else
22930   cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h.  */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h.  */
22936
22937         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22938         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22939         #  error "fake wchar_t"
22940         #endif
22941         #ifdef HAVE_WCHAR_H
22942         #  ifdef __CYGWIN__
22943         #    include <stddef.h>
22944         #  endif
22945         #  include <wchar.h>
22946         #endif
22947         #ifdef HAVE_STDLIB_H
22948         #  include <stdlib.h>
22949         #endif
22950         #include <stdio.h>
22951
22952
22953
22954    typedef wchar_t ac__type_sizeof_;
22955 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22956 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22957 #include <stdio.h>
22958 #include <stdlib.h>
22959 int
22960 main ()
22961 {
22962
22963   FILE *f = fopen ("conftest.val", "w");
22964   if (! f)
22965     return 1;
22966   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22967     {
22968       long int i = longval ();
22969       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22970         return 1;
22971       fprintf (f, "%ld\n", i);
22972     }
22973   else
22974     {
22975       unsigned long int i = ulongval ();
22976       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22977         return 1;
22978       fprintf (f, "%lu\n", i);
22979     }
22980   return ferror (f) || fclose (f) != 0;
22981
22982   ;
22983   return 0;
22984 }
22985 _ACEOF
22986 rm -f conftest$ac_exeext
22987 if { (ac_try="$ac_link"
22988 case "(($ac_try" in
22989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990   *) ac_try_echo=$ac_try;;
22991 esac
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993   (eval "$ac_link") 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22997   { (case "(($ac_try" in
22998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999   *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002   (eval "$ac_try") 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; }; then
23006   ac_cv_sizeof_wchar_t=`cat conftest.val`
23007 else
23008   echo "$as_me: program exited with status $ac_status" >&5
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ( exit $ac_status )
23013 if test "$ac_cv_type_wchar_t" = yes; then
23014      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23015 See \`config.log' for more details." >&5
23016 echo "$as_me: error: cannot compute sizeof (wchar_t)
23017 See \`config.log' for more details." >&2;}
23018    { (exit 77); exit 77; }; }
23019    else
23020      ac_cv_sizeof_wchar_t=0
23021    fi
23022 fi
23023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23024 fi
23025 rm -f conftest.val
23026 fi
23027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23028 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23029
23030
23031
23032 cat >>confdefs.h <<_ACEOF
23033 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23034 _ACEOF
23035
23036
23037 if test "$ac_cv_sizeof_wchar_t" != 0; then
23038     wxUSE_WCHAR_T=yes
23039 else
23040     wxUSE_WCHAR_T=no
23041 fi
23042
23043 { echo "$as_me:$LINENO: checking for va_copy" >&5
23044 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23045 if test "${wx_cv_func_va_copy+set}" = set; then
23046   echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048
23049         ac_ext=cpp
23050 ac_cpp='$CXXCPP $CPPFLAGS'
23051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23054
23055         cat >conftest.$ac_ext <<_ACEOF
23056
23057             #include <stdarg.h>
23058             void foo(char *f, ...)
23059             {
23060                 va_list ap1, ap2;
23061                 va_start(ap1, f);
23062                 va_copy(ap2, ap1);
23063                 va_end(ap2);
23064                 va_end(ap1);
23065             }
23066             int main()
23067             {
23068                 foo("hi", 17);
23069                 return 0;
23070             }
23071 _ACEOF
23072 rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079   (eval "$ac_link") 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } && {
23086          test -z "$ac_cxx_werror_flag" ||
23087          test ! -s conftest.err
23088        } && test -s conftest$ac_exeext &&
23089        $as_test_x conftest$ac_exeext; then
23090   wx_cv_func_va_copy=yes
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095         wx_cv_func_va_copy=no
23096
23097 fi
23098
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100       conftest$ac_exeext conftest.$ac_ext
23101         ac_ext=c
23102 ac_cpp='$CPP $CPPFLAGS'
23103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23106
23107
23108
23109 fi
23110 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23111 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23112
23113 if test $wx_cv_func_va_copy = "yes"; then
23114     cat >>confdefs.h <<\_ACEOF
23115 #define HAVE_VA_COPY 1
23116 _ACEOF
23117
23118 else
23119         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23120 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23121 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124
23125             if test "$cross_compiling" = yes; then
23126                   wx_cv_type_va_list_lvalue=yes
23127
23128 else
23129   cat >conftest.$ac_ext <<_ACEOF
23130
23131                 #include <stdarg.h>
23132                 int foo(char *f, ...)
23133                 {
23134                     va_list ap1, ap2;
23135                     va_start(ap1, f);
23136                     ap2 = ap1;
23137                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23138                         return 1;
23139                     va_end(ap2);
23140                     va_end(ap1);
23141                     return 0;
23142                 }
23143                 int main()
23144                 {
23145                     return foo("hi", 17);
23146                 }
23147 _ACEOF
23148 rm -f conftest$ac_exeext
23149 if { (ac_try="$ac_link"
23150 case "(($ac_try" in
23151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152   *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155   (eval "$ac_link") 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23159   { (case "(($ac_try" in
23160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161   *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164   (eval "$ac_try") 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   wx_cv_type_va_list_lvalue=yes
23169 else
23170   echo "$as_me: program exited with status $ac_status" >&5
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174 ( exit $ac_status )
23175 wx_cv_type_va_list_lvalue=no
23176 fi
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23178 fi
23179
23180
23181
23182
23183 fi
23184 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23185 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23186
23187     if test $wx_cv_type_va_list_lvalue != "yes"; then
23188                         cat >>confdefs.h <<\_ACEOF
23189 #define VA_LIST_IS_ARRAY 1
23190 _ACEOF
23191
23192     fi
23193 fi
23194
23195 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23196
23197 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23198 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23199 if test "${wx_cv_have_variadic_macros+set}" = set; then
23200   echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202
23203                         ac_ext=cpp
23204 ac_cpp='$CXXCPP $CPPFLAGS'
23205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23208
23209         cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h.  */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h.  */
23215
23216                     #include <stdio.h>
23217                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23218
23219 int
23220 main ()
23221 {
23222
23223                     test("%s %d %p", "test", 1, 0);
23224
23225
23226   ;
23227   return 0;
23228 }
23229 _ACEOF
23230 rm -f conftest.$ac_objext
23231 if { (ac_try="$ac_compile"
23232 case "(($ac_try" in
23233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234   *) ac_try_echo=$ac_try;;
23235 esac
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237   (eval "$ac_compile") 2>conftest.er1
23238   ac_status=$?
23239   grep -v '^ *+' conftest.er1 >conftest.err
23240   rm -f conftest.er1
23241   cat conftest.err >&5
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); } && {
23244          test -z "$ac_cxx_werror_flag" ||
23245          test ! -s conftest.err
23246        } && test -s conftest.$ac_objext; then
23247   wx_cv_have_variadic_macros=yes
23248 else
23249   echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23251
23252         wx_cv_have_variadic_macros=no
23253
23254 fi
23255
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23257         ac_ext=c
23258 ac_cpp='$CPP $CPPFLAGS'
23259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23262
23263
23264
23265 fi
23266 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23267 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23268
23269 if test $wx_cv_have_variadic_macros = "yes"; then
23270     cat >>confdefs.h <<\_ACEOF
23271 #define HAVE_VARIADIC_MACROS 1
23272 _ACEOF
23273
23274 fi
23275
23276 fi
23277 # Check whether --enable-largefile was given.
23278 if test "${enable_largefile+set}" = set; then
23279   enableval=$enable_largefile;
23280 fi
23281
23282 if test "$enable_largefile" != no; then
23283             wx_largefile=no
23284
23285     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23286 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23287 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23288   echo $ECHO_N "(cached) $ECHO_C" >&6
23289 else
23290
23291           cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 #define _FILE_OFFSET_BITS 64
23298                           #include <sys/types.h>
23299 int
23300 main ()
23301 {
23302 typedef struct {
23303     unsigned int field: sizeof(off_t) == 8;
23304 } wxlf;
23305
23306   ;
23307   return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest.$ac_objext
23311 if { (ac_try="$ac_compile"
23312 case "(($ac_try" in
23313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314   *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317   (eval "$ac_compile") 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } && {
23324          test -z "$ac_c_werror_flag" ||
23325          test ! -s conftest.err
23326        } && test -s conftest.$ac_objext; then
23327   ac_cv_sys_file_offset_bits=64
23328 else
23329   echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23331
23332         ac_cv_sys_file_offset_bits=no
23333 fi
23334
23335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336
23337
23338 fi
23339 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23340 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23341
23342     if test "$ac_cv_sys_file_offset_bits" != no; then
23343         wx_largefile=yes
23344         cat >>confdefs.h <<_ACEOF
23345 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23346 _ACEOF
23347
23348     fi
23349
23350     if test "x$wx_largefile" != "xyes"; then
23351
23352     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23353 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23354 if test "${ac_cv_sys_large_files+set}" = set; then
23355   echo $ECHO_N "(cached) $ECHO_C" >&6
23356 else
23357
23358           cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364 #define _LARGE_FILES 1
23365                           #include <sys/types.h>
23366 int
23367 main ()
23368 {
23369 typedef struct {
23370     unsigned int field: sizeof(off_t) == 8;
23371 } wxlf;
23372
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } && {
23391          test -z "$ac_c_werror_flag" ||
23392          test ! -s conftest.err
23393        } && test -s conftest.$ac_objext; then
23394   ac_cv_sys_large_files=1
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         ac_cv_sys_large_files=no
23400 fi
23401
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403
23404
23405 fi
23406 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23407 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23408
23409     if test "$ac_cv_sys_large_files" != no; then
23410         wx_largefile=yes
23411         cat >>confdefs.h <<_ACEOF
23412 #define _LARGE_FILES $ac_cv_sys_large_files
23413 _ACEOF
23414
23415     fi
23416
23417     fi
23418
23419     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23420 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23421     if test "x$wx_largefile" = "xyes"; then
23422         cat >>confdefs.h <<\_ACEOF
23423 #define HAVE_LARGEFILE_SUPPORT 1
23424 _ACEOF
23425
23426     fi
23427     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23428 echo "${ECHO_T}$wx_largefile" >&6; }
23429 fi
23430
23431
23432 if test "x$wx_largefile" = "xyes"; then
23433     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23434         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23435
23436                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23437             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23438 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23439 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23440   echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442
23443                     ac_ext=cpp
23444 ac_cpp='$CXXCPP $CPPFLAGS'
23445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23448
23449                     cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455
23456 int
23457 main ()
23458 {
23459
23460                             #ifndef __STDC_EXT__
23461                                 choke me
23462                             #endif
23463
23464   ;
23465   return 0;
23466 }
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472   *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475   (eval "$ac_compile") 2>conftest.er1
23476   ac_status=$?
23477   grep -v '^ *+' conftest.er1 >conftest.err
23478   rm -f conftest.er1
23479   cat conftest.err >&5
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); } && {
23482          test -z "$ac_cxx_werror_flag" ||
23483          test ! -s conftest.err
23484        } && test -s conftest.$ac_objext; then
23485   wx_cv_STDC_EXT_required=no
23486 else
23487   echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490         wx_cv_STDC_EXT_required=yes
23491
23492 fi
23493
23494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495                     ac_ext=c
23496 ac_cpp='$CPP $CPPFLAGS'
23497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23500
23501
23502
23503 fi
23504 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23505 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23506             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23507                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23508             fi
23509         fi
23510     else
23511         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23512     fi
23513         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23514 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23515 if test "${ac_cv_sys_largefile_source+set}" = set; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518   while :; do
23519   cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h.  */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h.  */
23525 #include <sys/types.h> /* for off_t */
23526      #include <stdio.h>
23527 int
23528 main ()
23529 {
23530 int (*fp) (FILE *, off_t, int) = fseeko;
23531      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23532   ;
23533   return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest.$ac_objext conftest$ac_exeext
23537 if { (ac_try="$ac_link"
23538 case "(($ac_try" in
23539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540   *) ac_try_echo=$ac_try;;
23541 esac
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543   (eval "$ac_link") 2>conftest.er1
23544   ac_status=$?
23545   grep -v '^ *+' conftest.er1 >conftest.err
23546   rm -f conftest.er1
23547   cat conftest.err >&5
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); } && {
23550          test -z "$ac_c_werror_flag" ||
23551          test ! -s conftest.err
23552        } && test -s conftest$ac_exeext &&
23553        $as_test_x conftest$ac_exeext; then
23554   ac_cv_sys_largefile_source=no; break
23555 else
23556   echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23563       conftest$ac_exeext conftest.$ac_ext
23564   cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570 #define _LARGEFILE_SOURCE 1
23571 #include <sys/types.h> /* for off_t */
23572      #include <stdio.h>
23573 int
23574 main ()
23575 {
23576 int (*fp) (FILE *, off_t, int) = fseeko;
23577      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589   (eval "$ac_link") 2>conftest.er1
23590   ac_status=$?
23591   grep -v '^ *+' conftest.er1 >conftest.err
23592   rm -f conftest.er1
23593   cat conftest.err >&5
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); } && {
23596          test -z "$ac_c_werror_flag" ||
23597          test ! -s conftest.err
23598        } && test -s conftest$ac_exeext &&
23599        $as_test_x conftest$ac_exeext; then
23600   ac_cv_sys_largefile_source=1; break
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605
23606 fi
23607
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609       conftest$ac_exeext conftest.$ac_ext
23610   ac_cv_sys_largefile_source=unknown
23611   break
23612 done
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23615 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23616 case $ac_cv_sys_largefile_source in #(
23617   no | unknown) ;;
23618   *)
23619 cat >>confdefs.h <<_ACEOF
23620 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23621 _ACEOF
23622 ;;
23623 esac
23624 rm -f conftest*
23625
23626 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23627 # in glibc 2.1.3, but that breaks too many other things.
23628 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23629 if test $ac_cv_sys_largefile_source != unknown; then
23630
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_FSEEKO 1
23633 _ACEOF
23634
23635 fi
23636
23637     if test "$ac_cv_sys_largefile_source" != no; then
23638         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23639     fi
23640 fi
23641
23642 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23643 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23644 if test "${ac_cv_c_bigendian+set}" = set; then
23645   echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647   ac_cv_c_bigendian=unknown
23648 # See if sys/param.h defines the BYTE_ORDER macro.
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h.  */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h.  */
23655 #include <sys/types.h>
23656 #include <sys/param.h>
23657 int
23658 main ()
23659 {
23660
23661 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23662  bogus endian macros
23663 #endif
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672   *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675   (eval "$ac_compile") 2>conftest.er1
23676   ac_status=$?
23677   grep -v '^ *+' conftest.er1 >conftest.err
23678   rm -f conftest.er1
23679   cat conftest.err >&5
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); } && {
23682          test -z "$ac_c_werror_flag" ||
23683          test ! -s conftest.err
23684        } && test -s conftest.$ac_objext; then
23685   # It does; now see whether it defined to BIG_ENDIAN or not.
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692 #include <sys/types.h>
23693 #include <sys/param.h>
23694 int
23695 main ()
23696 {
23697
23698 #if BYTE_ORDER != BIG_ENDIAN
23699  not big endian
23700 #endif
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709   *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712   (eval "$ac_compile") 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && {
23719          test -z "$ac_c_werror_flag" ||
23720          test ! -s conftest.err
23721        } && test -s conftest.$ac_objext; then
23722   ac_cv_c_bigendian=yes
23723 else
23724   echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23726
23727         ac_cv_c_bigendian=no
23728 fi
23729
23730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23731 else
23732   echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23734
23735
23736 fi
23737
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 if test $ac_cv_c_bigendian = unknown; then
23740 if test "$cross_compiling" = yes; then
23741   ac_cv_c_bigendian=unknown
23742 else
23743   cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h.  */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h.  */
23749 main () {
23750   /* Are we little or big endian?  From Harbison&Steele.  */
23751   union
23752   {
23753     long l;
23754     char c[sizeof (long)];
23755   } u;
23756   u.l = 1;
23757   exit (u.c[sizeof (long) - 1] == 1);
23758 }
23759 _ACEOF
23760 rm -f conftest$ac_exeext
23761 if { (ac_try="$ac_link"
23762 case "(($ac_try" in
23763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764   *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767   (eval "$ac_link") 2>&5
23768   ac_status=$?
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23771   { (case "(($ac_try" in
23772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773   *) ac_try_echo=$ac_try;;
23774 esac
23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776   (eval "$ac_try") 2>&5
23777   ac_status=$?
23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779   (exit $ac_status); }; }; then
23780   ac_cv_c_bigendian=no
23781 else
23782   echo "$as_me: program exited with status $ac_status" >&5
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786 ( exit $ac_status )
23787 ac_cv_c_bigendian=yes
23788 fi
23789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23790 fi
23791
23792
23793 fi
23794 fi
23795 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23796 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23797 if test $ac_cv_c_bigendian = unknown; then
23798   { 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
23799 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;}
23800 fi
23801 if test $ac_cv_c_bigendian = yes; then
23802   cat >>confdefs.h <<\_ACEOF
23803 #define WORDS_BIGENDIAN 1
23804 _ACEOF
23805
23806 fi
23807
23808
23809
23810
23811     ac_ext=cpp
23812 ac_cpp='$CXXCPP $CPPFLAGS'
23813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23816
23817
23818
23819 for ac_header in iostream
23820 do
23821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23825   echo $ECHO_N "(cached) $ECHO_C" >&6
23826 else
23827   cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h.  */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h.  */
23833
23834
23835 #include <$ac_header>
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841   *) ac_try_echo=$ac_try;;
23842 esac
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844   (eval "$ac_compile") 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } && {
23851          test -z "$ac_cxx_werror_flag" ||
23852          test ! -s conftest.err
23853        } && test -s conftest.$ac_objext; then
23854   eval "$as_ac_Header=yes"
23855 else
23856   echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23858
23859         eval "$as_ac_Header=no"
23860 fi
23861
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 fi
23864 ac_res=`eval echo '${'$as_ac_Header'}'`
23865                { echo "$as_me:$LINENO: result: $ac_res" >&5
23866 echo "${ECHO_T}$ac_res" >&6; }
23867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23868   cat >>confdefs.h <<_ACEOF
23869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23870 _ACEOF
23871
23872 fi
23873
23874 done
23875
23876
23877     if test "$ac_cv_header_iostream" = "yes" ; then
23878       :
23879     else
23880       cat >>confdefs.h <<\_ACEOF
23881 #define wxUSE_IOSTREAMH 1
23882 _ACEOF
23883
23884     fi
23885
23886     ac_ext=c
23887 ac_cpp='$CPP $CPPFLAGS'
23888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23891
23892
23893
23894
23895   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23896 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23897 if test "${wx_cv_cpp_bool+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900
23901
23902     ac_ext=cpp
23903 ac_cpp='$CXXCPP $CPPFLAGS'
23904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23907
23908
23909     cat >conftest.$ac_ext <<_ACEOF
23910 /* confdefs.h.  */
23911 _ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h.  */
23915
23916
23917 int
23918 main ()
23919 {
23920
23921         bool b = true;
23922
23923         return 0;
23924
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext
23930 if { (ac_try="$ac_compile"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_compile") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_cxx_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest.$ac_objext; then
23946
23947         wx_cv_cpp_bool=yes
23948
23949 else
23950   echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23952
23953
23954         wx_cv_cpp_bool=no
23955
23956
23957 fi
23958
23959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23960
23961     ac_ext=c
23962 ac_cpp='$CPP $CPPFLAGS'
23963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23966
23967
23968 fi
23969 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23970 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23971
23972   if test "$wx_cv_cpp_bool" = "yes"; then
23973     cat >>confdefs.h <<\_ACEOF
23974 #define HAVE_BOOL 1
23975 _ACEOF
23976
23977   fi
23978
23979
23980
23981   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23982 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23983 if test "${wx_cv_explicit+set}" = set; then
23984   echo $ECHO_N "(cached) $ECHO_C" >&6
23985 else
23986
23987
23988     ac_ext=cpp
23989 ac_cpp='$CXXCPP $CPPFLAGS'
23990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23993
23994
23995             cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002         class Foo { public: explicit Foo(int) {} };
24003
24004 int
24005 main ()
24006 {
24007
24008         return 0;
24009
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (ac_try="$ac_compile"
24016 case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021   (eval "$ac_compile") 2>conftest.er1
24022   ac_status=$?
24023   grep -v '^ *+' conftest.er1 >conftest.err
24024   rm -f conftest.er1
24025   cat conftest.err >&5
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && {
24028          test -z "$ac_cxx_werror_flag" ||
24029          test ! -s conftest.err
24030        } && test -s conftest.$ac_objext; then
24031
24032         cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h.  */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h.  */
24038
24039                 class Foo { public: explicit Foo(int) {} };
24040                 static void TakeFoo(const Foo& foo) { }
24041
24042 int
24043 main ()
24044 {
24045
24046                 TakeFoo(17);
24047                 return 0;
24048
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057   *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060   (eval "$ac_compile") 2>conftest.er1
24061   ac_status=$?
24062   grep -v '^ *+' conftest.er1 >conftest.err
24063   rm -f conftest.er1
24064   cat conftest.err >&5
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); } && {
24067          test -z "$ac_cxx_werror_flag" ||
24068          test ! -s conftest.err
24069        } && test -s conftest.$ac_objext; then
24070   wx_cv_explicit=no
24071 else
24072   echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075         wx_cv_explicit=yes
24076
24077 fi
24078
24079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080
24081 else
24082   echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085         wx_cv_explicit=no
24086
24087 fi
24088
24089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090
24091     ac_ext=c
24092 ac_cpp='$CPP $CPPFLAGS'
24093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24096
24097
24098 fi
24099 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24100 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24101
24102   if test "$wx_cv_explicit" = "yes"; then
24103     cat >>confdefs.h <<\_ACEOF
24104 #define HAVE_EXPLICIT 1
24105 _ACEOF
24106
24107   fi
24108
24109
24110 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
24111 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
24112 if test "${ac_cv_cxx_const_cast+set}" = set; then
24113   echo $ECHO_N "(cached) $ECHO_C" >&6
24114 else
24115
24116  ac_ext=cpp
24117 ac_cpp='$CXXCPP $CPPFLAGS'
24118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24121
24122  cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128
24129 int
24130 main ()
24131 {
24132 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_compile") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } && {
24151          test -z "$ac_cxx_werror_flag" ||
24152          test ! -s conftest.err
24153        } && test -s conftest.$ac_objext; then
24154   ac_cv_cxx_const_cast=yes
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159         ac_cv_cxx_const_cast=no
24160 fi
24161
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163  ac_ext=c
24164 ac_cpp='$CPP $CPPFLAGS'
24165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24168
24169
24170 fi
24171 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
24172 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
24173 if test "$ac_cv_cxx_const_cast" = yes; then
24174
24175 cat >>confdefs.h <<\_ACEOF
24176 #define HAVE_CONST_CAST
24177 _ACEOF
24178
24179 fi
24180
24181 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
24182 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
24183 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
24184   echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186
24187  ac_ext=cpp
24188 ac_cpp='$CXXCPP $CPPFLAGS'
24189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24192
24193  cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h.  */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h.  */
24199 #include <typeinfo>
24200 class Base { public : Base () {} virtual void f () = 0;};
24201 class Derived : public Base { public : Derived () {} virtual void f () {} };
24202 class Unrelated { public : Unrelated () {} };
24203 int g (Unrelated&) { return 0; }
24204 int
24205 main ()
24206 {
24207
24208 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24209   ;
24210   return 0;
24211 }
24212 _ACEOF
24213 rm -f conftest.$ac_objext
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217   *) ac_try_echo=$ac_try;;
24218 esac
24219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24220   (eval "$ac_compile") 2>conftest.er1
24221   ac_status=$?
24222   grep -v '^ *+' conftest.er1 >conftest.err
24223   rm -f conftest.er1
24224   cat conftest.err >&5
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); } && {
24227          test -z "$ac_cxx_werror_flag" ||
24228          test ! -s conftest.err
24229        } && test -s conftest.$ac_objext; then
24230   ac_cv_cxx_reinterpret_cast=yes
24231 else
24232   echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24234
24235         ac_cv_cxx_reinterpret_cast=no
24236 fi
24237
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239  ac_ext=c
24240 ac_cpp='$CPP $CPPFLAGS'
24241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24244
24245
24246 fi
24247 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24248 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24249 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24250
24251 cat >>confdefs.h <<\_ACEOF
24252 #define HAVE_REINTERPRET_CAST
24253 _ACEOF
24254
24255 fi
24256
24257 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24258 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24259 if test "${ac_cv_cxx_static_cast+set}" = set; then
24260   echo $ECHO_N "(cached) $ECHO_C" >&6
24261 else
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  cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275 #include <typeinfo>
24276 class Base { public : Base () {} virtual void f () = 0; };
24277 class Derived : public Base { public : Derived () {} virtual void f () {} };
24278 int g (Derived&) { return 0; }
24279 int
24280 main ()
24281 {
24282
24283 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24284   ;
24285   return 0;
24286 }
24287 _ACEOF
24288 rm -f conftest.$ac_objext
24289 if { (ac_try="$ac_compile"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_compile") 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } && {
24302          test -z "$ac_cxx_werror_flag" ||
24303          test ! -s conftest.err
24304        } && test -s conftest.$ac_objext; then
24305   ac_cv_cxx_static_cast=yes
24306 else
24307   echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310         ac_cv_cxx_static_cast=no
24311 fi
24312
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314  ac_ext=c
24315 ac_cpp='$CPP $CPPFLAGS'
24316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24319
24320
24321 fi
24322 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24323 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24324 if test "$ac_cv_cxx_static_cast" = yes; then
24325
24326 cat >>confdefs.h <<\_ACEOF
24327 #define HAVE_STATIC_CAST
24328 _ACEOF
24329
24330 fi
24331
24332
24333 if test "x$SUNCXX" = xyes; then
24334     CXXFLAGS="-features=tmplife $CXXFLAGS"
24335 fi
24336
24337 if test "x$SUNCC" = xyes; then
24338     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24339 fi
24340
24341 if test "x$SGICC" = "xyes"; then
24342     CFLAGS="-woff 3970 $CFLAGS"
24343 fi
24344 if test "x$SGICXX" = "xyes"; then
24345     CXXFLAGS="-woff 3970 $CXXFLAGS"
24346 fi
24347
24348 if test "x$HPCC" = "xyes"; then
24349                     CFLAGS="+W 2011,2450 $CFLAGS"
24350 fi
24351 if test "x$HPCXX" = "xyes"; then
24352             CXXFLAGS="+W 2340 $CXXFLAGS"
24353 fi
24354
24355 if test "x$COMPAQCXX" = "xyes"; then
24356                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24357 fi
24358
24359 ac_ext=cpp
24360 ac_cpp='$CXXCPP $CPPFLAGS'
24361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24364
24365
24366 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24367     if test "$wxUSE_UNICODE" = "yes"; then
24368         std_string="std::wstring"
24369         char_type="wchar_t"
24370     else
24371         std_string="std::string"
24372         char_type="char"
24373     fi
24374
24375         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24376 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24377 if test "${wx_cv_class_stdstring+set}" = set; then
24378   echo $ECHO_N "(cached) $ECHO_C" >&6
24379 else
24380
24381             cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387 #include <string>
24388 int
24389 main ()
24390 {
24391 $std_string foo;
24392   ;
24393   return 0;
24394 }
24395 _ACEOF
24396 rm -f conftest.$ac_objext
24397 if { (ac_try="$ac_compile"
24398 case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_compile") 2>conftest.er1
24404   ac_status=$?
24405   grep -v '^ *+' conftest.er1 >conftest.err
24406   rm -f conftest.er1
24407   cat conftest.err >&5
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); } && {
24410          test -z "$ac_cxx_werror_flag" ||
24411          test ! -s conftest.err
24412        } && test -s conftest.$ac_objext; then
24413   wx_cv_class_stdstring=yes
24414 else
24415   echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418         wx_cv_class_stdstring=no
24419
24420 fi
24421
24422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423
24424
24425 fi
24426 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24427 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24428
24429     if test "$wx_cv_class_stdstring" = yes; then
24430         if test "$wxUSE_UNICODE" = "yes"; then
24431             cat >>confdefs.h <<\_ACEOF
24432 #define HAVE_STD_WSTRING 1
24433 _ACEOF
24434
24435         fi
24436                     else
24437         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24438 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24439 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442
24443                 cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449
24450                     #ifdef HAVE_WCHAR_H
24451                     #  ifdef __CYGWIN__
24452                     #    include <stddef.h>
24453                     #  endif
24454                     #  include <wchar.h>
24455                     #endif
24456                     #ifdef HAVE_STDLIB_H
24457                     #  include <stdlib.h>
24458                     #endif
24459                     #include <stdio.h>
24460                     #include <string>
24461
24462 int
24463 main ()
24464 {
24465 std::basic_string<$char_type> foo;
24466                      const $char_type* dummy = foo.c_str();
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_compile") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_cxx_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest.$ac_objext; then
24488   wx_cv_class_stdbasicstring=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493         wx_cv_class_stdbasicstring=no
24494
24495 fi
24496
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498
24499
24500 fi
24501 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24502 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24503
24504         if test "$wx_cv_class_stdbasicstring" != yes; then
24505             if test "$wxUSE_STL" = "yes"; then
24506                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24507 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24508    { (exit 1); exit 1; }; }
24509             elif test "$wxUSE_STD_STRING" = "yes"; then
24510                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24511 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24512    { (exit 1); exit 1; }; }
24513             else
24514                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24515 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24516                 wxUSE_STD_STRING=no
24517             fi
24518         fi
24519     fi
24520 fi
24521
24522 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24523     { echo "$as_me:$LINENO: checking for std::istream" >&5
24524 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24525 if test "${ac_cv_type_std__istream+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <iostream>
24535
24536 typedef std::istream ac__type_new_;
24537 int
24538 main ()
24539 {
24540 if ((ac__type_new_ *) 0)
24541   return 0;
24542 if (sizeof (ac__type_new_))
24543   return 0;
24544   ;
24545   return 0;
24546 }
24547 _ACEOF
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552   *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555   (eval "$ac_compile") 2>conftest.er1
24556   ac_status=$?
24557   grep -v '^ *+' conftest.er1 >conftest.err
24558   rm -f conftest.er1
24559   cat conftest.err >&5
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); } && {
24562          test -z "$ac_cxx_werror_flag" ||
24563          test ! -s conftest.err
24564        } && test -s conftest.$ac_objext; then
24565   ac_cv_type_std__istream=yes
24566 else
24567   echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570         ac_cv_type_std__istream=no
24571 fi
24572
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 fi
24575 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24576 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24577 if test $ac_cv_type_std__istream = yes; then
24578
24579 cat >>confdefs.h <<_ACEOF
24580 #define HAVE_STD__ISTREAM 1
24581 _ACEOF
24582
24583
24584 else
24585   wxUSE_STD_IOSTREAM=no
24586 fi
24587 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24588 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24589 if test "${ac_cv_type_std__ostream+set}" = set; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 else
24592   cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h.  */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h.  */
24598 #include <iostream>
24599
24600 typedef std::ostream ac__type_new_;
24601 int
24602 main ()
24603 {
24604 if ((ac__type_new_ *) 0)
24605   return 0;
24606 if (sizeof (ac__type_new_))
24607   return 0;
24608   ;
24609   return 0;
24610 }
24611 _ACEOF
24612 rm -f conftest.$ac_objext
24613 if { (ac_try="$ac_compile"
24614 case "(($ac_try" in
24615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616   *) ac_try_echo=$ac_try;;
24617 esac
24618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619   (eval "$ac_compile") 2>conftest.er1
24620   ac_status=$?
24621   grep -v '^ *+' conftest.er1 >conftest.err
24622   rm -f conftest.er1
24623   cat conftest.err >&5
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); } && {
24626          test -z "$ac_cxx_werror_flag" ||
24627          test ! -s conftest.err
24628        } && test -s conftest.$ac_objext; then
24629   ac_cv_type_std__ostream=yes
24630 else
24631   echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24633
24634         ac_cv_type_std__ostream=no
24635 fi
24636
24637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638 fi
24639 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24640 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24641 if test $ac_cv_type_std__ostream = yes; then
24642
24643 cat >>confdefs.h <<_ACEOF
24644 #define HAVE_STD__OSTREAM 1
24645 _ACEOF
24646
24647
24648 else
24649   wxUSE_STD_IOSTREAM=no
24650 fi
24651
24652
24653     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24654         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24655             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24656 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24657    { (exit 1); exit 1; }; }
24658         else
24659             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24660 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24661         fi
24662     fi
24663 fi
24664
24665 if test "$wxUSE_STL" = "yes"; then
24666         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24667 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24668 if test "${wx_cv_lib_stl+set}" = set; then
24669   echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671   cat >conftest.$ac_ext <<_ACEOF
24672 /* confdefs.h.  */
24673 _ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h.  */
24677 #include <string>
24678             #include <functional>
24679             #include <algorithm>
24680             #include <vector>
24681             #include <list>
24682 int
24683 main ()
24684 {
24685 std::vector<int> moo;
24686              std::list<int> foo;
24687              std::vector<int>::iterator it =
24688                  std::find_if(moo.begin(), moo.end(),
24689                               std::bind2nd(std::less<int>(), 3));
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 rm -f conftest.$ac_objext
24695 if { (ac_try="$ac_compile"
24696 case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_compile") 2>conftest.er1
24702   ac_status=$?
24703   grep -v '^ *+' conftest.er1 >conftest.err
24704   rm -f conftest.er1
24705   cat conftest.err >&5
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); } && {
24708          test -z "$ac_cxx_werror_flag" ||
24709          test ! -s conftest.err
24710        } && test -s conftest.$ac_objext; then
24711   wx_cv_lib_stl=yes
24712 else
24713   echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716         wx_cv_lib_stl=no
24717
24718 fi
24719
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721
24722 fi
24723 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24724 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24725
24726     if test "$wx_cv_lib_stl" != yes; then
24727          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24728 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24729    { (exit 1); exit 1; }; }
24730     fi
24731
24732         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24733 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24734 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24735   echo $ECHO_N "(cached) $ECHO_C" >&6
24736 else
24737   cat >conftest.$ac_ext <<_ACEOF
24738 /* confdefs.h.  */
24739 _ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h.  */
24743 #include <string>
24744 int
24745 main ()
24746 {
24747 std::string foo, bar;
24748             foo.compare(bar);
24749             foo.compare(1, 1, bar);
24750             foo.compare(1, 1, bar, 1, 1);
24751             foo.compare("");
24752             foo.compare(1, 1, "");
24753             foo.compare(1, 1, "", 2);
24754   ;
24755   return 0;
24756 }
24757 _ACEOF
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765   (eval "$ac_compile") 2>conftest.er1
24766   ac_status=$?
24767   grep -v '^ *+' conftest.er1 >conftest.err
24768   rm -f conftest.er1
24769   cat conftest.err >&5
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } && {
24772          test -z "$ac_cxx_werror_flag" ||
24773          test ! -s conftest.err
24774        } && test -s conftest.$ac_objext; then
24775   wx_cv_func_stdstring_compare=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780         wx_cv_func_stdstring_compare=no
24781
24782 fi
24783
24784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785
24786 fi
24787 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24788 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24789
24790     if test "$wx_cv_func_stdstring_compare" = yes; then
24791         cat >>confdefs.h <<\_ACEOF
24792 #define HAVE_STD_STRING_COMPARE 1
24793 _ACEOF
24794
24795     fi
24796
24797     if test "$wx_cv_class_gnuhashmapset" = yes; then
24798          cat >>confdefs.h <<\_ACEOF
24799 #define HAVE_EXT_HASH_MAP 1
24800 _ACEOF
24801
24802          cat >>confdefs.h <<\_ACEOF
24803 #define HAVE_GNU_CXX_HASH_MAP 1
24804 _ACEOF
24805
24806     fi
24807
24808     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24809 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24810 if test "${ac_cv_header_unordered_map+set}" = set; then
24811   echo $ECHO_N "(cached) $ECHO_C" >&6
24812 else
24813   cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h.  */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h.  */
24819
24820
24821
24822 #include <unordered_map>
24823 _ACEOF
24824 rm -f conftest.$ac_objext
24825 if { (ac_try="$ac_compile"
24826 case "(($ac_try" in
24827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828   *) ac_try_echo=$ac_try;;
24829 esac
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831   (eval "$ac_compile") 2>conftest.er1
24832   ac_status=$?
24833   grep -v '^ *+' conftest.er1 >conftest.err
24834   rm -f conftest.er1
24835   cat conftest.err >&5
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); } && {
24838          test -z "$ac_cxx_werror_flag" ||
24839          test ! -s conftest.err
24840        } && test -s conftest.$ac_objext; then
24841   ac_cv_header_unordered_map=yes
24842 else
24843   echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24845
24846         ac_cv_header_unordered_map=no
24847 fi
24848
24849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850 fi
24851 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24852 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24853 if test $ac_cv_header_unordered_map = yes; then
24854   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24855 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24856 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24857   echo $ECHO_N "(cached) $ECHO_C" >&6
24858 else
24859   cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865 #include <unordered_map>
24866                 #include <unordered_set>
24867 int
24868 main ()
24869 {
24870 std::unordered_map<double*, char*> test1;
24871                  std::unordered_set<char*> test2;
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880   *) ac_try_echo=$ac_try;;
24881 esac
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883   (eval "$ac_compile") 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } && {
24890          test -z "$ac_cxx_werror_flag" ||
24891          test ! -s conftest.err
24892        } && test -s conftest.$ac_objext; then
24893   wx_cv_class_stdunorderedmapset=yes
24894 else
24895   echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898         wx_cv_class_stdunorderedmapset=no
24899 fi
24900
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902
24903
24904 fi
24905 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24906 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24907 fi
24908
24909
24910
24911     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24912          cat >>confdefs.h <<\_ACEOF
24913 #define HAVE_STD_UNORDERED_MAP 1
24914 _ACEOF
24915
24916          cat >>confdefs.h <<\_ACEOF
24917 #define HAVE_STD_UNORDERED_SET 1
24918 _ACEOF
24919
24920     else
24921         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24922 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24923 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24924   echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926   cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932
24933
24934
24935 #include <tr1/unordered_map>
24936 _ACEOF
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941   *) ac_try_echo=$ac_try;;
24942 esac
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944   (eval "$ac_compile") 2>conftest.er1
24945   ac_status=$?
24946   grep -v '^ *+' conftest.er1 >conftest.err
24947   rm -f conftest.er1
24948   cat conftest.err >&5
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); } && {
24951          test -z "$ac_cxx_werror_flag" ||
24952          test ! -s conftest.err
24953        } && test -s conftest.$ac_objext; then
24954   ac_cv_header_tr1_unordered_map=yes
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959         ac_cv_header_tr1_unordered_map=no
24960 fi
24961
24962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24963 fi
24964 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24965 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24966 if test $ac_cv_header_tr1_unordered_map = yes; then
24967   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24968 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24969 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24970   echo $ECHO_N "(cached) $ECHO_C" >&6
24971 else
24972   cat >conftest.$ac_ext <<_ACEOF
24973 /* confdefs.h.  */
24974 _ACEOF
24975 cat confdefs.h >>conftest.$ac_ext
24976 cat >>conftest.$ac_ext <<_ACEOF
24977 /* end confdefs.h.  */
24978 #include <tr1/unordered_map>
24979                     #include <tr1/unordered_set>
24980 int
24981 main ()
24982 {
24983 std::tr1::unordered_map<double*, char*> test1;
24984                      std::tr1::unordered_set<char*> test2;
24985             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24986             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24987             #endif
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_compile") 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && {
25006          test -z "$ac_cxx_werror_flag" ||
25007          test ! -s conftest.err
25008        } && test -s conftest.$ac_objext; then
25009   wx_cv_class_tr1unorderedmapset=yes
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         wx_cv_class_tr1unorderedmapset=no
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018
25019
25020 fi
25021 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25022 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25023 fi
25024
25025
25026
25027         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25028             cat >>confdefs.h <<\_ACEOF
25029 #define HAVE_TR1_UNORDERED_MAP 1
25030 _ACEOF
25031
25032             cat >>confdefs.h <<\_ACEOF
25033 #define HAVE_TR1_UNORDERED_SET 1
25034 _ACEOF
25035
25036         else
25037                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25038 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25039 if test "${ac_cv_header_hash_map+set}" = set; then
25040   echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042   cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048
25049
25050
25051 #include <hash_map>
25052 _ACEOF
25053 rm -f conftest.$ac_objext
25054 if { (ac_try="$ac_compile"
25055 case "(($ac_try" in
25056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057   *) ac_try_echo=$ac_try;;
25058 esac
25059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060   (eval "$ac_compile") 2>conftest.er1
25061   ac_status=$?
25062   grep -v '^ *+' conftest.er1 >conftest.err
25063   rm -f conftest.er1
25064   cat conftest.err >&5
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); } && {
25067          test -z "$ac_cxx_werror_flag" ||
25068          test ! -s conftest.err
25069        } && test -s conftest.$ac_objext; then
25070   ac_cv_header_hash_map=yes
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075         ac_cv_header_hash_map=no
25076 fi
25077
25078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25079 fi
25080 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25081 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25082 if test $ac_cv_header_hash_map = yes; then
25083   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25084 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25085 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25086   echo $ECHO_N "(cached) $ECHO_C" >&6
25087 else
25088   cat >conftest.$ac_ext <<_ACEOF
25089 /* confdefs.h.  */
25090 _ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h.  */
25094 #include <hash_map>
25095                         #include <hash_set>
25096 int
25097 main ()
25098 {
25099 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25100                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext
25106 if { (ac_try="$ac_compile"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112   (eval "$ac_compile") 2>conftest.er1
25113   ac_status=$?
25114   grep -v '^ *+' conftest.er1 >conftest.err
25115   rm -f conftest.er1
25116   cat conftest.err >&5
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); } && {
25119          test -z "$ac_cxx_werror_flag" ||
25120          test ! -s conftest.err
25121        } && test -s conftest.$ac_objext; then
25122   wx_cv_class_stdhashmapset=yes
25123 else
25124   echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25126
25127         wx_cv_class_stdhashmapset=no
25128 fi
25129
25130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25131
25132
25133 fi
25134 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25135 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25136 fi
25137
25138
25139
25140             if test "$wx_cv_class_stdhashmapset" = yes; then
25141                 cat >>confdefs.h <<\_ACEOF
25142 #define HAVE_HASH_MAP 1
25143 _ACEOF
25144
25145                 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_STD_HASH_MAP 1
25147 _ACEOF
25148
25149             fi
25150
25151             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25152 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25153 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162
25163
25164
25165 #include <ext/hash_map>
25166 _ACEOF
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_compile") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && {
25181          test -z "$ac_cxx_werror_flag" ||
25182          test ! -s conftest.err
25183        } && test -s conftest.$ac_objext; then
25184   ac_cv_header_ext_hash_map=yes
25185 else
25186   echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25188
25189         ac_cv_header_ext_hash_map=no
25190 fi
25191
25192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25193 fi
25194 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25195 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25196 if test $ac_cv_header_ext_hash_map = yes; then
25197   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25198 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25199 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25200   echo $ECHO_N "(cached) $ECHO_C" >&6
25201 else
25202   cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h.  */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h.  */
25208 #include <ext/hash_map>
25209                         #include <ext/hash_set>
25210 int
25211 main ()
25212 {
25213 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25214                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25215   ;
25216   return 0;
25217 }
25218 _ACEOF
25219 rm -f conftest.$ac_objext
25220 if { (ac_try="$ac_compile"
25221 case "(($ac_try" in
25222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223   *) ac_try_echo=$ac_try;;
25224 esac
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226   (eval "$ac_compile") 2>conftest.er1
25227   ac_status=$?
25228   grep -v '^ *+' conftest.er1 >conftest.err
25229   rm -f conftest.er1
25230   cat conftest.err >&5
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); } && {
25233          test -z "$ac_cxx_werror_flag" ||
25234          test ! -s conftest.err
25235        } && test -s conftest.$ac_objext; then
25236   wx_cv_class_gnuhashmapset=yes
25237 else
25238   echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241         wx_cv_class_gnuhashmapset=no
25242 fi
25243
25244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25245
25246
25247 fi
25248 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25249 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25250 fi
25251
25252
25253
25254         fi
25255     fi
25256 fi
25257
25258
25259
25260   if test -n "$GCC"; then
25261     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25262 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25263     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25264   echo $ECHO_N "(cached) $ECHO_C" >&6
25265 else
25266
25267       cat >conftest.$ac_ext <<_ACEOF
25268 /* confdefs.h.  */
25269 _ACEOF
25270 cat confdefs.h >>conftest.$ac_ext
25271 cat >>conftest.$ac_ext <<_ACEOF
25272 /* end confdefs.h.  */
25273
25274 int
25275 main ()
25276 {
25277
25278           unsigned int value=0;
25279           /* wxAtomicInc doesn't use return value here */
25280           __sync_fetch_and_add(&value, 2);
25281           __sync_sub_and_fetch(&value, 1);
25282           /* but wxAtomicDec does, so mimic that: */
25283           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25284
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest.$ac_objext conftest$ac_exeext
25290 if { (ac_try="$ac_link"
25291 case "(($ac_try" in
25292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293   *) ac_try_echo=$ac_try;;
25294 esac
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296   (eval "$ac_link") 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } && {
25303          test -z "$ac_cxx_werror_flag" ||
25304          test ! -s conftest.err
25305        } && test -s conftest$ac_exeext &&
25306        $as_test_x conftest$ac_exeext; then
25307   wx_cv_cc_gcc_atomic_builtins=yes
25308 else
25309   echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25311
25312         wx_cv_cc_gcc_atomic_builtins=no
25313 fi
25314
25315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25316       conftest$ac_exeext conftest.$ac_ext
25317
25318 fi
25319
25320     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25321 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25322     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25323       cat >>confdefs.h <<\_ACEOF
25324 #define HAVE_GCC_ATOMIC_BUILTINS 1
25325 _ACEOF
25326
25327     fi
25328   fi
25329
25330
25331 ac_ext=c
25332 ac_cpp='$CPP $CPPFLAGS'
25333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25336
25337
25338
25339 SEARCH_INCLUDE="\
25340     /usr/local/include        \
25341     /usr/local/X11/include    \
25342     /usr/local/include/X11    \
25343     /usr/local/X11R6/include  \
25344     /usr/local/include/X11R6  \
25345                               \
25346     /usr/Motif-2.1/include    \
25347     /usr/Motif-1.2/include    \
25348     /usr/include/Motif1.2     \
25349                               \
25350     /usr/dt/include           \
25351     /usr/openwin/include      \
25352                               \
25353     /usr/include/Xm           \
25354                               \
25355     /usr/X11R6/include        \
25356     /usr/X11R6.4/include      \
25357                               \
25358     /usr/include/X11R6        \
25359                               \
25360     /usr/X11/include          \
25361     /usr/include/X11          \
25362                               \
25363     /usr/XFree86/include/X11  \
25364     /usr/pkg/include          \
25365                               \
25366     /usr/local/X1R5/include  \
25367     /usr/local/include/X11R5  \
25368     /usr/X11R5/include        \
25369     /usr/include/X11R5        \
25370                               \
25371     /usr/local/X11R4/include  \
25372     /usr/local/include/X11R4  \
25373     /usr/X11R4/include        \
25374     /usr/include/X11R4        \
25375                               \
25376     /usr/openwin/share/include"
25377
25378 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25379 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25380
25381 case "${host}" in
25382     *-*-irix6* )
25383         if test "${wx_cv_std_libpath+set}" = set; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386
25387                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25388                     for e in a so sl dylib dll.a; do
25389                         libc="$d/libc.$e"
25390                         if test -f $libc; then
25391                             save_LIBS="$LIBS"
25392                             LIBS="$libc"
25393                             cat >conftest.$ac_ext <<_ACEOF
25394 int main() { return 0; }
25395 _ACEOF
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (ac_try="$ac_link"
25398 case "(($ac_try" in
25399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400   *) ac_try_echo=$ac_try;;
25401 esac
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403   (eval "$ac_link") 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } && {
25410          test -z "$ac_c_werror_flag" ||
25411          test ! -s conftest.err
25412        } && test -s conftest$ac_exeext &&
25413        $as_test_x conftest$ac_exeext; then
25414   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25415 else
25416   echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25418
25419
25420 fi
25421
25422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25423       conftest$ac_exeext conftest.$ac_ext
25424                             LIBS="$save_LIBS"
25425                             if test "x$wx_cv_std_libpath" != "x"; then
25426                                 break 2
25427                             fi
25428                         fi
25429                     done
25430                 done
25431                 if test "x$wx_cv_std_libpath" = "x"; then
25432                     wx_cv_std_libpath="lib"
25433                 fi
25434
25435
25436 fi
25437
25438         ;;
25439
25440     *-*-solaris2* )
25441                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25442             wx_cv_std_libpath="lib/64"
25443         else
25444             wx_cv_std_libpath="lib"
25445         fi
25446         ;;
25447
25448     *-*-linux* )
25449                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25450                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25451             wx_cv_std_libpath="lib64"
25452         else
25453             wx_cv_std_libpath="lib"
25454         fi
25455         ;;
25456
25457     *)
25458         wx_cv_std_libpath="lib";
25459         ;;
25460 esac
25461
25462 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25463 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25464
25465 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25466
25467 if test "$build" != "$host" -a "$GCC" = yes; then
25468                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25469         cross_root=`dirname $cross_root`
25470         cross_root=`dirname $cross_root`
25471
25472                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25473         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25474         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25475
25476                 if test -z "$PKG_CONFIG_PATH"; then
25477             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25478             export PKG_CONFIG_PATH
25479         fi
25480
25481                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25482
25483 ac_find_includes=
25484 for ac_dir in $SEARCH_INCLUDE /usr/include;
25485   do
25486     if test -f "$ac_dir/X11/Intrinsic.h"; then
25487       ac_find_includes=$ac_dir
25488       break
25489     fi
25490   done
25491
25492             x_includes=$ac_find_includes
25493         fi
25494         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25495
25496   ac_find_libraries=
25497   for ac_dir in $SEARCH_LIB;
25498   do
25499     for ac_extension in a so sl dylib dll.a; do
25500       if test -f "$ac_dir/libXt.$ac_extension"; then
25501         ac_find_libraries=$ac_dir
25502         break 2
25503       fi
25504     done
25505   done
25506
25507             x_libraries=$ac_find_libraries
25508         fi
25509     fi
25510 fi
25511
25512
25513 cat >confcache <<\_ACEOF
25514 # This file is a shell script that caches the results of configure
25515 # tests run on this system so they can be shared between configure
25516 # scripts and configure runs, see configure's option --config-cache.
25517 # It is not useful on other systems.  If it contains results you don't
25518 # want to keep, you may remove or edit it.
25519 #
25520 # config.status only pays attention to the cache file if you give it
25521 # the --recheck option to rerun configure.
25522 #
25523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25525 # following values.
25526
25527 _ACEOF
25528
25529 # The following way of writing the cache mishandles newlines in values,
25530 # but we know of no workaround that is simple, portable, and efficient.
25531 # So, we kill variables containing newlines.
25532 # Ultrix sh set writes to stderr and can't be redirected directly,
25533 # and sets the high bit in the cache file unless we assign to the vars.
25534 (
25535   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25536     eval ac_val=\$$ac_var
25537     case $ac_val in #(
25538     *${as_nl}*)
25539       case $ac_var in #(
25540       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25542       esac
25543       case $ac_var in #(
25544       _ | IFS | as_nl) ;; #(
25545       *) $as_unset $ac_var ;;
25546       esac ;;
25547     esac
25548   done
25549
25550   (set) 2>&1 |
25551     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25552     *${as_nl}ac_space=\ *)
25553       # `set' does not quote correctly, so add quotes (double-quote
25554       # substitution turns \\\\ into \\, and sed turns \\ into \).
25555       sed -n \
25556         "s/'/'\\\\''/g;
25557           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25558       ;; #(
25559     *)
25560       # `set' quotes correctly as required by POSIX, so do not add quotes.
25561       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25562       ;;
25563     esac |
25564     sort
25565 ) |
25566   sed '
25567      /^ac_cv_env_/b end
25568      t clear
25569      :clear
25570      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25571      t end
25572      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25573      :end' >>confcache
25574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25575   if test -w "$cache_file"; then
25576     test "x$cache_file" != "x/dev/null" &&
25577       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25578 echo "$as_me: updating cache $cache_file" >&6;}
25579     cat confcache >$cache_file
25580   else
25581     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25582 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25583   fi
25584 fi
25585 rm -f confcache
25586
25587 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25588     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25589 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25590 if test "${wx_cv_lib_glibc21+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593
25594         cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600 #include <features.h>
25601 int
25602 main ()
25603 {
25604
25605                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25606                 not glibc 2.1
25607                 #endif
25608
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext
25614 if { (ac_try="$ac_compile"
25615 case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_compile") 2>conftest.er1
25621   ac_status=$?
25622   grep -v '^ *+' conftest.er1 >conftest.err
25623   rm -f conftest.er1
25624   cat conftest.err >&5
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); } && {
25627          test -z "$ac_c_werror_flag" ||
25628          test ! -s conftest.err
25629        } && test -s conftest.$ac_objext; then
25630
25631                 wx_cv_lib_glibc21=yes
25632
25633 else
25634   echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637
25638                 wx_cv_lib_glibc21=no
25639
25640
25641 fi
25642
25643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644
25645 fi
25646 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25647 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25648     if test "$wx_cv_lib_glibc21" = "yes"; then
25649         cat >>confdefs.h <<\_ACEOF
25650 #define wxHAVE_GLIBC2 1
25651 _ACEOF
25652
25653     fi
25654 fi
25655
25656 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25657     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25658         cat >>confdefs.h <<\_ACEOF
25659 #define _GNU_SOURCE 1
25660 _ACEOF
25661
25662     fi
25663 fi
25664
25665 have_cos=0
25666 have_floor=0
25667
25668 for ac_func in cos
25669 do
25670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25674   echo $ECHO_N "(cached) $ECHO_C" >&6
25675 else
25676   cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25684 #define $ac_func innocuous_$ac_func
25685
25686 /* System header to define __stub macros and hopefully few prototypes,
25687     which can conflict with char $ac_func (); below.
25688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25689     <limits.h> exists even on freestanding compilers.  */
25690
25691 #ifdef __STDC__
25692 # include <limits.h>
25693 #else
25694 # include <assert.h>
25695 #endif
25696
25697 #undef $ac_func
25698
25699 /* Override any GCC internal prototype to avoid an error.
25700    Use char because int might match the return type of a GCC
25701    builtin and then its argument prototype would still apply.  */
25702 #ifdef __cplusplus
25703 extern "C"
25704 #endif
25705 char $ac_func ();
25706 /* The GNU C library defines this for functions which it implements
25707     to always fail with ENOSYS.  Some functions are actually named
25708     something starting with __ and the normal name is an alias.  */
25709 #if defined __stub_$ac_func || defined __stub___$ac_func
25710 choke me
25711 #endif
25712
25713 int
25714 main ()
25715 {
25716 return $ac_func ();
25717   ;
25718   return 0;
25719 }
25720 _ACEOF
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728   (eval "$ac_link") 2>conftest.er1
25729   ac_status=$?
25730   grep -v '^ *+' conftest.er1 >conftest.err
25731   rm -f conftest.er1
25732   cat conftest.err >&5
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } && {
25735          test -z "$ac_c_werror_flag" ||
25736          test ! -s conftest.err
25737        } && test -s conftest$ac_exeext &&
25738        $as_test_x conftest$ac_exeext; then
25739   eval "$as_ac_var=yes"
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744         eval "$as_ac_var=no"
25745 fi
25746
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748       conftest$ac_exeext conftest.$ac_ext
25749 fi
25750 ac_res=`eval echo '${'$as_ac_var'}'`
25751                { echo "$as_me:$LINENO: result: $ac_res" >&5
25752 echo "${ECHO_T}$ac_res" >&6; }
25753 if test `eval echo '${'$as_ac_var'}'` = yes; then
25754   cat >>confdefs.h <<_ACEOF
25755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25756 _ACEOF
25757  have_cos=1
25758 fi
25759 done
25760
25761
25762 for ac_func in floor
25763 do
25764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25778 #define $ac_func innocuous_$ac_func
25779
25780 /* System header to define __stub macros and hopefully few prototypes,
25781     which can conflict with char $ac_func (); below.
25782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25783     <limits.h> exists even on freestanding compilers.  */
25784
25785 #ifdef __STDC__
25786 # include <limits.h>
25787 #else
25788 # include <assert.h>
25789 #endif
25790
25791 #undef $ac_func
25792
25793 /* Override any GCC internal prototype to avoid an error.
25794    Use char because int might match the return type of a GCC
25795    builtin and then its argument prototype would still apply.  */
25796 #ifdef __cplusplus
25797 extern "C"
25798 #endif
25799 char $ac_func ();
25800 /* The GNU C library defines this for functions which it implements
25801     to always fail with ENOSYS.  Some functions are actually named
25802     something starting with __ and the normal name is an alias.  */
25803 #if defined __stub_$ac_func || defined __stub___$ac_func
25804 choke me
25805 #endif
25806
25807 int
25808 main ()
25809 {
25810 return $ac_func ();
25811   ;
25812   return 0;
25813 }
25814 _ACEOF
25815 rm -f conftest.$ac_objext conftest$ac_exeext
25816 if { (ac_try="$ac_link"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_link") 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } && {
25829          test -z "$ac_c_werror_flag" ||
25830          test ! -s conftest.err
25831        } && test -s conftest$ac_exeext &&
25832        $as_test_x conftest$ac_exeext; then
25833   eval "$as_ac_var=yes"
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838         eval "$as_ac_var=no"
25839 fi
25840
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842       conftest$ac_exeext conftest.$ac_ext
25843 fi
25844 ac_res=`eval echo '${'$as_ac_var'}'`
25845                { echo "$as_me:$LINENO: result: $ac_res" >&5
25846 echo "${ECHO_T}$ac_res" >&6; }
25847 if test `eval echo '${'$as_ac_var'}'` = yes; then
25848   cat >>confdefs.h <<_ACEOF
25849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25850 _ACEOF
25851  have_floor=1
25852 fi
25853 done
25854
25855 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25856 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25857 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25858     { echo "$as_me:$LINENO: result: yes" >&5
25859 echo "${ECHO_T}yes" >&6; }
25860 else
25861     { echo "$as_me:$LINENO: result: no" >&5
25862 echo "${ECHO_T}no" >&6; }
25863     LIBS="$LIBS -lm"
25864     # use different functions to avoid configure caching
25865     have_sin=0
25866     have_ceil=0
25867
25868 for ac_func in sin
25869 do
25870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25874   echo $ECHO_N "(cached) $ECHO_C" >&6
25875 else
25876   cat >conftest.$ac_ext <<_ACEOF
25877 /* confdefs.h.  */
25878 _ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h.  */
25882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25884 #define $ac_func innocuous_$ac_func
25885
25886 /* System header to define __stub macros and hopefully few prototypes,
25887     which can conflict with char $ac_func (); below.
25888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889     <limits.h> exists even on freestanding compilers.  */
25890
25891 #ifdef __STDC__
25892 # include <limits.h>
25893 #else
25894 # include <assert.h>
25895 #endif
25896
25897 #undef $ac_func
25898
25899 /* Override any GCC internal prototype to avoid an error.
25900    Use char because int might match the return type of a GCC
25901    builtin and then its argument prototype would still apply.  */
25902 #ifdef __cplusplus
25903 extern "C"
25904 #endif
25905 char $ac_func ();
25906 /* The GNU C library defines this for functions which it implements
25907     to always fail with ENOSYS.  Some functions are actually named
25908     something starting with __ and the normal name is an alias.  */
25909 #if defined __stub_$ac_func || defined __stub___$ac_func
25910 choke me
25911 #endif
25912
25913 int
25914 main ()
25915 {
25916 return $ac_func ();
25917   ;
25918   return 0;
25919 }
25920 _ACEOF
25921 rm -f conftest.$ac_objext conftest$ac_exeext
25922 if { (ac_try="$ac_link"
25923 case "(($ac_try" in
25924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925   *) ac_try_echo=$ac_try;;
25926 esac
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928   (eval "$ac_link") 2>conftest.er1
25929   ac_status=$?
25930   grep -v '^ *+' conftest.er1 >conftest.err
25931   rm -f conftest.er1
25932   cat conftest.err >&5
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); } && {
25935          test -z "$ac_c_werror_flag" ||
25936          test ! -s conftest.err
25937        } && test -s conftest$ac_exeext &&
25938        $as_test_x conftest$ac_exeext; then
25939   eval "$as_ac_var=yes"
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944         eval "$as_ac_var=no"
25945 fi
25946
25947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25948       conftest$ac_exeext conftest.$ac_ext
25949 fi
25950 ac_res=`eval echo '${'$as_ac_var'}'`
25951                { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25953 if test `eval echo '${'$as_ac_var'}'` = yes; then
25954   cat >>confdefs.h <<_ACEOF
25955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25956 _ACEOF
25957  have_sin=1
25958 fi
25959 done
25960
25961
25962 for ac_func in ceil
25963 do
25964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25968   echo $ECHO_N "(cached) $ECHO_C" >&6
25969 else
25970   cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25978 #define $ac_func innocuous_$ac_func
25979
25980 /* System header to define __stub macros and hopefully few prototypes,
25981     which can conflict with char $ac_func (); below.
25982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25983     <limits.h> exists even on freestanding compilers.  */
25984
25985 #ifdef __STDC__
25986 # include <limits.h>
25987 #else
25988 # include <assert.h>
25989 #endif
25990
25991 #undef $ac_func
25992
25993 /* Override any GCC internal prototype to avoid an error.
25994    Use char because int might match the return type of a GCC
25995    builtin and then its argument prototype would still apply.  */
25996 #ifdef __cplusplus
25997 extern "C"
25998 #endif
25999 char $ac_func ();
26000 /* The GNU C library defines this for functions which it implements
26001     to always fail with ENOSYS.  Some functions are actually named
26002     something starting with __ and the normal name is an alias.  */
26003 #if defined __stub_$ac_func || defined __stub___$ac_func
26004 choke me
26005 #endif
26006
26007 int
26008 main ()
26009 {
26010 return $ac_func ();
26011   ;
26012   return 0;
26013 }
26014 _ACEOF
26015 rm -f conftest.$ac_objext conftest$ac_exeext
26016 if { (ac_try="$ac_link"
26017 case "(($ac_try" in
26018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019   *) ac_try_echo=$ac_try;;
26020 esac
26021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26022   (eval "$ac_link") 2>conftest.er1
26023   ac_status=$?
26024   grep -v '^ *+' conftest.er1 >conftest.err
26025   rm -f conftest.er1
26026   cat conftest.err >&5
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); } && {
26029          test -z "$ac_c_werror_flag" ||
26030          test ! -s conftest.err
26031        } && test -s conftest$ac_exeext &&
26032        $as_test_x conftest$ac_exeext; then
26033   eval "$as_ac_var=yes"
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038         eval "$as_ac_var=no"
26039 fi
26040
26041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26042       conftest$ac_exeext conftest.$ac_ext
26043 fi
26044 ac_res=`eval echo '${'$as_ac_var'}'`
26045                { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26047 if test `eval echo '${'$as_ac_var'}'` = yes; then
26048   cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26050 _ACEOF
26051  have_ceil=1
26052 fi
26053 done
26054
26055     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26056 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26057     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26058         { echo "$as_me:$LINENO: result: yes" >&5
26059 echo "${ECHO_T}yes" >&6; }
26060     else
26061         { echo "$as_me:$LINENO: result: no" >&5
26062 echo "${ECHO_T}no" >&6; }
26063         # not sure we should warn the user, crash, etc.
26064     fi
26065 fi
26066
26067 ac_ext=cpp
26068 ac_cpp='$CXXCPP $CPPFLAGS'
26069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26072
26073 if test "wxUSE_UNICODE" = "yes"; then
26074
26075   for wx_func in wcstoull
26076   do
26077     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26078 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26079 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26080   echo $ECHO_N "(cached) $ECHO_C" >&6
26081 else
26082
26083         cat >conftest.$ac_ext <<_ACEOF
26084
26085             /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090
26091
26092                 $ac_includes_default
26093
26094 int
26095 main ()
26096 {
26097
26098                 #ifndef $wx_func
26099                   &$wx_func;
26100                 #endif
26101
26102
26103   ;
26104   return 0;
26105 }
26106
26107 _ACEOF
26108 rm -f conftest.$ac_objext conftest$ac_exeext
26109 if { (ac_try="$ac_link"
26110 case "(($ac_try" in
26111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26112   *) ac_try_echo=$ac_try;;
26113 esac
26114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26115   (eval "$ac_link") 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } && {
26122          test -z "$ac_cxx_werror_flag" ||
26123          test ! -s conftest.err
26124        } && test -s conftest$ac_exeext &&
26125        $as_test_x conftest$ac_exeext; then
26126   eval wx_cv_func_$wx_func=yes
26127 else
26128   echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131         eval wx_cv_func_$wx_func=no
26132 fi
26133
26134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26135       conftest$ac_exeext conftest.$ac_ext
26136
26137 fi
26138 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26139                { echo "$as_me:$LINENO: result: $ac_res" >&5
26140 echo "${ECHO_T}$ac_res" >&6; }
26141
26142     if eval test \$wx_cv_func_$wx_func = yes
26143     then
26144       cat >>confdefs.h <<_ACEOF
26145 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26146 _ACEOF
26147
26148
26149     else
26150       :
26151
26152     fi
26153   done
26154
26155 else
26156
26157   for wx_func in strtoull
26158   do
26159     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26160 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26161 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26162   echo $ECHO_N "(cached) $ECHO_C" >&6
26163 else
26164
26165         cat >conftest.$ac_ext <<_ACEOF
26166
26167             /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172
26173
26174                 $ac_includes_default
26175
26176 int
26177 main ()
26178 {
26179
26180                 #ifndef $wx_func
26181                   &$wx_func;
26182                 #endif
26183
26184
26185   ;
26186   return 0;
26187 }
26188
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197   (eval "$ac_link") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && {
26204          test -z "$ac_cxx_werror_flag" ||
26205          test ! -s conftest.err
26206        } && test -s conftest$ac_exeext &&
26207        $as_test_x conftest$ac_exeext; then
26208   eval wx_cv_func_$wx_func=yes
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         eval wx_cv_func_$wx_func=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217       conftest$ac_exeext conftest.$ac_ext
26218
26219 fi
26220 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26221                { echo "$as_me:$LINENO: result: $ac_res" >&5
26222 echo "${ECHO_T}$ac_res" >&6; }
26223
26224     if eval test \$wx_cv_func_$wx_func = yes
26225     then
26226       cat >>confdefs.h <<_ACEOF
26227 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26228 _ACEOF
26229
26230
26231     else
26232       :
26233
26234     fi
26235   done
26236
26237 fi
26238 ac_ext=c
26239 ac_cpp='$CPP $CPPFLAGS'
26240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26243
26244
26245
26246
26247 if test "$wxUSE_REGEX" != "no"; then
26248     cat >>confdefs.h <<\_ACEOF
26249 #define wxUSE_REGEX 1
26250 _ACEOF
26251
26252
26253     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26254         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26255 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26256         wxUSE_REGEX=builtin
26257     fi
26258
26259     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26260                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26261 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26262 if test "${ac_cv_header_regex_h+set}" = set; then
26263   echo $ECHO_N "(cached) $ECHO_C" >&6
26264 else
26265   cat >conftest.$ac_ext <<_ACEOF
26266 /* confdefs.h.  */
26267 _ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h.  */
26271
26272
26273 #include <regex.h>
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279   *) ac_try_echo=$ac_try;;
26280 esac
26281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26282   (eval "$ac_compile") 2>conftest.er1
26283   ac_status=$?
26284   grep -v '^ *+' conftest.er1 >conftest.err
26285   rm -f conftest.er1
26286   cat conftest.err >&5
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); } && {
26289          test -z "$ac_c_werror_flag" ||
26290          test ! -s conftest.err
26291        } && test -s conftest.$ac_objext; then
26292   ac_cv_header_regex_h=yes
26293 else
26294   echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26296
26297         ac_cv_header_regex_h=no
26298 fi
26299
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 fi
26302 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26303 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26304 if test $ac_cv_header_regex_h = yes; then
26305
26306
26307 for ac_func in regcomp re_search
26308 do
26309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26313   echo $ECHO_N "(cached) $ECHO_C" >&6
26314 else
26315   cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26323 #define $ac_func innocuous_$ac_func
26324
26325 /* System header to define __stub macros and hopefully few prototypes,
26326     which can conflict with char $ac_func (); below.
26327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26328     <limits.h> exists even on freestanding compilers.  */
26329
26330 #ifdef __STDC__
26331 # include <limits.h>
26332 #else
26333 # include <assert.h>
26334 #endif
26335
26336 #undef $ac_func
26337
26338 /* Override any GCC internal prototype to avoid an error.
26339    Use char because int might match the return type of a GCC
26340    builtin and then its argument prototype would still apply.  */
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char $ac_func ();
26345 /* The GNU C library defines this for functions which it implements
26346     to always fail with ENOSYS.  Some functions are actually named
26347     something starting with __ and the normal name is an alias.  */
26348 #if defined __stub_$ac_func || defined __stub___$ac_func
26349 choke me
26350 #endif
26351
26352 int
26353 main ()
26354 {
26355 return $ac_func ();
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_link") 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } && {
26374          test -z "$ac_c_werror_flag" ||
26375          test ! -s conftest.err
26376        } && test -s conftest$ac_exeext &&
26377        $as_test_x conftest$ac_exeext; then
26378   eval "$as_ac_var=yes"
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383         eval "$as_ac_var=no"
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387       conftest$ac_exeext conftest.$ac_ext
26388 fi
26389 ac_res=`eval echo '${'$as_ac_var'}'`
26390                { echo "$as_me:$LINENO: result: $ac_res" >&5
26391 echo "${ECHO_T}$ac_res" >&6; }
26392 if test `eval echo '${'$as_ac_var'}'` = yes; then
26393   cat >>confdefs.h <<_ACEOF
26394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26395 _ACEOF
26396
26397 fi
26398 done
26399
26400 fi
26401
26402
26403
26404         if test "x$ac_cv_func_regcomp" != "xyes"; then
26405             if test "$wxUSE_REGEX" = "sys" ; then
26406                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26407 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26408    { (exit 1); exit 1; }; }
26409             else
26410                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26411 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26412                 wxUSE_REGEX=builtin
26413             fi
26414         else
26415                         wxUSE_REGEX=sys
26416                         cat >>confdefs.h <<\_ACEOF
26417 #define WX_NO_REGEX_ADVANCED 1
26418 _ACEOF
26419
26420         fi
26421     fi
26422 fi
26423
26424
26425 ZLIB_LINK=
26426 if test "$wxUSE_ZLIB" != "no" ; then
26427     cat >>confdefs.h <<\_ACEOF
26428 #define wxUSE_ZLIB 1
26429 _ACEOF
26430
26431
26432     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26433                                                 if test "$USE_DARWIN" = 1; then
26434             system_zlib_h_ok="yes"
26435         else
26436                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26437 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26438 if test "${ac_cv_header_zlib_h+set}" = set; then
26439   echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26441   if test "$cross_compiling" = yes; then
26442                       unset ac_cv_header_zlib_h
26443
26444 else
26445   cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451
26452                         #include <zlib.h>
26453                         #include <stdio.h>
26454
26455                         int main()
26456                         {
26457                             FILE *f=fopen("conftestval", "w");
26458                             if (!f) exit(1);
26459                             fprintf(f, "%s",
26460                                     ZLIB_VERSION[0] == '1' &&
26461                                     (ZLIB_VERSION[2] > '1' ||
26462                                     (ZLIB_VERSION[2] == '1' &&
26463                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26464                             exit(0);
26465                         }
26466
26467 _ACEOF
26468 rm -f conftest$ac_exeext
26469 if { (ac_try="$ac_link"
26470 case "(($ac_try" in
26471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26472   *) ac_try_echo=$ac_try;;
26473 esac
26474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26475   (eval "$ac_link") 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26479   { (case "(($ac_try" in
26480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481   *) ac_try_echo=$ac_try;;
26482 esac
26483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26484   (eval "$ac_try") 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; }; then
26488   ac_cv_header_zlib_h=`cat conftestval`
26489 else
26490   echo "$as_me: program exited with status $ac_status" >&5
26491 echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494 ( exit $ac_status )
26495 ac_cv_header_zlib_h=no
26496 fi
26497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26498 fi
26499
26500
26501
26502 fi
26503 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26504 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26505                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26506 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26507 if test "${ac_cv_header_zlib_h+set}" = set; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26510   cat >conftest.$ac_ext <<_ACEOF
26511 /* confdefs.h.  */
26512 _ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h.  */
26516
26517
26518 #include <zlib.h>
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527   (eval "$ac_compile") 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } && {
26534          test -z "$ac_c_werror_flag" ||
26535          test ! -s conftest.err
26536        } && test -s conftest.$ac_objext; then
26537   ac_cv_header_zlib_h=yes
26538 else
26539   echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26541
26542         ac_cv_header_zlib_h=no
26543 fi
26544
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546 fi
26547 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26548 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26549
26550
26551
26552             system_zlib_h_ok=$ac_cv_header_zlib_h
26553         fi
26554
26555         if test "$system_zlib_h_ok" = "yes"; then
26556             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26557 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26558 if test "${ac_cv_lib_z_deflate+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561   ac_check_lib_save_LIBS=$LIBS
26562 LIBS="-lz  $LIBS"
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569
26570 /* Override any GCC internal prototype to avoid an error.
26571    Use char because int might match the return type of a GCC
26572    builtin and then its argument prototype would still apply.  */
26573 #ifdef __cplusplus
26574 extern "C"
26575 #endif
26576 char deflate ();
26577 int
26578 main ()
26579 {
26580 return deflate ();
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 rm -f conftest.$ac_objext conftest$ac_exeext
26586 if { (ac_try="$ac_link"
26587 case "(($ac_try" in
26588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589   *) ac_try_echo=$ac_try;;
26590 esac
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592   (eval "$ac_link") 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } && {
26599          test -z "$ac_c_werror_flag" ||
26600          test ! -s conftest.err
26601        } && test -s conftest$ac_exeext &&
26602        $as_test_x conftest$ac_exeext; then
26603   ac_cv_lib_z_deflate=yes
26604 else
26605   echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608         ac_cv_lib_z_deflate=no
26609 fi
26610
26611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26612       conftest$ac_exeext conftest.$ac_ext
26613 LIBS=$ac_check_lib_save_LIBS
26614 fi
26615 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26616 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26617 if test $ac_cv_lib_z_deflate = yes; then
26618   ZLIB_LINK=" -lz"
26619 fi
26620
26621         fi
26622
26623         if test "x$ZLIB_LINK" = "x" ; then
26624             if test "$wxUSE_ZLIB" = "sys" ; then
26625                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26626 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26627    { (exit 1); exit 1; }; }
26628             else
26629                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26630 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26631                 wxUSE_ZLIB=builtin
26632             fi
26633         else
26634                         wxUSE_ZLIB=sys
26635         fi
26636     fi
26637 fi
26638
26639
26640 PNG_LINK=
26641 if test "$wxUSE_LIBPNG" != "no" ; then
26642     cat >>confdefs.h <<\_ACEOF
26643 #define wxUSE_LIBPNG 1
26644 _ACEOF
26645
26646
26647     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26648         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26649 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26650         wxUSE_LIBPNG=sys
26651     fi
26652
26653                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26654         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26655 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26656         wxUSE_LIBPNG=builtin
26657     fi
26658
26659     if test "$wxUSE_MGL" != 1 ; then
26660                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26661                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26662 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26663 if test "${ac_cv_header_png_h+set}" = set; then
26664   echo $ECHO_N "(cached) $ECHO_C" >&6
26665 else
26666   if test "$cross_compiling" = yes; then
26667                       unset ac_cv_header_png_h
26668
26669 else
26670   cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676
26677                         #include <png.h>
26678                         #include <stdio.h>
26679
26680                         int main()
26681                         {
26682                             FILE *f=fopen("conftestval", "w");
26683                             if (!f) exit(1);
26684                             fprintf(f, "%s",
26685                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26686                             exit(0);
26687                         }
26688
26689 _ACEOF
26690 rm -f conftest$ac_exeext
26691 if { (ac_try="$ac_link"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697   (eval "$ac_link") 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26701   { (case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_try") 2>&5
26707   ac_status=$?
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); }; }; then
26710   ac_cv_header_png_h=`cat conftestval`
26711 else
26712   echo "$as_me: program exited with status $ac_status" >&5
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 ( exit $ac_status )
26717 ac_cv_header_png_h=no
26718 fi
26719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26720 fi
26721
26722
26723
26724 fi
26725 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26726 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26727             { echo "$as_me:$LINENO: checking for png.h" >&5
26728 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26729 if test "${ac_cv_header_png_h+set}" = set; then
26730   echo $ECHO_N "(cached) $ECHO_C" >&6
26731 else
26732   cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738
26739
26740 #include <png.h>
26741 _ACEOF
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746   *) ac_try_echo=$ac_try;;
26747 esac
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749   (eval "$ac_compile") 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } && {
26756          test -z "$ac_c_werror_flag" ||
26757          test ! -s conftest.err
26758        } && test -s conftest.$ac_objext; then
26759   ac_cv_header_png_h=yes
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764         ac_cv_header_png_h=no
26765 fi
26766
26767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26768 fi
26769 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26770 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26771
26772
26773
26774             if test "$ac_cv_header_png_h" = "yes"; then
26775                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26776 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26777 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26778   echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780   ac_check_lib_save_LIBS=$LIBS
26781 LIBS="-lpng -lz -lm $LIBS"
26782 cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h.  */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h.  */
26788
26789 /* Override any GCC internal prototype to avoid an error.
26790    Use char because int might match the return type of a GCC
26791    builtin and then its argument prototype would still apply.  */
26792 #ifdef __cplusplus
26793 extern "C"
26794 #endif
26795 char png_check_sig ();
26796 int
26797 main ()
26798 {
26799 return png_check_sig ();
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (ac_try="$ac_link"
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_link") 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_exeext &&
26821        $as_test_x conftest$ac_exeext; then
26822   ac_cv_lib_png_png_check_sig=yes
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827         ac_cv_lib_png_png_check_sig=no
26828 fi
26829
26830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26831       conftest$ac_exeext conftest.$ac_ext
26832 LIBS=$ac_check_lib_save_LIBS
26833 fi
26834 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26835 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26836 if test $ac_cv_lib_png_png_check_sig = yes; then
26837   PNG_LINK=" -lpng -lz"
26838 fi
26839
26840             fi
26841
26842             if test "x$PNG_LINK" = "x" ; then
26843                 if test "$wxUSE_LIBPNG" = "sys" ; then
26844                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26845 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26846    { (exit 1); exit 1; }; }
26847                 else
26848                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26849 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26850                     wxUSE_LIBPNG=builtin
26851                 fi
26852             else
26853                                 wxUSE_LIBPNG=sys
26854             fi
26855         fi
26856     fi
26857 fi
26858
26859
26860 JPEG_LINK=
26861 if test "$wxUSE_LIBJPEG" != "no" ; then
26862     cat >>confdefs.h <<\_ACEOF
26863 #define wxUSE_LIBJPEG 1
26864 _ACEOF
26865
26866
26867     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26868         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26869 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26870         wxUSE_LIBJPEG=sys
26871     fi
26872
26873     if test "$wxUSE_MGL" != 1 ; then
26874                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26875                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26876 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26877             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   cat >conftest.$ac_ext <<_ACEOF
26881 /* confdefs.h.  */
26882 _ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h.  */
26886
26887                         #undef HAVE_STDLIB_H
26888                         #include <stdio.h>
26889                         #include <jpeglib.h>
26890
26891 int
26892 main ()
26893 {
26894
26895
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (ac_try="$ac_compile"
26902 case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_compile") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } && {
26914          test -z "$ac_c_werror_flag" ||
26915          test ! -s conftest.err
26916        } && test -s conftest.$ac_objext; then
26917   ac_cv_header_jpeglib_h=yes
26918 else
26919   echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26921
26922         ac_cv_header_jpeglib_h=no
26923
26924 fi
26925
26926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927
26928 fi
26929
26930             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26931 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26932
26933             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26934                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26935 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26936 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26937   echo $ECHO_N "(cached) $ECHO_C" >&6
26938 else
26939   ac_check_lib_save_LIBS=$LIBS
26940 LIBS="-ljpeg  $LIBS"
26941 cat >conftest.$ac_ext <<_ACEOF
26942 /* confdefs.h.  */
26943 _ACEOF
26944 cat confdefs.h >>conftest.$ac_ext
26945 cat >>conftest.$ac_ext <<_ACEOF
26946 /* end confdefs.h.  */
26947
26948 /* Override any GCC internal prototype to avoid an error.
26949    Use char because int might match the return type of a GCC
26950    builtin and then its argument prototype would still apply.  */
26951 #ifdef __cplusplus
26952 extern "C"
26953 #endif
26954 char jpeg_read_header ();
26955 int
26956 main ()
26957 {
26958 return jpeg_read_header ();
26959   ;
26960   return 0;
26961 }
26962 _ACEOF
26963 rm -f conftest.$ac_objext conftest$ac_exeext
26964 if { (ac_try="$ac_link"
26965 case "(($ac_try" in
26966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967   *) ac_try_echo=$ac_try;;
26968 esac
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970   (eval "$ac_link") 2>conftest.er1
26971   ac_status=$?
26972   grep -v '^ *+' conftest.er1 >conftest.err
26973   rm -f conftest.er1
26974   cat conftest.err >&5
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); } && {
26977          test -z "$ac_c_werror_flag" ||
26978          test ! -s conftest.err
26979        } && test -s conftest$ac_exeext &&
26980        $as_test_x conftest$ac_exeext; then
26981   ac_cv_lib_jpeg_jpeg_read_header=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986         ac_cv_lib_jpeg_jpeg_read_header=no
26987 fi
26988
26989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26990       conftest$ac_exeext conftest.$ac_ext
26991 LIBS=$ac_check_lib_save_LIBS
26992 fi
26993 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26994 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26995 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26996   JPEG_LINK=" -ljpeg"
26997 fi
26998
26999             fi
27000
27001             if test "x$JPEG_LINK" = "x" ; then
27002                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27003                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27004 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27005    { (exit 1); exit 1; }; }
27006                 else
27007                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27008 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27009                     wxUSE_LIBJPEG=builtin
27010                 fi
27011             else
27012                                 wxUSE_LIBJPEG=sys
27013
27014                 if test "$wxUSE_MSW" = 1; then
27015                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27016 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27017 if test "${ac_cv_type_boolean+set}" = set; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020   cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h.  */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h.  */
27026 #include <windows.h>
27027
27028 typedef boolean ac__type_new_;
27029 int
27030 main ()
27031 {
27032 if ((ac__type_new_ *) 0)
27033   return 0;
27034 if (sizeof (ac__type_new_))
27035   return 0;
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 rm -f conftest.$ac_objext
27041 if { (ac_try="$ac_compile"
27042 case "(($ac_try" in
27043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044   *) ac_try_echo=$ac_try;;
27045 esac
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047   (eval "$ac_compile") 2>conftest.er1
27048   ac_status=$?
27049   grep -v '^ *+' conftest.er1 >conftest.err
27050   rm -f conftest.er1
27051   cat conftest.err >&5
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); } && {
27054          test -z "$ac_c_werror_flag" ||
27055          test ! -s conftest.err
27056        } && test -s conftest.$ac_objext; then
27057   ac_cv_type_boolean=yes
27058 else
27059   echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062         ac_cv_type_boolean=no
27063 fi
27064
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066 fi
27067 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27068 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27069 if test $ac_cv_type_boolean = yes; then
27070
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_BOOLEAN 1
27073 _ACEOF
27074
27075
27076                             { echo "$as_me:$LINENO: checking for boolean" >&5
27077 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27078 if test "${ac_cv_type_boolean+set}" = set; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081   cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087
27088                                     #undef HAVE_BOOLEAN
27089                                     #include <stdio.h>
27090                                     #include <jpeglib.h>
27091
27092
27093 typedef boolean ac__type_new_;
27094 int
27095 main ()
27096 {
27097 if ((ac__type_new_ *) 0)
27098   return 0;
27099 if (sizeof (ac__type_new_))
27100   return 0;
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext
27106 if { (ac_try="$ac_compile"
27107 case "(($ac_try" in
27108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109   *) ac_try_echo=$ac_try;;
27110 esac
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112   (eval "$ac_compile") 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } && {
27119          test -z "$ac_c_werror_flag" ||
27120          test ! -s conftest.err
27121        } && test -s conftest.$ac_objext; then
27122   ac_cv_type_boolean=yes
27123 else
27124   echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127         ac_cv_type_boolean=no
27128 fi
27129
27130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27131 fi
27132 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27133 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27134
27135 # The cast to long int works around a bug in the HP C Compiler
27136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27138 # This bug is HP SR number 8606223364.
27139 { echo "$as_me:$LINENO: checking size of boolean" >&5
27140 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27141 if test "${ac_cv_sizeof_boolean+set}" = set; then
27142   echo $ECHO_N "(cached) $ECHO_C" >&6
27143 else
27144   if test "$cross_compiling" = yes; then
27145   # Depending upon the size, compute the lo and hi bounds.
27146 cat >conftest.$ac_ext <<_ACEOF
27147 /* confdefs.h.  */
27148 _ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h.  */
27152
27153                                     #undef HAVE_BOOLEAN
27154                                     #include <stdio.h>
27155                                     #include <jpeglib.h>
27156
27157
27158    typedef boolean ac__type_sizeof_;
27159 int
27160 main ()
27161 {
27162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27163 test_array [0] = 0
27164
27165   ;
27166   return 0;
27167 }
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_compile") 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } && {
27183          test -z "$ac_c_werror_flag" ||
27184          test ! -s conftest.err
27185        } && test -s conftest.$ac_objext; then
27186   ac_lo=0 ac_mid=0
27187   while :; do
27188     cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h.  */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h.  */
27194
27195                                     #undef HAVE_BOOLEAN
27196                                     #include <stdio.h>
27197                                     #include <jpeglib.h>
27198
27199
27200    typedef boolean ac__type_sizeof_;
27201 int
27202 main ()
27203 {
27204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27205 test_array [0] = 0
27206
27207   ;
27208   return 0;
27209 }
27210 _ACEOF
27211 rm -f conftest.$ac_objext
27212 if { (ac_try="$ac_compile"
27213 case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_compile") 2>conftest.er1
27219   ac_status=$?
27220   grep -v '^ *+' conftest.er1 >conftest.err
27221   rm -f conftest.er1
27222   cat conftest.err >&5
27223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224   (exit $ac_status); } && {
27225          test -z "$ac_c_werror_flag" ||
27226          test ! -s conftest.err
27227        } && test -s conftest.$ac_objext; then
27228   ac_hi=$ac_mid; break
27229 else
27230   echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27232
27233         ac_lo=`expr $ac_mid + 1`
27234                         if test $ac_lo -le $ac_mid; then
27235                           ac_lo= ac_hi=
27236                           break
27237                         fi
27238                         ac_mid=`expr 2 '*' $ac_mid + 1`
27239 fi
27240
27241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242   done
27243 else
27244   echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27246
27247         cat >conftest.$ac_ext <<_ACEOF
27248 /* confdefs.h.  */
27249 _ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h.  */
27253
27254                                     #undef HAVE_BOOLEAN
27255                                     #include <stdio.h>
27256                                     #include <jpeglib.h>
27257
27258
27259    typedef boolean ac__type_sizeof_;
27260 int
27261 main ()
27262 {
27263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27264 test_array [0] = 0
27265
27266   ;
27267   return 0;
27268 }
27269 _ACEOF
27270 rm -f conftest.$ac_objext
27271 if { (ac_try="$ac_compile"
27272 case "(($ac_try" in
27273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274   *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277   (eval "$ac_compile") 2>conftest.er1
27278   ac_status=$?
27279   grep -v '^ *+' conftest.er1 >conftest.err
27280   rm -f conftest.er1
27281   cat conftest.err >&5
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); } && {
27284          test -z "$ac_c_werror_flag" ||
27285          test ! -s conftest.err
27286        } && test -s conftest.$ac_objext; then
27287   ac_hi=-1 ac_mid=-1
27288   while :; do
27289     cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h.  */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h.  */
27295
27296                                     #undef HAVE_BOOLEAN
27297                                     #include <stdio.h>
27298                                     #include <jpeglib.h>
27299
27300
27301    typedef boolean ac__type_sizeof_;
27302 int
27303 main ()
27304 {
27305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27306 test_array [0] = 0
27307
27308   ;
27309   return 0;
27310 }
27311 _ACEOF
27312 rm -f conftest.$ac_objext
27313 if { (ac_try="$ac_compile"
27314 case "(($ac_try" in
27315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316   *) ac_try_echo=$ac_try;;
27317 esac
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319   (eval "$ac_compile") 2>conftest.er1
27320   ac_status=$?
27321   grep -v '^ *+' conftest.er1 >conftest.err
27322   rm -f conftest.er1
27323   cat conftest.err >&5
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); } && {
27326          test -z "$ac_c_werror_flag" ||
27327          test ! -s conftest.err
27328        } && test -s conftest.$ac_objext; then
27329   ac_lo=$ac_mid; break
27330 else
27331   echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27333
27334         ac_hi=`expr '(' $ac_mid ')' - 1`
27335                         if test $ac_mid -le $ac_hi; then
27336                           ac_lo= ac_hi=
27337                           break
27338                         fi
27339                         ac_mid=`expr 2 '*' $ac_mid`
27340 fi
27341
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343   done
27344 else
27345   echo "$as_me: failed program was:" >&5
27346 sed 's/^/| /' conftest.$ac_ext >&5
27347
27348         ac_lo= ac_hi=
27349 fi
27350
27351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352 fi
27353
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27355 # Binary search between lo and hi bounds.
27356 while test "x$ac_lo" != "x$ac_hi"; do
27357   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27358   cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364
27365                                     #undef HAVE_BOOLEAN
27366                                     #include <stdio.h>
27367                                     #include <jpeglib.h>
27368
27369
27370    typedef boolean ac__type_sizeof_;
27371 int
27372 main ()
27373 {
27374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27375 test_array [0] = 0
27376
27377   ;
27378   return 0;
27379 }
27380 _ACEOF
27381 rm -f conftest.$ac_objext
27382 if { (ac_try="$ac_compile"
27383 case "(($ac_try" in
27384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385   *) ac_try_echo=$ac_try;;
27386 esac
27387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388   (eval "$ac_compile") 2>conftest.er1
27389   ac_status=$?
27390   grep -v '^ *+' conftest.er1 >conftest.err
27391   rm -f conftest.er1
27392   cat conftest.err >&5
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } && {
27395          test -z "$ac_c_werror_flag" ||
27396          test ! -s conftest.err
27397        } && test -s conftest.$ac_objext; then
27398   ac_hi=$ac_mid
27399 else
27400   echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27402
27403         ac_lo=`expr '(' $ac_mid ')' + 1`
27404 fi
27405
27406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 done
27408 case $ac_lo in
27409 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27410 '') if test "$ac_cv_type_boolean" = yes; then
27411      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27412 See \`config.log' for more details." >&5
27413 echo "$as_me: error: cannot compute sizeof (boolean)
27414 See \`config.log' for more details." >&2;}
27415    { (exit 77); exit 77; }; }
27416    else
27417      ac_cv_sizeof_boolean=0
27418    fi ;;
27419 esac
27420 else
27421   cat >conftest.$ac_ext <<_ACEOF
27422 /* confdefs.h.  */
27423 _ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h.  */
27427
27428                                     #undef HAVE_BOOLEAN
27429                                     #include <stdio.h>
27430                                     #include <jpeglib.h>
27431
27432
27433    typedef boolean ac__type_sizeof_;
27434 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27435 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27436 #include <stdio.h>
27437 #include <stdlib.h>
27438 int
27439 main ()
27440 {
27441
27442   FILE *f = fopen ("conftest.val", "w");
27443   if (! f)
27444     return 1;
27445   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27446     {
27447       long int i = longval ();
27448       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27449         return 1;
27450       fprintf (f, "%ld\n", i);
27451     }
27452   else
27453     {
27454       unsigned long int i = ulongval ();
27455       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27456         return 1;
27457       fprintf (f, "%lu\n", i);
27458     }
27459   return ferror (f) || fclose (f) != 0;
27460
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest$ac_exeext
27466 if { (ac_try="$ac_link"
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_link") 2>&5
27473   ac_status=$?
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27476   { (case "(($ac_try" in
27477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478   *) ac_try_echo=$ac_try;;
27479 esac
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481   (eval "$ac_try") 2>&5
27482   ac_status=$?
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); }; }; then
27485   ac_cv_sizeof_boolean=`cat conftest.val`
27486 else
27487   echo "$as_me: program exited with status $ac_status" >&5
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 ( exit $ac_status )
27492 if test "$ac_cv_type_boolean" = yes; then
27493      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27494 See \`config.log' for more details." >&5
27495 echo "$as_me: error: cannot compute sizeof (boolean)
27496 See \`config.log' for more details." >&2;}
27497    { (exit 77); exit 77; }; }
27498    else
27499      ac_cv_sizeof_boolean=0
27500    fi
27501 fi
27502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27503 fi
27504 rm -f conftest.val
27505 fi
27506 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27507 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27508
27509
27510
27511 cat >>confdefs.h <<_ACEOF
27512 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27513 _ACEOF
27514
27515
27516                             cat >>confdefs.h <<_ACEOF
27517 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27518 _ACEOF
27519
27520
27521 fi
27522
27523                 fi
27524             fi
27525         fi
27526     fi
27527 fi
27528
27529
27530 TIFF_LINK=
27531 TIFF_PREREQ_LINKS=-lm
27532 if test "$wxUSE_LIBTIFF" != "no" ; then
27533     cat >>confdefs.h <<\_ACEOF
27534 #define wxUSE_LIBTIFF 1
27535 _ACEOF
27536
27537
27538     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27539                         if test "$wxUSE_LIBJPEG" = "sys"; then
27540             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27541         fi
27542         if test "$wxUSE_ZLIB" = "sys"; then
27543             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27544         fi
27545         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27546 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27547 if test "${ac_cv_header_tiffio_h+set}" = set; then
27548   echo $ECHO_N "(cached) $ECHO_C" >&6
27549 else
27550   cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556
27557
27558
27559 #include <tiffio.h>
27560 _ACEOF
27561 rm -f conftest.$ac_objext
27562 if { (ac_try="$ac_compile"
27563 case "(($ac_try" in
27564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565   *) ac_try_echo=$ac_try;;
27566 esac
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568   (eval "$ac_compile") 2>conftest.er1
27569   ac_status=$?
27570   grep -v '^ *+' conftest.er1 >conftest.err
27571   rm -f conftest.er1
27572   cat conftest.err >&5
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); } && {
27575          test -z "$ac_c_werror_flag" ||
27576          test ! -s conftest.err
27577        } && test -s conftest.$ac_objext; then
27578   ac_cv_header_tiffio_h=yes
27579 else
27580   echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27582
27583         ac_cv_header_tiffio_h=no
27584 fi
27585
27586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27587 fi
27588 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27589 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27590 if test $ac_cv_header_tiffio_h = yes; then
27591
27592                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27593 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27594 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27595   echo $ECHO_N "(cached) $ECHO_C" >&6
27596 else
27597   ac_check_lib_save_LIBS=$LIBS
27598 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27599 cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605
27606 /* Override any GCC internal prototype to avoid an error.
27607    Use char because int might match the return type of a GCC
27608    builtin and then its argument prototype would still apply.  */
27609 #ifdef __cplusplus
27610 extern "C"
27611 #endif
27612 char TIFFError ();
27613 int
27614 main ()
27615 {
27616 return TIFFError ();
27617   ;
27618   return 0;
27619 }
27620 _ACEOF
27621 rm -f conftest.$ac_objext conftest$ac_exeext
27622 if { (ac_try="$ac_link"
27623 case "(($ac_try" in
27624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625   *) ac_try_echo=$ac_try;;
27626 esac
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628   (eval "$ac_link") 2>conftest.er1
27629   ac_status=$?
27630   grep -v '^ *+' conftest.er1 >conftest.err
27631   rm -f conftest.er1
27632   cat conftest.err >&5
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); } && {
27635          test -z "$ac_c_werror_flag" ||
27636          test ! -s conftest.err
27637        } && test -s conftest$ac_exeext &&
27638        $as_test_x conftest$ac_exeext; then
27639   ac_cv_lib_tiff_TIFFError=yes
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644         ac_cv_lib_tiff_TIFFError=no
27645 fi
27646
27647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27648       conftest$ac_exeext conftest.$ac_ext
27649 LIBS=$ac_check_lib_save_LIBS
27650 fi
27651 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27652 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27653 if test $ac_cv_lib_tiff_TIFFError = yes; then
27654   TIFF_LINK=" -ltiff"
27655 fi
27656
27657
27658 fi
27659
27660
27661
27662         if test "x$TIFF_LINK" = "x" ; then
27663             if test "$wxUSE_LIBTIFF" = "sys" ; then
27664                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27665 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27666    { (exit 1); exit 1; }; }
27667             else
27668                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27669 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27670                 wxUSE_LIBTIFF=builtin
27671             fi
27672         else
27673                         wxUSE_LIBTIFF=sys
27674         fi
27675     fi
27676     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27677         if test "$wxUSE_LIBJPEG" = "no"; then
27678                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27679         fi
27680         subdirs="$subdirs src/tiff"
27681
27682     fi
27683 fi
27684
27685
27686 if test "$wxUSE_WCHAR_T" != "yes"; then
27687     if test "$wxUSE_EXPAT" != "no"; then
27688         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27689 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27690         wxUSE_EXPAT=no
27691     fi
27692     if test "$wxUSE_XML" != "no"; then
27693         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27694 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27695         wxUSE_XML=no
27696     fi
27697 fi
27698
27699 if test "$wxUSE_EXPAT" != "no"; then
27700     wxUSE_XML=yes
27701     cat >>confdefs.h <<\_ACEOF
27702 #define wxUSE_EXPAT 1
27703 _ACEOF
27704
27705     cat >>confdefs.h <<\_ACEOF
27706 #define wxUSE_XML 1
27707 _ACEOF
27708
27709
27710     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27711         { echo "$as_me:$LINENO: checking for expat.h" >&5
27712 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27713 if test "${ac_cv_header_expat_h+set}" = set; then
27714   echo $ECHO_N "(cached) $ECHO_C" >&6
27715 else
27716   cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722
27723
27724 #include <expat.h>
27725 _ACEOF
27726 rm -f conftest.$ac_objext
27727 if { (ac_try="$ac_compile"
27728 case "(($ac_try" in
27729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730   *) ac_try_echo=$ac_try;;
27731 esac
27732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733   (eval "$ac_compile") 2>conftest.er1
27734   ac_status=$?
27735   grep -v '^ *+' conftest.er1 >conftest.err
27736   rm -f conftest.er1
27737   cat conftest.err >&5
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); } && {
27740          test -z "$ac_c_werror_flag" ||
27741          test ! -s conftest.err
27742        } && test -s conftest.$ac_objext; then
27743   ac_cv_header_expat_h=yes
27744 else
27745   echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27747
27748         ac_cv_header_expat_h=no
27749 fi
27750
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27752 fi
27753 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27754 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27755 if test $ac_cv_header_expat_h = yes; then
27756   found_expat_h=1
27757 fi
27758
27759
27760         if test "x$found_expat_h" = "x1"; then
27761                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27762 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27763 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27764   echo $ECHO_N "(cached) $ECHO_C" >&6
27765 else
27766
27767                 ac_ext=cpp
27768 ac_cpp='$CXXCPP $CPPFLAGS'
27769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27772
27773                 cat >conftest.$ac_ext <<_ACEOF
27774 /* confdefs.h.  */
27775 _ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h.  */
27779 #include <expat.h>
27780 int
27781 main ()
27782 {
27783
27784   ;
27785   return 0;
27786 }
27787 _ACEOF
27788 rm -f conftest.$ac_objext
27789 if { (ac_try="$ac_compile"
27790 case "(($ac_try" in
27791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792   *) ac_try_echo=$ac_try;;
27793 esac
27794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795   (eval "$ac_compile") 2>conftest.er1
27796   ac_status=$?
27797   grep -v '^ *+' conftest.er1 >conftest.err
27798   rm -f conftest.er1
27799   cat conftest.err >&5
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); } && {
27802          test -z "$ac_cxx_werror_flag" ||
27803          test ! -s conftest.err
27804        } && test -s conftest.$ac_objext; then
27805   wx_cv_expat_is_not_broken=yes
27806 else
27807   echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27809
27810         wx_cv_expat_is_not_broken=no
27811
27812 fi
27813
27814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27815                 ac_ext=c
27816 ac_cpp='$CPP $CPPFLAGS'
27817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27820
27821
27822
27823 fi
27824 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27825 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27826             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27827                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27828 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27829 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27830   echo $ECHO_N "(cached) $ECHO_C" >&6
27831 else
27832   ac_check_lib_save_LIBS=$LIBS
27833 LIBS="-lexpat  $LIBS"
27834 cat >conftest.$ac_ext <<_ACEOF
27835 /* confdefs.h.  */
27836 _ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h.  */
27840
27841 /* Override any GCC internal prototype to avoid an error.
27842    Use char because int might match the return type of a GCC
27843    builtin and then its argument prototype would still apply.  */
27844 #ifdef __cplusplus
27845 extern "C"
27846 #endif
27847 char XML_ParserCreate ();
27848 int
27849 main ()
27850 {
27851 return XML_ParserCreate ();
27852   ;
27853   return 0;
27854 }
27855 _ACEOF
27856 rm -f conftest.$ac_objext conftest$ac_exeext
27857 if { (ac_try="$ac_link"
27858 case "(($ac_try" in
27859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860   *) ac_try_echo=$ac_try;;
27861 esac
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863   (eval "$ac_link") 2>conftest.er1
27864   ac_status=$?
27865   grep -v '^ *+' conftest.er1 >conftest.err
27866   rm -f conftest.er1
27867   cat conftest.err >&5
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); } && {
27870          test -z "$ac_c_werror_flag" ||
27871          test ! -s conftest.err
27872        } && test -s conftest$ac_exeext &&
27873        $as_test_x conftest$ac_exeext; then
27874   ac_cv_lib_expat_XML_ParserCreate=yes
27875 else
27876   echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879         ac_cv_lib_expat_XML_ParserCreate=no
27880 fi
27881
27882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27883       conftest$ac_exeext conftest.$ac_ext
27884 LIBS=$ac_check_lib_save_LIBS
27885 fi
27886 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27887 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27888 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27889   EXPAT_LINK=" -lexpat"
27890 fi
27891
27892             fi
27893         fi
27894         if test "x$EXPAT_LINK" = "x" ; then
27895             if test "$wxUSE_EXPAT" = "sys" ; then
27896                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27897 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27898    { (exit 1); exit 1; }; }
27899             else
27900                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27901 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27902                 wxUSE_EXPAT=builtin
27903             fi
27904         else
27905                         wxUSE_EXPAT=sys
27906         fi
27907     fi
27908     if test "$wxUSE_EXPAT" = "builtin" ; then
27909                 subdirs="$subdirs src/expat"
27910
27911     fi
27912 fi
27913
27914
27915
27916 if test "$wxUSE_LIBMSPACK" != "no"; then
27917     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27918 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27919 if test "${ac_cv_header_mspack_h+set}" = set; then
27920   echo $ECHO_N "(cached) $ECHO_C" >&6
27921 else
27922   cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h.  */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h.  */
27928
27929
27930 #include <mspack.h>
27931 _ACEOF
27932 rm -f conftest.$ac_objext
27933 if { (ac_try="$ac_compile"
27934 case "(($ac_try" in
27935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936   *) ac_try_echo=$ac_try;;
27937 esac
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939   (eval "$ac_compile") 2>conftest.er1
27940   ac_status=$?
27941   grep -v '^ *+' conftest.er1 >conftest.err
27942   rm -f conftest.er1
27943   cat conftest.err >&5
27944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945   (exit $ac_status); } && {
27946          test -z "$ac_c_werror_flag" ||
27947          test ! -s conftest.err
27948        } && test -s conftest.$ac_objext; then
27949   ac_cv_header_mspack_h=yes
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954         ac_cv_header_mspack_h=no
27955 fi
27956
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 fi
27959 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27960 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27961 if test $ac_cv_header_mspack_h = yes; then
27962   found_mspack_h=1
27963 fi
27964
27965
27966     if test "x$found_mspack_h" = "x1"; then
27967         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27968 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27969 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   ac_check_lib_save_LIBS=$LIBS
27973 LIBS="-lmspack  $LIBS"
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980
27981 /* Override any GCC internal prototype to avoid an error.
27982    Use char because int might match the return type of a GCC
27983    builtin and then its argument prototype would still apply.  */
27984 #ifdef __cplusplus
27985 extern "C"
27986 #endif
27987 char mspack_create_chm_decompressor ();
27988 int
27989 main ()
27990 {
27991 return mspack_create_chm_decompressor ();
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 rm -f conftest.$ac_objext conftest$ac_exeext
27997 if { (ac_try="$ac_link"
27998 case "(($ac_try" in
27999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000   *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003   (eval "$ac_link") 2>conftest.er1
28004   ac_status=$?
28005   grep -v '^ *+' conftest.er1 >conftest.err
28006   rm -f conftest.er1
28007   cat conftest.err >&5
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } && {
28010          test -z "$ac_c_werror_flag" ||
28011          test ! -s conftest.err
28012        } && test -s conftest$ac_exeext &&
28013        $as_test_x conftest$ac_exeext; then
28014   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28015 else
28016   echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.$ac_ext >&5
28018
28019         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28020 fi
28021
28022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28023       conftest$ac_exeext conftest.$ac_ext
28024 LIBS=$ac_check_lib_save_LIBS
28025 fi
28026 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28027 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28028 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28029   MSPACK_LINK=" -lmspack"
28030 fi
28031
28032     fi
28033     if test "x$MSPACK_LINK" = "x" ; then
28034         wxUSE_LIBMSPACK=no
28035     fi
28036 fi
28037
28038 if test "$wxUSE_LIBMSPACK" != "no"; then
28039     cat >>confdefs.h <<\_ACEOF
28040 #define wxUSE_LIBMSPACK 1
28041 _ACEOF
28042
28043 fi
28044
28045
28046
28047 AFMINSTALL=
28048 WIN32INSTALL=
28049
28050 TOOLKIT=
28051 TOOLKIT_INCLUDE=
28052 WIDGET_SET=
28053
28054 if test "$USE_WIN32" = 1 ; then
28055
28056 for ac_header in w32api.h
28057 do
28058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064   cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h.  */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h.  */
28070
28071
28072 #include <$ac_header>
28073 _ACEOF
28074 rm -f conftest.$ac_objext
28075 if { (ac_try="$ac_compile"
28076 case "(($ac_try" in
28077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078   *) ac_try_echo=$ac_try;;
28079 esac
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081   (eval "$ac_compile") 2>conftest.er1
28082   ac_status=$?
28083   grep -v '^ *+' conftest.er1 >conftest.err
28084   rm -f conftest.er1
28085   cat conftest.err >&5
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); } && {
28088          test -z "$ac_c_werror_flag" ||
28089          test ! -s conftest.err
28090        } && test -s conftest.$ac_objext; then
28091   eval "$as_ac_Header=yes"
28092 else
28093   echo "$as_me: failed program was:" >&5
28094 sed 's/^/| /' conftest.$ac_ext >&5
28095
28096         eval "$as_ac_Header=no"
28097 fi
28098
28099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28100 fi
28101 ac_res=`eval echo '${'$as_ac_Header'}'`
28102                { echo "$as_me:$LINENO: result: $ac_res" >&5
28103 echo "${ECHO_T}$ac_res" >&6; }
28104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28105   cat >>confdefs.h <<_ACEOF
28106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28107 _ACEOF
28108
28109 fi
28110
28111 done
28112
28113     { echo "$as_me:$LINENO: checking for windows.h" >&5
28114 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28115 if test "${ac_cv_header_windows_h+set}" = set; then
28116   echo $ECHO_N "(cached) $ECHO_C" >&6
28117 else
28118   cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h.  */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h.  */
28124
28125
28126 #include <windows.h>
28127 _ACEOF
28128 rm -f conftest.$ac_objext
28129 if { (ac_try="$ac_compile"
28130 case "(($ac_try" in
28131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132   *) ac_try_echo=$ac_try;;
28133 esac
28134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135   (eval "$ac_compile") 2>conftest.er1
28136   ac_status=$?
28137   grep -v '^ *+' conftest.er1 >conftest.err
28138   rm -f conftest.er1
28139   cat conftest.err >&5
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); } && {
28142          test -z "$ac_c_werror_flag" ||
28143          test ! -s conftest.err
28144        } && test -s conftest.$ac_objext; then
28145   ac_cv_header_windows_h=yes
28146 else
28147   echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150         ac_cv_header_windows_h=no
28151 fi
28152
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 fi
28155 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28156 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28157 if test $ac_cv_header_windows_h = yes; then
28158   :
28159 else
28160
28161         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28162 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28163    { (exit 1); exit 1; }; }
28164
28165 fi
28166
28167
28168
28169             case "${host}" in
28170         x86_64-*-mingw32* )
28171                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28172         ;;
28173         * )
28174             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28175         ;;
28176     esac
28177     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28178         LIBS="$LIBS -loleacc"
28179     fi
28180
28181     case "${host}" in
28182         *-*-cygwin* )
28183                         LIBS="$LIBS -lkernel32 -luser32"
28184     esac
28185
28186         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28187     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28188
28189                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28190
28191         WIN32INSTALL=win32install
28192
28193         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28194 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28195 if test "${ac_cv_header_pbt_h+set}" = set; then
28196   echo $ECHO_N "(cached) $ECHO_C" >&6
28197 else
28198   cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204
28205
28206 #include <pbt.h>
28207 _ACEOF
28208 rm -f conftest.$ac_objext
28209 if { (ac_try="$ac_compile"
28210 case "(($ac_try" in
28211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212   *) ac_try_echo=$ac_try;;
28213 esac
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215   (eval "$ac_compile") 2>conftest.er1
28216   ac_status=$?
28217   grep -v '^ *+' conftest.er1 >conftest.err
28218   rm -f conftest.er1
28219   cat conftest.err >&5
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); } && {
28222          test -z "$ac_c_werror_flag" ||
28223          test ! -s conftest.err
28224        } && test -s conftest.$ac_objext; then
28225   ac_cv_header_pbt_h=yes
28226 else
28227   echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28229
28230         ac_cv_header_pbt_h=no
28231 fi
28232
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234 fi
28235 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28236 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28237 if test $ac_cv_header_pbt_h = yes; then
28238   :
28239 else
28240   cat >>confdefs.h <<\_ACEOF
28241 #define NEED_PBT_H 1
28242 _ACEOF
28243
28244 fi
28245
28246
28247 fi
28248
28249 if test "$wxUSE_GUI" = "yes"; then
28250     USE_GUI=1
28251
28252     GUI_TK_LIBRARY=
28253
28254     WXGTK12=
28255     WXGTK127=
28256     WXGTK2=
28257     WXGPE=
28258
28259     if test "$wxUSE_COCOA" = 1 ; then
28260         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28261             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28262 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28263             wxUSE_PRINTING_ARCHITECTURE=no
28264         fi
28265         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28266             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28267 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28268             wxUSE_DRAG_AND_DROP=no
28269         fi
28270         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28271             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28272 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28273             wxUSE_DRAGIMAGE=no
28274         fi
28275     fi
28276
28277     if test "$wxUSE_MSW" = 1 ; then
28278         TOOLKIT=MSW
28279         GUIDIST=MSW_DIST
28280
28281                 case "${host}" in
28282             *-*-mingw32* )
28283                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28284         esac
28285     fi
28286
28287     if test "$wxUSE_GTK" = 1; then
28288                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28289 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28290
28291         gtk_version_cached=1
28292         if test "${wx_cv_lib_gtk+set}" = set; then
28293   echo $ECHO_N "(cached) $ECHO_C" >&6
28294 else
28295
28296                                                 gtk_version_cached=0
28297                 { echo "$as_me:$LINENO: result: " >&5
28298 echo "${ECHO_T}" >&6; }
28299
28300                                                 GTK_MODULES=
28301                 if test "$wxUSE_THREADS" = "yes"; then
28302                     GTK_MODULES=gthread
28303                 fi
28304
28305                                 wx_cv_lib_gtk=
28306                 if test "x$wxGTK_VERSION" != "x1"
28307                 then
28308                                                                                 case "${host}" in
28309                         *-*-solaris2* )
28310                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28311                                 enable_gtktest=no
28312                             fi
28313                     esac
28314
28315                     # Check whether --enable-gtktest was given.
28316 if test "${enable_gtktest+set}" = set; then
28317   enableval=$enable_gtktest;
28318 else
28319   enable_gtktest=yes
28320 fi
28321
28322
28323   pkg_config_args=gtk+-2.0
28324   for module in . $GTK_MODULES
28325   do
28326       case "$module" in
28327          gthread)
28328              pkg_config_args="$pkg_config_args gthread-2.0"
28329          ;;
28330       esac
28331   done
28332
28333   no_gtk=""
28334
28335   # Extract the first word of "pkg-config", so it can be a program name with args.
28336 set dummy pkg-config; ac_word=$2
28337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   case $PKG_CONFIG in
28343   [\\/]* | ?:[\\/]*)
28344   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28345   ;;
28346   *)
28347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28348 for as_dir in $PATH
28349 do
28350   IFS=$as_save_IFS
28351   test -z "$as_dir" && as_dir=.
28352   for ac_exec_ext in '' $ac_executable_extensions; do
28353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28354     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28356     break 2
28357   fi
28358 done
28359 done
28360 IFS=$as_save_IFS
28361
28362   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28363   ;;
28364 esac
28365 fi
28366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28367 if test -n "$PKG_CONFIG"; then
28368   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28369 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28370 else
28371   { echo "$as_me:$LINENO: result: no" >&5
28372 echo "${ECHO_T}no" >&6; }
28373 fi
28374
28375
28376
28377   if test x$PKG_CONFIG != xno ; then
28378     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28379       :
28380     else
28381       echo "*** pkg-config too old; version 0.7 or better required."
28382       no_gtk=yes
28383       PKG_CONFIG=no
28384     fi
28385   else
28386     no_gtk=yes
28387   fi
28388
28389   min_gtk_version=2.4.0
28390   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28391 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28392
28393   if test x$PKG_CONFIG != xno ; then
28394     ## don't try to run the test against uninstalled libtool libs
28395     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28396           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28397           enable_gtktest=no
28398     fi
28399
28400     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28401           :
28402     else
28403           no_gtk=yes
28404     fi
28405   fi
28406
28407   if test x"$no_gtk" = x ; then
28408     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28409     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28410     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28411            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28412     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28413            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28414     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28415            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28416     if test "x$enable_gtktest" = "xyes" ; then
28417       ac_save_CFLAGS="$CFLAGS"
28418       ac_save_LIBS="$LIBS"
28419       CFLAGS="$CFLAGS $GTK_CFLAGS"
28420       LIBS="$GTK_LIBS $LIBS"
28421       rm -f conf.gtktest
28422       if test "$cross_compiling" = yes; then
28423   echo $ac_n "cross compiling; assumed OK... $ac_c"
28424 else
28425   cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431
28432 #include <gtk/gtk.h>
28433 #include <stdio.h>
28434 #include <stdlib.h>
28435
28436 int
28437 main ()
28438 {
28439   int major, minor, micro;
28440   char *tmp_version;
28441
28442   system ("touch conf.gtktest");
28443
28444   /* HP/UX 9 (%@#!) writes to sscanf strings */
28445   tmp_version = g_strdup("$min_gtk_version");
28446   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28447      printf("%s, bad version string\n", "$min_gtk_version");
28448      exit(1);
28449    }
28450
28451   if ((gtk_major_version != $gtk_config_major_version) ||
28452       (gtk_minor_version != $gtk_config_minor_version) ||
28453       (gtk_micro_version != $gtk_config_micro_version))
28454     {
28455       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28456              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28457              gtk_major_version, gtk_minor_version, gtk_micro_version);
28458       printf ("*** was found! If pkg-config was correct, then it is best\n");
28459       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28460       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28461       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28462       printf("*** required on your system.\n");
28463       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28464       printf("*** to point to the correct configuration files\n");
28465     }
28466   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28467            (gtk_minor_version != GTK_MINOR_VERSION) ||
28468            (gtk_micro_version != GTK_MICRO_VERSION))
28469     {
28470       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28471              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28472       printf("*** library (version %d.%d.%d)\n",
28473              gtk_major_version, gtk_minor_version, gtk_micro_version);
28474     }
28475   else
28476     {
28477       if ((gtk_major_version > major) ||
28478         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28479         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28480       {
28481         return 0;
28482        }
28483      else
28484       {
28485         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28486                gtk_major_version, gtk_minor_version, gtk_micro_version);
28487         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28488                major, minor, micro);
28489         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28490         printf("***\n");
28491         printf("*** If you have already installed a sufficiently new version, this error\n");
28492         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28493         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28494         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28495         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28496         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28497         printf("*** so that the correct libraries are found at run-time))\n");
28498       }
28499     }
28500   return 1;
28501 }
28502
28503 _ACEOF
28504 rm -f conftest$ac_exeext
28505 if { (ac_try="$ac_link"
28506 case "(($ac_try" in
28507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508   *) ac_try_echo=$ac_try;;
28509 esac
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511   (eval "$ac_link") 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28515   { (case "(($ac_try" in
28516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517   *) ac_try_echo=$ac_try;;
28518 esac
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520   (eval "$ac_try") 2>&5
28521   ac_status=$?
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); }; }; then
28524   :
28525 else
28526   echo "$as_me: program exited with status $ac_status" >&5
28527 echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28529
28530 ( exit $ac_status )
28531 no_gtk=yes
28532 fi
28533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28534 fi
28535
28536
28537        CFLAGS="$ac_save_CFLAGS"
28538        LIBS="$ac_save_LIBS"
28539      fi
28540   fi
28541   if test "x$no_gtk" = x ; then
28542      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28543 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28544      wx_cv_lib_gtk=2.0
28545   else
28546      { echo "$as_me:$LINENO: result: no" >&5
28547 echo "${ECHO_T}no" >&6; }
28548      if test "$PKG_CONFIG" = "no" ; then
28549        echo "*** A new enough version of pkg-config was not found."
28550        echo "*** See http://pkgconfig.sourceforge.net"
28551      else
28552        if test -f conf.gtktest ; then
28553         :
28554        else
28555           echo "*** Could not run GTK+ test program, checking why..."
28556           ac_save_CFLAGS="$CFLAGS"
28557           ac_save_LIBS="$LIBS"
28558           CFLAGS="$CFLAGS $GTK_CFLAGS"
28559           LIBS="$LIBS $GTK_LIBS"
28560           cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566
28567 #include <gtk/gtk.h>
28568 #include <stdio.h>
28569
28570 int
28571 main ()
28572 {
28573  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28574   ;
28575   return 0;
28576 }
28577 _ACEOF
28578 rm -f conftest.$ac_objext conftest$ac_exeext
28579 if { (ac_try="$ac_link"
28580 case "(($ac_try" in
28581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582   *) ac_try_echo=$ac_try;;
28583 esac
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585   (eval "$ac_link") 2>conftest.er1
28586   ac_status=$?
28587   grep -v '^ *+' conftest.er1 >conftest.err
28588   rm -f conftest.er1
28589   cat conftest.err >&5
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); } && {
28592          test -z "$ac_c_werror_flag" ||
28593          test ! -s conftest.err
28594        } && test -s conftest$ac_exeext &&
28595        $as_test_x conftest$ac_exeext; then
28596    echo "*** The test program compiled, but did not run. This usually means"
28597           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28598           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28599           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28600           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28601           echo "*** is required on your system"
28602           echo "***"
28603           echo "*** If you have an old version installed, it is best to remove it, although"
28604           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609          echo "*** The test program failed to compile or link. See the file config.log for the"
28610           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28611 fi
28612
28613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28614       conftest$ac_exeext conftest.$ac_ext
28615           CFLAGS="$ac_save_CFLAGS"
28616           LIBS="$ac_save_LIBS"
28617        fi
28618      fi
28619      GTK_CFLAGS=""
28620      GTK_LIBS=""
28621      :
28622   fi
28623
28624
28625   rm -f conf.gtktest
28626
28627
28628                                         case "${host}" in
28629                         *-*-solaris2* )
28630                             if test "$wxUSE_SHARED" != "yes"; then
28631                                 GTK_LIBS="$GTK_LIBS -lX11"
28632                             fi
28633                     esac
28634                 fi
28635
28636                                 if test -z "$wx_cv_lib_gtk"; then
28637                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28638
28639 # Check whether --with-gtk-prefix was given.
28640 if test "${with_gtk_prefix+set}" = set; then
28641   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28642 else
28643   gtk_config_prefix=""
28644 fi
28645
28646
28647 # Check whether --with-gtk-exec-prefix was given.
28648 if test "${with_gtk_exec_prefix+set}" = set; then
28649   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28650 else
28651   gtk_config_exec_prefix=""
28652 fi
28653
28654 # Check whether --enable-gtktest was given.
28655 if test "${enable_gtktest+set}" = set; then
28656   enableval=$enable_gtktest;
28657 else
28658   enable_gtktest=yes
28659 fi
28660
28661
28662   for module in . $GTK_MODULES
28663   do
28664       case "$module" in
28665          gthread)
28666              gtk_config_args="$gtk_config_args gthread"
28667          ;;
28668       esac
28669   done
28670
28671   if test x$gtk_config_exec_prefix != x ; then
28672      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28673      if test x${GTK_CONFIG+set} != xset ; then
28674         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28675      fi
28676   fi
28677   if test x$gtk_config_prefix != x ; then
28678      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28679      if test x${GTK_CONFIG+set} != xset ; then
28680         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28681      fi
28682   fi
28683
28684   # Extract the first word of "gtk-config", so it can be a program name with args.
28685 set dummy gtk-config; ac_word=$2
28686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28688 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28691   case $GTK_CONFIG in
28692   [\\/]* | ?:[\\/]*)
28693   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28694   ;;
28695   *)
28696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28697 for as_dir in $PATH
28698 do
28699   IFS=$as_save_IFS
28700   test -z "$as_dir" && as_dir=.
28701   for ac_exec_ext in '' $ac_executable_extensions; do
28702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28703     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28705     break 2
28706   fi
28707 done
28708 done
28709 IFS=$as_save_IFS
28710
28711   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28712   ;;
28713 esac
28714 fi
28715 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28716 if test -n "$GTK_CONFIG"; then
28717   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28718 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28719 else
28720   { echo "$as_me:$LINENO: result: no" >&5
28721 echo "${ECHO_T}no" >&6; }
28722 fi
28723
28724
28725   min_gtk_version=1.2.7
28726   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28727 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28728   no_gtk=""
28729   if test "$GTK_CONFIG" = "no" ; then
28730     no_gtk=yes
28731   else
28732     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28733     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28734     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28735            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28736     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28737            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28738     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28739            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28740     if test "x$enable_gtktest" = "xyes" ; then
28741       ac_save_CFLAGS="$CFLAGS"
28742       ac_save_LIBS="$LIBS"
28743       CFLAGS="$CFLAGS $GTK_CFLAGS"
28744       LIBS="$GTK_LIBS $LIBS"
28745       rm -f conf.gtktest
28746       if test "$cross_compiling" = yes; then
28747   echo $ac_n "cross compiling; assumed OK... $ac_c"
28748 else
28749   cat >conftest.$ac_ext <<_ACEOF
28750 /* confdefs.h.  */
28751 _ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h.  */
28755
28756 #include <gtk/gtk.h>
28757 #include <stdio.h>
28758 #include <stdlib.h>
28759
28760 int
28761 main ()
28762 {
28763   int major, minor, micro;
28764   char *tmp_version;
28765
28766   system ("touch conf.gtktest");
28767
28768   /* HP/UX 9 (%@#!) writes to sscanf strings */
28769   tmp_version = g_strdup("$min_gtk_version");
28770   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28771      printf("%s, bad version string\n", "$min_gtk_version");
28772      exit(1);
28773    }
28774
28775   if ((gtk_major_version != $gtk_config_major_version) ||
28776       (gtk_minor_version != $gtk_config_minor_version) ||
28777       (gtk_micro_version != $gtk_config_micro_version))
28778     {
28779       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28780              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28781              gtk_major_version, gtk_minor_version, gtk_micro_version);
28782       printf ("*** was found! If gtk-config was correct, then it is best\n");
28783       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28784       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28785       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28786       printf("*** required on your system.\n");
28787       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28788       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28789       printf("*** before re-running configure\n");
28790     }
28791 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28792   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28793            (gtk_minor_version != GTK_MINOR_VERSION) ||
28794            (gtk_micro_version != GTK_MICRO_VERSION))
28795     {
28796       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28797              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28798       printf("*** library (version %d.%d.%d)\n",
28799              gtk_major_version, gtk_minor_version, gtk_micro_version);
28800     }
28801 #endif /* defined (GTK_MAJOR_VERSION) ... */
28802   else
28803     {
28804       if ((gtk_major_version > major) ||
28805         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28806         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28807       {
28808         return 0;
28809        }
28810      else
28811       {
28812         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28813                gtk_major_version, gtk_minor_version, gtk_micro_version);
28814         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28815                major, minor, micro);
28816         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28817         printf("***\n");
28818         printf("*** If you have already installed a sufficiently new version, this error\n");
28819         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28820         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28821         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28822         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28823         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28824         printf("*** so that the correct libraries are found at run-time))\n");
28825       }
28826     }
28827   return 1;
28828 }
28829
28830 _ACEOF
28831 rm -f conftest$ac_exeext
28832 if { (ac_try="$ac_link"
28833 case "(($ac_try" in
28834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28835   *) ac_try_echo=$ac_try;;
28836 esac
28837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28838   (eval "$ac_link") 2>&5
28839   ac_status=$?
28840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28842   { (case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_try") 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; }; then
28851   :
28852 else
28853   echo "$as_me: program exited with status $ac_status" >&5
28854 echo "$as_me: failed program was:" >&5
28855 sed 's/^/| /' conftest.$ac_ext >&5
28856
28857 ( exit $ac_status )
28858 no_gtk=yes
28859 fi
28860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28861 fi
28862
28863
28864        CFLAGS="$ac_save_CFLAGS"
28865        LIBS="$ac_save_LIBS"
28866      fi
28867   fi
28868   if test "x$no_gtk" = x ; then
28869      { echo "$as_me:$LINENO: result: yes" >&5
28870 echo "${ECHO_T}yes" >&6; }
28871      wx_cv_lib_gtk=1.2.7
28872   else
28873      { echo "$as_me:$LINENO: result: no" >&5
28874 echo "${ECHO_T}no" >&6; }
28875      if test "$GTK_CONFIG" = "no" ; then
28876        echo "*** The gtk-config script installed by GTK could not be found"
28877        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28878        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28879        echo "*** full path to gtk-config."
28880      else
28881        if test -f conf.gtktest ; then
28882         :
28883        else
28884           echo "*** Could not run GTK test program, checking why..."
28885           CFLAGS="$CFLAGS $GTK_CFLAGS"
28886           LIBS="$LIBS $GTK_LIBS"
28887           cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893
28894 #include <gtk/gtk.h>
28895 #include <stdio.h>
28896
28897 int
28898 main ()
28899 {
28900  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28901   ;
28902   return 0;
28903 }
28904 _ACEOF
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (ac_try="$ac_link"
28907 case "(($ac_try" in
28908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909   *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912   (eval "$ac_link") 2>conftest.er1
28913   ac_status=$?
28914   grep -v '^ *+' conftest.er1 >conftest.err
28915   rm -f conftest.er1
28916   cat conftest.err >&5
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); } && {
28919          test -z "$ac_c_werror_flag" ||
28920          test ! -s conftest.err
28921        } && test -s conftest$ac_exeext &&
28922        $as_test_x conftest$ac_exeext; then
28923    echo "*** The test program compiled, but did not run. This usually means"
28924           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28925           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28926           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28927           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28928           echo "*** is required on your system"
28929           echo "***"
28930           echo "*** If you have an old version installed, it is best to remove it, although"
28931           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28932           echo "***"
28933           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28934           echo "*** came with the system with the command"
28935           echo "***"
28936           echo "***    rpm --erase --nodeps gtk gtk-devel"
28937 else
28938   echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941          echo "*** The test program failed to compile or link. See the file config.log for the"
28942           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28943           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28944           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28945 fi
28946
28947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28948       conftest$ac_exeext conftest.$ac_ext
28949           CFLAGS="$ac_save_CFLAGS"
28950           LIBS="$ac_save_LIBS"
28951        fi
28952      fi
28953      GTK_CFLAGS=""
28954      GTK_LIBS=""
28955      :
28956   fi
28957
28958
28959   rm -f conf.gtktest
28960
28961
28962                         if test -z "$wx_cv_lib_gtk"; then
28963
28964 # Check whether --with-gtk-prefix was given.
28965 if test "${with_gtk_prefix+set}" = set; then
28966   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28967 else
28968   gtk_config_prefix=""
28969 fi
28970
28971
28972 # Check whether --with-gtk-exec-prefix was given.
28973 if test "${with_gtk_exec_prefix+set}" = set; then
28974   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28975 else
28976   gtk_config_exec_prefix=""
28977 fi
28978
28979 # Check whether --enable-gtktest was given.
28980 if test "${enable_gtktest+set}" = set; then
28981   enableval=$enable_gtktest;
28982 else
28983   enable_gtktest=yes
28984 fi
28985
28986
28987   for module in . $GTK_MODULES
28988   do
28989       case "$module" in
28990          gthread)
28991              gtk_config_args="$gtk_config_args gthread"
28992          ;;
28993       esac
28994   done
28995
28996   if test x$gtk_config_exec_prefix != x ; then
28997      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28998      if test x${GTK_CONFIG+set} != xset ; then
28999         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29000      fi
29001   fi
29002   if test x$gtk_config_prefix != x ; then
29003      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29004      if test x${GTK_CONFIG+set} != xset ; then
29005         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29006      fi
29007   fi
29008
29009   # Extract the first word of "gtk-config", so it can be a program name with args.
29010 set dummy gtk-config; ac_word=$2
29011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29013 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016   case $GTK_CONFIG in
29017   [\\/]* | ?:[\\/]*)
29018   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29019   ;;
29020   *)
29021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29022 for as_dir in $PATH
29023 do
29024   IFS=$as_save_IFS
29025   test -z "$as_dir" && as_dir=.
29026   for ac_exec_ext in '' $ac_executable_extensions; do
29027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29028     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29030     break 2
29031   fi
29032 done
29033 done
29034 IFS=$as_save_IFS
29035
29036   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29037   ;;
29038 esac
29039 fi
29040 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29041 if test -n "$GTK_CONFIG"; then
29042   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29043 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29044 else
29045   { echo "$as_me:$LINENO: result: no" >&5
29046 echo "${ECHO_T}no" >&6; }
29047 fi
29048
29049
29050   min_gtk_version=1.2.3
29051   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29052 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29053   no_gtk=""
29054   if test "$GTK_CONFIG" = "no" ; then
29055     no_gtk=yes
29056   else
29057     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29058     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29059     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29060            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29061     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29062            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29063     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29064            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29065     if test "x$enable_gtktest" = "xyes" ; then
29066       ac_save_CFLAGS="$CFLAGS"
29067       ac_save_LIBS="$LIBS"
29068       CFLAGS="$CFLAGS $GTK_CFLAGS"
29069       LIBS="$GTK_LIBS $LIBS"
29070       rm -f conf.gtktest
29071       if test "$cross_compiling" = yes; then
29072   echo $ac_n "cross compiling; assumed OK... $ac_c"
29073 else
29074   cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080
29081 #include <gtk/gtk.h>
29082 #include <stdio.h>
29083 #include <stdlib.h>
29084
29085 int
29086 main ()
29087 {
29088   int major, minor, micro;
29089   char *tmp_version;
29090
29091   system ("touch conf.gtktest");
29092
29093   /* HP/UX 9 (%@#!) writes to sscanf strings */
29094   tmp_version = g_strdup("$min_gtk_version");
29095   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29096      printf("%s, bad version string\n", "$min_gtk_version");
29097      exit(1);
29098    }
29099
29100   if ((gtk_major_version != $gtk_config_major_version) ||
29101       (gtk_minor_version != $gtk_config_minor_version) ||
29102       (gtk_micro_version != $gtk_config_micro_version))
29103     {
29104       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29105              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29106              gtk_major_version, gtk_minor_version, gtk_micro_version);
29107       printf ("*** was found! If gtk-config was correct, then it is best\n");
29108       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29109       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29110       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29111       printf("*** required on your system.\n");
29112       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29113       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29114       printf("*** before re-running configure\n");
29115     }
29116 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29117   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29118            (gtk_minor_version != GTK_MINOR_VERSION) ||
29119            (gtk_micro_version != GTK_MICRO_VERSION))
29120     {
29121       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29122              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29123       printf("*** library (version %d.%d.%d)\n",
29124              gtk_major_version, gtk_minor_version, gtk_micro_version);
29125     }
29126 #endif /* defined (GTK_MAJOR_VERSION) ... */
29127   else
29128     {
29129       if ((gtk_major_version > major) ||
29130         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29131         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29132       {
29133         return 0;
29134        }
29135      else
29136       {
29137         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29138                gtk_major_version, gtk_minor_version, gtk_micro_version);
29139         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29140                major, minor, micro);
29141         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29142         printf("***\n");
29143         printf("*** If you have already installed a sufficiently new version, this error\n");
29144         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29145         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29146         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29147         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29148         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29149         printf("*** so that the correct libraries are found at run-time))\n");
29150       }
29151     }
29152   return 1;
29153 }
29154
29155 _ACEOF
29156 rm -f conftest$ac_exeext
29157 if { (ac_try="$ac_link"
29158 case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163   (eval "$ac_link") 2>&5
29164   ac_status=$?
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29167   { (case "(($ac_try" in
29168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169   *) ac_try_echo=$ac_try;;
29170 esac
29171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172   (eval "$ac_try") 2>&5
29173   ac_status=$?
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); }; }; then
29176   :
29177 else
29178   echo "$as_me: program exited with status $ac_status" >&5
29179 echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29181
29182 ( exit $ac_status )
29183 no_gtk=yes
29184 fi
29185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29186 fi
29187
29188
29189        CFLAGS="$ac_save_CFLAGS"
29190        LIBS="$ac_save_LIBS"
29191      fi
29192   fi
29193   if test "x$no_gtk" = x ; then
29194      { echo "$as_me:$LINENO: result: yes" >&5
29195 echo "${ECHO_T}yes" >&6; }
29196      wx_cv_lib_gtk=1.2.3
29197   else
29198      { echo "$as_me:$LINENO: result: no" >&5
29199 echo "${ECHO_T}no" >&6; }
29200      if test "$GTK_CONFIG" = "no" ; then
29201        echo "*** The gtk-config script installed by GTK could not be found"
29202        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29203        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29204        echo "*** full path to gtk-config."
29205      else
29206        if test -f conf.gtktest ; then
29207         :
29208        else
29209           echo "*** Could not run GTK test program, checking why..."
29210           CFLAGS="$CFLAGS $GTK_CFLAGS"
29211           LIBS="$LIBS $GTK_LIBS"
29212           cat >conftest.$ac_ext <<_ACEOF
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218
29219 #include <gtk/gtk.h>
29220 #include <stdio.h>
29221
29222 int
29223 main ()
29224 {
29225  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (ac_try="$ac_link"
29232 case "(($ac_try" in
29233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234   *) ac_try_echo=$ac_try;;
29235 esac
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237   (eval "$ac_link") 2>conftest.er1
29238   ac_status=$?
29239   grep -v '^ *+' conftest.er1 >conftest.err
29240   rm -f conftest.er1
29241   cat conftest.err >&5
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); } && {
29244          test -z "$ac_c_werror_flag" ||
29245          test ! -s conftest.err
29246        } && test -s conftest$ac_exeext &&
29247        $as_test_x conftest$ac_exeext; then
29248    echo "*** The test program compiled, but did not run. This usually means"
29249           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29250           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29251           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29252           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29253           echo "*** is required on your system"
29254           echo "***"
29255           echo "*** If you have an old version installed, it is best to remove it, although"
29256           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29257           echo "***"
29258           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29259           echo "*** came with the system with the command"
29260           echo "***"
29261           echo "***    rpm --erase --nodeps gtk gtk-devel"
29262 else
29263   echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266          echo "*** The test program failed to compile or link. See the file config.log for the"
29267           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29268           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29269           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29270 fi
29271
29272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29273       conftest$ac_exeext conftest.$ac_ext
29274           CFLAGS="$ac_save_CFLAGS"
29275           LIBS="$ac_save_LIBS"
29276        fi
29277      fi
29278      GTK_CFLAGS=""
29279      GTK_LIBS=""
29280      :
29281   fi
29282
29283
29284   rm -f conf.gtktest
29285
29286                         fi
29287                     fi
29288                 fi
29289
29290                 if test -z "$wx_cv_lib_gtk"; then
29291                                         wx_cv_lib_gtk=none
29292                 else
29293                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29294                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29295                 fi
29296
29297
29298 fi
29299
29300
29301                         if test "$gtk_version_cached" = 1; then
29302             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29303 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29304         fi
29305
29306         case "$wx_cv_lib_gtk" in
29307             2.0)    WXGTK2=1
29308                     TOOLKIT_VERSION=2
29309                     ;;
29310             1.2.7)  WXGTK127=1
29311                     WXGTK12=1
29312                     ;;
29313             1.2.3)  WXGTK12=1
29314                     ;;
29315             *)      { { echo "$as_me:$LINENO: error:
29316 The development files for GTK+ were not found. For GTK+ 2, please
29317 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29318 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29319 and that the version is 1.2.3 or above. Also check that the
29320 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29321 --libs' are in the LD_LIBRARY_PATH or equivalent.
29322                             " >&5
29323 echo "$as_me: error:
29324 The development files for GTK+ were not found. For GTK+ 2, please
29325 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29326 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29327 and that the version is 1.2.3 or above. Also check that the
29328 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29329 --libs' are in the LD_LIBRARY_PATH or equivalent.
29330                             " >&2;}
29331    { (exit 1); exit 1; }; }
29332                     ;;
29333         esac
29334
29335         if test "$WXGTK2" = 1; then
29336             save_CFLAGS="$CFLAGS"
29337             save_LIBS="$LIBS"
29338             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29339             LIBS="$LIBS $wx_cv_libs_gtk"
29340
29341                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29342 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29343             cat >conftest.$ac_ext <<_ACEOF
29344 /* confdefs.h.  */
29345 _ACEOF
29346 cat confdefs.h >>conftest.$ac_ext
29347 cat >>conftest.$ac_ext <<_ACEOF
29348 /* end confdefs.h.  */
29349
29350                             #include <gtk/gtk.h>
29351
29352 int
29353 main ()
29354 {
29355
29356                             #if !GTK_CHECK_VERSION(2,10,0)
29357                             Not GTK+ 2.10
29358                             #endif
29359
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 rm -f conftest.$ac_objext
29365 if { (ac_try="$ac_compile"
29366 case "(($ac_try" in
29367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368   *) ac_try_echo=$ac_try;;
29369 esac
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371   (eval "$ac_compile") 2>conftest.er1
29372   ac_status=$?
29373   grep -v '^ *+' conftest.er1 >conftest.err
29374   rm -f conftest.er1
29375   cat conftest.err >&5
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); } && {
29378          test -z "$ac_c_werror_flag" ||
29379          test ! -s conftest.err
29380        } && test -s conftest.$ac_objext; then
29381
29382                             cat >>confdefs.h <<\_ACEOF
29383 #define __WXGTK210__ 1
29384 _ACEOF
29385
29386                             cat >>confdefs.h <<\_ACEOF
29387 #define __WXGTK26__ 1
29388 _ACEOF
29389
29390                             { echo "$as_me:$LINENO: result: yes" >&5
29391 echo "${ECHO_T}yes" >&6; }
29392                             ac_wxgtk210=1
29393
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398
29399                             { echo "$as_me:$LINENO: result: no" >&5
29400 echo "${ECHO_T}no" >&6; }
29401                             ac_wxgtk210=0
29402
29403 fi
29404
29405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29406
29407             if test "$ac_wxgtk210" = 0; then
29408                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29409 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29410                 cat >conftest.$ac_ext <<_ACEOF
29411 /* confdefs.h.  */
29412 _ACEOF
29413 cat confdefs.h >>conftest.$ac_ext
29414 cat >>conftest.$ac_ext <<_ACEOF
29415 /* end confdefs.h.  */
29416
29417                                 #include <gtk/gtk.h>
29418
29419 int
29420 main ()
29421 {
29422
29423                                 #if !GTK_CHECK_VERSION(2,6,0)
29424                                 Not GTK+ 2.6
29425                                 #endif
29426
29427   ;
29428   return 0;
29429 }
29430 _ACEOF
29431 rm -f conftest.$ac_objext
29432 if { (ac_try="$ac_compile"
29433 case "(($ac_try" in
29434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435   *) ac_try_echo=$ac_try;;
29436 esac
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438   (eval "$ac_compile") 2>conftest.er1
29439   ac_status=$?
29440   grep -v '^ *+' conftest.er1 >conftest.err
29441   rm -f conftest.er1
29442   cat conftest.err >&5
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); } && {
29445          test -z "$ac_c_werror_flag" ||
29446          test ! -s conftest.err
29447        } && test -s conftest.$ac_objext; then
29448
29449                                 cat >>confdefs.h <<\_ACEOF
29450 #define __WXGTK26__ 1
29451 _ACEOF
29452
29453                                 { echo "$as_me:$LINENO: result: yes" >&5
29454 echo "${ECHO_T}yes" >&6; }
29455                                 ac_wxgtk26=1
29456
29457 else
29458   echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29460
29461
29462                                 { echo "$as_me:$LINENO: result: no" >&5
29463 echo "${ECHO_T}no" >&6; }
29464                                 ac_wxgtk26=0
29465
29466 fi
29467
29468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29469             fi
29470
29471             CFLAGS="$save_CFLAGS"
29472             LIBS="$save_LIBS"
29473         else
29474             if test "$wxUSE_UNICODE" = "yes"; then
29475                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29476 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29477                 wxUSE_UNICODE=no
29478             fi
29479
29480                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29481 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29482 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29483   echo $ECHO_N "(cached) $ECHO_C" >&6
29484 else
29485   ac_check_lib_save_LIBS=$LIBS
29486 LIBS="-lgdk  $LIBS"
29487 cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493
29494 /* Override any GCC internal prototype to avoid an error.
29495    Use char because int might match the return type of a GCC
29496    builtin and then its argument prototype would still apply.  */
29497 #ifdef __cplusplus
29498 extern "C"
29499 #endif
29500 char gdk_im_open ();
29501 int
29502 main ()
29503 {
29504 return gdk_im_open ();
29505   ;
29506   return 0;
29507 }
29508 _ACEOF
29509 rm -f conftest.$ac_objext conftest$ac_exeext
29510 if { (ac_try="$ac_link"
29511 case "(($ac_try" in
29512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513   *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516   (eval "$ac_link") 2>conftest.er1
29517   ac_status=$?
29518   grep -v '^ *+' conftest.er1 >conftest.err
29519   rm -f conftest.er1
29520   cat conftest.err >&5
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } && {
29523          test -z "$ac_c_werror_flag" ||
29524          test ! -s conftest.err
29525        } && test -s conftest$ac_exeext &&
29526        $as_test_x conftest$ac_exeext; then
29527   ac_cv_lib_gdk_gdk_im_open=yes
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532         ac_cv_lib_gdk_gdk_im_open=no
29533 fi
29534
29535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29536       conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29538 fi
29539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29540 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29541 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29542   cat >>confdefs.h <<\_ACEOF
29543 #define HAVE_XIM 1
29544 _ACEOF
29545
29546 fi
29547
29548
29549                                     if test "$USE_DARWIN" != 1; then
29550
29551 for ac_func in poll
29552 do
29553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29557   echo $ECHO_N "(cached) $ECHO_C" >&6
29558 else
29559   cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h.  */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h.  */
29565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29567 #define $ac_func innocuous_$ac_func
29568
29569 /* System header to define __stub macros and hopefully few prototypes,
29570     which can conflict with char $ac_func (); below.
29571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29572     <limits.h> exists even on freestanding compilers.  */
29573
29574 #ifdef __STDC__
29575 # include <limits.h>
29576 #else
29577 # include <assert.h>
29578 #endif
29579
29580 #undef $ac_func
29581
29582 /* Override any GCC internal prototype to avoid an error.
29583    Use char because int might match the return type of a GCC
29584    builtin and then its argument prototype would still apply.  */
29585 #ifdef __cplusplus
29586 extern "C"
29587 #endif
29588 char $ac_func ();
29589 /* The GNU C library defines this for functions which it implements
29590     to always fail with ENOSYS.  Some functions are actually named
29591     something starting with __ and the normal name is an alias.  */
29592 #if defined __stub_$ac_func || defined __stub___$ac_func
29593 choke me
29594 #endif
29595
29596 int
29597 main ()
29598 {
29599 return $ac_func ();
29600   ;
29601   return 0;
29602 }
29603 _ACEOF
29604 rm -f conftest.$ac_objext conftest$ac_exeext
29605 if { (ac_try="$ac_link"
29606 case "(($ac_try" in
29607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608   *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611   (eval "$ac_link") 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } && {
29618          test -z "$ac_c_werror_flag" ||
29619          test ! -s conftest.err
29620        } && test -s conftest$ac_exeext &&
29621        $as_test_x conftest$ac_exeext; then
29622   eval "$as_ac_var=yes"
29623 else
29624   echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29626
29627         eval "$as_ac_var=no"
29628 fi
29629
29630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29631       conftest$ac_exeext conftest.$ac_ext
29632 fi
29633 ac_res=`eval echo '${'$as_ac_var'}'`
29634                { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29636 if test `eval echo '${'$as_ac_var'}'` = yes; then
29637   cat >>confdefs.h <<_ACEOF
29638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29639 _ACEOF
29640
29641 fi
29642 done
29643
29644             fi
29645         fi
29646
29647         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29648         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29649
29650         AFMINSTALL=afminstall
29651         TOOLKIT=GTK
29652         GUIDIST=GTK_DIST
29653
29654                 if test "$wxUSE_GPE" = "yes"; then
29655             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29656 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29657
29658   ac_find_libraries=
29659   for ac_dir in $SEARCH_LIB;
29660   do
29661     for ac_extension in a so sl dylib dll.a; do
29662       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29663         ac_find_libraries=$ac_dir
29664         break 2
29665       fi
29666     done
29667   done
29668
29669             if test "$ac_find_libraries" != "" ; then
29670
29671     if test "$ac_find_libraries" = "default location"; then
29672     ac_path_to_link=""
29673   else
29674     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29675     result=$?
29676     if test $result = 0; then
29677       ac_path_to_link=""
29678     else
29679       ac_path_to_link=" -L$ac_find_libraries"
29680     fi
29681   fi
29682
29683                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29684                 WXGPE=1
29685                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29686 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29687             else
29688                 { echo "$as_me:$LINENO: result: not found" >&5
29689 echo "${ECHO_T}not found" >&6; }
29690             fi
29691
29692                                                                                                                     fi
29693     fi
29694
29695     if test "$wxUSE_MGL" = 1; then
29696        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29697 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29698         if test "x$MGL_ROOT" = x ; then
29699             { echo "$as_me:$LINENO: result: not found" >&5
29700 echo "${ECHO_T}not found" >&6; }
29701             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29702 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29703    { (exit 1); exit 1; }; }
29704         else
29705             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29706 echo "${ECHO_T}$MGL_ROOT" >&6; }
29707         fi
29708
29709         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29710 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29711                                 case "${host}" in
29712             *-*-linux* )
29713                                           if test "x$wxUSE_SHARED" = xyes ; then
29714                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29715               else
29716                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29717               fi
29718               ;;
29719             *-pc-msdosdjgpp )
29720               mgl_os_candidates="dos32/dj2"
29721               ;;
29722             *)
29723               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29724 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29725    { (exit 1); exit 1; }; }
29726         esac
29727
29728         mgl_lib_type=""
29729         mgl_os=""
29730
29731         for mgl_os_i in $mgl_os_candidates ; do
29732             if test "x$mgl_os" = x ; then
29733                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29734                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29735                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29736                         mgl_lib_type=debug
29737                         mgl_os=$mgl_os_i
29738                     fi
29739                 fi
29740                 if test "x$mgl_lib_type" = x ; then
29741                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29742                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29743                         mgl_lib_type=release
29744                         mgl_os=$mgl_os_i
29745                     fi
29746                 fi
29747             fi
29748         done
29749
29750         if test "x$mgl_os" = x ; then
29751             { echo "$as_me:$LINENO: result: not found" >&5
29752 echo "${ECHO_T}not found" >&6; }
29753             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29754 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29755    { (exit 1); exit 1; }; }
29756         fi
29757         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29758 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29759
29760         wxUSE_UNIVERSAL="yes"
29761
29762         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29763         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29764
29765         AFMINSTALL=afminstall
29766         TOOLKIT=MGL
29767         GUIDIST=MGL_DIST
29768     fi
29769
29770     if test "$wxUSE_DFB" = 1; then
29771
29772
29773 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29774         if test -n "$ac_tool_prefix"; then
29775   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29776 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29779 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29780   echo $ECHO_N "(cached) $ECHO_C" >&6
29781 else
29782   case $PKG_CONFIG in
29783   [\\/]* | ?:[\\/]*)
29784   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29785   ;;
29786   *)
29787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29788 for as_dir in $PATH
29789 do
29790   IFS=$as_save_IFS
29791   test -z "$as_dir" && as_dir=.
29792   for ac_exec_ext in '' $ac_executable_extensions; do
29793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29794     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29796     break 2
29797   fi
29798 done
29799 done
29800 IFS=$as_save_IFS
29801
29802   ;;
29803 esac
29804 fi
29805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29806 if test -n "$PKG_CONFIG"; then
29807   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29808 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29809 else
29810   { echo "$as_me:$LINENO: result: no" >&5
29811 echo "${ECHO_T}no" >&6; }
29812 fi
29813
29814
29815 fi
29816 if test -z "$ac_cv_path_PKG_CONFIG"; then
29817   ac_pt_PKG_CONFIG=$PKG_CONFIG
29818   # Extract the first word of "pkg-config", so it can be a program name with args.
29819 set dummy pkg-config; ac_word=$2
29820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29822 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29823   echo $ECHO_N "(cached) $ECHO_C" >&6
29824 else
29825   case $ac_pt_PKG_CONFIG in
29826   [\\/]* | ?:[\\/]*)
29827   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29828   ;;
29829   *)
29830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29831 for as_dir in $PATH
29832 do
29833   IFS=$as_save_IFS
29834   test -z "$as_dir" && as_dir=.
29835   for ac_exec_ext in '' $ac_executable_extensions; do
29836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29837     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29839     break 2
29840   fi
29841 done
29842 done
29843 IFS=$as_save_IFS
29844
29845   ;;
29846 esac
29847 fi
29848 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29849 if test -n "$ac_pt_PKG_CONFIG"; then
29850   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29851 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29852 else
29853   { echo "$as_me:$LINENO: result: no" >&5
29854 echo "${ECHO_T}no" >&6; }
29855 fi
29856
29857   if test "x$ac_pt_PKG_CONFIG" = x; then
29858     PKG_CONFIG=""
29859   else
29860     case $cross_compiling:$ac_tool_warned in
29861 yes:)
29862 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29863 whose name does not start with the host triplet.  If you think this
29864 configuration is useful to you, please write to autoconf@gnu.org." >&5
29865 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29866 whose name does not start with the host triplet.  If you think this
29867 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29868 ac_tool_warned=yes ;;
29869 esac
29870     PKG_CONFIG=$ac_pt_PKG_CONFIG
29871   fi
29872 else
29873   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29874 fi
29875
29876 fi
29877 if test -n "$PKG_CONFIG"; then
29878         _pkg_min_version=0.9.0
29879         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29880 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29881         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29882                 { echo "$as_me:$LINENO: result: yes" >&5
29883 echo "${ECHO_T}yes" >&6; }
29884         else
29885                 { echo "$as_me:$LINENO: result: no" >&5
29886 echo "${ECHO_T}no" >&6; }
29887                 PKG_CONFIG=""
29888         fi
29889
29890 fi
29891
29892
29893 pkg_failed=no
29894 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29895 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29896
29897 if test -n "$PKG_CONFIG"; then
29898     if test -n "$DIRECTFB_CFLAGS"; then
29899         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29900     else
29901         if test -n "$PKG_CONFIG" && \
29902     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29903   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); }; then
29907   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29908 else
29909   pkg_failed=yes
29910 fi
29911     fi
29912 else
29913         pkg_failed=untried
29914 fi
29915 if test -n "$PKG_CONFIG"; then
29916     if test -n "$DIRECTFB_LIBS"; then
29917         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29918     else
29919         if test -n "$PKG_CONFIG" && \
29920     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29921   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29922   ac_status=$?
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); }; then
29925   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29926 else
29927   pkg_failed=yes
29928 fi
29929     fi
29930 else
29931         pkg_failed=untried
29932 fi
29933
29934
29935
29936 if test $pkg_failed = yes; then
29937
29938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29939         _pkg_short_errors_supported=yes
29940 else
29941         _pkg_short_errors_supported=no
29942 fi
29943         if test $_pkg_short_errors_supported = yes; then
29944                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29945         else
29946                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29947         fi
29948         # Put the nasty error message in config.log where it belongs
29949         echo "$DIRECTFB_PKG_ERRORS" >&5
29950
29951
29952                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29953 echo "$as_me: error: DirectFB not found." >&2;}
29954    { (exit 1); exit 1; }; }
29955
29956
29957 elif test $pkg_failed = untried; then
29958
29959                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29960 echo "$as_me: error: DirectFB not found." >&2;}
29961    { (exit 1); exit 1; }; }
29962
29963
29964 else
29965         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29966         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29967         { echo "$as_me:$LINENO: result: yes" >&5
29968 echo "${ECHO_T}yes" >&6; }
29969
29970                            wxUSE_UNIVERSAL="yes"
29971                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29972                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29973                            TOOLKIT=DFB
29974                            GUIDIST=DFB_DIST
29975
29976 fi
29977     fi
29978
29979     if test "$wxUSE_MICROWIN" = 1; then
29980         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29981 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29982         if test "x$MICROWINDOWS" = x ; then
29983             { echo "$as_me:$LINENO: result: not found" >&5
29984 echo "${ECHO_T}not found" >&6; }
29985             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29986 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29987    { (exit 1); exit 1; }; }
29988         else
29989             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29990 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29991         fi
29992
29993         if test -f $MICROWINDOWS/lib/libmwin.a; then
29994             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29995 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29996         else
29997             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29998 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29999    { (exit 1); exit 1; }; }
30000         fi
30001
30002         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30003         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30004
30005         wxUSE_UNIVERSAL="yes"
30006
30007         AFMINSTALL=afminstall
30008         TOOLKIT=MICROWIN
30009         GUIDIST=MICROWIN_DIST
30010
30011         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30012     fi
30013
30014         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30015                                 { echo "$as_me:$LINENO: checking for X" >&5
30016 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30017
30018
30019 # Check whether --with-x was given.
30020 if test "${with_x+set}" = set; then
30021   withval=$with_x;
30022 fi
30023
30024 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30025 if test "x$with_x" = xno; then
30026   # The user explicitly disabled X.
30027   have_x=disabled
30028 else
30029   case $x_includes,$x_libraries in #(
30030     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30031 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30032    { (exit 1); exit 1; }; };; #(
30033     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30034   echo $ECHO_N "(cached) $ECHO_C" >&6
30035 else
30036   # One or both of the vars are not set, and there is no cached value.
30037 ac_x_includes=no ac_x_libraries=no
30038 rm -f -r conftest.dir
30039 if mkdir conftest.dir; then
30040   cd conftest.dir
30041   cat >Imakefile <<'_ACEOF'
30042 incroot:
30043         @echo incroot='${INCROOT}'
30044 usrlibdir:
30045         @echo usrlibdir='${USRLIBDIR}'
30046 libdir:
30047         @echo libdir='${LIBDIR}'
30048 _ACEOF
30049   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30050     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30051     for ac_var in incroot usrlibdir libdir; do
30052       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30053     done
30054     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30055     for ac_extension in a so sl; do
30056       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30057          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30058         ac_im_usrlibdir=$ac_im_libdir; break
30059       fi
30060     done
30061     # Screen out bogus values from the imake configuration.  They are
30062     # bogus both because they are the default anyway, and because
30063     # using them would break gcc on systems where it needs fixed includes.
30064     case $ac_im_incroot in
30065         /usr/include) ac_x_includes= ;;
30066         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30067     esac
30068     case $ac_im_usrlibdir in
30069         /usr/lib | /lib) ;;
30070         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30071     esac
30072   fi
30073   cd ..
30074   rm -f -r conftest.dir
30075 fi
30076
30077 # Standard set of common directories for X headers.
30078 # Check X11 before X11Rn because it is often a symlink to the current release.
30079 ac_x_header_dirs='
30080 /usr/X11/include
30081 /usr/X11R6/include
30082 /usr/X11R5/include
30083 /usr/X11R4/include
30084
30085 /usr/include/X11
30086 /usr/include/X11R6
30087 /usr/include/X11R5
30088 /usr/include/X11R4
30089
30090 /usr/local/X11/include
30091 /usr/local/X11R6/include
30092 /usr/local/X11R5/include
30093 /usr/local/X11R4/include
30094
30095 /usr/local/include/X11
30096 /usr/local/include/X11R6
30097 /usr/local/include/X11R5
30098 /usr/local/include/X11R4
30099
30100 /usr/X386/include
30101 /usr/x386/include
30102 /usr/XFree86/include/X11
30103
30104 /usr/include
30105 /usr/local/include
30106 /usr/unsupported/include
30107 /usr/athena/include
30108 /usr/local/x11r5/include
30109 /usr/lpp/Xamples/include
30110
30111 /usr/openwin/include
30112 /usr/openwin/share/include'
30113
30114 if test "$ac_x_includes" = no; then
30115   # Guess where to find include files, by looking for Xlib.h.
30116   # First, try using that file with no special directory specified.
30117   cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h.  */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h.  */
30123 #include <X11/Xlib.h>
30124 _ACEOF
30125 if { (ac_try="$ac_cpp conftest.$ac_ext"
30126 case "(($ac_try" in
30127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128   *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30132   ac_status=$?
30133   grep -v '^ *+' conftest.er1 >conftest.err
30134   rm -f conftest.er1
30135   cat conftest.err >&5
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } >/dev/null && {
30138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30139          test ! -s conftest.err
30140        }; then
30141   # We can compile using X headers with no special include directory.
30142 ac_x_includes=
30143 else
30144   echo "$as_me: failed program was:" >&5
30145 sed 's/^/| /' conftest.$ac_ext >&5
30146
30147   for ac_dir in $ac_x_header_dirs; do
30148   if test -r "$ac_dir/X11/Xlib.h"; then
30149     ac_x_includes=$ac_dir
30150     break
30151   fi
30152 done
30153 fi
30154
30155 rm -f conftest.err conftest.$ac_ext
30156 fi # $ac_x_includes = no
30157
30158 if test "$ac_x_libraries" = no; then
30159   # Check for the libraries.
30160   # See if we find them without any special options.
30161   # Don't add to $LIBS permanently.
30162   ac_save_LIBS=$LIBS
30163   LIBS="-lX11 $LIBS"
30164   cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170 #include <X11/Xlib.h>
30171 int
30172 main ()
30173 {
30174 XrmInitialize ()
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (ac_try="$ac_link"
30181 case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_link") 2>conftest.er1
30187   ac_status=$?
30188   grep -v '^ *+' conftest.er1 >conftest.err
30189   rm -f conftest.er1
30190   cat conftest.err >&5
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); } && {
30193          test -z "$ac_c_werror_flag" ||
30194          test ! -s conftest.err
30195        } && test -s conftest$ac_exeext &&
30196        $as_test_x conftest$ac_exeext; then
30197   LIBS=$ac_save_LIBS
30198 # We can link X programs with no special library path.
30199 ac_x_libraries=
30200 else
30201   echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30203
30204         LIBS=$ac_save_LIBS
30205 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30206 do
30207   # Don't even attempt the hair of trying to link an X program!
30208   for ac_extension in a so sl; do
30209     if test -r "$ac_dir/libX11.$ac_extension"; then
30210       ac_x_libraries=$ac_dir
30211       break 2
30212     fi
30213   done
30214 done
30215 fi
30216
30217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30218       conftest$ac_exeext conftest.$ac_ext
30219 fi # $ac_x_libraries = no
30220
30221 case $ac_x_includes,$ac_x_libraries in #(
30222   no,* | *,no | *\'*)
30223     # Didn't find X, or a directory has "'" in its name.
30224     ac_cv_have_x="have_x=no";; #(
30225   *)
30226     # Record where we found X for the cache.
30227     ac_cv_have_x="have_x=yes\
30228         ac_x_includes='$ac_x_includes'\
30229         ac_x_libraries='$ac_x_libraries'"
30230 esac
30231 fi
30232 ;; #(
30233     *) have_x=yes;;
30234   esac
30235   eval "$ac_cv_have_x"
30236 fi # $with_x != no
30237
30238 if test "$have_x" != yes; then
30239   { echo "$as_me:$LINENO: result: $have_x" >&5
30240 echo "${ECHO_T}$have_x" >&6; }
30241   no_x=yes
30242 else
30243   # If each of the values was on the command line, it overrides each guess.
30244   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30245   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30246   # Update the cache value to reflect the command line values.
30247   ac_cv_have_x="have_x=yes\
30248         ac_x_includes='$x_includes'\
30249         ac_x_libraries='$x_libraries'"
30250   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30251 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30252 fi
30253
30254 if test "$no_x" = yes; then
30255   # Not all programs may use this symbol, but it does not hurt to define it.
30256
30257 cat >>confdefs.h <<\_ACEOF
30258 #define X_DISPLAY_MISSING 1
30259 _ACEOF
30260
30261   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30262 else
30263   if test -n "$x_includes"; then
30264     X_CFLAGS="$X_CFLAGS -I$x_includes"
30265   fi
30266
30267   # It would also be nice to do this for all -L options, not just this one.
30268   if test -n "$x_libraries"; then
30269     X_LIBS="$X_LIBS -L$x_libraries"
30270     # For Solaris; some versions of Sun CC require a space after -R and
30271     # others require no space.  Words are not sufficient . . . .
30272     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30273 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30274     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30275     ac_xsave_c_werror_flag=$ac_c_werror_flag
30276     ac_c_werror_flag=yes
30277     cat >conftest.$ac_ext <<_ACEOF
30278 /* confdefs.h.  */
30279 _ACEOF
30280 cat confdefs.h >>conftest.$ac_ext
30281 cat >>conftest.$ac_ext <<_ACEOF
30282 /* end confdefs.h.  */
30283
30284 int
30285 main ()
30286 {
30287
30288   ;
30289   return 0;
30290 }
30291 _ACEOF
30292 rm -f conftest.$ac_objext conftest$ac_exeext
30293 if { (ac_try="$ac_link"
30294 case "(($ac_try" in
30295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296   *) ac_try_echo=$ac_try;;
30297 esac
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299   (eval "$ac_link") 2>conftest.er1
30300   ac_status=$?
30301   grep -v '^ *+' conftest.er1 >conftest.err
30302   rm -f conftest.er1
30303   cat conftest.err >&5
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); } && {
30306          test -z "$ac_c_werror_flag" ||
30307          test ! -s conftest.err
30308        } && test -s conftest$ac_exeext &&
30309        $as_test_x conftest$ac_exeext; then
30310   { echo "$as_me:$LINENO: result: no" >&5
30311 echo "${ECHO_T}no" >&6; }
30312        X_LIBS="$X_LIBS -R$x_libraries"
30313 else
30314   echo "$as_me: failed program was:" >&5
30315 sed 's/^/| /' conftest.$ac_ext >&5
30316
30317         LIBS="$ac_xsave_LIBS -R $x_libraries"
30318        cat >conftest.$ac_ext <<_ACEOF
30319 /* confdefs.h.  */
30320 _ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h.  */
30324
30325 int
30326 main ()
30327 {
30328
30329   ;
30330   return 0;
30331 }
30332 _ACEOF
30333 rm -f conftest.$ac_objext conftest$ac_exeext
30334 if { (ac_try="$ac_link"
30335 case "(($ac_try" in
30336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337   *) ac_try_echo=$ac_try;;
30338 esac
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340   (eval "$ac_link") 2>conftest.er1
30341   ac_status=$?
30342   grep -v '^ *+' conftest.er1 >conftest.err
30343   rm -f conftest.er1
30344   cat conftest.err >&5
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); } && {
30347          test -z "$ac_c_werror_flag" ||
30348          test ! -s conftest.err
30349        } && test -s conftest$ac_exeext &&
30350        $as_test_x conftest$ac_exeext; then
30351   { echo "$as_me:$LINENO: result: yes" >&5
30352 echo "${ECHO_T}yes" >&6; }
30353           X_LIBS="$X_LIBS -R $x_libraries"
30354 else
30355   echo "$as_me: failed program was:" >&5
30356 sed 's/^/| /' conftest.$ac_ext >&5
30357
30358         { echo "$as_me:$LINENO: result: neither works" >&5
30359 echo "${ECHO_T}neither works" >&6; }
30360 fi
30361
30362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30363       conftest$ac_exeext conftest.$ac_ext
30364 fi
30365
30366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30367       conftest$ac_exeext conftest.$ac_ext
30368     ac_c_werror_flag=$ac_xsave_c_werror_flag
30369     LIBS=$ac_xsave_LIBS
30370   fi
30371
30372   # Check for system-dependent libraries X programs must link with.
30373   # Do this before checking for the system-independent R6 libraries
30374   # (-lICE), since we may need -lsocket or whatever for X linking.
30375
30376   if test "$ISC" = yes; then
30377     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30378   else
30379     # Martyn Johnson says this is needed for Ultrix, if the X
30380     # libraries were built with DECnet support.  And Karl Berry says
30381     # the Alpha needs dnet_stub (dnet does not exist).
30382     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30383     cat >conftest.$ac_ext <<_ACEOF
30384 /* confdefs.h.  */
30385 _ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h.  */
30389
30390 /* Override any GCC internal prototype to avoid an error.
30391    Use char because int might match the return type of a GCC
30392    builtin and then its argument prototype would still apply.  */
30393 #ifdef __cplusplus
30394 extern "C"
30395 #endif
30396 char XOpenDisplay ();
30397 int
30398 main ()
30399 {
30400 return XOpenDisplay ();
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } && {
30419          test -z "$ac_c_werror_flag" ||
30420          test ! -s conftest.err
30421        } && test -s conftest$ac_exeext &&
30422        $as_test_x conftest$ac_exeext; then
30423   :
30424 else
30425   echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30427
30428         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30429 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30430 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30431   echo $ECHO_N "(cached) $ECHO_C" >&6
30432 else
30433   ac_check_lib_save_LIBS=$LIBS
30434 LIBS="-ldnet  $LIBS"
30435 cat >conftest.$ac_ext <<_ACEOF
30436 /* confdefs.h.  */
30437 _ACEOF
30438 cat confdefs.h >>conftest.$ac_ext
30439 cat >>conftest.$ac_ext <<_ACEOF
30440 /* end confdefs.h.  */
30441
30442 /* Override any GCC internal prototype to avoid an error.
30443    Use char because int might match the return type of a GCC
30444    builtin and then its argument prototype would still apply.  */
30445 #ifdef __cplusplus
30446 extern "C"
30447 #endif
30448 char dnet_ntoa ();
30449 int
30450 main ()
30451 {
30452 return dnet_ntoa ();
30453   ;
30454   return 0;
30455 }
30456 _ACEOF
30457 rm -f conftest.$ac_objext conftest$ac_exeext
30458 if { (ac_try="$ac_link"
30459 case "(($ac_try" in
30460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461   *) ac_try_echo=$ac_try;;
30462 esac
30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464   (eval "$ac_link") 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } && {
30471          test -z "$ac_c_werror_flag" ||
30472          test ! -s conftest.err
30473        } && test -s conftest$ac_exeext &&
30474        $as_test_x conftest$ac_exeext; then
30475   ac_cv_lib_dnet_dnet_ntoa=yes
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480         ac_cv_lib_dnet_dnet_ntoa=no
30481 fi
30482
30483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30484       conftest$ac_exeext conftest.$ac_ext
30485 LIBS=$ac_check_lib_save_LIBS
30486 fi
30487 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30488 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30489 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30490   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30491 fi
30492
30493     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30494       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30495 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30496 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30497   echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30499   ac_check_lib_save_LIBS=$LIBS
30500 LIBS="-ldnet_stub  $LIBS"
30501 cat >conftest.$ac_ext <<_ACEOF
30502 /* confdefs.h.  */
30503 _ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h.  */
30507
30508 /* Override any GCC internal prototype to avoid an error.
30509    Use char because int might match the return type of a GCC
30510    builtin and then its argument prototype would still apply.  */
30511 #ifdef __cplusplus
30512 extern "C"
30513 #endif
30514 char dnet_ntoa ();
30515 int
30516 main ()
30517 {
30518 return dnet_ntoa ();
30519   ;
30520   return 0;
30521 }
30522 _ACEOF
30523 rm -f conftest.$ac_objext conftest$ac_exeext
30524 if { (ac_try="$ac_link"
30525 case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_link") 2>conftest.er1
30531   ac_status=$?
30532   grep -v '^ *+' conftest.er1 >conftest.err
30533   rm -f conftest.er1
30534   cat conftest.err >&5
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); } && {
30537          test -z "$ac_c_werror_flag" ||
30538          test ! -s conftest.err
30539        } && test -s conftest$ac_exeext &&
30540        $as_test_x conftest$ac_exeext; then
30541   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30542 else
30543   echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.$ac_ext >&5
30545
30546         ac_cv_lib_dnet_stub_dnet_ntoa=no
30547 fi
30548
30549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30550       conftest$ac_exeext conftest.$ac_ext
30551 LIBS=$ac_check_lib_save_LIBS
30552 fi
30553 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30554 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30555 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30556   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30557 fi
30558
30559     fi
30560 fi
30561
30562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30563       conftest$ac_exeext conftest.$ac_ext
30564     LIBS="$ac_xsave_LIBS"
30565
30566     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30567     # to get the SysV transport functions.
30568     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30569     # needs -lnsl.
30570     # The nsl library prevents programs from opening the X display
30571     # on Irix 5.2, according to T.E. Dickey.
30572     # The functions gethostbyname, getservbyname, and inet_addr are
30573     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30574     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30575 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30576 if test "${ac_cv_func_gethostbyname+set}" = set; then
30577   echo $ECHO_N "(cached) $ECHO_C" >&6
30578 else
30579   cat >conftest.$ac_ext <<_ACEOF
30580 /* confdefs.h.  */
30581 _ACEOF
30582 cat confdefs.h >>conftest.$ac_ext
30583 cat >>conftest.$ac_ext <<_ACEOF
30584 /* end confdefs.h.  */
30585 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30587 #define gethostbyname innocuous_gethostbyname
30588
30589 /* System header to define __stub macros and hopefully few prototypes,
30590     which can conflict with char gethostbyname (); below.
30591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592     <limits.h> exists even on freestanding compilers.  */
30593
30594 #ifdef __STDC__
30595 # include <limits.h>
30596 #else
30597 # include <assert.h>
30598 #endif
30599
30600 #undef gethostbyname
30601
30602 /* Override any GCC internal prototype to avoid an error.
30603    Use char because int might match the return type of a GCC
30604    builtin and then its argument prototype would still apply.  */
30605 #ifdef __cplusplus
30606 extern "C"
30607 #endif
30608 char gethostbyname ();
30609 /* The GNU C library defines this for functions which it implements
30610     to always fail with ENOSYS.  Some functions are actually named
30611     something starting with __ and the normal name is an alias.  */
30612 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30613 choke me
30614 #endif
30615
30616 int
30617 main ()
30618 {
30619 return gethostbyname ();
30620   ;
30621   return 0;
30622 }
30623 _ACEOF
30624 rm -f conftest.$ac_objext conftest$ac_exeext
30625 if { (ac_try="$ac_link"
30626 case "(($ac_try" in
30627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628   *) ac_try_echo=$ac_try;;
30629 esac
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631   (eval "$ac_link") 2>conftest.er1
30632   ac_status=$?
30633   grep -v '^ *+' conftest.er1 >conftest.err
30634   rm -f conftest.er1
30635   cat conftest.err >&5
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); } && {
30638          test -z "$ac_c_werror_flag" ||
30639          test ! -s conftest.err
30640        } && test -s conftest$ac_exeext &&
30641        $as_test_x conftest$ac_exeext; then
30642   ac_cv_func_gethostbyname=yes
30643 else
30644   echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30646
30647         ac_cv_func_gethostbyname=no
30648 fi
30649
30650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30651       conftest$ac_exeext conftest.$ac_ext
30652 fi
30653 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30654 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30655
30656     if test $ac_cv_func_gethostbyname = no; then
30657       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30658 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30659 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662   ac_check_lib_save_LIBS=$LIBS
30663 LIBS="-lnsl  $LIBS"
30664 cat >conftest.$ac_ext <<_ACEOF
30665 /* confdefs.h.  */
30666 _ACEOF
30667 cat confdefs.h >>conftest.$ac_ext
30668 cat >>conftest.$ac_ext <<_ACEOF
30669 /* end confdefs.h.  */
30670
30671 /* Override any GCC internal prototype to avoid an error.
30672    Use char because int might match the return type of a GCC
30673    builtin and then its argument prototype would still apply.  */
30674 #ifdef __cplusplus
30675 extern "C"
30676 #endif
30677 char gethostbyname ();
30678 int
30679 main ()
30680 {
30681 return gethostbyname ();
30682   ;
30683   return 0;
30684 }
30685 _ACEOF
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690   *) ac_try_echo=$ac_try;;
30691 esac
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693   (eval "$ac_link") 2>conftest.er1
30694   ac_status=$?
30695   grep -v '^ *+' conftest.er1 >conftest.err
30696   rm -f conftest.er1
30697   cat conftest.err >&5
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); } && {
30700          test -z "$ac_c_werror_flag" ||
30701          test ! -s conftest.err
30702        } && test -s conftest$ac_exeext &&
30703        $as_test_x conftest$ac_exeext; then
30704   ac_cv_lib_nsl_gethostbyname=yes
30705 else
30706   echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.$ac_ext >&5
30708
30709         ac_cv_lib_nsl_gethostbyname=no
30710 fi
30711
30712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30713       conftest$ac_exeext conftest.$ac_ext
30714 LIBS=$ac_check_lib_save_LIBS
30715 fi
30716 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30717 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30718 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30719   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30720 fi
30721
30722       if test $ac_cv_lib_nsl_gethostbyname = no; then
30723         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30724 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30725 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30726   echo $ECHO_N "(cached) $ECHO_C" >&6
30727 else
30728   ac_check_lib_save_LIBS=$LIBS
30729 LIBS="-lbsd  $LIBS"
30730 cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736
30737 /* Override any GCC internal prototype to avoid an error.
30738    Use char because int might match the return type of a GCC
30739    builtin and then its argument prototype would still apply.  */
30740 #ifdef __cplusplus
30741 extern "C"
30742 #endif
30743 char gethostbyname ();
30744 int
30745 main ()
30746 {
30747 return gethostbyname ();
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_lib_bsd_gethostbyname=yes
30771 else
30772   echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30774
30775         ac_cv_lib_bsd_gethostbyname=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 LIBS=$ac_check_lib_save_LIBS
30781 fi
30782 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30783 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30784 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30785   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30786 fi
30787
30788       fi
30789     fi
30790
30791     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30792     # socket/setsockopt and other routines are undefined under SCO ODT
30793     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30794     # on later versions), says Simon Leinen: it contains gethostby*
30795     # variants that don't use the name server (or something).  -lsocket
30796     # must be given before -lnsl if both are needed.  We assume that
30797     # if connect needs -lnsl, so does gethostbyname.
30798     { echo "$as_me:$LINENO: checking for connect" >&5
30799 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30800 if test "${ac_cv_func_connect+set}" = set; then
30801   echo $ECHO_N "(cached) $ECHO_C" >&6
30802 else
30803   cat >conftest.$ac_ext <<_ACEOF
30804 /* confdefs.h.  */
30805 _ACEOF
30806 cat confdefs.h >>conftest.$ac_ext
30807 cat >>conftest.$ac_ext <<_ACEOF
30808 /* end confdefs.h.  */
30809 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30811 #define connect innocuous_connect
30812
30813 /* System header to define __stub macros and hopefully few prototypes,
30814     which can conflict with char connect (); below.
30815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30816     <limits.h> exists even on freestanding compilers.  */
30817
30818 #ifdef __STDC__
30819 # include <limits.h>
30820 #else
30821 # include <assert.h>
30822 #endif
30823
30824 #undef connect
30825
30826 /* Override any GCC internal prototype to avoid an error.
30827    Use char because int might match the return type of a GCC
30828    builtin and then its argument prototype would still apply.  */
30829 #ifdef __cplusplus
30830 extern "C"
30831 #endif
30832 char connect ();
30833 /* The GNU C library defines this for functions which it implements
30834     to always fail with ENOSYS.  Some functions are actually named
30835     something starting with __ and the normal name is an alias.  */
30836 #if defined __stub_connect || defined __stub___connect
30837 choke me
30838 #endif
30839
30840 int
30841 main ()
30842 {
30843 return connect ();
30844   ;
30845   return 0;
30846 }
30847 _ACEOF
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (ac_try="$ac_link"
30850 case "(($ac_try" in
30851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30852   *) ac_try_echo=$ac_try;;
30853 esac
30854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30855   (eval "$ac_link") 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } && {
30862          test -z "$ac_c_werror_flag" ||
30863          test ! -s conftest.err
30864        } && test -s conftest$ac_exeext &&
30865        $as_test_x conftest$ac_exeext; then
30866   ac_cv_func_connect=yes
30867 else
30868   echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30870
30871         ac_cv_func_connect=no
30872 fi
30873
30874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30875       conftest$ac_exeext conftest.$ac_ext
30876 fi
30877 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30878 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30879
30880     if test $ac_cv_func_connect = no; then
30881       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30882 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30883 if test "${ac_cv_lib_socket_connect+set}" = set; then
30884   echo $ECHO_N "(cached) $ECHO_C" >&6
30885 else
30886   ac_check_lib_save_LIBS=$LIBS
30887 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30888 cat >conftest.$ac_ext <<_ACEOF
30889 /* confdefs.h.  */
30890 _ACEOF
30891 cat confdefs.h >>conftest.$ac_ext
30892 cat >>conftest.$ac_ext <<_ACEOF
30893 /* end confdefs.h.  */
30894
30895 /* Override any GCC internal prototype to avoid an error.
30896    Use char because int might match the return type of a GCC
30897    builtin and then its argument prototype would still apply.  */
30898 #ifdef __cplusplus
30899 extern "C"
30900 #endif
30901 char connect ();
30902 int
30903 main ()
30904 {
30905 return connect ();
30906   ;
30907   return 0;
30908 }
30909 _ACEOF
30910 rm -f conftest.$ac_objext conftest$ac_exeext
30911 if { (ac_try="$ac_link"
30912 case "(($ac_try" in
30913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914   *) ac_try_echo=$ac_try;;
30915 esac
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917   (eval "$ac_link") 2>conftest.er1
30918   ac_status=$?
30919   grep -v '^ *+' conftest.er1 >conftest.err
30920   rm -f conftest.er1
30921   cat conftest.err >&5
30922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923   (exit $ac_status); } && {
30924          test -z "$ac_c_werror_flag" ||
30925          test ! -s conftest.err
30926        } && test -s conftest$ac_exeext &&
30927        $as_test_x conftest$ac_exeext; then
30928   ac_cv_lib_socket_connect=yes
30929 else
30930   echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.$ac_ext >&5
30932
30933         ac_cv_lib_socket_connect=no
30934 fi
30935
30936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30937       conftest$ac_exeext conftest.$ac_ext
30938 LIBS=$ac_check_lib_save_LIBS
30939 fi
30940 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30941 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30942 if test $ac_cv_lib_socket_connect = yes; then
30943   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30944 fi
30945
30946     fi
30947
30948     # Guillermo Gomez says -lposix is necessary on A/UX.
30949     { echo "$as_me:$LINENO: checking for remove" >&5
30950 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30951 if test "${ac_cv_func_remove+set}" = set; then
30952   echo $ECHO_N "(cached) $ECHO_C" >&6
30953 else
30954   cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30962 #define remove innocuous_remove
30963
30964 /* System header to define __stub macros and hopefully few prototypes,
30965     which can conflict with char remove (); below.
30966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30967     <limits.h> exists even on freestanding compilers.  */
30968
30969 #ifdef __STDC__
30970 # include <limits.h>
30971 #else
30972 # include <assert.h>
30973 #endif
30974
30975 #undef remove
30976
30977 /* Override any GCC internal prototype to avoid an error.
30978    Use char because int might match the return type of a GCC
30979    builtin and then its argument prototype would still apply.  */
30980 #ifdef __cplusplus
30981 extern "C"
30982 #endif
30983 char remove ();
30984 /* The GNU C library defines this for functions which it implements
30985     to always fail with ENOSYS.  Some functions are actually named
30986     something starting with __ and the normal name is an alias.  */
30987 #if defined __stub_remove || defined __stub___remove
30988 choke me
30989 #endif
30990
30991 int
30992 main ()
30993 {
30994 return remove ();
30995   ;
30996   return 0;
30997 }
30998 _ACEOF
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (ac_try="$ac_link"
31001 case "(($ac_try" in
31002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003   *) ac_try_echo=$ac_try;;
31004 esac
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006   (eval "$ac_link") 2>conftest.er1
31007   ac_status=$?
31008   grep -v '^ *+' conftest.er1 >conftest.err
31009   rm -f conftest.er1
31010   cat conftest.err >&5
31011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012   (exit $ac_status); } && {
31013          test -z "$ac_c_werror_flag" ||
31014          test ! -s conftest.err
31015        } && test -s conftest$ac_exeext &&
31016        $as_test_x conftest$ac_exeext; then
31017   ac_cv_func_remove=yes
31018 else
31019   echo "$as_me: failed program was:" >&5
31020 sed 's/^/| /' conftest.$ac_ext >&5
31021
31022         ac_cv_func_remove=no
31023 fi
31024
31025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31026       conftest$ac_exeext conftest.$ac_ext
31027 fi
31028 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31029 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31030
31031     if test $ac_cv_func_remove = no; then
31032       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31033 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31034 if test "${ac_cv_lib_posix_remove+set}" = set; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037   ac_check_lib_save_LIBS=$LIBS
31038 LIBS="-lposix  $LIBS"
31039 cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045
31046 /* Override any GCC internal prototype to avoid an error.
31047    Use char because int might match the return type of a GCC
31048    builtin and then its argument prototype would still apply.  */
31049 #ifdef __cplusplus
31050 extern "C"
31051 #endif
31052 char remove ();
31053 int
31054 main ()
31055 {
31056 return remove ();
31057   ;
31058   return 0;
31059 }
31060 _ACEOF
31061 rm -f conftest.$ac_objext conftest$ac_exeext
31062 if { (ac_try="$ac_link"
31063 case "(($ac_try" in
31064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065   *) ac_try_echo=$ac_try;;
31066 esac
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068   (eval "$ac_link") 2>conftest.er1
31069   ac_status=$?
31070   grep -v '^ *+' conftest.er1 >conftest.err
31071   rm -f conftest.er1
31072   cat conftest.err >&5
31073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074   (exit $ac_status); } && {
31075          test -z "$ac_c_werror_flag" ||
31076          test ! -s conftest.err
31077        } && test -s conftest$ac_exeext &&
31078        $as_test_x conftest$ac_exeext; then
31079   ac_cv_lib_posix_remove=yes
31080 else
31081   echo "$as_me: failed program was:" >&5
31082 sed 's/^/| /' conftest.$ac_ext >&5
31083
31084         ac_cv_lib_posix_remove=no
31085 fi
31086
31087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31088       conftest$ac_exeext conftest.$ac_ext
31089 LIBS=$ac_check_lib_save_LIBS
31090 fi
31091 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31092 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31093 if test $ac_cv_lib_posix_remove = yes; then
31094   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31095 fi
31096
31097     fi
31098
31099     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31100     { echo "$as_me:$LINENO: checking for shmat" >&5
31101 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31102 if test "${ac_cv_func_shmat+set}" = set; then
31103   echo $ECHO_N "(cached) $ECHO_C" >&6
31104 else
31105   cat >conftest.$ac_ext <<_ACEOF
31106 /* confdefs.h.  */
31107 _ACEOF
31108 cat confdefs.h >>conftest.$ac_ext
31109 cat >>conftest.$ac_ext <<_ACEOF
31110 /* end confdefs.h.  */
31111 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31113 #define shmat innocuous_shmat
31114
31115 /* System header to define __stub macros and hopefully few prototypes,
31116     which can conflict with char shmat (); below.
31117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31118     <limits.h> exists even on freestanding compilers.  */
31119
31120 #ifdef __STDC__
31121 # include <limits.h>
31122 #else
31123 # include <assert.h>
31124 #endif
31125
31126 #undef shmat
31127
31128 /* Override any GCC internal prototype to avoid an error.
31129    Use char because int might match the return type of a GCC
31130    builtin and then its argument prototype would still apply.  */
31131 #ifdef __cplusplus
31132 extern "C"
31133 #endif
31134 char shmat ();
31135 /* The GNU C library defines this for functions which it implements
31136     to always fail with ENOSYS.  Some functions are actually named
31137     something starting with __ and the normal name is an alias.  */
31138 #if defined __stub_shmat || defined __stub___shmat
31139 choke me
31140 #endif
31141
31142 int
31143 main ()
31144 {
31145 return shmat ();
31146   ;
31147   return 0;
31148 }
31149 _ACEOF
31150 rm -f conftest.$ac_objext conftest$ac_exeext
31151 if { (ac_try="$ac_link"
31152 case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_link") 2>conftest.er1
31158   ac_status=$?
31159   grep -v '^ *+' conftest.er1 >conftest.err
31160   rm -f conftest.er1
31161   cat conftest.err >&5
31162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163   (exit $ac_status); } && {
31164          test -z "$ac_c_werror_flag" ||
31165          test ! -s conftest.err
31166        } && test -s conftest$ac_exeext &&
31167        $as_test_x conftest$ac_exeext; then
31168   ac_cv_func_shmat=yes
31169 else
31170   echo "$as_me: failed program was:" >&5
31171 sed 's/^/| /' conftest.$ac_ext >&5
31172
31173         ac_cv_func_shmat=no
31174 fi
31175
31176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31177       conftest$ac_exeext conftest.$ac_ext
31178 fi
31179 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31180 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31181
31182     if test $ac_cv_func_shmat = no; then
31183       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31184 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31185 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31186   echo $ECHO_N "(cached) $ECHO_C" >&6
31187 else
31188   ac_check_lib_save_LIBS=$LIBS
31189 LIBS="-lipc  $LIBS"
31190 cat >conftest.$ac_ext <<_ACEOF
31191 /* confdefs.h.  */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h.  */
31196
31197 /* Override any GCC internal prototype to avoid an error.
31198    Use char because int might match the return type of a GCC
31199    builtin and then its argument prototype would still apply.  */
31200 #ifdef __cplusplus
31201 extern "C"
31202 #endif
31203 char shmat ();
31204 int
31205 main ()
31206 {
31207 return shmat ();
31208   ;
31209   return 0;
31210 }
31211 _ACEOF
31212 rm -f conftest.$ac_objext conftest$ac_exeext
31213 if { (ac_try="$ac_link"
31214 case "(($ac_try" in
31215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216   *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219   (eval "$ac_link") 2>conftest.er1
31220   ac_status=$?
31221   grep -v '^ *+' conftest.er1 >conftest.err
31222   rm -f conftest.er1
31223   cat conftest.err >&5
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); } && {
31226          test -z "$ac_c_werror_flag" ||
31227          test ! -s conftest.err
31228        } && test -s conftest$ac_exeext &&
31229        $as_test_x conftest$ac_exeext; then
31230   ac_cv_lib_ipc_shmat=yes
31231 else
31232   echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31234
31235         ac_cv_lib_ipc_shmat=no
31236 fi
31237
31238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31239       conftest$ac_exeext conftest.$ac_ext
31240 LIBS=$ac_check_lib_save_LIBS
31241 fi
31242 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31243 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31244 if test $ac_cv_lib_ipc_shmat = yes; then
31245   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31246 fi
31247
31248     fi
31249   fi
31250
31251   # Check for libraries that X11R6 Xt/Xaw programs need.
31252   ac_save_LDFLAGS=$LDFLAGS
31253   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31254   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31255   # check for ICE first), but we must link in the order -lSM -lICE or
31256   # we get undefined symbols.  So assume we have SM if we have ICE.
31257   # These have to be linked with before -lX11, unlike the other
31258   # libraries we check for below, so use a different variable.
31259   # John Interrante, Karl Berry
31260   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31261 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31262 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31263   echo $ECHO_N "(cached) $ECHO_C" >&6
31264 else
31265   ac_check_lib_save_LIBS=$LIBS
31266 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31267 cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273
31274 /* Override any GCC internal prototype to avoid an error.
31275    Use char because int might match the return type of a GCC
31276    builtin and then its argument prototype would still apply.  */
31277 #ifdef __cplusplus
31278 extern "C"
31279 #endif
31280 char IceConnectionNumber ();
31281 int
31282 main ()
31283 {
31284 return IceConnectionNumber ();
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (ac_try="$ac_link"
31291 case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_link") 2>conftest.er1
31297   ac_status=$?
31298   grep -v '^ *+' conftest.er1 >conftest.err
31299   rm -f conftest.er1
31300   cat conftest.err >&5
31301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302   (exit $ac_status); } && {
31303          test -z "$ac_c_werror_flag" ||
31304          test ! -s conftest.err
31305        } && test -s conftest$ac_exeext &&
31306        $as_test_x conftest$ac_exeext; then
31307   ac_cv_lib_ICE_IceConnectionNumber=yes
31308 else
31309   echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31311
31312         ac_cv_lib_ICE_IceConnectionNumber=no
31313 fi
31314
31315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31316       conftest$ac_exeext conftest.$ac_ext
31317 LIBS=$ac_check_lib_save_LIBS
31318 fi
31319 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31320 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31321 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31322   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31323 fi
31324
31325   LDFLAGS=$ac_save_LDFLAGS
31326
31327 fi
31328
31329
31330         if test "$no_x" = "yes"; then
31331           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31332 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31333    { (exit 1); exit 1; }; }
31334         fi
31335
31336                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31337         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31338         AFMINSTALL=afminstall
31339         COMPILED_X_PROGRAM=0
31340
31341     fi
31342
31343     if test "$wxUSE_X11" = 1; then
31344         if test "$wxUSE_NANOX" = "yes"; then
31345             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31346 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31347             if test "x$MICROWIN" = x ; then
31348                 { echo "$as_me:$LINENO: result: not found" >&5
31349 echo "${ECHO_T}not found" >&6; }
31350                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31351 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31352    { (exit 1); exit 1; }; }
31353             else
31354                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31355 echo "${ECHO_T}$MICROWIN" >&6; }
31356                 cat >>confdefs.h <<\_ACEOF
31357 #define wxUSE_NANOX 1
31358 _ACEOF
31359
31360             fi
31361         fi
31362
31363         if test "$wxUSE_UNICODE" = "yes"; then
31364
31365
31366 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31367         if test -n "$ac_tool_prefix"; then
31368   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31369 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375   case $PKG_CONFIG in
31376   [\\/]* | ?:[\\/]*)
31377   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31378   ;;
31379   *)
31380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31381 for as_dir in $PATH
31382 do
31383   IFS=$as_save_IFS
31384   test -z "$as_dir" && as_dir=.
31385   for ac_exec_ext in '' $ac_executable_extensions; do
31386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31387     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31389     break 2
31390   fi
31391 done
31392 done
31393 IFS=$as_save_IFS
31394
31395   ;;
31396 esac
31397 fi
31398 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31399 if test -n "$PKG_CONFIG"; then
31400   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31401 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31402 else
31403   { echo "$as_me:$LINENO: result: no" >&5
31404 echo "${ECHO_T}no" >&6; }
31405 fi
31406
31407
31408 fi
31409 if test -z "$ac_cv_path_PKG_CONFIG"; then
31410   ac_pt_PKG_CONFIG=$PKG_CONFIG
31411   # Extract the first word of "pkg-config", so it can be a program name with args.
31412 set dummy pkg-config; ac_word=$2
31413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31415 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31416   echo $ECHO_N "(cached) $ECHO_C" >&6
31417 else
31418   case $ac_pt_PKG_CONFIG in
31419   [\\/]* | ?:[\\/]*)
31420   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31421   ;;
31422   *)
31423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31424 for as_dir in $PATH
31425 do
31426   IFS=$as_save_IFS
31427   test -z "$as_dir" && as_dir=.
31428   for ac_exec_ext in '' $ac_executable_extensions; do
31429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31430     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31432     break 2
31433   fi
31434 done
31435 done
31436 IFS=$as_save_IFS
31437
31438   ;;
31439 esac
31440 fi
31441 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31442 if test -n "$ac_pt_PKG_CONFIG"; then
31443   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31444 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31445 else
31446   { echo "$as_me:$LINENO: result: no" >&5
31447 echo "${ECHO_T}no" >&6; }
31448 fi
31449
31450   if test "x$ac_pt_PKG_CONFIG" = x; then
31451     PKG_CONFIG=""
31452   else
31453     case $cross_compiling:$ac_tool_warned in
31454 yes:)
31455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31456 whose name does not start with the host triplet.  If you think this
31457 configuration is useful to you, please write to autoconf@gnu.org." >&5
31458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31459 whose name does not start with the host triplet.  If you think this
31460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31461 ac_tool_warned=yes ;;
31462 esac
31463     PKG_CONFIG=$ac_pt_PKG_CONFIG
31464   fi
31465 else
31466   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31467 fi
31468
31469 fi
31470 if test -n "$PKG_CONFIG"; then
31471         _pkg_min_version=0.9.0
31472         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31473 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31474         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31475                 { echo "$as_me:$LINENO: result: yes" >&5
31476 echo "${ECHO_T}yes" >&6; }
31477         else
31478                 { echo "$as_me:$LINENO: result: no" >&5
31479 echo "${ECHO_T}no" >&6; }
31480                 PKG_CONFIG=""
31481         fi
31482
31483 fi
31484
31485
31486 pkg_failed=no
31487 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31488 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31489
31490 if test -n "$PKG_CONFIG"; then
31491     if test -n "$PANGOX_CFLAGS"; then
31492         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31493     else
31494         if test -n "$PKG_CONFIG" && \
31495     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31496   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31497   ac_status=$?
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); }; then
31500   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31501 else
31502   pkg_failed=yes
31503 fi
31504     fi
31505 else
31506         pkg_failed=untried
31507 fi
31508 if test -n "$PKG_CONFIG"; then
31509     if test -n "$PANGOX_LIBS"; then
31510         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31511     else
31512         if test -n "$PKG_CONFIG" && \
31513     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31514   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; then
31518   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31519 else
31520   pkg_failed=yes
31521 fi
31522     fi
31523 else
31524         pkg_failed=untried
31525 fi
31526
31527
31528
31529 if test $pkg_failed = yes; then
31530
31531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31532         _pkg_short_errors_supported=yes
31533 else
31534         _pkg_short_errors_supported=no
31535 fi
31536         if test $_pkg_short_errors_supported = yes; then
31537                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31538         else
31539                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31540         fi
31541         # Put the nasty error message in config.log where it belongs
31542         echo "$PANGOX_PKG_ERRORS" >&5
31543
31544
31545                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31546 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31547    { (exit 1); exit 1; }; }
31548
31549
31550 elif test $pkg_failed = untried; then
31551
31552                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31553 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31554    { (exit 1); exit 1; }; }
31555
31556
31557 else
31558         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31559         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31560         { echo "$as_me:$LINENO: result: yes" >&5
31561 echo "${ECHO_T}yes" >&6; }
31562
31563                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31564                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31565                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31566
31567 fi
31568
31569 pkg_failed=no
31570 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31571 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31572
31573 if test -n "$PKG_CONFIG"; then
31574     if test -n "$PANGOFT2_CFLAGS"; then
31575         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31576     else
31577         if test -n "$PKG_CONFIG" && \
31578     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31579   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31580   ac_status=$?
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); }; then
31583   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31584 else
31585   pkg_failed=yes
31586 fi
31587     fi
31588 else
31589         pkg_failed=untried
31590 fi
31591 if test -n "$PKG_CONFIG"; then
31592     if test -n "$PANGOFT2_LIBS"; then
31593         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31594     else
31595         if test -n "$PKG_CONFIG" && \
31596     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31597   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31598   ac_status=$?
31599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600   (exit $ac_status); }; then
31601   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31602 else
31603   pkg_failed=yes
31604 fi
31605     fi
31606 else
31607         pkg_failed=untried
31608 fi
31609
31610
31611
31612 if test $pkg_failed = yes; then
31613
31614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31615         _pkg_short_errors_supported=yes
31616 else
31617         _pkg_short_errors_supported=no
31618 fi
31619         if test $_pkg_short_errors_supported = yes; then
31620                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31621         else
31622                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31623         fi
31624         # Put the nasty error message in config.log where it belongs
31625         echo "$PANGOFT2_PKG_ERRORS" >&5
31626
31627
31628                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31629 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31630                     wxUSE_PRINTING_ARCHITECTURE="no"
31631
31632
31633 elif test $pkg_failed = untried; then
31634
31635                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31636 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31637                     wxUSE_PRINTING_ARCHITECTURE="no"
31638
31639
31640 else
31641         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31642         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31643         { echo "$as_me:$LINENO: result: yes" >&5
31644 echo "${ECHO_T}yes" >&6; }
31645
31646                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31647                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31648                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31649
31650 fi
31651
31652 pkg_failed=no
31653 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31654 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31655
31656 if test -n "$PKG_CONFIG"; then
31657     if test -n "$PANGOXFT_CFLAGS"; then
31658         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31659     else
31660         if test -n "$PKG_CONFIG" && \
31661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31662   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; then
31666   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31667 else
31668   pkg_failed=yes
31669 fi
31670     fi
31671 else
31672         pkg_failed=untried
31673 fi
31674 if test -n "$PKG_CONFIG"; then
31675     if test -n "$PANGOXFT_LIBS"; then
31676         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31677     else
31678         if test -n "$PKG_CONFIG" && \
31679     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31680   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31681   ac_status=$?
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); }; then
31684   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31685 else
31686   pkg_failed=yes
31687 fi
31688     fi
31689 else
31690         pkg_failed=untried
31691 fi
31692
31693
31694
31695 if test $pkg_failed = yes; then
31696
31697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31698         _pkg_short_errors_supported=yes
31699 else
31700         _pkg_short_errors_supported=no
31701 fi
31702         if test $_pkg_short_errors_supported = yes; then
31703                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31704         else
31705                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31706         fi
31707         # Put the nasty error message in config.log where it belongs
31708         echo "$PANGOXFT_PKG_ERRORS" >&5
31709
31710
31711                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31712 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31713
31714
31715 elif test $pkg_failed = untried; then
31716
31717                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31718 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31719
31720
31721 else
31722         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31723         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31724         { echo "$as_me:$LINENO: result: yes" >&5
31725 echo "${ECHO_T}yes" >&6; }
31726
31727                     cat >>confdefs.h <<\_ACEOF
31728 #define HAVE_PANGO_XFT 1
31729 _ACEOF
31730
31731                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31732                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31733                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31734
31735 fi
31736             save_LIBS="$LIBS"
31737             LIBS="$LIBS $PANGOX_LIBS"
31738
31739 for ac_func in pango_font_family_is_monospace
31740 do
31741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31745   echo $ECHO_N "(cached) $ECHO_C" >&6
31746 else
31747   cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31755 #define $ac_func innocuous_$ac_func
31756
31757 /* System header to define __stub macros and hopefully few prototypes,
31758     which can conflict with char $ac_func (); below.
31759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31760     <limits.h> exists even on freestanding compilers.  */
31761
31762 #ifdef __STDC__
31763 # include <limits.h>
31764 #else
31765 # include <assert.h>
31766 #endif
31767
31768 #undef $ac_func
31769
31770 /* Override any GCC internal prototype to avoid an error.
31771    Use char because int might match the return type of a GCC
31772    builtin and then its argument prototype would still apply.  */
31773 #ifdef __cplusplus
31774 extern "C"
31775 #endif
31776 char $ac_func ();
31777 /* The GNU C library defines this for functions which it implements
31778     to always fail with ENOSYS.  Some functions are actually named
31779     something starting with __ and the normal name is an alias.  */
31780 #if defined __stub_$ac_func || defined __stub___$ac_func
31781 choke me
31782 #endif
31783
31784 int
31785 main ()
31786 {
31787 return $ac_func ();
31788   ;
31789   return 0;
31790 }
31791 _ACEOF
31792 rm -f conftest.$ac_objext conftest$ac_exeext
31793 if { (ac_try="$ac_link"
31794 case "(($ac_try" in
31795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31796   *) ac_try_echo=$ac_try;;
31797 esac
31798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31799   (eval "$ac_link") 2>conftest.er1
31800   ac_status=$?
31801   grep -v '^ *+' conftest.er1 >conftest.err
31802   rm -f conftest.er1
31803   cat conftest.err >&5
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); } && {
31806          test -z "$ac_c_werror_flag" ||
31807          test ! -s conftest.err
31808        } && test -s conftest$ac_exeext &&
31809        $as_test_x conftest$ac_exeext; then
31810   eval "$as_ac_var=yes"
31811 else
31812   echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815         eval "$as_ac_var=no"
31816 fi
31817
31818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31819       conftest$ac_exeext conftest.$ac_ext
31820 fi
31821 ac_res=`eval echo '${'$as_ac_var'}'`
31822                { echo "$as_me:$LINENO: result: $ac_res" >&5
31823 echo "${ECHO_T}$ac_res" >&6; }
31824 if test `eval echo '${'$as_ac_var'}'` = yes; then
31825   cat >>confdefs.h <<_ACEOF
31826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31827 _ACEOF
31828
31829 fi
31830 done
31831
31832             LIBS="$save_LIBS"
31833         fi
31834
31835         wxUSE_UNIVERSAL="yes"
31836
31837         if test "$wxUSE_NANOX" = "yes"; then
31838             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31839             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"
31840             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31841         else
31842             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31843         fi
31844
31845         TOOLKIT=X11
31846         GUIDIST=X11_DIST
31847     fi
31848
31849     if test "$wxUSE_MOTIF" = 1; then
31850         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31851 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31852
31853 ac_find_includes=
31854 for ac_dir in $SEARCH_INCLUDE /usr/include;
31855   do
31856     if test -f "$ac_dir/Xm/Xm.h"; then
31857       ac_find_includes=$ac_dir
31858       break
31859     fi
31860   done
31861
31862         if test "$ac_find_includes" != "" ; then
31863             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31864 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31865
31866     if test "x$ac_find_includes" = "x/usr/include"; then
31867     ac_path_to_include=""
31868   else
31869     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31870     result=$?
31871     if test $result = 0; then
31872       ac_path_to_include=""
31873     else
31874       ac_path_to_include=" -I$ac_find_includes"
31875     fi
31876   fi
31877
31878             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31879         else
31880             save_CFLAGS=$CFLAGS
31881             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31882
31883             cat >conftest.$ac_ext <<_ACEOF
31884 /* confdefs.h.  */
31885 _ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h.  */
31889
31890                     #include <Xm/Xm.h>
31891
31892 int
31893 main ()
31894 {
31895
31896                     int version;
31897                     version = xmUseVersion;
31898
31899   ;
31900   return 0;
31901 }
31902 _ACEOF
31903 rm -f conftest.$ac_objext
31904 if { (ac_try="$ac_compile"
31905 case "(($ac_try" in
31906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907   *) ac_try_echo=$ac_try;;
31908 esac
31909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31910   (eval "$ac_compile") 2>conftest.er1
31911   ac_status=$?
31912   grep -v '^ *+' conftest.er1 >conftest.err
31913   rm -f conftest.er1
31914   cat conftest.err >&5
31915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916   (exit $ac_status); } && {
31917          test -z "$ac_c_werror_flag" ||
31918          test ! -s conftest.err
31919        } && test -s conftest.$ac_objext; then
31920
31921                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31922 echo "${ECHO_T}found in default search path" >&6; }
31923                     COMPILED_X_PROGRAM=1
31924
31925 else
31926   echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.$ac_ext >&5
31928
31929
31930                     { echo "$as_me:$LINENO: result: no" >&5
31931 echo "${ECHO_T}no" >&6; }
31932                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31933 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31934    { (exit 1); exit 1; }; }
31935
31936
31937 fi
31938
31939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31940
31941             CFLAGS=$save_CFLAGS
31942         fi
31943
31944
31945         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31946 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31947
31948   ac_find_libraries=
31949   for ac_dir in $SEARCH_LIB;
31950   do
31951     for ac_extension in a so sl dylib dll.a; do
31952       if test -f "$ac_dir/libXm.$ac_extension"; then
31953         ac_find_libraries=$ac_dir
31954         break 2
31955       fi
31956     done
31957   done
31958
31959
31960         if test "x$ac_find_libraries" != "x" ; then
31961             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31962 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31963
31964
31965     if test "$ac_find_libraries" = "default location"; then
31966     ac_path_to_link=""
31967   else
31968     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31969     result=$?
31970     if test $result = 0; then
31971       ac_path_to_link=""
31972     else
31973       ac_path_to_link=" -L$ac_find_libraries"
31974     fi
31975   fi
31976
31977             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31978         else
31979                                                 save_CFLAGS=$CFLAGS
31980             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31981             save_LIBS="$LIBS"
31982             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31983
31984             cat >conftest.$ac_ext <<_ACEOF
31985 /* confdefs.h.  */
31986 _ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h.  */
31990
31991                     #include <Xm/Xm.h>
31992
31993 int
31994 main ()
31995 {
31996
31997                     int version;
31998                     version = xmUseVersion;
31999
32000   ;
32001   return 0;
32002 }
32003 _ACEOF
32004 rm -f conftest.$ac_objext conftest$ac_exeext
32005 if { (ac_try="$ac_link"
32006 case "(($ac_try" in
32007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008   *) ac_try_echo=$ac_try;;
32009 esac
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011   (eval "$ac_link") 2>conftest.er1
32012   ac_status=$?
32013   grep -v '^ *+' conftest.er1 >conftest.err
32014   rm -f conftest.er1
32015   cat conftest.err >&5
32016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017   (exit $ac_status); } && {
32018          test -z "$ac_c_werror_flag" ||
32019          test ! -s conftest.err
32020        } && test -s conftest$ac_exeext &&
32021        $as_test_x conftest$ac_exeext; then
32022
32023                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32024 echo "${ECHO_T}found in default search path" >&6; }
32025                     COMPILED_X_PROGRAM=1
32026
32027 else
32028   echo "$as_me: failed program was:" >&5
32029 sed 's/^/| /' conftest.$ac_ext >&5
32030
32031
32032                     { echo "$as_me:$LINENO: result: no" >&5
32033 echo "${ECHO_T}no" >&6; }
32034                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32035 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32036    { (exit 1); exit 1; }; }
32037
32038
32039 fi
32040
32041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32042       conftest$ac_exeext conftest.$ac_ext
32043
32044             CFLAGS=$save_CFLAGS
32045             LIBS="$save_LIBS"
32046         fi
32047
32048         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32049 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32050         libp_link=""
32051         libsm_ice_link=""
32052         libs_found=0
32053         for libp in "" " -lXp"; do
32054             if test "$libs_found" = 0; then
32055                 for libsm_ice in "" " -lSM -lICE"; do
32056                     if test "$libs_found" = 0; then
32057                         save_LIBS="$LIBS"
32058                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32059                         save_CFLAGS=$CFLAGS
32060                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32061
32062                         cat >conftest.$ac_ext <<_ACEOF
32063 /* confdefs.h.  */
32064 _ACEOF
32065 cat confdefs.h >>conftest.$ac_ext
32066 cat >>conftest.$ac_ext <<_ACEOF
32067 /* end confdefs.h.  */
32068
32069                                 #include <Xm/Xm.h>
32070                                 #include <Xm/List.h>
32071
32072 int
32073 main ()
32074 {
32075
32076                                 XmString string = NULL;
32077                                 Widget w = NULL;
32078                                 int position = 0;
32079                                 XmListAddItem(w, string, position);
32080
32081   ;
32082   return 0;
32083 }
32084 _ACEOF
32085 rm -f conftest.$ac_objext conftest$ac_exeext
32086 if { (ac_try="$ac_link"
32087 case "(($ac_try" in
32088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089   *) ac_try_echo=$ac_try;;
32090 esac
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092   (eval "$ac_link") 2>conftest.er1
32093   ac_status=$?
32094   grep -v '^ *+' conftest.er1 >conftest.err
32095   rm -f conftest.er1
32096   cat conftest.err >&5
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); } && {
32099          test -z "$ac_c_werror_flag" ||
32100          test ! -s conftest.err
32101        } && test -s conftest$ac_exeext &&
32102        $as_test_x conftest$ac_exeext; then
32103
32104                                 libp_link="$libp"
32105                                 libsm_ice_link="$libsm_ice"
32106                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32107 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32108                                 libs_found=1
32109
32110 else
32111   echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32113
32114
32115
32116 fi
32117
32118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32119       conftest$ac_exeext conftest.$ac_ext
32120
32121                         LIBS="$save_LIBS"
32122                         CFLAGS=$save_CFLAGS
32123                     fi
32124                 done
32125             fi
32126         done
32127
32128         if test "$libs_found" = 0; then
32129             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32130 echo "${ECHO_T}can't find the right libraries" >&6; }
32131             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32132 echo "$as_me: error: can't link a simple motif program" >&2;}
32133    { (exit 1); exit 1; }; }
32134         fi
32135
32136                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32137 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32138 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32139   echo $ECHO_N "(cached) $ECHO_C" >&6
32140 else
32141   ac_check_lib_save_LIBS=$LIBS
32142 LIBS="-lSgm  $LIBS"
32143 cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h.  */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h.  */
32149
32150 /* Override any GCC internal prototype to avoid an error.
32151    Use char because int might match the return type of a GCC
32152    builtin and then its argument prototype would still apply.  */
32153 #ifdef __cplusplus
32154 extern "C"
32155 #endif
32156 char SgCreateList ();
32157 int
32158 main ()
32159 {
32160 return SgCreateList ();
32161   ;
32162   return 0;
32163 }
32164 _ACEOF
32165 rm -f conftest.$ac_objext conftest$ac_exeext
32166 if { (ac_try="$ac_link"
32167 case "(($ac_try" in
32168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32169   *) ac_try_echo=$ac_try;;
32170 esac
32171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32172   (eval "$ac_link") 2>conftest.er1
32173   ac_status=$?
32174   grep -v '^ *+' conftest.er1 >conftest.err
32175   rm -f conftest.er1
32176   cat conftest.err >&5
32177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); } && {
32179          test -z "$ac_c_werror_flag" ||
32180          test ! -s conftest.err
32181        } && test -s conftest$ac_exeext &&
32182        $as_test_x conftest$ac_exeext; then
32183   ac_cv_lib_Sgm_SgCreateList=yes
32184 else
32185   echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32187
32188         ac_cv_lib_Sgm_SgCreateList=no
32189 fi
32190
32191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32192       conftest$ac_exeext conftest.$ac_ext
32193 LIBS=$ac_check_lib_save_LIBS
32194 fi
32195 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32196 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32197 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32198   libsgm_link=" -lSgm"
32199 fi
32200
32201
32202         save_CFLAGS=$CFLAGS
32203         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32204
32205         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32206 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32207 if test "${wx_cv_lib_motif2+set}" = set; then
32208   echo $ECHO_N "(cached) $ECHO_C" >&6
32209 else
32210   cat >conftest.$ac_ext <<_ACEOF
32211 /* confdefs.h.  */
32212 _ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h.  */
32216
32217                             #include <Xm/Xm.h>
32218
32219 int
32220 main ()
32221 {
32222
32223                             #if XmVersion < 2000
32224                             Not Motif 2
32225                             #endif
32226
32227   ;
32228   return 0;
32229 }
32230 _ACEOF
32231 rm -f conftest.$ac_objext
32232 if { (ac_try="$ac_compile"
32233 case "(($ac_try" in
32234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235   *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238   (eval "$ac_compile") 2>conftest.er1
32239   ac_status=$?
32240   grep -v '^ *+' conftest.er1 >conftest.err
32241   rm -f conftest.er1
32242   cat conftest.err >&5
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); } && {
32245          test -z "$ac_c_werror_flag" ||
32246          test ! -s conftest.err
32247        } && test -s conftest.$ac_objext; then
32248   wx_cv_lib_motif2="yes"
32249 else
32250   echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32252
32253         wx_cv_lib_motif2="no"
32254 fi
32255
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 fi
32258 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32259 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32260         if test "$wx_cv_lib_motif2" = "yes"; then
32261             cat >>confdefs.h <<\_ACEOF
32262 #define __WXMOTIF20__ 1
32263 _ACEOF
32264
32265         else
32266             cat >>confdefs.h <<\_ACEOF
32267 #define __WXMOTIF20__ 0
32268 _ACEOF
32269
32270         fi
32271
32272         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32273 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32274 if test "${wx_cv_lib_lesstif+set}" = set; then
32275   echo $ECHO_N "(cached) $ECHO_C" >&6
32276 else
32277   cat >conftest.$ac_ext <<_ACEOF
32278 /* confdefs.h.  */
32279 _ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h.  */
32283
32284                             #include <Xm/Xm.h>
32285
32286 int
32287 main ()
32288 {
32289
32290                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32291                             Not Lesstif
32292                             #endif
32293
32294   ;
32295   return 0;
32296 }
32297 _ACEOF
32298 rm -f conftest.$ac_objext
32299 if { (ac_try="$ac_compile"
32300 case "(($ac_try" in
32301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302   *) ac_try_echo=$ac_try;;
32303 esac
32304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305   (eval "$ac_compile") 2>conftest.er1
32306   ac_status=$?
32307   grep -v '^ *+' conftest.er1 >conftest.err
32308   rm -f conftest.er1
32309   cat conftest.err >&5
32310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311   (exit $ac_status); } && {
32312          test -z "$ac_c_werror_flag" ||
32313          test ! -s conftest.err
32314        } && test -s conftest.$ac_objext; then
32315   wx_cv_lib_lesstif="yes"
32316 else
32317   echo "$as_me: failed program was:" >&5
32318 sed 's/^/| /' conftest.$ac_ext >&5
32319
32320         wx_cv_lib_lesstif="no"
32321 fi
32322
32323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324
32325 fi
32326 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32327 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32328         if test "$wx_cv_lib_lesstif" = "yes"; then
32329             cat >>confdefs.h <<\_ACEOF
32330 #define __WXLESSTIF__ 1
32331 _ACEOF
32332
32333         else
32334             cat >>confdefs.h <<\_ACEOF
32335 #define __WXLESSTIF__ 0
32336 _ACEOF
32337
32338         fi
32339
32340         CFLAGS=$save_CFLAGS
32341
32342         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32343         TOOLKIT=MOTIF
32344         GUIDIST=MOTIF_DIST
32345     fi
32346
32347         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32348                 if test "$wxUSE_LIBXPM" = "sys"; then
32349             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32350 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32351
32352   ac_find_libraries=
32353   for ac_dir in $SEARCH_LIB;
32354   do
32355     for ac_extension in a so sl dylib dll.a; do
32356       if test -f "$ac_dir/libXpm.$ac_extension"; then
32357         ac_find_libraries=$ac_dir
32358         break 2
32359       fi
32360     done
32361   done
32362
32363             if test "$ac_find_libraries" != "" ; then
32364
32365     if test "$ac_find_libraries" = "default location"; then
32366     ac_path_to_link=""
32367   else
32368     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32369     result=$?
32370     if test $result = 0; then
32371       ac_path_to_link=""
32372     else
32373       ac_path_to_link=" -L$ac_find_libraries"
32374     fi
32375   fi
32376
32377                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32378                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32379 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32380
32381                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32382 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32383 if test "${wx_cv_x11_xpm_h+set}" = set; then
32384   echo $ECHO_N "(cached) $ECHO_C" >&6
32385 else
32386
32387                         save_CFLAGS=$CFLAGS
32388                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32389
32390                         cat >conftest.$ac_ext <<_ACEOF
32391 /* confdefs.h.  */
32392 _ACEOF
32393 cat confdefs.h >>conftest.$ac_ext
32394 cat >>conftest.$ac_ext <<_ACEOF
32395 /* end confdefs.h.  */
32396
32397                                 #include <X11/xpm.h>
32398
32399 int
32400 main ()
32401 {
32402
32403                                 int version;
32404                                 version = XpmLibraryVersion();
32405
32406   ;
32407   return 0;
32408 }
32409 _ACEOF
32410 rm -f conftest.$ac_objext
32411 if { (ac_try="$ac_compile"
32412 case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_compile") 2>conftest.er1
32418   ac_status=$?
32419   grep -v '^ *+' conftest.er1 >conftest.err
32420   rm -f conftest.er1
32421   cat conftest.err >&5
32422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423   (exit $ac_status); } && {
32424          test -z "$ac_c_werror_flag" ||
32425          test ! -s conftest.err
32426        } && test -s conftest.$ac_objext; then
32427   wx_cv_x11_xpm_h=yes
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432         wx_cv_x11_xpm_h=no
32433
32434 fi
32435
32436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32437
32438                         CFLAGS=$save_CFLAGS
32439
32440
32441 fi
32442 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32443 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32444
32445                 if test $wx_cv_x11_xpm_h = "yes"; then
32446                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32447                     cat >>confdefs.h <<\_ACEOF
32448 #define wxHAVE_LIB_XPM 1
32449 _ACEOF
32450
32451                 else
32452                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32453 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32454                 fi
32455             fi
32456
32457         fi
32458
32459                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32460 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32462   echo $ECHO_N "(cached) $ECHO_C" >&6
32463 else
32464   ac_check_lib_save_LIBS=$LIBS
32465 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32466 cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472
32473 /* Override any GCC internal prototype to avoid an error.
32474    Use char because int might match the return type of a GCC
32475    builtin and then its argument prototype would still apply.  */
32476 #ifdef __cplusplus
32477 extern "C"
32478 #endif
32479 char XShapeQueryExtension ();
32480 int
32481 main ()
32482 {
32483 return XShapeQueryExtension ();
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 rm -f conftest.$ac_objext conftest$ac_exeext
32489 if { (ac_try="$ac_link"
32490 case "(($ac_try" in
32491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492   *) ac_try_echo=$ac_try;;
32493 esac
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495   (eval "$ac_link") 2>conftest.er1
32496   ac_status=$?
32497   grep -v '^ *+' conftest.er1 >conftest.err
32498   rm -f conftest.er1
32499   cat conftest.err >&5
32500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501   (exit $ac_status); } && {
32502          test -z "$ac_c_werror_flag" ||
32503          test ! -s conftest.err
32504        } && test -s conftest$ac_exeext &&
32505        $as_test_x conftest$ac_exeext; then
32506   ac_cv_lib_Xext_XShapeQueryExtension=yes
32507 else
32508   echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32510
32511         ac_cv_lib_Xext_XShapeQueryExtension=no
32512 fi
32513
32514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32515       conftest$ac_exeext conftest.$ac_ext
32516 LIBS=$ac_check_lib_save_LIBS
32517 fi
32518 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32519 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32520 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32521
32522                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32523                       wxHAVE_XEXT_LIB=1
32524
32525 fi
32526
32527
32528         if test "$wxHAVE_XEXT_LIB" = 1; then
32529             save_CFLAGS="$CFLAGS"
32530             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32531
32532             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32533 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32534             cat >conftest.$ac_ext <<_ACEOF
32535 /* confdefs.h.  */
32536 _ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h.  */
32540
32541                             #include <X11/Xlib.h>
32542                             #include <X11/extensions/shape.h>
32543
32544 int
32545 main ()
32546 {
32547
32548                             int dummy1, dummy2;
32549                             XShapeQueryExtension((Display*)NULL,
32550                                                  (int*)NULL, (int*)NULL);
32551
32552   ;
32553   return 0;
32554 }
32555 _ACEOF
32556 rm -f conftest.$ac_objext
32557 if { (ac_try="$ac_compile"
32558 case "(($ac_try" in
32559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560   *) ac_try_echo=$ac_try;;
32561 esac
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563   (eval "$ac_compile") 2>conftest.er1
32564   ac_status=$?
32565   grep -v '^ *+' conftest.er1 >conftest.err
32566   rm -f conftest.er1
32567   cat conftest.err >&5
32568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); } && {
32570          test -z "$ac_c_werror_flag" ||
32571          test ! -s conftest.err
32572        } && test -s conftest.$ac_objext; then
32573
32574                             cat >>confdefs.h <<\_ACEOF
32575 #define HAVE_XSHAPE 1
32576 _ACEOF
32577
32578                             { echo "$as_me:$LINENO: result: found" >&5
32579 echo "${ECHO_T}found" >&6; }
32580
32581 else
32582   echo "$as_me: failed program was:" >&5
32583 sed 's/^/| /' conftest.$ac_ext >&5
32584
32585
32586                             { echo "$as_me:$LINENO: result: not found" >&5
32587 echo "${ECHO_T}not found" >&6; }
32588
32589 fi
32590
32591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32592             CFLAGS="$save_CFLAGS"
32593
32594         fi
32595     fi
32596
32597     if test "$wxUSE_OSX_CARBON" = 1; then
32598         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32599 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32600         if test "$GCC" = yes; then
32601             { echo "$as_me:$LINENO: result: gcc" >&5
32602 echo "${ECHO_T}gcc" >&6; }
32603             CPPFLAGS_PASCAL="-fpascal-strings"
32604         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32605             { echo "$as_me:$LINENO: result: xlc" >&5
32606 echo "${ECHO_T}xlc" >&6; }
32607             CPPFLAGS_PASCAL="-qmacpstr"
32608         else
32609             { echo "$as_me:$LINENO: result: none" >&5
32610 echo "${ECHO_T}none" >&6; }
32611         fi
32612
32613         if test "x$wxUSE_UNIX" = "xyes"; then
32614             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32615         else
32616                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32617         fi
32618
32619         TOOLKIT=OSX_CARBON
32620                 GUIDIST=OSX_CARBON_DIST
32621                         WXBASEPORT="_carbon"
32622     fi
32623
32624     if test "$wxUSE_OSX_COCOA" = 1; then
32625         TOOLKIT=OSX_COCOA
32626         GUIDIST=OSX_COCOA_DIST
32627     fi
32628
32629     if test "$wxUSE_COCOA" = 1; then
32630         TOOLKIT=COCOA
32631         GUIDIST=COCOA_DIST
32632     fi
32633
32634     if test "$wxUSE_PM" = 1; then
32635         TOOLKIT=PM
32636         GUIDIST=PM_DIST
32637         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32638 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32639 if test "${wx_cv_spbcdata+set}" = set; then
32640   echo $ECHO_N "(cached) $ECHO_C" >&6
32641 else
32642
32643                 cat >conftest.$ac_ext <<_ACEOF
32644 /* confdefs.h.  */
32645 _ACEOF
32646 cat confdefs.h >>conftest.$ac_ext
32647 cat >>conftest.$ac_ext <<_ACEOF
32648 /* end confdefs.h.  */
32649
32650                         #define INCL_PM
32651                         #include <os2.h>
32652
32653 int
32654 main ()
32655 {
32656
32657                         SPBCDATA test;
32658
32659   ;
32660   return 0;
32661 }
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   wx_cv_spbcdata=yes
32681 else
32682   echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32684
32685         wx_cv_spbcdata=no
32686
32687 fi
32688
32689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32690
32691
32692 fi
32693 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32694 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32695
32696         if test $wx_cv_spbcdata = "yes"; then
32697             cat >>confdefs.h <<\_ACEOF
32698 #define HAVE_SPBCDATA 1
32699 _ACEOF
32700
32701         fi
32702     fi
32703
32704         if test "$TOOLKIT" = "PM" ; then
32705         TOOLKIT_DIR="os2"
32706     else
32707         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32708     fi
32709
32710     if test "$wxUSE_UNIVERSAL" = "yes"; then
32711         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32712         WIDGET_SET=univ
32713     fi
32714
32715         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32716     DISTDIR="wx\$(TOOLKIT)"
32717 else
32718     USE_GUI=0
32719
32720             TOOLKIT_DIR="base"
32721
32722         if test "$USE_WIN32" = 1 ; then
32723                         TOOLKIT="MSW"
32724     fi
32725
32726         GUIDIST="BASE_DIST"
32727     DISTDIR="wxBase"
32728 fi
32729
32730
32731
32732 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32733     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32734         wxUSE_UNICODE_UTF8=yes
32735     elif test "$USE_OS2" = 1 ; then
32736                                 wxUSE_UNICODE_UTF8=yes
32737     else
32738         wxUSE_UNICODE_UTF8=no
32739     fi
32740 fi
32741
32742
32743 if test "$wxUSE_GUI" = "yes"; then
32744     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32745
32746 for ac_header in X11/Xlib.h
32747 do
32748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   cat >conftest.$ac_ext <<_ACEOF
32755 /* confdefs.h.  */
32756 _ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h.  */
32760
32761
32762 #include <$ac_header>
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (ac_try="$ac_compile"
32766 case "(($ac_try" in
32767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768   *) ac_try_echo=$ac_try;;
32769 esac
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771   (eval "$ac_compile") 2>conftest.er1
32772   ac_status=$?
32773   grep -v '^ *+' conftest.er1 >conftest.err
32774   rm -f conftest.er1
32775   cat conftest.err >&5
32776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777   (exit $ac_status); } && {
32778          test -z "$ac_c_werror_flag" ||
32779          test ! -s conftest.err
32780        } && test -s conftest.$ac_objext; then
32781   eval "$as_ac_Header=yes"
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786         eval "$as_ac_Header=no"
32787 fi
32788
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 fi
32791 ac_res=`eval echo '${'$as_ac_Header'}'`
32792                { echo "$as_me:$LINENO: result: $ac_res" >&5
32793 echo "${ECHO_T}$ac_res" >&6; }
32794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32795   cat >>confdefs.h <<_ACEOF
32796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32797 _ACEOF
32798
32799 fi
32800
32801 done
32802
32803
32804 for ac_header in X11/XKBlib.h
32805 do
32806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32810   echo $ECHO_N "(cached) $ECHO_C" >&6
32811 else
32812   cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818
32819                           #if HAVE_X11_XLIB_H
32820                             #include <X11/Xlib.h>
32821                           #endif
32822
32823
32824 #include <$ac_header>
32825 _ACEOF
32826 rm -f conftest.$ac_objext
32827 if { (ac_try="$ac_compile"
32828 case "(($ac_try" in
32829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32830   *) ac_try_echo=$ac_try;;
32831 esac
32832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32833   (eval "$ac_compile") 2>conftest.er1
32834   ac_status=$?
32835   grep -v '^ *+' conftest.er1 >conftest.err
32836   rm -f conftest.er1
32837   cat conftest.err >&5
32838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839   (exit $ac_status); } && {
32840          test -z "$ac_c_werror_flag" ||
32841          test ! -s conftest.err
32842        } && test -s conftest.$ac_objext; then
32843   eval "$as_ac_Header=yes"
32844 else
32845   echo "$as_me: failed program was:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32847
32848         eval "$as_ac_Header=no"
32849 fi
32850
32851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32852 fi
32853 ac_res=`eval echo '${'$as_ac_Header'}'`
32854                { echo "$as_me:$LINENO: result: $ac_res" >&5
32855 echo "${ECHO_T}$ac_res" >&6; }
32856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32857   cat >>confdefs.h <<_ACEOF
32858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32859 _ACEOF
32860
32861 fi
32862
32863 done
32864
32865     fi
32866 fi
32867
32868
32869
32870 if test "$wxUSE_DISPLAY" = "yes"; then
32871     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32872         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32873 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32874
32875   ac_find_libraries=
32876   for ac_dir in $SEARCH_LIB;
32877   do
32878     for ac_extension in a so sl dylib dll.a; do
32879       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32880         ac_find_libraries=$ac_dir
32881         break 2
32882       fi
32883     done
32884   done
32885
32886         if test "$ac_find_libraries" != "" ; then
32887
32888     if test "$ac_find_libraries" = "default location"; then
32889     ac_path_to_link=""
32890   else
32891     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32892     result=$?
32893     if test $result = 0; then
32894       ac_path_to_link=""
32895     else
32896       ac_path_to_link=" -L$ac_find_libraries"
32897     fi
32898   fi
32899
32900             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32901                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32902             fi
32903             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32904             { echo "$as_me:$LINENO: result: yes" >&5
32905 echo "${ECHO_T}yes" >&6; }
32906
32907             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32908 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32909
32910   ac_find_libraries=
32911   for ac_dir in $SEARCH_LIB;
32912   do
32913     for ac_extension in a so sl dylib dll.a; do
32914       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32915         ac_find_libraries=$ac_dir
32916         break 2
32917       fi
32918     done
32919   done
32920
32921             if test "$ac_find_libraries" != "" ; then
32922                 { echo "$as_me:$LINENO: result: yes" >&5
32923 echo "${ECHO_T}yes" >&6; }
32924
32925 for ac_header in X11/extensions/xf86vmode.h
32926 do
32927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32931   echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933   cat >conftest.$ac_ext <<_ACEOF
32934 /* confdefs.h.  */
32935 _ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h.  */
32939
32940                                       #if HAVE_X11_XLIB_H
32941                                         #include <X11/Xlib.h>
32942                                       #endif
32943
32944
32945 #include <$ac_header>
32946 _ACEOF
32947 rm -f conftest.$ac_objext
32948 if { (ac_try="$ac_compile"
32949 case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954   (eval "$ac_compile") 2>conftest.er1
32955   ac_status=$?
32956   grep -v '^ *+' conftest.er1 >conftest.err
32957   rm -f conftest.er1
32958   cat conftest.err >&5
32959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960   (exit $ac_status); } && {
32961          test -z "$ac_c_werror_flag" ||
32962          test ! -s conftest.err
32963        } && test -s conftest.$ac_objext; then
32964   eval "$as_ac_Header=yes"
32965 else
32966   echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32968
32969         eval "$as_ac_Header=no"
32970 fi
32971
32972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32973 fi
32974 ac_res=`eval echo '${'$as_ac_Header'}'`
32975                { echo "$as_me:$LINENO: result: $ac_res" >&5
32976 echo "${ECHO_T}$ac_res" >&6; }
32977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32978   cat >>confdefs.h <<_ACEOF
32979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32980 _ACEOF
32981
32982                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32983
32984 fi
32985
32986 done
32987
32988             else
32989                 { echo "$as_me:$LINENO: result: no" >&5
32990 echo "${ECHO_T}no" >&6; }
32991             fi
32992
32993         else
32994             { echo "$as_me:$LINENO: result: no" >&5
32995 echo "${ECHO_T}no" >&6; }
32996             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32997 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32998             wxUSE_DISPLAY="no"
32999         fi
33000     elif test "$wxUSE_MSW" = 1; then
33001         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33002 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33003 if test "${ac_cv_header_ddraw_h+set}" = set; then
33004   echo $ECHO_N "(cached) $ECHO_C" >&6
33005 else
33006   cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 #include <windows.h>
33013
33014 #include <ddraw.h>
33015 _ACEOF
33016 rm -f conftest.$ac_objext
33017 if { (ac_try="$ac_compile"
33018 case "(($ac_try" in
33019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020   *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023   (eval "$ac_compile") 2>conftest.er1
33024   ac_status=$?
33025   grep -v '^ *+' conftest.er1 >conftest.err
33026   rm -f conftest.er1
33027   cat conftest.err >&5
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); } && {
33030          test -z "$ac_c_werror_flag" ||
33031          test ! -s conftest.err
33032        } && test -s conftest.$ac_objext; then
33033   ac_cv_header_ddraw_h=yes
33034 else
33035   echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33037
33038         ac_cv_header_ddraw_h=no
33039 fi
33040
33041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33042 fi
33043 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33044 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33045
33046
33047     fi
33048 fi
33049
33050 if test "$wxUSE_DETECT_SM" = "yes"; then
33051     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33052         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33053 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33054
33055   ac_find_libraries=
33056   for ac_dir in $SEARCH_LIB;
33057   do
33058     for ac_extension in a so sl dylib dll.a; do
33059       if test -f "$ac_dir/libSM.$ac_extension"; then
33060         ac_find_libraries=$ac_dir
33061         break 2
33062       fi
33063     done
33064   done
33065
33066         if test "$ac_find_libraries" != "" ; then
33067
33068     if test "$ac_find_libraries" = "default location"; then
33069     ac_path_to_link=""
33070   else
33071     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33072     result=$?
33073     if test $result = 0; then
33074       ac_path_to_link=""
33075     else
33076       ac_path_to_link=" -L$ac_find_libraries"
33077     fi
33078   fi
33079
33080             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33081                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33082             fi
33083             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33084             { echo "$as_me:$LINENO: result: yes" >&5
33085 echo "${ECHO_T}yes" >&6; }
33086         else
33087             { echo "$as_me:$LINENO: result: no" >&5
33088 echo "${ECHO_T}no" >&6; }
33089             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33090 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33091             wxUSE_DETECT_SM="no"
33092         fi
33093     else
33094         wxUSE_DETECT_SM="no"
33095     fi
33096 fi
33097
33098
33099
33100 USE_OPENGL=0
33101 if test "$wxUSE_OPENGL" = "yes"; then
33102     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
33103         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33104 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33105         wxUSE_OPENGL="no"
33106     elif test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33107         OPENGL_LIBS="-framework OpenGL -framework AGL"
33108     elif test "$wxUSE_MSW" = 1; then
33109         OPENGL_LIBS="-lopengl32 -lglu32"
33110     else
33111                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33112 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33113
33114 ac_find_includes=
33115 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33116   do
33117     if test -f "$ac_dir/GL/gl.h"; then
33118       ac_find_includes=$ac_dir
33119       break
33120     fi
33121   done
33122
33123         if test "$ac_find_includes" != "" ; then
33124             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33125 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33126
33127     if test "x$ac_find_includes" = "x/usr/include"; then
33128     ac_path_to_include=""
33129   else
33130     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33131     result=$?
33132     if test $result = 0; then
33133       ac_path_to_include=""
33134     else
33135       ac_path_to_include=" -I$ac_find_includes"
33136     fi
33137   fi
33138
33139             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33140         else
33141             { echo "$as_me:$LINENO: result: not found" >&5
33142 echo "${ECHO_T}not found" >&6; }
33143         fi
33144
33145         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33146 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33147 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 else
33150   cat >conftest.$ac_ext <<_ACEOF
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156
33157
33158 #include <GL/gl.h>
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (ac_try="$ac_compile"
33162 case "(($ac_try" in
33163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164   *) ac_try_echo=$ac_try;;
33165 esac
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167   (eval "$ac_compile") 2>conftest.er1
33168   ac_status=$?
33169   grep -v '^ *+' conftest.er1 >conftest.err
33170   rm -f conftest.er1
33171   cat conftest.err >&5
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); } && {
33174          test -z "$ac_c_werror_flag" ||
33175          test ! -s conftest.err
33176        } && test -s conftest.$ac_objext; then
33177   ac_cv_header_GL_gl_h=yes
33178 else
33179   echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33181
33182         ac_cv_header_GL_gl_h=no
33183 fi
33184
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33186 fi
33187 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33188 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33189 if test $ac_cv_header_GL_gl_h = yes; then
33190
33191             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33192 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33193 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33194   echo $ECHO_N "(cached) $ECHO_C" >&6
33195 else
33196   cat >conftest.$ac_ext <<_ACEOF
33197 /* confdefs.h.  */
33198 _ACEOF
33199 cat confdefs.h >>conftest.$ac_ext
33200 cat >>conftest.$ac_ext <<_ACEOF
33201 /* end confdefs.h.  */
33202
33203
33204 #include <GL/glu.h>
33205 _ACEOF
33206 rm -f conftest.$ac_objext
33207 if { (ac_try="$ac_compile"
33208 case "(($ac_try" in
33209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210   *) ac_try_echo=$ac_try;;
33211 esac
33212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33213   (eval "$ac_compile") 2>conftest.er1
33214   ac_status=$?
33215   grep -v '^ *+' conftest.er1 >conftest.err
33216   rm -f conftest.er1
33217   cat conftest.err >&5
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); } && {
33220          test -z "$ac_c_werror_flag" ||
33221          test ! -s conftest.err
33222        } && test -s conftest.$ac_objext; then
33223   ac_cv_header_GL_glu_h=yes
33224 else
33225   echo "$as_me: failed program was:" >&5
33226 sed 's/^/| /' conftest.$ac_ext >&5
33227
33228         ac_cv_header_GL_glu_h=no
33229 fi
33230
33231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 fi
33233 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33234 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33235 if test $ac_cv_header_GL_glu_h = yes; then
33236
33237                 found_gl=0
33238
33239                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33240 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33241
33242   ac_find_libraries=
33243   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33244   do
33245     for ac_extension in a so sl dylib dll.a; do
33246       if test -f "$ac_dir/libGL.$ac_extension"; then
33247         ac_find_libraries=$ac_dir
33248         break 2
33249       fi
33250     done
33251   done
33252
33253                 if test "$ac_find_libraries" != "" ; then
33254                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33255 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33256
33257
33258     if test "$ac_find_libraries" = "default location"; then
33259     ac_path_to_link=""
33260   else
33261     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33262     result=$?
33263     if test $result = 0; then
33264       ac_path_to_link=""
33265     else
33266       ac_path_to_link=" -L$ac_find_libraries"
33267     fi
33268   fi
33269
33270                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33271                         LDFLAGS_GL="$ac_path_to_link"
33272                     fi
33273
33274                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33275 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33276
33277   ac_find_libraries=
33278   for ac_dir in $SEARCH_LIB;
33279   do
33280     for ac_extension in a so sl dylib dll.a; do
33281       if test -f "$ac_dir/libGLU.$ac_extension"; then
33282         ac_find_libraries=$ac_dir
33283         break 2
33284       fi
33285     done
33286   done
33287
33288                     if test "$ac_find_libraries" != "" ; then
33289
33290     if test "$ac_find_libraries" = "default location"; then
33291     ac_path_to_link=""
33292   else
33293     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33294     result=$?
33295     if test $result = 0; then
33296       ac_path_to_link=""
33297     else
33298       ac_path_to_link=" -L$ac_find_libraries"
33299     fi
33300   fi
33301
33302                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33303                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33304                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33305                         fi
33306
33307                         found_gl=1
33308                         OPENGL_LIBS="-lGL -lGLU"
33309                         { echo "$as_me:$LINENO: result: yes" >&5
33310 echo "${ECHO_T}yes" >&6; }
33311                     else
33312                         { echo "$as_me:$LINENO: result: no" >&5
33313 echo "${ECHO_T}no" >&6; }
33314                     fi
33315                 else
33316                     { echo "$as_me:$LINENO: result: no" >&5
33317 echo "${ECHO_T}no" >&6; }
33318                 fi
33319
33320                 if test "$found_gl" != 1; then
33321                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33322 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33323
33324   ac_find_libraries=
33325   for ac_dir in $SEARCH_LIB;
33326   do
33327     for ac_extension in a so sl dylib dll.a; do
33328       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33329         ac_find_libraries=$ac_dir
33330         break 2
33331       fi
33332     done
33333   done
33334
33335                     if test "$ac_find_libraries" != "" ; then
33336
33337     if test "$ac_find_libraries" = "default location"; then
33338     ac_path_to_link=""
33339   else
33340     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33341     result=$?
33342     if test $result = 0; then
33343       ac_path_to_link=""
33344     else
33345       ac_path_to_link=" -L$ac_find_libraries"
33346     fi
33347   fi
33348
33349                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33350                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33351                         { echo "$as_me:$LINENO: result: yes" >&5
33352 echo "${ECHO_T}yes" >&6; }
33353                     else
33354                         { echo "$as_me:$LINENO: result: no" >&5
33355 echo "${ECHO_T}no" >&6; }
33356                     fi
33357                 fi
33358
33359 fi
33360
33361
33362
33363 fi
33364
33365
33366
33367         if test "x$OPENGL_LIBS" = "x"; then
33368                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33369 echo "$as_me: error: OpenGL libraries not available" >&2;}
33370    { (exit 1); exit 1; }; }
33371         fi
33372     fi
33373
33374     if test "$wxUSE_OPENGL" = "yes"; then
33375         USE_OPENGL=1
33376         cat >>confdefs.h <<\_ACEOF
33377 #define wxUSE_OPENGL 1
33378 _ACEOF
33379
33380         cat >>confdefs.h <<\_ACEOF
33381 #define wxUSE_GLCANVAS 1
33382 _ACEOF
33383
33384         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33385     fi
33386 fi
33387
33388
33389 if test -n "$TOOLKIT" ; then
33390     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33391 fi
33392
33393
33394
33395 if test "$wxUSE_SHARED" = "yes"; then
33396     case "${host}" in
33397       *-pc-msdosdjgpp )
33398                 wxUSE_SHARED=no
33399         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33400 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33401       ;;
33402     esac
33403 fi
33404
33405 if test "$wxUSE_SHARED" = "yes"; then
33406
33407
33408     case "${host}" in
33409         *-*-cygwin* | *-*-mingw* )
33410                                                                                                 wx_cv_version_script=no
33411             ;;
33412
33413         *)
33414             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33415 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33416 if test "${wx_cv_version_script+set}" = set; then
33417   echo $ECHO_N "(cached) $ECHO_C" >&6
33418 else
33419
33420                 echo "VER_1 { *; };" >conftest.sym
33421                 echo "int main() { return 0; }" >conftest.cpp
33422
33423                 if { ac_try='
33424                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33425                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427   (eval $ac_try) 2>&5
33428   ac_status=$?
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); }; } ; then
33431                   if test -s conftest.stderr ; then
33432                       wx_cv_version_script=no
33433                   else
33434                       wx_cv_version_script=yes
33435                   fi
33436                 else
33437                   wx_cv_version_script=no
33438                 fi
33439
33440                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33441                 then
33442                   echo "struct B { virtual ~B() { } }; \
33443                         struct D : public B { }; \
33444                         void F() { D d; }" > conftest.cpp
33445
33446                   if { ac_try='
33447                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33448                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450   (eval $ac_try) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; } &&
33454                      { ac_try='
33455                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33456                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458   (eval $ac_try) 2>&5
33459   ac_status=$?
33460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461   (exit $ac_status); }; }
33462                   then
33463                     if { ac_try='
33464                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33465                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33467   (eval $ac_try) 2>&5
33468   ac_status=$?
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); }; }
33471                     then
33472                       wx_cv_version_script=yes
33473                     else
33474                       wx_cv_version_script=no
33475                     fi
33476                   fi
33477                 fi
33478
33479                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33480                 rm -f conftest1.output conftest2.output conftest3.output
33481
33482 fi
33483 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33484 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33485
33486             if test $wx_cv_version_script = yes ; then
33487                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33488             fi
33489             ;;
33490     esac
33491
33492
33493             if test "$wxUSE_VISIBILITY" != "no"; then
33494
33495
33496   if test -n "$GCC"; then
33497     CFLAGS_VISIBILITY="-fvisibility=hidden"
33498     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33499     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33500 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33501     if test "${wx_cv_cc_visibility+set}" = set; then
33502   echo $ECHO_N "(cached) $ECHO_C" >&6
33503 else
33504
33505       wx_save_CXXFLAGS="$CXXFLAGS"
33506       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33507       ac_ext=cpp
33508 ac_cpp='$CXXCPP $CPPFLAGS'
33509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33512
33513       cat >conftest.$ac_ext <<_ACEOF
33514 /* confdefs.h.  */
33515 _ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h.  */
33519
33520          /* we need gcc >= 4.0, older versions with visibility support
33521             didn't have class visibility: */
33522          #if defined(__GNUC__) && __GNUC__ < 4
33523          error this gcc is too old;
33524          #endif
33525
33526          /* visibility only makes sense for ELF shared libs: */
33527          #if !defined(__ELF__) && !defined(__APPLE__)
33528          error this platform has no visibility;
33529          #endif
33530
33531          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33532          extern __attribute__((__visibility__("default"))) int exportedvar;
33533          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33534          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33535          class __attribute__((__visibility__("default"))) Foo {
33536            Foo() {}
33537          };
33538
33539 int
33540 main ()
33541 {
33542
33543   ;
33544   return 0;
33545 }
33546 _ACEOF
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551   *) ac_try_echo=$ac_try;;
33552 esac
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554   (eval "$ac_compile") 2>conftest.er1
33555   ac_status=$?
33556   grep -v '^ *+' conftest.er1 >conftest.err
33557   rm -f conftest.er1
33558   cat conftest.err >&5
33559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560   (exit $ac_status); } && {
33561          test -z "$ac_cxx_werror_flag" ||
33562          test ! -s conftest.err
33563        } && test -s conftest.$ac_objext; then
33564   wx_cv_cc_visibility=yes
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569         wx_cv_cc_visibility=no
33570 fi
33571
33572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33573       ac_ext=c
33574 ac_cpp='$CPP $CPPFLAGS'
33575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33578
33579       CXXFLAGS="$wx_save_CXXFLAGS"
33580 fi
33581
33582     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33583 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33584     if test $wx_cv_cc_visibility = yes; then
33585                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33586 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33587       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33588   echo $ECHO_N "(cached) $ECHO_C" >&6
33589 else
33590
33591         wx_save_CXXFLAGS="$CXXFLAGS"
33592         wx_save_LDFLAGS="$LDFLAGS"
33593         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33594         LDFLAGS="$LDFLAGS -shared -fPIC"
33595         ac_ext=cpp
33596 ac_cpp='$CXXCPP $CPPFLAGS'
33597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33600
33601         cat >conftest.$ac_ext <<_ACEOF
33602 /* confdefs.h.  */
33603 _ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h.  */
33607
33608             #include <string>
33609
33610 int
33611 main ()
33612 {
33613
33614             std::string s("hello");
33615             return s.length();
33616
33617   ;
33618   return 0;
33619 }
33620 _ACEOF
33621 rm -f conftest.$ac_objext conftest$ac_exeext
33622 if { (ac_try="$ac_link"
33623 case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_link") 2>conftest.er1
33629   ac_status=$?
33630   grep -v '^ *+' conftest.er1 >conftest.err
33631   rm -f conftest.er1
33632   cat conftest.err >&5
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); } && {
33635          test -z "$ac_cxx_werror_flag" ||
33636          test ! -s conftest.err
33637        } && test -s conftest$ac_exeext &&
33638        $as_test_x conftest$ac_exeext; then
33639   wx_cv_cc_broken_libstdcxx_visibility=no
33640 else
33641   echo "$as_me: failed program was:" >&5
33642 sed 's/^/| /' conftest.$ac_ext >&5
33643
33644         wx_cv_cc_broken_libstdcxx_visibility=yes
33645 fi
33646
33647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33648       conftest$ac_exeext conftest.$ac_ext
33649         ac_ext=c
33650 ac_cpp='$CPP $CPPFLAGS'
33651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33654
33655         CXXFLAGS="$wx_save_CXXFLAGS"
33656         LDFLAGS="$wx_save_LDFLAGS"
33657 fi
33658
33659       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33660 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33661
33662       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33663         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33664 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33665         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33666   echo $ECHO_N "(cached) $ECHO_C" >&6
33667 else
33668
33669           ac_ext=cpp
33670 ac_cpp='$CXXCPP $CPPFLAGS'
33671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33674
33675           cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681
33682               #pragma GCC visibility push(default)
33683               #include <string>
33684               #pragma GCC visibility pop
33685
33686 int
33687 main ()
33688 {
33689
33690               std::string s("hello");
33691               return s.length();
33692
33693   ;
33694   return 0;
33695 }
33696 _ACEOF
33697 rm -f conftest.$ac_objext conftest$ac_exeext
33698 if { (ac_try="$ac_link"
33699 case "(($ac_try" in
33700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33701   *) ac_try_echo=$ac_try;;
33702 esac
33703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33704   (eval "$ac_link") 2>conftest.er1
33705   ac_status=$?
33706   grep -v '^ *+' conftest.er1 >conftest.err
33707   rm -f conftest.er1
33708   cat conftest.err >&5
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); } && {
33711          test -z "$ac_cxx_werror_flag" ||
33712          test ! -s conftest.err
33713        } && test -s conftest$ac_exeext &&
33714        $as_test_x conftest$ac_exeext; then
33715   wx_cv_cc_visibility_workaround=no
33716 else
33717   echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33719
33720         wx_cv_cc_visibility_workaround=yes
33721 fi
33722
33723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33724       conftest$ac_exeext conftest.$ac_ext
33725           ac_ext=c
33726 ac_cpp='$CPP $CPPFLAGS'
33727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33730
33731
33732 fi
33733
33734         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33735 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33736
33737         if test $wx_cv_cc_visibility_workaround = no; then
33738                     wx_cv_cc_visibility=no
33739         fi
33740       fi
33741     fi
33742
33743     if test $wx_cv_cc_visibility = yes; then
33744       cat >>confdefs.h <<\_ACEOF
33745 #define HAVE_VISIBILITY 1
33746 _ACEOF
33747
33748       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33749         cat >>confdefs.h <<\_ACEOF
33750 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33751 _ACEOF
33752
33753       fi
33754     else
33755       CFLAGS_VISIBILITY=""
33756       CXXFLAGS_VISIBILITY=""
33757     fi
33758
33759
33760   fi
33761
33762     fi
33763
33764         if test "x$SUNCXX" = xyes; then
33765         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33766         WXCONFIG_RPATH="-R\$libdir"
33767     else
33768     case "${host}" in
33769       *-*-linux* | *-*-gnu* )
33770         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33771         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33772         ;;
33773
33774       *-*-solaris2* )
33775
33776                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33777
33778                         saveLdflags="$LDFLAGS"
33779         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33780         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33781 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33782         cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h.  */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h.  */
33788
33789 int
33790 main ()
33791 {
33792
33793   ;
33794   return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (ac_try="$ac_link"
33799 case "(($ac_try" in
33800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801   *) ac_try_echo=$ac_try;;
33802 esac
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804   (eval "$ac_link") 2>conftest.er1
33805   ac_status=$?
33806   grep -v '^ *+' conftest.er1 >conftest.err
33807   rm -f conftest.er1
33808   cat conftest.err >&5
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); } && {
33811          test -z "$ac_c_werror_flag" ||
33812          test ! -s conftest.err
33813        } && test -s conftest$ac_exeext &&
33814        $as_test_x conftest$ac_exeext; then
33815
33816                 { echo "$as_me:$LINENO: result: yes" >&5
33817 echo "${ECHO_T}yes" >&6; }
33818                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33819                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33820
33821 else
33822   echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33824
33825
33826                 { echo "$as_me:$LINENO: result: no" >&5
33827 echo "${ECHO_T}no" >&6; }
33828                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33829 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33830                 LDFLAGS="$saveLdflags -Wl,-R,/"
33831                 cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h.  */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h.  */
33837
33838 int
33839 main ()
33840 {
33841
33842   ;
33843   return 0;
33844 }
33845 _ACEOF
33846 rm -f conftest.$ac_objext conftest$ac_exeext
33847 if { (ac_try="$ac_link"
33848 case "(($ac_try" in
33849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850   *) ac_try_echo=$ac_try;;
33851 esac
33852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853   (eval "$ac_link") 2>conftest.er1
33854   ac_status=$?
33855   grep -v '^ *+' conftest.er1 >conftest.err
33856   rm -f conftest.er1
33857   cat conftest.err >&5
33858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859   (exit $ac_status); } && {
33860          test -z "$ac_c_werror_flag" ||
33861          test ! -s conftest.err
33862        } && test -s conftest$ac_exeext &&
33863        $as_test_x conftest$ac_exeext; then
33864
33865                         { echo "$as_me:$LINENO: result: yes" >&5
33866 echo "${ECHO_T}yes" >&6; }
33867                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33868                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33869
33870 else
33871   echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874
33875                         { echo "$as_me:$LINENO: result: no" >&5
33876 echo "${ECHO_T}no" >&6; }
33877
33878 fi
33879
33880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33881       conftest$ac_exeext conftest.$ac_ext
33882
33883 fi
33884
33885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33886       conftest$ac_exeext conftest.$ac_ext
33887         LDFLAGS="$saveLdflags"
33888       ;;
33889
33890       *-*-darwin* )
33891         install_name_tool=`which install_name_tool`
33892         if test "$install_name_tool" -a -x "$install_name_tool"; then
33893             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33894             cat <<EOF >change-install-names
33895 #!/bin/sh
33896 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33897 inst_cmd="install_name_tool "
33898 for i in \${libnames} ; do
33899     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33900 done
33901 \${inst_cmd} \${3}
33902 EOF
33903             chmod +x change-install-names
33904         fi
33905       ;;
33906
33907       *-*-cygwin* | *-*-mingw32* )
33908         ;;
33909
33910       *-*-hpux* )
33911         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33912         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33913         ;;
33914
33915     esac
33916     fi
33917
33918             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33919
33920     if test $wxUSE_RPATH = "no"; then
33921         SAMPLES_RPATH_FLAG=''
33922         SAMPLES_RPATH_POSTLINK=''
33923         WXCONFIG_RPATH=''
33924     fi
33925
33926     SHARED=1
33927
33928 else
33929
33930     config_linkage_component="-static"
33931     SHARED=0
33932
33933 fi
33934
33935
33936 UNICODE=0
33937 lib_unicode_suffix=
33938 WX_CHARTYPE="ansi"
33939 if test "$wxUSE_UNICODE" = "yes"; then
33940     lib_unicode_suffix=u
33941     WX_CHARTYPE="unicode"
33942     UNICODE=1
33943 fi
33944
33945 lib_debug_suffix=
33946 WX_DEBUGTYPE="release"
33947 DEBUG_FLAG=0
33948 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33949     lib_debug_suffix=d
33950     WX_DEBUGTYPE="debug"
33951     DEBUG_FLAG=1
33952 fi
33953
33954 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33955 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33956
33957 DEBUG_INFO=0
33958 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33959     DEBUG_INFO=1
33960 fi
33961
33962 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33963
33964 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33965
33966 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33967
33968 if test "$cross_compiling" = "yes"; then
33969     HOST_SUFFIX="-$host_alias"
33970     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33971     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33972 fi
33973
33974 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33975 if test "${TOOLKIT_DIR}" = "os2"; then
33976     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33977 else
33978     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33979 fi
33980
33981
33982
33983 if test "$wxUSE_COCOA" = 1; then
33984
33985     ac_ext=c
33986 ac_cpp='$CPP $CPPFLAGS'
33987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33990
33991 ac_ext=m
33992
33993     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33994 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33995     cat >conftest.$ac_ext <<_ACEOF
33996 /* confdefs.h.  */
33997 _ACEOF
33998 cat confdefs.h >>conftest.$ac_ext
33999 cat >>conftest.$ac_ext <<_ACEOF
34000 /* end confdefs.h.  */
34001 #include <AppKit/NSEvent.h>
34002 #include <CoreFoundation/CoreFoundation.h>
34003
34004 int
34005 main ()
34006 {
34007
34008   ;
34009   return 0;
34010 }
34011 _ACEOF
34012 rm -f conftest.$ac_objext
34013 if { (ac_try="$ac_compile"
34014 case "(($ac_try" in
34015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016   *) ac_try_echo=$ac_try;;
34017 esac
34018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019   (eval "$ac_compile") 2>conftest.er1
34020   ac_status=$?
34021   grep -v '^ *+' conftest.er1 >conftest.err
34022   rm -f conftest.er1
34023   cat conftest.err >&5
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); } && {
34026          test -z "$ac_c_werror_flag" ||
34027          test ! -s conftest.err
34028        } && test -s conftest.$ac_objext; then
34029   { echo "$as_me:$LINENO: result: no" >&5
34030 echo "${ECHO_T}no" >&6; }
34031 else
34032   echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035         { echo "$as_me:$LINENO: result: yes" >&5
34036 echo "${ECHO_T}yes" >&6; }
34037         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34038 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34039         cat >conftest.$ac_ext <<_ACEOF
34040 /* confdefs.h.  */
34041 _ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h.  */
34045 #define __Point__ 1
34046 #include <AppKit/NSEvent.h>
34047 #include <CoreFoundation/CoreFoundation.h>
34048
34049 int
34050 main ()
34051 {
34052
34053   ;
34054   return 0;
34055 }
34056 _ACEOF
34057 rm -f conftest.$ac_objext
34058 if { (ac_try="$ac_compile"
34059 case "(($ac_try" in
34060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34061   *) ac_try_echo=$ac_try;;
34062 esac
34063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34064   (eval "$ac_compile") 2>conftest.er1
34065   ac_status=$?
34066   grep -v '^ *+' conftest.er1 >conftest.err
34067   rm -f conftest.er1
34068   cat conftest.err >&5
34069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); } && {
34071          test -z "$ac_c_werror_flag" ||
34072          test ! -s conftest.err
34073        } && test -s conftest.$ac_objext; then
34074   { echo "$as_me:$LINENO: result: yes" >&5
34075 echo "${ECHO_T}yes" >&6; }
34076             cat >>confdefs.h <<\_ACEOF
34077 #define __Point__ 1
34078 _ACEOF
34079
34080
34081 else
34082   echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34084
34085         { { echo "$as_me:$LINENO: error: no
34086 See \`config.log' for more details." >&5
34087 echo "$as_me: error: no
34088 See \`config.log' for more details." >&2;}
34089    { (exit 1); exit 1; }; }
34090
34091 fi
34092
34093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34094
34095 fi
34096
34097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34098     ac_ext=c
34099 ac_cpp='$CPP $CPPFLAGS'
34100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34103
34104 fi
34105
34106
34107 { echo "$as_me:$LINENO: checking for mode_t" >&5
34108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34109 if test "${ac_cv_type_mode_t+set}" = set; then
34110   echo $ECHO_N "(cached) $ECHO_C" >&6
34111 else
34112   cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118 $ac_includes_default
34119 typedef mode_t ac__type_new_;
34120 int
34121 main ()
34122 {
34123 if ((ac__type_new_ *) 0)
34124   return 0;
34125 if (sizeof (ac__type_new_))
34126   return 0;
34127   ;
34128   return 0;
34129 }
34130 _ACEOF
34131 rm -f conftest.$ac_objext
34132 if { (ac_try="$ac_compile"
34133 case "(($ac_try" in
34134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34135   *) ac_try_echo=$ac_try;;
34136 esac
34137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34138   (eval "$ac_compile") 2>conftest.er1
34139   ac_status=$?
34140   grep -v '^ *+' conftest.er1 >conftest.err
34141   rm -f conftest.er1
34142   cat conftest.err >&5
34143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); } && {
34145          test -z "$ac_c_werror_flag" ||
34146          test ! -s conftest.err
34147        } && test -s conftest.$ac_objext; then
34148   ac_cv_type_mode_t=yes
34149 else
34150   echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153         ac_cv_type_mode_t=no
34154 fi
34155
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34157 fi
34158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34160 if test $ac_cv_type_mode_t = yes; then
34161   :
34162 else
34163
34164 cat >>confdefs.h <<_ACEOF
34165 #define mode_t int
34166 _ACEOF
34167
34168 fi
34169
34170 { echo "$as_me:$LINENO: checking for off_t" >&5
34171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34172 if test "${ac_cv_type_off_t+set}" = set; then
34173   echo $ECHO_N "(cached) $ECHO_C" >&6
34174 else
34175   cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181 $ac_includes_default
34182 typedef off_t ac__type_new_;
34183 int
34184 main ()
34185 {
34186 if ((ac__type_new_ *) 0)
34187   return 0;
34188 if (sizeof (ac__type_new_))
34189   return 0;
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_compile") 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } && {
34208          test -z "$ac_c_werror_flag" ||
34209          test ! -s conftest.err
34210        } && test -s conftest.$ac_objext; then
34211   ac_cv_type_off_t=yes
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216         ac_cv_type_off_t=no
34217 fi
34218
34219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34220 fi
34221 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34222 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34223 if test $ac_cv_type_off_t = yes; then
34224   :
34225 else
34226
34227 cat >>confdefs.h <<_ACEOF
34228 #define off_t long int
34229 _ACEOF
34230
34231 fi
34232
34233 { echo "$as_me:$LINENO: checking for pid_t" >&5
34234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34235 if test "${ac_cv_type_pid_t+set}" = set; then
34236   echo $ECHO_N "(cached) $ECHO_C" >&6
34237 else
34238   cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244 $ac_includes_default
34245 typedef pid_t ac__type_new_;
34246 int
34247 main ()
34248 {
34249 if ((ac__type_new_ *) 0)
34250   return 0;
34251 if (sizeof (ac__type_new_))
34252   return 0;
34253   ;
34254   return 0;
34255 }
34256 _ACEOF
34257 rm -f conftest.$ac_objext
34258 if { (ac_try="$ac_compile"
34259 case "(($ac_try" in
34260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34261   *) ac_try_echo=$ac_try;;
34262 esac
34263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34264   (eval "$ac_compile") 2>conftest.er1
34265   ac_status=$?
34266   grep -v '^ *+' conftest.er1 >conftest.err
34267   rm -f conftest.er1
34268   cat conftest.err >&5
34269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270   (exit $ac_status); } && {
34271          test -z "$ac_c_werror_flag" ||
34272          test ! -s conftest.err
34273        } && test -s conftest.$ac_objext; then
34274   ac_cv_type_pid_t=yes
34275 else
34276   echo "$as_me: failed program was:" >&5
34277 sed 's/^/| /' conftest.$ac_ext >&5
34278
34279         ac_cv_type_pid_t=no
34280 fi
34281
34282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34283 fi
34284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34286 if test $ac_cv_type_pid_t = yes; then
34287   :
34288 else
34289
34290 cat >>confdefs.h <<_ACEOF
34291 #define pid_t int
34292 _ACEOF
34293
34294 fi
34295
34296 { echo "$as_me:$LINENO: checking for size_t" >&5
34297 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34298 if test "${ac_cv_type_size_t+set}" = set; then
34299   echo $ECHO_N "(cached) $ECHO_C" >&6
34300 else
34301   cat >conftest.$ac_ext <<_ACEOF
34302 /* confdefs.h.  */
34303 _ACEOF
34304 cat confdefs.h >>conftest.$ac_ext
34305 cat >>conftest.$ac_ext <<_ACEOF
34306 /* end confdefs.h.  */
34307 $ac_includes_default
34308 typedef size_t ac__type_new_;
34309 int
34310 main ()
34311 {
34312 if ((ac__type_new_ *) 0)
34313   return 0;
34314 if (sizeof (ac__type_new_))
34315   return 0;
34316   ;
34317   return 0;
34318 }
34319 _ACEOF
34320 rm -f conftest.$ac_objext
34321 if { (ac_try="$ac_compile"
34322 case "(($ac_try" in
34323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324   *) ac_try_echo=$ac_try;;
34325 esac
34326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34327   (eval "$ac_compile") 2>conftest.er1
34328   ac_status=$?
34329   grep -v '^ *+' conftest.er1 >conftest.err
34330   rm -f conftest.er1
34331   cat conftest.err >&5
34332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333   (exit $ac_status); } && {
34334          test -z "$ac_c_werror_flag" ||
34335          test ! -s conftest.err
34336        } && test -s conftest.$ac_objext; then
34337   ac_cv_type_size_t=yes
34338 else
34339   echo "$as_me: failed program was:" >&5
34340 sed 's/^/| /' conftest.$ac_ext >&5
34341
34342         ac_cv_type_size_t=no
34343 fi
34344
34345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34346 fi
34347 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34348 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34349 if test $ac_cv_type_size_t = yes; then
34350   :
34351 else
34352
34353 cat >>confdefs.h <<_ACEOF
34354 #define size_t unsigned int
34355 _ACEOF
34356
34357 fi
34358
34359
34360 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34361 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34362 if test "${ac_cv_type_ssize_t+set}" = set; then
34363   echo $ECHO_N "(cached) $ECHO_C" >&6
34364 else
34365   cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 $ac_includes_default
34372 typedef ssize_t ac__type_new_;
34373 int
34374 main ()
34375 {
34376 if ((ac__type_new_ *) 0)
34377   return 0;
34378 if (sizeof (ac__type_new_))
34379   return 0;
34380   ;
34381   return 0;
34382 }
34383 _ACEOF
34384 rm -f conftest.$ac_objext
34385 if { (ac_try="$ac_compile"
34386 case "(($ac_try" in
34387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388   *) ac_try_echo=$ac_try;;
34389 esac
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391   (eval "$ac_compile") 2>conftest.er1
34392   ac_status=$?
34393   grep -v '^ *+' conftest.er1 >conftest.err
34394   rm -f conftest.er1
34395   cat conftest.err >&5
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); } && {
34398          test -z "$ac_c_werror_flag" ||
34399          test ! -s conftest.err
34400        } && test -s conftest.$ac_objext; then
34401   ac_cv_type_ssize_t=yes
34402 else
34403   echo "$as_me: failed program was:" >&5
34404 sed 's/^/| /' conftest.$ac_ext >&5
34405
34406         ac_cv_type_ssize_t=no
34407 fi
34408
34409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410 fi
34411 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34412 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34413 if test $ac_cv_type_ssize_t = yes; then
34414
34415 cat >>confdefs.h <<_ACEOF
34416 #define HAVE_SSIZE_T 1
34417 _ACEOF
34418
34419
34420 fi
34421
34422
34423 ac_ext=cpp
34424 ac_cpp='$CXXCPP $CPPFLAGS'
34425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34428  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34429 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34430 if test "${wx_cv_size_t_is_uint+set}" = set; then
34431   echo $ECHO_N "(cached) $ECHO_C" >&6
34432 else
34433
34434                             cat >conftest.$ac_ext <<_ACEOF
34435 /* confdefs.h.  */
34436 _ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h.  */
34440 #include <stddef.h>
34441 int
34442 main ()
34443 {
34444
34445             return 0; }
34446
34447             struct Foo { void foo(size_t); void foo(unsigned int); };
34448
34449             int bar() {
34450
34451   ;
34452   return 0;
34453 }
34454 _ACEOF
34455 rm -f conftest.$ac_objext
34456 if { (ac_try="$ac_compile"
34457 case "(($ac_try" in
34458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34459   *) ac_try_echo=$ac_try;;
34460 esac
34461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34462   (eval "$ac_compile") 2>conftest.er1
34463   ac_status=$?
34464   grep -v '^ *+' conftest.er1 >conftest.err
34465   rm -f conftest.er1
34466   cat conftest.err >&5
34467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468   (exit $ac_status); } && {
34469          test -z "$ac_cxx_werror_flag" ||
34470          test ! -s conftest.err
34471        } && test -s conftest.$ac_objext; then
34472   wx_cv_size_t_is_uint=no
34473 else
34474   echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34476
34477         wx_cv_size_t_is_uint=yes
34478
34479 fi
34480
34481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34482
34483
34484 fi
34485 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34486 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34487
34488 if test "$wx_cv_size_t_is_uint" = "yes"; then
34489     cat >>confdefs.h <<\_ACEOF
34490 #define wxSIZE_T_IS_UINT 1
34491 _ACEOF
34492
34493 else
34494     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34495 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34496 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34497   echo $ECHO_N "(cached) $ECHO_C" >&6
34498 else
34499   cat >conftest.$ac_ext <<_ACEOF
34500 /* confdefs.h.  */
34501 _ACEOF
34502 cat confdefs.h >>conftest.$ac_ext
34503 cat >>conftest.$ac_ext <<_ACEOF
34504 /* end confdefs.h.  */
34505 #include <stddef.h>
34506 int
34507 main ()
34508 {
34509
34510                 return 0; }
34511
34512                 struct Foo { void foo(size_t); void foo(unsigned long); };
34513
34514                 int bar() {
34515
34516   ;
34517   return 0;
34518 }
34519 _ACEOF
34520 rm -f conftest.$ac_objext
34521 if { (ac_try="$ac_compile"
34522 case "(($ac_try" in
34523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34524   *) ac_try_echo=$ac_try;;
34525 esac
34526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34527   (eval "$ac_compile") 2>conftest.er1
34528   ac_status=$?
34529   grep -v '^ *+' conftest.er1 >conftest.err
34530   rm -f conftest.er1
34531   cat conftest.err >&5
34532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533   (exit $ac_status); } && {
34534          test -z "$ac_cxx_werror_flag" ||
34535          test ! -s conftest.err
34536        } && test -s conftest.$ac_objext; then
34537   wx_cv_size_t_is_ulong=no
34538 else
34539   echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34541
34542         wx_cv_size_t_is_ulong=yes
34543
34544 fi
34545
34546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34547
34548 fi
34549 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34550 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34551
34552     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34553         cat >>confdefs.h <<\_ACEOF
34554 #define wxSIZE_T_IS_ULONG 1
34555 _ACEOF
34556
34557     fi
34558 fi
34559
34560 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34561 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34562 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34563   echo $ECHO_N "(cached) $ECHO_C" >&6
34564 else
34565   cat >conftest.$ac_ext <<_ACEOF
34566 /* confdefs.h.  */
34567 _ACEOF
34568 cat confdefs.h >>conftest.$ac_ext
34569 cat >>conftest.$ac_ext <<_ACEOF
34570 /* end confdefs.h.  */
34571 #include <wchar.h>
34572 int
34573 main ()
34574 {
34575
34576             return 0; }
34577
34578             struct Foo { void foo(wchar_t);
34579                          void foo(unsigned short);
34580                          void foo(unsigned int);
34581                          void foo(unsigned long); };
34582
34583             int bar() {
34584
34585   ;
34586   return 0;
34587 }
34588 _ACEOF
34589 rm -f conftest.$ac_objext
34590 if { (ac_try="$ac_compile"
34591 case "(($ac_try" in
34592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34593   *) ac_try_echo=$ac_try;;
34594 esac
34595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34596   (eval "$ac_compile") 2>conftest.er1
34597   ac_status=$?
34598   grep -v '^ *+' conftest.er1 >conftest.err
34599   rm -f conftest.er1
34600   cat conftest.err >&5
34601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602   (exit $ac_status); } && {
34603          test -z "$ac_cxx_werror_flag" ||
34604          test ! -s conftest.err
34605        } && test -s conftest.$ac_objext; then
34606   wx_cv_wchar_t_is_separate_type=yes
34607 else
34608   echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34610
34611         wx_cv_wchar_t_is_separate_type=no
34612
34613 fi
34614
34615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34616
34617 fi
34618 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34619 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34620
34621 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34622     cat >>confdefs.h <<\_ACEOF
34623 #define wxWCHAR_T_IS_REAL_TYPE 1
34624 _ACEOF
34625
34626 else
34627     cat >>confdefs.h <<\_ACEOF
34628 #define wxWCHAR_T_IS_REAL_TYPE 0
34629 _ACEOF
34630
34631 fi
34632
34633 ac_ext=c
34634 ac_cpp='$CPP $CPPFLAGS'
34635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34638
34639
34640 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34641 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34642 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34643   echo $ECHO_N "(cached) $ECHO_C" >&6
34644 else
34645
34646         cat >conftest.$ac_ext <<_ACEOF
34647 /* confdefs.h.  */
34648 _ACEOF
34649 cat confdefs.h >>conftest.$ac_ext
34650 cat >>conftest.$ac_ext <<_ACEOF
34651 /* end confdefs.h.  */
34652 #include <pwd.h>
34653 int
34654 main ()
34655 {
34656
34657                 char *p;
34658                 struct passwd *pw;
34659                 p = pw->pw_gecos;
34660
34661   ;
34662   return 0;
34663 }
34664 _ACEOF
34665 rm -f conftest.$ac_objext
34666 if { (ac_try="$ac_compile"
34667 case "(($ac_try" in
34668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34669   *) ac_try_echo=$ac_try;;
34670 esac
34671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34672   (eval "$ac_compile") 2>conftest.er1
34673   ac_status=$?
34674   grep -v '^ *+' conftest.er1 >conftest.err
34675   rm -f conftest.er1
34676   cat conftest.err >&5
34677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678   (exit $ac_status); } && {
34679          test -z "$ac_c_werror_flag" ||
34680          test ! -s conftest.err
34681        } && test -s conftest.$ac_objext; then
34682
34683                 wx_cv_struct_pw_gecos=yes
34684
34685 else
34686   echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34688
34689
34690                 wx_cv_struct_pw_gecos=no
34691
34692
34693 fi
34694
34695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34696
34697
34698 fi
34699 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34700 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34701
34702 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34703     cat >>confdefs.h <<\_ACEOF
34704 #define HAVE_PW_GECOS 1
34705 _ACEOF
34706
34707 fi
34708
34709
34710 if test "$wxUSE_WCHAR_T" = "yes"; then
34711     cat >>confdefs.h <<\_ACEOF
34712 #define wxUSE_WCHAR_T 1
34713 _ACEOF
34714
34715
34716         WCSLEN_FOUND=0
34717     WCHAR_LINK=
34718
34719 for ac_func in wcslen
34720 do
34721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34725   echo $ECHO_N "(cached) $ECHO_C" >&6
34726 else
34727   cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34735 #define $ac_func innocuous_$ac_func
34736
34737 /* System header to define __stub macros and hopefully few prototypes,
34738     which can conflict with char $ac_func (); below.
34739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34740     <limits.h> exists even on freestanding compilers.  */
34741
34742 #ifdef __STDC__
34743 # include <limits.h>
34744 #else
34745 # include <assert.h>
34746 #endif
34747
34748 #undef $ac_func
34749
34750 /* Override any GCC internal prototype to avoid an error.
34751    Use char because int might match the return type of a GCC
34752    builtin and then its argument prototype would still apply.  */
34753 #ifdef __cplusplus
34754 extern "C"
34755 #endif
34756 char $ac_func ();
34757 /* The GNU C library defines this for functions which it implements
34758     to always fail with ENOSYS.  Some functions are actually named
34759     something starting with __ and the normal name is an alias.  */
34760 #if defined __stub_$ac_func || defined __stub___$ac_func
34761 choke me
34762 #endif
34763
34764 int
34765 main ()
34766 {
34767 return $ac_func ();
34768   ;
34769   return 0;
34770 }
34771 _ACEOF
34772 rm -f conftest.$ac_objext conftest$ac_exeext
34773 if { (ac_try="$ac_link"
34774 case "(($ac_try" in
34775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776   *) ac_try_echo=$ac_try;;
34777 esac
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779   (eval "$ac_link") 2>conftest.er1
34780   ac_status=$?
34781   grep -v '^ *+' conftest.er1 >conftest.err
34782   rm -f conftest.er1
34783   cat conftest.err >&5
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); } && {
34786          test -z "$ac_c_werror_flag" ||
34787          test ! -s conftest.err
34788        } && test -s conftest$ac_exeext &&
34789        $as_test_x conftest$ac_exeext; then
34790   eval "$as_ac_var=yes"
34791 else
34792   echo "$as_me: failed program was:" >&5
34793 sed 's/^/| /' conftest.$ac_ext >&5
34794
34795         eval "$as_ac_var=no"
34796 fi
34797
34798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34799       conftest$ac_exeext conftest.$ac_ext
34800 fi
34801 ac_res=`eval echo '${'$as_ac_var'}'`
34802                { echo "$as_me:$LINENO: result: $ac_res" >&5
34803 echo "${ECHO_T}$ac_res" >&6; }
34804 if test `eval echo '${'$as_ac_var'}'` = yes; then
34805   cat >>confdefs.h <<_ACEOF
34806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34807 _ACEOF
34808  WCSLEN_FOUND=1
34809 fi
34810 done
34811
34812
34813     if test "$WCSLEN_FOUND" = 0; then
34814         if test "$TOOLKIT" = "MSW"; then
34815             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34816 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34817 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34818   echo $ECHO_N "(cached) $ECHO_C" >&6
34819 else
34820   ac_check_lib_save_LIBS=$LIBS
34821 LIBS="-lmsvcrt  $LIBS"
34822 cat >conftest.$ac_ext <<_ACEOF
34823 /* confdefs.h.  */
34824 _ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h.  */
34828
34829 /* Override any GCC internal prototype to avoid an error.
34830    Use char because int might match the return type of a GCC
34831    builtin and then its argument prototype would still apply.  */
34832 #ifdef __cplusplus
34833 extern "C"
34834 #endif
34835 char wcslen ();
34836 int
34837 main ()
34838 {
34839 return wcslen ();
34840   ;
34841   return 0;
34842 }
34843 _ACEOF
34844 rm -f conftest.$ac_objext conftest$ac_exeext
34845 if { (ac_try="$ac_link"
34846 case "(($ac_try" in
34847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848   *) ac_try_echo=$ac_try;;
34849 esac
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851   (eval "$ac_link") 2>conftest.er1
34852   ac_status=$?
34853   grep -v '^ *+' conftest.er1 >conftest.err
34854   rm -f conftest.er1
34855   cat conftest.err >&5
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); } && {
34858          test -z "$ac_c_werror_flag" ||
34859          test ! -s conftest.err
34860        } && test -s conftest$ac_exeext &&
34861        $as_test_x conftest$ac_exeext; then
34862   ac_cv_lib_msvcrt_wcslen=yes
34863 else
34864   echo "$as_me: failed program was:" >&5
34865 sed 's/^/| /' conftest.$ac_ext >&5
34866
34867         ac_cv_lib_msvcrt_wcslen=no
34868 fi
34869
34870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34871       conftest$ac_exeext conftest.$ac_ext
34872 LIBS=$ac_check_lib_save_LIBS
34873 fi
34874 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34875 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34876 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34877   WCHAR_OK=1
34878 fi
34879
34880         else
34881             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34882 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34883 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34884   echo $ECHO_N "(cached) $ECHO_C" >&6
34885 else
34886   ac_check_lib_save_LIBS=$LIBS
34887 LIBS="-lw  $LIBS"
34888 cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h.  */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h.  */
34894
34895 /* Override any GCC internal prototype to avoid an error.
34896    Use char because int might match the return type of a GCC
34897    builtin and then its argument prototype would still apply.  */
34898 #ifdef __cplusplus
34899 extern "C"
34900 #endif
34901 char wcslen ();
34902 int
34903 main ()
34904 {
34905 return wcslen ();
34906   ;
34907   return 0;
34908 }
34909 _ACEOF
34910 rm -f conftest.$ac_objext conftest$ac_exeext
34911 if { (ac_try="$ac_link"
34912 case "(($ac_try" in
34913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914   *) ac_try_echo=$ac_try;;
34915 esac
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917   (eval "$ac_link") 2>conftest.er1
34918   ac_status=$?
34919   grep -v '^ *+' conftest.er1 >conftest.err
34920   rm -f conftest.er1
34921   cat conftest.err >&5
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); } && {
34924          test -z "$ac_c_werror_flag" ||
34925          test ! -s conftest.err
34926        } && test -s conftest$ac_exeext &&
34927        $as_test_x conftest$ac_exeext; then
34928   ac_cv_lib_w_wcslen=yes
34929 else
34930   echo "$as_me: failed program was:" >&5
34931 sed 's/^/| /' conftest.$ac_ext >&5
34932
34933         ac_cv_lib_w_wcslen=no
34934 fi
34935
34936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34937       conftest$ac_exeext conftest.$ac_ext
34938 LIBS=$ac_check_lib_save_LIBS
34939 fi
34940 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34941 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34942 if test $ac_cv_lib_w_wcslen = yes; then
34943
34944                             WCHAR_LINK=" -lw"
34945                             WCSLEN_FOUND=1
34946
34947 fi
34948
34949         fi
34950     fi
34951
34952     if test "$WCSLEN_FOUND" = 1; then
34953         cat >>confdefs.h <<\_ACEOF
34954 #define HAVE_WCSLEN 1
34955 _ACEOF
34956
34957     fi
34958
34959
34960 for ac_func in wcsdup
34961 do
34962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34966   echo $ECHO_N "(cached) $ECHO_C" >&6
34967 else
34968   cat >conftest.$ac_ext <<_ACEOF
34969 /* confdefs.h.  */
34970 _ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h.  */
34974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34976 #define $ac_func innocuous_$ac_func
34977
34978 /* System header to define __stub macros and hopefully few prototypes,
34979     which can conflict with char $ac_func (); below.
34980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34981     <limits.h> exists even on freestanding compilers.  */
34982
34983 #ifdef __STDC__
34984 # include <limits.h>
34985 #else
34986 # include <assert.h>
34987 #endif
34988
34989 #undef $ac_func
34990
34991 /* Override any GCC internal prototype to avoid an error.
34992    Use char because int might match the return type of a GCC
34993    builtin and then its argument prototype would still apply.  */
34994 #ifdef __cplusplus
34995 extern "C"
34996 #endif
34997 char $ac_func ();
34998 /* The GNU C library defines this for functions which it implements
34999     to always fail with ENOSYS.  Some functions are actually named
35000     something starting with __ and the normal name is an alias.  */
35001 #if defined __stub_$ac_func || defined __stub___$ac_func
35002 choke me
35003 #endif
35004
35005 int
35006 main ()
35007 {
35008 return $ac_func ();
35009   ;
35010   return 0;
35011 }
35012 _ACEOF
35013 rm -f conftest.$ac_objext conftest$ac_exeext
35014 if { (ac_try="$ac_link"
35015 case "(($ac_try" in
35016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35017   *) ac_try_echo=$ac_try;;
35018 esac
35019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35020   (eval "$ac_link") 2>conftest.er1
35021   ac_status=$?
35022   grep -v '^ *+' conftest.er1 >conftest.err
35023   rm -f conftest.er1
35024   cat conftest.err >&5
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); } && {
35027          test -z "$ac_c_werror_flag" ||
35028          test ! -s conftest.err
35029        } && test -s conftest$ac_exeext &&
35030        $as_test_x conftest$ac_exeext; then
35031   eval "$as_ac_var=yes"
35032 else
35033   echo "$as_me: failed program was:" >&5
35034 sed 's/^/| /' conftest.$ac_ext >&5
35035
35036         eval "$as_ac_var=no"
35037 fi
35038
35039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35040       conftest$ac_exeext conftest.$ac_ext
35041 fi
35042 ac_res=`eval echo '${'$as_ac_var'}'`
35043                { echo "$as_me:$LINENO: result: $ac_res" >&5
35044 echo "${ECHO_T}$ac_res" >&6; }
35045 if test `eval echo '${'$as_ac_var'}'` = yes; then
35046   cat >>confdefs.h <<_ACEOF
35047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35048 _ACEOF
35049
35050 fi
35051 done
35052
35053
35054                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35055         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35056     fi
35057
35058                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35059 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35060 if test "${ac_cv_type_mbstate_t+set}" = set; then
35061   echo $ECHO_N "(cached) $ECHO_C" >&6
35062 else
35063   cat >conftest.$ac_ext <<_ACEOF
35064 /* confdefs.h.  */
35065 _ACEOF
35066 cat confdefs.h >>conftest.$ac_ext
35067 cat >>conftest.$ac_ext <<_ACEOF
35068 /* end confdefs.h.  */
35069 #include <wchar.h>
35070
35071 typedef mbstate_t ac__type_new_;
35072 int
35073 main ()
35074 {
35075 if ((ac__type_new_ *) 0)
35076   return 0;
35077 if (sizeof (ac__type_new_))
35078   return 0;
35079   ;
35080   return 0;
35081 }
35082 _ACEOF
35083 rm -f conftest.$ac_objext
35084 if { (ac_try="$ac_compile"
35085 case "(($ac_try" in
35086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35087   *) ac_try_echo=$ac_try;;
35088 esac
35089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35090   (eval "$ac_compile") 2>conftest.er1
35091   ac_status=$?
35092   grep -v '^ *+' conftest.er1 >conftest.err
35093   rm -f conftest.er1
35094   cat conftest.err >&5
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); } && {
35097          test -z "$ac_c_werror_flag" ||
35098          test ! -s conftest.err
35099        } && test -s conftest.$ac_objext; then
35100   ac_cv_type_mbstate_t=yes
35101 else
35102   echo "$as_me: failed program was:" >&5
35103 sed 's/^/| /' conftest.$ac_ext >&5
35104
35105         ac_cv_type_mbstate_t=no
35106 fi
35107
35108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35109 fi
35110 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35111 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35112 if test $ac_cv_type_mbstate_t = yes; then
35113
35114 cat >>confdefs.h <<_ACEOF
35115 #define HAVE_MBSTATE_T 1
35116 _ACEOF
35117
35118
35119 for ac_func in wcsrtombs
35120 do
35121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35125   echo $ECHO_N "(cached) $ECHO_C" >&6
35126 else
35127   cat >conftest.$ac_ext <<_ACEOF
35128 /* confdefs.h.  */
35129 _ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h.  */
35133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35135 #define $ac_func innocuous_$ac_func
35136
35137 /* System header to define __stub macros and hopefully few prototypes,
35138     which can conflict with char $ac_func (); below.
35139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35140     <limits.h> exists even on freestanding compilers.  */
35141
35142 #ifdef __STDC__
35143 # include <limits.h>
35144 #else
35145 # include <assert.h>
35146 #endif
35147
35148 #undef $ac_func
35149
35150 /* Override any GCC internal prototype to avoid an error.
35151    Use char because int might match the return type of a GCC
35152    builtin and then its argument prototype would still apply.  */
35153 #ifdef __cplusplus
35154 extern "C"
35155 #endif
35156 char $ac_func ();
35157 /* The GNU C library defines this for functions which it implements
35158     to always fail with ENOSYS.  Some functions are actually named
35159     something starting with __ and the normal name is an alias.  */
35160 #if defined __stub_$ac_func || defined __stub___$ac_func
35161 choke me
35162 #endif
35163
35164 int
35165 main ()
35166 {
35167 return $ac_func ();
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext conftest$ac_exeext
35173 if { (ac_try="$ac_link"
35174 case "(($ac_try" in
35175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35176   *) ac_try_echo=$ac_try;;
35177 esac
35178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179   (eval "$ac_link") 2>conftest.er1
35180   ac_status=$?
35181   grep -v '^ *+' conftest.er1 >conftest.err
35182   rm -f conftest.er1
35183   cat conftest.err >&5
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); } && {
35186          test -z "$ac_c_werror_flag" ||
35187          test ! -s conftest.err
35188        } && test -s conftest$ac_exeext &&
35189        $as_test_x conftest$ac_exeext; then
35190   eval "$as_ac_var=yes"
35191 else
35192   echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35194
35195         eval "$as_ac_var=no"
35196 fi
35197
35198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35199       conftest$ac_exeext conftest.$ac_ext
35200 fi
35201 ac_res=`eval echo '${'$as_ac_var'}'`
35202                { echo "$as_me:$LINENO: result: $ac_res" >&5
35203 echo "${ECHO_T}$ac_res" >&6; }
35204 if test `eval echo '${'$as_ac_var'}'` = yes; then
35205   cat >>confdefs.h <<_ACEOF
35206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35207 _ACEOF
35208
35209 fi
35210 done
35211
35212 fi
35213
35214 else
35215     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35216 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35217 fi
35218
35219
35220
35221
35222 for ac_func in snprintf vsnprintf vsscanf
35223 do
35224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35228   echo $ECHO_N "(cached) $ECHO_C" >&6
35229 else
35230   cat >conftest.$ac_ext <<_ACEOF
35231 /* confdefs.h.  */
35232 _ACEOF
35233 cat confdefs.h >>conftest.$ac_ext
35234 cat >>conftest.$ac_ext <<_ACEOF
35235 /* end confdefs.h.  */
35236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35238 #define $ac_func innocuous_$ac_func
35239
35240 /* System header to define __stub macros and hopefully few prototypes,
35241     which can conflict with char $ac_func (); below.
35242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35243     <limits.h> exists even on freestanding compilers.  */
35244
35245 #ifdef __STDC__
35246 # include <limits.h>
35247 #else
35248 # include <assert.h>
35249 #endif
35250
35251 #undef $ac_func
35252
35253 /* Override any GCC internal prototype to avoid an error.
35254    Use char because int might match the return type of a GCC
35255    builtin and then its argument prototype would still apply.  */
35256 #ifdef __cplusplus
35257 extern "C"
35258 #endif
35259 char $ac_func ();
35260 /* The GNU C library defines this for functions which it implements
35261     to always fail with ENOSYS.  Some functions are actually named
35262     something starting with __ and the normal name is an alias.  */
35263 #if defined __stub_$ac_func || defined __stub___$ac_func
35264 choke me
35265 #endif
35266
35267 int
35268 main ()
35269 {
35270 return $ac_func ();
35271   ;
35272   return 0;
35273 }
35274 _ACEOF
35275 rm -f conftest.$ac_objext conftest$ac_exeext
35276 if { (ac_try="$ac_link"
35277 case "(($ac_try" in
35278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35279   *) ac_try_echo=$ac_try;;
35280 esac
35281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35282   (eval "$ac_link") 2>conftest.er1
35283   ac_status=$?
35284   grep -v '^ *+' conftest.er1 >conftest.err
35285   rm -f conftest.er1
35286   cat conftest.err >&5
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); } && {
35289          test -z "$ac_c_werror_flag" ||
35290          test ! -s conftest.err
35291        } && test -s conftest$ac_exeext &&
35292        $as_test_x conftest$ac_exeext; then
35293   eval "$as_ac_var=yes"
35294 else
35295   echo "$as_me: failed program was:" >&5
35296 sed 's/^/| /' conftest.$ac_ext >&5
35297
35298         eval "$as_ac_var=no"
35299 fi
35300
35301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35302       conftest$ac_exeext conftest.$ac_ext
35303 fi
35304 ac_res=`eval echo '${'$as_ac_var'}'`
35305                { echo "$as_me:$LINENO: result: $ac_res" >&5
35306 echo "${ECHO_T}$ac_res" >&6; }
35307 if test `eval echo '${'$as_ac_var'}'` = yes; then
35308   cat >>confdefs.h <<_ACEOF
35309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35310 _ACEOF
35311
35312 fi
35313 done
35314
35315
35316 ac_ext=cpp
35317 ac_cpp='$CXXCPP $CPPFLAGS'
35318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35321
35322 if test "$ac_cv_func_vsnprintf" = "yes"; then
35323         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35324 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35325 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35326   echo $ECHO_N "(cached) $ECHO_C" >&6
35327 else
35328
35329                                                             cat >conftest.$ac_ext <<_ACEOF
35330 /* confdefs.h.  */
35331 _ACEOF
35332 cat confdefs.h >>conftest.$ac_ext
35333 cat >>conftest.$ac_ext <<_ACEOF
35334 /* end confdefs.h.  */
35335
35336                     #include <stdio.h>
35337                     #include <stdarg.h>
35338                     #ifdef __MSL__
35339                     #if __MSL__ >= 0x6000
35340                     namespace std {}
35341                     using namespace std;
35342                     #endif
35343                     #endif
35344
35345 int
35346 main ()
35347 {
35348
35349                     char *buf;
35350                     va_list ap;
35351                     vsnprintf(buf, 10u, "%s", ap);
35352
35353   ;
35354   return 0;
35355 }
35356 _ACEOF
35357 rm -f conftest.$ac_objext
35358 if { (ac_try="$ac_compile"
35359 case "(($ac_try" in
35360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35361   *) ac_try_echo=$ac_try;;
35362 esac
35363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35364   (eval "$ac_compile") 2>conftest.er1
35365   ac_status=$?
35366   grep -v '^ *+' conftest.er1 >conftest.err
35367   rm -f conftest.er1
35368   cat conftest.err >&5
35369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370   (exit $ac_status); } && {
35371          test -z "$ac_cxx_werror_flag" ||
35372          test ! -s conftest.err
35373        } && test -s conftest.$ac_objext; then
35374   wx_cv_func_vsnprintf_decl=yes
35375 else
35376   echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35378
35379         wx_cv_func_vsnprintf_decl=no
35380
35381 fi
35382
35383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35384
35385
35386 fi
35387 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35388 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35389
35390     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35391         cat >>confdefs.h <<\_ACEOF
35392 #define HAVE_VSNPRINTF_DECL 1
35393 _ACEOF
35394
35395
35396                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35397 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35398 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35399   echo $ECHO_N "(cached) $ECHO_C" >&6
35400 else
35401
35402                 cat >conftest.$ac_ext <<_ACEOF
35403 /* confdefs.h.  */
35404 _ACEOF
35405 cat confdefs.h >>conftest.$ac_ext
35406 cat >>conftest.$ac_ext <<_ACEOF
35407 /* end confdefs.h.  */
35408
35409                         #include <stdio.h>
35410                         #include <stdarg.h>
35411                         #ifdef __MSL__
35412                         #if __MSL__ >= 0x6000
35413                         namespace std {}
35414                         using namespace std;
35415                         #endif
35416                         #endif
35417
35418 int
35419 main ()
35420 {
35421
35422                         char *buf;
35423                         va_list ap;
35424                         const char *fmt = "%s";
35425                         vsnprintf(buf, 10u, fmt, ap);
35426
35427   ;
35428   return 0;
35429 }
35430 _ACEOF
35431 rm -f conftest.$ac_objext
35432 if { (ac_try="$ac_compile"
35433 case "(($ac_try" in
35434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35435   *) ac_try_echo=$ac_try;;
35436 esac
35437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35438   (eval "$ac_compile") 2>conftest.er1
35439   ac_status=$?
35440   grep -v '^ *+' conftest.er1 >conftest.err
35441   rm -f conftest.er1
35442   cat conftest.err >&5
35443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444   (exit $ac_status); } && {
35445          test -z "$ac_cxx_werror_flag" ||
35446          test ! -s conftest.err
35447        } && test -s conftest.$ac_objext; then
35448   wx_cv_func_broken_vsnprintf_decl=no
35449 else
35450   echo "$as_me: failed program was:" >&5
35451 sed 's/^/| /' conftest.$ac_ext >&5
35452
35453         wx_cv_func_broken_vsnprintf_decl=yes
35454
35455 fi
35456
35457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35458
35459
35460 fi
35461 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35462 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35463
35464         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35465             cat >>confdefs.h <<\_ACEOF
35466 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35467 _ACEOF
35468
35469         fi
35470     fi
35471 fi
35472
35473 if test "$ac_cv_func_snprintf" = "yes"; then
35474     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35475 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35476 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35477   echo $ECHO_N "(cached) $ECHO_C" >&6
35478 else
35479
35480             cat >conftest.$ac_ext <<_ACEOF
35481 /* confdefs.h.  */
35482 _ACEOF
35483 cat confdefs.h >>conftest.$ac_ext
35484 cat >>conftest.$ac_ext <<_ACEOF
35485 /* end confdefs.h.  */
35486
35487                     #include <stdio.h>
35488                     #include <stdarg.h>
35489                     #ifdef __MSL__
35490                     #if __MSL__ >= 0x6000
35491                     namespace std {}
35492                     using namespace std;
35493                     #endif
35494                     #endif
35495
35496 int
35497 main ()
35498 {
35499
35500                     char *buf;
35501                     snprintf(buf, 10u, "%s", "wx");
35502
35503   ;
35504   return 0;
35505 }
35506 _ACEOF
35507 rm -f conftest.$ac_objext
35508 if { (ac_try="$ac_compile"
35509 case "(($ac_try" in
35510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511   *) ac_try_echo=$ac_try;;
35512 esac
35513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514   (eval "$ac_compile") 2>conftest.er1
35515   ac_status=$?
35516   grep -v '^ *+' conftest.er1 >conftest.err
35517   rm -f conftest.er1
35518   cat conftest.err >&5
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); } && {
35521          test -z "$ac_cxx_werror_flag" ||
35522          test ! -s conftest.err
35523        } && test -s conftest.$ac_objext; then
35524   wx_cv_func_snprintf_decl=yes
35525 else
35526   echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529         wx_cv_func_snprintf_decl=no
35530
35531 fi
35532
35533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35534
35535
35536 fi
35537 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35538 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35539
35540     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35541         cat >>confdefs.h <<\_ACEOF
35542 #define HAVE_SNPRINTF_DECL 1
35543 _ACEOF
35544
35545     fi
35546
35547     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35548
35549                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35550 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35551 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35552   echo $ECHO_N "(cached) $ECHO_C" >&6
35553 else
35554
35555                 if test "$cross_compiling" = yes; then
35556
35557                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35558 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35559 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35560 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35561                         wx_cv_func_snprintf_pos_params=no
35562
35563
35564 else
35565   cat >conftest.$ac_ext <<_ACEOF
35566 /* confdefs.h.  */
35567 _ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h.  */
35571
35572                         #include <stdio.h>
35573
35574                         int main (void)
35575                         {
35576                             char buffer[128];
35577                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35578                             if (strcmp ("2 3 1", buffer) == 0)
35579                                 exit (0);
35580                             exit (1);
35581                         }
35582
35583 _ACEOF
35584 rm -f conftest$ac_exeext
35585 if { (ac_try="$ac_link"
35586 case "(($ac_try" in
35587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35588   *) ac_try_echo=$ac_try;;
35589 esac
35590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35591   (eval "$ac_link") 2>&5
35592   ac_status=$?
35593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35595   { (case "(($ac_try" in
35596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35597   *) ac_try_echo=$ac_try;;
35598 esac
35599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35600   (eval "$ac_try") 2>&5
35601   ac_status=$?
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); }; }; then
35604   wx_cv_func_snprintf_pos_params=no
35605 else
35606   echo "$as_me: program exited with status $ac_status" >&5
35607 echo "$as_me: failed program was:" >&5
35608 sed 's/^/| /' conftest.$ac_ext >&5
35609
35610 ( exit $ac_status )
35611 wx_cv_func_snprintf_pos_params=yes
35612 fi
35613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35614 fi
35615
35616
35617
35618
35619 fi
35620 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35621 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35622
35623         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35624             cat >>confdefs.h <<\_ACEOF
35625 #define HAVE_UNIX98_PRINTF 1
35626 _ACEOF
35627
35628         fi
35629     fi
35630 fi
35631
35632 if test "$ac_cv_func_vsscanf" = "yes"; then
35633     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35634 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35635 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35636   echo $ECHO_N "(cached) $ECHO_C" >&6
35637 else
35638
35639             cat >conftest.$ac_ext <<_ACEOF
35640 /* confdefs.h.  */
35641 _ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h.  */
35645
35646                     #include <stdio.h>
35647                     #include <stdarg.h>
35648                     #ifdef __MSL__
35649                     #if __MSL__ >= 0x6000
35650                     namespace std {}
35651                     using namespace std;
35652                     #endif
35653                     #endif
35654
35655 int
35656 main ()
35657 {
35658
35659                     char *buf;
35660                     va_list args;
35661                     vsscanf(buf, "%s", args);
35662
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_cxx_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   wx_cv_func_vsscanf_decl=yes
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689         wx_cv_func_vsscanf_decl=no
35690
35691 fi
35692
35693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35694
35695
35696 fi
35697 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35698 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35699
35700     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35701         cat >>confdefs.h <<\_ACEOF
35702 #define HAVE_VSSCANF_DECL 1
35703 _ACEOF
35704
35705     fi
35706 fi
35707 ac_ext=c
35708 ac_cpp='$CPP $CPPFLAGS'
35709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35712
35713
35714 if test "$wxUSE_UNICODE" = yes; then
35715
35716             wchar_headers="#include <stdio.h>
35717 #include <wchar.h>"
35718     case "${host}" in
35719         *-*-solaris2* )
35720
35721 for ac_header in widec.h
35722 do
35723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35727   echo $ECHO_N "(cached) $ECHO_C" >&6
35728 else
35729   cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 $ac_includes_default
35736
35737 #include <$ac_header>
35738 _ACEOF
35739 rm -f conftest.$ac_objext
35740 if { (ac_try="$ac_compile"
35741 case "(($ac_try" in
35742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743   *) ac_try_echo=$ac_try;;
35744 esac
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746   (eval "$ac_compile") 2>conftest.er1
35747   ac_status=$?
35748   grep -v '^ *+' conftest.er1 >conftest.err
35749   rm -f conftest.er1
35750   cat conftest.err >&5
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); } && {
35753          test -z "$ac_c_werror_flag" ||
35754          test ! -s conftest.err
35755        } && test -s conftest.$ac_objext; then
35756   eval "$as_ac_Header=yes"
35757 else
35758   echo "$as_me: failed program was:" >&5
35759 sed 's/^/| /' conftest.$ac_ext >&5
35760
35761         eval "$as_ac_Header=no"
35762 fi
35763
35764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35765 fi
35766 ac_res=`eval echo '${'$as_ac_Header'}'`
35767                { echo "$as_me:$LINENO: result: $ac_res" >&5
35768 echo "${ECHO_T}$ac_res" >&6; }
35769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35770   cat >>confdefs.h <<_ACEOF
35771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35772 _ACEOF
35773
35774 fi
35775
35776 done
35777
35778             if test "$ac_cv_header_widec_h" = "yes"; then
35779                 wchar_headers="$wchar_headers
35780 #include <widec.h>"
35781             fi
35782     esac
35783
35784
35785   for wx_func in putws fputws wprintf vswprintf vswscanf
35786   do
35787     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35788 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35789 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35790   echo $ECHO_N "(cached) $ECHO_C" >&6
35791 else
35792
35793         cat >conftest.$ac_ext <<_ACEOF
35794
35795             /* confdefs.h.  */
35796 _ACEOF
35797 cat confdefs.h >>conftest.$ac_ext
35798 cat >>conftest.$ac_ext <<_ACEOF
35799 /* end confdefs.h.  */
35800
35801                 $wchar_headers
35802                 $ac_includes_default
35803
35804 int
35805 main ()
35806 {
35807
35808                 #ifndef $wx_func
35809                   &$wx_func;
35810                 #endif
35811
35812
35813   ;
35814   return 0;
35815 }
35816
35817 _ACEOF
35818 rm -f conftest.$ac_objext conftest$ac_exeext
35819 if { (ac_try="$ac_link"
35820 case "(($ac_try" in
35821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35822   *) ac_try_echo=$ac_try;;
35823 esac
35824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35825   (eval "$ac_link") 2>conftest.er1
35826   ac_status=$?
35827   grep -v '^ *+' conftest.er1 >conftest.err
35828   rm -f conftest.er1
35829   cat conftest.err >&5
35830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831   (exit $ac_status); } && {
35832          test -z "$ac_c_werror_flag" ||
35833          test ! -s conftest.err
35834        } && test -s conftest$ac_exeext &&
35835        $as_test_x conftest$ac_exeext; then
35836   eval wx_cv_func_$wx_func=yes
35837 else
35838   echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35840
35841         eval wx_cv_func_$wx_func=no
35842 fi
35843
35844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35845       conftest$ac_exeext conftest.$ac_ext
35846
35847 fi
35848 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35849                { echo "$as_me:$LINENO: result: $ac_res" >&5
35850 echo "${ECHO_T}$ac_res" >&6; }
35851
35852     if eval test \$wx_cv_func_$wx_func = yes
35853     then
35854       cat >>confdefs.h <<_ACEOF
35855 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35856 _ACEOF
35857
35858
35859     else
35860       :
35861
35862     fi
35863   done
35864
35865
35866                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35867 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35868     cat >conftest.$ac_ext <<_ACEOF
35869 /* confdefs.h.  */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h.  */
35874 #include <wchar.h>
35875 int
35876 main ()
35877 {
35878 &_vsnwprintf;
35879   ;
35880   return 0;
35881 }
35882 _ACEOF
35883 rm -f conftest.$ac_objext
35884 if { (ac_try="$ac_compile"
35885 case "(($ac_try" in
35886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35887   *) ac_try_echo=$ac_try;;
35888 esac
35889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35890   (eval "$ac_compile") 2>conftest.er1
35891   ac_status=$?
35892   grep -v '^ *+' conftest.er1 >conftest.err
35893   rm -f conftest.er1
35894   cat conftest.err >&5
35895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896   (exit $ac_status); } && {
35897          test -z "$ac_c_werror_flag" ||
35898          test ! -s conftest.err
35899        } && test -s conftest.$ac_objext; then
35900   { echo "$as_me:$LINENO: result: yes" >&5
35901 echo "${ECHO_T}yes" >&6; }
35902                     cat >>confdefs.h <<\_ACEOF
35903 #define HAVE__VSNWPRINTF 1
35904 _ACEOF
35905
35906 else
35907   echo "$as_me: failed program was:" >&5
35908 sed 's/^/| /' conftest.$ac_ext >&5
35909
35910         { echo "$as_me:$LINENO: result: no" >&5
35911 echo "${ECHO_T}no" >&6; }
35912 fi
35913
35914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35915 fi
35916
35917 if test "$wxUSE_FILE" = "yes"; then
35918
35919   for wx_func in fsync
35920   do
35921     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35922 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35923 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35924   echo $ECHO_N "(cached) $ECHO_C" >&6
35925 else
35926
35927         cat >conftest.$ac_ext <<_ACEOF
35928
35929             /* confdefs.h.  */
35930 _ACEOF
35931 cat confdefs.h >>conftest.$ac_ext
35932 cat >>conftest.$ac_ext <<_ACEOF
35933 /* end confdefs.h.  */
35934
35935
35936                 $ac_includes_default
35937
35938 int
35939 main ()
35940 {
35941
35942                 #ifndef $wx_func
35943                   &$wx_func;
35944                 #endif
35945
35946
35947   ;
35948   return 0;
35949 }
35950
35951 _ACEOF
35952 rm -f conftest.$ac_objext conftest$ac_exeext
35953 if { (ac_try="$ac_link"
35954 case "(($ac_try" in
35955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35956   *) ac_try_echo=$ac_try;;
35957 esac
35958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35959   (eval "$ac_link") 2>conftest.er1
35960   ac_status=$?
35961   grep -v '^ *+' conftest.er1 >conftest.err
35962   rm -f conftest.er1
35963   cat conftest.err >&5
35964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965   (exit $ac_status); } && {
35966          test -z "$ac_c_werror_flag" ||
35967          test ! -s conftest.err
35968        } && test -s conftest$ac_exeext &&
35969        $as_test_x conftest$ac_exeext; then
35970   eval wx_cv_func_$wx_func=yes
35971 else
35972   echo "$as_me: failed program was:" >&5
35973 sed 's/^/| /' conftest.$ac_ext >&5
35974
35975         eval wx_cv_func_$wx_func=no
35976 fi
35977
35978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35979       conftest$ac_exeext conftest.$ac_ext
35980
35981 fi
35982 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35983                { echo "$as_me:$LINENO: result: $ac_res" >&5
35984 echo "${ECHO_T}$ac_res" >&6; }
35985
35986     if eval test \$wx_cv_func_$wx_func = yes
35987     then
35988       cat >>confdefs.h <<_ACEOF
35989 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35990 _ACEOF
35991
35992
35993     else
35994       :
35995
35996     fi
35997   done
35998
35999 fi
36000
36001 ac_ext=cpp
36002 ac_cpp='$CXXCPP $CPPFLAGS'
36003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36006
36007
36008   for wx_func in round
36009   do
36010     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36011 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36012 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36013   echo $ECHO_N "(cached) $ECHO_C" >&6
36014 else
36015
36016         cat >conftest.$ac_ext <<_ACEOF
36017
36018             /* confdefs.h.  */
36019 _ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h.  */
36023
36024                 #include <math.h>
36025                 $ac_includes_default
36026
36027 int
36028 main ()
36029 {
36030
36031                 #ifndef $wx_func
36032                   &$wx_func;
36033                 #endif
36034
36035
36036   ;
36037   return 0;
36038 }
36039
36040 _ACEOF
36041 rm -f conftest.$ac_objext conftest$ac_exeext
36042 if { (ac_try="$ac_link"
36043 case "(($ac_try" in
36044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36045   *) ac_try_echo=$ac_try;;
36046 esac
36047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36048   (eval "$ac_link") 2>conftest.er1
36049   ac_status=$?
36050   grep -v '^ *+' conftest.er1 >conftest.err
36051   rm -f conftest.er1
36052   cat conftest.err >&5
36053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054   (exit $ac_status); } && {
36055          test -z "$ac_cxx_werror_flag" ||
36056          test ! -s conftest.err
36057        } && test -s conftest$ac_exeext &&
36058        $as_test_x conftest$ac_exeext; then
36059   eval wx_cv_func_$wx_func=yes
36060 else
36061   echo "$as_me: failed program was:" >&5
36062 sed 's/^/| /' conftest.$ac_ext >&5
36063
36064         eval wx_cv_func_$wx_func=no
36065 fi
36066
36067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36068       conftest$ac_exeext conftest.$ac_ext
36069
36070 fi
36071 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36072                { echo "$as_me:$LINENO: result: $ac_res" >&5
36073 echo "${ECHO_T}$ac_res" >&6; }
36074
36075     if eval test \$wx_cv_func_$wx_func = yes
36076     then
36077       cat >>confdefs.h <<_ACEOF
36078 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36079 _ACEOF
36080
36081
36082     else
36083       :
36084
36085     fi
36086   done
36087
36088 ac_ext=c
36089 ac_cpp='$CPP $CPPFLAGS'
36090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36093
36094
36095 if test "$TOOLKIT" != "MSW"; then
36096
36097 if test "$wxUSE_LIBICONV" != "no" ; then
36098
36099
36100
36101 # Check whether --with-libiconv-prefix was given.
36102 if test "${with_libiconv_prefix+set}" = set; then
36103   withval=$with_libiconv_prefix;
36104     for dir in `echo "$withval" | tr : ' '`; do
36105       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36106       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36107     done
36108
36109 fi
36110
36111
36112   { echo "$as_me:$LINENO: checking for iconv" >&5
36113 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36114 if test "${am_cv_func_iconv+set}" = set; then
36115   echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117
36118     am_cv_func_iconv="no, consider installing GNU libiconv"
36119     am_cv_lib_iconv=no
36120     cat >conftest.$ac_ext <<_ACEOF
36121 /* confdefs.h.  */
36122 _ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h.  */
36126 #include <stdlib.h>
36127 #include <iconv.h>
36128 int
36129 main ()
36130 {
36131 iconv_t cd = iconv_open("","");
36132        iconv(cd,NULL,NULL,NULL,NULL);
36133        iconv_close(cd);
36134   ;
36135   return 0;
36136 }
36137 _ACEOF
36138 rm -f conftest.$ac_objext conftest$ac_exeext
36139 if { (ac_try="$ac_link"
36140 case "(($ac_try" in
36141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142   *) ac_try_echo=$ac_try;;
36143 esac
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145   (eval "$ac_link") 2>conftest.er1
36146   ac_status=$?
36147   grep -v '^ *+' conftest.er1 >conftest.err
36148   rm -f conftest.er1
36149   cat conftest.err >&5
36150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151   (exit $ac_status); } && {
36152          test -z "$ac_c_werror_flag" ||
36153          test ! -s conftest.err
36154        } && test -s conftest$ac_exeext &&
36155        $as_test_x conftest$ac_exeext; then
36156   am_cv_func_iconv=yes
36157 else
36158   echo "$as_me: failed program was:" >&5
36159 sed 's/^/| /' conftest.$ac_ext >&5
36160
36161
36162 fi
36163
36164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36165       conftest$ac_exeext conftest.$ac_ext
36166     if test "$am_cv_func_iconv" != yes; then
36167       am_save_LIBS="$LIBS"
36168       LIBS="$LIBS -liconv"
36169       cat >conftest.$ac_ext <<_ACEOF
36170 /* confdefs.h.  */
36171 _ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h.  */
36175 #include <stdlib.h>
36176 #include <iconv.h>
36177 int
36178 main ()
36179 {
36180 iconv_t cd = iconv_open("","");
36181          iconv(cd,NULL,NULL,NULL,NULL);
36182          iconv_close(cd);
36183   ;
36184   return 0;
36185 }
36186 _ACEOF
36187 rm -f conftest.$ac_objext conftest$ac_exeext
36188 if { (ac_try="$ac_link"
36189 case "(($ac_try" in
36190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36191   *) ac_try_echo=$ac_try;;
36192 esac
36193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36194   (eval "$ac_link") 2>conftest.er1
36195   ac_status=$?
36196   grep -v '^ *+' conftest.er1 >conftest.err
36197   rm -f conftest.er1
36198   cat conftest.err >&5
36199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200   (exit $ac_status); } && {
36201          test -z "$ac_c_werror_flag" ||
36202          test ! -s conftest.err
36203        } && test -s conftest$ac_exeext &&
36204        $as_test_x conftest$ac_exeext; then
36205   am_cv_lib_iconv=yes
36206         am_cv_func_iconv=yes
36207 else
36208   echo "$as_me: failed program was:" >&5
36209 sed 's/^/| /' conftest.$ac_ext >&5
36210
36211
36212 fi
36213
36214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36215       conftest$ac_exeext conftest.$ac_ext
36216       LIBS="$am_save_LIBS"
36217     fi
36218
36219 fi
36220 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36221 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36222   if test "$am_cv_func_iconv" = yes; then
36223
36224 cat >>confdefs.h <<\_ACEOF
36225 #define HAVE_ICONV 1
36226 _ACEOF
36227
36228     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36229 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36230 if test "${wx_cv_func_iconv_const+set}" = set; then
36231   echo $ECHO_N "(cached) $ECHO_C" >&6
36232 else
36233   cat >conftest.$ac_ext <<_ACEOF
36234 /* confdefs.h.  */
36235 _ACEOF
36236 cat confdefs.h >>conftest.$ac_ext
36237 cat >>conftest.$ac_ext <<_ACEOF
36238 /* end confdefs.h.  */
36239
36240 #include <stdlib.h>
36241 #include <iconv.h>
36242 extern
36243 #ifdef __cplusplus
36244 "C"
36245 #endif
36246 #if defined(__STDC__) || defined(__cplusplus)
36247 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36248 #else
36249 size_t iconv();
36250 #endif
36251
36252 int
36253 main ()
36254 {
36255
36256   ;
36257   return 0;
36258 }
36259 _ACEOF
36260 rm -f conftest.$ac_objext
36261 if { (ac_try="$ac_compile"
36262 case "(($ac_try" in
36263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36264   *) ac_try_echo=$ac_try;;
36265 esac
36266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36267   (eval "$ac_compile") 2>conftest.er1
36268   ac_status=$?
36269   grep -v '^ *+' conftest.er1 >conftest.err
36270   rm -f conftest.er1
36271   cat conftest.err >&5
36272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273   (exit $ac_status); } && {
36274          test -z "$ac_c_werror_flag" ||
36275          test ! -s conftest.err
36276        } && test -s conftest.$ac_objext; then
36277   wx_cv_func_iconv_const="no"
36278 else
36279   echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36281
36282         wx_cv_func_iconv_const="yes"
36283
36284 fi
36285
36286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36287
36288 fi
36289 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36290 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36291
36292     iconv_const=
36293     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36294         iconv_const="const"
36295     fi
36296
36297
36298 cat >>confdefs.h <<_ACEOF
36299 #define ICONV_CONST $iconv_const
36300 _ACEOF
36301
36302   fi
36303   LIBICONV=
36304   if test "$am_cv_lib_iconv" = yes; then
36305     LIBICONV="-liconv"
36306   fi
36307
36308
36309     LIBS="$LIBICONV $LIBS"
36310 fi
36311
36312 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36313
36314 for ac_func in sigaction
36315 do
36316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36320   echo $ECHO_N "(cached) $ECHO_C" >&6
36321 else
36322   cat >conftest.$ac_ext <<_ACEOF
36323 /* confdefs.h.  */
36324 _ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h.  */
36328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36330 #define $ac_func innocuous_$ac_func
36331
36332 /* System header to define __stub macros and hopefully few prototypes,
36333     which can conflict with char $ac_func (); below.
36334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36335     <limits.h> exists even on freestanding compilers.  */
36336
36337 #ifdef __STDC__
36338 # include <limits.h>
36339 #else
36340 # include <assert.h>
36341 #endif
36342
36343 #undef $ac_func
36344
36345 /* Override any GCC internal prototype to avoid an error.
36346    Use char because int might match the return type of a GCC
36347    builtin and then its argument prototype would still apply.  */
36348 #ifdef __cplusplus
36349 extern "C"
36350 #endif
36351 char $ac_func ();
36352 /* The GNU C library defines this for functions which it implements
36353     to always fail with ENOSYS.  Some functions are actually named
36354     something starting with __ and the normal name is an alias.  */
36355 #if defined __stub_$ac_func || defined __stub___$ac_func
36356 choke me
36357 #endif
36358
36359 int
36360 main ()
36361 {
36362 return $ac_func ();
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext conftest$ac_exeext
36368 if { (ac_try="$ac_link"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374   (eval "$ac_link") 2>conftest.er1
36375   ac_status=$?
36376   grep -v '^ *+' conftest.er1 >conftest.err
36377   rm -f conftest.er1
36378   cat conftest.err >&5
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); } && {
36381          test -z "$ac_c_werror_flag" ||
36382          test ! -s conftest.err
36383        } && test -s conftest$ac_exeext &&
36384        $as_test_x conftest$ac_exeext; then
36385   eval "$as_ac_var=yes"
36386 else
36387   echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36389
36390         eval "$as_ac_var=no"
36391 fi
36392
36393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36394       conftest$ac_exeext conftest.$ac_ext
36395 fi
36396 ac_res=`eval echo '${'$as_ac_var'}'`
36397                { echo "$as_me:$LINENO: result: $ac_res" >&5
36398 echo "${ECHO_T}$ac_res" >&6; }
36399 if test `eval echo '${'$as_ac_var'}'` = yes; then
36400   cat >>confdefs.h <<_ACEOF
36401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36402 _ACEOF
36403
36404 fi
36405 done
36406
36407
36408     if test "$ac_cv_func_sigaction" = "no"; then
36409         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36410 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36411         wxUSE_ON_FATAL_EXCEPTION=no
36412     fi
36413
36414     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36415       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36416 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36417 if test "${wx_cv_type_sa_handler+set}" = set; then
36418   echo $ECHO_N "(cached) $ECHO_C" >&6
36419 else
36420
36421                 ac_ext=cpp
36422 ac_cpp='$CXXCPP $CPPFLAGS'
36423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36426
36427         cat >conftest.$ac_ext <<_ACEOF
36428 /* confdefs.h.  */
36429 _ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h.  */
36433 #include <signal.h>
36434 int
36435 main ()
36436 {
36437
36438                         extern void testSigHandler(int);
36439
36440                         struct sigaction sa;
36441                         sa.sa_handler = testSigHandler;
36442
36443   ;
36444   return 0;
36445 }
36446 _ACEOF
36447 rm -f conftest.$ac_objext
36448 if { (ac_try="$ac_compile"
36449 case "(($ac_try" in
36450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36451   *) ac_try_echo=$ac_try;;
36452 esac
36453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36454   (eval "$ac_compile") 2>conftest.er1
36455   ac_status=$?
36456   grep -v '^ *+' conftest.er1 >conftest.err
36457   rm -f conftest.er1
36458   cat conftest.err >&5
36459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460   (exit $ac_status); } && {
36461          test -z "$ac_cxx_werror_flag" ||
36462          test ! -s conftest.err
36463        } && test -s conftest.$ac_objext; then
36464
36465                         wx_cv_type_sa_handler=int
36466
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471
36472                         wx_cv_type_sa_handler=void
36473
36474 fi
36475
36476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36477         ac_ext=c
36478 ac_cpp='$CPP $CPPFLAGS'
36479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36482
36483
36484 fi
36485 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36486 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36487
36488       cat >>confdefs.h <<_ACEOF
36489 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36490 _ACEOF
36491
36492     fi
36493 fi
36494
36495 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36496     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36497 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36498 if test "${wx_cv_func_backtrace+set}" = set; then
36499   echo $ECHO_N "(cached) $ECHO_C" >&6
36500 else
36501
36502             ac_ext=cpp
36503 ac_cpp='$CXXCPP $CPPFLAGS'
36504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36507
36508             cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h.  */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h.  */
36514 #include <execinfo.h>
36515 int
36516 main ()
36517 {
36518
36519                     void *trace[1];
36520                     char **messages;
36521
36522                     backtrace(trace, 1);
36523                     messages = backtrace_symbols(trace, 1);
36524
36525   ;
36526   return 0;
36527 }
36528 _ACEOF
36529 rm -f conftest.$ac_objext
36530 if { (ac_try="$ac_compile"
36531 case "(($ac_try" in
36532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36533   *) ac_try_echo=$ac_try;;
36534 esac
36535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36536   (eval "$ac_compile") 2>conftest.er1
36537   ac_status=$?
36538   grep -v '^ *+' conftest.er1 >conftest.err
36539   rm -f conftest.er1
36540   cat conftest.err >&5
36541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542   (exit $ac_status); } && {
36543          test -z "$ac_cxx_werror_flag" ||
36544          test ! -s conftest.err
36545        } && test -s conftest.$ac_objext; then
36546   wx_cv_func_backtrace=yes
36547 else
36548   echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36550
36551         wx_cv_func_backtrace=no
36552
36553 fi
36554
36555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36556             ac_ext=c
36557 ac_cpp='$CPP $CPPFLAGS'
36558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36561
36562
36563
36564 fi
36565 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36566 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36567
36568
36569     if test "$wx_cv_func_backtrace" = "no"; then
36570         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36571 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36572         wxUSE_STACKWALKER=no
36573     else
36574         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36575 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36576 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36577   echo $ECHO_N "(cached) $ECHO_C" >&6
36578 else
36579
36580                 ac_ext=cpp
36581 ac_cpp='$CXXCPP $CPPFLAGS'
36582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36585
36586                 cat >conftest.$ac_ext <<_ACEOF
36587 /* confdefs.h.  */
36588 _ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h.  */
36592 #include <cxxabi.h>
36593 int
36594 main ()
36595 {
36596
36597                         int rc;
36598                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36599
36600   ;
36601   return 0;
36602 }
36603 _ACEOF
36604 rm -f conftest.$ac_objext conftest$ac_exeext
36605 if { (ac_try="$ac_link"
36606 case "(($ac_try" in
36607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608   *) ac_try_echo=$ac_try;;
36609 esac
36610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36611   (eval "$ac_link") 2>conftest.er1
36612   ac_status=$?
36613   grep -v '^ *+' conftest.er1 >conftest.err
36614   rm -f conftest.er1
36615   cat conftest.err >&5
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); } && {
36618          test -z "$ac_cxx_werror_flag" ||
36619          test ! -s conftest.err
36620        } && test -s conftest$ac_exeext &&
36621        $as_test_x conftest$ac_exeext; then
36622   wx_cv_func_cxa_demangle=yes
36623 else
36624   echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36626
36627         wx_cv_func_cxa_demangle=no
36628
36629 fi
36630
36631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36632       conftest$ac_exeext conftest.$ac_ext
36633                 ac_ext=c
36634 ac_cpp='$CPP $CPPFLAGS'
36635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36638
36639
36640
36641 fi
36642 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36643 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36644
36645         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36646             cat >>confdefs.h <<\_ACEOF
36647 #define HAVE_CXA_DEMANGLE 1
36648 _ACEOF
36649
36650         fi
36651     fi
36652 fi
36653
36654 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36655     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36656 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36657     wxUSE_STACKWALKER=no
36658 fi
36659
36660
36661
36662
36663 for ac_func in mkstemp mktemp
36664 do
36665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36669   echo $ECHO_N "(cached) $ECHO_C" >&6
36670 else
36671   cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36679 #define $ac_func innocuous_$ac_func
36680
36681 /* System header to define __stub macros and hopefully few prototypes,
36682     which can conflict with char $ac_func (); below.
36683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36684     <limits.h> exists even on freestanding compilers.  */
36685
36686 #ifdef __STDC__
36687 # include <limits.h>
36688 #else
36689 # include <assert.h>
36690 #endif
36691
36692 #undef $ac_func
36693
36694 /* Override any GCC internal prototype to avoid an error.
36695    Use char because int might match the return type of a GCC
36696    builtin and then its argument prototype would still apply.  */
36697 #ifdef __cplusplus
36698 extern "C"
36699 #endif
36700 char $ac_func ();
36701 /* The GNU C library defines this for functions which it implements
36702     to always fail with ENOSYS.  Some functions are actually named
36703     something starting with __ and the normal name is an alias.  */
36704 #if defined __stub_$ac_func || defined __stub___$ac_func
36705 choke me
36706 #endif
36707
36708 int
36709 main ()
36710 {
36711 return $ac_func ();
36712   ;
36713   return 0;
36714 }
36715 _ACEOF
36716 rm -f conftest.$ac_objext conftest$ac_exeext
36717 if { (ac_try="$ac_link"
36718 case "(($ac_try" in
36719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36720   *) ac_try_echo=$ac_try;;
36721 esac
36722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36723   (eval "$ac_link") 2>conftest.er1
36724   ac_status=$?
36725   grep -v '^ *+' conftest.er1 >conftest.err
36726   rm -f conftest.er1
36727   cat conftest.err >&5
36728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729   (exit $ac_status); } && {
36730          test -z "$ac_c_werror_flag" ||
36731          test ! -s conftest.err
36732        } && test -s conftest$ac_exeext &&
36733        $as_test_x conftest$ac_exeext; then
36734   eval "$as_ac_var=yes"
36735 else
36736   echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36738
36739         eval "$as_ac_var=no"
36740 fi
36741
36742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36743       conftest$ac_exeext conftest.$ac_ext
36744 fi
36745 ac_res=`eval echo '${'$as_ac_var'}'`
36746                { echo "$as_me:$LINENO: result: $ac_res" >&5
36747 echo "${ECHO_T}$ac_res" >&6; }
36748 if test `eval echo '${'$as_ac_var'}'` = yes; then
36749   cat >>confdefs.h <<_ACEOF
36750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36751 _ACEOF
36752  break
36753 fi
36754 done
36755
36756
36757 { echo "$as_me:$LINENO: checking for statfs" >&5
36758 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36759 if test "${wx_cv_func_statfs+set}" = set; then
36760   echo $ECHO_N "(cached) $ECHO_C" >&6
36761 else
36762   cat >conftest.$ac_ext <<_ACEOF
36763 /* confdefs.h.  */
36764 _ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h.  */
36768
36769              #if defined(__BSD__)
36770              #include <sys/param.h>
36771              #include <sys/mount.h>
36772              #else
36773              #include <sys/vfs.h>
36774              #endif
36775
36776 int
36777 main ()
36778 {
36779
36780              long l;
36781              struct statfs fs;
36782              statfs("/", &fs);
36783              l = fs.f_bsize;
36784              l += fs.f_blocks;
36785              l += fs.f_bavail;
36786
36787   ;
36788   return 0;
36789 }
36790 _ACEOF
36791 rm -f conftest.$ac_objext
36792 if { (ac_try="$ac_compile"
36793 case "(($ac_try" in
36794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36795   *) ac_try_echo=$ac_try;;
36796 esac
36797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36798   (eval "$ac_compile") 2>conftest.er1
36799   ac_status=$?
36800   grep -v '^ *+' conftest.er1 >conftest.err
36801   rm -f conftest.er1
36802   cat conftest.err >&5
36803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804   (exit $ac_status); } && {
36805          test -z "$ac_c_werror_flag" ||
36806          test ! -s conftest.err
36807        } && test -s conftest.$ac_objext; then
36808   wx_cv_func_statfs=yes
36809 else
36810   echo "$as_me: failed program was:" >&5
36811 sed 's/^/| /' conftest.$ac_ext >&5
36812
36813         wx_cv_func_statfs=no
36814
36815 fi
36816
36817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36818
36819 fi
36820 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36821 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36822
36823 if test "$wx_cv_func_statfs" = "yes"; then
36824         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36825 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36826 if test "${wx_cv_func_statfs_decl+set}" = set; then
36827   echo $ECHO_N "(cached) $ECHO_C" >&6
36828 else
36829   ac_ext=cpp
36830 ac_cpp='$CXXCPP $CPPFLAGS'
36831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36834
36835         cat >conftest.$ac_ext <<_ACEOF
36836 /* confdefs.h.  */
36837 _ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h.  */
36841
36842                  #if defined(__BSD__)
36843                  #include <sys/param.h>
36844                  #include <sys/mount.h>
36845                  #else
36846                  #include <sys/vfs.h>
36847                  #endif
36848
36849 int
36850 main ()
36851 {
36852
36853                 struct statfs fs;
36854                 statfs("", &fs);
36855
36856   ;
36857   return 0;
36858 }
36859 _ACEOF
36860 rm -f conftest.$ac_objext
36861 if { (ac_try="$ac_compile"
36862 case "(($ac_try" in
36863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864   *) ac_try_echo=$ac_try;;
36865 esac
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867   (eval "$ac_compile") 2>conftest.er1
36868   ac_status=$?
36869   grep -v '^ *+' conftest.er1 >conftest.err
36870   rm -f conftest.er1
36871   cat conftest.err >&5
36872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873   (exit $ac_status); } && {
36874          test -z "$ac_cxx_werror_flag" ||
36875          test ! -s conftest.err
36876        } && test -s conftest.$ac_objext; then
36877   wx_cv_func_statfs_decl=yes
36878 else
36879   echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36881
36882         wx_cv_func_statfs_decl=no
36883
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887         ac_ext=c
36888 ac_cpp='$CPP $CPPFLAGS'
36889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36892
36893
36894 fi
36895 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36896 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36897
36898     if test "$wx_cv_func_statfs_decl" = "yes"; then
36899         cat >>confdefs.h <<\_ACEOF
36900 #define HAVE_STATFS_DECL 1
36901 _ACEOF
36902
36903     fi
36904
36905     wx_cv_type_statvfs_t="struct statfs"
36906     cat >>confdefs.h <<\_ACEOF
36907 #define HAVE_STATFS 1
36908 _ACEOF
36909
36910 else
36911     { echo "$as_me:$LINENO: checking for statvfs" >&5
36912 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36913 if test "${wx_cv_func_statvfs+set}" = set; then
36914   echo $ECHO_N "(cached) $ECHO_C" >&6
36915 else
36916   cat >conftest.$ac_ext <<_ACEOF
36917 /* confdefs.h.  */
36918 _ACEOF
36919 cat confdefs.h >>conftest.$ac_ext
36920 cat >>conftest.$ac_ext <<_ACEOF
36921 /* end confdefs.h.  */
36922
36923                 #include <stddef.h>
36924                 #include <sys/statvfs.h>
36925
36926 int
36927 main ()
36928 {
36929
36930                 statvfs("/", NULL);
36931
36932   ;
36933   return 0;
36934 }
36935 _ACEOF
36936 rm -f conftest.$ac_objext
36937 if { (ac_try="$ac_compile"
36938 case "(($ac_try" in
36939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36940   *) ac_try_echo=$ac_try;;
36941 esac
36942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36943   (eval "$ac_compile") 2>conftest.er1
36944   ac_status=$?
36945   grep -v '^ *+' conftest.er1 >conftest.err
36946   rm -f conftest.er1
36947   cat conftest.err >&5
36948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949   (exit $ac_status); } && {
36950          test -z "$ac_c_werror_flag" ||
36951          test ! -s conftest.err
36952        } && test -s conftest.$ac_objext; then
36953   wx_cv_func_statvfs=yes
36954 else
36955   echo "$as_me: failed program was:" >&5
36956 sed 's/^/| /' conftest.$ac_ext >&5
36957
36958         wx_cv_func_statvfs=no
36959
36960 fi
36961
36962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36963
36964 fi
36965 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36966 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36967
36968     if test "$wx_cv_func_statvfs" = "yes"; then
36969                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36970 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36971 if test "${wx_cv_type_statvfs_t+set}" = set; then
36972   echo $ECHO_N "(cached) $ECHO_C" >&6
36973 else
36974   ac_ext=cpp
36975 ac_cpp='$CXXCPP $CPPFLAGS'
36976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36979
36980             cat >conftest.$ac_ext <<_ACEOF
36981 /* confdefs.h.  */
36982 _ACEOF
36983 cat confdefs.h >>conftest.$ac_ext
36984 cat >>conftest.$ac_ext <<_ACEOF
36985 /* end confdefs.h.  */
36986
36987                     #include <sys/statvfs.h>
36988
36989 int
36990 main ()
36991 {
36992
36993                     long l;
36994                     statvfs_t fs;
36995                     statvfs("/", &fs);
36996                     l = fs.f_bsize;
36997                     l += fs.f_blocks;
36998                     l += fs.f_bavail;
36999
37000   ;
37001   return 0;
37002 }
37003 _ACEOF
37004 rm -f conftest.$ac_objext
37005 if { (ac_try="$ac_compile"
37006 case "(($ac_try" in
37007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37008   *) ac_try_echo=$ac_try;;
37009 esac
37010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37011   (eval "$ac_compile") 2>conftest.er1
37012   ac_status=$?
37013   grep -v '^ *+' conftest.er1 >conftest.err
37014   rm -f conftest.er1
37015   cat conftest.err >&5
37016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017   (exit $ac_status); } && {
37018          test -z "$ac_cxx_werror_flag" ||
37019          test ! -s conftest.err
37020        } && test -s conftest.$ac_objext; then
37021   wx_cv_type_statvfs_t=statvfs_t
37022 else
37023   echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026
37027                     cat >conftest.$ac_ext <<_ACEOF
37028 /* confdefs.h.  */
37029 _ACEOF
37030 cat confdefs.h >>conftest.$ac_ext
37031 cat >>conftest.$ac_ext <<_ACEOF
37032 /* end confdefs.h.  */
37033
37034                             #include <sys/statvfs.h>
37035
37036 int
37037 main ()
37038 {
37039
37040                             long l;
37041                             struct statvfs fs;
37042                             statvfs("/", &fs);
37043                             l = fs.f_bsize;
37044                             l += fs.f_blocks;
37045                             l += fs.f_bavail;
37046
37047   ;
37048   return 0;
37049 }
37050 _ACEOF
37051 rm -f conftest.$ac_objext
37052 if { (ac_try="$ac_compile"
37053 case "(($ac_try" in
37054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37055   *) ac_try_echo=$ac_try;;
37056 esac
37057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37058   (eval "$ac_compile") 2>conftest.er1
37059   ac_status=$?
37060   grep -v '^ *+' conftest.er1 >conftest.err
37061   rm -f conftest.er1
37062   cat conftest.err >&5
37063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064   (exit $ac_status); } && {
37065          test -z "$ac_cxx_werror_flag" ||
37066          test ! -s conftest.err
37067        } && test -s conftest.$ac_objext; then
37068   wx_cv_type_statvfs_t="struct statvfs"
37069 else
37070   echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37072
37073         wx_cv_type_statvfs_t="unknown"
37074
37075 fi
37076
37077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37078
37079
37080 fi
37081
37082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37083             ac_ext=c
37084 ac_cpp='$CPP $CPPFLAGS'
37085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37088
37089
37090 fi
37091 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37092 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37093
37094         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37095             cat >>confdefs.h <<\_ACEOF
37096 #define HAVE_STATVFS 1
37097 _ACEOF
37098
37099         fi
37100     else
37101                 wx_cv_type_statvfs_t="unknown"
37102     fi
37103 fi
37104
37105 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37106     cat >>confdefs.h <<_ACEOF
37107 #define WX_STATFS_T $wx_cv_type_statvfs_t
37108 _ACEOF
37109
37110 else
37111     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37112 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37113 fi
37114
37115 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37116
37117
37118 for ac_func in fcntl flock
37119 do
37120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37124   echo $ECHO_N "(cached) $ECHO_C" >&6
37125 else
37126   cat >conftest.$ac_ext <<_ACEOF
37127 /* confdefs.h.  */
37128 _ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h.  */
37132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37134 #define $ac_func innocuous_$ac_func
37135
37136 /* System header to define __stub macros and hopefully few prototypes,
37137     which can conflict with char $ac_func (); below.
37138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37139     <limits.h> exists even on freestanding compilers.  */
37140
37141 #ifdef __STDC__
37142 # include <limits.h>
37143 #else
37144 # include <assert.h>
37145 #endif
37146
37147 #undef $ac_func
37148
37149 /* Override any GCC internal prototype to avoid an error.
37150    Use char because int might match the return type of a GCC
37151    builtin and then its argument prototype would still apply.  */
37152 #ifdef __cplusplus
37153 extern "C"
37154 #endif
37155 char $ac_func ();
37156 /* The GNU C library defines this for functions which it implements
37157     to always fail with ENOSYS.  Some functions are actually named
37158     something starting with __ and the normal name is an alias.  */
37159 #if defined __stub_$ac_func || defined __stub___$ac_func
37160 choke me
37161 #endif
37162
37163 int
37164 main ()
37165 {
37166 return $ac_func ();
37167   ;
37168   return 0;
37169 }
37170 _ACEOF
37171 rm -f conftest.$ac_objext conftest$ac_exeext
37172 if { (ac_try="$ac_link"
37173 case "(($ac_try" in
37174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175   *) ac_try_echo=$ac_try;;
37176 esac
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178   (eval "$ac_link") 2>conftest.er1
37179   ac_status=$?
37180   grep -v '^ *+' conftest.er1 >conftest.err
37181   rm -f conftest.er1
37182   cat conftest.err >&5
37183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184   (exit $ac_status); } && {
37185          test -z "$ac_c_werror_flag" ||
37186          test ! -s conftest.err
37187        } && test -s conftest$ac_exeext &&
37188        $as_test_x conftest$ac_exeext; then
37189   eval "$as_ac_var=yes"
37190 else
37191   echo "$as_me: failed program was:" >&5
37192 sed 's/^/| /' conftest.$ac_ext >&5
37193
37194         eval "$as_ac_var=no"
37195 fi
37196
37197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37198       conftest$ac_exeext conftest.$ac_ext
37199 fi
37200 ac_res=`eval echo '${'$as_ac_var'}'`
37201                { echo "$as_me:$LINENO: result: $ac_res" >&5
37202 echo "${ECHO_T}$ac_res" >&6; }
37203 if test `eval echo '${'$as_ac_var'}'` = yes; then
37204   cat >>confdefs.h <<_ACEOF
37205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37206 _ACEOF
37207  break
37208 fi
37209 done
37210
37211
37212     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37213         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37214 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37215         wxUSE_SNGLINST_CHECKER=no
37216     fi
37217 fi
37218
37219
37220
37221 for ac_func in setenv putenv
37222 do
37223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37227   echo $ECHO_N "(cached) $ECHO_C" >&6
37228 else
37229   cat >conftest.$ac_ext <<_ACEOF
37230 /* confdefs.h.  */
37231 _ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h.  */
37235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37237 #define $ac_func innocuous_$ac_func
37238
37239 /* System header to define __stub macros and hopefully few prototypes,
37240     which can conflict with char $ac_func (); below.
37241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37242     <limits.h> exists even on freestanding compilers.  */
37243
37244 #ifdef __STDC__
37245 # include <limits.h>
37246 #else
37247 # include <assert.h>
37248 #endif
37249
37250 #undef $ac_func
37251
37252 /* Override any GCC internal prototype to avoid an error.
37253    Use char because int might match the return type of a GCC
37254    builtin and then its argument prototype would still apply.  */
37255 #ifdef __cplusplus
37256 extern "C"
37257 #endif
37258 char $ac_func ();
37259 /* The GNU C library defines this for functions which it implements
37260     to always fail with ENOSYS.  Some functions are actually named
37261     something starting with __ and the normal name is an alias.  */
37262 #if defined __stub_$ac_func || defined __stub___$ac_func
37263 choke me
37264 #endif
37265
37266 int
37267 main ()
37268 {
37269 return $ac_func ();
37270   ;
37271   return 0;
37272 }
37273 _ACEOF
37274 rm -f conftest.$ac_objext conftest$ac_exeext
37275 if { (ac_try="$ac_link"
37276 case "(($ac_try" in
37277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37278   *) ac_try_echo=$ac_try;;
37279 esac
37280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37281   (eval "$ac_link") 2>conftest.er1
37282   ac_status=$?
37283   grep -v '^ *+' conftest.er1 >conftest.err
37284   rm -f conftest.er1
37285   cat conftest.err >&5
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); } && {
37288          test -z "$ac_c_werror_flag" ||
37289          test ! -s conftest.err
37290        } && test -s conftest$ac_exeext &&
37291        $as_test_x conftest$ac_exeext; then
37292   eval "$as_ac_var=yes"
37293 else
37294   echo "$as_me: failed program was:" >&5
37295 sed 's/^/| /' conftest.$ac_ext >&5
37296
37297         eval "$as_ac_var=no"
37298 fi
37299
37300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37301       conftest$ac_exeext conftest.$ac_ext
37302 fi
37303 ac_res=`eval echo '${'$as_ac_var'}'`
37304                { echo "$as_me:$LINENO: result: $ac_res" >&5
37305 echo "${ECHO_T}$ac_res" >&6; }
37306 if test `eval echo '${'$as_ac_var'}'` = yes; then
37307   cat >>confdefs.h <<_ACEOF
37308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37309 _ACEOF
37310  break
37311 fi
37312 done
37313
37314 if test "$ac_cv_func_setenv" = "yes"; then
37315
37316 for ac_func in unsetenv
37317 do
37318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37322   echo $ECHO_N "(cached) $ECHO_C" >&6
37323 else
37324   cat >conftest.$ac_ext <<_ACEOF
37325 /* confdefs.h.  */
37326 _ACEOF
37327 cat confdefs.h >>conftest.$ac_ext
37328 cat >>conftest.$ac_ext <<_ACEOF
37329 /* end confdefs.h.  */
37330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37332 #define $ac_func innocuous_$ac_func
37333
37334 /* System header to define __stub macros and hopefully few prototypes,
37335     which can conflict with char $ac_func (); below.
37336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37337     <limits.h> exists even on freestanding compilers.  */
37338
37339 #ifdef __STDC__
37340 # include <limits.h>
37341 #else
37342 # include <assert.h>
37343 #endif
37344
37345 #undef $ac_func
37346
37347 /* Override any GCC internal prototype to avoid an error.
37348    Use char because int might match the return type of a GCC
37349    builtin and then its argument prototype would still apply.  */
37350 #ifdef __cplusplus
37351 extern "C"
37352 #endif
37353 char $ac_func ();
37354 /* The GNU C library defines this for functions which it implements
37355     to always fail with ENOSYS.  Some functions are actually named
37356     something starting with __ and the normal name is an alias.  */
37357 #if defined __stub_$ac_func || defined __stub___$ac_func
37358 choke me
37359 #endif
37360
37361 int
37362 main ()
37363 {
37364 return $ac_func ();
37365   ;
37366   return 0;
37367 }
37368 _ACEOF
37369 rm -f conftest.$ac_objext conftest$ac_exeext
37370 if { (ac_try="$ac_link"
37371 case "(($ac_try" in
37372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37373   *) ac_try_echo=$ac_try;;
37374 esac
37375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37376   (eval "$ac_link") 2>conftest.er1
37377   ac_status=$?
37378   grep -v '^ *+' conftest.er1 >conftest.err
37379   rm -f conftest.er1
37380   cat conftest.err >&5
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } && {
37383          test -z "$ac_c_werror_flag" ||
37384          test ! -s conftest.err
37385        } && test -s conftest$ac_exeext &&
37386        $as_test_x conftest$ac_exeext; then
37387   eval "$as_ac_var=yes"
37388 else
37389   echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37391
37392         eval "$as_ac_var=no"
37393 fi
37394
37395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37396       conftest$ac_exeext conftest.$ac_ext
37397 fi
37398 ac_res=`eval echo '${'$as_ac_var'}'`
37399                { echo "$as_me:$LINENO: result: $ac_res" >&5
37400 echo "${ECHO_T}$ac_res" >&6; }
37401 if test `eval echo '${'$as_ac_var'}'` = yes; then
37402   cat >>confdefs.h <<_ACEOF
37403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37404 _ACEOF
37405
37406 fi
37407 done
37408
37409 fi
37410
37411 HAVE_SOME_SLEEP_FUNC=0
37412 if test "$USE_BEOS" = 1; then
37413             cat >>confdefs.h <<\_ACEOF
37414 #define HAVE_SLEEP 1
37415 _ACEOF
37416
37417     HAVE_SOME_SLEEP_FUNC=1
37418 fi
37419
37420 if test "$USE_DARWIN" = 1; then
37421             cat >>confdefs.h <<\_ACEOF
37422 #define HAVE_USLEEP 1
37423 _ACEOF
37424
37425     HAVE_SOME_SLEEP_FUNC=1
37426 fi
37427
37428 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37429         POSIX4_LINK=
37430
37431 for ac_func in nanosleep
37432 do
37433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37437   echo $ECHO_N "(cached) $ECHO_C" >&6
37438 else
37439   cat >conftest.$ac_ext <<_ACEOF
37440 /* confdefs.h.  */
37441 _ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h.  */
37445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37447 #define $ac_func innocuous_$ac_func
37448
37449 /* System header to define __stub macros and hopefully few prototypes,
37450     which can conflict with char $ac_func (); below.
37451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37452     <limits.h> exists even on freestanding compilers.  */
37453
37454 #ifdef __STDC__
37455 # include <limits.h>
37456 #else
37457 # include <assert.h>
37458 #endif
37459
37460 #undef $ac_func
37461
37462 /* Override any GCC internal prototype to avoid an error.
37463    Use char because int might match the return type of a GCC
37464    builtin and then its argument prototype would still apply.  */
37465 #ifdef __cplusplus
37466 extern "C"
37467 #endif
37468 char $ac_func ();
37469 /* The GNU C library defines this for functions which it implements
37470     to always fail with ENOSYS.  Some functions are actually named
37471     something starting with __ and the normal name is an alias.  */
37472 #if defined __stub_$ac_func || defined __stub___$ac_func
37473 choke me
37474 #endif
37475
37476 int
37477 main ()
37478 {
37479 return $ac_func ();
37480   ;
37481   return 0;
37482 }
37483 _ACEOF
37484 rm -f conftest.$ac_objext conftest$ac_exeext
37485 if { (ac_try="$ac_link"
37486 case "(($ac_try" in
37487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37488   *) ac_try_echo=$ac_try;;
37489 esac
37490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37491   (eval "$ac_link") 2>conftest.er1
37492   ac_status=$?
37493   grep -v '^ *+' conftest.er1 >conftest.err
37494   rm -f conftest.er1
37495   cat conftest.err >&5
37496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497   (exit $ac_status); } && {
37498          test -z "$ac_c_werror_flag" ||
37499          test ! -s conftest.err
37500        } && test -s conftest$ac_exeext &&
37501        $as_test_x conftest$ac_exeext; then
37502   eval "$as_ac_var=yes"
37503 else
37504   echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37506
37507         eval "$as_ac_var=no"
37508 fi
37509
37510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37511       conftest$ac_exeext conftest.$ac_ext
37512 fi
37513 ac_res=`eval echo '${'$as_ac_var'}'`
37514                { echo "$as_me:$LINENO: result: $ac_res" >&5
37515 echo "${ECHO_T}$ac_res" >&6; }
37516 if test `eval echo '${'$as_ac_var'}'` = yes; then
37517   cat >>confdefs.h <<_ACEOF
37518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37519 _ACEOF
37520  cat >>confdefs.h <<\_ACEOF
37521 #define HAVE_NANOSLEEP 1
37522 _ACEOF
37523
37524 else
37525
37526             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37527 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37528 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37529   echo $ECHO_N "(cached) $ECHO_C" >&6
37530 else
37531   ac_check_lib_save_LIBS=$LIBS
37532 LIBS="-lposix4  $LIBS"
37533 cat >conftest.$ac_ext <<_ACEOF
37534 /* confdefs.h.  */
37535 _ACEOF
37536 cat confdefs.h >>conftest.$ac_ext
37537 cat >>conftest.$ac_ext <<_ACEOF
37538 /* end confdefs.h.  */
37539
37540 /* Override any GCC internal prototype to avoid an error.
37541    Use char because int might match the return type of a GCC
37542    builtin and then its argument prototype would still apply.  */
37543 #ifdef __cplusplus
37544 extern "C"
37545 #endif
37546 char nanosleep ();
37547 int
37548 main ()
37549 {
37550 return nanosleep ();
37551   ;
37552   return 0;
37553 }
37554 _ACEOF
37555 rm -f conftest.$ac_objext conftest$ac_exeext
37556 if { (ac_try="$ac_link"
37557 case "(($ac_try" in
37558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37559   *) ac_try_echo=$ac_try;;
37560 esac
37561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37562   (eval "$ac_link") 2>conftest.er1
37563   ac_status=$?
37564   grep -v '^ *+' conftest.er1 >conftest.err
37565   rm -f conftest.er1
37566   cat conftest.err >&5
37567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568   (exit $ac_status); } && {
37569          test -z "$ac_c_werror_flag" ||
37570          test ! -s conftest.err
37571        } && test -s conftest$ac_exeext &&
37572        $as_test_x conftest$ac_exeext; then
37573   ac_cv_lib_posix4_nanosleep=yes
37574 else
37575   echo "$as_me: failed program was:" >&5
37576 sed 's/^/| /' conftest.$ac_ext >&5
37577
37578         ac_cv_lib_posix4_nanosleep=no
37579 fi
37580
37581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37582       conftest$ac_exeext conftest.$ac_ext
37583 LIBS=$ac_check_lib_save_LIBS
37584 fi
37585 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37586 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37587 if test $ac_cv_lib_posix4_nanosleep = yes; then
37588
37589                     cat >>confdefs.h <<\_ACEOF
37590 #define HAVE_NANOSLEEP 1
37591 _ACEOF
37592
37593                     POSIX4_LINK=" -lposix4"
37594
37595 else
37596
37597
37598   for wx_func in usleep
37599   do
37600     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37601 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37602 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37603   echo $ECHO_N "(cached) $ECHO_C" >&6
37604 else
37605
37606         cat >conftest.$ac_ext <<_ACEOF
37607
37608             /* confdefs.h.  */
37609 _ACEOF
37610 cat confdefs.h >>conftest.$ac_ext
37611 cat >>conftest.$ac_ext <<_ACEOF
37612 /* end confdefs.h.  */
37613
37614
37615                 $ac_includes_default
37616
37617 int
37618 main ()
37619 {
37620
37621                 #ifndef $wx_func
37622                   &$wx_func;
37623                 #endif
37624
37625
37626   ;
37627   return 0;
37628 }
37629
37630 _ACEOF
37631 rm -f conftest.$ac_objext conftest$ac_exeext
37632 if { (ac_try="$ac_link"
37633 case "(($ac_try" in
37634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37635   *) ac_try_echo=$ac_try;;
37636 esac
37637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37638   (eval "$ac_link") 2>conftest.er1
37639   ac_status=$?
37640   grep -v '^ *+' conftest.er1 >conftest.err
37641   rm -f conftest.er1
37642   cat conftest.err >&5
37643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644   (exit $ac_status); } && {
37645          test -z "$ac_c_werror_flag" ||
37646          test ! -s conftest.err
37647        } && test -s conftest$ac_exeext &&
37648        $as_test_x conftest$ac_exeext; then
37649   eval wx_cv_func_$wx_func=yes
37650 else
37651   echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37653
37654         eval wx_cv_func_$wx_func=no
37655 fi
37656
37657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37658       conftest$ac_exeext conftest.$ac_ext
37659
37660 fi
37661 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37662                { echo "$as_me:$LINENO: result: $ac_res" >&5
37663 echo "${ECHO_T}$ac_res" >&6; }
37664
37665     if eval test \$wx_cv_func_$wx_func = yes
37666     then
37667       cat >>confdefs.h <<_ACEOF
37668 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37669 _ACEOF
37670
37671
37672     else
37673       :
37674       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37675 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37676
37677     fi
37678   done
37679
37680
37681
37682 fi
37683
37684
37685
37686 fi
37687 done
37688
37689 fi
37690
37691
37692   for wx_func in uname
37693   do
37694     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37695 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37696 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37697   echo $ECHO_N "(cached) $ECHO_C" >&6
37698 else
37699
37700         cat >conftest.$ac_ext <<_ACEOF
37701
37702             /* confdefs.h.  */
37703 _ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h.  */
37707
37708                 #include <sys/utsname.h>
37709                 $ac_includes_default
37710
37711 int
37712 main ()
37713 {
37714
37715                 #ifndef $wx_func
37716                   &$wx_func;
37717                 #endif
37718
37719
37720   ;
37721   return 0;
37722 }
37723
37724 _ACEOF
37725 rm -f conftest.$ac_objext conftest$ac_exeext
37726 if { (ac_try="$ac_link"
37727 case "(($ac_try" in
37728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37729   *) ac_try_echo=$ac_try;;
37730 esac
37731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37732   (eval "$ac_link") 2>conftest.er1
37733   ac_status=$?
37734   grep -v '^ *+' conftest.er1 >conftest.err
37735   rm -f conftest.er1
37736   cat conftest.err >&5
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } && {
37739          test -z "$ac_c_werror_flag" ||
37740          test ! -s conftest.err
37741        } && test -s conftest$ac_exeext &&
37742        $as_test_x conftest$ac_exeext; then
37743   eval wx_cv_func_$wx_func=yes
37744 else
37745   echo "$as_me: failed program was:" >&5
37746 sed 's/^/| /' conftest.$ac_ext >&5
37747
37748         eval wx_cv_func_$wx_func=no
37749 fi
37750
37751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37752       conftest$ac_exeext conftest.$ac_ext
37753
37754 fi
37755 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37756                { echo "$as_me:$LINENO: result: $ac_res" >&5
37757 echo "${ECHO_T}$ac_res" >&6; }
37758
37759     if eval test \$wx_cv_func_$wx_func = yes
37760     then
37761       cat >>confdefs.h <<_ACEOF
37762 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37763 _ACEOF
37764
37765
37766     else
37767       :
37768
37769     fi
37770   done
37771
37772 if test "$wx_cv_func_uname" != yes; then
37773
37774   for wx_func in gethostname
37775   do
37776     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37777 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37778 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37779   echo $ECHO_N "(cached) $ECHO_C" >&6
37780 else
37781
37782         cat >conftest.$ac_ext <<_ACEOF
37783
37784             /* confdefs.h.  */
37785 _ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h.  */
37789
37790
37791                 $ac_includes_default
37792
37793 int
37794 main ()
37795 {
37796
37797                 #ifndef $wx_func
37798                   &$wx_func;
37799                 #endif
37800
37801
37802   ;
37803   return 0;
37804 }
37805
37806 _ACEOF
37807 rm -f conftest.$ac_objext conftest$ac_exeext
37808 if { (ac_try="$ac_link"
37809 case "(($ac_try" in
37810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37811   *) ac_try_echo=$ac_try;;
37812 esac
37813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37814   (eval "$ac_link") 2>conftest.er1
37815   ac_status=$?
37816   grep -v '^ *+' conftest.er1 >conftest.err
37817   rm -f conftest.er1
37818   cat conftest.err >&5
37819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820   (exit $ac_status); } && {
37821          test -z "$ac_c_werror_flag" ||
37822          test ! -s conftest.err
37823        } && test -s conftest$ac_exeext &&
37824        $as_test_x conftest$ac_exeext; then
37825   eval wx_cv_func_$wx_func=yes
37826 else
37827   echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37829
37830         eval wx_cv_func_$wx_func=no
37831 fi
37832
37833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37834       conftest$ac_exeext conftest.$ac_ext
37835
37836 fi
37837 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37838                { echo "$as_me:$LINENO: result: $ac_res" >&5
37839 echo "${ECHO_T}$ac_res" >&6; }
37840
37841     if eval test \$wx_cv_func_$wx_func = yes
37842     then
37843       cat >>confdefs.h <<_ACEOF
37844 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37845 _ACEOF
37846
37847
37848     else
37849       :
37850
37851     fi
37852   done
37853
37854 fi
37855
37856
37857   for wx_func in strtok_r
37858   do
37859     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37860 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37861 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37862   echo $ECHO_N "(cached) $ECHO_C" >&6
37863 else
37864
37865         cat >conftest.$ac_ext <<_ACEOF
37866
37867             /* confdefs.h.  */
37868 _ACEOF
37869 cat confdefs.h >>conftest.$ac_ext
37870 cat >>conftest.$ac_ext <<_ACEOF
37871 /* end confdefs.h.  */
37872
37873                 #define _REENTRANT
37874                 $ac_includes_default
37875
37876 int
37877 main ()
37878 {
37879
37880                 #ifndef $wx_func
37881                   &$wx_func;
37882                 #endif
37883
37884
37885   ;
37886   return 0;
37887 }
37888
37889 _ACEOF
37890 rm -f conftest.$ac_objext conftest$ac_exeext
37891 if { (ac_try="$ac_link"
37892 case "(($ac_try" in
37893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37894   *) ac_try_echo=$ac_try;;
37895 esac
37896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37897   (eval "$ac_link") 2>conftest.er1
37898   ac_status=$?
37899   grep -v '^ *+' conftest.er1 >conftest.err
37900   rm -f conftest.er1
37901   cat conftest.err >&5
37902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903   (exit $ac_status); } && {
37904          test -z "$ac_c_werror_flag" ||
37905          test ! -s conftest.err
37906        } && test -s conftest$ac_exeext &&
37907        $as_test_x conftest$ac_exeext; then
37908   eval wx_cv_func_$wx_func=yes
37909 else
37910   echo "$as_me: failed program was:" >&5
37911 sed 's/^/| /' conftest.$ac_ext >&5
37912
37913         eval wx_cv_func_$wx_func=no
37914 fi
37915
37916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37917       conftest$ac_exeext conftest.$ac_ext
37918
37919 fi
37920 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37921                { echo "$as_me:$LINENO: result: $ac_res" >&5
37922 echo "${ECHO_T}$ac_res" >&6; }
37923
37924     if eval test \$wx_cv_func_$wx_func = yes
37925     then
37926       cat >>confdefs.h <<_ACEOF
37927 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37928 _ACEOF
37929
37930
37931     else
37932       :
37933
37934     fi
37935   done
37936
37937
37938 INET_LINK=
37939
37940 for ac_func in inet_addr
37941 do
37942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37946   echo $ECHO_N "(cached) $ECHO_C" >&6
37947 else
37948   cat >conftest.$ac_ext <<_ACEOF
37949 /* confdefs.h.  */
37950 _ACEOF
37951 cat confdefs.h >>conftest.$ac_ext
37952 cat >>conftest.$ac_ext <<_ACEOF
37953 /* end confdefs.h.  */
37954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37956 #define $ac_func innocuous_$ac_func
37957
37958 /* System header to define __stub macros and hopefully few prototypes,
37959     which can conflict with char $ac_func (); below.
37960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37961     <limits.h> exists even on freestanding compilers.  */
37962
37963 #ifdef __STDC__
37964 # include <limits.h>
37965 #else
37966 # include <assert.h>
37967 #endif
37968
37969 #undef $ac_func
37970
37971 /* Override any GCC internal prototype to avoid an error.
37972    Use char because int might match the return type of a GCC
37973    builtin and then its argument prototype would still apply.  */
37974 #ifdef __cplusplus
37975 extern "C"
37976 #endif
37977 char $ac_func ();
37978 /* The GNU C library defines this for functions which it implements
37979     to always fail with ENOSYS.  Some functions are actually named
37980     something starting with __ and the normal name is an alias.  */
37981 #if defined __stub_$ac_func || defined __stub___$ac_func
37982 choke me
37983 #endif
37984
37985 int
37986 main ()
37987 {
37988 return $ac_func ();
37989   ;
37990   return 0;
37991 }
37992 _ACEOF
37993 rm -f conftest.$ac_objext conftest$ac_exeext
37994 if { (ac_try="$ac_link"
37995 case "(($ac_try" in
37996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997   *) ac_try_echo=$ac_try;;
37998 esac
37999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38000   (eval "$ac_link") 2>conftest.er1
38001   ac_status=$?
38002   grep -v '^ *+' conftest.er1 >conftest.err
38003   rm -f conftest.er1
38004   cat conftest.err >&5
38005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006   (exit $ac_status); } && {
38007          test -z "$ac_c_werror_flag" ||
38008          test ! -s conftest.err
38009        } && test -s conftest$ac_exeext &&
38010        $as_test_x conftest$ac_exeext; then
38011   eval "$as_ac_var=yes"
38012 else
38013   echo "$as_me: failed program was:" >&5
38014 sed 's/^/| /' conftest.$ac_ext >&5
38015
38016         eval "$as_ac_var=no"
38017 fi
38018
38019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38020       conftest$ac_exeext conftest.$ac_ext
38021 fi
38022 ac_res=`eval echo '${'$as_ac_var'}'`
38023                { echo "$as_me:$LINENO: result: $ac_res" >&5
38024 echo "${ECHO_T}$ac_res" >&6; }
38025 if test `eval echo '${'$as_ac_var'}'` = yes; then
38026   cat >>confdefs.h <<_ACEOF
38027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38028 _ACEOF
38029  cat >>confdefs.h <<\_ACEOF
38030 #define HAVE_INET_ADDR 1
38031 _ACEOF
38032
38033 else
38034
38035         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38036 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38037 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38038   echo $ECHO_N "(cached) $ECHO_C" >&6
38039 else
38040   ac_check_lib_save_LIBS=$LIBS
38041 LIBS="-lnsl  $LIBS"
38042 cat >conftest.$ac_ext <<_ACEOF
38043 /* confdefs.h.  */
38044 _ACEOF
38045 cat confdefs.h >>conftest.$ac_ext
38046 cat >>conftest.$ac_ext <<_ACEOF
38047 /* end confdefs.h.  */
38048
38049 /* Override any GCC internal prototype to avoid an error.
38050    Use char because int might match the return type of a GCC
38051    builtin and then its argument prototype would still apply.  */
38052 #ifdef __cplusplus
38053 extern "C"
38054 #endif
38055 char inet_addr ();
38056 int
38057 main ()
38058 {
38059 return inet_addr ();
38060   ;
38061   return 0;
38062 }
38063 _ACEOF
38064 rm -f conftest.$ac_objext conftest$ac_exeext
38065 if { (ac_try="$ac_link"
38066 case "(($ac_try" in
38067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38068   *) ac_try_echo=$ac_try;;
38069 esac
38070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38071   (eval "$ac_link") 2>conftest.er1
38072   ac_status=$?
38073   grep -v '^ *+' conftest.er1 >conftest.err
38074   rm -f conftest.er1
38075   cat conftest.err >&5
38076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38077   (exit $ac_status); } && {
38078          test -z "$ac_c_werror_flag" ||
38079          test ! -s conftest.err
38080        } && test -s conftest$ac_exeext &&
38081        $as_test_x conftest$ac_exeext; then
38082   ac_cv_lib_nsl_inet_addr=yes
38083 else
38084   echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38086
38087         ac_cv_lib_nsl_inet_addr=no
38088 fi
38089
38090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38091       conftest$ac_exeext conftest.$ac_ext
38092 LIBS=$ac_check_lib_save_LIBS
38093 fi
38094 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38095 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38096 if test $ac_cv_lib_nsl_inet_addr = yes; then
38097   INET_LINK="nsl"
38098 else
38099
38100                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38101 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38102 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38103   echo $ECHO_N "(cached) $ECHO_C" >&6
38104 else
38105   ac_check_lib_save_LIBS=$LIBS
38106 LIBS="-lresolv  $LIBS"
38107 cat >conftest.$ac_ext <<_ACEOF
38108 /* confdefs.h.  */
38109 _ACEOF
38110 cat confdefs.h >>conftest.$ac_ext
38111 cat >>conftest.$ac_ext <<_ACEOF
38112 /* end confdefs.h.  */
38113
38114 /* Override any GCC internal prototype to avoid an error.
38115    Use char because int might match the return type of a GCC
38116    builtin and then its argument prototype would still apply.  */
38117 #ifdef __cplusplus
38118 extern "C"
38119 #endif
38120 char inet_addr ();
38121 int
38122 main ()
38123 {
38124 return inet_addr ();
38125   ;
38126   return 0;
38127 }
38128 _ACEOF
38129 rm -f conftest.$ac_objext conftest$ac_exeext
38130 if { (ac_try="$ac_link"
38131 case "(($ac_try" in
38132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38133   *) ac_try_echo=$ac_try;;
38134 esac
38135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38136   (eval "$ac_link") 2>conftest.er1
38137   ac_status=$?
38138   grep -v '^ *+' conftest.er1 >conftest.err
38139   rm -f conftest.er1
38140   cat conftest.err >&5
38141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142   (exit $ac_status); } && {
38143          test -z "$ac_c_werror_flag" ||
38144          test ! -s conftest.err
38145        } && test -s conftest$ac_exeext &&
38146        $as_test_x conftest$ac_exeext; then
38147   ac_cv_lib_resolv_inet_addr=yes
38148 else
38149   echo "$as_me: failed program was:" >&5
38150 sed 's/^/| /' conftest.$ac_ext >&5
38151
38152         ac_cv_lib_resolv_inet_addr=no
38153 fi
38154
38155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38156       conftest$ac_exeext conftest.$ac_ext
38157 LIBS=$ac_check_lib_save_LIBS
38158 fi
38159 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38160 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38161 if test $ac_cv_lib_resolv_inet_addr = yes; then
38162   INET_LINK="resolv"
38163 else
38164
38165                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38166 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38167 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38168   echo $ECHO_N "(cached) $ECHO_C" >&6
38169 else
38170   ac_check_lib_save_LIBS=$LIBS
38171 LIBS="-lsocket  $LIBS"
38172 cat >conftest.$ac_ext <<_ACEOF
38173 /* confdefs.h.  */
38174 _ACEOF
38175 cat confdefs.h >>conftest.$ac_ext
38176 cat >>conftest.$ac_ext <<_ACEOF
38177 /* end confdefs.h.  */
38178
38179 /* Override any GCC internal prototype to avoid an error.
38180    Use char because int might match the return type of a GCC
38181    builtin and then its argument prototype would still apply.  */
38182 #ifdef __cplusplus
38183 extern "C"
38184 #endif
38185 char inet_addr ();
38186 int
38187 main ()
38188 {
38189 return inet_addr ();
38190   ;
38191   return 0;
38192 }
38193 _ACEOF
38194 rm -f conftest.$ac_objext conftest$ac_exeext
38195 if { (ac_try="$ac_link"
38196 case "(($ac_try" in
38197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38198   *) ac_try_echo=$ac_try;;
38199 esac
38200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38201   (eval "$ac_link") 2>conftest.er1
38202   ac_status=$?
38203   grep -v '^ *+' conftest.er1 >conftest.err
38204   rm -f conftest.er1
38205   cat conftest.err >&5
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); } && {
38208          test -z "$ac_c_werror_flag" ||
38209          test ! -s conftest.err
38210        } && test -s conftest$ac_exeext &&
38211        $as_test_x conftest$ac_exeext; then
38212   ac_cv_lib_socket_inet_addr=yes
38213 else
38214   echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38216
38217         ac_cv_lib_socket_inet_addr=no
38218 fi
38219
38220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38221       conftest$ac_exeext conftest.$ac_ext
38222 LIBS=$ac_check_lib_save_LIBS
38223 fi
38224 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38225 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38226 if test $ac_cv_lib_socket_inet_addr = yes; then
38227   INET_LINK="socket"
38228
38229 fi
38230
38231
38232
38233 fi
38234
38235
38236
38237 fi
38238
38239
38240
38241 fi
38242 done
38243
38244
38245
38246 for ac_func in inet_aton
38247 do
38248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38252   echo $ECHO_N "(cached) $ECHO_C" >&6
38253 else
38254   cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38262 #define $ac_func innocuous_$ac_func
38263
38264 /* System header to define __stub macros and hopefully few prototypes,
38265     which can conflict with char $ac_func (); below.
38266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38267     <limits.h> exists even on freestanding compilers.  */
38268
38269 #ifdef __STDC__
38270 # include <limits.h>
38271 #else
38272 # include <assert.h>
38273 #endif
38274
38275 #undef $ac_func
38276
38277 /* Override any GCC internal prototype to avoid an error.
38278    Use char because int might match the return type of a GCC
38279    builtin and then its argument prototype would still apply.  */
38280 #ifdef __cplusplus
38281 extern "C"
38282 #endif
38283 char $ac_func ();
38284 /* The GNU C library defines this for functions which it implements
38285     to always fail with ENOSYS.  Some functions are actually named
38286     something starting with __ and the normal name is an alias.  */
38287 #if defined __stub_$ac_func || defined __stub___$ac_func
38288 choke me
38289 #endif
38290
38291 int
38292 main ()
38293 {
38294 return $ac_func ();
38295   ;
38296   return 0;
38297 }
38298 _ACEOF
38299 rm -f conftest.$ac_objext conftest$ac_exeext
38300 if { (ac_try="$ac_link"
38301 case "(($ac_try" in
38302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38303   *) ac_try_echo=$ac_try;;
38304 esac
38305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38306   (eval "$ac_link") 2>conftest.er1
38307   ac_status=$?
38308   grep -v '^ *+' conftest.er1 >conftest.err
38309   rm -f conftest.er1
38310   cat conftest.err >&5
38311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312   (exit $ac_status); } && {
38313          test -z "$ac_c_werror_flag" ||
38314          test ! -s conftest.err
38315        } && test -s conftest$ac_exeext &&
38316        $as_test_x conftest$ac_exeext; then
38317   eval "$as_ac_var=yes"
38318 else
38319   echo "$as_me: failed program was:" >&5
38320 sed 's/^/| /' conftest.$ac_ext >&5
38321
38322         eval "$as_ac_var=no"
38323 fi
38324
38325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38326       conftest$ac_exeext conftest.$ac_ext
38327 fi
38328 ac_res=`eval echo '${'$as_ac_var'}'`
38329                { echo "$as_me:$LINENO: result: $ac_res" >&5
38330 echo "${ECHO_T}$ac_res" >&6; }
38331 if test `eval echo '${'$as_ac_var'}'` = yes; then
38332   cat >>confdefs.h <<_ACEOF
38333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38334 _ACEOF
38335  cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_INET_ATON 1
38337 _ACEOF
38338
38339 else
38340
38341                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38342 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38343 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38344 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38345   echo $ECHO_N "(cached) $ECHO_C" >&6
38346 else
38347   ac_check_lib_save_LIBS=$LIBS
38348 LIBS="-l$INET_LINK  $LIBS"
38349 cat >conftest.$ac_ext <<_ACEOF
38350 /* confdefs.h.  */
38351 _ACEOF
38352 cat confdefs.h >>conftest.$ac_ext
38353 cat >>conftest.$ac_ext <<_ACEOF
38354 /* end confdefs.h.  */
38355
38356 /* Override any GCC internal prototype to avoid an error.
38357    Use char because int might match the return type of a GCC
38358    builtin and then its argument prototype would still apply.  */
38359 #ifdef __cplusplus
38360 extern "C"
38361 #endif
38362 char inet_aton ();
38363 int
38364 main ()
38365 {
38366 return inet_aton ();
38367   ;
38368   return 0;
38369 }
38370 _ACEOF
38371 rm -f conftest.$ac_objext conftest$ac_exeext
38372 if { (ac_try="$ac_link"
38373 case "(($ac_try" in
38374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38375   *) ac_try_echo=$ac_try;;
38376 esac
38377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38378   (eval "$ac_link") 2>conftest.er1
38379   ac_status=$?
38380   grep -v '^ *+' conftest.er1 >conftest.err
38381   rm -f conftest.er1
38382   cat conftest.err >&5
38383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); } && {
38385          test -z "$ac_c_werror_flag" ||
38386          test ! -s conftest.err
38387        } && test -s conftest$ac_exeext &&
38388        $as_test_x conftest$ac_exeext; then
38389   eval "$as_ac_Lib=yes"
38390 else
38391   echo "$as_me: failed program was:" >&5
38392 sed 's/^/| /' conftest.$ac_ext >&5
38393
38394         eval "$as_ac_Lib=no"
38395 fi
38396
38397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38398       conftest$ac_exeext conftest.$ac_ext
38399 LIBS=$ac_check_lib_save_LIBS
38400 fi
38401 ac_res=`eval echo '${'$as_ac_Lib'}'`
38402                { echo "$as_me:$LINENO: result: $ac_res" >&5
38403 echo "${ECHO_T}$ac_res" >&6; }
38404 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38405   cat >>confdefs.h <<\_ACEOF
38406 #define HAVE_INET_ATON 1
38407 _ACEOF
38408
38409 fi
38410
38411
38412 fi
38413 done
38414
38415
38416 if test "x$INET_LINK" != "x"; then
38417     cat >>confdefs.h <<\_ACEOF
38418 #define HAVE_INET_ADDR 1
38419 _ACEOF
38420
38421     INET_LINK=" -l$INET_LINK"
38422 fi
38423
38424
38425   for wx_func in fdopen
38426   do
38427     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38428 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38429 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432
38433         cat >conftest.$ac_ext <<_ACEOF
38434
38435             /* confdefs.h.  */
38436 _ACEOF
38437 cat confdefs.h >>conftest.$ac_ext
38438 cat >>conftest.$ac_ext <<_ACEOF
38439 /* end confdefs.h.  */
38440
38441
38442                 $ac_includes_default
38443
38444 int
38445 main ()
38446 {
38447
38448                 #ifndef $wx_func
38449                   &$wx_func;
38450                 #endif
38451
38452
38453   ;
38454   return 0;
38455 }
38456
38457 _ACEOF
38458 rm -f conftest.$ac_objext conftest$ac_exeext
38459 if { (ac_try="$ac_link"
38460 case "(($ac_try" in
38461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38462   *) ac_try_echo=$ac_try;;
38463 esac
38464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38465   (eval "$ac_link") 2>conftest.er1
38466   ac_status=$?
38467   grep -v '^ *+' conftest.er1 >conftest.err
38468   rm -f conftest.er1
38469   cat conftest.err >&5
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); } && {
38472          test -z "$ac_c_werror_flag" ||
38473          test ! -s conftest.err
38474        } && test -s conftest$ac_exeext &&
38475        $as_test_x conftest$ac_exeext; then
38476   eval wx_cv_func_$wx_func=yes
38477 else
38478   echo "$as_me: failed program was:" >&5
38479 sed 's/^/| /' conftest.$ac_ext >&5
38480
38481         eval wx_cv_func_$wx_func=no
38482 fi
38483
38484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38485       conftest$ac_exeext conftest.$ac_ext
38486
38487 fi
38488 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38489                { echo "$as_me:$LINENO: result: $ac_res" >&5
38490 echo "${ECHO_T}$ac_res" >&6; }
38491
38492     if eval test \$wx_cv_func_$wx_func = yes
38493     then
38494       cat >>confdefs.h <<_ACEOF
38495 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38496 _ACEOF
38497
38498
38499     else
38500       :
38501
38502     fi
38503   done
38504
38505
38506 if test "$wxUSE_TARSTREAM" = "yes"; then
38507
38508   for wx_func in sysconf
38509   do
38510     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38511 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38512 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38513   echo $ECHO_N "(cached) $ECHO_C" >&6
38514 else
38515
38516         cat >conftest.$ac_ext <<_ACEOF
38517
38518             /* confdefs.h.  */
38519 _ACEOF
38520 cat confdefs.h >>conftest.$ac_ext
38521 cat >>conftest.$ac_ext <<_ACEOF
38522 /* end confdefs.h.  */
38523
38524
38525                 $ac_includes_default
38526
38527 int
38528 main ()
38529 {
38530
38531                 #ifndef $wx_func
38532                   &$wx_func;
38533                 #endif
38534
38535
38536   ;
38537   return 0;
38538 }
38539
38540 _ACEOF
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (ac_try="$ac_link"
38543 case "(($ac_try" in
38544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545   *) ac_try_echo=$ac_try;;
38546 esac
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548   (eval "$ac_link") 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } && {
38555          test -z "$ac_c_werror_flag" ||
38556          test ! -s conftest.err
38557        } && test -s conftest$ac_exeext &&
38558        $as_test_x conftest$ac_exeext; then
38559   eval wx_cv_func_$wx_func=yes
38560 else
38561   echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564         eval wx_cv_func_$wx_func=no
38565 fi
38566
38567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38568       conftest$ac_exeext conftest.$ac_ext
38569
38570 fi
38571 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38572                { echo "$as_me:$LINENO: result: $ac_res" >&5
38573 echo "${ECHO_T}$ac_res" >&6; }
38574
38575     if eval test \$wx_cv_func_$wx_func = yes
38576     then
38577       cat >>confdefs.h <<_ACEOF
38578 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38579 _ACEOF
38580
38581
38582     else
38583       :
38584
38585     fi
38586   done
38587
38588
38589
38590   for wx_func in getpwuid_r
38591   do
38592     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38593 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38594 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38595   echo $ECHO_N "(cached) $ECHO_C" >&6
38596 else
38597
38598         cat >conftest.$ac_ext <<_ACEOF
38599
38600             /* confdefs.h.  */
38601 _ACEOF
38602 cat confdefs.h >>conftest.$ac_ext
38603 cat >>conftest.$ac_ext <<_ACEOF
38604 /* end confdefs.h.  */
38605
38606
38607                     #define _REENTRANT
38608                     #include <pwd.h>
38609
38610                 $ac_includes_default
38611
38612 int
38613 main ()
38614 {
38615
38616                 #ifndef $wx_func
38617                   &$wx_func;
38618                 #endif
38619
38620                     struct passwd pw, *ppw;
38621                     char buf[1024];
38622                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38623
38624
38625   ;
38626   return 0;
38627 }
38628
38629 _ACEOF
38630 rm -f conftest.$ac_objext conftest$ac_exeext
38631 if { (ac_try="$ac_link"
38632 case "(($ac_try" in
38633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38634   *) ac_try_echo=$ac_try;;
38635 esac
38636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38637   (eval "$ac_link") 2>conftest.er1
38638   ac_status=$?
38639   grep -v '^ *+' conftest.er1 >conftest.err
38640   rm -f conftest.er1
38641   cat conftest.err >&5
38642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643   (exit $ac_status); } && {
38644          test -z "$ac_c_werror_flag" ||
38645          test ! -s conftest.err
38646        } && test -s conftest$ac_exeext &&
38647        $as_test_x conftest$ac_exeext; then
38648   eval wx_cv_func_$wx_func=yes
38649 else
38650   echo "$as_me: failed program was:" >&5
38651 sed 's/^/| /' conftest.$ac_ext >&5
38652
38653         eval wx_cv_func_$wx_func=no
38654 fi
38655
38656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38657       conftest$ac_exeext conftest.$ac_ext
38658
38659 fi
38660 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38661                { echo "$as_me:$LINENO: result: $ac_res" >&5
38662 echo "${ECHO_T}$ac_res" >&6; }
38663
38664     if eval test \$wx_cv_func_$wx_func = yes
38665     then
38666       cat >>confdefs.h <<_ACEOF
38667 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38668 _ACEOF
38669
38670
38671     else
38672       :
38673
38674     fi
38675   done
38676
38677
38678
38679   for wx_func in getgrgid_r
38680   do
38681     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38682 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38683 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38684   echo $ECHO_N "(cached) $ECHO_C" >&6
38685 else
38686
38687         cat >conftest.$ac_ext <<_ACEOF
38688
38689             /* confdefs.h.  */
38690 _ACEOF
38691 cat confdefs.h >>conftest.$ac_ext
38692 cat >>conftest.$ac_ext <<_ACEOF
38693 /* end confdefs.h.  */
38694
38695
38696                     #define _REENTRANT
38697                     #include <grp.h>
38698
38699                 $ac_includes_default
38700
38701 int
38702 main ()
38703 {
38704
38705                 #ifndef $wx_func
38706                   &$wx_func;
38707                 #endif
38708
38709                     struct group grp, *pgrp;
38710                     char buf[1024];
38711                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38712
38713
38714   ;
38715   return 0;
38716 }
38717
38718 _ACEOF
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (ac_try="$ac_link"
38721 case "(($ac_try" in
38722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38723   *) ac_try_echo=$ac_try;;
38724 esac
38725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38726   (eval "$ac_link") 2>conftest.er1
38727   ac_status=$?
38728   grep -v '^ *+' conftest.er1 >conftest.err
38729   rm -f conftest.er1
38730   cat conftest.err >&5
38731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732   (exit $ac_status); } && {
38733          test -z "$ac_c_werror_flag" ||
38734          test ! -s conftest.err
38735        } && test -s conftest$ac_exeext &&
38736        $as_test_x conftest$ac_exeext; then
38737   eval wx_cv_func_$wx_func=yes
38738 else
38739   echo "$as_me: failed program was:" >&5
38740 sed 's/^/| /' conftest.$ac_ext >&5
38741
38742         eval wx_cv_func_$wx_func=no
38743 fi
38744
38745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38746       conftest$ac_exeext conftest.$ac_ext
38747
38748 fi
38749 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38750                { echo "$as_me:$LINENO: result: $ac_res" >&5
38751 echo "${ECHO_T}$ac_res" >&6; }
38752
38753     if eval test \$wx_cv_func_$wx_func = yes
38754     then
38755       cat >>confdefs.h <<_ACEOF
38756 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38757 _ACEOF
38758
38759
38760     else
38761       :
38762
38763     fi
38764   done
38765
38766 fi
38767
38768 fi
38769
38770
38771
38772 cat >confcache <<\_ACEOF
38773 # This file is a shell script that caches the results of configure
38774 # tests run on this system so they can be shared between configure
38775 # scripts and configure runs, see configure's option --config-cache.
38776 # It is not useful on other systems.  If it contains results you don't
38777 # want to keep, you may remove or edit it.
38778 #
38779 # config.status only pays attention to the cache file if you give it
38780 # the --recheck option to rerun configure.
38781 #
38782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38784 # following values.
38785
38786 _ACEOF
38787
38788 # The following way of writing the cache mishandles newlines in values,
38789 # but we know of no workaround that is simple, portable, and efficient.
38790 # So, we kill variables containing newlines.
38791 # Ultrix sh set writes to stderr and can't be redirected directly,
38792 # and sets the high bit in the cache file unless we assign to the vars.
38793 (
38794   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38795     eval ac_val=\$$ac_var
38796     case $ac_val in #(
38797     *${as_nl}*)
38798       case $ac_var in #(
38799       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38801       esac
38802       case $ac_var in #(
38803       _ | IFS | as_nl) ;; #(
38804       *) $as_unset $ac_var ;;
38805       esac ;;
38806     esac
38807   done
38808
38809   (set) 2>&1 |
38810     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38811     *${as_nl}ac_space=\ *)
38812       # `set' does not quote correctly, so add quotes (double-quote
38813       # substitution turns \\\\ into \\, and sed turns \\ into \).
38814       sed -n \
38815         "s/'/'\\\\''/g;
38816           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38817       ;; #(
38818     *)
38819       # `set' quotes correctly as required by POSIX, so do not add quotes.
38820       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38821       ;;
38822     esac |
38823     sort
38824 ) |
38825   sed '
38826      /^ac_cv_env_/b end
38827      t clear
38828      :clear
38829      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38830      t end
38831      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38832      :end' >>confcache
38833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38834   if test -w "$cache_file"; then
38835     test "x$cache_file" != "x/dev/null" &&
38836       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38837 echo "$as_me: updating cache $cache_file" >&6;}
38838     cat confcache >$cache_file
38839   else
38840     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38841 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38842   fi
38843 fi
38844 rm -f confcache
38845
38846
38847 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38848
38849
38850     THREADS_LINK=
38851     THREADS_CFLAGS=
38852
38853     if test "$wxUSE_THREADS" = "yes" ; then
38854         if test "$USE_BEOS" = 1; then
38855             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38856 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38857             wxUSE_THREADS="no"
38858         fi
38859     fi
38860
38861     if test "$wxUSE_THREADS" = "yes" ; then
38862
38863
38864                                 THREAD_OPTS="-pthread"
38865         if test "x$SUNCXX" = xyes; then
38866             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38867         fi
38868
38869         case "${host}" in
38870           *-*-solaris2* | *-*-sunos4* )
38871                 if test "x$GCC" = "xyes"; then
38872                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38873                 fi
38874                 ;;
38875           *-*-freebsd*)
38876                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38877                 ;;
38878           *-*-darwin* | *-*-cygwin* )
38879                                                 THREAD_OPTS=""
38880                 ;;
38881           *-*-aix*)
38882                                 THREAD_OPTS="pthreads"
38883                 ;;
38884           *-hp-hpux* )
38885                 if test "x$GCC" = "xyes"; then
38886                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38887                         THREAD_OPTS=""
38888                 else
38889                                                             THREAD_OPTS="-mt"
38890                 fi
38891                 ;;
38892
38893           *-*-irix* )
38894                                                                 if test "x$GCC" = "xyes"; then
38895                     THREAD_OPTS=""
38896                 fi
38897                 ;;
38898
38899           *-*-*UnixWare*)
38900                                 if test "x$GCC" != "xyes"; then
38901                     THREAD_OPTS="-Ethread"
38902                 fi
38903                 ;;
38904         esac
38905
38906                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38907
38908                 THREADS_OK=no
38909         for flag in $THREAD_OPTS; do
38910             case $flag in
38911                 none)
38912                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38913 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38914                     ;;
38915
38916                 -*)
38917                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38918 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38919                     THREADS_CFLAGS="$flag"
38920                     ;;
38921
38922                 *)
38923                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38924 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38925                     THREADS_LINK="-l$flag"
38926                     ;;
38927               esac
38928
38929               save_LIBS="$LIBS"
38930               save_CFLAGS="$CFLAGS"
38931               LIBS="$THREADS_LINK $LIBS"
38932               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38933
38934               cat >conftest.$ac_ext <<_ACEOF
38935 /* confdefs.h.  */
38936 _ACEOF
38937 cat confdefs.h >>conftest.$ac_ext
38938 cat >>conftest.$ac_ext <<_ACEOF
38939 /* end confdefs.h.  */
38940 #include <pthread.h>
38941 int
38942 main ()
38943 {
38944 pthread_create(0,0,0,0);
38945   ;
38946   return 0;
38947 }
38948 _ACEOF
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (ac_try="$ac_link"
38951 case "(($ac_try" in
38952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38953   *) ac_try_echo=$ac_try;;
38954 esac
38955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38956   (eval "$ac_link") 2>conftest.er1
38957   ac_status=$?
38958   grep -v '^ *+' conftest.er1 >conftest.err
38959   rm -f conftest.er1
38960   cat conftest.err >&5
38961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962   (exit $ac_status); } && {
38963          test -z "$ac_c_werror_flag" ||
38964          test ! -s conftest.err
38965        } && test -s conftest$ac_exeext &&
38966        $as_test_x conftest$ac_exeext; then
38967   THREADS_OK=yes
38968 else
38969   echo "$as_me: failed program was:" >&5
38970 sed 's/^/| /' conftest.$ac_ext >&5
38971
38972
38973 fi
38974
38975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38976       conftest$ac_exeext conftest.$ac_ext
38977
38978               LIBS="$save_LIBS"
38979               CFLAGS="$save_CFLAGS"
38980
38981               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38982 echo "${ECHO_T}$THREADS_OK" >&6; }
38983               if test "x$THREADS_OK" = "xyes"; then
38984                       break;
38985               fi
38986
38987               THREADS_LINK=""
38988               THREADS_CFLAGS=""
38989       done
38990
38991       if test "x$THREADS_OK" != "xyes"; then
38992           wxUSE_THREADS=no
38993           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38994 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38995       else
38996                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38997           LIBS="$THREADS_LINK $LIBS"
38998
38999           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39000 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39001           flag=no
39002           case "${host}" in
39003             *-aix*)
39004                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39005                 flag="-D_THREAD_SAFE"
39006                 ;;
39007             *-freebsd*)
39008                 flag="-D_THREAD_SAFE"
39009                 ;;
39010             *-hp-hpux* )
39011                 flag="-D_REENTRANT"
39012                 if test "x$GCC" != "xyes"; then
39013                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39014                 fi
39015                 ;;
39016             *solaris* | alpha*-osf*)
39017                 flag="-D_REENTRANT"
39018                 ;;
39019           esac
39020           { echo "$as_me:$LINENO: result: ${flag}" >&5
39021 echo "${ECHO_T}${flag}" >&6; }
39022           if test "x$flag" != xno; then
39023               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39024           fi
39025
39026                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39027       fi
39028     fi
39029
39030         if test "$wxUSE_THREADS" = "yes" ; then
39031
39032 for ac_func in thr_setconcurrency
39033 do
39034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39038   echo $ECHO_N "(cached) $ECHO_C" >&6
39039 else
39040   cat >conftest.$ac_ext <<_ACEOF
39041 /* confdefs.h.  */
39042 _ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h.  */
39046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39048 #define $ac_func innocuous_$ac_func
39049
39050 /* System header to define __stub macros and hopefully few prototypes,
39051     which can conflict with char $ac_func (); below.
39052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39053     <limits.h> exists even on freestanding compilers.  */
39054
39055 #ifdef __STDC__
39056 # include <limits.h>
39057 #else
39058 # include <assert.h>
39059 #endif
39060
39061 #undef $ac_func
39062
39063 /* Override any GCC internal prototype to avoid an error.
39064    Use char because int might match the return type of a GCC
39065    builtin and then its argument prototype would still apply.  */
39066 #ifdef __cplusplus
39067 extern "C"
39068 #endif
39069 char $ac_func ();
39070 /* The GNU C library defines this for functions which it implements
39071     to always fail with ENOSYS.  Some functions are actually named
39072     something starting with __ and the normal name is an alias.  */
39073 #if defined __stub_$ac_func || defined __stub___$ac_func
39074 choke me
39075 #endif
39076
39077 int
39078 main ()
39079 {
39080 return $ac_func ();
39081   ;
39082   return 0;
39083 }
39084 _ACEOF
39085 rm -f conftest.$ac_objext conftest$ac_exeext
39086 if { (ac_try="$ac_link"
39087 case "(($ac_try" in
39088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39089   *) ac_try_echo=$ac_try;;
39090 esac
39091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39092   (eval "$ac_link") 2>conftest.er1
39093   ac_status=$?
39094   grep -v '^ *+' conftest.er1 >conftest.err
39095   rm -f conftest.er1
39096   cat conftest.err >&5
39097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098   (exit $ac_status); } && {
39099          test -z "$ac_c_werror_flag" ||
39100          test ! -s conftest.err
39101        } && test -s conftest$ac_exeext &&
39102        $as_test_x conftest$ac_exeext; then
39103   eval "$as_ac_var=yes"
39104 else
39105   echo "$as_me: failed program was:" >&5
39106 sed 's/^/| /' conftest.$ac_ext >&5
39107
39108         eval "$as_ac_var=no"
39109 fi
39110
39111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39112       conftest$ac_exeext conftest.$ac_ext
39113 fi
39114 ac_res=`eval echo '${'$as_ac_var'}'`
39115                { echo "$as_me:$LINENO: result: $ac_res" >&5
39116 echo "${ECHO_T}$ac_res" >&6; }
39117 if test `eval echo '${'$as_ac_var'}'` = yes; then
39118   cat >>confdefs.h <<_ACEOF
39119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39120 _ACEOF
39121
39122 fi
39123 done
39124
39125
39126                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39127 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39128 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39129   echo $ECHO_N "(cached) $ECHO_C" >&6
39130 else
39131
39132                                 ac_ext=cpp
39133 ac_cpp='$CXXCPP $CPPFLAGS'
39134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39137
39138         cat >conftest.$ac_ext <<_ACEOF
39139 /* confdefs.h.  */
39140 _ACEOF
39141 cat confdefs.h >>conftest.$ac_ext
39142 cat >>conftest.$ac_ext <<_ACEOF
39143 /* end confdefs.h.  */
39144 #include <pthread.h>
39145                void ThreadCleanupFunc(void *p);
39146
39147 int
39148 main ()
39149 {
39150
39151                 void *p;
39152                 pthread_cleanup_push(ThreadCleanupFunc, p);
39153                 pthread_cleanup_pop(0);
39154
39155   ;
39156   return 0;
39157 }
39158 _ACEOF
39159 rm -f conftest.$ac_objext
39160 if { (ac_try="$ac_compile"
39161 case "(($ac_try" in
39162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39163   *) ac_try_echo=$ac_try;;
39164 esac
39165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39166   (eval "$ac_compile") 2>conftest.er1
39167   ac_status=$?
39168   grep -v '^ *+' conftest.er1 >conftest.err
39169   rm -f conftest.er1
39170   cat conftest.err >&5
39171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172   (exit $ac_status); } && {
39173          test -z "$ac_cxx_werror_flag" ||
39174          test ! -s conftest.err
39175        } && test -s conftest.$ac_objext; then
39176
39177                wx_cv_func_pthread_cleanup=yes
39178
39179 else
39180   echo "$as_me: failed program was:" >&5
39181 sed 's/^/| /' conftest.$ac_ext >&5
39182
39183
39184                wx_cv_func_pthread_cleanup=no
39185
39186
39187 fi
39188
39189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39190         ac_ext=c
39191 ac_cpp='$CPP $CPPFLAGS'
39192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39195
39196
39197 fi
39198 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39199 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39200       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39201         cat >>confdefs.h <<\_ACEOF
39202 #define wxHAVE_PTHREAD_CLEANUP 1
39203 _ACEOF
39204
39205       fi
39206
39207
39208 for ac_header in sched.h
39209 do
39210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216   cat >conftest.$ac_ext <<_ACEOF
39217 /* confdefs.h.  */
39218 _ACEOF
39219 cat confdefs.h >>conftest.$ac_ext
39220 cat >>conftest.$ac_ext <<_ACEOF
39221 /* end confdefs.h.  */
39222 $ac_includes_default
39223
39224 #include <$ac_header>
39225 _ACEOF
39226 rm -f conftest.$ac_objext
39227 if { (ac_try="$ac_compile"
39228 case "(($ac_try" in
39229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39230   *) ac_try_echo=$ac_try;;
39231 esac
39232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39233   (eval "$ac_compile") 2>conftest.er1
39234   ac_status=$?
39235   grep -v '^ *+' conftest.er1 >conftest.err
39236   rm -f conftest.er1
39237   cat conftest.err >&5
39238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239   (exit $ac_status); } && {
39240          test -z "$ac_c_werror_flag" ||
39241          test ! -s conftest.err
39242        } && test -s conftest.$ac_objext; then
39243   eval "$as_ac_Header=yes"
39244 else
39245   echo "$as_me: failed program was:" >&5
39246 sed 's/^/| /' conftest.$ac_ext >&5
39247
39248         eval "$as_ac_Header=no"
39249 fi
39250
39251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39252 fi
39253 ac_res=`eval echo '${'$as_ac_Header'}'`
39254                { echo "$as_me:$LINENO: result: $ac_res" >&5
39255 echo "${ECHO_T}$ac_res" >&6; }
39256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39257   cat >>confdefs.h <<_ACEOF
39258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39259 _ACEOF
39260
39261 fi
39262
39263 done
39264
39265       if test "$ac_cv_header_sched_h" = "yes"; then
39266           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39267 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39268 if test "${ac_cv_func_sched_yield+set}" = set; then
39269   echo $ECHO_N "(cached) $ECHO_C" >&6
39270 else
39271   cat >conftest.$ac_ext <<_ACEOF
39272 /* confdefs.h.  */
39273 _ACEOF
39274 cat confdefs.h >>conftest.$ac_ext
39275 cat >>conftest.$ac_ext <<_ACEOF
39276 /* end confdefs.h.  */
39277 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39279 #define sched_yield innocuous_sched_yield
39280
39281 /* System header to define __stub macros and hopefully few prototypes,
39282     which can conflict with char sched_yield (); below.
39283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39284     <limits.h> exists even on freestanding compilers.  */
39285
39286 #ifdef __STDC__
39287 # include <limits.h>
39288 #else
39289 # include <assert.h>
39290 #endif
39291
39292 #undef sched_yield
39293
39294 /* Override any GCC internal prototype to avoid an error.
39295    Use char because int might match the return type of a GCC
39296    builtin and then its argument prototype would still apply.  */
39297 #ifdef __cplusplus
39298 extern "C"
39299 #endif
39300 char sched_yield ();
39301 /* The GNU C library defines this for functions which it implements
39302     to always fail with ENOSYS.  Some functions are actually named
39303     something starting with __ and the normal name is an alias.  */
39304 #if defined __stub_sched_yield || defined __stub___sched_yield
39305 choke me
39306 #endif
39307
39308 int
39309 main ()
39310 {
39311 return sched_yield ();
39312   ;
39313   return 0;
39314 }
39315 _ACEOF
39316 rm -f conftest.$ac_objext conftest$ac_exeext
39317 if { (ac_try="$ac_link"
39318 case "(($ac_try" in
39319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39320   *) ac_try_echo=$ac_try;;
39321 esac
39322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39323   (eval "$ac_link") 2>conftest.er1
39324   ac_status=$?
39325   grep -v '^ *+' conftest.er1 >conftest.err
39326   rm -f conftest.er1
39327   cat conftest.err >&5
39328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329   (exit $ac_status); } && {
39330          test -z "$ac_c_werror_flag" ||
39331          test ! -s conftest.err
39332        } && test -s conftest$ac_exeext &&
39333        $as_test_x conftest$ac_exeext; then
39334   ac_cv_func_sched_yield=yes
39335 else
39336   echo "$as_me: failed program was:" >&5
39337 sed 's/^/| /' conftest.$ac_ext >&5
39338
39339         ac_cv_func_sched_yield=no
39340 fi
39341
39342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39343       conftest$ac_exeext conftest.$ac_ext
39344 fi
39345 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39346 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39347 if test $ac_cv_func_sched_yield = yes; then
39348   cat >>confdefs.h <<\_ACEOF
39349 #define HAVE_SCHED_YIELD 1
39350 _ACEOF
39351
39352 else
39353
39354                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39355 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39356 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39357   echo $ECHO_N "(cached) $ECHO_C" >&6
39358 else
39359   ac_check_lib_save_LIBS=$LIBS
39360 LIBS="-lposix4  $LIBS"
39361 cat >conftest.$ac_ext <<_ACEOF
39362 /* confdefs.h.  */
39363 _ACEOF
39364 cat confdefs.h >>conftest.$ac_ext
39365 cat >>conftest.$ac_ext <<_ACEOF
39366 /* end confdefs.h.  */
39367
39368 /* Override any GCC internal prototype to avoid an error.
39369    Use char because int might match the return type of a GCC
39370    builtin and then its argument prototype would still apply.  */
39371 #ifdef __cplusplus
39372 extern "C"
39373 #endif
39374 char sched_yield ();
39375 int
39376 main ()
39377 {
39378 return sched_yield ();
39379   ;
39380   return 0;
39381 }
39382 _ACEOF
39383 rm -f conftest.$ac_objext conftest$ac_exeext
39384 if { (ac_try="$ac_link"
39385 case "(($ac_try" in
39386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39387   *) ac_try_echo=$ac_try;;
39388 esac
39389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39390   (eval "$ac_link") 2>conftest.er1
39391   ac_status=$?
39392   grep -v '^ *+' conftest.er1 >conftest.err
39393   rm -f conftest.er1
39394   cat conftest.err >&5
39395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396   (exit $ac_status); } && {
39397          test -z "$ac_c_werror_flag" ||
39398          test ! -s conftest.err
39399        } && test -s conftest$ac_exeext &&
39400        $as_test_x conftest$ac_exeext; then
39401   ac_cv_lib_posix4_sched_yield=yes
39402 else
39403   echo "$as_me: failed program was:" >&5
39404 sed 's/^/| /' conftest.$ac_ext >&5
39405
39406         ac_cv_lib_posix4_sched_yield=no
39407 fi
39408
39409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39410       conftest$ac_exeext conftest.$ac_ext
39411 LIBS=$ac_check_lib_save_LIBS
39412 fi
39413 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39414 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39415 if test $ac_cv_lib_posix4_sched_yield = yes; then
39416   cat >>confdefs.h <<\_ACEOF
39417 #define HAVE_SCHED_YIELD 1
39418 _ACEOF
39419  POSIX4_LINK=" -lposix4"
39420 else
39421   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39422 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39423
39424 fi
39425
39426
39427
39428 fi
39429
39430       fi
39431
39432                                           HAVE_PRIOR_FUNCS=0
39433       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39434 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39435 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39436   echo $ECHO_N "(cached) $ECHO_C" >&6
39437 else
39438   cat >conftest.$ac_ext <<_ACEOF
39439 /* confdefs.h.  */
39440 _ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h.  */
39444 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39446 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39447
39448 /* System header to define __stub macros and hopefully few prototypes,
39449     which can conflict with char pthread_attr_getschedpolicy (); below.
39450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39451     <limits.h> exists even on freestanding compilers.  */
39452
39453 #ifdef __STDC__
39454 # include <limits.h>
39455 #else
39456 # include <assert.h>
39457 #endif
39458
39459 #undef pthread_attr_getschedpolicy
39460
39461 /* Override any GCC internal prototype to avoid an error.
39462    Use char because int might match the return type of a GCC
39463    builtin and then its argument prototype would still apply.  */
39464 #ifdef __cplusplus
39465 extern "C"
39466 #endif
39467 char pthread_attr_getschedpolicy ();
39468 /* The GNU C library defines this for functions which it implements
39469     to always fail with ENOSYS.  Some functions are actually named
39470     something starting with __ and the normal name is an alias.  */
39471 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39472 choke me
39473 #endif
39474
39475 int
39476 main ()
39477 {
39478 return pthread_attr_getschedpolicy ();
39479   ;
39480   return 0;
39481 }
39482 _ACEOF
39483 rm -f conftest.$ac_objext conftest$ac_exeext
39484 if { (ac_try="$ac_link"
39485 case "(($ac_try" in
39486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39487   *) ac_try_echo=$ac_try;;
39488 esac
39489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39490   (eval "$ac_link") 2>conftest.er1
39491   ac_status=$?
39492   grep -v '^ *+' conftest.er1 >conftest.err
39493   rm -f conftest.er1
39494   cat conftest.err >&5
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); } && {
39497          test -z "$ac_c_werror_flag" ||
39498          test ! -s conftest.err
39499        } && test -s conftest$ac_exeext &&
39500        $as_test_x conftest$ac_exeext; then
39501   ac_cv_func_pthread_attr_getschedpolicy=yes
39502 else
39503   echo "$as_me: failed program was:" >&5
39504 sed 's/^/| /' conftest.$ac_ext >&5
39505
39506         ac_cv_func_pthread_attr_getschedpolicy=no
39507 fi
39508
39509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39510       conftest$ac_exeext conftest.$ac_ext
39511 fi
39512 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39513 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39514 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39515   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39516 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39517 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39518   echo $ECHO_N "(cached) $ECHO_C" >&6
39519 else
39520   cat >conftest.$ac_ext <<_ACEOF
39521 /* confdefs.h.  */
39522 _ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h.  */
39526 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39528 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39529
39530 /* System header to define __stub macros and hopefully few prototypes,
39531     which can conflict with char pthread_attr_setschedparam (); below.
39532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39533     <limits.h> exists even on freestanding compilers.  */
39534
39535 #ifdef __STDC__
39536 # include <limits.h>
39537 #else
39538 # include <assert.h>
39539 #endif
39540
39541 #undef pthread_attr_setschedparam
39542
39543 /* Override any GCC internal prototype to avoid an error.
39544    Use char because int might match the return type of a GCC
39545    builtin and then its argument prototype would still apply.  */
39546 #ifdef __cplusplus
39547 extern "C"
39548 #endif
39549 char pthread_attr_setschedparam ();
39550 /* The GNU C library defines this for functions which it implements
39551     to always fail with ENOSYS.  Some functions are actually named
39552     something starting with __ and the normal name is an alias.  */
39553 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39554 choke me
39555 #endif
39556
39557 int
39558 main ()
39559 {
39560 return pthread_attr_setschedparam ();
39561   ;
39562   return 0;
39563 }
39564 _ACEOF
39565 rm -f conftest.$ac_objext conftest$ac_exeext
39566 if { (ac_try="$ac_link"
39567 case "(($ac_try" in
39568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39569   *) ac_try_echo=$ac_try;;
39570 esac
39571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39572   (eval "$ac_link") 2>conftest.er1
39573   ac_status=$?
39574   grep -v '^ *+' conftest.er1 >conftest.err
39575   rm -f conftest.er1
39576   cat conftest.err >&5
39577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578   (exit $ac_status); } && {
39579          test -z "$ac_c_werror_flag" ||
39580          test ! -s conftest.err
39581        } && test -s conftest$ac_exeext &&
39582        $as_test_x conftest$ac_exeext; then
39583   ac_cv_func_pthread_attr_setschedparam=yes
39584 else
39585   echo "$as_me: failed program was:" >&5
39586 sed 's/^/| /' conftest.$ac_ext >&5
39587
39588         ac_cv_func_pthread_attr_setschedparam=no
39589 fi
39590
39591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39592       conftest$ac_exeext conftest.$ac_ext
39593 fi
39594 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39595 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39596 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39597   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39598 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39599 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39600   echo $ECHO_N "(cached) $ECHO_C" >&6
39601 else
39602   cat >conftest.$ac_ext <<_ACEOF
39603 /* confdefs.h.  */
39604 _ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h.  */
39608 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39610 #define sched_get_priority_max innocuous_sched_get_priority_max
39611
39612 /* System header to define __stub macros and hopefully few prototypes,
39613     which can conflict with char sched_get_priority_max (); below.
39614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39615     <limits.h> exists even on freestanding compilers.  */
39616
39617 #ifdef __STDC__
39618 # include <limits.h>
39619 #else
39620 # include <assert.h>
39621 #endif
39622
39623 #undef sched_get_priority_max
39624
39625 /* Override any GCC internal prototype to avoid an error.
39626    Use char because int might match the return type of a GCC
39627    builtin and then its argument prototype would still apply.  */
39628 #ifdef __cplusplus
39629 extern "C"
39630 #endif
39631 char sched_get_priority_max ();
39632 /* The GNU C library defines this for functions which it implements
39633     to always fail with ENOSYS.  Some functions are actually named
39634     something starting with __ and the normal name is an alias.  */
39635 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39636 choke me
39637 #endif
39638
39639 int
39640 main ()
39641 {
39642 return sched_get_priority_max ();
39643   ;
39644   return 0;
39645 }
39646 _ACEOF
39647 rm -f conftest.$ac_objext conftest$ac_exeext
39648 if { (ac_try="$ac_link"
39649 case "(($ac_try" in
39650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39651   *) ac_try_echo=$ac_try;;
39652 esac
39653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39654   (eval "$ac_link") 2>conftest.er1
39655   ac_status=$?
39656   grep -v '^ *+' conftest.er1 >conftest.err
39657   rm -f conftest.er1
39658   cat conftest.err >&5
39659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); } && {
39661          test -z "$ac_c_werror_flag" ||
39662          test ! -s conftest.err
39663        } && test -s conftest$ac_exeext &&
39664        $as_test_x conftest$ac_exeext; then
39665   ac_cv_func_sched_get_priority_max=yes
39666 else
39667   echo "$as_me: failed program was:" >&5
39668 sed 's/^/| /' conftest.$ac_ext >&5
39669
39670         ac_cv_func_sched_get_priority_max=no
39671 fi
39672
39673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39674       conftest$ac_exeext conftest.$ac_ext
39675 fi
39676 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39677 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39678 if test $ac_cv_func_sched_get_priority_max = yes; then
39679   HAVE_PRIOR_FUNCS=1
39680 else
39681   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39682 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39683 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39684   echo $ECHO_N "(cached) $ECHO_C" >&6
39685 else
39686   ac_check_lib_save_LIBS=$LIBS
39687 LIBS="-lposix4  $LIBS"
39688 cat >conftest.$ac_ext <<_ACEOF
39689 /* confdefs.h.  */
39690 _ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h.  */
39694
39695 /* Override any GCC internal prototype to avoid an error.
39696    Use char because int might match the return type of a GCC
39697    builtin and then its argument prototype would still apply.  */
39698 #ifdef __cplusplus
39699 extern "C"
39700 #endif
39701 char sched_get_priority_max ();
39702 int
39703 main ()
39704 {
39705 return sched_get_priority_max ();
39706   ;
39707   return 0;
39708 }
39709 _ACEOF
39710 rm -f conftest.$ac_objext conftest$ac_exeext
39711 if { (ac_try="$ac_link"
39712 case "(($ac_try" in
39713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39714   *) ac_try_echo=$ac_try;;
39715 esac
39716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39717   (eval "$ac_link") 2>conftest.er1
39718   ac_status=$?
39719   grep -v '^ *+' conftest.er1 >conftest.err
39720   rm -f conftest.er1
39721   cat conftest.err >&5
39722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723   (exit $ac_status); } && {
39724          test -z "$ac_c_werror_flag" ||
39725          test ! -s conftest.err
39726        } && test -s conftest$ac_exeext &&
39727        $as_test_x conftest$ac_exeext; then
39728   ac_cv_lib_posix4_sched_get_priority_max=yes
39729 else
39730   echo "$as_me: failed program was:" >&5
39731 sed 's/^/| /' conftest.$ac_ext >&5
39732
39733         ac_cv_lib_posix4_sched_get_priority_max=no
39734 fi
39735
39736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39737       conftest$ac_exeext conftest.$ac_ext
39738 LIBS=$ac_check_lib_save_LIBS
39739 fi
39740 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39741 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39742 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39743
39744                                 HAVE_PRIOR_FUNCS=1
39745                                 POSIX4_LINK=" -lposix4"
39746
39747 fi
39748
39749
39750 fi
39751
39752
39753 fi
39754
39755
39756 fi
39757
39758
39759       if test "$HAVE_PRIOR_FUNCS" = 1; then
39760         cat >>confdefs.h <<\_ACEOF
39761 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39762 _ACEOF
39763
39764       else
39765         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39766 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39767       fi
39768
39769       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39770 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39771 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39772   echo $ECHO_N "(cached) $ECHO_C" >&6
39773 else
39774   cat >conftest.$ac_ext <<_ACEOF
39775 /* confdefs.h.  */
39776 _ACEOF
39777 cat confdefs.h >>conftest.$ac_ext
39778 cat >>conftest.$ac_ext <<_ACEOF
39779 /* end confdefs.h.  */
39780 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39782 #define pthread_cancel innocuous_pthread_cancel
39783
39784 /* System header to define __stub macros and hopefully few prototypes,
39785     which can conflict with char pthread_cancel (); below.
39786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39787     <limits.h> exists even on freestanding compilers.  */
39788
39789 #ifdef __STDC__
39790 # include <limits.h>
39791 #else
39792 # include <assert.h>
39793 #endif
39794
39795 #undef pthread_cancel
39796
39797 /* Override any GCC internal prototype to avoid an error.
39798    Use char because int might match the return type of a GCC
39799    builtin and then its argument prototype would still apply.  */
39800 #ifdef __cplusplus
39801 extern "C"
39802 #endif
39803 char pthread_cancel ();
39804 /* The GNU C library defines this for functions which it implements
39805     to always fail with ENOSYS.  Some functions are actually named
39806     something starting with __ and the normal name is an alias.  */
39807 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39808 choke me
39809 #endif
39810
39811 int
39812 main ()
39813 {
39814 return pthread_cancel ();
39815   ;
39816   return 0;
39817 }
39818 _ACEOF
39819 rm -f conftest.$ac_objext conftest$ac_exeext
39820 if { (ac_try="$ac_link"
39821 case "(($ac_try" in
39822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39823   *) ac_try_echo=$ac_try;;
39824 esac
39825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39826   (eval "$ac_link") 2>conftest.er1
39827   ac_status=$?
39828   grep -v '^ *+' conftest.er1 >conftest.err
39829   rm -f conftest.er1
39830   cat conftest.err >&5
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); } && {
39833          test -z "$ac_c_werror_flag" ||
39834          test ! -s conftest.err
39835        } && test -s conftest$ac_exeext &&
39836        $as_test_x conftest$ac_exeext; then
39837   ac_cv_func_pthread_cancel=yes
39838 else
39839   echo "$as_me: failed program was:" >&5
39840 sed 's/^/| /' conftest.$ac_ext >&5
39841
39842         ac_cv_func_pthread_cancel=no
39843 fi
39844
39845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39846       conftest$ac_exeext conftest.$ac_ext
39847 fi
39848 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39849 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39850 if test $ac_cv_func_pthread_cancel = yes; then
39851   cat >>confdefs.h <<\_ACEOF
39852 #define HAVE_PTHREAD_CANCEL 1
39853 _ACEOF
39854
39855 else
39856   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39857 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39858 fi
39859
39860
39861       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39862 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39863 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39864   echo $ECHO_N "(cached) $ECHO_C" >&6
39865 else
39866   cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39874 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39875
39876 /* System header to define __stub macros and hopefully few prototypes,
39877     which can conflict with char pthread_mutex_timedlock (); below.
39878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39879     <limits.h> exists even on freestanding compilers.  */
39880
39881 #ifdef __STDC__
39882 # include <limits.h>
39883 #else
39884 # include <assert.h>
39885 #endif
39886
39887 #undef pthread_mutex_timedlock
39888
39889 /* Override any GCC internal prototype to avoid an error.
39890    Use char because int might match the return type of a GCC
39891    builtin and then its argument prototype would still apply.  */
39892 #ifdef __cplusplus
39893 extern "C"
39894 #endif
39895 char pthread_mutex_timedlock ();
39896 /* The GNU C library defines this for functions which it implements
39897     to always fail with ENOSYS.  Some functions are actually named
39898     something starting with __ and the normal name is an alias.  */
39899 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39900 choke me
39901 #endif
39902
39903 int
39904 main ()
39905 {
39906 return pthread_mutex_timedlock ();
39907   ;
39908   return 0;
39909 }
39910 _ACEOF
39911 rm -f conftest.$ac_objext conftest$ac_exeext
39912 if { (ac_try="$ac_link"
39913 case "(($ac_try" in
39914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39915   *) ac_try_echo=$ac_try;;
39916 esac
39917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39918   (eval "$ac_link") 2>conftest.er1
39919   ac_status=$?
39920   grep -v '^ *+' conftest.er1 >conftest.err
39921   rm -f conftest.er1
39922   cat conftest.err >&5
39923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924   (exit $ac_status); } && {
39925          test -z "$ac_c_werror_flag" ||
39926          test ! -s conftest.err
39927        } && test -s conftest$ac_exeext &&
39928        $as_test_x conftest$ac_exeext; then
39929   ac_cv_func_pthread_mutex_timedlock=yes
39930 else
39931   echo "$as_me: failed program was:" >&5
39932 sed 's/^/| /' conftest.$ac_ext >&5
39933
39934         ac_cv_func_pthread_mutex_timedlock=no
39935 fi
39936
39937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39938       conftest$ac_exeext conftest.$ac_ext
39939 fi
39940 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39941 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39942 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39943   cat >>confdefs.h <<\_ACEOF
39944 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39945 _ACEOF
39946
39947 else
39948   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39949 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39950 fi
39951
39952
39953       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39954 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39955 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39956   echo $ECHO_N "(cached) $ECHO_C" >&6
39957 else
39958   cat >conftest.$ac_ext <<_ACEOF
39959 /* confdefs.h.  */
39960 _ACEOF
39961 cat confdefs.h >>conftest.$ac_ext
39962 cat >>conftest.$ac_ext <<_ACEOF
39963 /* end confdefs.h.  */
39964 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39966 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39967
39968 /* System header to define __stub macros and hopefully few prototypes,
39969     which can conflict with char pthread_attr_setstacksize (); below.
39970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39971     <limits.h> exists even on freestanding compilers.  */
39972
39973 #ifdef __STDC__
39974 # include <limits.h>
39975 #else
39976 # include <assert.h>
39977 #endif
39978
39979 #undef pthread_attr_setstacksize
39980
39981 /* Override any GCC internal prototype to avoid an error.
39982    Use char because int might match the return type of a GCC
39983    builtin and then its argument prototype would still apply.  */
39984 #ifdef __cplusplus
39985 extern "C"
39986 #endif
39987 char pthread_attr_setstacksize ();
39988 /* The GNU C library defines this for functions which it implements
39989     to always fail with ENOSYS.  Some functions are actually named
39990     something starting with __ and the normal name is an alias.  */
39991 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39992 choke me
39993 #endif
39994
39995 int
39996 main ()
39997 {
39998 return pthread_attr_setstacksize ();
39999   ;
40000   return 0;
40001 }
40002 _ACEOF
40003 rm -f conftest.$ac_objext conftest$ac_exeext
40004 if { (ac_try="$ac_link"
40005 case "(($ac_try" in
40006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40007   *) ac_try_echo=$ac_try;;
40008 esac
40009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40010   (eval "$ac_link") 2>conftest.er1
40011   ac_status=$?
40012   grep -v '^ *+' conftest.er1 >conftest.err
40013   rm -f conftest.er1
40014   cat conftest.err >&5
40015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016   (exit $ac_status); } && {
40017          test -z "$ac_c_werror_flag" ||
40018          test ! -s conftest.err
40019        } && test -s conftest$ac_exeext &&
40020        $as_test_x conftest$ac_exeext; then
40021   ac_cv_func_pthread_attr_setstacksize=yes
40022 else
40023   echo "$as_me: failed program was:" >&5
40024 sed 's/^/| /' conftest.$ac_ext >&5
40025
40026         ac_cv_func_pthread_attr_setstacksize=no
40027 fi
40028
40029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40030       conftest$ac_exeext conftest.$ac_ext
40031 fi
40032 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40033 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40034 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40035   cat >>confdefs.h <<\_ACEOF
40036 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40037 _ACEOF
40038
40039 fi
40040
40041
40042
40043       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40044 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40045 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40046   echo $ECHO_N "(cached) $ECHO_C" >&6
40047 else
40048
40049         cat >conftest.$ac_ext <<_ACEOF
40050 /* confdefs.h.  */
40051 _ACEOF
40052 cat confdefs.h >>conftest.$ac_ext
40053 cat >>conftest.$ac_ext <<_ACEOF
40054 /* end confdefs.h.  */
40055 #include <pthread.h>
40056 int
40057 main ()
40058 {
40059
40060                pthread_mutexattr_t attr;
40061                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40062
40063   ;
40064   return 0;
40065 }
40066 _ACEOF
40067 rm -f conftest.$ac_objext
40068 if { (ac_try="$ac_compile"
40069 case "(($ac_try" in
40070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071   *) ac_try_echo=$ac_try;;
40072 esac
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074   (eval "$ac_compile") 2>conftest.er1
40075   ac_status=$?
40076   grep -v '^ *+' conftest.er1 >conftest.err
40077   rm -f conftest.er1
40078   cat conftest.err >&5
40079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080   (exit $ac_status); } && {
40081          test -z "$ac_c_werror_flag" ||
40082          test ! -s conftest.err
40083        } && test -s conftest.$ac_objext; then
40084   wx_cv_type_pthread_mutexattr_t=yes
40085 else
40086   echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40088
40089         wx_cv_type_pthread_mutexattr_t=no
40090
40091 fi
40092
40093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40094
40095 fi
40096 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40097 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40098
40099       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40100         cat >>confdefs.h <<\_ACEOF
40101 #define HAVE_PTHREAD_MUTEXATTR_T 1
40102 _ACEOF
40103
40104
40105                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40106 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40107 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40108   echo $ECHO_N "(cached) $ECHO_C" >&6
40109 else
40110
40111                        cat >conftest.$ac_ext <<_ACEOF
40112 /* confdefs.h.  */
40113 _ACEOF
40114 cat confdefs.h >>conftest.$ac_ext
40115 cat >>conftest.$ac_ext <<_ACEOF
40116 /* end confdefs.h.  */
40117 #include <pthread.h>
40118 int
40119 main ()
40120 {
40121
40122                                pthread_mutexattr_t attr;
40123                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40124
40125   ;
40126   return 0;
40127 }
40128 _ACEOF
40129 rm -f conftest.$ac_objext
40130 if { (ac_try="$ac_compile"
40131 case "(($ac_try" in
40132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40133   *) ac_try_echo=$ac_try;;
40134 esac
40135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40136   (eval "$ac_compile") 2>conftest.er1
40137   ac_status=$?
40138   grep -v '^ *+' conftest.er1 >conftest.err
40139   rm -f conftest.er1
40140   cat conftest.err >&5
40141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142   (exit $ac_status); } && {
40143          test -z "$ac_c_werror_flag" ||
40144          test ! -s conftest.err
40145        } && test -s conftest.$ac_objext; then
40146   wx_cv_func_pthread_mutexattr_settype_decl=yes
40147 else
40148   echo "$as_me: failed program was:" >&5
40149 sed 's/^/| /' conftest.$ac_ext >&5
40150
40151         wx_cv_func_pthread_mutexattr_settype_decl=no
40152
40153 fi
40154
40155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40156
40157 fi
40158 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40159 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40160         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40161             cat >>confdefs.h <<\_ACEOF
40162 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40163 _ACEOF
40164
40165         fi
40166       else
40167                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40168 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40169 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40170   echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172
40173             cat >conftest.$ac_ext <<_ACEOF
40174 /* confdefs.h.  */
40175 _ACEOF
40176 cat confdefs.h >>conftest.$ac_ext
40177 cat >>conftest.$ac_ext <<_ACEOF
40178 /* end confdefs.h.  */
40179 #include <pthread.h>
40180 int
40181 main ()
40182 {
40183
40184                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40185
40186   ;
40187   return 0;
40188 }
40189 _ACEOF
40190 rm -f conftest.$ac_objext
40191 if { (ac_try="$ac_compile"
40192 case "(($ac_try" in
40193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40194   *) ac_try_echo=$ac_try;;
40195 esac
40196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40197   (eval "$ac_compile") 2>conftest.er1
40198   ac_status=$?
40199   grep -v '^ *+' conftest.er1 >conftest.err
40200   rm -f conftest.er1
40201   cat conftest.err >&5
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); } && {
40204          test -z "$ac_c_werror_flag" ||
40205          test ! -s conftest.err
40206        } && test -s conftest.$ac_objext; then
40207
40208                     wx_cv_type_pthread_rec_mutex_init=yes
40209
40210 else
40211   echo "$as_me: failed program was:" >&5
40212 sed 's/^/| /' conftest.$ac_ext >&5
40213
40214
40215                     wx_cv_type_pthread_rec_mutex_init=no
40216
40217
40218 fi
40219
40220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40221
40222 fi
40223 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40224 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40225         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40226           cat >>confdefs.h <<\_ACEOF
40227 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40228 _ACEOF
40229
40230         else
40231                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40232 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40233         fi
40234       fi
40235
40236             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40237 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40238 if test "${wx_cv_cc___thread+set}" = set; then
40239   echo $ECHO_N "(cached) $ECHO_C" >&6
40240 else
40241
40242           cat >conftest.$ac_ext <<_ACEOF
40243 /* confdefs.h.  */
40244 _ACEOF
40245 cat confdefs.h >>conftest.$ac_ext
40246 cat >>conftest.$ac_ext <<_ACEOF
40247 /* end confdefs.h.  */
40248 #include <pthread.h>
40249 int
40250 main ()
40251 {
40252
40253                   static __thread int n = 0;
40254                   static __thread int *p = 0;
40255
40256   ;
40257   return 0;
40258 }
40259 _ACEOF
40260 rm -f conftest.$ac_objext
40261 if { (ac_try="$ac_compile"
40262 case "(($ac_try" in
40263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40264   *) ac_try_echo=$ac_try;;
40265 esac
40266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40267   (eval "$ac_compile") 2>conftest.er1
40268   ac_status=$?
40269   grep -v '^ *+' conftest.er1 >conftest.err
40270   rm -f conftest.er1
40271   cat conftest.err >&5
40272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273   (exit $ac_status); } && {
40274          test -z "$ac_c_werror_flag" ||
40275          test ! -s conftest.err
40276        } && test -s conftest.$ac_objext; then
40277   wx_cv_cc___thread=yes
40278 else
40279   echo "$as_me: failed program was:" >&5
40280 sed 's/^/| /' conftest.$ac_ext >&5
40281
40282         wx_cv_cc___thread=no
40283
40284 fi
40285
40286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40287
40288 fi
40289 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40290 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40291
40292       if test "$wx_cv_cc___thread" = "yes"; then
40293         cat >>confdefs.h <<\_ACEOF
40294 #define HAVE___THREAD_KEYWORD 1
40295 _ACEOF
40296
40297       fi
40298     fi
40299
40300 else
40301     if test "$wxUSE_THREADS" = "yes" ; then
40302       case "${host}" in
40303         x86_64-*-mingw32* )
40304         ;;
40305         *-*-mingw32* )
40306                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40307 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40308 if test "${wx_cv_cflags_mthread+set}" = set; then
40309   echo $ECHO_N "(cached) $ECHO_C" >&6
40310 else
40311
40312                     CFLAGS_OLD="$CFLAGS"
40313                     CFLAGS="-mthreads $CFLAGS"
40314                     cat >conftest.$ac_ext <<_ACEOF
40315 /* confdefs.h.  */
40316 _ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h.  */
40320
40321 int
40322 main ()
40323 {
40324
40325   ;
40326   return 0;
40327 }
40328 _ACEOF
40329 rm -f conftest.$ac_objext
40330 if { (ac_try="$ac_compile"
40331 case "(($ac_try" in
40332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40333   *) ac_try_echo=$ac_try;;
40334 esac
40335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40336   (eval "$ac_compile") 2>conftest.er1
40337   ac_status=$?
40338   grep -v '^ *+' conftest.er1 >conftest.err
40339   rm -f conftest.er1
40340   cat conftest.err >&5
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); } && {
40343          test -z "$ac_c_werror_flag" ||
40344          test ! -s conftest.err
40345        } && test -s conftest.$ac_objext; then
40346   wx_cv_cflags_mthread=yes
40347 else
40348   echo "$as_me: failed program was:" >&5
40349 sed 's/^/| /' conftest.$ac_ext >&5
40350
40351         wx_cv_cflags_mthread=no
40352
40353 fi
40354
40355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40356
40357
40358 fi
40359 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40360 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40361
40362             if test "$wx_cv_cflags_mthread" = "yes"; then
40363                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40364                 LDFLAGS="$LDFLAGS -mthreads"
40365             else
40366                                 CFLAGS="$CFLAGS_OLD"
40367             fi
40368         ;;
40369         *-pc-os2*emx )
40370             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40371             LDFLAGS="$LDFLAGS -Zmt"
40372         ;;
40373       esac
40374     fi
40375 fi
40376
40377 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40378 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40379 if test "${ac_cv_func_localtime_r+set}" = set; then
40380   echo $ECHO_N "(cached) $ECHO_C" >&6
40381 else
40382   cat >conftest.$ac_ext <<_ACEOF
40383 /* confdefs.h.  */
40384 _ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h.  */
40388 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40390 #define localtime_r innocuous_localtime_r
40391
40392 /* System header to define __stub macros and hopefully few prototypes,
40393     which can conflict with char localtime_r (); below.
40394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40395     <limits.h> exists even on freestanding compilers.  */
40396
40397 #ifdef __STDC__
40398 # include <limits.h>
40399 #else
40400 # include <assert.h>
40401 #endif
40402
40403 #undef localtime_r
40404
40405 /* Override any GCC internal prototype to avoid an error.
40406    Use char because int might match the return type of a GCC
40407    builtin and then its argument prototype would still apply.  */
40408 #ifdef __cplusplus
40409 extern "C"
40410 #endif
40411 char localtime_r ();
40412 /* The GNU C library defines this for functions which it implements
40413     to always fail with ENOSYS.  Some functions are actually named
40414     something starting with __ and the normal name is an alias.  */
40415 #if defined __stub_localtime_r || defined __stub___localtime_r
40416 choke me
40417 #endif
40418
40419 int
40420 main ()
40421 {
40422 return localtime_r ();
40423   ;
40424   return 0;
40425 }
40426 _ACEOF
40427 rm -f conftest.$ac_objext conftest$ac_exeext
40428 if { (ac_try="$ac_link"
40429 case "(($ac_try" in
40430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40431   *) ac_try_echo=$ac_try;;
40432 esac
40433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40434   (eval "$ac_link") 2>conftest.er1
40435   ac_status=$?
40436   grep -v '^ *+' conftest.er1 >conftest.err
40437   rm -f conftest.er1
40438   cat conftest.err >&5
40439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440   (exit $ac_status); } && {
40441          test -z "$ac_c_werror_flag" ||
40442          test ! -s conftest.err
40443        } && test -s conftest$ac_exeext &&
40444        $as_test_x conftest$ac_exeext; then
40445   ac_cv_func_localtime_r=yes
40446 else
40447   echo "$as_me: failed program was:" >&5
40448 sed 's/^/| /' conftest.$ac_ext >&5
40449
40450         ac_cv_func_localtime_r=no
40451 fi
40452
40453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40454       conftest$ac_exeext conftest.$ac_ext
40455 fi
40456 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40457 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40458 if test $ac_cv_func_localtime_r = yes; then
40459    cat >>confdefs.h <<\_ACEOF
40460 #define HAVE_LOCALTIME_R 1
40461 _ACEOF
40462
40463 fi
40464
40465 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40466 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40467 if test "${ac_cv_func_gmtime_r+set}" = set; then
40468   echo $ECHO_N "(cached) $ECHO_C" >&6
40469 else
40470   cat >conftest.$ac_ext <<_ACEOF
40471 /* confdefs.h.  */
40472 _ACEOF
40473 cat confdefs.h >>conftest.$ac_ext
40474 cat >>conftest.$ac_ext <<_ACEOF
40475 /* end confdefs.h.  */
40476 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40478 #define gmtime_r innocuous_gmtime_r
40479
40480 /* System header to define __stub macros and hopefully few prototypes,
40481     which can conflict with char gmtime_r (); below.
40482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40483     <limits.h> exists even on freestanding compilers.  */
40484
40485 #ifdef __STDC__
40486 # include <limits.h>
40487 #else
40488 # include <assert.h>
40489 #endif
40490
40491 #undef gmtime_r
40492
40493 /* Override any GCC internal prototype to avoid an error.
40494    Use char because int might match the return type of a GCC
40495    builtin and then its argument prototype would still apply.  */
40496 #ifdef __cplusplus
40497 extern "C"
40498 #endif
40499 char gmtime_r ();
40500 /* The GNU C library defines this for functions which it implements
40501     to always fail with ENOSYS.  Some functions are actually named
40502     something starting with __ and the normal name is an alias.  */
40503 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40504 choke me
40505 #endif
40506
40507 int
40508 main ()
40509 {
40510 return gmtime_r ();
40511   ;
40512   return 0;
40513 }
40514 _ACEOF
40515 rm -f conftest.$ac_objext conftest$ac_exeext
40516 if { (ac_try="$ac_link"
40517 case "(($ac_try" in
40518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40519   *) ac_try_echo=$ac_try;;
40520 esac
40521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40522   (eval "$ac_link") 2>conftest.er1
40523   ac_status=$?
40524   grep -v '^ *+' conftest.er1 >conftest.err
40525   rm -f conftest.er1
40526   cat conftest.err >&5
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); } && {
40529          test -z "$ac_c_werror_flag" ||
40530          test ! -s conftest.err
40531        } && test -s conftest$ac_exeext &&
40532        $as_test_x conftest$ac_exeext; then
40533   ac_cv_func_gmtime_r=yes
40534 else
40535   echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40537
40538         ac_cv_func_gmtime_r=no
40539 fi
40540
40541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40542       conftest$ac_exeext conftest.$ac_ext
40543 fi
40544 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40545 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40546 if test $ac_cv_func_gmtime_r = yes; then
40547    cat >>confdefs.h <<\_ACEOF
40548 #define HAVE_GMTIME_R 1
40549 _ACEOF
40550
40551 fi
40552
40553
40554
40555
40556     ac_ext=c
40557 ac_cpp='$CPP $CPPFLAGS'
40558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40561
40562     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40563 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40564
40565     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40566   echo $ECHO_N "(cached) $ECHO_C" >&6
40567 else
40568
40569
40570 ################################################################
40571
40572 ac_cv_func_which_gethostbyname_r=unknown
40573
40574 #
40575 # ONE ARGUMENT (sanity check)
40576 #
40577
40578 # This should fail, as there is no variant of gethostbyname_r() that takes
40579 # a single argument. If it actually compiles, then we can assume that
40580 # netdb.h is not declaring the function, and the compiler is thereby
40581 # assuming an implicit prototype. In which case, we're out of luck.
40582 #
40583 cat >conftest.$ac_ext <<_ACEOF
40584 /* confdefs.h.  */
40585 _ACEOF
40586 cat confdefs.h >>conftest.$ac_ext
40587 cat >>conftest.$ac_ext <<_ACEOF
40588 /* end confdefs.h.  */
40589 #include <netdb.h>
40590 int
40591 main ()
40592 {
40593
40594             char *name = "www.gnu.org";
40595             (void)gethostbyname_r(name) /* ; */
40596
40597   ;
40598   return 0;
40599 }
40600 _ACEOF
40601 rm -f conftest.$ac_objext
40602 if { (ac_try="$ac_compile"
40603 case "(($ac_try" in
40604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40605   *) ac_try_echo=$ac_try;;
40606 esac
40607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40608   (eval "$ac_compile") 2>conftest.er1
40609   ac_status=$?
40610   grep -v '^ *+' conftest.er1 >conftest.err
40611   rm -f conftest.er1
40612   cat conftest.err >&5
40613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614   (exit $ac_status); } && {
40615          test -z "$ac_c_werror_flag" ||
40616          test ! -s conftest.err
40617        } && test -s conftest.$ac_objext; then
40618   ac_cv_func_which_gethostbyname_r=no
40619 else
40620   echo "$as_me: failed program was:" >&5
40621 sed 's/^/| /' conftest.$ac_ext >&5
40622
40623
40624 fi
40625
40626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40627
40628 #
40629 # SIX ARGUMENTS
40630 # (e.g. Linux)
40631 #
40632
40633 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40634
40635 cat >conftest.$ac_ext <<_ACEOF
40636 /* confdefs.h.  */
40637 _ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h.  */
40641 #include <netdb.h>
40642 int
40643 main ()
40644 {
40645
40646             char *name = "www.gnu.org";
40647             struct hostent ret, *retp;
40648             char buf[1024];
40649             int buflen = 1024;
40650             int my_h_errno;
40651             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40652
40653   ;
40654   return 0;
40655 }
40656 _ACEOF
40657 rm -f conftest.$ac_objext
40658 if { (ac_try="$ac_compile"
40659 case "(($ac_try" in
40660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661   *) ac_try_echo=$ac_try;;
40662 esac
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664   (eval "$ac_compile") 2>conftest.er1
40665   ac_status=$?
40666   grep -v '^ *+' conftest.er1 >conftest.err
40667   rm -f conftest.er1
40668   cat conftest.err >&5
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); } && {
40671          test -z "$ac_c_werror_flag" ||
40672          test ! -s conftest.err
40673        } && test -s conftest.$ac_objext; then
40674   ac_cv_func_which_gethostbyname_r=six
40675 else
40676   echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40678
40679
40680 fi
40681
40682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40683
40684 fi
40685
40686 #
40687 # FIVE ARGUMENTS
40688 # (e.g. Solaris)
40689 #
40690
40691 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40692
40693 cat >conftest.$ac_ext <<_ACEOF
40694 /* confdefs.h.  */
40695 _ACEOF
40696 cat confdefs.h >>conftest.$ac_ext
40697 cat >>conftest.$ac_ext <<_ACEOF
40698 /* end confdefs.h.  */
40699 #include <netdb.h>
40700 int
40701 main ()
40702 {
40703
40704             char *name = "www.gnu.org";
40705             struct hostent ret;
40706             char buf[1024];
40707             int buflen = 1024;
40708             int my_h_errno;
40709             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40710
40711   ;
40712   return 0;
40713 }
40714 _ACEOF
40715 rm -f conftest.$ac_objext
40716 if { (ac_try="$ac_compile"
40717 case "(($ac_try" in
40718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40719   *) ac_try_echo=$ac_try;;
40720 esac
40721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40722   (eval "$ac_compile") 2>conftest.er1
40723   ac_status=$?
40724   grep -v '^ *+' conftest.er1 >conftest.err
40725   rm -f conftest.er1
40726   cat conftest.err >&5
40727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728   (exit $ac_status); } && {
40729          test -z "$ac_c_werror_flag" ||
40730          test ! -s conftest.err
40731        } && test -s conftest.$ac_objext; then
40732   ac_cv_func_which_gethostbyname_r=five
40733 else
40734   echo "$as_me: failed program was:" >&5
40735 sed 's/^/| /' conftest.$ac_ext >&5
40736
40737
40738 fi
40739
40740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40741
40742 fi
40743
40744 #
40745 # THREE ARGUMENTS
40746 # (e.g. AIX, HP-UX, Tru64)
40747 #
40748
40749 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40750
40751 cat >conftest.$ac_ext <<_ACEOF
40752 /* confdefs.h.  */
40753 _ACEOF
40754 cat confdefs.h >>conftest.$ac_ext
40755 cat >>conftest.$ac_ext <<_ACEOF
40756 /* end confdefs.h.  */
40757 #include <netdb.h>
40758 int
40759 main ()
40760 {
40761
40762             char *name = "www.gnu.org";
40763             struct hostent ret;
40764             struct hostent_data data;
40765             (void)gethostbyname_r(name, &ret, &data) /* ; */
40766
40767   ;
40768   return 0;
40769 }
40770 _ACEOF
40771 rm -f conftest.$ac_objext
40772 if { (ac_try="$ac_compile"
40773 case "(($ac_try" in
40774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40775   *) ac_try_echo=$ac_try;;
40776 esac
40777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40778   (eval "$ac_compile") 2>conftest.er1
40779   ac_status=$?
40780   grep -v '^ *+' conftest.er1 >conftest.err
40781   rm -f conftest.er1
40782   cat conftest.err >&5
40783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784   (exit $ac_status); } && {
40785          test -z "$ac_c_werror_flag" ||
40786          test ! -s conftest.err
40787        } && test -s conftest.$ac_objext; then
40788   ac_cv_func_which_gethostbyname_r=three
40789 else
40790   echo "$as_me: failed program was:" >&5
40791 sed 's/^/| /' conftest.$ac_ext >&5
40792
40793
40794 fi
40795
40796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40797
40798 fi
40799
40800 ################################################################
40801
40802
40803 fi
40804
40805 case "$ac_cv_func_which_gethostbyname_r" in
40806     three)
40807     { echo "$as_me:$LINENO: result: three" >&5
40808 echo "${ECHO_T}three" >&6; }
40809     cat >>confdefs.h <<\_ACEOF
40810 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40811 _ACEOF
40812
40813     ;;
40814
40815     five)
40816     { echo "$as_me:$LINENO: result: five" >&5
40817 echo "${ECHO_T}five" >&6; }
40818     cat >>confdefs.h <<\_ACEOF
40819 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40820 _ACEOF
40821
40822     ;;
40823
40824     six)
40825     { echo "$as_me:$LINENO: result: six" >&5
40826 echo "${ECHO_T}six" >&6; }
40827     cat >>confdefs.h <<\_ACEOF
40828 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40829 _ACEOF
40830
40831     ;;
40832
40833     no)
40834     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40835 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40836     ;;
40837
40838     unknown)
40839     { echo "$as_me:$LINENO: result: can't tell" >&5
40840 echo "${ECHO_T}can't tell" >&6; }
40841     ;;
40842
40843     *)
40844     { { echo "$as_me:$LINENO: error: internal error" >&5
40845 echo "$as_me: error: internal error" >&2;}
40846    { (exit 1); exit 1; }; }
40847     ;;
40848 esac
40849
40850 ac_ext=c
40851 ac_cpp='$CPP $CPPFLAGS'
40852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40855
40856
40857
40858       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40859               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40860           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40861 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40862 if test "${ac_cv_func_gethostbyname+set}" = set; then
40863   echo $ECHO_N "(cached) $ECHO_C" >&6
40864 else
40865   cat >conftest.$ac_ext <<_ACEOF
40866 /* confdefs.h.  */
40867 _ACEOF
40868 cat confdefs.h >>conftest.$ac_ext
40869 cat >>conftest.$ac_ext <<_ACEOF
40870 /* end confdefs.h.  */
40871 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40873 #define gethostbyname innocuous_gethostbyname
40874
40875 /* System header to define __stub macros and hopefully few prototypes,
40876     which can conflict with char gethostbyname (); below.
40877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40878     <limits.h> exists even on freestanding compilers.  */
40879
40880 #ifdef __STDC__
40881 # include <limits.h>
40882 #else
40883 # include <assert.h>
40884 #endif
40885
40886 #undef gethostbyname
40887
40888 /* Override any GCC internal prototype to avoid an error.
40889    Use char because int might match the return type of a GCC
40890    builtin and then its argument prototype would still apply.  */
40891 #ifdef __cplusplus
40892 extern "C"
40893 #endif
40894 char gethostbyname ();
40895 /* The GNU C library defines this for functions which it implements
40896     to always fail with ENOSYS.  Some functions are actually named
40897     something starting with __ and the normal name is an alias.  */
40898 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40899 choke me
40900 #endif
40901
40902 int
40903 main ()
40904 {
40905 return gethostbyname ();
40906   ;
40907   return 0;
40908 }
40909 _ACEOF
40910 rm -f conftest.$ac_objext conftest$ac_exeext
40911 if { (ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
40925          test ! -s conftest.err
40926        } && test -s conftest$ac_exeext &&
40927        $as_test_x conftest$ac_exeext; then
40928   ac_cv_func_gethostbyname=yes
40929 else
40930   echo "$as_me: failed program was:" >&5
40931 sed 's/^/| /' conftest.$ac_ext >&5
40932
40933         ac_cv_func_gethostbyname=no
40934 fi
40935
40936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40937       conftest$ac_exeext conftest.$ac_ext
40938 fi
40939 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40940 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40941 if test $ac_cv_func_gethostbyname = yes; then
40942    cat >>confdefs.h <<\_ACEOF
40943 #define HAVE_GETHOSTBYNAME 1
40944 _ACEOF
40945
40946 fi
40947
40948       fi
40949
40950 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40951 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40952 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40953   echo $ECHO_N "(cached) $ECHO_C" >&6
40954 else
40955
40956                 ac_ext=cpp
40957 ac_cpp='$CXXCPP $CPPFLAGS'
40958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40961
40962
40963         cat >conftest.$ac_ext <<_ACEOF
40964 /* confdefs.h.  */
40965 _ACEOF
40966 cat confdefs.h >>conftest.$ac_ext
40967 cat >>conftest.$ac_ext <<_ACEOF
40968 /* end confdefs.h.  */
40969 #include <netdb.h>
40970 int
40971 main ()
40972 {
40973
40974                 char *name;
40975                 char *proto;
40976                 struct servent *se, *res;
40977                 char buffer[2048];
40978                 int buflen = 2048;
40979                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40980
40981   ;
40982   return 0;
40983 }
40984 _ACEOF
40985 rm -f conftest.$ac_objext
40986 if { (ac_try="$ac_compile"
40987 case "(($ac_try" in
40988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40989   *) ac_try_echo=$ac_try;;
40990 esac
40991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40992   (eval "$ac_compile") 2>conftest.er1
40993   ac_status=$?
40994   grep -v '^ *+' conftest.er1 >conftest.err
40995   rm -f conftest.er1
40996   cat conftest.err >&5
40997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998   (exit $ac_status); } && {
40999          test -z "$ac_cxx_werror_flag" ||
41000          test ! -s conftest.err
41001        } && test -s conftest.$ac_objext; then
41002   ac_cv_func_which_getservbyname_r=six
41003 else
41004   echo "$as_me: failed program was:" >&5
41005 sed 's/^/| /' conftest.$ac_ext >&5
41006
41007
41008                 cat >conftest.$ac_ext <<_ACEOF
41009 /* confdefs.h.  */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h.  */
41014 #include <netdb.h>
41015 int
41016 main ()
41017 {
41018
41019                         char *name;
41020                         char *proto;
41021                         struct servent *se;
41022                         char buffer[2048];
41023                         int buflen = 2048;
41024                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41025
41026   ;
41027   return 0;
41028 }
41029 _ACEOF
41030 rm -f conftest.$ac_objext
41031 if { (ac_try="$ac_compile"
41032 case "(($ac_try" in
41033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41034   *) ac_try_echo=$ac_try;;
41035 esac
41036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41037   (eval "$ac_compile") 2>conftest.er1
41038   ac_status=$?
41039   grep -v '^ *+' conftest.er1 >conftest.err
41040   rm -f conftest.er1
41041   cat conftest.err >&5
41042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41043   (exit $ac_status); } && {
41044          test -z "$ac_cxx_werror_flag" ||
41045          test ! -s conftest.err
41046        } && test -s conftest.$ac_objext; then
41047   ac_cv_func_which_getservbyname_r=five
41048 else
41049   echo "$as_me: failed program was:" >&5
41050 sed 's/^/| /' conftest.$ac_ext >&5
41051
41052
41053                         cat >conftest.$ac_ext <<_ACEOF
41054 /* confdefs.h.  */
41055 _ACEOF
41056 cat confdefs.h >>conftest.$ac_ext
41057 cat >>conftest.$ac_ext <<_ACEOF
41058 /* end confdefs.h.  */
41059 #include <netdb.h>
41060 int
41061 main ()
41062 {
41063
41064                                 char *name;
41065                                 char *proto;
41066                                 struct servent *se;
41067                                 struct servent_data data;
41068                                 (void) getservbyname_r(name, proto, se, &data);
41069
41070   ;
41071   return 0;
41072 }
41073 _ACEOF
41074 rm -f conftest.$ac_objext
41075 if { (ac_try="$ac_compile"
41076 case "(($ac_try" in
41077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41078   *) ac_try_echo=$ac_try;;
41079 esac
41080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41081   (eval "$ac_compile") 2>conftest.er1
41082   ac_status=$?
41083   grep -v '^ *+' conftest.er1 >conftest.err
41084   rm -f conftest.er1
41085   cat conftest.err >&5
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); } && {
41088          test -z "$ac_cxx_werror_flag" ||
41089          test ! -s conftest.err
41090        } && test -s conftest.$ac_objext; then
41091   ac_cv_func_which_getservbyname_r=four
41092 else
41093   echo "$as_me: failed program was:" >&5
41094 sed 's/^/| /' conftest.$ac_ext >&5
41095
41096         ac_cv_func_which_getservbyname_r=no
41097
41098 fi
41099
41100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41101
41102
41103 fi
41104
41105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41106
41107
41108 fi
41109
41110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41111         ac_ext=c
41112 ac_cpp='$CPP $CPPFLAGS'
41113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41116
41117
41118
41119 fi
41120 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41121 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41122
41123 if test $ac_cv_func_which_getservbyname_r = six; then
41124   cat >>confdefs.h <<\_ACEOF
41125 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41126 _ACEOF
41127
41128 elif test $ac_cv_func_which_getservbyname_r = five; then
41129   cat >>confdefs.h <<\_ACEOF
41130 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41131 _ACEOF
41132
41133 elif test $ac_cv_func_which_getservbyname_r = four; then
41134   cat >>confdefs.h <<\_ACEOF
41135 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41136 _ACEOF
41137
41138 fi
41139
41140
41141       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41142               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41143
41144 for ac_func in getservbyname
41145 do
41146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41150   echo $ECHO_N "(cached) $ECHO_C" >&6
41151 else
41152   cat >conftest.$ac_ext <<_ACEOF
41153 /* confdefs.h.  */
41154 _ACEOF
41155 cat confdefs.h >>conftest.$ac_ext
41156 cat >>conftest.$ac_ext <<_ACEOF
41157 /* end confdefs.h.  */
41158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41160 #define $ac_func innocuous_$ac_func
41161
41162 /* System header to define __stub macros and hopefully few prototypes,
41163     which can conflict with char $ac_func (); below.
41164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41165     <limits.h> exists even on freestanding compilers.  */
41166
41167 #ifdef __STDC__
41168 # include <limits.h>
41169 #else
41170 # include <assert.h>
41171 #endif
41172
41173 #undef $ac_func
41174
41175 /* Override any GCC internal prototype to avoid an error.
41176    Use char because int might match the return type of a GCC
41177    builtin and then its argument prototype would still apply.  */
41178 #ifdef __cplusplus
41179 extern "C"
41180 #endif
41181 char $ac_func ();
41182 /* The GNU C library defines this for functions which it implements
41183     to always fail with ENOSYS.  Some functions are actually named
41184     something starting with __ and the normal name is an alias.  */
41185 #if defined __stub_$ac_func || defined __stub___$ac_func
41186 choke me
41187 #endif
41188
41189 int
41190 main ()
41191 {
41192 return $ac_func ();
41193   ;
41194   return 0;
41195 }
41196 _ACEOF
41197 rm -f conftest.$ac_objext conftest$ac_exeext
41198 if { (ac_try="$ac_link"
41199 case "(($ac_try" in
41200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41201   *) ac_try_echo=$ac_try;;
41202 esac
41203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41204   (eval "$ac_link") 2>conftest.er1
41205   ac_status=$?
41206   grep -v '^ *+' conftest.er1 >conftest.err
41207   rm -f conftest.er1
41208   cat conftest.err >&5
41209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210   (exit $ac_status); } && {
41211          test -z "$ac_c_werror_flag" ||
41212          test ! -s conftest.err
41213        } && test -s conftest$ac_exeext &&
41214        $as_test_x conftest$ac_exeext; then
41215   eval "$as_ac_var=yes"
41216 else
41217   echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41219
41220         eval "$as_ac_var=no"
41221 fi
41222
41223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41224       conftest$ac_exeext conftest.$ac_ext
41225 fi
41226 ac_res=`eval echo '${'$as_ac_var'}'`
41227                { echo "$as_me:$LINENO: result: $ac_res" >&5
41228 echo "${ECHO_T}$ac_res" >&6; }
41229 if test `eval echo '${'$as_ac_var'}'` = yes; then
41230   cat >>confdefs.h <<_ACEOF
41231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41232 _ACEOF
41233   cat >>confdefs.h <<\_ACEOF
41234 #define HAVE_GETSERVBYNAME 1
41235 _ACEOF
41236
41237 fi
41238 done
41239
41240       fi
41241
41242 if test "$wxUSE_THREADS" = "yes"; then
41243   cat >>confdefs.h <<\_ACEOF
41244 #define wxUSE_THREADS 1
41245 _ACEOF
41246
41247
41248   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41249 else
41250       if test "$wx_cv_func_strtok_r" = "yes"; then
41251     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41252 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41253     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41254         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41255         { echo "$as_me:$LINENO: result: yes" >&5
41256 echo "${ECHO_T}yes" >&6; }
41257     else
41258         { echo "$as_me:$LINENO: result: no" >&5
41259 echo "${ECHO_T}no" >&6; }
41260     fi
41261   fi
41262 fi
41263
41264 if test "$WXGTK2" = 1 ; then
41265   cat >>confdefs.h <<_ACEOF
41266 #define __WXGTK20__ $WXGTK2
41267 _ACEOF
41268
41269   WXGTK12=1
41270 fi
41271
41272 if test "$WXGTK12" = 1 ; then
41273   cat >>confdefs.h <<_ACEOF
41274 #define __WXGTK12__ $WXGTK12
41275 _ACEOF
41276
41277 fi
41278
41279 if test "$WXGTK127" = 1 ; then
41280   cat >>confdefs.h <<_ACEOF
41281 #define __WXGTK127__ $WXGTK127
41282 _ACEOF
41283
41284 fi
41285
41286 if test "$WXGPE" = 1 ; then
41287   cat >>confdefs.h <<_ACEOF
41288 #define __WXGPE__ $WXGPE
41289 _ACEOF
41290
41291 fi
41292
41293 DEBUG_CFLAGS=
41294 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41295     DEBUG_CFLAGS="-g"
41296 fi
41297
41298 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41299     wxUSE_DEBUG_INFO=yes
41300     if test "$GCC" = yes; then
41301         DEBUG_CFLAGS="-ggdb"
41302     fi
41303 fi
41304
41305 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41306     cat >>confdefs.h <<\_ACEOF
41307 #define WXDEBUG 1
41308 _ACEOF
41309
41310     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41311 else
41312     if test "$wxUSE_GTK" = 1 ; then
41313         if test "x$wxGTK_VERSION" = "x1" ; then
41314             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41315         fi
41316     fi
41317 fi
41318
41319 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41320     cat >>confdefs.h <<\_ACEOF
41321 #define wxUSE_MEMORY_TRACING 1
41322 _ACEOF
41323
41324     cat >>confdefs.h <<\_ACEOF
41325 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41326 _ACEOF
41327
41328     cat >>confdefs.h <<\_ACEOF
41329 #define wxUSE_DEBUG_NEW_ALWAYS 1
41330 _ACEOF
41331
41332     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41333 fi
41334
41335 if test "$wxUSE_DMALLOC" = "yes" ; then
41336     DMALLOC_LIBS="-ldmallocthcxx"
41337 fi
41338
41339 PROFILE_FLAGS=
41340 if test "$wxUSE_PROFILE" = "yes" ; then
41341     PROFILE_FLAGS=" -pg"
41342 fi
41343
41344 if test "$GCC" = "yes" ; then
41345     if test "$wxUSE_NO_RTTI" = "yes" ; then
41346         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41347     fi
41348     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41349         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41350     fi
41351     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41352         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41353     fi
41354
41355                                                 case "${host}" in
41356       powerpc*-*-aix* )
41357         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41358         ;;
41359       *-hppa* )
41360         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41361         ;;
41362     esac
41363 fi
41364
41365 OPTIMISE_CFLAGS=
41366 if test "$wxUSE_OPTIMISE" = "no" ; then
41367     if test "$GCC" = yes ; then
41368                         OPTIMISE_CFLAGS="-O0"
41369     fi
41370 else
41371     if test "$GCC" = yes ; then
41372         case "${host}" in
41373             *-pc-os2_emx | *-pc-os2-emx )
41374                                                 OPTIMISE_CFLAGS="-O2"
41375             ;;
41376             *)
41377                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41378             ;;
41379         esac
41380     else
41381         OPTIMISE_CFLAGS="-O"
41382     fi
41383 fi
41384
41385
41386 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41387     cat >>confdefs.h <<\_ACEOF
41388 #define WXWIN_COMPATIBILITY_2_6 1
41389 _ACEOF
41390
41391
41392     WXWIN_COMPATIBILITY_2_8="yes"
41393 fi
41394
41395 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41396     cat >>confdefs.h <<\_ACEOF
41397 #define WXWIN_COMPATIBILITY_2_8 1
41398 _ACEOF
41399
41400 fi
41401
41402
41403 if test "$wxUSE_GUI" = "yes"; then
41404     cat >>confdefs.h <<\_ACEOF
41405 #define wxUSE_GUI 1
41406 _ACEOF
41407
41408
41409                                             fi
41410
41411
41412 if test "$wxUSE_UNIX" = "yes"; then
41413   cat >>confdefs.h <<\_ACEOF
41414 #define wxUSE_UNIX 1
41415 _ACEOF
41416
41417 fi
41418
41419
41420 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41421
41422     HAVE_DL_FUNCS=0
41423     HAVE_SHL_FUNCS=0
41424     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41425         if test "$USE_DOS" = 1; then
41426             HAVE_DL_FUNCS=0
41427         else
41428
41429 for ac_func in dlopen
41430 do
41431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41435   echo $ECHO_N "(cached) $ECHO_C" >&6
41436 else
41437   cat >conftest.$ac_ext <<_ACEOF
41438 /* confdefs.h.  */
41439 _ACEOF
41440 cat confdefs.h >>conftest.$ac_ext
41441 cat >>conftest.$ac_ext <<_ACEOF
41442 /* end confdefs.h.  */
41443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41445 #define $ac_func innocuous_$ac_func
41446
41447 /* System header to define __stub macros and hopefully few prototypes,
41448     which can conflict with char $ac_func (); below.
41449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41450     <limits.h> exists even on freestanding compilers.  */
41451
41452 #ifdef __STDC__
41453 # include <limits.h>
41454 #else
41455 # include <assert.h>
41456 #endif
41457
41458 #undef $ac_func
41459
41460 /* Override any GCC internal prototype to avoid an error.
41461    Use char because int might match the return type of a GCC
41462    builtin and then its argument prototype would still apply.  */
41463 #ifdef __cplusplus
41464 extern "C"
41465 #endif
41466 char $ac_func ();
41467 /* The GNU C library defines this for functions which it implements
41468     to always fail with ENOSYS.  Some functions are actually named
41469     something starting with __ and the normal name is an alias.  */
41470 #if defined __stub_$ac_func || defined __stub___$ac_func
41471 choke me
41472 #endif
41473
41474 int
41475 main ()
41476 {
41477 return $ac_func ();
41478   ;
41479   return 0;
41480 }
41481 _ACEOF
41482 rm -f conftest.$ac_objext conftest$ac_exeext
41483 if { (ac_try="$ac_link"
41484 case "(($ac_try" in
41485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41486   *) ac_try_echo=$ac_try;;
41487 esac
41488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41489   (eval "$ac_link") 2>conftest.er1
41490   ac_status=$?
41491   grep -v '^ *+' conftest.er1 >conftest.err
41492   rm -f conftest.er1
41493   cat conftest.err >&5
41494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495   (exit $ac_status); } && {
41496          test -z "$ac_c_werror_flag" ||
41497          test ! -s conftest.err
41498        } && test -s conftest$ac_exeext &&
41499        $as_test_x conftest$ac_exeext; then
41500   eval "$as_ac_var=yes"
41501 else
41502   echo "$as_me: failed program was:" >&5
41503 sed 's/^/| /' conftest.$ac_ext >&5
41504
41505         eval "$as_ac_var=no"
41506 fi
41507
41508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41509       conftest$ac_exeext conftest.$ac_ext
41510 fi
41511 ac_res=`eval echo '${'$as_ac_var'}'`
41512                { echo "$as_me:$LINENO: result: $ac_res" >&5
41513 echo "${ECHO_T}$ac_res" >&6; }
41514 if test `eval echo '${'$as_ac_var'}'` = yes; then
41515   cat >>confdefs.h <<_ACEOF
41516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41517 _ACEOF
41518
41519                 cat >>confdefs.h <<\_ACEOF
41520 #define HAVE_DLOPEN 1
41521 _ACEOF
41522
41523                 HAVE_DL_FUNCS=1
41524
41525 else
41526
41527                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41530   echo $ECHO_N "(cached) $ECHO_C" >&6
41531 else
41532   ac_check_lib_save_LIBS=$LIBS
41533 LIBS="-ldl  $LIBS"
41534 cat >conftest.$ac_ext <<_ACEOF
41535 /* confdefs.h.  */
41536 _ACEOF
41537 cat confdefs.h >>conftest.$ac_ext
41538 cat >>conftest.$ac_ext <<_ACEOF
41539 /* end confdefs.h.  */
41540
41541 /* Override any GCC internal prototype to avoid an error.
41542    Use char because int might match the return type of a GCC
41543    builtin and then its argument prototype would still apply.  */
41544 #ifdef __cplusplus
41545 extern "C"
41546 #endif
41547 char dlopen ();
41548 int
41549 main ()
41550 {
41551 return dlopen ();
41552   ;
41553   return 0;
41554 }
41555 _ACEOF
41556 rm -f conftest.$ac_objext conftest$ac_exeext
41557 if { (ac_try="$ac_link"
41558 case "(($ac_try" in
41559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41560   *) ac_try_echo=$ac_try;;
41561 esac
41562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41563   (eval "$ac_link") 2>conftest.er1
41564   ac_status=$?
41565   grep -v '^ *+' conftest.er1 >conftest.err
41566   rm -f conftest.er1
41567   cat conftest.err >&5
41568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569   (exit $ac_status); } && {
41570          test -z "$ac_c_werror_flag" ||
41571          test ! -s conftest.err
41572        } && test -s conftest$ac_exeext &&
41573        $as_test_x conftest$ac_exeext; then
41574   ac_cv_lib_dl_dlopen=yes
41575 else
41576   echo "$as_me: failed program was:" >&5
41577 sed 's/^/| /' conftest.$ac_ext >&5
41578
41579         ac_cv_lib_dl_dlopen=no
41580 fi
41581
41582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41583       conftest$ac_exeext conftest.$ac_ext
41584 LIBS=$ac_check_lib_save_LIBS
41585 fi
41586 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41587 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41588 if test $ac_cv_lib_dl_dlopen = yes; then
41589
41590                                 cat >>confdefs.h <<\_ACEOF
41591 #define HAVE_DLOPEN 1
41592 _ACEOF
41593
41594                                 HAVE_DL_FUNCS=1
41595                                 DL_LINK=" -ldl$DL_LINK"
41596
41597 else
41598
41599
41600 for ac_func in shl_load
41601 do
41602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41606   echo $ECHO_N "(cached) $ECHO_C" >&6
41607 else
41608   cat >conftest.$ac_ext <<_ACEOF
41609 /* confdefs.h.  */
41610 _ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h.  */
41614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41616 #define $ac_func innocuous_$ac_func
41617
41618 /* System header to define __stub macros and hopefully few prototypes,
41619     which can conflict with char $ac_func (); below.
41620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41621     <limits.h> exists even on freestanding compilers.  */
41622
41623 #ifdef __STDC__
41624 # include <limits.h>
41625 #else
41626 # include <assert.h>
41627 #endif
41628
41629 #undef $ac_func
41630
41631 /* Override any GCC internal prototype to avoid an error.
41632    Use char because int might match the return type of a GCC
41633    builtin and then its argument prototype would still apply.  */
41634 #ifdef __cplusplus
41635 extern "C"
41636 #endif
41637 char $ac_func ();
41638 /* The GNU C library defines this for functions which it implements
41639     to always fail with ENOSYS.  Some functions are actually named
41640     something starting with __ and the normal name is an alias.  */
41641 #if defined __stub_$ac_func || defined __stub___$ac_func
41642 choke me
41643 #endif
41644
41645 int
41646 main ()
41647 {
41648 return $ac_func ();
41649   ;
41650   return 0;
41651 }
41652 _ACEOF
41653 rm -f conftest.$ac_objext conftest$ac_exeext
41654 if { (ac_try="$ac_link"
41655 case "(($ac_try" in
41656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41657   *) ac_try_echo=$ac_try;;
41658 esac
41659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41660   (eval "$ac_link") 2>conftest.er1
41661   ac_status=$?
41662   grep -v '^ *+' conftest.er1 >conftest.err
41663   rm -f conftest.er1
41664   cat conftest.err >&5
41665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41666   (exit $ac_status); } && {
41667          test -z "$ac_c_werror_flag" ||
41668          test ! -s conftest.err
41669        } && test -s conftest$ac_exeext &&
41670        $as_test_x conftest$ac_exeext; then
41671   eval "$as_ac_var=yes"
41672 else
41673   echo "$as_me: failed program was:" >&5
41674 sed 's/^/| /' conftest.$ac_ext >&5
41675
41676         eval "$as_ac_var=no"
41677 fi
41678
41679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41680       conftest$ac_exeext conftest.$ac_ext
41681 fi
41682 ac_res=`eval echo '${'$as_ac_var'}'`
41683                { echo "$as_me:$LINENO: result: $ac_res" >&5
41684 echo "${ECHO_T}$ac_res" >&6; }
41685 if test `eval echo '${'$as_ac_var'}'` = yes; then
41686   cat >>confdefs.h <<_ACEOF
41687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41688 _ACEOF
41689
41690                                                 cat >>confdefs.h <<\_ACEOF
41691 #define HAVE_SHL_LOAD 1
41692 _ACEOF
41693
41694                                                 HAVE_SHL_FUNCS=1
41695
41696 else
41697
41698                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41699 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41700 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41701   echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703   ac_check_lib_save_LIBS=$LIBS
41704 LIBS="-lshl_load  $LIBS"
41705 cat >conftest.$ac_ext <<_ACEOF
41706 /* confdefs.h.  */
41707 _ACEOF
41708 cat confdefs.h >>conftest.$ac_ext
41709 cat >>conftest.$ac_ext <<_ACEOF
41710 /* end confdefs.h.  */
41711
41712 /* Override any GCC internal prototype to avoid an error.
41713    Use char because int might match the return type of a GCC
41714    builtin and then its argument prototype would still apply.  */
41715 #ifdef __cplusplus
41716 extern "C"
41717 #endif
41718 char dld ();
41719 int
41720 main ()
41721 {
41722 return dld ();
41723   ;
41724   return 0;
41725 }
41726 _ACEOF
41727 rm -f conftest.$ac_objext conftest$ac_exeext
41728 if { (ac_try="$ac_link"
41729 case "(($ac_try" in
41730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41731   *) ac_try_echo=$ac_try;;
41732 esac
41733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41734   (eval "$ac_link") 2>conftest.er1
41735   ac_status=$?
41736   grep -v '^ *+' conftest.er1 >conftest.err
41737   rm -f conftest.er1
41738   cat conftest.err >&5
41739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740   (exit $ac_status); } && {
41741          test -z "$ac_c_werror_flag" ||
41742          test ! -s conftest.err
41743        } && test -s conftest$ac_exeext &&
41744        $as_test_x conftest$ac_exeext; then
41745   ac_cv_lib_shl_load_dld=yes
41746 else
41747   echo "$as_me: failed program was:" >&5
41748 sed 's/^/| /' conftest.$ac_ext >&5
41749
41750         ac_cv_lib_shl_load_dld=no
41751 fi
41752
41753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41754       conftest$ac_exeext conftest.$ac_ext
41755 LIBS=$ac_check_lib_save_LIBS
41756 fi
41757 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41758 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41759 if test $ac_cv_lib_shl_load_dld = yes; then
41760
41761                                                                 HAVE_SHL_FUNCS=1
41762                                                                 DL_LINK=" -ldld$DL_LINK"
41763
41764 fi
41765
41766
41767 fi
41768 done
41769
41770
41771 fi
41772
41773
41774 fi
41775 done
41776
41777
41778                         if test "$HAVE_DL_FUNCS" = 1; then
41779
41780 for ac_func in dlerror
41781 do
41782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41786   echo $ECHO_N "(cached) $ECHO_C" >&6
41787 else
41788   cat >conftest.$ac_ext <<_ACEOF
41789 /* confdefs.h.  */
41790 _ACEOF
41791 cat confdefs.h >>conftest.$ac_ext
41792 cat >>conftest.$ac_ext <<_ACEOF
41793 /* end confdefs.h.  */
41794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41796 #define $ac_func innocuous_$ac_func
41797
41798 /* System header to define __stub macros and hopefully few prototypes,
41799     which can conflict with char $ac_func (); below.
41800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41801     <limits.h> exists even on freestanding compilers.  */
41802
41803 #ifdef __STDC__
41804 # include <limits.h>
41805 #else
41806 # include <assert.h>
41807 #endif
41808
41809 #undef $ac_func
41810
41811 /* Override any GCC internal prototype to avoid an error.
41812    Use char because int might match the return type of a GCC
41813    builtin and then its argument prototype would still apply.  */
41814 #ifdef __cplusplus
41815 extern "C"
41816 #endif
41817 char $ac_func ();
41818 /* The GNU C library defines this for functions which it implements
41819     to always fail with ENOSYS.  Some functions are actually named
41820     something starting with __ and the normal name is an alias.  */
41821 #if defined __stub_$ac_func || defined __stub___$ac_func
41822 choke me
41823 #endif
41824
41825 int
41826 main ()
41827 {
41828 return $ac_func ();
41829   ;
41830   return 0;
41831 }
41832 _ACEOF
41833 rm -f conftest.$ac_objext conftest$ac_exeext
41834 if { (ac_try="$ac_link"
41835 case "(($ac_try" in
41836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41837   *) ac_try_echo=$ac_try;;
41838 esac
41839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41840   (eval "$ac_link") 2>conftest.er1
41841   ac_status=$?
41842   grep -v '^ *+' conftest.er1 >conftest.err
41843   rm -f conftest.er1
41844   cat conftest.err >&5
41845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846   (exit $ac_status); } && {
41847          test -z "$ac_c_werror_flag" ||
41848          test ! -s conftest.err
41849        } && test -s conftest$ac_exeext &&
41850        $as_test_x conftest$ac_exeext; then
41851   eval "$as_ac_var=yes"
41852 else
41853   echo "$as_me: failed program was:" >&5
41854 sed 's/^/| /' conftest.$ac_ext >&5
41855
41856         eval "$as_ac_var=no"
41857 fi
41858
41859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41860       conftest$ac_exeext conftest.$ac_ext
41861 fi
41862 ac_res=`eval echo '${'$as_ac_var'}'`
41863                { echo "$as_me:$LINENO: result: $ac_res" >&5
41864 echo "${ECHO_T}$ac_res" >&6; }
41865 if test `eval echo '${'$as_ac_var'}'` = yes; then
41866   cat >>confdefs.h <<_ACEOF
41867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41868 _ACEOF
41869  cat >>confdefs.h <<\_ACEOF
41870 #define HAVE_DLERROR 1
41871 _ACEOF
41872
41873 else
41874
41875                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41876 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41877 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41878   echo $ECHO_N "(cached) $ECHO_C" >&6
41879 else
41880   ac_check_lib_save_LIBS=$LIBS
41881 LIBS="-ldl  $LIBS"
41882 cat >conftest.$ac_ext <<_ACEOF
41883 /* confdefs.h.  */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h.  */
41888
41889 /* Override any GCC internal prototype to avoid an error.
41890    Use char because int might match the return type of a GCC
41891    builtin and then its argument prototype would still apply.  */
41892 #ifdef __cplusplus
41893 extern "C"
41894 #endif
41895 char dlerror ();
41896 int
41897 main ()
41898 {
41899 return dlerror ();
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_lib_dl_dlerror=yes
41923 else
41924   echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41926
41927         ac_cv_lib_dl_dlerror=no
41928 fi
41929
41930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41931       conftest$ac_exeext conftest.$ac_ext
41932 LIBS=$ac_check_lib_save_LIBS
41933 fi
41934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41935 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41936 if test $ac_cv_lib_dl_dlerror = yes; then
41937   cat >>confdefs.h <<\_ACEOF
41938 #define HAVE_DLERROR 1
41939 _ACEOF
41940
41941 fi
41942
41943
41944
41945 fi
41946 done
41947
41948             fi
41949         fi
41950
41951                 if test "$USE_DARWIN" = 1; then
41952                         HAVE_DL_FUNCS=1
41953         fi
41954
41955         if test "$HAVE_DL_FUNCS" = 0; then
41956             if test "$HAVE_SHL_FUNCS" = 0; then
41957               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41958                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41959 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41960                   wxUSE_DYNAMIC_LOADER=no
41961                   wxUSE_DYNLIB_CLASS=no
41962               else
41963                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41964 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41965               fi
41966             fi
41967         fi
41968     fi
41969 fi
41970
41971 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41972     cat >>confdefs.h <<\_ACEOF
41973 #define wxUSE_DYNAMIC_LOADER 1
41974 _ACEOF
41975
41976 fi
41977 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41978     cat >>confdefs.h <<\_ACEOF
41979 #define wxUSE_DYNLIB_CLASS 1
41980 _ACEOF
41981
41982 fi
41983
41984
41985
41986 if test "$wxUSE_PLUGINS" = "yes" ; then
41987     if test "$wxUSE_SHARED" = "no" ; then
41988         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41989 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41990         wxUSE_PLUGINS=no
41991     fi
41992     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41993         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41994 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41995         wxUSE_PLUGINS=no
41996     fi
41997     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41998         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41999 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42000         wxUSE_PLUGINS=no
42001     fi
42002     if test "$wxUSE_PLUGINS" = "yes" ; then
42003         cat >>confdefs.h <<\_ACEOF
42004 #define wxUSE_PLUGINS 1
42005 _ACEOF
42006
42007     fi
42008 fi
42009
42010
42011 if test "$wxUSE_STL" = "yes"; then
42012   cat >>confdefs.h <<\_ACEOF
42013 #define wxUSE_STL 1
42014 _ACEOF
42015
42016 fi
42017
42018 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42019   cat >>confdefs.h <<\_ACEOF
42020 #define wxUSE_EXTENDED_RTTI 1
42021 _ACEOF
42022
42023 fi
42024
42025 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42026   cat >>confdefs.h <<\_ACEOF
42027 #define wxUSE_APPLE_IEEE 1
42028 _ACEOF
42029
42030 fi
42031
42032 if test "$wxUSE_TIMER" = "yes"; then
42033   cat >>confdefs.h <<\_ACEOF
42034 #define wxUSE_TIMER 1
42035 _ACEOF
42036
42037 fi
42038
42039 if test "$USE_UNIX" = 1 ; then
42040         if test "$wxUSE_MGL" != 1; then
42041                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42042 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42043 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42044   echo $ECHO_N "(cached) $ECHO_C" >&6
42045 else
42046
42047             cat >conftest.$ac_ext <<_ACEOF
42048 /* confdefs.h.  */
42049 _ACEOF
42050 cat confdefs.h >>conftest.$ac_ext
42051 cat >>conftest.$ac_ext <<_ACEOF
42052 /* end confdefs.h.  */
42053
42054                     #include <sys/ioctl.h>
42055                     #include <sys/soundcard.h>
42056
42057 int
42058 main ()
42059 {
42060
42061                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42062
42063   ;
42064   return 0;
42065 }
42066 _ACEOF
42067 rm -f conftest.$ac_objext conftest$ac_exeext
42068 if { (ac_try="$ac_link"
42069 case "(($ac_try" in
42070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42071   *) ac_try_echo=$ac_try;;
42072 esac
42073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42074   (eval "$ac_link") 2>conftest.er1
42075   ac_status=$?
42076   grep -v '^ *+' conftest.er1 >conftest.err
42077   rm -f conftest.er1
42078   cat conftest.err >&5
42079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080   (exit $ac_status); } && {
42081          test -z "$ac_c_werror_flag" ||
42082          test ! -s conftest.err
42083        } && test -s conftest$ac_exeext &&
42084        $as_test_x conftest$ac_exeext; then
42085   ac_cv_header_sys_soundcard=yes
42086 else
42087   echo "$as_me: failed program was:" >&5
42088 sed 's/^/| /' conftest.$ac_ext >&5
42089
42090
42091                     saveLibs="$LIBS"
42092                     LIBS="$saveLibs -lossaudio"
42093                     cat >conftest.$ac_ext <<_ACEOF
42094 /* confdefs.h.  */
42095 _ACEOF
42096 cat confdefs.h >>conftest.$ac_ext
42097 cat >>conftest.$ac_ext <<_ACEOF
42098 /* end confdefs.h.  */
42099
42100                             #include <sys/ioctl.h>
42101                             #include <sys/soundcard.h>
42102
42103 int
42104 main ()
42105 {
42106
42107                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42108
42109   ;
42110   return 0;
42111 }
42112 _ACEOF
42113 rm -f conftest.$ac_objext conftest$ac_exeext
42114 if { (ac_try="$ac_link"
42115 case "(($ac_try" in
42116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42117   *) ac_try_echo=$ac_try;;
42118 esac
42119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42120   (eval "$ac_link") 2>conftest.er1
42121   ac_status=$?
42122   grep -v '^ *+' conftest.er1 >conftest.err
42123   rm -f conftest.er1
42124   cat conftest.err >&5
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); } && {
42127          test -z "$ac_c_werror_flag" ||
42128          test ! -s conftest.err
42129        } && test -s conftest$ac_exeext &&
42130        $as_test_x conftest$ac_exeext; then
42131   ac_cv_header_sys_soundcard=yes
42132 else
42133   echo "$as_me: failed program was:" >&5
42134 sed 's/^/| /' conftest.$ac_ext >&5
42135
42136
42137                             LIBS="$saveLibs"
42138                             ac_cv_header_sys_soundcard=no
42139
42140
42141 fi
42142
42143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42144       conftest$ac_exeext conftest.$ac_ext
42145
42146
42147 fi
42148
42149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42150       conftest$ac_exeext conftest.$ac_ext
42151
42152 fi
42153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42154 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42155     fi
42156
42157     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42158         cat >>confdefs.h <<\_ACEOF
42159 #define HAVE_SYS_SOUNDCARD_H 1
42160 _ACEOF
42161
42162     fi
42163 fi
42164
42165 WITH_PLUGIN_SDL=0
42166 if test "$wxUSE_SOUND" = "yes"; then
42167   if test "$USE_UNIX" = 1 ; then
42168     if test "$wxUSE_LIBSDL" != "no"; then
42169
42170 # Check whether --with-sdl-prefix was given.
42171 if test "${with_sdl_prefix+set}" = set; then
42172   withval=$with_sdl_prefix; sdl_prefix="$withval"
42173 else
42174   sdl_prefix=""
42175 fi
42176
42177
42178 # Check whether --with-sdl-exec-prefix was given.
42179 if test "${with_sdl_exec_prefix+set}" = set; then
42180   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42181 else
42182   sdl_exec_prefix=""
42183 fi
42184
42185 # Check whether --enable-sdltest was given.
42186 if test "${enable_sdltest+set}" = set; then
42187   enableval=$enable_sdltest;
42188 else
42189   enable_sdltest=yes
42190 fi
42191
42192
42193   if test x$sdl_exec_prefix != x ; then
42194     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42195     if test x${SDL_CONFIG+set} != xset ; then
42196       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42197     fi
42198   fi
42199   if test x$sdl_prefix != x ; then
42200     sdl_args="$sdl_args --prefix=$sdl_prefix"
42201     if test x${SDL_CONFIG+set} != xset ; then
42202       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42203     fi
42204   fi
42205
42206   if test "x$prefix" != xNONE; then
42207     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42208   fi
42209   # Extract the first word of "sdl-config", so it can be a program name with args.
42210 set dummy sdl-config; ac_word=$2
42211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42213 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42214   echo $ECHO_N "(cached) $ECHO_C" >&6
42215 else
42216   case $SDL_CONFIG in
42217   [\\/]* | ?:[\\/]*)
42218   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42219   ;;
42220   *)
42221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42222 for as_dir in $PATH
42223 do
42224   IFS=$as_save_IFS
42225   test -z "$as_dir" && as_dir=.
42226   for ac_exec_ext in '' $ac_executable_extensions; do
42227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42228     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42230     break 2
42231   fi
42232 done
42233 done
42234 IFS=$as_save_IFS
42235
42236   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42237   ;;
42238 esac
42239 fi
42240 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42241 if test -n "$SDL_CONFIG"; then
42242   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42243 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42244 else
42245   { echo "$as_me:$LINENO: result: no" >&5
42246 echo "${ECHO_T}no" >&6; }
42247 fi
42248
42249
42250   min_sdl_version=1.2.0
42251   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42252 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42253   no_sdl=""
42254   if test "$SDL_CONFIG" = "no" ; then
42255     no_sdl=yes
42256   else
42257     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42258     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42259
42260     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42261            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42262     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42263            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42264     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42265            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42266     if test "x$enable_sdltest" = "xyes" ; then
42267       ac_save_CFLAGS="$CFLAGS"
42268       ac_save_CXXFLAGS="$CXXFLAGS"
42269       ac_save_LIBS="$LIBS"
42270       CFLAGS="$CFLAGS $SDL_CFLAGS"
42271       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42272       LIBS="$LIBS $SDL_LIBS"
42273       rm -f conf.sdltest
42274       if test "$cross_compiling" = yes; then
42275   echo $ac_n "cross compiling; assumed OK... $ac_c"
42276 else
42277   cat >conftest.$ac_ext <<_ACEOF
42278 /* confdefs.h.  */
42279 _ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h.  */
42283
42284 #include <stdio.h>
42285 #include <stdlib.h>
42286 #include <string.h>
42287 #include "SDL.h"
42288
42289 char*
42290 my_strdup (char *str)
42291 {
42292   char *new_str;
42293
42294   if (str)
42295     {
42296       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42297       strcpy (new_str, str);
42298     }
42299   else
42300     new_str = NULL;
42301
42302   return new_str;
42303 }
42304
42305 int main (int argc, char *argv[])
42306 {
42307   int major, minor, micro;
42308   char *tmp_version;
42309
42310   /* This hangs on some systems (?)
42311   system ("touch conf.sdltest");
42312   */
42313   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42314
42315   /* HP/UX 9 (%@#!) writes to sscanf strings */
42316   tmp_version = my_strdup("$min_sdl_version");
42317   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42318      printf("%s, bad version string\n", "$min_sdl_version");
42319      exit(1);
42320    }
42321
42322    if (($sdl_major_version > major) ||
42323       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42324       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42325     {
42326       return 0;
42327     }
42328   else
42329     {
42330       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42331       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42332       printf("*** best to upgrade to the required version.\n");
42333       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42334       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42335       printf("*** config.cache before re-running configure\n");
42336       return 1;
42337     }
42338 }
42339
42340
42341 _ACEOF
42342 rm -f conftest$ac_exeext
42343 if { (ac_try="$ac_link"
42344 case "(($ac_try" in
42345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42346   *) ac_try_echo=$ac_try;;
42347 esac
42348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42349   (eval "$ac_link") 2>&5
42350   ac_status=$?
42351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42353   { (case "(($ac_try" in
42354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42355   *) ac_try_echo=$ac_try;;
42356 esac
42357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42358   (eval "$ac_try") 2>&5
42359   ac_status=$?
42360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361   (exit $ac_status); }; }; then
42362   :
42363 else
42364   echo "$as_me: program exited with status $ac_status" >&5
42365 echo "$as_me: failed program was:" >&5
42366 sed 's/^/| /' conftest.$ac_ext >&5
42367
42368 ( exit $ac_status )
42369 no_sdl=yes
42370 fi
42371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42372 fi
42373
42374
42375        CFLAGS="$ac_save_CFLAGS"
42376        CXXFLAGS="$ac_save_CXXFLAGS"
42377        LIBS="$ac_save_LIBS"
42378      fi
42379   fi
42380   if test "x$no_sdl" = x ; then
42381      { echo "$as_me:$LINENO: result: yes" >&5
42382 echo "${ECHO_T}yes" >&6; }
42383
42384                     EXTRALIBS_SDL="$SDL_LIBS"
42385                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42386                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42387                     cat >>confdefs.h <<\_ACEOF
42388 #define wxUSE_LIBSDL 1
42389 _ACEOF
42390
42391
42392   else
42393      { echo "$as_me:$LINENO: result: no" >&5
42394 echo "${ECHO_T}no" >&6; }
42395      if test "$SDL_CONFIG" = "no" ; then
42396        echo "*** The sdl-config script installed by SDL could not be found"
42397        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42398        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42399        echo "*** full path to sdl-config."
42400      else
42401        if test -f conf.sdltest ; then
42402         :
42403        else
42404           echo "*** Could not run SDL test program, checking why..."
42405           CFLAGS="$CFLAGS $SDL_CFLAGS"
42406           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42407           LIBS="$LIBS $SDL_LIBS"
42408           cat >conftest.$ac_ext <<_ACEOF
42409 /* confdefs.h.  */
42410 _ACEOF
42411 cat confdefs.h >>conftest.$ac_ext
42412 cat >>conftest.$ac_ext <<_ACEOF
42413 /* end confdefs.h.  */
42414
42415 #include <stdio.h>
42416 #include "SDL.h"
42417
42418 int main(int argc, char *argv[])
42419 { return 0; }
42420 #undef  main
42421 #define main K_and_R_C_main
42422
42423 int
42424 main ()
42425 {
42426  return 0;
42427   ;
42428   return 0;
42429 }
42430 _ACEOF
42431 rm -f conftest.$ac_objext conftest$ac_exeext
42432 if { (ac_try="$ac_link"
42433 case "(($ac_try" in
42434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42435   *) ac_try_echo=$ac_try;;
42436 esac
42437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42438   (eval "$ac_link") 2>conftest.er1
42439   ac_status=$?
42440   grep -v '^ *+' conftest.er1 >conftest.err
42441   rm -f conftest.er1
42442   cat conftest.err >&5
42443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42444   (exit $ac_status); } && {
42445          test -z "$ac_c_werror_flag" ||
42446          test ! -s conftest.err
42447        } && test -s conftest$ac_exeext &&
42448        $as_test_x conftest$ac_exeext; then
42449    echo "*** The test program compiled, but did not run. This usually means"
42450           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42451           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42452           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42453           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42454           echo "*** is required on your system"
42455           echo "***"
42456           echo "*** If you have an old version installed, it is best to remove it, although"
42457           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42458 else
42459   echo "$as_me: failed program was:" >&5
42460 sed 's/^/| /' conftest.$ac_ext >&5
42461
42462          echo "*** The test program failed to compile or link. See the file config.log for the"
42463           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42464           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42465           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42466 fi
42467
42468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42469       conftest$ac_exeext conftest.$ac_ext
42470           CFLAGS="$ac_save_CFLAGS"
42471           CXXFLAGS="$ac_save_CXXFLAGS"
42472           LIBS="$ac_save_LIBS"
42473        fi
42474      fi
42475      SDL_CFLAGS=""
42476      SDL_LIBS=""
42477      wxUSE_LIBSDL="no"
42478   fi
42479
42480
42481   rm -f conf.sdltest
42482
42483       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42484         WITH_PLUGIN_SDL=1
42485       fi
42486     fi
42487   else
42488         if test "$wxUSE_MGL" = 1; then
42489         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42490 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42491         wxUSE_SOUND="no"
42492     fi
42493   fi
42494 fi
42495
42496 if test "$wxUSE_SOUND" = "yes"; then
42497   cat >>confdefs.h <<\_ACEOF
42498 #define wxUSE_SOUND 1
42499 _ACEOF
42500
42501   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42502 fi
42503
42504 if test "$WXGTK2" = 1; then
42505
42506
42507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42508         if test -n "$ac_tool_prefix"; then
42509   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42514   echo $ECHO_N "(cached) $ECHO_C" >&6
42515 else
42516   case $PKG_CONFIG in
42517   [\\/]* | ?:[\\/]*)
42518   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42519   ;;
42520   *)
42521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42522 for as_dir in $PATH
42523 do
42524   IFS=$as_save_IFS
42525   test -z "$as_dir" && as_dir=.
42526   for ac_exec_ext in '' $ac_executable_extensions; do
42527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42528     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42530     break 2
42531   fi
42532 done
42533 done
42534 IFS=$as_save_IFS
42535
42536   ;;
42537 esac
42538 fi
42539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42540 if test -n "$PKG_CONFIG"; then
42541   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42542 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42543 else
42544   { echo "$as_me:$LINENO: result: no" >&5
42545 echo "${ECHO_T}no" >&6; }
42546 fi
42547
42548
42549 fi
42550 if test -z "$ac_cv_path_PKG_CONFIG"; then
42551   ac_pt_PKG_CONFIG=$PKG_CONFIG
42552   # Extract the first word of "pkg-config", so it can be a program name with args.
42553 set dummy pkg-config; ac_word=$2
42554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42556 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42557   echo $ECHO_N "(cached) $ECHO_C" >&6
42558 else
42559   case $ac_pt_PKG_CONFIG in
42560   [\\/]* | ?:[\\/]*)
42561   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42562   ;;
42563   *)
42564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42565 for as_dir in $PATH
42566 do
42567   IFS=$as_save_IFS
42568   test -z "$as_dir" && as_dir=.
42569   for ac_exec_ext in '' $ac_executable_extensions; do
42570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42571     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42573     break 2
42574   fi
42575 done
42576 done
42577 IFS=$as_save_IFS
42578
42579   ;;
42580 esac
42581 fi
42582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42583 if test -n "$ac_pt_PKG_CONFIG"; then
42584   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42585 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42586 else
42587   { echo "$as_me:$LINENO: result: no" >&5
42588 echo "${ECHO_T}no" >&6; }
42589 fi
42590
42591   if test "x$ac_pt_PKG_CONFIG" = x; then
42592     PKG_CONFIG=""
42593   else
42594     case $cross_compiling:$ac_tool_warned in
42595 yes:)
42596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42597 whose name does not start with the host triplet.  If you think this
42598 configuration is useful to you, please write to autoconf@gnu.org." >&5
42599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42600 whose name does not start with the host triplet.  If you think this
42601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42602 ac_tool_warned=yes ;;
42603 esac
42604     PKG_CONFIG=$ac_pt_PKG_CONFIG
42605   fi
42606 else
42607   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42608 fi
42609
42610 fi
42611 if test -n "$PKG_CONFIG"; then
42612         _pkg_min_version=0.9.0
42613         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42614 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42615         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42616                 { echo "$as_me:$LINENO: result: yes" >&5
42617 echo "${ECHO_T}yes" >&6; }
42618         else
42619                 { echo "$as_me:$LINENO: result: no" >&5
42620 echo "${ECHO_T}no" >&6; }
42621                 PKG_CONFIG=""
42622         fi
42623
42624 fi
42625
42626     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42627
42628         if test "$wxUSE_GTKPRINT" = "yes" ; then
42629
42630
42631 pkg_failed=no
42632 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42633 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42634
42635 if test -n "$PKG_CONFIG"; then
42636     if test -n "$GTKPRINT_CFLAGS"; then
42637         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42638     else
42639         if test -n "$PKG_CONFIG" && \
42640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42641   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42642   ac_status=$?
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); }; then
42645   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42646 else
42647   pkg_failed=yes
42648 fi
42649     fi
42650 else
42651         pkg_failed=untried
42652 fi
42653 if test -n "$PKG_CONFIG"; then
42654     if test -n "$GTKPRINT_LIBS"; then
42655         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42656     else
42657         if test -n "$PKG_CONFIG" && \
42658     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42659   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42660   ac_status=$?
42661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662   (exit $ac_status); }; then
42663   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42664 else
42665   pkg_failed=yes
42666 fi
42667     fi
42668 else
42669         pkg_failed=untried
42670 fi
42671
42672
42673
42674 if test $pkg_failed = yes; then
42675
42676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42677         _pkg_short_errors_supported=yes
42678 else
42679         _pkg_short_errors_supported=no
42680 fi
42681         if test $_pkg_short_errors_supported = yes; then
42682                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42683         else
42684                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42685         fi
42686         # Put the nasty error message in config.log where it belongs
42687         echo "$GTKPRINT_PKG_ERRORS" >&5
42688
42689
42690                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42691 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42692                         wxUSE_GTKPRINT="no"
42693
42694
42695 elif test $pkg_failed = untried; then
42696
42697                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42698 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42699                         wxUSE_GTKPRINT="no"
42700
42701
42702 else
42703         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42704         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42705         { echo "$as_me:$LINENO: result: yes" >&5
42706 echo "${ECHO_T}yes" >&6; }
42707
42708                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42709                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42710                         cat >>confdefs.h <<\_ACEOF
42711 #define wxUSE_GTKPRINT 1
42712 _ACEOF
42713
42714
42715 fi
42716         fi
42717
42718         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42719
42720
42721 pkg_failed=no
42722 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42723 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42724
42725 if test -n "$PKG_CONFIG"; then
42726     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42727         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42728     else
42729         if test -n "$PKG_CONFIG" && \
42730     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42731   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42732   ac_status=$?
42733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734   (exit $ac_status); }; then
42735   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42736 else
42737   pkg_failed=yes
42738 fi
42739     fi
42740 else
42741         pkg_failed=untried
42742 fi
42743 if test -n "$PKG_CONFIG"; then
42744     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42745         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42746     else
42747         if test -n "$PKG_CONFIG" && \
42748     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42749   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42750   ac_status=$?
42751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752   (exit $ac_status); }; then
42753   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42754 else
42755   pkg_failed=yes
42756 fi
42757     fi
42758 else
42759         pkg_failed=untried
42760 fi
42761
42762
42763
42764 if test $pkg_failed = yes; then
42765
42766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42767         _pkg_short_errors_supported=yes
42768 else
42769         _pkg_short_errors_supported=no
42770 fi
42771         if test $_pkg_short_errors_supported = yes; then
42772                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42773         else
42774                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42775         fi
42776         # Put the nasty error message in config.log where it belongs
42777         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42778
42779
42780                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42781 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42782                         wxUSE_LIBGNOMEPRINT="no"
42783
42784
42785 elif test $pkg_failed = untried; then
42786
42787                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42788 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42789                         wxUSE_LIBGNOMEPRINT="no"
42790
42791
42792 else
42793         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42794         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42795         { echo "$as_me:$LINENO: result: yes" >&5
42796 echo "${ECHO_T}yes" >&6; }
42797
42798                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42799                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42800                         cat >>confdefs.h <<\_ACEOF
42801 #define wxUSE_LIBGNOMEPRINT 1
42802 _ACEOF
42803
42804
42805 fi
42806         fi
42807     fi
42808
42809     if test "$wxUSE_MIMETYPE" = "yes" ; then
42810         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42811
42812
42813 pkg_failed=no
42814 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42815 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42816
42817 if test -n "$PKG_CONFIG"; then
42818     if test -n "$GNOMEVFS_CFLAGS"; then
42819         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42820     else
42821         if test -n "$PKG_CONFIG" && \
42822     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42823   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42824   ac_status=$?
42825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); }; then
42827   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42828 else
42829   pkg_failed=yes
42830 fi
42831     fi
42832 else
42833         pkg_failed=untried
42834 fi
42835 if test -n "$PKG_CONFIG"; then
42836     if test -n "$GNOMEVFS_LIBS"; then
42837         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42838     else
42839         if test -n "$PKG_CONFIG" && \
42840     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42841   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42842   ac_status=$?
42843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844   (exit $ac_status); }; then
42845   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42846 else
42847   pkg_failed=yes
42848 fi
42849     fi
42850 else
42851         pkg_failed=untried
42852 fi
42853
42854
42855
42856 if test $pkg_failed = yes; then
42857
42858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42859         _pkg_short_errors_supported=yes
42860 else
42861         _pkg_short_errors_supported=no
42862 fi
42863         if test $_pkg_short_errors_supported = yes; then
42864                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42865         else
42866                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42867         fi
42868         # Put the nasty error message in config.log where it belongs
42869         echo "$GNOMEVFS_PKG_ERRORS" >&5
42870
42871
42872                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42873 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42874                         wxUSE_LIBGNOMEVFS="no"
42875
42876
42877 elif test $pkg_failed = untried; then
42878
42879                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42880 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42881                         wxUSE_LIBGNOMEVFS="no"
42882
42883
42884 else
42885         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42886         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42887         { echo "$as_me:$LINENO: result: yes" >&5
42888 echo "${ECHO_T}yes" >&6; }
42889
42890                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42891                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42892                         cat >>confdefs.h <<\_ACEOF
42893 #define wxUSE_LIBGNOMEVFS 1
42894 _ACEOF
42895
42896
42897 fi
42898         fi
42899     fi
42900
42901     if test "$wxUSE_LIBHILDON" = "yes" ; then
42902
42903 pkg_failed=no
42904 { echo "$as_me:$LINENO: checking for HILDON" >&5
42905 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42906
42907 if test -n "$PKG_CONFIG"; then
42908     if test -n "$HILDON_CFLAGS"; then
42909         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42910     else
42911         if test -n "$PKG_CONFIG" && \
42912     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42913   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42914   ac_status=$?
42915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42916   (exit $ac_status); }; then
42917   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42918 else
42919   pkg_failed=yes
42920 fi
42921     fi
42922 else
42923         pkg_failed=untried
42924 fi
42925 if test -n "$PKG_CONFIG"; then
42926     if test -n "$HILDON_LIBS"; then
42927         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42928     else
42929         if test -n "$PKG_CONFIG" && \
42930     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42931   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42932   ac_status=$?
42933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934   (exit $ac_status); }; then
42935   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42936 else
42937   pkg_failed=yes
42938 fi
42939     fi
42940 else
42941         pkg_failed=untried
42942 fi
42943
42944
42945
42946 if test $pkg_failed = yes; then
42947
42948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42949         _pkg_short_errors_supported=yes
42950 else
42951         _pkg_short_errors_supported=no
42952 fi
42953         if test $_pkg_short_errors_supported = yes; then
42954                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42955         else
42956                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42957         fi
42958         # Put the nasty error message in config.log where it belongs
42959         echo "$HILDON_PKG_ERRORS" >&5
42960
42961
42962                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42963 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42964                         wxUSE_LIBHILDON="no"
42965
42966
42967 elif test $pkg_failed = untried; then
42968
42969                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42970 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42971                         wxUSE_LIBHILDON="no"
42972
42973
42974 else
42975         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42976         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42977         { echo "$as_me:$LINENO: result: yes" >&5
42978 echo "${ECHO_T}yes" >&6; }
42979
42980                 EXTRALIBS_HILDON="$HILDON_LIBS"
42981                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42982                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42983                 cat >>confdefs.h <<\_ACEOF
42984 #define wxUSE_LIBHILDON 1
42985 _ACEOF
42986
42987
42988 fi
42989     fi
42990 fi
42991
42992 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42993   cat >>confdefs.h <<\_ACEOF
42994 #define wxUSE_CMDLINE_PARSER 1
42995 _ACEOF
42996
42997 fi
42998
42999 if test "$wxUSE_STOPWATCH" = "yes"; then
43000   cat >>confdefs.h <<\_ACEOF
43001 #define wxUSE_STOPWATCH 1
43002 _ACEOF
43003
43004 fi
43005
43006 if test "$wxUSE_DATETIME" = "yes"; then
43007   cat >>confdefs.h <<\_ACEOF
43008 #define wxUSE_DATETIME 1
43009 _ACEOF
43010
43011 fi
43012
43013 if test "$wxUSE_FILE" = "yes"; then
43014   cat >>confdefs.h <<\_ACEOF
43015 #define wxUSE_FILE 1
43016 _ACEOF
43017
43018 fi
43019
43020 if test "$wxUSE_FFILE" = "yes"; then
43021   cat >>confdefs.h <<\_ACEOF
43022 #define wxUSE_FFILE 1
43023 _ACEOF
43024
43025 fi
43026
43027 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43028   if test "$wxUSE_STREAMS" != yes; then
43029     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43030 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43031     wxUSE_ARCHIVE_STREAMS=no
43032   else
43033     cat >>confdefs.h <<\_ACEOF
43034 #define wxUSE_ARCHIVE_STREAMS 1
43035 _ACEOF
43036
43037   fi
43038 fi
43039
43040 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43041   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43042     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43043 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43044   elif test "$wxUSE_ZLIB" = "no"; then
43045     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43046 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43047   else
43048     cat >>confdefs.h <<\_ACEOF
43049 #define wxUSE_ZIPSTREAM 1
43050 _ACEOF
43051
43052   fi
43053 fi
43054
43055 if test "$wxUSE_TARSTREAM" = "yes"; then
43056   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43057     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43058 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43059   else
43060     cat >>confdefs.h <<\_ACEOF
43061 #define wxUSE_TARSTREAM 1
43062 _ACEOF
43063
43064   fi
43065 fi
43066
43067 if test "$wxUSE_FILESYSTEM" = "yes"; then
43068   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43069     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43070 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43071     wxUSE_FILESYSTEM=no
43072   else
43073     cat >>confdefs.h <<\_ACEOF
43074 #define wxUSE_FILESYSTEM 1
43075 _ACEOF
43076
43077   fi
43078 fi
43079
43080 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43081   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43082     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43083 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43084   else
43085     cat >>confdefs.h <<\_ACEOF
43086 #define wxUSE_FS_ARCHIVE 1
43087 _ACEOF
43088
43089   fi
43090 fi
43091
43092 if test "$wxUSE_FS_ZIP" = "yes"; then
43093   if test "$wxUSE_FS_ARCHIVE" != yes; then
43094     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43095 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43096   else
43097     cat >>confdefs.h <<\_ACEOF
43098 #define wxUSE_FS_ZIP 1
43099 _ACEOF
43100
43101   fi
43102 fi
43103
43104 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43105   if test "$USE_UNIX" != 1; then
43106     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43107 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43108     wxUSE_ON_FATAL_EXCEPTION=no
43109   else
43110     cat >>confdefs.h <<\_ACEOF
43111 #define wxUSE_ON_FATAL_EXCEPTION 1
43112 _ACEOF
43113
43114   fi
43115 fi
43116
43117 if test "$wxUSE_STACKWALKER" = "yes"; then
43118     cat >>confdefs.h <<\_ACEOF
43119 #define wxUSE_STACKWALKER 1
43120 _ACEOF
43121
43122 fi
43123
43124 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43125     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43126         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43127 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43128         wxUSE_DEBUGREPORT=no
43129     else
43130         cat >>confdefs.h <<\_ACEOF
43131 #define wxUSE_DEBUGREPORT 1
43132 _ACEOF
43133
43134         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43135             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43136         fi
43137     fi
43138 fi
43139
43140 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43141   cat >>confdefs.h <<\_ACEOF
43142 #define wxUSE_SNGLINST_CHECKER 1
43143 _ACEOF
43144
43145 fi
43146
43147 if test "$wxUSE_BUSYINFO" = "yes"; then
43148   cat >>confdefs.h <<\_ACEOF
43149 #define wxUSE_BUSYINFO 1
43150 _ACEOF
43151
43152 fi
43153
43154 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43155   cat >>confdefs.h <<\_ACEOF
43156 #define wxUSE_STD_IOSTREAM 1
43157 _ACEOF
43158
43159 fi
43160
43161 if test "$wxUSE_STD_STRING" = "yes"; then
43162   cat >>confdefs.h <<\_ACEOF
43163 #define wxUSE_STD_STRING 1
43164 _ACEOF
43165
43166 fi
43167
43168 if test "$wxUSE_STDPATHS" = "yes"; then
43169   cat >>confdefs.h <<\_ACEOF
43170 #define wxUSE_STDPATHS 1
43171 _ACEOF
43172
43173 fi
43174
43175 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43176     cat >>confdefs.h <<\_ACEOF
43177 #define wxUSE_TEXTBUFFER 1
43178 _ACEOF
43179
43180 fi
43181
43182 if test "$wxUSE_TEXTFILE" = "yes"; then
43183   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43184     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43185 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43186   else
43187     cat >>confdefs.h <<\_ACEOF
43188 #define wxUSE_TEXTFILE 1
43189 _ACEOF
43190
43191   fi
43192 fi
43193
43194 if test "$wxUSE_CONFIG" = "yes" ; then
43195   if test "$wxUSE_TEXTFILE" != "yes"; then
43196     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43197 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43198   else
43199     cat >>confdefs.h <<\_ACEOF
43200 #define wxUSE_CONFIG 1
43201 _ACEOF
43202
43203     cat >>confdefs.h <<\_ACEOF
43204 #define wxUSE_CONFIG_NATIVE 1
43205 _ACEOF
43206
43207     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43208   fi
43209 fi
43210
43211 if test "$wxUSE_INTL" = "yes" ; then
43212   if test "$wxUSE_FILE" != "yes"; then
43213     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43214 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43215   else
43216     cat >>confdefs.h <<\_ACEOF
43217 #define wxUSE_INTL 1
43218 _ACEOF
43219
43220     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43221     GUIDIST="$GUIDIST INTL_DIST"
43222   fi
43223 fi
43224
43225 if test "$wxUSE_XLOCALE" == "yes" ; then
43226     cat >>confdefs.h <<\_ACEOF
43227 #define wxUSE_XLOCALE 1
43228 _ACEOF
43229
43230     { echo "$as_me:$LINENO: checking for locale_t" >&5
43231 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43232 if test "${ac_cv_type_locale_t+set}" = set; then
43233   echo $ECHO_N "(cached) $ECHO_C" >&6
43234 else
43235   cat >conftest.$ac_ext <<_ACEOF
43236 /* confdefs.h.  */
43237 _ACEOF
43238 cat confdefs.h >>conftest.$ac_ext
43239 cat >>conftest.$ac_ext <<_ACEOF
43240 /* end confdefs.h.  */
43241 #include <xlocale.h>
43242                     #include <locale.h>
43243
43244 typedef locale_t ac__type_new_;
43245 int
43246 main ()
43247 {
43248 if ((ac__type_new_ *) 0)
43249   return 0;
43250 if (sizeof (ac__type_new_))
43251   return 0;
43252   ;
43253   return 0;
43254 }
43255 _ACEOF
43256 rm -f conftest.$ac_objext
43257 if { (ac_try="$ac_compile"
43258 case "(($ac_try" in
43259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43260   *) ac_try_echo=$ac_try;;
43261 esac
43262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43263   (eval "$ac_compile") 2>conftest.er1
43264   ac_status=$?
43265   grep -v '^ *+' conftest.er1 >conftest.err
43266   rm -f conftest.er1
43267   cat conftest.err >&5
43268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269   (exit $ac_status); } && {
43270          test -z "$ac_c_werror_flag" ||
43271          test ! -s conftest.err
43272        } && test -s conftest.$ac_objext; then
43273   ac_cv_type_locale_t=yes
43274 else
43275   echo "$as_me: failed program was:" >&5
43276 sed 's/^/| /' conftest.$ac_ext >&5
43277
43278         ac_cv_type_locale_t=no
43279 fi
43280
43281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43282 fi
43283 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43284 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43285 if test $ac_cv_type_locale_t = yes; then
43286
43287 cat >>confdefs.h <<_ACEOF
43288 #define HAVE_LOCALE_T 1
43289 _ACEOF
43290
43291
43292 fi
43293
43294 fi
43295
43296 if test "$wxUSE_LOG" = "yes"; then
43297   cat >>confdefs.h <<\_ACEOF
43298 #define wxUSE_LOG 1
43299 _ACEOF
43300
43301
43302     if test "$wxUSE_LOGGUI" = "yes"; then
43303       cat >>confdefs.h <<\_ACEOF
43304 #define wxUSE_LOGGUI 1
43305 _ACEOF
43306
43307     fi
43308
43309     if test "$wxUSE_LOGWINDOW" = "yes"; then
43310       cat >>confdefs.h <<\_ACEOF
43311 #define wxUSE_LOGWINDOW 1
43312 _ACEOF
43313
43314     fi
43315
43316     if test "$wxUSE_LOGDIALOG" = "yes"; then
43317       cat >>confdefs.h <<\_ACEOF
43318 #define wxUSE_LOG_DIALOG 1
43319 _ACEOF
43320
43321     fi
43322
43323         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43324 fi
43325
43326 if test "$wxUSE_LONGLONG" = "yes"; then
43327   cat >>confdefs.h <<\_ACEOF
43328 #define wxUSE_LONGLONG 1
43329 _ACEOF
43330
43331 fi
43332
43333 if test "$wxUSE_GEOMETRY" = "yes"; then
43334   cat >>confdefs.h <<\_ACEOF
43335 #define wxUSE_GEOMETRY 1
43336 _ACEOF
43337
43338 fi
43339
43340 if test "$wxUSE_BASE64" = "yes"; then
43341   cat >>confdefs.h <<\_ACEOF
43342 #define wxUSE_BASE64 1
43343 _ACEOF
43344
43345 fi
43346
43347 if test "$wxUSE_STREAMS" = "yes" ; then
43348   cat >>confdefs.h <<\_ACEOF
43349 #define wxUSE_STREAMS 1
43350 _ACEOF
43351
43352 fi
43353
43354 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43355   cat >>confdefs.h <<\_ACEOF
43356 #define wxUSE_PRINTF_POS_PARAMS 1
43357 _ACEOF
43358
43359 fi
43360
43361 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43362   cat >>confdefs.h <<\_ACEOF
43363 #define wxUSE_OBJC_UNIQUIFYING 1
43364 _ACEOF
43365
43366 fi
43367
43368
43369 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43370     cat >>confdefs.h <<\_ACEOF
43371 #define wxUSE_CONSOLE_EVENTLOOP 1
43372 _ACEOF
43373
43374
43375     if test "$wxUSE_UNIX" = "yes"; then
43376         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43377             cat >>confdefs.h <<\_ACEOF
43378 #define wxUSE_SELECT_DISPATCHER 1
43379 _ACEOF
43380
43381         fi
43382
43383         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43384
43385 for ac_header in sys/epoll.h
43386 do
43387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43391   echo $ECHO_N "(cached) $ECHO_C" >&6
43392 else
43393   cat >conftest.$ac_ext <<_ACEOF
43394 /* confdefs.h.  */
43395 _ACEOF
43396 cat confdefs.h >>conftest.$ac_ext
43397 cat >>conftest.$ac_ext <<_ACEOF
43398 /* end confdefs.h.  */
43399 $ac_includes_default
43400
43401 #include <$ac_header>
43402 _ACEOF
43403 rm -f conftest.$ac_objext
43404 if { (ac_try="$ac_compile"
43405 case "(($ac_try" in
43406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43407   *) ac_try_echo=$ac_try;;
43408 esac
43409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43410   (eval "$ac_compile") 2>conftest.er1
43411   ac_status=$?
43412   grep -v '^ *+' conftest.er1 >conftest.err
43413   rm -f conftest.er1
43414   cat conftest.err >&5
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); } && {
43417          test -z "$ac_c_werror_flag" ||
43418          test ! -s conftest.err
43419        } && test -s conftest.$ac_objext; then
43420   eval "$as_ac_Header=yes"
43421 else
43422   echo "$as_me: failed program was:" >&5
43423 sed 's/^/| /' conftest.$ac_ext >&5
43424
43425         eval "$as_ac_Header=no"
43426 fi
43427
43428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43429 fi
43430 ac_res=`eval echo '${'$as_ac_Header'}'`
43431                { echo "$as_me:$LINENO: result: $ac_res" >&5
43432 echo "${ECHO_T}$ac_res" >&6; }
43433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43434   cat >>confdefs.h <<_ACEOF
43435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43436 _ACEOF
43437
43438 fi
43439
43440 done
43441
43442             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43443                 cat >>confdefs.h <<\_ACEOF
43444 #define wxUSE_EPOLL_DISPATCHER 1
43445 _ACEOF
43446
43447             else
43448                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43449 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43450             fi
43451         fi
43452     fi
43453 fi
43454
43455
43456
43457
43458 for ac_func in gettimeofday ftime
43459 do
43460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43464   echo $ECHO_N "(cached) $ECHO_C" >&6
43465 else
43466   cat >conftest.$ac_ext <<_ACEOF
43467 /* confdefs.h.  */
43468 _ACEOF
43469 cat confdefs.h >>conftest.$ac_ext
43470 cat >>conftest.$ac_ext <<_ACEOF
43471 /* end confdefs.h.  */
43472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43474 #define $ac_func innocuous_$ac_func
43475
43476 /* System header to define __stub macros and hopefully few prototypes,
43477     which can conflict with char $ac_func (); below.
43478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43479     <limits.h> exists even on freestanding compilers.  */
43480
43481 #ifdef __STDC__
43482 # include <limits.h>
43483 #else
43484 # include <assert.h>
43485 #endif
43486
43487 #undef $ac_func
43488
43489 /* Override any GCC internal prototype to avoid an error.
43490    Use char because int might match the return type of a GCC
43491    builtin and then its argument prototype would still apply.  */
43492 #ifdef __cplusplus
43493 extern "C"
43494 #endif
43495 char $ac_func ();
43496 /* The GNU C library defines this for functions which it implements
43497     to always fail with ENOSYS.  Some functions are actually named
43498     something starting with __ and the normal name is an alias.  */
43499 #if defined __stub_$ac_func || defined __stub___$ac_func
43500 choke me
43501 #endif
43502
43503 int
43504 main ()
43505 {
43506 return $ac_func ();
43507   ;
43508   return 0;
43509 }
43510 _ACEOF
43511 rm -f conftest.$ac_objext conftest$ac_exeext
43512 if { (ac_try="$ac_link"
43513 case "(($ac_try" in
43514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43515   *) ac_try_echo=$ac_try;;
43516 esac
43517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43518   (eval "$ac_link") 2>conftest.er1
43519   ac_status=$?
43520   grep -v '^ *+' conftest.er1 >conftest.err
43521   rm -f conftest.er1
43522   cat conftest.err >&5
43523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43524   (exit $ac_status); } && {
43525          test -z "$ac_c_werror_flag" ||
43526          test ! -s conftest.err
43527        } && test -s conftest$ac_exeext &&
43528        $as_test_x conftest$ac_exeext; then
43529   eval "$as_ac_var=yes"
43530 else
43531   echo "$as_me: failed program was:" >&5
43532 sed 's/^/| /' conftest.$ac_ext >&5
43533
43534         eval "$as_ac_var=no"
43535 fi
43536
43537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43538       conftest$ac_exeext conftest.$ac_ext
43539 fi
43540 ac_res=`eval echo '${'$as_ac_var'}'`
43541                { echo "$as_me:$LINENO: result: $ac_res" >&5
43542 echo "${ECHO_T}$ac_res" >&6; }
43543 if test `eval echo '${'$as_ac_var'}'` = yes; then
43544   cat >>confdefs.h <<_ACEOF
43545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43546 _ACEOF
43547  break
43548 fi
43549 done
43550
43551
43552 if test "$ac_cv_func_gettimeofday" = "yes"; then
43553     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43554 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43555 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43556   echo $ECHO_N "(cached) $ECHO_C" >&6
43557 else
43558
43559                 cat >conftest.$ac_ext <<_ACEOF
43560 /* confdefs.h.  */
43561 _ACEOF
43562 cat confdefs.h >>conftest.$ac_ext
43563 cat >>conftest.$ac_ext <<_ACEOF
43564 /* end confdefs.h.  */
43565
43566                 #include <sys/time.h>
43567                 #include <unistd.h>
43568
43569 int
43570 main ()
43571 {
43572
43573                 struct timeval tv;
43574                 gettimeofday(&tv, NULL);
43575
43576   ;
43577   return 0;
43578 }
43579 _ACEOF
43580 rm -f conftest.$ac_objext
43581 if { (ac_try="$ac_compile"
43582 case "(($ac_try" in
43583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43584   *) ac_try_echo=$ac_try;;
43585 esac
43586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43587   (eval "$ac_compile") 2>conftest.er1
43588   ac_status=$?
43589   grep -v '^ *+' conftest.er1 >conftest.err
43590   rm -f conftest.er1
43591   cat conftest.err >&5
43592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593   (exit $ac_status); } && {
43594          test -z "$ac_c_werror_flag" ||
43595          test ! -s conftest.err
43596        } && test -s conftest.$ac_objext; then
43597   wx_cv_func_gettimeofday_has_2_args=yes
43598 else
43599   echo "$as_me: failed program was:" >&5
43600 sed 's/^/| /' conftest.$ac_ext >&5
43601
43602         cat >conftest.$ac_ext <<_ACEOF
43603 /* confdefs.h.  */
43604 _ACEOF
43605 cat confdefs.h >>conftest.$ac_ext
43606 cat >>conftest.$ac_ext <<_ACEOF
43607 /* end confdefs.h.  */
43608
43609                     #include <sys/time.h>
43610                     #include <unistd.h>
43611
43612 int
43613 main ()
43614 {
43615
43616                     struct timeval tv;
43617                     gettimeofday(&tv);
43618
43619   ;
43620   return 0;
43621 }
43622 _ACEOF
43623 rm -f conftest.$ac_objext
43624 if { (ac_try="$ac_compile"
43625 case "(($ac_try" in
43626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43627   *) ac_try_echo=$ac_try;;
43628 esac
43629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43630   (eval "$ac_compile") 2>conftest.er1
43631   ac_status=$?
43632   grep -v '^ *+' conftest.er1 >conftest.err
43633   rm -f conftest.er1
43634   cat conftest.err >&5
43635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43636   (exit $ac_status); } && {
43637          test -z "$ac_c_werror_flag" ||
43638          test ! -s conftest.err
43639        } && test -s conftest.$ac_objext; then
43640   wx_cv_func_gettimeofday_has_2_args=no
43641 else
43642   echo "$as_me: failed program was:" >&5
43643 sed 's/^/| /' conftest.$ac_ext >&5
43644
43645
43646                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43647 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43648                     wx_cv_func_gettimeofday_has_2_args=unknown
43649
43650
43651 fi
43652
43653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43654
43655 fi
43656
43657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43658
43659 fi
43660 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43661 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43662
43663     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43664         cat >>confdefs.h <<\_ACEOF
43665 #define WX_GETTIMEOFDAY_NO_TZ 1
43666 _ACEOF
43667
43668     fi
43669 fi
43670
43671 if test "$wxUSE_DATETIME" = "yes"; then
43672         { echo "$as_me:$LINENO: checking for strptime" >&5
43673 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43674 if test "${ac_cv_func_strptime+set}" = set; then
43675   echo $ECHO_N "(cached) $ECHO_C" >&6
43676 else
43677   cat >conftest.$ac_ext <<_ACEOF
43678 /* confdefs.h.  */
43679 _ACEOF
43680 cat confdefs.h >>conftest.$ac_ext
43681 cat >>conftest.$ac_ext <<_ACEOF
43682 /* end confdefs.h.  */
43683 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43685 #define strptime innocuous_strptime
43686
43687 /* System header to define __stub macros and hopefully few prototypes,
43688     which can conflict with char strptime (); below.
43689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43690     <limits.h> exists even on freestanding compilers.  */
43691
43692 #ifdef __STDC__
43693 # include <limits.h>
43694 #else
43695 # include <assert.h>
43696 #endif
43697
43698 #undef strptime
43699
43700 /* Override any GCC internal prototype to avoid an error.
43701    Use char because int might match the return type of a GCC
43702    builtin and then its argument prototype would still apply.  */
43703 #ifdef __cplusplus
43704 extern "C"
43705 #endif
43706 char strptime ();
43707 /* The GNU C library defines this for functions which it implements
43708     to always fail with ENOSYS.  Some functions are actually named
43709     something starting with __ and the normal name is an alias.  */
43710 #if defined __stub_strptime || defined __stub___strptime
43711 choke me
43712 #endif
43713
43714 int
43715 main ()
43716 {
43717 return strptime ();
43718   ;
43719   return 0;
43720 }
43721 _ACEOF
43722 rm -f conftest.$ac_objext conftest$ac_exeext
43723 if { (ac_try="$ac_link"
43724 case "(($ac_try" in
43725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43726   *) ac_try_echo=$ac_try;;
43727 esac
43728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43729   (eval "$ac_link") 2>conftest.er1
43730   ac_status=$?
43731   grep -v '^ *+' conftest.er1 >conftest.err
43732   rm -f conftest.er1
43733   cat conftest.err >&5
43734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735   (exit $ac_status); } && {
43736          test -z "$ac_c_werror_flag" ||
43737          test ! -s conftest.err
43738        } && test -s conftest$ac_exeext &&
43739        $as_test_x conftest$ac_exeext; then
43740   ac_cv_func_strptime=yes
43741 else
43742   echo "$as_me: failed program was:" >&5
43743 sed 's/^/| /' conftest.$ac_ext >&5
43744
43745         ac_cv_func_strptime=no
43746 fi
43747
43748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43749       conftest$ac_exeext conftest.$ac_ext
43750 fi
43751 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43752 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43753
43754     if test "$ac_cv_func_strptime" = "yes"; then
43755         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43756 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43757 if test "${wx_cv_func_strptime_decl+set}" = set; then
43758   echo $ECHO_N "(cached) $ECHO_C" >&6
43759 else
43760
43761                 ac_ext=cpp
43762 ac_cpp='$CXXCPP $CPPFLAGS'
43763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43766
43767                 cat >conftest.$ac_ext <<_ACEOF
43768 /* confdefs.h.  */
43769 _ACEOF
43770 cat confdefs.h >>conftest.$ac_ext
43771 cat >>conftest.$ac_ext <<_ACEOF
43772 /* end confdefs.h.  */
43773
43774                         #include <time.h>
43775
43776 int
43777 main ()
43778 {
43779
43780                         struct tm t;
43781                         strptime("foo", "bar", &t);
43782
43783   ;
43784   return 0;
43785 }
43786 _ACEOF
43787 rm -f conftest.$ac_objext
43788 if { (ac_try="$ac_compile"
43789 case "(($ac_try" in
43790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43791   *) ac_try_echo=$ac_try;;
43792 esac
43793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43794   (eval "$ac_compile") 2>conftest.er1
43795   ac_status=$?
43796   grep -v '^ *+' conftest.er1 >conftest.err
43797   rm -f conftest.er1
43798   cat conftest.err >&5
43799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800   (exit $ac_status); } && {
43801          test -z "$ac_cxx_werror_flag" ||
43802          test ! -s conftest.err
43803        } && test -s conftest.$ac_objext; then
43804   wx_cv_func_strptime_decl=yes
43805 else
43806   echo "$as_me: failed program was:" >&5
43807 sed 's/^/| /' conftest.$ac_ext >&5
43808
43809         wx_cv_func_strptime_decl=no
43810
43811 fi
43812
43813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43814                 ac_ext=c
43815 ac_cpp='$CPP $CPPFLAGS'
43816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43819
43820
43821
43822 fi
43823 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43824 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43825     fi
43826     if test "$wx_cv_func_strptime_decl" = "yes"; then
43827         cat >>confdefs.h <<\_ACEOF
43828 #define HAVE_STRPTIME_DECL 1
43829 _ACEOF
43830
43831     else
43832         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43833     fi
43834     if test "$ac_cv_func_strptime" = "yes"; then
43835                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43836 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43837 if test "${wx_cv_func_strptime_ok+set}" = set; then
43838   echo $ECHO_N "(cached) $ECHO_C" >&6
43839 else
43840   if test "$cross_compiling" = yes; then
43841                   wx_cv_func_strptime_ok=no
43842
43843 else
43844   cat >conftest.$ac_ext <<_ACEOF
43845
43846                     #include <stdlib.h>
43847                     #include <time.h>
43848                     #include "confdefs.h"
43849
43850                     $wx_strptime_decl
43851
43852                     int main()
43853                     {
43854                         struct tm t;
43855                         return !!strptime("", "%x", &t);
43856                     }
43857
43858 _ACEOF
43859 rm -f conftest$ac_exeext
43860 if { (ac_try="$ac_link"
43861 case "(($ac_try" in
43862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43863   *) ac_try_echo=$ac_try;;
43864 esac
43865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43866   (eval "$ac_link") 2>&5
43867   ac_status=$?
43868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43870   { (case "(($ac_try" in
43871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43872   *) ac_try_echo=$ac_try;;
43873 esac
43874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43875   (eval "$ac_try") 2>&5
43876   ac_status=$?
43877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43878   (exit $ac_status); }; }; then
43879   wx_cv_func_strptime_ok=yes
43880 else
43881   echo "$as_me: program exited with status $ac_status" >&5
43882 echo "$as_me: failed program was:" >&5
43883 sed 's/^/| /' conftest.$ac_ext >&5
43884
43885 ( exit $ac_status )
43886 wx_cv_func_strptime_ok=no
43887 fi
43888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43889 fi
43890
43891
43892
43893 fi
43894 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43895 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43896
43897         if test "$wx_cv_func_strptime_ok" = "yes"; then
43898             cat >>confdefs.h <<\_ACEOF
43899 #define HAVE_STRPTIME 1
43900 _ACEOF
43901
43902         fi
43903     fi
43904
43905             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43906 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43907 if test "${wx_cv_var_timezone+set}" = set; then
43908   echo $ECHO_N "(cached) $ECHO_C" >&6
43909 else
43910
43911                         ac_ext=cpp
43912 ac_cpp='$CXXCPP $CPPFLAGS'
43913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43916
43917                         cat >conftest.$ac_ext <<_ACEOF
43918 /* confdefs.h.  */
43919 _ACEOF
43920 cat confdefs.h >>conftest.$ac_ext
43921 cat >>conftest.$ac_ext <<_ACEOF
43922 /* end confdefs.h.  */
43923
43924                                 #include <time.h>
43925
43926 int
43927 main ()
43928 {
43929
43930                                 int tz;
43931                                 tz = timezone;
43932
43933   ;
43934   return 0;
43935 }
43936 _ACEOF
43937 rm -f conftest.$ac_objext
43938 if { (ac_try="$ac_compile"
43939 case "(($ac_try" in
43940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43941   *) ac_try_echo=$ac_try;;
43942 esac
43943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43944   (eval "$ac_compile") 2>conftest.er1
43945   ac_status=$?
43946   grep -v '^ *+' conftest.er1 >conftest.err
43947   rm -f conftest.er1
43948   cat conftest.err >&5
43949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43950   (exit $ac_status); } && {
43951          test -z "$ac_cxx_werror_flag" ||
43952          test ! -s conftest.err
43953        } && test -s conftest.$ac_objext; then
43954
43955                                 wx_cv_var_timezone=timezone
43956
43957 else
43958   echo "$as_me: failed program was:" >&5
43959 sed 's/^/| /' conftest.$ac_ext >&5
43960
43961
43962                                 cat >conftest.$ac_ext <<_ACEOF
43963 /* confdefs.h.  */
43964 _ACEOF
43965 cat confdefs.h >>conftest.$ac_ext
43966 cat >>conftest.$ac_ext <<_ACEOF
43967 /* end confdefs.h.  */
43968
43969                                         #include <time.h>
43970
43971 int
43972 main ()
43973 {
43974
43975                                         int tz;
43976                                         tz = _timezone;
43977
43978   ;
43979   return 0;
43980 }
43981 _ACEOF
43982 rm -f conftest.$ac_objext
43983 if { (ac_try="$ac_compile"
43984 case "(($ac_try" in
43985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43986   *) ac_try_echo=$ac_try;;
43987 esac
43988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43989   (eval "$ac_compile") 2>conftest.er1
43990   ac_status=$?
43991   grep -v '^ *+' conftest.er1 >conftest.err
43992   rm -f conftest.er1
43993   cat conftest.err >&5
43994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995   (exit $ac_status); } && {
43996          test -z "$ac_cxx_werror_flag" ||
43997          test ! -s conftest.err
43998        } && test -s conftest.$ac_objext; then
43999
44000                                         wx_cv_var_timezone=_timezone
44001
44002 else
44003   echo "$as_me: failed program was:" >&5
44004 sed 's/^/| /' conftest.$ac_ext >&5
44005
44006
44007                                         cat >conftest.$ac_ext <<_ACEOF
44008 /* confdefs.h.  */
44009 _ACEOF
44010 cat confdefs.h >>conftest.$ac_ext
44011 cat >>conftest.$ac_ext <<_ACEOF
44012 /* end confdefs.h.  */
44013
44014                                                 #include <time.h>
44015
44016 int
44017 main ()
44018 {
44019
44020                                                 int tz;
44021                                                 tz = __timezone;
44022
44023   ;
44024   return 0;
44025 }
44026 _ACEOF
44027 rm -f conftest.$ac_objext
44028 if { (ac_try="$ac_compile"
44029 case "(($ac_try" in
44030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44031   *) ac_try_echo=$ac_try;;
44032 esac
44033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44034   (eval "$ac_compile") 2>conftest.er1
44035   ac_status=$?
44036   grep -v '^ *+' conftest.er1 >conftest.err
44037   rm -f conftest.er1
44038   cat conftest.err >&5
44039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040   (exit $ac_status); } && {
44041          test -z "$ac_cxx_werror_flag" ||
44042          test ! -s conftest.err
44043        } && test -s conftest.$ac_objext; then
44044
44045                                                 wx_cv_var_timezone=__timezone
44046
44047 else
44048   echo "$as_me: failed program was:" >&5
44049 sed 's/^/| /' conftest.$ac_ext >&5
44050
44051
44052                                                 if test "$USE_DOS" = 0 ; then
44053                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44054 echo "$as_me: WARNING: no timezone variable" >&2;}
44055                                                 fi
44056
44057
44058 fi
44059
44060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44061
44062
44063 fi
44064
44065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44066
44067
44068 fi
44069
44070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44071                         ac_ext=c
44072 ac_cpp='$CPP $CPPFLAGS'
44073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44076
44077
44078
44079 fi
44080 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44081 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44082
44083         if test "x$wx_cv_var_timezone" != x ; then
44084         cat >>confdefs.h <<_ACEOF
44085 #define WX_TIMEZONE $wx_cv_var_timezone
44086 _ACEOF
44087
44088     fi
44089
44090
44091 for ac_func in localtime
44092 do
44093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44097   echo $ECHO_N "(cached) $ECHO_C" >&6
44098 else
44099   cat >conftest.$ac_ext <<_ACEOF
44100 /* confdefs.h.  */
44101 _ACEOF
44102 cat confdefs.h >>conftest.$ac_ext
44103 cat >>conftest.$ac_ext <<_ACEOF
44104 /* end confdefs.h.  */
44105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44107 #define $ac_func innocuous_$ac_func
44108
44109 /* System header to define __stub macros and hopefully few prototypes,
44110     which can conflict with char $ac_func (); below.
44111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44112     <limits.h> exists even on freestanding compilers.  */
44113
44114 #ifdef __STDC__
44115 # include <limits.h>
44116 #else
44117 # include <assert.h>
44118 #endif
44119
44120 #undef $ac_func
44121
44122 /* Override any GCC internal prototype to avoid an error.
44123    Use char because int might match the return type of a GCC
44124    builtin and then its argument prototype would still apply.  */
44125 #ifdef __cplusplus
44126 extern "C"
44127 #endif
44128 char $ac_func ();
44129 /* The GNU C library defines this for functions which it implements
44130     to always fail with ENOSYS.  Some functions are actually named
44131     something starting with __ and the normal name is an alias.  */
44132 #if defined __stub_$ac_func || defined __stub___$ac_func
44133 choke me
44134 #endif
44135
44136 int
44137 main ()
44138 {
44139 return $ac_func ();
44140   ;
44141   return 0;
44142 }
44143 _ACEOF
44144 rm -f conftest.$ac_objext conftest$ac_exeext
44145 if { (ac_try="$ac_link"
44146 case "(($ac_try" in
44147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44148   *) ac_try_echo=$ac_try;;
44149 esac
44150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44151   (eval "$ac_link") 2>conftest.er1
44152   ac_status=$?
44153   grep -v '^ *+' conftest.er1 >conftest.err
44154   rm -f conftest.er1
44155   cat conftest.err >&5
44156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157   (exit $ac_status); } && {
44158          test -z "$ac_c_werror_flag" ||
44159          test ! -s conftest.err
44160        } && test -s conftest$ac_exeext &&
44161        $as_test_x conftest$ac_exeext; then
44162   eval "$as_ac_var=yes"
44163 else
44164   echo "$as_me: failed program was:" >&5
44165 sed 's/^/| /' conftest.$ac_ext >&5
44166
44167         eval "$as_ac_var=no"
44168 fi
44169
44170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44171       conftest$ac_exeext conftest.$ac_ext
44172 fi
44173 ac_res=`eval echo '${'$as_ac_var'}'`
44174                { echo "$as_me:$LINENO: result: $ac_res" >&5
44175 echo "${ECHO_T}$ac_res" >&6; }
44176 if test `eval echo '${'$as_ac_var'}'` = yes; then
44177   cat >>confdefs.h <<_ACEOF
44178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44179 _ACEOF
44180
44181 fi
44182 done
44183
44184
44185     if test "$ac_cv_func_localtime" = "yes"; then
44186         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44187 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44188 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44189   echo $ECHO_N "(cached) $ECHO_C" >&6
44190 else
44191
44192             cat >conftest.$ac_ext <<_ACEOF
44193 /* confdefs.h.  */
44194 _ACEOF
44195 cat confdefs.h >>conftest.$ac_ext
44196 cat >>conftest.$ac_ext <<_ACEOF
44197 /* end confdefs.h.  */
44198
44199                     #include <time.h>
44200
44201 int
44202 main ()
44203 {
44204
44205                     struct tm tm;
44206                     tm.tm_gmtoff++;
44207
44208   ;
44209   return 0;
44210 }
44211 _ACEOF
44212 rm -f conftest.$ac_objext
44213 if { (ac_try="$ac_compile"
44214 case "(($ac_try" in
44215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44216   *) ac_try_echo=$ac_try;;
44217 esac
44218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44219   (eval "$ac_compile") 2>conftest.er1
44220   ac_status=$?
44221   grep -v '^ *+' conftest.er1 >conftest.err
44222   rm -f conftest.er1
44223   cat conftest.err >&5
44224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44225   (exit $ac_status); } && {
44226          test -z "$ac_c_werror_flag" ||
44227          test ! -s conftest.err
44228        } && test -s conftest.$ac_objext; then
44229
44230                     wx_cv_struct_tm_has_gmtoff=yes
44231
44232 else
44233   echo "$as_me: failed program was:" >&5
44234 sed 's/^/| /' conftest.$ac_ext >&5
44235
44236         wx_cv_struct_tm_has_gmtoff=no
44237
44238 fi
44239
44240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44241
44242 fi
44243 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44244 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44245     fi
44246
44247     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44248         cat >>confdefs.h <<\_ACEOF
44249 #define WX_GMTOFF_IN_TM 1
44250 _ACEOF
44251
44252     fi
44253
44254     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44255 fi
44256
44257
44258 if test "$wxUSE_SOCKETS" = "yes"; then
44259     if test "$wxUSE_MGL" = 1; then
44260         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44261 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44262         wxUSE_SOCKETS="no"
44263     fi
44264 fi
44265
44266 if test "$wxUSE_SOCKETS" = "yes"; then
44267         if test "$TOOLKIT" != "MSW"; then
44268                 { echo "$as_me:$LINENO: checking for socket" >&5
44269 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44270 if test "${ac_cv_func_socket+set}" = set; then
44271   echo $ECHO_N "(cached) $ECHO_C" >&6
44272 else
44273   cat >conftest.$ac_ext <<_ACEOF
44274 /* confdefs.h.  */
44275 _ACEOF
44276 cat confdefs.h >>conftest.$ac_ext
44277 cat >>conftest.$ac_ext <<_ACEOF
44278 /* end confdefs.h.  */
44279 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44281 #define socket innocuous_socket
44282
44283 /* System header to define __stub macros and hopefully few prototypes,
44284     which can conflict with char socket (); below.
44285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44286     <limits.h> exists even on freestanding compilers.  */
44287
44288 #ifdef __STDC__
44289 # include <limits.h>
44290 #else
44291 # include <assert.h>
44292 #endif
44293
44294 #undef socket
44295
44296 /* Override any GCC internal prototype to avoid an error.
44297    Use char because int might match the return type of a GCC
44298    builtin and then its argument prototype would still apply.  */
44299 #ifdef __cplusplus
44300 extern "C"
44301 #endif
44302 char socket ();
44303 /* The GNU C library defines this for functions which it implements
44304     to always fail with ENOSYS.  Some functions are actually named
44305     something starting with __ and the normal name is an alias.  */
44306 #if defined __stub_socket || defined __stub___socket
44307 choke me
44308 #endif
44309
44310 int
44311 main ()
44312 {
44313 return socket ();
44314   ;
44315   return 0;
44316 }
44317 _ACEOF
44318 rm -f conftest.$ac_objext conftest$ac_exeext
44319 if { (ac_try="$ac_link"
44320 case "(($ac_try" in
44321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44322   *) ac_try_echo=$ac_try;;
44323 esac
44324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44325   (eval "$ac_link") 2>conftest.er1
44326   ac_status=$?
44327   grep -v '^ *+' conftest.er1 >conftest.err
44328   rm -f conftest.er1
44329   cat conftest.err >&5
44330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44331   (exit $ac_status); } && {
44332          test -z "$ac_c_werror_flag" ||
44333          test ! -s conftest.err
44334        } && test -s conftest$ac_exeext &&
44335        $as_test_x conftest$ac_exeext; then
44336   ac_cv_func_socket=yes
44337 else
44338   echo "$as_me: failed program was:" >&5
44339 sed 's/^/| /' conftest.$ac_ext >&5
44340
44341         ac_cv_func_socket=no
44342 fi
44343
44344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44345       conftest$ac_exeext conftest.$ac_ext
44346 fi
44347 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44348 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44349 if test $ac_cv_func_socket = yes; then
44350   :
44351 else
44352
44353                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44354 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44355 if test "${ac_cv_lib_socket_socket+set}" = set; then
44356   echo $ECHO_N "(cached) $ECHO_C" >&6
44357 else
44358   ac_check_lib_save_LIBS=$LIBS
44359 LIBS="-lsocket  $LIBS"
44360 cat >conftest.$ac_ext <<_ACEOF
44361 /* confdefs.h.  */
44362 _ACEOF
44363 cat confdefs.h >>conftest.$ac_ext
44364 cat >>conftest.$ac_ext <<_ACEOF
44365 /* end confdefs.h.  */
44366
44367 /* Override any GCC internal prototype to avoid an error.
44368    Use char because int might match the return type of a GCC
44369    builtin and then its argument prototype would still apply.  */
44370 #ifdef __cplusplus
44371 extern "C"
44372 #endif
44373 char socket ();
44374 int
44375 main ()
44376 {
44377 return socket ();
44378   ;
44379   return 0;
44380 }
44381 _ACEOF
44382 rm -f conftest.$ac_objext conftest$ac_exeext
44383 if { (ac_try="$ac_link"
44384 case "(($ac_try" in
44385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44386   *) ac_try_echo=$ac_try;;
44387 esac
44388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44389   (eval "$ac_link") 2>conftest.er1
44390   ac_status=$?
44391   grep -v '^ *+' conftest.er1 >conftest.err
44392   rm -f conftest.er1
44393   cat conftest.err >&5
44394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44395   (exit $ac_status); } && {
44396          test -z "$ac_c_werror_flag" ||
44397          test ! -s conftest.err
44398        } && test -s conftest$ac_exeext &&
44399        $as_test_x conftest$ac_exeext; then
44400   ac_cv_lib_socket_socket=yes
44401 else
44402   echo "$as_me: failed program was:" >&5
44403 sed 's/^/| /' conftest.$ac_ext >&5
44404
44405         ac_cv_lib_socket_socket=no
44406 fi
44407
44408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44409       conftest$ac_exeext conftest.$ac_ext
44410 LIBS=$ac_check_lib_save_LIBS
44411 fi
44412 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44413 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44414 if test $ac_cv_lib_socket_socket = yes; then
44415   if test "$INET_LINK" != " -lsocket"; then
44416                         INET_LINK="$INET_LINK -lsocket"
44417                     fi
44418 else
44419
44420                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44421 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44422                         wxUSE_SOCKETS=no
44423
44424
44425 fi
44426
44427
44428
44429 fi
44430
44431     fi
44432 fi
44433
44434 if test "$wxUSE_SOCKETS" = "yes" ; then
44435                 if test "$TOOLKIT" != "MSW"; then
44436                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44437 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44438 if test "${wx_cv_type_getsockname3+set}" = set; then
44439   echo $ECHO_N "(cached) $ECHO_C" >&6
44440 else
44441
44442                 ac_ext=cpp
44443 ac_cpp='$CXXCPP $CPPFLAGS'
44444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44447
44448                 cat >conftest.$ac_ext <<_ACEOF
44449 /* confdefs.h.  */
44450 _ACEOF
44451 cat confdefs.h >>conftest.$ac_ext
44452 cat >>conftest.$ac_ext <<_ACEOF
44453 /* end confdefs.h.  */
44454
44455                         #include <sys/types.h>
44456                         #include <sys/socket.h>
44457
44458 int
44459 main ()
44460 {
44461
44462                         socklen_t len;
44463                         getsockname(0, 0, &len);
44464
44465   ;
44466   return 0;
44467 }
44468 _ACEOF
44469 rm -f conftest.$ac_objext
44470 if { (ac_try="$ac_compile"
44471 case "(($ac_try" in
44472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44473   *) ac_try_echo=$ac_try;;
44474 esac
44475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44476   (eval "$ac_compile") 2>conftest.er1
44477   ac_status=$?
44478   grep -v '^ *+' conftest.er1 >conftest.err
44479   rm -f conftest.er1
44480   cat conftest.err >&5
44481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44482   (exit $ac_status); } && {
44483          test -z "$ac_cxx_werror_flag" ||
44484          test ! -s conftest.err
44485        } && test -s conftest.$ac_objext; then
44486   wx_cv_type_getsockname3=socklen_t
44487 else
44488   echo "$as_me: failed program was:" >&5
44489 sed 's/^/| /' conftest.$ac_ext >&5
44490
44491
44492                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44493                         if test "$GCC" = yes ; then
44494                             CFLAGS="-Werror $CFLAGS"
44495                         fi
44496
44497                         cat >conftest.$ac_ext <<_ACEOF
44498 /* confdefs.h.  */
44499 _ACEOF
44500 cat confdefs.h >>conftest.$ac_ext
44501 cat >>conftest.$ac_ext <<_ACEOF
44502 /* end confdefs.h.  */
44503
44504                                 #include <sys/types.h>
44505                                 #include <sys/socket.h>
44506
44507 int
44508 main ()
44509 {
44510
44511                                 size_t len;
44512                                 getsockname(0, 0, &len);
44513
44514   ;
44515   return 0;
44516 }
44517 _ACEOF
44518 rm -f conftest.$ac_objext
44519 if { (ac_try="$ac_compile"
44520 case "(($ac_try" in
44521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44522   *) ac_try_echo=$ac_try;;
44523 esac
44524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44525   (eval "$ac_compile") 2>conftest.er1
44526   ac_status=$?
44527   grep -v '^ *+' conftest.er1 >conftest.err
44528   rm -f conftest.er1
44529   cat conftest.err >&5
44530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531   (exit $ac_status); } && {
44532          test -z "$ac_cxx_werror_flag" ||
44533          test ! -s conftest.err
44534        } && test -s conftest.$ac_objext; then
44535   wx_cv_type_getsockname3=size_t
44536 else
44537   echo "$as_me: failed program was:" >&5
44538 sed 's/^/| /' conftest.$ac_ext >&5
44539
44540         cat >conftest.$ac_ext <<_ACEOF
44541 /* confdefs.h.  */
44542 _ACEOF
44543 cat confdefs.h >>conftest.$ac_ext
44544 cat >>conftest.$ac_ext <<_ACEOF
44545 /* end confdefs.h.  */
44546
44547                                     #include <sys/types.h>
44548                                     #include <sys/socket.h>
44549
44550 int
44551 main ()
44552 {
44553
44554                                     int len;
44555                                     getsockname(0, 0, &len);
44556
44557   ;
44558   return 0;
44559 }
44560 _ACEOF
44561 rm -f conftest.$ac_objext
44562 if { (ac_try="$ac_compile"
44563 case "(($ac_try" in
44564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44565   *) ac_try_echo=$ac_try;;
44566 esac
44567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44568   (eval "$ac_compile") 2>conftest.er1
44569   ac_status=$?
44570   grep -v '^ *+' conftest.er1 >conftest.err
44571   rm -f conftest.er1
44572   cat conftest.err >&5
44573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44574   (exit $ac_status); } && {
44575          test -z "$ac_cxx_werror_flag" ||
44576          test ! -s conftest.err
44577        } && test -s conftest.$ac_objext; then
44578   wx_cv_type_getsockname3=int
44579 else
44580   echo "$as_me: failed program was:" >&5
44581 sed 's/^/| /' conftest.$ac_ext >&5
44582
44583         wx_cv_type_getsockname3=unknown
44584
44585 fi
44586
44587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44588
44589 fi
44590
44591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44592
44593                         CFLAGS="$CFLAGS_OLD"
44594
44595
44596 fi
44597
44598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44599                 ac_ext=c
44600 ac_cpp='$CPP $CPPFLAGS'
44601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44604
44605
44606 fi
44607 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44608 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44609
44610         if test "$wx_cv_type_getsockname3" = "unknown"; then
44611             wxUSE_SOCKETS=no
44612             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44613 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44614         else
44615             cat >>confdefs.h <<_ACEOF
44616 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44617 _ACEOF
44618
44619         fi
44620                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44621 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44622 if test "${wx_cv_type_getsockopt5+set}" = set; then
44623   echo $ECHO_N "(cached) $ECHO_C" >&6
44624 else
44625
44626                                                                                                 ac_ext=cpp
44627 ac_cpp='$CXXCPP $CPPFLAGS'
44628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44631
44632                 cat >conftest.$ac_ext <<_ACEOF
44633 /* confdefs.h.  */
44634 _ACEOF
44635 cat confdefs.h >>conftest.$ac_ext
44636 cat >>conftest.$ac_ext <<_ACEOF
44637 /* end confdefs.h.  */
44638
44639                         #include <sys/types.h>
44640                         #include <sys/socket.h>
44641
44642 int
44643 main ()
44644 {
44645
44646                         socklen_t len;
44647                         getsockopt(0, 0, 0, 0, &len);
44648
44649   ;
44650   return 0;
44651 }
44652 _ACEOF
44653 rm -f conftest.$ac_objext
44654 if { (ac_try="$ac_compile"
44655 case "(($ac_try" in
44656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44657   *) ac_try_echo=$ac_try;;
44658 esac
44659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44660   (eval "$ac_compile") 2>conftest.er1
44661   ac_status=$?
44662   grep -v '^ *+' conftest.er1 >conftest.err
44663   rm -f conftest.er1
44664   cat conftest.err >&5
44665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666   (exit $ac_status); } && {
44667          test -z "$ac_cxx_werror_flag" ||
44668          test ! -s conftest.err
44669        } && test -s conftest.$ac_objext; then
44670   wx_cv_type_getsockopt5=socklen_t
44671 else
44672   echo "$as_me: failed program was:" >&5
44673 sed 's/^/| /' conftest.$ac_ext >&5
44674
44675
44676                         cat >conftest.$ac_ext <<_ACEOF
44677 /* confdefs.h.  */
44678 _ACEOF
44679 cat confdefs.h >>conftest.$ac_ext
44680 cat >>conftest.$ac_ext <<_ACEOF
44681 /* end confdefs.h.  */
44682
44683                                 #include <sys/types.h>
44684                                 #include <sys/socket.h>
44685
44686 int
44687 main ()
44688 {
44689
44690                                 size_t len;
44691                                 getsockopt(0, 0, 0, 0, &len);
44692
44693   ;
44694   return 0;
44695 }
44696 _ACEOF
44697 rm -f conftest.$ac_objext
44698 if { (ac_try="$ac_compile"
44699 case "(($ac_try" in
44700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44701   *) ac_try_echo=$ac_try;;
44702 esac
44703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44704   (eval "$ac_compile") 2>conftest.er1
44705   ac_status=$?
44706   grep -v '^ *+' conftest.er1 >conftest.err
44707   rm -f conftest.er1
44708   cat conftest.err >&5
44709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710   (exit $ac_status); } && {
44711          test -z "$ac_cxx_werror_flag" ||
44712          test ! -s conftest.err
44713        } && test -s conftest.$ac_objext; then
44714   wx_cv_type_getsockopt5=size_t
44715 else
44716   echo "$as_me: failed program was:" >&5
44717 sed 's/^/| /' conftest.$ac_ext >&5
44718
44719         cat >conftest.$ac_ext <<_ACEOF
44720 /* confdefs.h.  */
44721 _ACEOF
44722 cat confdefs.h >>conftest.$ac_ext
44723 cat >>conftest.$ac_ext <<_ACEOF
44724 /* end confdefs.h.  */
44725
44726                                     #include <sys/types.h>
44727                                     #include <sys/socket.h>
44728
44729 int
44730 main ()
44731 {
44732
44733                                     int len;
44734                                     getsockopt(0, 0, 0, 0, &len);
44735
44736   ;
44737   return 0;
44738 }
44739 _ACEOF
44740 rm -f conftest.$ac_objext
44741 if { (ac_try="$ac_compile"
44742 case "(($ac_try" in
44743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44744   *) ac_try_echo=$ac_try;;
44745 esac
44746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44747   (eval "$ac_compile") 2>conftest.er1
44748   ac_status=$?
44749   grep -v '^ *+' conftest.er1 >conftest.err
44750   rm -f conftest.er1
44751   cat conftest.err >&5
44752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44753   (exit $ac_status); } && {
44754          test -z "$ac_cxx_werror_flag" ||
44755          test ! -s conftest.err
44756        } && test -s conftest.$ac_objext; then
44757   wx_cv_type_getsockopt5=int
44758 else
44759   echo "$as_me: failed program was:" >&5
44760 sed 's/^/| /' conftest.$ac_ext >&5
44761
44762         wx_cv_type_getsockopt5=unknown
44763
44764 fi
44765
44766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44767
44768 fi
44769
44770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44771
44772
44773 fi
44774
44775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44776                 ac_ext=c
44777 ac_cpp='$CPP $CPPFLAGS'
44778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44781
44782
44783 fi
44784 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44785 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44786
44787         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44788             wxUSE_SOCKETS=no
44789             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44790 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44791         else
44792             cat >>confdefs.h <<_ACEOF
44793 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44794 _ACEOF
44795
44796         fi
44797     fi
44798 fi
44799
44800 if test "$wxUSE_SOCKETS" = "yes" ; then
44801     if test "$wxUSE_IPV6" = "yes"; then
44802         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44803 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44804 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44805   echo $ECHO_N "(cached) $ECHO_C" >&6
44806 else
44807
44808                 cat >conftest.$ac_ext <<_ACEOF
44809 /* confdefs.h.  */
44810 _ACEOF
44811 cat confdefs.h >>conftest.$ac_ext
44812 cat >>conftest.$ac_ext <<_ACEOF
44813 /* end confdefs.h.  */
44814
44815                         #include <sys/types.h>
44816                         #include <sys/socket.h>
44817                         #include <netinet/in.h>
44818
44819 int
44820 main ()
44821 {
44822
44823                         struct sockaddr_in6 sa6;
44824
44825   ;
44826   return 0;
44827 }
44828 _ACEOF
44829 rm -f conftest.$ac_objext
44830 if { (ac_try="$ac_compile"
44831 case "(($ac_try" in
44832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44833   *) ac_try_echo=$ac_try;;
44834 esac
44835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44836   (eval "$ac_compile") 2>conftest.er1
44837   ac_status=$?
44838   grep -v '^ *+' conftest.er1 >conftest.err
44839   rm -f conftest.er1
44840   cat conftest.err >&5
44841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842   (exit $ac_status); } && {
44843          test -z "$ac_c_werror_flag" ||
44844          test ! -s conftest.err
44845        } && test -s conftest.$ac_objext; then
44846   wx_cv_type_sockaddr_in6=yes
44847 else
44848   echo "$as_me: failed program was:" >&5
44849 sed 's/^/| /' conftest.$ac_ext >&5
44850
44851         wx_cv_type_sockaddr_in6=no
44852
44853 fi
44854
44855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44856
44857
44858 fi
44859 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44860 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44861
44862         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44863             cat >>confdefs.h <<\_ACEOF
44864 #define wxUSE_IPV6 1
44865 _ACEOF
44866
44867         else
44868             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44869 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44870         fi
44871     fi
44872
44873     cat >>confdefs.h <<\_ACEOF
44874 #define wxUSE_SOCKETS 1
44875 _ACEOF
44876
44877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44878 fi
44879
44880 if test "$wxUSE_PROTOCOL" = "yes"; then
44881     if test "$wxUSE_SOCKETS" != "yes"; then
44882         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44883 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44884         wxUSE_PROTOCOL=no
44885     fi
44886 fi
44887
44888 if test "$wxUSE_PROTOCOL" = "yes"; then
44889     cat >>confdefs.h <<\_ACEOF
44890 #define wxUSE_PROTOCOL 1
44891 _ACEOF
44892
44893
44894     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44895         cat >>confdefs.h <<\_ACEOF
44896 #define wxUSE_PROTOCOL_HTTP 1
44897 _ACEOF
44898
44899     fi
44900     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44901         cat >>confdefs.h <<\_ACEOF
44902 #define wxUSE_PROTOCOL_FTP 1
44903 _ACEOF
44904
44905     fi
44906     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44907         cat >>confdefs.h <<\_ACEOF
44908 #define wxUSE_PROTOCOL_FILE 1
44909 _ACEOF
44910
44911     fi
44912 else
44913     if test "$wxUSE_FS_INET" = "yes"; then
44914         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44915 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44916         wxUSE_FS_INET="no"
44917     fi
44918 fi
44919
44920 if test "$wxUSE_URL" = "yes"; then
44921     if test "$wxUSE_PROTOCOL" != "yes"; then
44922         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44923 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44924         wxUSE_URL=no
44925     fi
44926     if test "$wxUSE_URL" = "yes"; then
44927         cat >>confdefs.h <<\_ACEOF
44928 #define wxUSE_URL 1
44929 _ACEOF
44930
44931     fi
44932 fi
44933
44934 if test "$wxUSE_VARIANT" = "yes"; then
44935     cat >>confdefs.h <<\_ACEOF
44936 #define wxUSE_VARIANT 1
44937 _ACEOF
44938
44939 fi
44940
44941 if test "$wxUSE_FS_INET" = "yes"; then
44942   cat >>confdefs.h <<\_ACEOF
44943 #define wxUSE_FS_INET 1
44944 _ACEOF
44945
44946 fi
44947
44948
44949 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44950     wxUSE_JOYSTICK=no
44951
44952         if test "$TOOLKIT" = "MSW"; then
44953         wxUSE_JOYSTICK=yes
44954
44955         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44956         if test "$USE_DARWIN" = 1; then
44957                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44958 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44959             ac_ext=cpp
44960 ac_cpp='$CXXCPP $CPPFLAGS'
44961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44964
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  #include <IOKit/hid/IOHIDLib.h>
44972 int
44973 main ()
44974 {
44975  IOHIDQueueInterface *qi = NULL;
44976                               IOHIDCallbackFunction cb = NULL;
44977                               qi->setEventCallout(NULL, cb, NULL, NULL);
44978   ;
44979   return 0;
44980 }
44981 _ACEOF
44982 rm -f conftest.$ac_objext
44983 if { (ac_try="$ac_compile"
44984 case "(($ac_try" in
44985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44986   *) ac_try_echo=$ac_try;;
44987 esac
44988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44989   (eval "$ac_compile") 2>conftest.er1
44990   ac_status=$?
44991   grep -v '^ *+' conftest.er1 >conftest.err
44992   rm -f conftest.er1
44993   cat conftest.err >&5
44994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44995   (exit $ac_status); } && {
44996          test -z "$ac_cxx_werror_flag" ||
44997          test ! -s conftest.err
44998        } && test -s conftest.$ac_objext; then
44999    wxUSE_JOYSTICK=yes
45000
45001 else
45002   echo "$as_me: failed program was:" >&5
45003 sed 's/^/| /' conftest.$ac_ext >&5
45004
45005
45006 fi
45007
45008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45009             ac_ext=c
45010 ac_cpp='$CPP $CPPFLAGS'
45011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45014
45015             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45016 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45017         fi
45018
45019         else
45020                 if test "$wxUSE_MGL" != 1; then
45021
45022 for ac_header in linux/joystick.h
45023 do
45024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45028   echo $ECHO_N "(cached) $ECHO_C" >&6
45029 else
45030   cat >conftest.$ac_ext <<_ACEOF
45031 /* confdefs.h.  */
45032 _ACEOF
45033 cat confdefs.h >>conftest.$ac_ext
45034 cat >>conftest.$ac_ext <<_ACEOF
45035 /* end confdefs.h.  */
45036 $ac_includes_default
45037
45038 #include <$ac_header>
45039 _ACEOF
45040 rm -f conftest.$ac_objext
45041 if { (ac_try="$ac_compile"
45042 case "(($ac_try" in
45043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45044   *) ac_try_echo=$ac_try;;
45045 esac
45046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45047   (eval "$ac_compile") 2>conftest.er1
45048   ac_status=$?
45049   grep -v '^ *+' conftest.er1 >conftest.err
45050   rm -f conftest.er1
45051   cat conftest.err >&5
45052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45053   (exit $ac_status); } && {
45054          test -z "$ac_c_werror_flag" ||
45055          test ! -s conftest.err
45056        } && test -s conftest.$ac_objext; then
45057   eval "$as_ac_Header=yes"
45058 else
45059   echo "$as_me: failed program was:" >&5
45060 sed 's/^/| /' conftest.$ac_ext >&5
45061
45062         eval "$as_ac_Header=no"
45063 fi
45064
45065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45066 fi
45067 ac_res=`eval echo '${'$as_ac_Header'}'`
45068                { echo "$as_me:$LINENO: result: $ac_res" >&5
45069 echo "${ECHO_T}$ac_res" >&6; }
45070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45071   cat >>confdefs.h <<_ACEOF
45072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45073 _ACEOF
45074  wxUSE_JOYSTICK=yes
45075 fi
45076
45077 done
45078
45079         fi
45080     fi
45081
45082     if test "$wxUSE_JOYSTICK" = "yes"; then
45083         cat >>confdefs.h <<\_ACEOF
45084 #define wxUSE_JOYSTICK 1
45085 _ACEOF
45086
45087         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45088     else
45089         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45090 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45091     fi
45092 fi
45093
45094
45095
45096 if test "$wxUSE_FONTENUM" = "yes" ; then
45097   cat >>confdefs.h <<\_ACEOF
45098 #define wxUSE_FONTENUM 1
45099 _ACEOF
45100
45101 fi
45102
45103 if test "$wxUSE_FONTMAP" = "yes" ; then
45104   cat >>confdefs.h <<\_ACEOF
45105 #define wxUSE_FONTMAP 1
45106 _ACEOF
45107
45108 fi
45109
45110 if test "$wxUSE_UNICODE" = "yes" ; then
45111   cat >>confdefs.h <<\_ACEOF
45112 #define wxUSE_UNICODE 1
45113 _ACEOF
45114
45115
45116   if test "$USE_WIN32" != 1; then
45117       wxUSE_UNICODE_MSLU=no
45118   fi
45119
45120   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45121         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45122 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45123 if test "${ac_cv_lib_unicows_main+set}" = set; then
45124   echo $ECHO_N "(cached) $ECHO_C" >&6
45125 else
45126   ac_check_lib_save_LIBS=$LIBS
45127 LIBS="-lunicows  $LIBS"
45128 cat >conftest.$ac_ext <<_ACEOF
45129 /* confdefs.h.  */
45130 _ACEOF
45131 cat confdefs.h >>conftest.$ac_ext
45132 cat >>conftest.$ac_ext <<_ACEOF
45133 /* end confdefs.h.  */
45134
45135
45136 int
45137 main ()
45138 {
45139 return main ();
45140   ;
45141   return 0;
45142 }
45143 _ACEOF
45144 rm -f conftest.$ac_objext conftest$ac_exeext
45145 if { (ac_try="$ac_link"
45146 case "(($ac_try" in
45147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45148   *) ac_try_echo=$ac_try;;
45149 esac
45150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45151   (eval "$ac_link") 2>conftest.er1
45152   ac_status=$?
45153   grep -v '^ *+' conftest.er1 >conftest.err
45154   rm -f conftest.er1
45155   cat conftest.err >&5
45156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157   (exit $ac_status); } && {
45158          test -z "$ac_c_werror_flag" ||
45159          test ! -s conftest.err
45160        } && test -s conftest$ac_exeext &&
45161        $as_test_x conftest$ac_exeext; then
45162   ac_cv_lib_unicows_main=yes
45163 else
45164   echo "$as_me: failed program was:" >&5
45165 sed 's/^/| /' conftest.$ac_ext >&5
45166
45167         ac_cv_lib_unicows_main=no
45168 fi
45169
45170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45171       conftest$ac_exeext conftest.$ac_ext
45172 LIBS=$ac_check_lib_save_LIBS
45173 fi
45174 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45175 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45176 if test $ac_cv_lib_unicows_main = yes; then
45177
45178                 cat >>confdefs.h <<\_ACEOF
45179 #define wxUSE_UNICODE_MSLU 1
45180 _ACEOF
45181
45182
45183 else
45184
45185                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45186                              Applications will only run on Windows NT/2000/XP!" >&5
45187 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45188                              Applications will only run on Windows NT/2000/XP!" >&2;}
45189                 wxUSE_UNICODE_MSLU=no
45190
45191 fi
45192
45193     fi
45194 fi
45195
45196 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45197     cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_UNICODE_UTF8 1
45199 _ACEOF
45200
45201
45202     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45203         cat >>confdefs.h <<\_ACEOF
45204 #define wxUSE_UTF8_LOCALE_ONLY 1
45205 _ACEOF
45206
45207     fi
45208 fi
45209
45210
45211 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45212     cat >>confdefs.h <<\_ACEOF
45213 #define wxUSE_CONSTRAINTS 1
45214 _ACEOF
45215
45216     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45217 fi
45218
45219 if test "$wxUSE_MDI" = "yes"; then
45220     cat >>confdefs.h <<\_ACEOF
45221 #define wxUSE_MDI 1
45222 _ACEOF
45223
45224
45225     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45226         cat >>confdefs.h <<\_ACEOF
45227 #define wxUSE_MDI_ARCHITECTURE 1
45228 _ACEOF
45229
45230         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45231     fi
45232 fi
45233
45234 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45235     cat >>confdefs.h <<\_ACEOF
45236 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45237 _ACEOF
45238
45239     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45240 fi
45241
45242 if test "$wxUSE_HELP" = "yes"; then
45243     cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_HELP 1
45245 _ACEOF
45246
45247     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45248
45249     if test "$wxUSE_MSW" = 1; then
45250       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45251         cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_MS_HTML_HELP 1
45253 _ACEOF
45254
45255       fi
45256     fi
45257
45258     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45259       if test "$wxUSE_HTML" = "yes"; then
45260         cat >>confdefs.h <<\_ACEOF
45261 #define wxUSE_WXHTML_HELP 1
45262 _ACEOF
45263
45264       else
45265         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45266 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45267         wxUSE_WXHTML_HELP=no
45268       fi
45269     fi
45270 fi
45271
45272 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45273     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45274         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45275 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45276     else
45277         cat >>confdefs.h <<\_ACEOF
45278 #define wxUSE_PRINTING_ARCHITECTURE 1
45279 _ACEOF
45280
45281     fi
45282     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45283 fi
45284
45285 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45286   cat >>confdefs.h <<\_ACEOF
45287 #define wxUSE_POSTSCRIPT 1
45288 _ACEOF
45289
45290 fi
45291
45292 cat >>confdefs.h <<\_ACEOF
45293 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45294 _ACEOF
45295
45296
45297 if test "$wxUSE_SVG" = "yes"; then
45298     cat >>confdefs.h <<\_ACEOF
45299 #define wxUSE_SVG 1
45300 _ACEOF
45301
45302 fi
45303
45304
45305 if test "$wxUSE_METAFILE" = "yes"; then
45306     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45307         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45308 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45309         wxUSE_METAFILE=no
45310     fi
45311 fi
45312
45313
45314 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45315                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45316                           -o "$wxUSE_OLE"     = "yes" \
45317                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45318     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45319 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45320 if test "${ac_cv_header_ole2_h+set}" = set; then
45321   echo $ECHO_N "(cached) $ECHO_C" >&6
45322 else
45323   cat >conftest.$ac_ext <<_ACEOF
45324 /* confdefs.h.  */
45325 _ACEOF
45326 cat confdefs.h >>conftest.$ac_ext
45327 cat >>conftest.$ac_ext <<_ACEOF
45328 /* end confdefs.h.  */
45329
45330
45331 #include <ole2.h>
45332 _ACEOF
45333 rm -f conftest.$ac_objext
45334 if { (ac_try="$ac_compile"
45335 case "(($ac_try" in
45336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45337   *) ac_try_echo=$ac_try;;
45338 esac
45339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45340   (eval "$ac_compile") 2>conftest.er1
45341   ac_status=$?
45342   grep -v '^ *+' conftest.er1 >conftest.err
45343   rm -f conftest.er1
45344   cat conftest.err >&5
45345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346   (exit $ac_status); } && {
45347          test -z "$ac_c_werror_flag" ||
45348          test ! -s conftest.err
45349        } && test -s conftest.$ac_objext; then
45350   ac_cv_header_ole2_h=yes
45351 else
45352   echo "$as_me: failed program was:" >&5
45353 sed 's/^/| /' conftest.$ac_ext >&5
45354
45355         ac_cv_header_ole2_h=no
45356 fi
45357
45358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45359 fi
45360 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45361 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45362
45363
45364
45365     if test "$ac_cv_header_ole2_h" = "yes" ; then
45366         if test "$GCC" = yes ; then
45367             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45368 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45369             cat >conftest.$ac_ext <<_ACEOF
45370 /* confdefs.h.  */
45371 _ACEOF
45372 cat confdefs.h >>conftest.$ac_ext
45373 cat >>conftest.$ac_ext <<_ACEOF
45374 /* end confdefs.h.  */
45375 #include <windows.h>
45376                             #include <ole2.h>
45377 int
45378 main ()
45379 {
45380
45381   ;
45382   return 0;
45383 }
45384 _ACEOF
45385 rm -f conftest.$ac_objext
45386 if { (ac_try="$ac_compile"
45387 case "(($ac_try" in
45388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45389   *) ac_try_echo=$ac_try;;
45390 esac
45391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45392   (eval "$ac_compile") 2>conftest.er1
45393   ac_status=$?
45394   grep -v '^ *+' conftest.er1 >conftest.err
45395   rm -f conftest.er1
45396   cat conftest.err >&5
45397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398   (exit $ac_status); } && {
45399          test -z "$ac_c_werror_flag" ||
45400          test ! -s conftest.err
45401        } && test -s conftest.$ac_objext; then
45402   { echo "$as_me:$LINENO: result: no" >&5
45403 echo "${ECHO_T}no" >&6; }
45404 else
45405   echo "$as_me: failed program was:" >&5
45406 sed 's/^/| /' conftest.$ac_ext >&5
45407
45408         { echo "$as_me:$LINENO: result: yes" >&5
45409 echo "${ECHO_T}yes" >&6; }
45410                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45411 fi
45412
45413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45414             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45415             if test "$wxUSE_OLE" = "yes" ; then
45416                 cat >>confdefs.h <<\_ACEOF
45417 #define wxUSE_OLE 1
45418 _ACEOF
45419
45420                 cat >>confdefs.h <<\_ACEOF
45421 #define wxUSE_OLE_AUTOMATION 1
45422 _ACEOF
45423
45424                 cat >>confdefs.h <<\_ACEOF
45425 #define wxUSE_ACTIVEX 1
45426 _ACEOF
45427
45428                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45429             fi
45430         fi
45431
45432                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45433             cat >>confdefs.h <<\_ACEOF
45434 #define wxUSE_DATAOBJ 1
45435 _ACEOF
45436
45437         fi
45438     else
45439         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45440 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45441
45442         wxUSE_CLIPBOARD=no
45443         wxUSE_DRAG_AND_DROP=no
45444         wxUSE_DATAOBJ=no
45445         wxUSE_OLE=no
45446     fi
45447
45448     if test "$wxUSE_METAFILE" = "yes"; then
45449         cat >>confdefs.h <<\_ACEOF
45450 #define wxUSE_METAFILE 1
45451 _ACEOF
45452
45453
45454                 cat >>confdefs.h <<\_ACEOF
45455 #define wxUSE_ENH_METAFILE 1
45456 _ACEOF
45457
45458     fi
45459 fi
45460
45461 if test "$wxUSE_IPC" = "yes"; then
45462     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45463         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45464 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45465         wxUSE_IPC=no
45466     fi
45467
45468     if test "$wxUSE_IPC" = "yes"; then
45469         cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_IPC 1
45471 _ACEOF
45472
45473         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45474     fi
45475 fi
45476
45477 if test "$wxUSE_DATAOBJ" = "yes"; then
45478     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45479         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45480 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45481         wxUSE_DATAOBJ=no
45482     else
45483         cat >>confdefs.h <<\_ACEOF
45484 #define wxUSE_DATAOBJ 1
45485 _ACEOF
45486
45487     fi
45488 else
45489     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45490 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45491     wxUSE_CLIPBOARD=no
45492     wxUSE_DRAG_AND_DROP=no
45493 fi
45494
45495 if test "$wxUSE_CLIPBOARD" = "yes"; then
45496     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45497         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45498 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45499         wxUSE_CLIPBOARD=no
45500     fi
45501
45502     if test "$wxUSE_CLIPBOARD" = "yes"; then
45503         cat >>confdefs.h <<\_ACEOF
45504 #define wxUSE_CLIPBOARD 1
45505 _ACEOF
45506
45507     fi
45508 fi
45509
45510 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45511     if test "$wxUSE_GTK" = 1; then
45512         if test "$WXGTK12" != 1; then
45513             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45514 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45515             wxUSE_DRAG_AND_DROP=no
45516         fi
45517     fi
45518
45519     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45520             "$wxUSE_DFB" = 1; then
45521         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45522 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45523         wxUSE_DRAG_AND_DROP=no
45524     fi
45525
45526     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45527         cat >>confdefs.h <<\_ACEOF
45528 #define wxUSE_DRAG_AND_DROP 1
45529 _ACEOF
45530
45531     fi
45532
45533 fi
45534
45535 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45536     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45537 fi
45538
45539 if test "$wxUSE_SPLINES" = "yes" ; then
45540   cat >>confdefs.h <<\_ACEOF
45541 #define wxUSE_SPLINES 1
45542 _ACEOF
45543
45544 fi
45545
45546 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45547   cat >>confdefs.h <<\_ACEOF
45548 #define wxUSE_MOUSEWHEEL 1
45549 _ACEOF
45550
45551 fi
45552
45553
45554 USES_CONTROLS=0
45555 if test "$wxUSE_CONTROLS" = "yes"; then
45556   USES_CONTROLS=1
45557 fi
45558
45559 if test "$wxUSE_ACCEL" = "yes"; then
45560   cat >>confdefs.h <<\_ACEOF
45561 #define wxUSE_ACCEL 1
45562 _ACEOF
45563
45564   USES_CONTROLS=1
45565 fi
45566
45567 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45568   cat >>confdefs.h <<\_ACEOF
45569 #define wxUSE_ANIMATIONCTRL 1
45570 _ACEOF
45571
45572   USES_CONTROLS=1
45573   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45574 fi
45575
45576 if test "$wxUSE_BUTTON" = "yes"; then
45577   cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_BUTTON 1
45579 _ACEOF
45580
45581   USES_CONTROLS=1
45582 fi
45583
45584 if test "$wxUSE_BMPBUTTON" = "yes"; then
45585   cat >>confdefs.h <<\_ACEOF
45586 #define wxUSE_BMPBUTTON 1
45587 _ACEOF
45588
45589   USES_CONTROLS=1
45590 fi
45591
45592 if test "$wxUSE_CALCTRL" = "yes"; then
45593   cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_CALENDARCTRL 1
45595 _ACEOF
45596
45597   USES_CONTROLS=1
45598   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45599 fi
45600
45601 if test "$wxUSE_CARET" = "yes"; then
45602   cat >>confdefs.h <<\_ACEOF
45603 #define wxUSE_CARET 1
45604 _ACEOF
45605
45606   USES_CONTROLS=1
45607   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45608 fi
45609
45610 if test "$wxUSE_COLLPANE" = "yes"; then
45611     cat >>confdefs.h <<\_ACEOF
45612 #define wxUSE_COLLPANE 1
45613 _ACEOF
45614
45615     USES_CONTROLS=1
45616     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45617 fi
45618
45619 if test "$wxUSE_COMBOBOX" = "yes"; then
45620   cat >>confdefs.h <<\_ACEOF
45621 #define wxUSE_COMBOBOX 1
45622 _ACEOF
45623
45624   USES_CONTROLS=1
45625 fi
45626
45627 if test "$wxUSE_COMBOCTRL" = "yes"; then
45628   cat >>confdefs.h <<\_ACEOF
45629 #define wxUSE_COMBOCTRL 1
45630 _ACEOF
45631
45632   USES_CONTROLS=1
45633 fi
45634
45635 if test "$wxUSE_CHOICE" = "yes"; then
45636   cat >>confdefs.h <<\_ACEOF
45637 #define wxUSE_CHOICE 1
45638 _ACEOF
45639
45640   USES_CONTROLS=1
45641 fi
45642
45643 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45644     cat >>confdefs.h <<\_ACEOF
45645 #define wxUSE_CHOICEBOOK 1
45646 _ACEOF
45647
45648     USES_CONTROLS=1
45649 fi
45650
45651 if test "$wxUSE_CHECKBOX" = "yes"; then
45652   cat >>confdefs.h <<\_ACEOF
45653 #define wxUSE_CHECKBOX 1
45654 _ACEOF
45655
45656   USES_CONTROLS=1
45657 fi
45658
45659 if test "$wxUSE_CHECKLST" = "yes"; then
45660   cat >>confdefs.h <<\_ACEOF
45661 #define wxUSE_CHECKLISTBOX 1
45662 _ACEOF
45663
45664   USES_CONTROLS=1
45665 fi
45666
45667 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45668   cat >>confdefs.h <<\_ACEOF
45669 #define wxUSE_COLOURPICKERCTRL 1
45670 _ACEOF
45671
45672   USES_CONTROLS=1
45673 fi
45674
45675 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45676   cat >>confdefs.h <<\_ACEOF
45677 #define wxUSE_DATEPICKCTRL 1
45678 _ACEOF
45679
45680   USES_CONTROLS=1
45681 fi
45682
45683 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45684   cat >>confdefs.h <<\_ACEOF
45685 #define wxUSE_DIRPICKERCTRL 1
45686 _ACEOF
45687
45688   USES_CONTROLS=1
45689 fi
45690
45691 if test "$wxUSE_FILECTRL" = "yes"; then
45692   cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_FILECTRL 1
45694 _ACEOF
45695
45696   USES_CONTROLS=1
45697 fi
45698
45699 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45700   cat >>confdefs.h <<\_ACEOF
45701 #define wxUSE_FILEPICKERCTRL 1
45702 _ACEOF
45703
45704   USES_CONTROLS=1
45705 fi
45706
45707 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45708   cat >>confdefs.h <<\_ACEOF
45709 #define wxUSE_FONTPICKERCTRL 1
45710 _ACEOF
45711
45712   USES_CONTROLS=1
45713 fi
45714
45715 if test "$wxUSE_DISPLAY" = "yes"; then
45716     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45717         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45718 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45719         wxUSE_DISPLAY=no
45720     else
45721         cat >>confdefs.h <<\_ACEOF
45722 #define wxUSE_DISPLAY 1
45723 _ACEOF
45724
45725         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45726     fi
45727 fi
45728
45729 if test "$wxUSE_DETECT_SM" = "yes"; then
45730     cat >>confdefs.h <<\_ACEOF
45731 #define wxUSE_DETECT_SM 1
45732 _ACEOF
45733
45734 fi
45735
45736 if test "$wxUSE_GAUGE" = "yes"; then
45737   cat >>confdefs.h <<\_ACEOF
45738 #define wxUSE_GAUGE 1
45739 _ACEOF
45740
45741   USES_CONTROLS=1
45742 fi
45743
45744 if test "$wxUSE_GRID" = "yes"; then
45745   cat >>confdefs.h <<\_ACEOF
45746 #define wxUSE_GRID 1
45747 _ACEOF
45748
45749   USES_CONTROLS=1
45750   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45751 fi
45752
45753 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45754   cat >>confdefs.h <<\_ACEOF
45755 #define wxUSE_HYPERLINKCTRL 1
45756 _ACEOF
45757
45758   USES_CONTROLS=1
45759 fi
45760
45761 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45762   cat >>confdefs.h <<\_ACEOF
45763 #define wxUSE_BITMAPCOMBOBOX 1
45764 _ACEOF
45765
45766   USES_CONTROLS=1
45767 fi
45768
45769 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45770   cat >>confdefs.h <<\_ACEOF
45771 #define wxUSE_DATAVIEWCTRL 1
45772 _ACEOF
45773
45774   USES_CONTROLS=1
45775   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45776 fi
45777
45778 if test "$wxUSE_IMAGLIST" = "yes"; then
45779     cat >>confdefs.h <<\_ACEOF
45780 #define wxUSE_IMAGLIST 1
45781 _ACEOF
45782
45783 fi
45784
45785 if test "$wxUSE_LISTBOOK" = "yes"; then
45786     cat >>confdefs.h <<\_ACEOF
45787 #define wxUSE_LISTBOOK 1
45788 _ACEOF
45789
45790     USES_CONTROLS=1
45791 fi
45792
45793 if test "$wxUSE_LISTBOX" = "yes"; then
45794     cat >>confdefs.h <<\_ACEOF
45795 #define wxUSE_LISTBOX 1
45796 _ACEOF
45797
45798     USES_CONTROLS=1
45799 fi
45800
45801 if test "$wxUSE_LISTCTRL" = "yes"; then
45802     if test "$wxUSE_IMAGLIST" = "yes"; then
45803         cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_LISTCTRL 1
45805 _ACEOF
45806
45807         USES_CONTROLS=1
45808         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45809     else
45810         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45811 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45812     fi
45813 fi
45814
45815 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45816     cat >>confdefs.h <<\_ACEOF
45817 #define wxUSE_EDITABLELISTBOX 1
45818 _ACEOF
45819
45820     USES_CONTROLS=1
45821     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45822 fi
45823
45824 if test "$wxUSE_NOTEBOOK" = "yes"; then
45825     cat >>confdefs.h <<\_ACEOF
45826 #define wxUSE_NOTEBOOK 1
45827 _ACEOF
45828
45829     USES_CONTROLS=1
45830     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45831 fi
45832
45833 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45834     cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_NOTIFICATION_MESSAGE 1
45836 _ACEOF
45837
45838 fi
45839
45840 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45841   cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_ODCOMBOBOX 1
45843 _ACEOF
45844
45845   USES_CONTROLS=1
45846   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45847 fi
45848
45849 if test "$wxUSE_RADIOBOX" = "yes"; then
45850     cat >>confdefs.h <<\_ACEOF
45851 #define wxUSE_RADIOBOX 1
45852 _ACEOF
45853
45854     USES_CONTROLS=1
45855 fi
45856
45857 if test "$wxUSE_RADIOBTN" = "yes"; then
45858     cat >>confdefs.h <<\_ACEOF
45859 #define wxUSE_RADIOBTN 1
45860 _ACEOF
45861
45862     USES_CONTROLS=1
45863 fi
45864
45865 if test "$wxUSE_SASH" = "yes"; then
45866     cat >>confdefs.h <<\_ACEOF
45867 #define wxUSE_SASH 1
45868 _ACEOF
45869
45870     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45871 fi
45872
45873 if test "$wxUSE_SCROLLBAR" = "yes"; then
45874     cat >>confdefs.h <<\_ACEOF
45875 #define wxUSE_SCROLLBAR 1
45876 _ACEOF
45877
45878     USES_CONTROLS=1
45879     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45880 fi
45881
45882 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45883     cat >>confdefs.h <<\_ACEOF
45884 #define wxUSE_SEARCHCTRL 1
45885 _ACEOF
45886
45887     USES_CONTROLS=1
45888 fi
45889
45890 if test "$wxUSE_SLIDER" = "yes"; then
45891     cat >>confdefs.h <<\_ACEOF
45892 #define wxUSE_SLIDER 1
45893 _ACEOF
45894
45895     USES_CONTROLS=1
45896 fi
45897
45898 if test "$wxUSE_SPINBTN" = "yes"; then
45899     cat >>confdefs.h <<\_ACEOF
45900 #define wxUSE_SPINBTN 1
45901 _ACEOF
45902
45903     USES_CONTROLS=1
45904 fi
45905
45906 if test "$wxUSE_SPINCTRL" = "yes"; then
45907     cat >>confdefs.h <<\_ACEOF
45908 #define wxUSE_SPINCTRL 1
45909 _ACEOF
45910
45911     USES_CONTROLS=1
45912 fi
45913
45914 if test "$wxUSE_SPLITTER" = "yes"; then
45915     cat >>confdefs.h <<\_ACEOF
45916 #define wxUSE_SPLITTER 1
45917 _ACEOF
45918
45919     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45920 fi
45921
45922 if test "$wxUSE_STATBMP" = "yes"; then
45923     cat >>confdefs.h <<\_ACEOF
45924 #define wxUSE_STATBMP 1
45925 _ACEOF
45926
45927     USES_CONTROLS=1
45928 fi
45929
45930 if test "$wxUSE_STATBOX" = "yes"; then
45931     cat >>confdefs.h <<\_ACEOF
45932 #define wxUSE_STATBOX 1
45933 _ACEOF
45934
45935     USES_CONTROLS=1
45936 fi
45937
45938 if test "$wxUSE_STATTEXT" = "yes"; then
45939     cat >>confdefs.h <<\_ACEOF
45940 #define wxUSE_STATTEXT 1
45941 _ACEOF
45942
45943     USES_CONTROLS=1
45944 fi
45945
45946 if test "$wxUSE_STATLINE" = "yes"; then
45947     cat >>confdefs.h <<\_ACEOF
45948 #define wxUSE_STATLINE 1
45949 _ACEOF
45950
45951     USES_CONTROLS=1
45952 fi
45953
45954 if test "$wxUSE_STATUSBAR" = "yes"; then
45955         cat >>confdefs.h <<\_ACEOF
45956 #define wxUSE_NATIVE_STATUSBAR 1
45957 _ACEOF
45958
45959     cat >>confdefs.h <<\_ACEOF
45960 #define wxUSE_STATUSBAR 1
45961 _ACEOF
45962
45963     USES_CONTROLS=1
45964
45965     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45966 fi
45967
45968 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45969     cat >>confdefs.h <<\_ACEOF
45970 #define wxUSE_TAB_DIALOG 1
45971 _ACEOF
45972
45973 fi
45974
45975 if test "$wxUSE_TEXTCTRL" = "yes"; then
45976     cat >>confdefs.h <<\_ACEOF
45977 #define wxUSE_TEXTCTRL 1
45978 _ACEOF
45979
45980     USES_CONTROLS=1
45981     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45982
45983             cat >>confdefs.h <<\_ACEOF
45984 #define wxUSE_RICHEDIT 1
45985 _ACEOF
45986
45987     cat >>confdefs.h <<\_ACEOF
45988 #define wxUSE_RICHEDIT2 1
45989 _ACEOF
45990
45991 fi
45992
45993 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45994     if test "$wxUSE_COCOA" = 1 ; then
45995         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45996 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45997         wxUSE_TOGGLEBTN=no
45998     fi
45999
46000     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46001         cat >>confdefs.h <<\_ACEOF
46002 #define wxUSE_TOGGLEBTN 1
46003 _ACEOF
46004
46005         USES_CONTROLS=1
46006     fi
46007 fi
46008
46009 if test "$wxUSE_TOOLBAR" = "yes"; then
46010     cat >>confdefs.h <<\_ACEOF
46011 #define wxUSE_TOOLBAR 1
46012 _ACEOF
46013
46014     USES_CONTROLS=1
46015
46016     if test "$wxUSE_UNIVERSAL" = "yes"; then
46017         wxUSE_TOOLBAR_NATIVE="no"
46018     else
46019         wxUSE_TOOLBAR_NATIVE="yes"
46020         cat >>confdefs.h <<\_ACEOF
46021 #define wxUSE_TOOLBAR_NATIVE 1
46022 _ACEOF
46023
46024     fi
46025
46026     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46027 fi
46028
46029 if test "$wxUSE_TOOLTIPS" = "yes"; then
46030     if test "$wxUSE_MOTIF" = 1; then
46031         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46032 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46033     else
46034         if test "$wxUSE_UNIVERSAL" = "yes"; then
46035             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46036 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46037         else
46038             cat >>confdefs.h <<\_ACEOF
46039 #define wxUSE_TOOLTIPS 1
46040 _ACEOF
46041
46042         fi
46043     fi
46044 fi
46045
46046 if test "$wxUSE_TREEBOOK" = "yes"; then
46047     cat >>confdefs.h <<\_ACEOF
46048 #define wxUSE_TREEBOOK 1
46049 _ACEOF
46050
46051     USES_CONTROLS=1
46052 fi
46053
46054 if test "$wxUSE_TOOLBOOK" = "yes"; then
46055     cat >>confdefs.h <<\_ACEOF
46056 #define wxUSE_TOOLBOOK 1
46057 _ACEOF
46058
46059     USES_CONTROLS=1
46060 fi
46061
46062 if test "$wxUSE_TREECTRL" = "yes"; then
46063     if test "$wxUSE_IMAGLIST" = "yes"; then
46064         cat >>confdefs.h <<\_ACEOF
46065 #define wxUSE_TREECTRL 1
46066 _ACEOF
46067
46068         USES_CONTROLS=1
46069         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46070     else
46071         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46072 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46073     fi
46074 fi
46075
46076 if test "$wxUSE_POPUPWIN" = "yes"; then
46077     if test "$wxUSE_COCOA" = 1 ; then
46078         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46079 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46080     else
46081         if test "$wxUSE_PM" = 1; then
46082             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46083 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46084         else
46085             cat >>confdefs.h <<\_ACEOF
46086 #define wxUSE_POPUPWIN 1
46087 _ACEOF
46088
46089             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46090
46091             USES_CONTROLS=1
46092         fi
46093     fi
46094 fi
46095
46096 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46097     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46098         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46099 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46100     else
46101         cat >>confdefs.h <<\_ACEOF
46102 #define wxUSE_DIALUP_MANAGER 1
46103 _ACEOF
46104
46105         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46106     fi
46107 fi
46108
46109 if test "$wxUSE_TIPWINDOW" = "yes"; then
46110     if test "$wxUSE_PM" = 1; then
46111         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46112 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46113     else
46114         cat >>confdefs.h <<\_ACEOF
46115 #define wxUSE_TIPWINDOW 1
46116 _ACEOF
46117
46118     fi
46119 fi
46120
46121 if test "$USES_CONTROLS" = 1; then
46122     cat >>confdefs.h <<\_ACEOF
46123 #define wxUSE_CONTROLS 1
46124 _ACEOF
46125
46126 fi
46127
46128
46129 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46130     cat >>confdefs.h <<\_ACEOF
46131 #define wxUSE_ACCESSIBILITY 1
46132 _ACEOF
46133
46134     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46135 fi
46136
46137 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46138     cat >>confdefs.h <<\_ACEOF
46139 #define wxUSE_DRAGIMAGE 1
46140 _ACEOF
46141
46142     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46143 fi
46144
46145 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46146     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46147         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46148 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46149     else
46150         cat >>confdefs.h <<\_ACEOF
46151 #define wxUSE_EXCEPTIONS 1
46152 _ACEOF
46153
46154         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46155     fi
46156 fi
46157
46158 USE_HTML=0
46159 if test "$wxUSE_HTML" = "yes"; then
46160     cat >>confdefs.h <<\_ACEOF
46161 #define wxUSE_HTML 1
46162 _ACEOF
46163
46164     USE_HTML=1
46165     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46166 fi
46167 if test "$wxUSE_WEBKIT" = "yes"; then
46168     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46169         old_CPPFLAGS="$CPPFLAGS"
46170         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46171         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46172 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46173 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46174   echo $ECHO_N "(cached) $ECHO_C" >&6
46175 else
46176   cat >conftest.$ac_ext <<_ACEOF
46177 /* confdefs.h.  */
46178 _ACEOF
46179 cat confdefs.h >>conftest.$ac_ext
46180 cat >>conftest.$ac_ext <<_ACEOF
46181 /* end confdefs.h.  */
46182
46183                            #include <Carbon/Carbon.h>
46184                            #include <WebKit/WebKit.h>
46185
46186
46187 #include <WebKit/HIWebView.h>
46188 _ACEOF
46189 rm -f conftest.$ac_objext
46190 if { (ac_try="$ac_compile"
46191 case "(($ac_try" in
46192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46193   *) ac_try_echo=$ac_try;;
46194 esac
46195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46196   (eval "$ac_compile") 2>conftest.er1
46197   ac_status=$?
46198   grep -v '^ *+' conftest.er1 >conftest.err
46199   rm -f conftest.er1
46200   cat conftest.err >&5
46201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46202   (exit $ac_status); } && {
46203          test -z "$ac_c_werror_flag" ||
46204          test ! -s conftest.err
46205        } && test -s conftest.$ac_objext; then
46206   ac_cv_header_WebKit_HIWebView_h=yes
46207 else
46208   echo "$as_me: failed program was:" >&5
46209 sed 's/^/| /' conftest.$ac_ext >&5
46210
46211         ac_cv_header_WebKit_HIWebView_h=no
46212 fi
46213
46214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46215 fi
46216 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46217 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46218 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46219
46220                            cat >>confdefs.h <<\_ACEOF
46221 #define wxUSE_WEBKIT 1
46222 _ACEOF
46223
46224                            WEBKIT_LINK="-framework WebKit"
46225
46226 else
46227
46228                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46229 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46230                            wxUSE_WEBKIT=no
46231
46232 fi
46233
46234
46235         CPPFLAGS="$old_CPPFLAGS"
46236     elif test "$wxUSE_COCOA" = 1; then
46237         cat >>confdefs.h <<\_ACEOF
46238 #define wxUSE_WEBKIT 1
46239 _ACEOF
46240
46241     else
46242         wxUSE_WEBKIT=no
46243     fi
46244     if test "$wxUSE_WEBKIT" = "yes"; then
46245         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46246     fi
46247 fi
46248
46249 USE_XRC=0
46250 if test "$wxUSE_XRC" = "yes"; then
46251     if test "$wxUSE_XML" != "yes"; then
46252         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46253 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46254         wxUSE_XRC=no
46255     else
46256         cat >>confdefs.h <<\_ACEOF
46257 #define wxUSE_XRC 1
46258 _ACEOF
46259
46260         USE_XRC=1
46261         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46262     fi
46263 fi
46264
46265 USE_AUI=0
46266 if test "$wxUSE_AUI" = "yes"; then
46267    cat >>confdefs.h <<\_ACEOF
46268 #define wxUSE_AUI 1
46269 _ACEOF
46270
46271    USE_AUI=1
46272    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46273 fi
46274
46275 USE_PROPGRID=0
46276 if test "$wxUSE_PROPGRID" = "yes"; then
46277    cat >>confdefs.h <<\_ACEOF
46278 #define wxUSE_PROPGRID 1
46279 _ACEOF
46280
46281    USE_PROPGRID=1
46282    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46283 fi
46284
46285 USE_STC=0
46286 if test "$wxUSE_STC" = "yes"; then
46287    cat >>confdefs.h <<\_ACEOF
46288 #define wxUSE_STC 1
46289 _ACEOF
46290
46291    USE_STC=1
46292    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46293 fi
46294
46295 if test "$wxUSE_MENUS" = "yes"; then
46296     cat >>confdefs.h <<\_ACEOF
46297 #define wxUSE_MENUS 1
46298 _ACEOF
46299
46300     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46301 fi
46302
46303 if test "$wxUSE_METAFILE" = "yes"; then
46304     cat >>confdefs.h <<\_ACEOF
46305 #define wxUSE_METAFILE 1
46306 _ACEOF
46307
46308 fi
46309
46310 if test "$wxUSE_MIMETYPE" = "yes"; then
46311     cat >>confdefs.h <<\_ACEOF
46312 #define wxUSE_MIMETYPE 1
46313 _ACEOF
46314
46315 fi
46316
46317 if test "$wxUSE_MINIFRAME" = "yes"; then
46318     cat >>confdefs.h <<\_ACEOF
46319 #define wxUSE_MINIFRAME 1
46320 _ACEOF
46321
46322 fi
46323
46324 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46325     cat >>confdefs.h <<\_ACEOF
46326 #define wxUSE_SYSTEM_OPTIONS 1
46327 _ACEOF
46328
46329 fi
46330
46331 if test "$wxUSE_TASKBARICON" = "yes"; then
46332     cat >>confdefs.h <<\_ACEOF
46333 #define wxUSE_TASKBARICON 1
46334 _ACEOF
46335
46336     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46337 fi
46338
46339
46340 if test "$wxUSE_VALIDATORS" = "yes"; then
46341     cat >>confdefs.h <<\_ACEOF
46342 #define wxUSE_VALIDATORS 1
46343 _ACEOF
46344
46345     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46346 fi
46347
46348 if test "$wxUSE_PALETTE" = "yes" ; then
46349     if test "$wxUSE_DFB" = 1; then
46350         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46351 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46352         wxUSE_PALETTE=no
46353     else
46354         cat >>confdefs.h <<\_ACEOF
46355 #define wxUSE_PALETTE 1
46356 _ACEOF
46357
46358     fi
46359 fi
46360
46361 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46362     LIBS=" -lunicows $LIBS"
46363 fi
46364
46365 USE_RICHTEXT=0
46366 if test "$wxUSE_RICHTEXT" = "yes"; then
46367     cat >>confdefs.h <<\_ACEOF
46368 #define wxUSE_RICHTEXT 1
46369 _ACEOF
46370
46371     USE_RICHTEXT=1
46372     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46373 fi
46374
46375
46376 if test "$wxUSE_IMAGE" = "yes" ; then
46377     cat >>confdefs.h <<\_ACEOF
46378 #define wxUSE_IMAGE 1
46379 _ACEOF
46380
46381
46382     if test "$wxUSE_GIF" = "yes" ; then
46383       cat >>confdefs.h <<\_ACEOF
46384 #define wxUSE_GIF 1
46385 _ACEOF
46386
46387     fi
46388
46389     if test "$wxUSE_PCX" = "yes" ; then
46390       cat >>confdefs.h <<\_ACEOF
46391 #define wxUSE_PCX 1
46392 _ACEOF
46393
46394     fi
46395
46396     if test "$wxUSE_TGA" = "yes" ; then
46397       cat >>confdefs.h <<\_ACEOF
46398 #define wxUSE_TGA 1
46399 _ACEOF
46400
46401     fi
46402
46403     if test "$wxUSE_IFF" = "yes" ; then
46404       cat >>confdefs.h <<\_ACEOF
46405 #define wxUSE_IFF 1
46406 _ACEOF
46407
46408     fi
46409
46410     if test "$wxUSE_PNM" = "yes" ; then
46411       cat >>confdefs.h <<\_ACEOF
46412 #define wxUSE_PNM 1
46413 _ACEOF
46414
46415     fi
46416
46417     if test "$wxUSE_XPM" = "yes" ; then
46418       cat >>confdefs.h <<\_ACEOF
46419 #define wxUSE_XPM 1
46420 _ACEOF
46421
46422     fi
46423
46424     if test "$wxUSE_ICO_CUR" = "yes" ; then
46425       cat >>confdefs.h <<\_ACEOF
46426 #define wxUSE_ICO_CUR 1
46427 _ACEOF
46428
46429     fi
46430 fi
46431
46432
46433 if test "$wxUSE_ABOUTDLG" = "yes"; then
46434     cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_ABOUTDLG 1
46436 _ACEOF
46437
46438 fi
46439
46440 if test "$wxUSE_CHOICEDLG" = "yes"; then
46441     cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_CHOICEDLG 1
46443 _ACEOF
46444
46445 fi
46446
46447 if test "$wxUSE_COLOURDLG" = "yes"; then
46448     cat >>confdefs.h <<\_ACEOF
46449 #define wxUSE_COLOURDLG 1
46450 _ACEOF
46451
46452 fi
46453
46454 if test "$wxUSE_FILEDLG" = "yes"; then
46455     cat >>confdefs.h <<\_ACEOF
46456 #define wxUSE_FILEDLG 1
46457 _ACEOF
46458
46459 fi
46460
46461 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46462     cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_FINDREPLDLG 1
46464 _ACEOF
46465
46466 fi
46467
46468 if test "$wxUSE_FONTDLG" = "yes"; then
46469     cat >>confdefs.h <<\_ACEOF
46470 #define wxUSE_FONTDLG 1
46471 _ACEOF
46472
46473 fi
46474
46475 if test "$wxUSE_DIRDLG" = "yes"; then
46476     if test "$wxUSE_TREECTRL" != "yes"; then
46477         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46478 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46479     else
46480         cat >>confdefs.h <<\_ACEOF
46481 #define wxUSE_DIRDLG 1
46482 _ACEOF
46483
46484     fi
46485 fi
46486
46487 if test "$wxUSE_MSGDLG" = "yes"; then
46488     cat >>confdefs.h <<\_ACEOF
46489 #define wxUSE_MSGDLG 1
46490 _ACEOF
46491
46492 fi
46493
46494 if test "$wxUSE_NUMBERDLG" = "yes"; then
46495     cat >>confdefs.h <<\_ACEOF
46496 #define wxUSE_NUMBERDLG 1
46497 _ACEOF
46498
46499 fi
46500
46501 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46502     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46503        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46504 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46505     else
46506         cat >>confdefs.h <<\_ACEOF
46507 #define wxUSE_PROGRESSDLG 1
46508 _ACEOF
46509
46510     fi
46511 fi
46512
46513 if test "$wxUSE_SPLASH" = "yes"; then
46514     cat >>confdefs.h <<\_ACEOF
46515 #define wxUSE_SPLASH 1
46516 _ACEOF
46517
46518     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46519 fi
46520
46521 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46522     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46523        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46524 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46525     else
46526         cat >>confdefs.h <<\_ACEOF
46527 #define wxUSE_STARTUP_TIPS 1
46528 _ACEOF
46529
46530     fi
46531 fi
46532
46533 if test "$wxUSE_TEXTDLG" = "yes"; then
46534     cat >>confdefs.h <<\_ACEOF
46535 #define wxUSE_TEXTDLG 1
46536 _ACEOF
46537
46538 fi
46539
46540 if test "$wxUSE_WIZARDDLG" = "yes"; then
46541     cat >>confdefs.h <<\_ACEOF
46542 #define wxUSE_WIZARDDLG 1
46543 _ACEOF
46544
46545     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46546 fi
46547
46548
46549 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46550     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46551         cat >>confdefs.h <<\_ACEOF
46552 #define wxUSE_OWNER_DRAWN 1
46553 _ACEOF
46554
46555     fi
46556 fi
46557
46558
46559 if test "$wxUSE_MSW" = 1 ; then
46560
46561     if test "$wxUSE_DC_CACHEING" = "yes"; then
46562         cat >>confdefs.h <<\_ACEOF
46563 #define wxUSE_DC_CACHEING 1
46564 _ACEOF
46565
46566     fi
46567
46568     if test "$wxUSE_DIB" = "yes"; then
46569         cat >>confdefs.h <<\_ACEOF
46570 #define wxUSE_WXDIB 1
46571 _ACEOF
46572
46573     fi
46574
46575     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46576         cat >>confdefs.h <<\_ACEOF
46577 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46578 _ACEOF
46579
46580     fi
46581
46582     if test "$wxUSE_UXTHEME" = "yes"; then
46583         cat >>confdefs.h <<\_ACEOF
46584 #define wxUSE_UXTHEME 1
46585 _ACEOF
46586
46587     fi
46588
46589 fi
46590
46591 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46592     cat >>confdefs.h <<\_ACEOF
46593 #define wxUSE_AUTOID_MANAGEMENT 1
46594 _ACEOF
46595
46596 fi
46597
46598 if test "$USE_WIN32" = 1 ; then
46599     if test "$wxUSE_INICONF" = "yes"; then
46600         cat >>confdefs.h <<\_ACEOF
46601 #define wxUSE_INICONF 1
46602 _ACEOF
46603
46604     fi
46605
46606     if test "$wxUSE_REGKEY" = "yes"; then
46607         cat >>confdefs.h <<\_ACEOF
46608 #define wxUSE_REGKEY 1
46609 _ACEOF
46610
46611     fi
46612 fi
46613
46614
46615 if test "$wxUSE_MAC" = 1; then
46616         wxUSE_GRAPHICS_CONTEXT="yes"
46617 fi
46618
46619 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46620    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46621       cat >>confdefs.h <<\_ACEOF
46622 #define wxUSE_GRAPHICS_CONTEXT 1
46623 _ACEOF
46624
46625    elif test "$wxUSE_GTK" != 1; then
46626             cat >>confdefs.h <<\_ACEOF
46627 #define wxUSE_GRAPHICS_CONTEXT 1
46628 _ACEOF
46629
46630    else
46631
46632 pkg_failed=no
46633 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46634 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46635
46636 if test -n "$PKG_CONFIG"; then
46637     if test -n "$CAIRO_CFLAGS"; then
46638         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46639     else
46640         if test -n "$PKG_CONFIG" && \
46641     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46642   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46643   ac_status=$?
46644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46645   (exit $ac_status); }; then
46646   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46647 else
46648   pkg_failed=yes
46649 fi
46650     fi
46651 else
46652         pkg_failed=untried
46653 fi
46654 if test -n "$PKG_CONFIG"; then
46655     if test -n "$CAIRO_LIBS"; then
46656         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46657     else
46658         if test -n "$PKG_CONFIG" && \
46659     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46660   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46661   ac_status=$?
46662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46663   (exit $ac_status); }; then
46664   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46665 else
46666   pkg_failed=yes
46667 fi
46668     fi
46669 else
46670         pkg_failed=untried
46671 fi
46672
46673
46674
46675 if test $pkg_failed = yes; then
46676
46677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46678         _pkg_short_errors_supported=yes
46679 else
46680         _pkg_short_errors_supported=no
46681 fi
46682         if test $_pkg_short_errors_supported = yes; then
46683                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46684         else
46685                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46686         fi
46687         # Put the nasty error message in config.log where it belongs
46688         echo "$CAIRO_PKG_ERRORS" >&5
46689
46690         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46691 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46692
46693 elif test $pkg_failed = untried; then
46694         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46695 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46696
46697 else
46698         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46699         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46700         { echo "$as_me:$LINENO: result: yes" >&5
46701 echo "${ECHO_T}yes" >&6; }
46702         cat >>confdefs.h <<\_ACEOF
46703 #define wxUSE_GRAPHICS_CONTEXT 1
46704 _ACEOF
46705
46706 fi
46707    fi
46708 fi
46709
46710
46711 USE_MEDIA=0
46712
46713 if test "$wxUSE_MEDIACTRL" = "yes"; then
46714     USE_MEDIA=1
46715
46716                 if test "$wxUSE_GTK" = 1; then
46717         wxUSE_GSTREAMER="no"
46718
46719                                                                 GST_VERSION_MAJOR=0
46720         GST_VERSION_MINOR=10
46721         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46722
46723         if test "$wxUSE_GSTREAMER8" = "no"; then
46724
46725 pkg_failed=no
46726 { echo "$as_me:$LINENO: checking for GST" >&5
46727 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46728
46729 if test -n "$PKG_CONFIG"; then
46730     if test -n "$GST_CFLAGS"; then
46731         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46732     else
46733         if test -n "$PKG_CONFIG" && \
46734     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46735   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46736   ac_status=$?
46737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46738   (exit $ac_status); }; then
46739   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46740 else
46741   pkg_failed=yes
46742 fi
46743     fi
46744 else
46745         pkg_failed=untried
46746 fi
46747 if test -n "$PKG_CONFIG"; then
46748     if test -n "$GST_LIBS"; then
46749         pkg_cv_GST_LIBS="$GST_LIBS"
46750     else
46751         if test -n "$PKG_CONFIG" && \
46752     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46753   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46754   ac_status=$?
46755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756   (exit $ac_status); }; then
46757   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46758 else
46759   pkg_failed=yes
46760 fi
46761     fi
46762 else
46763         pkg_failed=untried
46764 fi
46765
46766
46767
46768 if test $pkg_failed = yes; then
46769
46770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46771         _pkg_short_errors_supported=yes
46772 else
46773         _pkg_short_errors_supported=no
46774 fi
46775         if test $_pkg_short_errors_supported = yes; then
46776                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46777         else
46778                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46779         fi
46780         # Put the nasty error message in config.log where it belongs
46781         echo "$GST_PKG_ERRORS" >&5
46782
46783
46784                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46785 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46786                     GST_VERSION_MINOR=8
46787
46788
46789 elif test $pkg_failed = untried; then
46790
46791                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46792 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46793                     GST_VERSION_MINOR=8
46794
46795
46796 else
46797         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46798         GST_LIBS=$pkg_cv_GST_LIBS
46799         { echo "$as_me:$LINENO: result: yes" >&5
46800 echo "${ECHO_T}yes" >&6; }
46801
46802                     wxUSE_GSTREAMER="yes"
46803                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46804
46805 fi
46806         else
46807                         GST_VERSION_MINOR=8
46808         fi
46809
46810         if test $GST_VERSION_MINOR = "8"; then
46811             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46812
46813 pkg_failed=no
46814 { echo "$as_me:$LINENO: checking for GST" >&5
46815 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46816
46817 if test -n "$PKG_CONFIG"; then
46818     if test -n "$GST_CFLAGS"; then
46819         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46820     else
46821         if test -n "$PKG_CONFIG" && \
46822     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46823   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46824   ac_status=$?
46825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46826   (exit $ac_status); }; then
46827   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46828 else
46829   pkg_failed=yes
46830 fi
46831     fi
46832 else
46833         pkg_failed=untried
46834 fi
46835 if test -n "$PKG_CONFIG"; then
46836     if test -n "$GST_LIBS"; then
46837         pkg_cv_GST_LIBS="$GST_LIBS"
46838     else
46839         if test -n "$PKG_CONFIG" && \
46840     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46841   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46842   ac_status=$?
46843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46844   (exit $ac_status); }; then
46845   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46846 else
46847   pkg_failed=yes
46848 fi
46849     fi
46850 else
46851         pkg_failed=untried
46852 fi
46853
46854
46855
46856 if test $pkg_failed = yes; then
46857
46858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46859         _pkg_short_errors_supported=yes
46860 else
46861         _pkg_short_errors_supported=no
46862 fi
46863         if test $_pkg_short_errors_supported = yes; then
46864                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46865         else
46866                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46867         fi
46868         # Put the nasty error message in config.log where it belongs
46869         echo "$GST_PKG_ERRORS" >&5
46870
46871
46872                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46873 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46874
46875 elif test $pkg_failed = untried; then
46876
46877                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46878 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46879
46880 else
46881         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46882         GST_LIBS=$pkg_cv_GST_LIBS
46883         { echo "$as_me:$LINENO: result: yes" >&5
46884 echo "${ECHO_T}yes" >&6; }
46885         wxUSE_GSTREAMER="yes"
46886 fi
46887         fi
46888
46889
46890         if test "$wxUSE_GSTREAMER" = "yes"; then
46891             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46892             EXTRALIBS_MEDIA="$GST_LIBS"
46893
46894             cat >>confdefs.h <<\_ACEOF
46895 #define wxUSE_GSTREAMER 1
46896 _ACEOF
46897
46898         else
46899             USE_MEDIA=0
46900         fi
46901     fi
46902
46903     if test $USE_MEDIA = 1; then
46904         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46905         cat >>confdefs.h <<\_ACEOF
46906 #define wxUSE_MEDIACTRL 1
46907 _ACEOF
46908
46909     fi
46910 fi
46911
46912
46913 if test "$cross_compiling" = "yes"; then
46914         OSINFO="\"$host\""
46915 else
46916         OSINFO=`uname -s -r -m`
46917     OSINFO="\"$OSINFO\""
46918 fi
46919
46920 cat >>confdefs.h <<_ACEOF
46921 #define WXWIN_OS_DESCRIPTION $OSINFO
46922 _ACEOF
46923
46924
46925
46926 if test "x$prefix" != "xNONE"; then
46927     wxPREFIX=$prefix
46928 else
46929     wxPREFIX=$ac_default_prefix
46930 fi
46931
46932 cat >>confdefs.h <<_ACEOF
46933 #define wxINSTALL_PREFIX "$wxPREFIX"
46934 _ACEOF
46935
46936
46937
46938
46939 STD_BASE_LIBS="base"
46940 STD_GUI_LIBS=""
46941 BUILT_WX_LIBS="base"
46942 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46943
46944 if test "$wxUSE_SOCKETS" = "yes" ; then
46945     STD_BASE_LIBS="net $STD_BASE_LIBS"
46946     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46947 fi
46948 if test "$wxUSE_XML" = "yes" ; then
46949     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46950     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46951 fi
46952
46953 if test "$wxUSE_GUI" = "yes"; then
46954     STD_GUI_LIBS="adv core"
46955     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46956
46957     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46958         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46959         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46960     fi
46961     if test "$wxUSE_HTML" = "yes" ; then
46962         STD_GUI_LIBS="html $STD_GUI_LIBS"
46963         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46964     fi
46965     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46966         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46967     fi
46968     if test "$wxUSE_OPENGL" = "yes" ; then
46969         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46970     fi
46971     if test "$wxUSE_AUI" = "yes" ; then
46972         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46973     fi
46974     if test "$wxUSE_PROPGRID" = "yes" ; then
46975         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46976     fi
46977     if test "$wxUSE_STC" = "yes" ; then
46978         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46979     fi
46980     if test "$wxUSE_XRC" = "yes" ; then
46981         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46982         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46983     fi
46984 fi
46985
46986
46987
46988
46989
46990
46991
46992
46993 if test "$wxUSE_MAC" = 1 ; then
46994     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46995         if test "$USE_DARWIN" = 1; then
46996             LDFLAGS="$LDFLAGS -framework QuickTime"
46997         fi
46998     fi
46999     if test "$USE_DARWIN" = 1; then
47000         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47001     fi
47002 fi
47003 if test "$wxUSE_COCOA" = 1 ; then
47004     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47005     if test "$wxUSE_MEDIACTRL" = "yes"; then
47006         LDFLAGS="$LDFLAGS -framework QuickTime"
47007     fi
47008 fi
47009 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47010     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47011 fi
47012
47013 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47014
47015 if test "$wxUSE_GUI" = "yes"; then
47016
47017
47018         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47019                      erase event exec font image minimal mobile \
47020                      mobile/wxedit mobile/styles render \
47021                      shaped svg taborder vscroll widgets"
47022
47023     if test "$wxUSE_MONOLITHIC" != "yes"; then
47024         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47025     fi
47026     if test "$TOOLKIT" = "MSW"; then
47027         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47028         if test "$wxUSE_UNIVERSAL" != "yes"; then
47029             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47030         fi
47031     fi
47032     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47033         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47034     fi
47035 else
47036     SAMPLES_SUBDIRS="console"
47037     if test "$wxUSE_SOCKETS" = "yes" ; then
47038         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47039     fi
47040     if test "$wxUSE_IPC" = "yes" ; then
47041         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47042     fi
47043 fi
47044
47045
47046 if test "x$INTELCC" = "xyes" ; then
47047                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47048 elif test "$GCC" = yes ; then
47049     CWARNINGS="-Wall -Wundef"
47050 fi
47051
47052 if test "x$INTELCXX" = "xyes" ; then
47053                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
47054 elif test "$GXX" = yes ; then
47055         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47056 fi
47057
47058
47059 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47060 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47061
47062
47063 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47064  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47065  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47066  $CPPFLAGS `
47067
47068 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47069 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47070 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47071 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47072 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47073
47074 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47075
47076
47077 if test "x$MWCC" = "xyes"; then
47078
47079             CC="$CC -cwd source -I-"
47080     CXX="$CXX -cwd source -I-"
47081 fi
47082
47083
47084 LIBS=`echo $LIBS`
47085 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47086 EXTRALIBS_XML="$EXPAT_LINK"
47087 EXTRALIBS_HTML="$MSPACK_LINK"
47088 EXTRALIBS_MEDIA="$GST_LIBS"
47089 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47090 if test "$wxUSE_GUI" = "yes"; then
47091     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47092 fi
47093 if test "$wxUSE_OPENGL" = "yes"; then
47094     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47095 fi
47096
47097 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47098
47099 WXCONFIG_LIBS="$LIBS"
47100
47101 if test "$wxUSE_REGEX" = "builtin" ; then
47102     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47103 fi
47104 if test "$wxUSE_EXPAT" = "builtin" ; then
47105     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47106 fi
47107 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47108     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47109 fi
47110 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47111     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47112 fi
47113 if test "$wxUSE_LIBPNG" = "builtin" ; then
47114     wxconfig_3rdparty="png $wxconfig_3rdparty"
47115 fi
47116 if test "$wxUSE_ZLIB" = "builtin" ; then
47117     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47118 fi
47119
47120 for i in $wxconfig_3rdparty ; do
47121     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47122 done
47123
47124
47125 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47126     WXUNIV=1
47127
47128     case "$wxUNIV_THEMES" in
47129         ''|all)
47130             cat >>confdefs.h <<\_ACEOF
47131 #define wxUSE_ALL_THEMES 1
47132 _ACEOF
47133
47134             ;;
47135
47136         *)
47137             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47138                 cat >>confdefs.h <<_ACEOF
47139 #define wxUSE_THEME_$t 1
47140 _ACEOF
47141
47142             done
47143     esac
47144 else
47145     WXUNIV=0
47146 fi
47147
47148
47149
47150
47151
47152
47153
47154
47155 if test $wxUSE_MONOLITHIC = "yes" ; then
47156     MONOLITHIC=1
47157 else
47158     MONOLITHIC=0
47159 fi
47160
47161 if test $wxUSE_PLUGINS = "yes" ; then
47162     USE_PLUGINS=1
47163 else
47164     USE_PLUGINS=0
47165 fi
47166
47167 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47168     USE_QA=1
47169 else
47170     USE_QA=0
47171 fi
47172
47173 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47174     OFFICIAL_BUILD=1
47175 else
47176     OFFICIAL_BUILD=0
47177 fi
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206 TOOLKIT_LOWERCASE=xxx
47207 if test "$TOOLKIT" = "MAC"; then
47208     TOOLKIT_LOWERCASE=osx
47209 fi
47210 if test "$TOOLKIT" = "OSX_CARBON"; then
47211     TOOLKIT_LOWERCASE=osx
47212 fi
47213 if test "$TOOLKIT" = "OSX_COCOA"; then
47214     TOOLKIT_LOWERCASE=osx
47215 fi
47216 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47217     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47218 fi
47219
47220
47221
47222
47223
47224
47225
47226
47227 case "$TOOLKIT" in
47228     GTK)
47229         TOOLKIT_DESC="GTK+"
47230         if test "$WXGTK2" = 1; then
47231             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47232             if test "$wxUSE_GTKPRINT" = "yes" ; then
47233                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47234             fi
47235             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47236                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47237             fi
47238             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47239                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47240             fi
47241             if test "$wxUSE_LIBHILDON" = "yes"; then
47242                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47243             fi
47244
47245             if test "$TOOLKIT_EXTRA" != ""; then
47246                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47247             fi
47248         fi
47249         ;;
47250
47251     ?*)
47252         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47253         ;;
47254
47255     *)
47256         TOOLKIT_DESC="base only"
47257         ;;
47258 esac
47259
47260 if test "$wxUSE_WINE" = "yes"; then
47261     BAKEFILE_FORCE_PLATFORM=win32
47262 fi
47263
47264 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47265 then
47266     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47267 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47268 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47269   echo $ECHO_N "(cached) $ECHO_C" >&6
47270 else
47271
47272             echo '#include <stdio.h>
47273                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47274
47275             echo '#include "conftest.h"
47276                   int main()
47277                   {
47278                      printf("%ls", test_var);
47279                      return 0;
47280                   }' > conftest.cpp
47281
47282             wx_cv_gcc_pch_bug="pch not supported"
47283
47284             if $CXX conftest.h >/dev/null 2>&1
47285             then
47286                 wx_cv_gcc_pch_bug=
47287
47288                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47289                 then
47290                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47291                         grep awidetest >/dev/null
47292                     then
47293                         wx_cv_gcc_pch_bug=no
47294                     else
47295                         wx_cv_gcc_pch_bug=yes
47296                     fi
47297                 fi
47298             fi
47299
47300             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47301
47302 fi
47303 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47304 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47305
47306     if test "$wx_cv_gcc_pch_bug" = yes; then
47307                         bk_use_pch=no
47308     fi
47309 fi
47310
47311
47312
47313
47314
47315
47316
47317     if test "x$BAKEFILE_HOST" = "x"; then
47318                if test "x${host}" = "x" ; then
47319                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47320 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47321    { (exit 1); exit 1; }; }
47322                fi
47323
47324         BAKEFILE_HOST="${host}"
47325     fi
47326
47327     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47328
47329     if test -n "$ac_tool_prefix"; then
47330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47334 if test "${ac_cv_prog_RANLIB+set}" = set; then
47335   echo $ECHO_N "(cached) $ECHO_C" >&6
47336 else
47337   if test -n "$RANLIB"; then
47338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47339 else
47340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47341 for as_dir in $PATH
47342 do
47343   IFS=$as_save_IFS
47344   test -z "$as_dir" && as_dir=.
47345   for ac_exec_ext in '' $ac_executable_extensions; do
47346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47349     break 2
47350   fi
47351 done
47352 done
47353 IFS=$as_save_IFS
47354
47355 fi
47356 fi
47357 RANLIB=$ac_cv_prog_RANLIB
47358 if test -n "$RANLIB"; then
47359   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47360 echo "${ECHO_T}$RANLIB" >&6; }
47361 else
47362   { echo "$as_me:$LINENO: result: no" >&5
47363 echo "${ECHO_T}no" >&6; }
47364 fi
47365
47366
47367 fi
47368 if test -z "$ac_cv_prog_RANLIB"; then
47369   ac_ct_RANLIB=$RANLIB
47370   # Extract the first word of "ranlib", so it can be a program name with args.
47371 set dummy ranlib; ac_word=$2
47372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47375   echo $ECHO_N "(cached) $ECHO_C" >&6
47376 else
47377   if test -n "$ac_ct_RANLIB"; then
47378   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47379 else
47380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47381 for as_dir in $PATH
47382 do
47383   IFS=$as_save_IFS
47384   test -z "$as_dir" && as_dir=.
47385   for ac_exec_ext in '' $ac_executable_extensions; do
47386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47387     ac_cv_prog_ac_ct_RANLIB="ranlib"
47388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47389     break 2
47390   fi
47391 done
47392 done
47393 IFS=$as_save_IFS
47394
47395 fi
47396 fi
47397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47398 if test -n "$ac_ct_RANLIB"; then
47399   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47400 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47401 else
47402   { echo "$as_me:$LINENO: result: no" >&5
47403 echo "${ECHO_T}no" >&6; }
47404 fi
47405
47406   if test "x$ac_ct_RANLIB" = x; then
47407     RANLIB=":"
47408   else
47409     case $cross_compiling:$ac_tool_warned in
47410 yes:)
47411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47412 whose name does not start with the host triplet.  If you think this
47413 configuration is useful to you, please write to autoconf@gnu.org." >&5
47414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47415 whose name does not start with the host triplet.  If you think this
47416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47417 ac_tool_warned=yes ;;
47418 esac
47419     RANLIB=$ac_ct_RANLIB
47420   fi
47421 else
47422   RANLIB="$ac_cv_prog_RANLIB"
47423 fi
47424
47425     # Find a good install program.  We prefer a C program (faster),
47426 # so one script is as good as another.  But avoid the broken or
47427 # incompatible versions:
47428 # SysV /etc/install, /usr/sbin/install
47429 # SunOS /usr/etc/install
47430 # IRIX /sbin/install
47431 # AIX /bin/install
47432 # AmigaOS /C/install, which installs bootblocks on floppy discs
47433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47436 # OS/2's system install, which has a completely different semantic
47437 # ./install, which can be erroneously created by make from ./install.sh.
47438 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47439 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47440 if test -z "$INSTALL"; then
47441 if test "${ac_cv_path_install+set}" = set; then
47442   echo $ECHO_N "(cached) $ECHO_C" >&6
47443 else
47444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47445 for as_dir in $PATH
47446 do
47447   IFS=$as_save_IFS
47448   test -z "$as_dir" && as_dir=.
47449   # Account for people who put trailing slashes in PATH elements.
47450 case $as_dir/ in
47451   ./ | .// | /cC/* | \
47452   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47453   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47454   /usr/ucb/* ) ;;
47455   *)
47456     # OSF1 and SCO ODT 3.0 have their own names for install.
47457     # Don't use installbsd from OSF since it installs stuff as root
47458     # by default.
47459     for ac_prog in ginstall scoinst install; do
47460       for ac_exec_ext in '' $ac_executable_extensions; do
47461         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47462           if test $ac_prog = install &&
47463             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47464             # AIX install.  It has an incompatible calling convention.
47465             :
47466           elif test $ac_prog = install &&
47467             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47468             # program-specific install script used by HP pwplus--don't use.
47469             :
47470           else
47471             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47472             break 3
47473           fi
47474         fi
47475       done
47476     done
47477     ;;
47478 esac
47479 done
47480 IFS=$as_save_IFS
47481
47482
47483 fi
47484   if test "${ac_cv_path_install+set}" = set; then
47485     INSTALL=$ac_cv_path_install
47486   else
47487     # As a last resort, use the slow shell script.  Don't cache a
47488     # value for INSTALL within a source directory, because that will
47489     # break other packages using the cache if that directory is
47490     # removed, or if the value is a relative name.
47491     INSTALL=$ac_install_sh
47492   fi
47493 fi
47494 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47495 echo "${ECHO_T}$INSTALL" >&6; }
47496
47497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47498 # It thinks the first close brace ends the variable substitution.
47499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47500
47501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47502
47503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47504
47505     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47507 LN_S=$as_ln_s
47508 if test "$LN_S" = "ln -s"; then
47509   { echo "$as_me:$LINENO: result: yes" >&5
47510 echo "${ECHO_T}yes" >&6; }
47511 else
47512   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47513 echo "${ECHO_T}no, using $LN_S" >&6; }
47514 fi
47515
47516
47517     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47518 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47519 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47520 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47521   echo $ECHO_N "(cached) $ECHO_C" >&6
47522 else
47523   cat >conftest.make <<\_ACEOF
47524 SHELL = /bin/sh
47525 all:
47526         @echo '@@@%%%=$(MAKE)=@@@%%%'
47527 _ACEOF
47528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47530   *@@@%%%=?*=@@@%%%*)
47531     eval ac_cv_prog_make_${ac_make}_set=yes;;
47532   *)
47533     eval ac_cv_prog_make_${ac_make}_set=no;;
47534 esac
47535 rm -f conftest.make
47536 fi
47537 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47538   { echo "$as_me:$LINENO: result: yes" >&5
47539 echo "${ECHO_T}yes" >&6; }
47540   SET_MAKE=
47541 else
47542   { echo "$as_me:$LINENO: result: no" >&5
47543 echo "${ECHO_T}no" >&6; }
47544   SET_MAKE="MAKE=${MAKE-make}"
47545 fi
47546
47547
47548
47549     if test "x$SUNCXX" = "xyes"; then
47550                                 AR=$CXX
47551         AROPTIONS="-xar -o"
47552
47553     elif test "x$SGICC" = "xyes"; then
47554                 AR=$CXX
47555         AROPTIONS="-ar -o"
47556
47557     else
47558         if test -n "$ac_tool_prefix"; then
47559   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47560 set dummy ${ac_tool_prefix}ar; ac_word=$2
47561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47563 if test "${ac_cv_prog_AR+set}" = set; then
47564   echo $ECHO_N "(cached) $ECHO_C" >&6
47565 else
47566   if test -n "$AR"; then
47567   ac_cv_prog_AR="$AR" # Let the user override the test.
47568 else
47569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47570 for as_dir in $PATH
47571 do
47572   IFS=$as_save_IFS
47573   test -z "$as_dir" && as_dir=.
47574   for ac_exec_ext in '' $ac_executable_extensions; do
47575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47576     ac_cv_prog_AR="${ac_tool_prefix}ar"
47577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47578     break 2
47579   fi
47580 done
47581 done
47582 IFS=$as_save_IFS
47583
47584 fi
47585 fi
47586 AR=$ac_cv_prog_AR
47587 if test -n "$AR"; then
47588   { echo "$as_me:$LINENO: result: $AR" >&5
47589 echo "${ECHO_T}$AR" >&6; }
47590 else
47591   { echo "$as_me:$LINENO: result: no" >&5
47592 echo "${ECHO_T}no" >&6; }
47593 fi
47594
47595
47596 fi
47597 if test -z "$ac_cv_prog_AR"; then
47598   ac_ct_AR=$AR
47599   # Extract the first word of "ar", so it can be a program name with args.
47600 set dummy ar; ac_word=$2
47601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47604   echo $ECHO_N "(cached) $ECHO_C" >&6
47605 else
47606   if test -n "$ac_ct_AR"; then
47607   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47608 else
47609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47610 for as_dir in $PATH
47611 do
47612   IFS=$as_save_IFS
47613   test -z "$as_dir" && as_dir=.
47614   for ac_exec_ext in '' $ac_executable_extensions; do
47615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47616     ac_cv_prog_ac_ct_AR="ar"
47617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47618     break 2
47619   fi
47620 done
47621 done
47622 IFS=$as_save_IFS
47623
47624 fi
47625 fi
47626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47627 if test -n "$ac_ct_AR"; then
47628   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47629 echo "${ECHO_T}$ac_ct_AR" >&6; }
47630 else
47631   { echo "$as_me:$LINENO: result: no" >&5
47632 echo "${ECHO_T}no" >&6; }
47633 fi
47634
47635   if test "x$ac_ct_AR" = x; then
47636     AR="ar"
47637   else
47638     case $cross_compiling:$ac_tool_warned in
47639 yes:)
47640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47641 whose name does not start with the host triplet.  If you think this
47642 configuration is useful to you, please write to autoconf@gnu.org." >&5
47643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47644 whose name does not start with the host triplet.  If you think this
47645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47646 ac_tool_warned=yes ;;
47647 esac
47648     AR=$ac_ct_AR
47649   fi
47650 else
47651   AR="$ac_cv_prog_AR"
47652 fi
47653
47654         AROPTIONS=rcu
47655     fi
47656
47657
47658     if test -n "$ac_tool_prefix"; then
47659   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47660 set dummy ${ac_tool_prefix}strip; ac_word=$2
47661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47663 if test "${ac_cv_prog_STRIP+set}" = set; then
47664   echo $ECHO_N "(cached) $ECHO_C" >&6
47665 else
47666   if test -n "$STRIP"; then
47667   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47668 else
47669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47670 for as_dir in $PATH
47671 do
47672   IFS=$as_save_IFS
47673   test -z "$as_dir" && as_dir=.
47674   for ac_exec_ext in '' $ac_executable_extensions; do
47675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47676     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47678     break 2
47679   fi
47680 done
47681 done
47682 IFS=$as_save_IFS
47683
47684 fi
47685 fi
47686 STRIP=$ac_cv_prog_STRIP
47687 if test -n "$STRIP"; then
47688   { echo "$as_me:$LINENO: result: $STRIP" >&5
47689 echo "${ECHO_T}$STRIP" >&6; }
47690 else
47691   { echo "$as_me:$LINENO: result: no" >&5
47692 echo "${ECHO_T}no" >&6; }
47693 fi
47694
47695
47696 fi
47697 if test -z "$ac_cv_prog_STRIP"; then
47698   ac_ct_STRIP=$STRIP
47699   # Extract the first word of "strip", so it can be a program name with args.
47700 set dummy strip; ac_word=$2
47701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47704   echo $ECHO_N "(cached) $ECHO_C" >&6
47705 else
47706   if test -n "$ac_ct_STRIP"; then
47707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47708 else
47709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47710 for as_dir in $PATH
47711 do
47712   IFS=$as_save_IFS
47713   test -z "$as_dir" && as_dir=.
47714   for ac_exec_ext in '' $ac_executable_extensions; do
47715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47716     ac_cv_prog_ac_ct_STRIP="strip"
47717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47718     break 2
47719   fi
47720 done
47721 done
47722 IFS=$as_save_IFS
47723
47724 fi
47725 fi
47726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47727 if test -n "$ac_ct_STRIP"; then
47728   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47729 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47730 else
47731   { echo "$as_me:$LINENO: result: no" >&5
47732 echo "${ECHO_T}no" >&6; }
47733 fi
47734
47735   if test "x$ac_ct_STRIP" = x; then
47736     STRIP=":"
47737   else
47738     case $cross_compiling:$ac_tool_warned in
47739 yes:)
47740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47741 whose name does not start with the host triplet.  If you think this
47742 configuration is useful to you, please write to autoconf@gnu.org." >&5
47743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47744 whose name does not start with the host triplet.  If you think this
47745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47746 ac_tool_warned=yes ;;
47747 esac
47748     STRIP=$ac_ct_STRIP
47749   fi
47750 else
47751   STRIP="$ac_cv_prog_STRIP"
47752 fi
47753
47754     if test -n "$ac_tool_prefix"; then
47755   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47756 set dummy ${ac_tool_prefix}nm; ac_word=$2
47757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47759 if test "${ac_cv_prog_NM+set}" = set; then
47760   echo $ECHO_N "(cached) $ECHO_C" >&6
47761 else
47762   if test -n "$NM"; then
47763   ac_cv_prog_NM="$NM" # Let the user override the test.
47764 else
47765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47766 for as_dir in $PATH
47767 do
47768   IFS=$as_save_IFS
47769   test -z "$as_dir" && as_dir=.
47770   for ac_exec_ext in '' $ac_executable_extensions; do
47771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47772     ac_cv_prog_NM="${ac_tool_prefix}nm"
47773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47774     break 2
47775   fi
47776 done
47777 done
47778 IFS=$as_save_IFS
47779
47780 fi
47781 fi
47782 NM=$ac_cv_prog_NM
47783 if test -n "$NM"; then
47784   { echo "$as_me:$LINENO: result: $NM" >&5
47785 echo "${ECHO_T}$NM" >&6; }
47786 else
47787   { echo "$as_me:$LINENO: result: no" >&5
47788 echo "${ECHO_T}no" >&6; }
47789 fi
47790
47791
47792 fi
47793 if test -z "$ac_cv_prog_NM"; then
47794   ac_ct_NM=$NM
47795   # Extract the first word of "nm", so it can be a program name with args.
47796 set dummy nm; ac_word=$2
47797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47799 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47800   echo $ECHO_N "(cached) $ECHO_C" >&6
47801 else
47802   if test -n "$ac_ct_NM"; then
47803   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47804 else
47805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47806 for as_dir in $PATH
47807 do
47808   IFS=$as_save_IFS
47809   test -z "$as_dir" && as_dir=.
47810   for ac_exec_ext in '' $ac_executable_extensions; do
47811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47812     ac_cv_prog_ac_ct_NM="nm"
47813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47814     break 2
47815   fi
47816 done
47817 done
47818 IFS=$as_save_IFS
47819
47820 fi
47821 fi
47822 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47823 if test -n "$ac_ct_NM"; then
47824   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47825 echo "${ECHO_T}$ac_ct_NM" >&6; }
47826 else
47827   { echo "$as_me:$LINENO: result: no" >&5
47828 echo "${ECHO_T}no" >&6; }
47829 fi
47830
47831   if test "x$ac_ct_NM" = x; then
47832     NM=":"
47833   else
47834     case $cross_compiling:$ac_tool_warned in
47835 yes:)
47836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47837 whose name does not start with the host triplet.  If you think this
47838 configuration is useful to you, please write to autoconf@gnu.org." >&5
47839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47840 whose name does not start with the host triplet.  If you think this
47841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47842 ac_tool_warned=yes ;;
47843 esac
47844     NM=$ac_ct_NM
47845   fi
47846 else
47847   NM="$ac_cv_prog_NM"
47848 fi
47849
47850
47851             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47852 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47853     INSTALL_TEST_DIR=acbftest$$
47854     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47855     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47856         rmdir $INSTALL_TEST_DIR
47857                         INSTALL_DIR='$(INSTALL) -d'
47858         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47859 echo "${ECHO_T}$INSTALL -d" >&6; }
47860     else
47861         INSTALL_DIR="mkdir -p"
47862         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47863 echo "${ECHO_T}mkdir -p" >&6; }
47864     fi
47865
47866
47867     LDFLAGS_GUI=
47868     case ${BAKEFILE_HOST} in
47869         *-*-cygwin* | *-*-mingw32* )
47870         LDFLAGS_GUI="-mwindows"
47871     esac
47872
47873
47874     fi
47875
47876         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47877 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47878 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47879   echo $ECHO_N "(cached) $ECHO_C" >&6
47880 else
47881
47882         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47883                 egrep -s GNU > /dev/null); then
47884             bakefile_cv_prog_makeisgnu="yes"
47885         else
47886             bakefile_cv_prog_makeisgnu="no"
47887         fi
47888
47889 fi
47890 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47891 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47892
47893     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47894         IF_GNU_MAKE=""
47895     else
47896         IF_GNU_MAKE="#"
47897     fi
47898
47899
47900
47901     PLATFORM_UNIX=0
47902     PLATFORM_WIN32=0
47903     PLATFORM_MSDOS=0
47904     PLATFORM_MAC=0
47905     PLATFORM_MACOS=0
47906     PLATFORM_MACOSX=0
47907     PLATFORM_OS2=0
47908     PLATFORM_BEOS=0
47909
47910     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47911         case "${BAKEFILE_HOST}" in
47912             *-*-mingw32* )
47913                 PLATFORM_WIN32=1
47914             ;;
47915             *-pc-msdosdjgpp )
47916                 PLATFORM_MSDOS=1
47917             ;;
47918             *-pc-os2_emx | *-pc-os2-emx )
47919                 PLATFORM_OS2=1
47920             ;;
47921             *-*-darwin* )
47922                 PLATFORM_MAC=1
47923                 PLATFORM_MACOSX=1
47924             ;;
47925             *-*-beos* )
47926                 PLATFORM_BEOS=1
47927             ;;
47928             powerpc-apple-macos* )
47929                 PLATFORM_MAC=1
47930                 PLATFORM_MACOS=1
47931             ;;
47932             * )
47933                 PLATFORM_UNIX=1
47934             ;;
47935         esac
47936     else
47937         case "$BAKEFILE_FORCE_PLATFORM" in
47938             win32 )
47939                 PLATFORM_WIN32=1
47940             ;;
47941             msdos )
47942                 PLATFORM_MSDOS=1
47943             ;;
47944             os2 )
47945                 PLATFORM_OS2=1
47946             ;;
47947             darwin )
47948                 PLATFORM_MAC=1
47949                 PLATFORM_MACOSX=1
47950             ;;
47951             unix )
47952                 PLATFORM_UNIX=1
47953             ;;
47954             beos )
47955                 PLATFORM_BEOS=1
47956             ;;
47957             * )
47958                                             ;;
47959         esac
47960     fi
47961
47962
47963
47964
47965
47966
47967
47968
47969
47970
47971
47972     # Check whether --enable-omf was given.
47973 if test "${enable_omf+set}" = set; then
47974   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47975 fi
47976
47977
47978     case "${BAKEFILE_HOST}" in
47979       *-*-darwin* )
47980                         if test "x$GCC" = "xyes"; then
47981             CFLAGS="$CFLAGS -fno-common"
47982             CXXFLAGS="$CXXFLAGS -fno-common"
47983         fi
47984         if test "x$XLCC" = "xyes"; then
47985             CFLAGS="$CFLAGS -qnocommon"
47986             CXXFLAGS="$CXXFLAGS -qnocommon"
47987         fi
47988         ;;
47989
47990       *-pc-os2_emx | *-pc-os2-emx )
47991         if test "x$bk_os2_use_omf" = "xyes" ; then
47992             AR=emxomfar
47993             RANLIB=:
47994             LDFLAGS="-Zomf $LDFLAGS"
47995             CFLAGS="-Zomf $CFLAGS"
47996             CXXFLAGS="-Zomf $CXXFLAGS"
47997             OS2_LIBEXT="lib"
47998         else
47999             OS2_LIBEXT="a"
48000         fi
48001         ;;
48002
48003       i*86-*-beos* )
48004         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48005         ;;
48006     esac
48007
48008
48009     SO_SUFFIX="so"
48010     SO_SUFFIX_MODULE="so"
48011     EXEEXT=""
48012     LIBPREFIX="lib"
48013     LIBEXT=".a"
48014     DLLPREFIX="lib"
48015     DLLPREFIX_MODULE=""
48016     DLLIMP_SUFFIX=""
48017     dlldir="$libdir"
48018
48019     case "${BAKEFILE_HOST}" in
48020         *-hp-hpux* )
48021             SO_SUFFIX="sl"
48022             SO_SUFFIX_MODULE="sl"
48023         ;;
48024         *-*-aix* )
48025                                                                         SO_SUFFIX="a"
48026             SO_SUFFIX_MODULE="a"
48027         ;;
48028         *-*-cygwin* )
48029             SO_SUFFIX="dll"
48030             SO_SUFFIX_MODULE="dll"
48031             DLLIMP_SUFFIX="dll.a"
48032             EXEEXT=".exe"
48033             DLLPREFIX="cyg"
48034             dlldir="$bindir"
48035         ;;
48036         *-*-mingw32* )
48037             SO_SUFFIX="dll"
48038             SO_SUFFIX_MODULE="dll"
48039             DLLIMP_SUFFIX="dll.a"
48040             EXEEXT=".exe"
48041             DLLPREFIX=""
48042             dlldir="$bindir"
48043         ;;
48044         *-pc-msdosdjgpp )
48045             EXEEXT=".exe"
48046             DLLPREFIX=""
48047             dlldir="$bindir"
48048         ;;
48049         *-pc-os2_emx | *-pc-os2-emx )
48050             SO_SUFFIX="dll"
48051             SO_SUFFIX_MODULE="dll"
48052             DLLIMP_SUFFIX=$OS2_LIBEXT
48053             EXEEXT=".exe"
48054             DLLPREFIX=""
48055             LIBPREFIX=""
48056             LIBEXT=".$OS2_LIBEXT"
48057             dlldir="$bindir"
48058         ;;
48059         *-*-darwin* )
48060             SO_SUFFIX="dylib"
48061             SO_SUFFIX_MODULE="bundle"
48062         ;;
48063     esac
48064
48065     if test "x$DLLIMP_SUFFIX" = "x" ; then
48066         DLLIMP_SUFFIX="$SO_SUFFIX"
48067     fi
48068
48069
48070
48071
48072
48073
48074
48075
48076
48077
48078
48079
48080         PIC_FLAG=""
48081     if test "x$GCC" = "xyes"; then
48082                 PIC_FLAG="-fPIC"
48083     fi
48084
48085         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48086     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48087     WINDOWS_IMPLIB=0
48088
48089     case "${BAKEFILE_HOST}" in
48090       *-hp-hpux* )
48091                 if test "x$GCC" != "xyes"; then
48092                         LDFLAGS="$LDFLAGS -L/usr/lib"
48093
48094             SHARED_LD_CC="${CC} -b -o"
48095             SHARED_LD_CXX="${CXX} -b -o"
48096             PIC_FLAG="+Z"
48097         fi
48098       ;;
48099
48100       *-*-linux* )
48101         if test "$INTELCC" = "yes"; then
48102             PIC_FLAG="-KPIC"
48103         elif test "x$SUNCXX" = "xyes"; then
48104             SHARED_LD_CC="${CC} -G -o"
48105             SHARED_LD_CXX="${CXX} -G -o"
48106             PIC_FLAG="-KPIC"
48107         fi
48108       ;;
48109
48110       *-*-solaris2* )
48111         if test "x$SUNCXX" = xyes ; then
48112             SHARED_LD_CC="${CC} -G -o"
48113             SHARED_LD_CXX="${CXX} -G -o"
48114             PIC_FLAG="-KPIC"
48115         fi
48116       ;;
48117
48118       *-*-darwin* )
48119
48120 D='$'
48121 cat <<EOF >shared-ld-sh
48122 #!/bin/sh
48123 #-----------------------------------------------------------------------------
48124 #-- Name:        distrib/mac/shared-ld-sh
48125 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48126 #-- Author:      Gilles Depeyrot
48127 #-- Copyright:   (c) 2002 Gilles Depeyrot
48128 #-- Licence:     any use permitted
48129 #-----------------------------------------------------------------------------
48130
48131 verbose=0
48132 args=""
48133 objects=""
48134 linking_flag="-dynamiclib"
48135 ldargs="-r -keep_private_externs -nostdlib"
48136
48137 if test "x${D}CXX" = "x"; then
48138     CXX="c++"
48139 fi
48140
48141 while test ${D}# -gt 0; do
48142     case ${D}1 in
48143
48144        -v)
48145         verbose=1
48146         ;;
48147
48148        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48149         # collect these options and values
48150         args="${D}{args} ${D}1 ${D}2"
48151         shift
48152         ;;
48153
48154        -arch|-isysroot)
48155         # collect these options and values
48156         ldargs="${D}{ldargs} ${D}1 ${D}2"
48157         shift
48158         ;;
48159
48160        -s|-Wl,*)
48161         # collect these load args
48162         ldargs="${D}{ldargs} ${D}1"
48163         ;;
48164
48165        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48166         # collect these options
48167         args="${D}{args} ${D}1"
48168         ;;
48169
48170        -dynamiclib|-bundle)
48171         linking_flag="${D}1"
48172         ;;
48173
48174        -*)
48175         echo "shared-ld: unhandled option '${D}1'"
48176         exit 1
48177         ;;
48178
48179         *.o | *.a | *.dylib)
48180         # collect object files
48181         objects="${D}{objects} ${D}1"
48182         ;;
48183
48184         *)
48185         echo "shared-ld: unhandled argument '${D}1'"
48186         exit 1
48187         ;;
48188
48189     esac
48190     shift
48191 done
48192
48193 status=0
48194
48195 #
48196 # Link one module containing all the others
48197 #
48198 if test ${D}{verbose} = 1; then
48199     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48200 fi
48201 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48202 status=${D}?
48203
48204 #
48205 # Link the shared library from the single module created, but only if the
48206 # previous command didn't fail:
48207 #
48208 if test ${D}{status} = 0; then
48209     if test ${D}{verbose} = 1; then
48210         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48211     fi
48212     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48213     status=${D}?
48214 fi
48215
48216 #
48217 # Remove intermediate module
48218 #
48219 rm -f master.${D}${D}.o
48220
48221 exit ${D}status
48222 EOF
48223
48224         chmod +x shared-ld-sh
48225
48226         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48227         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48228
48229
48230                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48231 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48232 if test "${bakefile_cv_gcc31+set}" = set; then
48233   echo $ECHO_N "(cached) $ECHO_C" >&6
48234 else
48235
48236            cat >conftest.$ac_ext <<_ACEOF
48237 /* confdefs.h.  */
48238 _ACEOF
48239 cat confdefs.h >>conftest.$ac_ext
48240 cat >>conftest.$ac_ext <<_ACEOF
48241 /* end confdefs.h.  */
48242
48243 int
48244 main ()
48245 {
48246
48247                    #if (__GNUC__ < 3) || \
48248                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48249                        This is old gcc
48250                    #endif
48251
48252   ;
48253   return 0;
48254 }
48255 _ACEOF
48256 rm -f conftest.$ac_objext
48257 if { (ac_try="$ac_compile"
48258 case "(($ac_try" in
48259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48260   *) ac_try_echo=$ac_try;;
48261 esac
48262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48263   (eval "$ac_compile") 2>conftest.er1
48264   ac_status=$?
48265   grep -v '^ *+' conftest.er1 >conftest.err
48266   rm -f conftest.er1
48267   cat conftest.err >&5
48268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48269   (exit $ac_status); } && {
48270          test -z "$ac_c_werror_flag" ||
48271          test ! -s conftest.err
48272        } && test -s conftest.$ac_objext; then
48273
48274                    bakefile_cv_gcc31=yes
48275
48276 else
48277   echo "$as_me: failed program was:" >&5
48278 sed 's/^/| /' conftest.$ac_ext >&5
48279
48280
48281                    bakefile_cv_gcc31=no
48282
48283
48284 fi
48285
48286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48287
48288 fi
48289 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48290 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48291         if test "$bakefile_cv_gcc31" = "no"; then
48292                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48293             SHARED_LD_CXX="$SHARED_LD_CC"
48294         else
48295                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48296             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48297         fi
48298
48299         if test "x$GCC" == "xyes"; then
48300             PIC_FLAG="-dynamic -fPIC"
48301         fi
48302         if test "x$XLCC" = "xyes"; then
48303             PIC_FLAG="-dynamic -DPIC"
48304         fi
48305       ;;
48306
48307       *-*-aix* )
48308         if test "x$GCC" = "xyes"; then
48309                                                             PIC_FLAG=""
48310
48311                                                                                     case "${BAKEFILE_HOST}" in
48312                 *-*-aix5* )
48313                     LD_EXPFULL="-Wl,-bexpfull"
48314                     ;;
48315             esac
48316
48317             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48318             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48319         else
48320                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48321 set dummy makeC++SharedLib; ac_word=$2
48322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48324 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48325   echo $ECHO_N "(cached) $ECHO_C" >&6
48326 else
48327   if test -n "$AIX_CXX_LD"; then
48328   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48329 else
48330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48331 for as_dir in $PATH
48332 do
48333   IFS=$as_save_IFS
48334   test -z "$as_dir" && as_dir=.
48335   for ac_exec_ext in '' $ac_executable_extensions; do
48336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48337     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48339     break 2
48340   fi
48341 done
48342 done
48343 IFS=$as_save_IFS
48344
48345   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48346 fi
48347 fi
48348 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48349 if test -n "$AIX_CXX_LD"; then
48350   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48351 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48352 else
48353   { echo "$as_me:$LINENO: result: no" >&5
48354 echo "${ECHO_T}no" >&6; }
48355 fi
48356
48357
48358             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48359             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48360         fi
48361       ;;
48362
48363       *-*-beos* )
48364                         SHARED_LD_CC="${LD} -nostart -o"
48365         SHARED_LD_CXX="${LD} -nostart -o"
48366       ;;
48367
48368       *-*-irix* )
48369                 if test "x$GCC" != "xyes"; then
48370             PIC_FLAG="-KPIC"
48371         fi
48372       ;;
48373
48374       *-*-cygwin* | *-*-mingw32* )
48375         PIC_FLAG=""
48376         SHARED_LD_CC="\$(CC) -shared -o"
48377         SHARED_LD_CXX="\$(CXX) -shared -o"
48378         WINDOWS_IMPLIB=1
48379       ;;
48380
48381       *-pc-os2_emx | *-pc-os2-emx )
48382         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48383         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48384         PIC_FLAG=""
48385
48386 D='$'
48387 cat <<EOF >dllar.sh
48388 #!/bin/sh
48389 #
48390 # dllar - a tool to build both a .dll and an .a file
48391 # from a set of object (.o) files for EMX/OS2.
48392 #
48393 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48394 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48395 #
48396 #  This script will accept a set of files on the command line.
48397 #  All the public symbols from the .o files will be exported into
48398 #  a .DEF file, then linker will be run (through gcc) against them to
48399 #  build a shared library consisting of all given .o files. All libraries
48400 #  (.a) will be first decompressed into component .o files then act as
48401 #  described above. You can optionally give a description (-d "description")
48402 #  which will be put into .DLL. To see the list of accepted options (as well
48403 #  as command-line format) simply run this program without options. The .DLL
48404 #  is built to be imported by name (there is no guarantee that new versions
48405 #  of the library you build will have same ordinals for same symbols).
48406 #
48407 #  dllar is free software; you can redistribute it and/or modify
48408 #  it under the terms of the GNU General Public License as published by
48409 #  the Free Software Foundation; either version 2, or (at your option)
48410 #  any later version.
48411 #
48412 #  dllar is distributed in the hope that it will be useful,
48413 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48414 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48415 #  GNU General Public License for more details.
48416 #
48417 #  You should have received a copy of the GNU General Public License
48418 #  along with dllar; see the file COPYING.  If not, write to the Free
48419 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48420 #  02111-1307, USA.
48421
48422 # To successfuly run this program you will need:
48423 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48424 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48425 #  - gcc
48426 #    (used to build the .dll)
48427 #  - emxexp
48428 #    (used to create .def file from .o files)
48429 #  - emximp
48430 #    (used to create .a file from .def file)
48431 #  - GNU text utilites (cat, sort, uniq)
48432 #    used to process emxexp output
48433 #  - GNU file utilities (mv, rm)
48434 #  - GNU sed
48435 #  - lxlite (optional, see flag below)
48436 #    (used for general .dll cleanup)
48437 #
48438
48439 flag_USE_LXLITE=1;
48440
48441 #
48442 # helper functions
48443 # basnam, variant of basename, which does _not_ remove the path, _iff_
48444 #                              second argument (suffix to remove) is given
48445 basnam(){
48446     case ${D}# in
48447     1)
48448         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48449         ;;
48450     2)
48451         echo ${D}1 | sed 's/'${D}2'${D}//'
48452         ;;
48453     *)
48454         echo "error in basnam ${D}*"
48455         exit 8
48456         ;;
48457     esac
48458 }
48459
48460 # Cleanup temporary files and output
48461 CleanUp() {
48462     cd ${D}curDir
48463     for i in ${D}inputFiles ; do
48464         case ${D}i in
48465         *!)
48466             rm -rf \`basnam ${D}i !\`
48467             ;;
48468         *)
48469             ;;
48470         esac
48471     done
48472
48473     # Kill result in case of failure as there is just to many stupid make/nmake
48474     # things out there which doesn't do this.
48475     if [ ${D}# -eq 0 ]; then
48476         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48477     fi
48478 }
48479
48480 # Print usage and exit script with rc=1.
48481 PrintHelp() {
48482  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48483  echo '       [-name-mangler-script script.sh]'
48484  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48485  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48486  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48487  echo '       [*.o] [*.a]'
48488  echo '*> "output_file" should have no extension.'
48489  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48490  echo '   The import library name is derived from this and is set to "name".a,'
48491  echo '   unless overridden by -import'
48492  echo '*> "importlib_name" should have no extension.'
48493  echo '   If it has the .o, or .a extension, it is automatically removed.'
48494  echo '   This name is used as the import library name and may be longer and'
48495  echo '   more descriptive than the DLL name which has to follow the old '
48496  echo '   8.3 convention of FAT.'
48497  echo '*> "script.sh may be given to override the output_file name by a'
48498  echo '   different name. It is mainly useful if the regular make process'
48499  echo '   of some package does not take into account OS/2 restriction of'
48500  echo '   DLL name lengths. It takes the importlib name as input and is'
48501  echo '   supposed to procude a shorter name as output. The script should'
48502  echo '   expect to get importlib_name without extension and should produce'
48503  echo '   a (max.) 8 letter name without extension.'
48504  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48505  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48506  echo '   These flags will be put at the start of GCC command line.'
48507  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48508  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48509  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48510  echo '   If the last character of a symbol is "*", all symbols beginning'
48511  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48512  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48513  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48514  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48515  echo '   C runtime DLLs.'
48516  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48517  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48518  echo '   unchanged to GCC at the end of command line.'
48519  echo '*> If you create a DLL from a library and you do not specify -o,'
48520  echo '   the basename for DLL and import library will be set to library name,'
48521  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48522  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48523  echo '   library will be renamed into gcc_s.a.'
48524  echo '--------'
48525  echo 'Example:'
48526  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48527  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48528  CleanUp
48529  exit 1
48530 }
48531
48532 # Execute a command.
48533 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48534 # @Uses    Whatever CleanUp() uses.
48535 doCommand() {
48536     echo "${D}*"
48537     eval ${D}*
48538     rcCmd=${D}?
48539
48540     if [ ${D}rcCmd -ne 0 ]; then
48541         echo "command failed, exit code="${D}rcCmd
48542         CleanUp
48543         exit ${D}rcCmd
48544     fi
48545 }
48546
48547 # main routine
48548 # setup globals
48549 cmdLine=${D}*
48550 outFile=""
48551 outimpFile=""
48552 inputFiles=""
48553 renameScript=""
48554 description=""
48555 CC=gcc.exe
48556 CFLAGS="-s -Zcrtdll"
48557 EXTRA_CFLAGS=""
48558 EXPORT_BY_ORDINALS=0
48559 exclude_symbols=""
48560 library_flags=""
48561 curDir=\`pwd\`
48562 curDirS=curDir
48563 case ${D}curDirS in
48564 */)
48565   ;;
48566 *)
48567   curDirS=${D}{curDirS}"/"
48568   ;;
48569 esac
48570 # Parse commandline
48571 libsToLink=0
48572 omfLinking=0
48573 while [ ${D}1 ]; do
48574     case ${D}1 in
48575     -ord*)
48576         EXPORT_BY_ORDINALS=1;
48577         ;;
48578     -o*)
48579         shift
48580         outFile=${D}1
48581         ;;
48582     -i*)
48583         shift
48584         outimpFile=${D}1
48585         ;;
48586     -name-mangler-script)
48587         shift
48588         renameScript=${D}1
48589         ;;
48590     -d*)
48591         shift
48592         description=${D}1
48593         ;;
48594     -f*)
48595         shift
48596         CFLAGS=${D}1
48597         ;;
48598     -c*)
48599         shift
48600         CC=${D}1
48601         ;;
48602     -h*)
48603         PrintHelp
48604         ;;
48605     -ex*)
48606         shift
48607         exclude_symbols=${D}{exclude_symbols}${D}1" "
48608         ;;
48609     -libf*)
48610         shift
48611         library_flags=${D}{library_flags}${D}1" "
48612         ;;
48613     -nocrt*)
48614         CFLAGS="-s"
48615         ;;
48616     -nolxl*)
48617         flag_USE_LXLITE=0
48618         ;;
48619     -* | /*)
48620         case ${D}1 in
48621         -L* | -l*)
48622             libsToLink=1
48623             ;;
48624         -Zomf)
48625             omfLinking=1
48626             ;;
48627         *)
48628             ;;
48629         esac
48630         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48631         ;;
48632     *.dll)
48633         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48634         if [ ${D}omfLinking -eq 1 ]; then
48635             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48636         else
48637             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48638         fi
48639         ;;
48640     *)
48641         found=0;
48642         if [ ${D}libsToLink -ne 0 ]; then
48643             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48644         else
48645             for file in ${D}1 ; do
48646                 if [ -f ${D}file ]; then
48647                     inputFiles="${D}{inputFiles} ${D}file"
48648                     found=1
48649                 fi
48650             done
48651             if [ ${D}found -eq 0 ]; then
48652                 echo "ERROR: No file(s) found: "${D}1
48653                 exit 8
48654             fi
48655         fi
48656       ;;
48657     esac
48658     shift
48659 done # iterate cmdline words
48660
48661 #
48662 if [ -z "${D}inputFiles" ]; then
48663     echo "dllar: no input files"
48664     PrintHelp
48665 fi
48666
48667 # Now extract all .o files from .a files
48668 newInputFiles=""
48669 for file in ${D}inputFiles ; do
48670     case ${D}file in
48671     *.a | *.lib)
48672         case ${D}file in
48673         *.a)
48674             suffix=".a"
48675             AR="ar"
48676             ;;
48677         *.lib)
48678             suffix=".lib"
48679             AR="emxomfar"
48680             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48681             ;;
48682         *)
48683             ;;
48684         esac
48685         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48686         mkdir ${D}dirname
48687         if [ ${D}? -ne 0 ]; then
48688             echo "Failed to create subdirectory ./${D}dirname"
48689             CleanUp
48690             exit 8;
48691         fi
48692         # Append '!' to indicate archive
48693         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48694         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48695         cd ${D}curDir
48696         found=0;
48697         for subfile in ${D}dirname/*.o* ; do
48698             if [ -f ${D}subfile ]; then
48699                 found=1
48700                 if [ -s ${D}subfile ]; then
48701                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48702                     newInputFiles="${D}newInputFiles ${D}subfile"
48703                 fi
48704             fi
48705         done
48706         if [ ${D}found -eq 0 ]; then
48707             echo "WARNING: there are no files in archive \\'${D}file\\'"
48708         fi
48709         ;;
48710     *)
48711         newInputFiles="${D}{newInputFiles} ${D}file"
48712         ;;
48713     esac
48714 done
48715 inputFiles="${D}newInputFiles"
48716
48717 # Output filename(s).
48718 do_backup=0;
48719 if [ -z ${D}outFile ]; then
48720     do_backup=1;
48721     set outFile ${D}inputFiles; outFile=${D}2
48722 fi
48723
48724 # If it is an archive, remove the '!' and the '_%' suffixes
48725 case ${D}outFile in
48726 *_%!)
48727     outFile=\`basnam ${D}outFile _%!\`
48728     ;;
48729 *)
48730     ;;
48731 esac
48732 case ${D}outFile in
48733 *.dll)
48734     outFile=\`basnam ${D}outFile .dll\`
48735     ;;
48736 *.DLL)
48737     outFile=\`basnam ${D}outFile .DLL\`
48738     ;;
48739 *.o)
48740     outFile=\`basnam ${D}outFile .o\`
48741     ;;
48742 *.obj)
48743     outFile=\`basnam ${D}outFile .obj\`
48744     ;;
48745 *.a)
48746     outFile=\`basnam ${D}outFile .a\`
48747     ;;
48748 *.lib)
48749     outFile=\`basnam ${D}outFile .lib\`
48750     ;;
48751 *)
48752     ;;
48753 esac
48754 case ${D}outimpFile in
48755 *.a)
48756     outimpFile=\`basnam ${D}outimpFile .a\`
48757     ;;
48758 *.lib)
48759     outimpFile=\`basnam ${D}outimpFile .lib\`
48760     ;;
48761 *)
48762     ;;
48763 esac
48764 if [ -z ${D}outimpFile ]; then
48765     outimpFile=${D}outFile
48766 fi
48767 defFile="${D}{outFile}.def"
48768 arcFile="${D}{outimpFile}.a"
48769 arcFile2="${D}{outimpFile}.lib"
48770
48771 #create ${D}dllFile as something matching 8.3 restrictions,
48772 if [ -z ${D}renameScript ] ; then
48773     dllFile="${D}outFile"
48774 else
48775     dllFile=\`${D}renameScript ${D}outimpFile\`
48776 fi
48777
48778 if [ ${D}do_backup -ne 0 ] ; then
48779     if [ -f ${D}arcFile ] ; then
48780         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48781     fi
48782     if [ -f ${D}arcFile2 ] ; then
48783         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48784     fi
48785 fi
48786
48787 # Extract public symbols from all the object files.
48788 tmpdefFile=${D}{defFile}_%
48789 rm -f ${D}tmpdefFile
48790 for file in ${D}inputFiles ; do
48791     case ${D}file in
48792     *!)
48793         ;;
48794     *)
48795         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48796         ;;
48797     esac
48798 done
48799
48800 # Create the def file.
48801 rm -f ${D}defFile
48802 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48803 dllFile="${D}{dllFile}.dll"
48804 if [ ! -z ${D}description ]; then
48805     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48806 fi
48807 echo "EXPORTS" >> ${D}defFile
48808
48809 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48810 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48811
48812 # Checks if the export is ok or not.
48813 for word in ${D}exclude_symbols; do
48814     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48815     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48816 done
48817
48818
48819 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48820     sed "=" < ${D}tmpdefFile | \\
48821     sed '
48822       N
48823       : loop
48824       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48825       t loop
48826     ' > ${D}{tmpdefFile}%
48827     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48828 else
48829     rm -f ${D}{tmpdefFile}%
48830 fi
48831 cat ${D}tmpdefFile >> ${D}defFile
48832 rm -f ${D}tmpdefFile
48833
48834 # Do linking, create implib, and apply lxlite.
48835 gccCmdl="";
48836 for file in ${D}inputFiles ; do
48837     case ${D}file in
48838     *!)
48839         ;;
48840     *)
48841         gccCmdl="${D}gccCmdl ${D}file"
48842         ;;
48843     esac
48844 done
48845 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48846 touch "${D}{outFile}.dll"
48847
48848 doCommand "emximp -o ${D}arcFile ${D}defFile"
48849 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48850     add_flags="";
48851     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48852         add_flags="-ynd"
48853     fi
48854     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48855 fi
48856 doCommand "emxomf -s -l ${D}arcFile"
48857
48858 # Successful exit.
48859 CleanUp 1
48860 exit 0
48861 EOF
48862
48863         chmod +x dllar.sh
48864       ;;
48865
48866       powerpc-apple-macos* | \
48867       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48868       *-*-mirbsd* | \
48869       *-*-sunos4* | \
48870       *-*-osf* | \
48871       *-*-dgux5* | \
48872       *-*-sysv5* | \
48873       *-pc-msdosdjgpp )
48874               ;;
48875
48876       *)
48877         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48878 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48879    { (exit 1); exit 1; }; }
48880     esac
48881
48882     if test "x$PIC_FLAG" != "x" ; then
48883         PIC_FLAG="$PIC_FLAG -DPIC"
48884     fi
48885
48886     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48887         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48888     fi
48889     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48890         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48891     fi
48892
48893
48894
48895
48896
48897
48898
48899
48900
48901     USE_SOVERSION=0
48902     USE_SOVERLINUX=0
48903     USE_SOVERSOLARIS=0
48904     USE_SOVERCYGWIN=0
48905     USE_SOSYMLINKS=0
48906     USE_MACVERSION=0
48907     SONAME_FLAG=
48908
48909     case "${BAKEFILE_HOST}" in
48910       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
48911       *-*-k*bsd*-gnu | *-*-mirbsd* )
48912         if test "x$SUNCXX" = "xyes"; then
48913             SONAME_FLAG="-h "
48914         else
48915             SONAME_FLAG="-Wl,-soname,"
48916         fi
48917         USE_SOVERSION=1
48918         USE_SOVERLINUX=1
48919         USE_SOSYMLINKS=1
48920       ;;
48921
48922       *-*-solaris2* )
48923         SONAME_FLAG="-h "
48924         USE_SOVERSION=1
48925         USE_SOVERSOLARIS=1
48926         USE_SOSYMLINKS=1
48927       ;;
48928
48929       *-*-darwin* )
48930         USE_MACVERSION=1
48931         USE_SOVERSION=1
48932         USE_SOSYMLINKS=1
48933       ;;
48934
48935       *-*-cygwin* )
48936         USE_SOVERSION=1
48937         USE_SOVERCYGWIN=1
48938       ;;
48939     esac
48940
48941
48942
48943
48944
48945
48946
48947
48948
48949
48950     # Check whether --enable-dependency-tracking was given.
48951 if test "${enable_dependency_tracking+set}" = set; then
48952   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48953 fi
48954
48955
48956     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48957 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48958
48959     BK_DEPS=""
48960     if test "x$bk_use_trackdeps" = "xno" ; then
48961         DEPS_TRACKING=0
48962         { echo "$as_me:$LINENO: result: disabled" >&5
48963 echo "${ECHO_T}disabled" >&6; }
48964     else
48965         DEPS_TRACKING=1
48966
48967         if test "x$GCC" = "xyes"; then
48968             DEPSMODE=gcc
48969             case "${BAKEFILE_HOST}" in
48970                 *-*-darwin* )
48971                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48972                 ;;
48973                 * )
48974                     DEPSFLAG="-MMD"
48975                 ;;
48976             esac
48977             { echo "$as_me:$LINENO: result: gcc" >&5
48978 echo "${ECHO_T}gcc" >&6; }
48979         elif test "x$MWCC" = "xyes"; then
48980             DEPSMODE=mwcc
48981             DEPSFLAG="-MM"
48982             { echo "$as_me:$LINENO: result: mwcc" >&5
48983 echo "${ECHO_T}mwcc" >&6; }
48984         elif test "x$SUNCC" = "xyes"; then
48985             DEPSMODE=unixcc
48986             DEPSFLAG="-xM1"
48987             { echo "$as_me:$LINENO: result: Sun cc" >&5
48988 echo "${ECHO_T}Sun cc" >&6; }
48989         elif test "x$SGICC" = "xyes"; then
48990             DEPSMODE=unixcc
48991             DEPSFLAG="-M"
48992             { echo "$as_me:$LINENO: result: SGI cc" >&5
48993 echo "${ECHO_T}SGI cc" >&6; }
48994         elif test "x$HPCC" = "xyes"; then
48995             DEPSMODE=unixcc
48996             DEPSFLAG="+make"
48997             { echo "$as_me:$LINENO: result: HP cc" >&5
48998 echo "${ECHO_T}HP cc" >&6; }
48999         elif test "x$COMPAQCC" = "xyes"; then
49000             DEPSMODE=gcc
49001             DEPSFLAG="-MD"
49002             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49003 echo "${ECHO_T}Compaq cc" >&6; }
49004         else
49005             DEPS_TRACKING=0
49006             { echo "$as_me:$LINENO: result: none" >&5
49007 echo "${ECHO_T}none" >&6; }
49008         fi
49009
49010         if test $DEPS_TRACKING = 1 ; then
49011
49012 D='$'
49013 cat <<EOF >bk-deps
49014 #!/bin/sh
49015
49016 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49017 # script. It is used to track C/C++ files dependencies in portable way.
49018 #
49019 # Permission is given to use this file in any way.
49020
49021 DEPSMODE=${DEPSMODE}
49022 DEPSFLAG="${DEPSFLAG}"
49023 DEPSDIRBASE=.deps
49024
49025 if test ${D}DEPSMODE = gcc ; then
49026     ${D}* ${D}{DEPSFLAG}
49027     status=${D}?
49028
49029     # determine location of created files:
49030     while test ${D}# -gt 0; do
49031         case "${D}1" in
49032             -o )
49033                 shift
49034                 objfile=${D}1
49035             ;;
49036             -* )
49037             ;;
49038             * )
49039                 srcfile=${D}1
49040             ;;
49041         esac
49042         shift
49043     done
49044     objfilebase=\`basename ${D}objfile\`
49045     builddir=\`dirname ${D}objfile\`
49046     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49047     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49048     depsdir=${D}builddir/${D}DEPSDIRBASE
49049     mkdir -p ${D}depsdir
49050
49051     # if the compiler failed, we're done:
49052     if test ${D}{status} != 0 ; then
49053         rm -f ${D}depfile
49054         exit ${D}{status}
49055     fi
49056
49057     # move created file to the location we want it in:
49058     if test -f ${D}depfile ; then
49059         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49060         rm -f ${D}depfile
49061     else
49062         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49063         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49064         if test ! -f ${D}depfile ; then
49065             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49066             depfile="${D}objfile.d"
49067         fi
49068         if test -f ${D}depfile ; then
49069             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49070             rm -f ${D}depfile
49071         fi
49072     fi
49073     exit 0
49074
49075 elif test ${D}DEPSMODE = mwcc ; then
49076     ${D}* || exit ${D}?
49077     # Run mwcc again with -MM and redirect into the dep file we want
49078     # NOTE: We can't use shift here because we need ${D}* to be valid
49079     prevarg=
49080     for arg in ${D}* ; do
49081         if test "${D}prevarg" = "-o"; then
49082             objfile=${D}arg
49083         else
49084             case "${D}arg" in
49085                 -* )
49086                 ;;
49087                 * )
49088                     srcfile=${D}arg
49089                 ;;
49090             esac
49091         fi
49092         prevarg="${D}arg"
49093     done
49094
49095     objfilebase=\`basename ${D}objfile\`
49096     builddir=\`dirname ${D}objfile\`
49097     depsdir=${D}builddir/${D}DEPSDIRBASE
49098     mkdir -p ${D}depsdir
49099
49100     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49101     exit 0
49102
49103 elif test ${D}DEPSMODE = unixcc; then
49104     ${D}* || exit ${D}?
49105     # Run compiler again with deps flag and redirect into the dep file.
49106     # It doesn't work if the '-o FILE' option is used, but without it the
49107     # dependency file will contain the wrong name for the object. So it is
49108     # removed from the command line, and the dep file is fixed with sed.
49109     cmd=""
49110     while test ${D}# -gt 0; do
49111         case "${D}1" in
49112             -o )
49113                 shift
49114                 objfile=${D}1
49115             ;;
49116             * )
49117                 eval arg${D}#=\\${D}1
49118                 cmd="${D}cmd \\${D}arg${D}#"
49119             ;;
49120         esac
49121         shift
49122     done
49123
49124     objfilebase=\`basename ${D}objfile\`
49125     builddir=\`dirname ${D}objfile\`
49126     depsdir=${D}builddir/${D}DEPSDIRBASE
49127     mkdir -p ${D}depsdir
49128
49129     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfilebase}.d
49130     exit 0
49131
49132 else
49133     ${D}*
49134     exit ${D}?
49135 fi
49136 EOF
49137
49138             chmod +x bk-deps
49139                                     BK_DEPS="`pwd`/bk-deps"
49140         fi
49141     fi
49142
49143
49144
49145
49146
49147     case ${BAKEFILE_HOST} in
49148         *-*-cygwin* | *-*-mingw32* )
49149                         if test -n "$ac_tool_prefix"; then
49150   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49151 set dummy ${ac_tool_prefix}windres; ac_word=$2
49152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49154 if test "${ac_cv_prog_WINDRES+set}" = set; then
49155   echo $ECHO_N "(cached) $ECHO_C" >&6
49156 else
49157   if test -n "$WINDRES"; then
49158   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49159 else
49160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49161 for as_dir in $PATH
49162 do
49163   IFS=$as_save_IFS
49164   test -z "$as_dir" && as_dir=.
49165   for ac_exec_ext in '' $ac_executable_extensions; do
49166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49167     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49169     break 2
49170   fi
49171 done
49172 done
49173 IFS=$as_save_IFS
49174
49175 fi
49176 fi
49177 WINDRES=$ac_cv_prog_WINDRES
49178 if test -n "$WINDRES"; then
49179   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49180 echo "${ECHO_T}$WINDRES" >&6; }
49181 else
49182   { echo "$as_me:$LINENO: result: no" >&5
49183 echo "${ECHO_T}no" >&6; }
49184 fi
49185
49186
49187 fi
49188 if test -z "$ac_cv_prog_WINDRES"; then
49189   ac_ct_WINDRES=$WINDRES
49190   # Extract the first word of "windres", so it can be a program name with args.
49191 set dummy windres; ac_word=$2
49192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49194 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49195   echo $ECHO_N "(cached) $ECHO_C" >&6
49196 else
49197   if test -n "$ac_ct_WINDRES"; then
49198   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49199 else
49200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49201 for as_dir in $PATH
49202 do
49203   IFS=$as_save_IFS
49204   test -z "$as_dir" && as_dir=.
49205   for ac_exec_ext in '' $ac_executable_extensions; do
49206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49207     ac_cv_prog_ac_ct_WINDRES="windres"
49208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49209     break 2
49210   fi
49211 done
49212 done
49213 IFS=$as_save_IFS
49214
49215 fi
49216 fi
49217 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49218 if test -n "$ac_ct_WINDRES"; then
49219   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49220 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49221 else
49222   { echo "$as_me:$LINENO: result: no" >&5
49223 echo "${ECHO_T}no" >&6; }
49224 fi
49225
49226   if test "x$ac_ct_WINDRES" = x; then
49227     WINDRES=""
49228   else
49229     case $cross_compiling:$ac_tool_warned in
49230 yes:)
49231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49232 whose name does not start with the host triplet.  If you think this
49233 configuration is useful to you, please write to autoconf@gnu.org." >&5
49234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49235 whose name does not start with the host triplet.  If you think this
49236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49237 ac_tool_warned=yes ;;
49238 esac
49239     WINDRES=$ac_ct_WINDRES
49240   fi
49241 else
49242   WINDRES="$ac_cv_prog_WINDRES"
49243 fi
49244
49245          ;;
49246
49247       *-*-darwin* | powerpc-apple-macos* )
49248             # Extract the first word of "Rez", so it can be a program name with args.
49249 set dummy Rez; ac_word=$2
49250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49252 if test "${ac_cv_prog_REZ+set}" = set; then
49253   echo $ECHO_N "(cached) $ECHO_C" >&6
49254 else
49255   if test -n "$REZ"; then
49256   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49257 else
49258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49259 for as_dir in $PATH
49260 do
49261   IFS=$as_save_IFS
49262   test -z "$as_dir" && as_dir=.
49263   for ac_exec_ext in '' $ac_executable_extensions; do
49264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49265     ac_cv_prog_REZ="Rez"
49266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49267     break 2
49268   fi
49269 done
49270 done
49271 IFS=$as_save_IFS
49272
49273   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49274 fi
49275 fi
49276 REZ=$ac_cv_prog_REZ
49277 if test -n "$REZ"; then
49278   { echo "$as_me:$LINENO: result: $REZ" >&5
49279 echo "${ECHO_T}$REZ" >&6; }
49280 else
49281   { echo "$as_me:$LINENO: result: no" >&5
49282 echo "${ECHO_T}no" >&6; }
49283 fi
49284
49285
49286             # Extract the first word of "SetFile", so it can be a program name with args.
49287 set dummy SetFile; ac_word=$2
49288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49290 if test "${ac_cv_prog_SETFILE+set}" = set; then
49291   echo $ECHO_N "(cached) $ECHO_C" >&6
49292 else
49293   if test -n "$SETFILE"; then
49294   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49295 else
49296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49297 for as_dir in $PATH
49298 do
49299   IFS=$as_save_IFS
49300   test -z "$as_dir" && as_dir=.
49301   for ac_exec_ext in '' $ac_executable_extensions; do
49302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49303     ac_cv_prog_SETFILE="SetFile"
49304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49305     break 2
49306   fi
49307 done
49308 done
49309 IFS=$as_save_IFS
49310
49311   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49312 fi
49313 fi
49314 SETFILE=$ac_cv_prog_SETFILE
49315 if test -n "$SETFILE"; then
49316   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49317 echo "${ECHO_T}$SETFILE" >&6; }
49318 else
49319   { echo "$as_me:$LINENO: result: no" >&5
49320 echo "${ECHO_T}no" >&6; }
49321 fi
49322
49323
49324         ;;
49325     esac
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335     BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
49336
49337
49338 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
49339
49340
49341
49342     # Check whether --enable-precomp-headers was given.
49343 if test "${enable_precomp_headers+set}" = set; then
49344   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49345 fi
49346
49347
49348     GCC_PCH=0
49349     ICC_PCH=0
49350     USE_PCH=0
49351     BK_MAKE_PCH=""
49352
49353     case ${BAKEFILE_HOST} in
49354         *-*-cygwin* )
49355                                                 bk_use_pch="no"
49356             ;;
49357     esac
49358
49359     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49360         if test "x$GCC" = "xyes"; then
49361                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49362 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49363             cat >conftest.$ac_ext <<_ACEOF
49364 /* confdefs.h.  */
49365 _ACEOF
49366 cat confdefs.h >>conftest.$ac_ext
49367 cat >>conftest.$ac_ext <<_ACEOF
49368 /* end confdefs.h.  */
49369
49370 int
49371 main ()
49372 {
49373
49374                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49375                         There is no PCH support
49376                     #endif
49377                     #if (__GNUC__ < 3)
49378                         There is no PCH support
49379                     #endif
49380                     #if (__GNUC__ == 3) && \
49381                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49382                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49383                        ( defined(__INTEL_COMPILER) )
49384                         There is no PCH support
49385                     #endif
49386
49387   ;
49388   return 0;
49389 }
49390 _ACEOF
49391 rm -f conftest.$ac_objext
49392 if { (ac_try="$ac_compile"
49393 case "(($ac_try" in
49394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49395   *) ac_try_echo=$ac_try;;
49396 esac
49397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49398   (eval "$ac_compile") 2>conftest.er1
49399   ac_status=$?
49400   grep -v '^ *+' conftest.er1 >conftest.err
49401   rm -f conftest.er1
49402   cat conftest.err >&5
49403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49404   (exit $ac_status); } && {
49405          test -z "$ac_c_werror_flag" ||
49406          test ! -s conftest.err
49407        } && test -s conftest.$ac_objext; then
49408
49409                     { echo "$as_me:$LINENO: result: yes" >&5
49410 echo "${ECHO_T}yes" >&6; }
49411                     GCC_PCH=1
49412
49413 else
49414   echo "$as_me: failed program was:" >&5
49415 sed 's/^/| /' conftest.$ac_ext >&5
49416
49417
49418                     cat >conftest.$ac_ext <<_ACEOF
49419 /* confdefs.h.  */
49420 _ACEOF
49421 cat confdefs.h >>conftest.$ac_ext
49422 cat >>conftest.$ac_ext <<_ACEOF
49423 /* end confdefs.h.  */
49424
49425 int
49426 main ()
49427 {
49428
49429                             #if !defined(__INTEL_COMPILER) || \
49430                                 (__INTEL_COMPILER < 800)
49431                                 There is no PCH support
49432                             #endif
49433
49434   ;
49435   return 0;
49436 }
49437 _ACEOF
49438 rm -f conftest.$ac_objext
49439 if { (ac_try="$ac_compile"
49440 case "(($ac_try" in
49441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49442   *) ac_try_echo=$ac_try;;
49443 esac
49444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49445   (eval "$ac_compile") 2>conftest.er1
49446   ac_status=$?
49447   grep -v '^ *+' conftest.er1 >conftest.err
49448   rm -f conftest.er1
49449   cat conftest.err >&5
49450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49451   (exit $ac_status); } && {
49452          test -z "$ac_c_werror_flag" ||
49453          test ! -s conftest.err
49454        } && test -s conftest.$ac_objext; then
49455
49456                             { echo "$as_me:$LINENO: result: yes" >&5
49457 echo "${ECHO_T}yes" >&6; }
49458                             ICC_PCH=1
49459
49460 else
49461   echo "$as_me: failed program was:" >&5
49462 sed 's/^/| /' conftest.$ac_ext >&5
49463
49464
49465                             { echo "$as_me:$LINENO: result: no" >&5
49466 echo "${ECHO_T}no" >&6; }
49467
49468 fi
49469
49470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49471
49472 fi
49473
49474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49475             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49476                 USE_PCH=1
49477
49478 D='$'
49479 cat <<EOF >bk-make-pch
49480 #!/bin/sh
49481
49482 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49483 # script. It is used to generated precompiled headers.
49484 #
49485 # Permission is given to use this file in any way.
49486
49487 outfile="${D}{1}"
49488 header="${D}{2}"
49489 shift
49490 shift
49491
49492 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49493
49494 compiler=""
49495 headerfile=""
49496
49497 while test ${D}{#} -gt 0; do
49498     add_to_cmdline=1
49499     case "${D}{1}" in
49500         -I* )
49501             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49502             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49503                 headerfile="${D}{incdir}/${D}{header}"
49504             fi
49505         ;;
49506         -use-pch|-use_pch )
49507             shift
49508             add_to_cmdline=0
49509         ;;
49510     esac
49511     if test ${D}add_to_cmdline = 1 ; then
49512         compiler="${D}{compiler} ${D}{1}"
49513     fi
49514     shift
49515 done
49516
49517 if test "x${D}{headerfile}" = "x" ; then
49518     echo "error: can't find header ${D}{header} in include paths" >&2
49519 else
49520     if test -f ${D}{outfile} ; then
49521         rm -f ${D}{outfile}
49522     else
49523         mkdir -p \`dirname ${D}{outfile}\`
49524     fi
49525     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49526     mkdir -p ${D}{builddir}/.deps
49527     if test "x${GCC_PCH}" = "x1" ; then
49528         # can do this because gcc is >= 3.4:
49529         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49530     elif test "x${ICC_PCH}" = "x1" ; then
49531         filename=pch_gen-${D}${D}
49532         file=${D}{filename}.c
49533         dfile=${D}{filename}.d
49534         cat > ${D}file <<EOT
49535 #include "${D}header"
49536 EOT
49537         # using -MF icc complains about differing command lines in creation/use
49538         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49539           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49540           rm -f ${D}file ${D}dfile ${D}{filename}.o
49541     fi
49542     exit ${D}{?}
49543 fi
49544 EOF
49545
49546                 chmod +x bk-make-pch
49547                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49548             fi
49549         fi
49550     fi
49551
49552
49553
49554
49555
49556     COND_BUILD_DEBUG="#"
49557     if test "x$BUILD" = "xdebug" ; then
49558         COND_BUILD_DEBUG=""
49559     fi
49560
49561     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49562     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49563         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49564     fi
49565
49566     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49567     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49568         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49569     fi
49570
49571     COND_BUILD_DEBUG_UNICODE_0="#"
49572     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49573         COND_BUILD_DEBUG_UNICODE_0=""
49574     fi
49575
49576     COND_BUILD_DEBUG_UNICODE_1="#"
49577     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49578         COND_BUILD_DEBUG_UNICODE_1=""
49579     fi
49580
49581     COND_BUILD_RELEASE="#"
49582     if test "x$BUILD" = "xrelease" ; then
49583         COND_BUILD_RELEASE=""
49584     fi
49585
49586     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49587     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49588         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49589     fi
49590
49591     COND_BUILD_RELEASE_UNICODE_0="#"
49592     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49593         COND_BUILD_RELEASE_UNICODE_0=""
49594     fi
49595
49596     COND_BUILD_RELEASE_UNICODE_1="#"
49597     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49598         COND_BUILD_RELEASE_UNICODE_1=""
49599     fi
49600
49601     COND_BUILD_debug="#"
49602     if test "x$BUILD" = "xdebug" ; then
49603         COND_BUILD_debug=""
49604     fi
49605
49606     COND_BUILD_debug_DEBUG_FLAG_default="#"
49607     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49608         COND_BUILD_debug_DEBUG_FLAG_default=""
49609     fi
49610
49611     COND_BUILD_debug_DEBUG_INFO_default="#"
49612     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49613         COND_BUILD_debug_DEBUG_INFO_default=""
49614     fi
49615
49616     COND_BUILD_debug_UNICODE_0="#"
49617     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49618         COND_BUILD_debug_UNICODE_0=""
49619     fi
49620
49621     COND_BUILD_debug_UNICODE_1="#"
49622     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49623         COND_BUILD_debug_UNICODE_1=""
49624     fi
49625
49626     COND_BUILD_release="#"
49627     if test "x$BUILD" = "xrelease" ; then
49628         COND_BUILD_release=""
49629     fi
49630
49631     COND_BUILD_release_DEBUG_INFO_default="#"
49632     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49633         COND_BUILD_release_DEBUG_INFO_default=""
49634     fi
49635
49636     COND_BUILD_release_UNICODE_0="#"
49637     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49638         COND_BUILD_release_UNICODE_0=""
49639     fi
49640
49641     COND_BUILD_release_UNICODE_1="#"
49642     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49643         COND_BUILD_release_UNICODE_1=""
49644     fi
49645
49646     COND_DEBUG_FLAG_1="#"
49647     if test "x$DEBUG_FLAG" = "x1" ; then
49648         COND_DEBUG_FLAG_1=""
49649     fi
49650
49651     COND_DEBUG_INFO_0="#"
49652     if test "x$DEBUG_INFO" = "x0" ; then
49653         COND_DEBUG_INFO_0=""
49654     fi
49655
49656     COND_DEBUG_INFO_1="#"
49657     if test "x$DEBUG_INFO" = "x1" ; then
49658         COND_DEBUG_INFO_1=""
49659     fi
49660
49661     COND_DEPS_TRACKING_0="#"
49662     if test "x$DEPS_TRACKING" = "x0" ; then
49663         COND_DEPS_TRACKING_0=""
49664     fi
49665
49666     COND_DEPS_TRACKING_1="#"
49667     if test "x$DEPS_TRACKING" = "x1" ; then
49668         COND_DEPS_TRACKING_1=""
49669     fi
49670
49671     COND_GCC_PCH_1="#"
49672     if test "x$GCC_PCH" = "x1" ; then
49673         COND_GCC_PCH_1=""
49674     fi
49675
49676     COND_ICC_PCH_1="#"
49677     if test "x$ICC_PCH" = "x1" ; then
49678         COND_ICC_PCH_1=""
49679     fi
49680
49681     COND_MONOLITHIC_0="#"
49682     if test "x$MONOLITHIC" = "x0" ; then
49683         COND_MONOLITHIC_0=""
49684     fi
49685
49686     COND_MONOLITHIC_0_SHARED_0="#"
49687     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49688         COND_MONOLITHIC_0_SHARED_0=""
49689     fi
49690
49691     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49692     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49693         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49694     fi
49695
49696     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49697     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49698         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49699     fi
49700
49701     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49702     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49703         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49704     fi
49705
49706     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49707     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49708         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49709     fi
49710
49711     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49712     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49713         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49714     fi
49715
49716     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49717     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49718         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49719     fi
49720
49721     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49722     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49723         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49724     fi
49725
49726     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49727     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49728         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49729     fi
49730
49731     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49732     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49733         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49734     fi
49735
49736     COND_MONOLITHIC_0_SHARED_1="#"
49737     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49738         COND_MONOLITHIC_0_SHARED_1=""
49739     fi
49740
49741     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49742     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49743         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49744     fi
49745
49746     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49747     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49748         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49749     fi
49750
49751     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49752     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49753         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49754     fi
49755
49756     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49757     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49758         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49759     fi
49760
49761     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49762     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49763         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49764     fi
49765
49766     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49767     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49768         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49769     fi
49770
49771     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49772     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49773         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49774     fi
49775
49776     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49777     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49778         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49779     fi
49780
49781     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49782     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49783         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49784     fi
49785
49786     COND_MONOLITHIC_0_USE_AUI_1="#"
49787     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49788         COND_MONOLITHIC_0_USE_AUI_1=""
49789     fi
49790
49791     COND_MONOLITHIC_0_USE_GUI_1="#"
49792     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49793         COND_MONOLITHIC_0_USE_GUI_1=""
49794     fi
49795
49796     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49797     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49798         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49799     fi
49800
49801     COND_MONOLITHIC_0_USE_HTML_1="#"
49802     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49803         COND_MONOLITHIC_0_USE_HTML_1=""
49804     fi
49805
49806     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49807     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49808         COND_MONOLITHIC_0_USE_MEDIA_1=""
49809     fi
49810
49811     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49812     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49813         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49814     fi
49815
49816     COND_MONOLITHIC_0_USE_QA_1="#"
49817     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49818         COND_MONOLITHIC_0_USE_QA_1=""
49819     fi
49820
49821     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49822     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49823         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49824     fi
49825
49826     COND_MONOLITHIC_0_USE_STC_1="#"
49827     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49828         COND_MONOLITHIC_0_USE_STC_1=""
49829     fi
49830
49831     COND_MONOLITHIC_0_USE_XRC_1="#"
49832     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49833         COND_MONOLITHIC_0_USE_XRC_1=""
49834     fi
49835
49836     COND_MONOLITHIC_1="#"
49837     if test "x$MONOLITHIC" = "x1" ; then
49838         COND_MONOLITHIC_1=""
49839     fi
49840
49841     COND_MONOLITHIC_1_SHARED_0="#"
49842     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49843         COND_MONOLITHIC_1_SHARED_0=""
49844     fi
49845
49846     COND_MONOLITHIC_1_SHARED_1="#"
49847     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49848         COND_MONOLITHIC_1_SHARED_1=""
49849     fi
49850
49851     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49852     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49853         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49854     fi
49855
49856     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49857     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49858         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49859     fi
49860
49861     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49862     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49863         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49864     fi
49865
49866     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49867     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49868         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49869     fi
49870
49871     COND_PLATFORM_MACOSX_1="#"
49872     if test "x$PLATFORM_MACOSX" = "x1" ; then
49873         COND_PLATFORM_MACOSX_1=""
49874     fi
49875
49876     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49877     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49878         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49879     fi
49880
49881     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49882     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49883         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49884     fi
49885
49886     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49887     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49888         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49889     fi
49890
49891     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49892     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49893         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49894     fi
49895
49896     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49897     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49898         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49899     fi
49900
49901     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49902     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49903         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49904     fi
49905
49906     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49907     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49908         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49909     fi
49910
49911     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49912     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49913         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49914     fi
49915
49916     COND_PLATFORM_MACOS_1="#"
49917     if test "x$PLATFORM_MACOS" = "x1" ; then
49918         COND_PLATFORM_MACOS_1=""
49919     fi
49920
49921     COND_PLATFORM_MAC_0="#"
49922     if test "x$PLATFORM_MAC" = "x0" ; then
49923         COND_PLATFORM_MAC_0=""
49924     fi
49925
49926     COND_PLATFORM_MAC_1="#"
49927     if test "x$PLATFORM_MAC" = "x1" ; then
49928         COND_PLATFORM_MAC_1=""
49929     fi
49930
49931     COND_PLATFORM_MSDOS_0="#"
49932     if test "x$PLATFORM_MSDOS" = "x0" ; then
49933         COND_PLATFORM_MSDOS_0=""
49934     fi
49935
49936     COND_PLATFORM_MSDOS_1="#"
49937     if test "x$PLATFORM_MSDOS" = "x1" ; then
49938         COND_PLATFORM_MSDOS_1=""
49939     fi
49940
49941     COND_PLATFORM_OS2_1="#"
49942     if test "x$PLATFORM_OS2" = "x1" ; then
49943         COND_PLATFORM_OS2_1=""
49944     fi
49945
49946     COND_PLATFORM_UNIX_0="#"
49947     if test "x$PLATFORM_UNIX" = "x0" ; then
49948         COND_PLATFORM_UNIX_0=""
49949     fi
49950
49951     COND_PLATFORM_UNIX_1="#"
49952     if test "x$PLATFORM_UNIX" = "x1" ; then
49953         COND_PLATFORM_UNIX_1=""
49954     fi
49955
49956     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49957     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49958         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49959     fi
49960
49961     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49962     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49963         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49964     fi
49965
49966     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49967     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49968         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49969     fi
49970
49971     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49972     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49973         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49974     fi
49975
49976     COND_PLATFORM_WIN32_0="#"
49977     if test "x$PLATFORM_WIN32" = "x0" ; then
49978         COND_PLATFORM_WIN32_0=""
49979     fi
49980
49981     COND_PLATFORM_WIN32_1="#"
49982     if test "x$PLATFORM_WIN32" = "x1" ; then
49983         COND_PLATFORM_WIN32_1=""
49984     fi
49985
49986     COND_SHARED_0="#"
49987     if test "x$SHARED" = "x0" ; then
49988         COND_SHARED_0=""
49989     fi
49990
49991     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49992     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49993         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49994     fi
49995
49996     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49997     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49998         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49999     fi
50000
50001     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50002     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50003         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50004     fi
50005
50006     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50007     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50008         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50009     fi
50010
50011     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50012     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50013         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50014     fi
50015
50016     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50017     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50018         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50019     fi
50020
50021     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50022     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50023         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50024     fi
50025
50026     COND_SHARED_0_USE_STC_1="#"
50027     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50028         COND_SHARED_0_USE_STC_1=""
50029     fi
50030
50031     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50032     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50033         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50034     fi
50035
50036     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50037     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50038         COND_SHARED_0_wxUSE_REGEX_builtin=""
50039     fi
50040
50041     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50042     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50043         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50044     fi
50045
50046     COND_SHARED_1="#"
50047     if test "x$SHARED" = "x1" ; then
50048         COND_SHARED_1=""
50049     fi
50050
50051     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50052     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50053         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50054     fi
50055
50056     COND_TOOLKIT_="#"
50057     if test "x$TOOLKIT" = "x" ; then
50058         COND_TOOLKIT_=""
50059     fi
50060
50061     COND_TOOLKIT_COCOA="#"
50062     if test "x$TOOLKIT" = "xCOCOA" ; then
50063         COND_TOOLKIT_COCOA=""
50064     fi
50065
50066     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50067     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50068         COND_TOOLKIT_COCOA_USE_GUI_1=""
50069     fi
50070
50071     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50072     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50073         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50074     fi
50075
50076     COND_TOOLKIT_DFB="#"
50077     if test "x$TOOLKIT" = "xDFB" ; then
50078         COND_TOOLKIT_DFB=""
50079     fi
50080
50081     COND_TOOLKIT_DFB_USE_GUI_1="#"
50082     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50083         COND_TOOLKIT_DFB_USE_GUI_1=""
50084     fi
50085
50086     COND_TOOLKIT_GTK="#"
50087     if test "x$TOOLKIT" = "xGTK" ; then
50088         COND_TOOLKIT_GTK=""
50089     fi
50090
50091     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50092     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50093         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50094     fi
50095
50096     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50097     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50098         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50099     fi
50100
50101     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50102     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50103         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50104     fi
50105
50106     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50107     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50108         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50109     fi
50110
50111     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50112     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50113         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50114     fi
50115
50116     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50117     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50118         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50119     fi
50120
50121     COND_TOOLKIT_GTK_USE_GUI_1="#"
50122     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50123         COND_TOOLKIT_GTK_USE_GUI_1=""
50124     fi
50125
50126     COND_TOOLKIT_MAC="#"
50127     if test "x$TOOLKIT" = "xMAC" ; then
50128         COND_TOOLKIT_MAC=""
50129     fi
50130
50131     COND_TOOLKIT_MGL="#"
50132     if test "x$TOOLKIT" = "xMGL" ; then
50133         COND_TOOLKIT_MGL=""
50134     fi
50135
50136     COND_TOOLKIT_MGL_USE_GUI_1="#"
50137     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50138         COND_TOOLKIT_MGL_USE_GUI_1=""
50139     fi
50140
50141     COND_TOOLKIT_MOTIF="#"
50142     if test "x$TOOLKIT" = "xMOTIF" ; then
50143         COND_TOOLKIT_MOTIF=""
50144     fi
50145
50146     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50147     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50148         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50149     fi
50150
50151     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50152     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50153         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50154     fi
50155
50156     COND_TOOLKIT_MSW="#"
50157     if test "x$TOOLKIT" = "xMSW" ; then
50158         COND_TOOLKIT_MSW=""
50159     fi
50160
50161     COND_TOOLKIT_MSW_USE_GUI_1="#"
50162     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50163         COND_TOOLKIT_MSW_USE_GUI_1=""
50164     fi
50165
50166     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50167     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50168         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50169     fi
50170
50171     COND_TOOLKIT_MSW_WXUNIV_0="#"
50172     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50173         COND_TOOLKIT_MSW_WXUNIV_0=""
50174     fi
50175
50176     COND_TOOLKIT_OSX_CARBON="#"
50177     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50178         COND_TOOLKIT_OSX_CARBON=""
50179     fi
50180
50181     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50182     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50183         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50184     fi
50185
50186     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50187     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50188         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50189     fi
50190
50191     COND_TOOLKIT_OSX_COCOA="#"
50192     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50193         COND_TOOLKIT_OSX_COCOA=""
50194     fi
50195
50196     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50197     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50198         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50199     fi
50200
50201     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50202     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50203         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50204     fi
50205
50206     COND_TOOLKIT_OSX_IPHONE="#"
50207     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50208         COND_TOOLKIT_OSX_IPHONE=""
50209     fi
50210
50211     COND_TOOLKIT_PM="#"
50212     if test "x$TOOLKIT" = "xPM" ; then
50213         COND_TOOLKIT_PM=""
50214     fi
50215
50216     COND_TOOLKIT_PM_USE_GUI_1="#"
50217     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50218         COND_TOOLKIT_PM_USE_GUI_1=""
50219     fi
50220
50221     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50222     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50223         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50224     fi
50225
50226     COND_TOOLKIT_WINCE="#"
50227     if test "x$TOOLKIT" = "xWINCE" ; then
50228         COND_TOOLKIT_WINCE=""
50229     fi
50230
50231     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50232     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50233         COND_TOOLKIT_WINCE_USE_GUI_1=""
50234     fi
50235
50236     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50237     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50238         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50239     fi
50240
50241     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50242     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50243         COND_TOOLKIT_WINCE_WXUNIV_0=""
50244     fi
50245
50246     COND_TOOLKIT_X11="#"
50247     if test "x$TOOLKIT" = "xX11" ; then
50248         COND_TOOLKIT_X11=""
50249     fi
50250
50251     COND_TOOLKIT_X11_USE_GUI_1="#"
50252     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50253         COND_TOOLKIT_X11_USE_GUI_1=""
50254     fi
50255
50256     COND_UNICODE_1="#"
50257     if test "x$UNICODE" = "x1" ; then
50258         COND_UNICODE_1=""
50259     fi
50260
50261     COND_USE_EXCEPTIONS_0="#"
50262     if test "x$USE_EXCEPTIONS" = "x0" ; then
50263         COND_USE_EXCEPTIONS_0=""
50264     fi
50265
50266     COND_USE_EXCEPTIONS_1="#"
50267     if test "x$USE_EXCEPTIONS" = "x1" ; then
50268         COND_USE_EXCEPTIONS_1=""
50269     fi
50270
50271     COND_USE_GUI_0="#"
50272     if test "x$USE_GUI" = "x0" ; then
50273         COND_USE_GUI_0=""
50274     fi
50275
50276     COND_USE_GUI_1="#"
50277     if test "x$USE_GUI" = "x1" ; then
50278         COND_USE_GUI_1=""
50279     fi
50280
50281     COND_USE_GUI_1_USE_OPENGL_1="#"
50282     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50283         COND_USE_GUI_1_USE_OPENGL_1=""
50284     fi
50285
50286     COND_USE_GUI_1_WXUNIV_0="#"
50287     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50288         COND_USE_GUI_1_WXUNIV_0=""
50289     fi
50290
50291     COND_USE_GUI_1_WXUNIV_1="#"
50292     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50293         COND_USE_GUI_1_WXUNIV_1=""
50294     fi
50295
50296     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50297     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50298         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50299     fi
50300
50301     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50302     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50303         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50304     fi
50305
50306     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50307     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50308         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50309     fi
50310
50311     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50312     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50313         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50314     fi
50315
50316     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50317     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50318         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50319     fi
50320
50321     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50322     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50323         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50324     fi
50325
50326     COND_USE_OPENGL_1="#"
50327     if test "x$USE_OPENGL" = "x1" ; then
50328         COND_USE_OPENGL_1=""
50329     fi
50330
50331     COND_USE_PCH_1="#"
50332     if test "x$USE_PCH" = "x1" ; then
50333         COND_USE_PCH_1=""
50334     fi
50335
50336     COND_USE_PLUGINS_0="#"
50337     if test "x$USE_PLUGINS" = "x0" ; then
50338         COND_USE_PLUGINS_0=""
50339     fi
50340
50341     COND_USE_RTTI_0="#"
50342     if test "x$USE_RTTI" = "x0" ; then
50343         COND_USE_RTTI_0=""
50344     fi
50345
50346     COND_USE_RTTI_1="#"
50347     if test "x$USE_RTTI" = "x1" ; then
50348         COND_USE_RTTI_1=""
50349     fi
50350
50351     COND_USE_SOSYMLINKS_1="#"
50352     if test "x$USE_SOSYMLINKS" = "x1" ; then
50353         COND_USE_SOSYMLINKS_1=""
50354     fi
50355
50356     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50357     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50358         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50359     fi
50360
50361     COND_USE_SOVERLINUX_1="#"
50362     if test "x$USE_SOVERLINUX" = "x1" ; then
50363         COND_USE_SOVERLINUX_1=""
50364     fi
50365
50366     COND_USE_SOVERSION_0="#"
50367     if test "x$USE_SOVERSION" = "x0" ; then
50368         COND_USE_SOVERSION_0=""
50369     fi
50370
50371     COND_USE_SOVERSOLARIS_1="#"
50372     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50373         COND_USE_SOVERSOLARIS_1=""
50374     fi
50375
50376     COND_USE_STC_1="#"
50377     if test "x$USE_STC" = "x1" ; then
50378         COND_USE_STC_1=""
50379     fi
50380
50381     COND_USE_THREADS_0="#"
50382     if test "x$USE_THREADS" = "x0" ; then
50383         COND_USE_THREADS_0=""
50384     fi
50385
50386     COND_USE_THREADS_1="#"
50387     if test "x$USE_THREADS" = "x1" ; then
50388         COND_USE_THREADS_1=""
50389     fi
50390
50391     COND_USE_XRC_1="#"
50392     if test "x$USE_XRC" = "x1" ; then
50393         COND_USE_XRC_1=""
50394     fi
50395
50396     COND_WINDOWS_IMPLIB_1="#"
50397     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50398         COND_WINDOWS_IMPLIB_1=""
50399     fi
50400
50401     COND_WITH_PLUGIN_SDL_1="#"
50402     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50403         COND_WITH_PLUGIN_SDL_1=""
50404     fi
50405
50406     COND_WXUNIV_0="#"
50407     if test "x$WXUNIV" = "x0" ; then
50408         COND_WXUNIV_0=""
50409     fi
50410
50411     COND_WXUNIV_1="#"
50412     if test "x$WXUNIV" = "x1" ; then
50413         COND_WXUNIV_1=""
50414     fi
50415
50416     COND_WXUSE_EXPAT_BUILTIN="#"
50417     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50418         COND_WXUSE_EXPAT_BUILTIN=""
50419     fi
50420
50421     COND_WXUSE_LIBJPEG_BUILTIN="#"
50422     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50423         COND_WXUSE_LIBJPEG_BUILTIN=""
50424     fi
50425
50426     COND_WXUSE_LIBPNG_BUILTIN="#"
50427     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50428         COND_WXUSE_LIBPNG_BUILTIN=""
50429     fi
50430
50431     COND_WXUSE_LIBTIFF_BUILTIN="#"
50432     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50433         COND_WXUSE_LIBTIFF_BUILTIN=""
50434     fi
50435
50436     COND_WXUSE_REGEX_BUILTIN="#"
50437     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50438         COND_WXUSE_REGEX_BUILTIN=""
50439     fi
50440
50441     COND_WXUSE_ZLIB_BUILTIN="#"
50442     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50443         COND_WXUSE_ZLIB_BUILTIN=""
50444     fi
50445
50446     COND_wxUSE_EXPAT_builtin="#"
50447     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50448         COND_wxUSE_EXPAT_builtin=""
50449     fi
50450
50451     COND_wxUSE_LIBJPEG_builtin="#"
50452     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50453         COND_wxUSE_LIBJPEG_builtin=""
50454     fi
50455
50456     COND_wxUSE_LIBPNG_builtin="#"
50457     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50458         COND_wxUSE_LIBPNG_builtin=""
50459     fi
50460
50461     COND_wxUSE_LIBTIFF_builtin="#"
50462     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50463         COND_wxUSE_LIBTIFF_builtin=""
50464     fi
50465
50466     COND_wxUSE_REGEX_builtin="#"
50467     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50468         COND_wxUSE_REGEX_builtin=""
50469     fi
50470
50471     COND_wxUSE_ZLIB_builtin="#"
50472     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50473         COND_wxUSE_ZLIB_builtin=""
50474     fi
50475
50476
50477
50478     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50479         { { 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
50480 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;}
50481    { (exit 1); exit 1; }; }
50482     fi
50483
50484     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50485         { { 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
50486 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;}
50487    { (exit 1); exit 1; }; }
50488     fi
50489
50490
50491 case ${INSTALL} in
50492   /* ) # Absolute
50493      ;;
50494   ?:* ) # Drive letter, considered as absolute.
50495      ;;
50496   *)
50497      INSTALL=`pwd`/${INSTALL} ;;
50498 esac
50499
50500 if test "$wxUSE_GUI" = "yes"; then
50501
50502 if test "$wxUSE_MSW" = 1 ; then
50503     if test "x$WINDRES" = "x"; then
50504         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50505 echo "$as_me: error: Required windres program not found" >&2;}
50506    { (exit 1); exit 1; }; }
50507     fi
50508
50509     RESCOMP="$WINDRES"
50510 fi
50511
50512 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50513             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50514     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50515
50516         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50517
50518     # Extract the first word of "DeRez", so it can be a program name with args.
50519 set dummy DeRez; ac_word=$2
50520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50522 if test "${ac_cv_prog_DEREZ+set}" = set; then
50523   echo $ECHO_N "(cached) $ECHO_C" >&6
50524 else
50525   if test -n "$DEREZ"; then
50526   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50527 else
50528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50529 for as_dir in $PATH
50530 do
50531   IFS=$as_save_IFS
50532   test -z "$as_dir" && as_dir=.
50533   for ac_exec_ext in '' $ac_executable_extensions; do
50534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50535     ac_cv_prog_DEREZ="DeRez"
50536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50537     break 2
50538   fi
50539 done
50540 done
50541 IFS=$as_save_IFS
50542
50543   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50544 fi
50545 fi
50546 DEREZ=$ac_cv_prog_DEREZ
50547 if test -n "$DEREZ"; then
50548   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50549 echo "${ECHO_T}$DEREZ" >&6; }
50550 else
50551   { echo "$as_me:$LINENO: result: no" >&5
50552 echo "${ECHO_T}no" >&6; }
50553 fi
50554
50555
50556
50557     MACSETFILE="\$(SETFILE)"
50558
50559             if test "$wxUSE_OSX_CARBON" = 1; then
50560         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50561         RESCOMP="$REZ"
50562         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50563     else
50564         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50565         RESCOMP="cat /dev/null \| $REZ"
50566         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50567     fi
50568
50569 else
50570         MACSETFILE="@true"
50571
50572     if test "$wxUSE_PM" = 1; then
50573         RESCOMP="emxbind"
50574         WXCONFIG_RESFLAGS="-ep"
50575
50576                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50577     else
50578         POSTLINK_COMMAND="@true"
50579     fi
50580 fi
50581
50582 fi
50583
50584
50585 if test $GCC_PCH = 1
50586 then
50587     if test "$wx_cv_gcc_pch_bug" = yes; then
50588         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50589 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50590         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50591 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50592         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50593 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50594     fi
50595
50596     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50597     # the headers that benefit from precompilation are mostly C++ headers.
50598     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50599     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50600     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50601 fi
50602
50603
50604 if test "$wxUSE_MAC" = 1 ; then
50605     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50606         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50607         mv temp bk-deps
50608         chmod +x bk-deps
50609     fi
50610 fi
50611
50612 if test "$wxUSE_SHARED" = "yes"; then
50613                 case "${host}" in
50614       *-pc-os2_emx | *-pc-os2-emx )
50615         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50616         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50617         cp -p ${srcdir}/src/os2/dllnames.sh .
50618         cp -p ${srcdir}/src/os2/dllar.sh .
50619       ;;
50620     esac
50621 fi
50622 if test "$wxUSE_OMF" = "yes"; then
50623     case "${host}" in
50624       *-pc-os2_emx | *-pc-os2-emx )
50625         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50626         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50627         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50628       ;;
50629     esac
50630 fi
50631
50632 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50633
50634
50635 case "${host}" in
50636     *-*-solaris2* )
50637                         if test "$GCC" = yes; then
50638             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50639             LIBS=`echo $LIBS | sed 's/-mt//'`
50640             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50641         fi
50642         ;;
50643
50644     *-*-linux* )
50645                         if test "x$SUNCXX" = xyes; then
50646             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50647             LIBS=`echo $LIBS | sed 's/-pthread//'`
50648             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50649         fi
50650         ;;
50651 esac
50652
50653 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50654 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50655 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50656 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50657
50658 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717
50718
50719 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50721 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50722 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50723   echo $ECHO_N "(cached) $ECHO_C" >&6
50724 else
50725   cat >conftest.make <<\_ACEOF
50726 SHELL = /bin/sh
50727 all:
50728         @echo '@@@%%%=$(MAKE)=@@@%%%'
50729 _ACEOF
50730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50731 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50732   *@@@%%%=?*=@@@%%%*)
50733     eval ac_cv_prog_make_${ac_make}_set=yes;;
50734   *)
50735     eval ac_cv_prog_make_${ac_make}_set=no;;
50736 esac
50737 rm -f conftest.make
50738 fi
50739 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50740   { echo "$as_me:$LINENO: result: yes" >&5
50741 echo "${ECHO_T}yes" >&6; }
50742   SET_MAKE=
50743 else
50744   { echo "$as_me:$LINENO: result: no" >&5
50745 echo "${ECHO_T}no" >&6; }
50746   SET_MAKE="MAKE=${MAKE-make}"
50747 fi
50748
50749
50750
50751 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50752
50753
50754 if test "$USE_WIN32" = 1; then
50755     ac_config_commands="$ac_config_commands
50756             rcdefs.h
50757         "
50758
50759 fi
50760
50761 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50762
50763
50764 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50765
50766
50767 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50768
50769
50770 if test "$wx_cv_version_script" = "yes"; then
50771     ac_config_files="$ac_config_files version-script"
50772
50773 fi
50774 ac_config_files="$ac_config_files Makefile"
50775
50776
50777 ac_config_commands="$ac_config_commands wx-config"
50778
50779
50780
50781 if test "$wxWITH_SUBDIRS" != "no"; then
50782 if test "$wxUSE_GUI" = "yes"; then
50783     SUBDIRS="samples demos utils"
50784 else
50785             SUBDIRS="samples utils"
50786 fi
50787
50788
50789
50790 # Check whether --with-cppunit-prefix was given.
50791 if test "${with_cppunit_prefix+set}" = set; then
50792   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50793 else
50794   cppunit_config_prefix=""
50795 fi
50796
50797
50798 # Check whether --with-cppunit-exec-prefix was given.
50799 if test "${with_cppunit_exec_prefix+set}" = set; then
50800   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50801 else
50802   cppunit_config_exec_prefix=""
50803 fi
50804
50805
50806   if test x$cppunit_config_exec_prefix != x ; then
50807      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50808      if test x${CPPUNIT_CONFIG+set} != xset ; then
50809         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50810      fi
50811   fi
50812   if test x$cppunit_config_prefix != x ; then
50813      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50814      if test x${CPPUNIT_CONFIG+set} != xset ; then
50815         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50816      fi
50817   fi
50818
50819   # Extract the first word of "cppunit-config", so it can be a program name with args.
50820 set dummy cppunit-config; ac_word=$2
50821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50823 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50824   echo $ECHO_N "(cached) $ECHO_C" >&6
50825 else
50826   case $CPPUNIT_CONFIG in
50827   [\\/]* | ?:[\\/]*)
50828   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50829   ;;
50830   *)
50831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50832 for as_dir in $PATH
50833 do
50834   IFS=$as_save_IFS
50835   test -z "$as_dir" && as_dir=.
50836   for ac_exec_ext in '' $ac_executable_extensions; do
50837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50838     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50840     break 2
50841   fi
50842 done
50843 done
50844 IFS=$as_save_IFS
50845
50846   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50847   ;;
50848 esac
50849 fi
50850 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50851 if test -n "$CPPUNIT_CONFIG"; then
50852   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50853 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50854 else
50855   { echo "$as_me:$LINENO: result: no" >&5
50856 echo "${ECHO_T}no" >&6; }
50857 fi
50858
50859
50860   cppunit_version_min=1.8.0
50861
50862   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50863 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50864   no_cppunit=""
50865   if test "$CPPUNIT_CONFIG" = "no" ; then
50866     { echo "$as_me:$LINENO: result: no" >&5
50867 echo "${ECHO_T}no" >&6; }
50868     no_cppunit=yes
50869   else
50870     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50871     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50872     cppunit_version=`$CPPUNIT_CONFIG --version`
50873
50874     cppunit_major_version=`echo $cppunit_version | \
50875            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50876     cppunit_minor_version=`echo $cppunit_version | \
50877            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50878     cppunit_micro_version=`echo $cppunit_version | \
50879            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50880
50881     cppunit_major_min=`echo $cppunit_version_min | \
50882            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50883     cppunit_minor_min=`echo $cppunit_version_min | \
50884            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50885     cppunit_micro_min=`echo $cppunit_version_min | \
50886            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50887
50888     cppunit_version_proper=`expr \
50889         $cppunit_major_version \> $cppunit_major_min \| \
50890         $cppunit_major_version \= $cppunit_major_min \& \
50891         $cppunit_minor_version \> $cppunit_minor_min \| \
50892         $cppunit_major_version \= $cppunit_major_min \& \
50893         $cppunit_minor_version \= $cppunit_minor_min \& \
50894         $cppunit_micro_version \>= $cppunit_micro_min `
50895
50896     if test "$cppunit_version_proper" = "1" ; then
50897       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50898 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50899     else
50900       { echo "$as_me:$LINENO: result: no" >&5
50901 echo "${ECHO_T}no" >&6; }
50902       no_cppunit=yes
50903     fi
50904   fi
50905
50906   if test "x$no_cppunit" = x ; then
50907      SUBDIRS="$SUBDIRS tests"
50908   else
50909      CPPUNIT_CFLAGS=""
50910      CPPUNIT_LIBS=""
50911      :
50912   fi
50913
50914
50915
50916
50917
50918 for subdir in $SUBDIRS; do
50919     if test -d ${srcdir}/${subdir} ; then
50920         if test "$wxUSE_GUI" = "yes"; then
50921             if test ${subdir} = "samples"; then
50922                                                 makefiles="samples/Makefile.in $makefiles"
50923                 for sample in $SAMPLES_SUBDIRS; do
50924                     if test -d $srcdir/samples/$sample; then
50925                         makefiles="samples/$sample/Makefile.in $makefiles"
50926                     fi
50927                 done
50928             else
50929                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50930                 eval "disabled=\$$disabled_var"
50931                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50932                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50933             fi
50934         else
50935                                     if test ${subdir} = "samples"; then
50936                                                 makefiles="samples/Makefile.in $makefiles"
50937                 for sample in `echo $SAMPLES_SUBDIRS`; do
50938                     if test -d $srcdir/samples/$sample; then
50939                         makefiles="samples/$sample/Makefile.in $makefiles"
50940                     fi
50941                 done
50942             elif test ${subdir} = "utils"; then
50943                 makefiles=""
50944                 for util in ifacecheck ; do
50945                     if test -d $srcdir/utils/$util ; then
50946                         makefiles="utils/$util/src/Makefile.in \
50947                                    $makefiles"
50948                     fi
50949                 done
50950             else
50951                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50952             fi
50953         fi
50954
50955         for mkin in $makefiles ; do
50956             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50957             ac_config_files="$ac_config_files $mk"
50958
50959         done
50960     fi
50961 done
50962 fi
50963 cat >confcache <<\_ACEOF
50964 # This file is a shell script that caches the results of configure
50965 # tests run on this system so they can be shared between configure
50966 # scripts and configure runs, see configure's option --config-cache.
50967 # It is not useful on other systems.  If it contains results you don't
50968 # want to keep, you may remove or edit it.
50969 #
50970 # config.status only pays attention to the cache file if you give it
50971 # the --recheck option to rerun configure.
50972 #
50973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50975 # following values.
50976
50977 _ACEOF
50978
50979 # The following way of writing the cache mishandles newlines in values,
50980 # but we know of no workaround that is simple, portable, and efficient.
50981 # So, we kill variables containing newlines.
50982 # Ultrix sh set writes to stderr and can't be redirected directly,
50983 # and sets the high bit in the cache file unless we assign to the vars.
50984 (
50985   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50986     eval ac_val=\$$ac_var
50987     case $ac_val in #(
50988     *${as_nl}*)
50989       case $ac_var in #(
50990       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50992       esac
50993       case $ac_var in #(
50994       _ | IFS | as_nl) ;; #(
50995       *) $as_unset $ac_var ;;
50996       esac ;;
50997     esac
50998   done
50999
51000   (set) 2>&1 |
51001     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51002     *${as_nl}ac_space=\ *)
51003       # `set' does not quote correctly, so add quotes (double-quote
51004       # substitution turns \\\\ into \\, and sed turns \\ into \).
51005       sed -n \
51006         "s/'/'\\\\''/g;
51007           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51008       ;; #(
51009     *)
51010       # `set' quotes correctly as required by POSIX, so do not add quotes.
51011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51012       ;;
51013     esac |
51014     sort
51015 ) |
51016   sed '
51017      /^ac_cv_env_/b end
51018      t clear
51019      :clear
51020      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51021      t end
51022      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51023      :end' >>confcache
51024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51025   if test -w "$cache_file"; then
51026     test "x$cache_file" != "x/dev/null" &&
51027       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51028 echo "$as_me: updating cache $cache_file" >&6;}
51029     cat confcache >$cache_file
51030   else
51031     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51033   fi
51034 fi
51035 rm -f confcache
51036
51037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51038 # Let make expand exec_prefix.
51039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51040
51041 DEFS=-DHAVE_CONFIG_H
51042
51043 ac_libobjs=
51044 ac_ltlibobjs=
51045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51046   # 1. Remove the extension, and $U if already installed.
51047   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51048   ac_i=`echo "$ac_i" | sed "$ac_script"`
51049   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51050   #    will be set to the directory where LIBOBJS objects are built.
51051   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51052   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51053 done
51054 LIBOBJS=$ac_libobjs
51055
51056 LTLIBOBJS=$ac_ltlibobjs
51057
51058
51059
51060 : ${CONFIG_STATUS=./config.status}
51061 ac_clean_files_save=$ac_clean_files
51062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51065 cat >$CONFIG_STATUS <<_ACEOF
51066 #! $SHELL
51067 # Generated by $as_me.
51068 # Run this file to recreate the current configuration.
51069 # Compiler output produced by configure, useful for debugging
51070 # configure, is in config.log if it exists.
51071
51072 debug=false
51073 ac_cs_recheck=false
51074 ac_cs_silent=false
51075 SHELL=\${CONFIG_SHELL-$SHELL}
51076 _ACEOF
51077
51078 cat >>$CONFIG_STATUS <<\_ACEOF
51079 ## --------------------- ##
51080 ## M4sh Initialization.  ##
51081 ## --------------------- ##
51082
51083 # Be more Bourne compatible
51084 DUALCASE=1; export DUALCASE # for MKS sh
51085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51086   emulate sh
51087   NULLCMD=:
51088   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51089   # is contrary to our usage.  Disable this feature.
51090   alias -g '${1+"$@"}'='"$@"'
51091   setopt NO_GLOB_SUBST
51092 else
51093   case `(set -o) 2>/dev/null` in
51094   *posix*) set -o posix ;;
51095 esac
51096
51097 fi
51098
51099
51100
51101
51102 # PATH needs CR
51103 # Avoid depending upon Character Ranges.
51104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51107 as_cr_digits='0123456789'
51108 as_cr_alnum=$as_cr_Letters$as_cr_digits
51109
51110 # The user is always right.
51111 if test "${PATH_SEPARATOR+set}" != set; then
51112   echo "#! /bin/sh" >conf$$.sh
51113   echo  "exit 0"   >>conf$$.sh
51114   chmod +x conf$$.sh
51115   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51116     PATH_SEPARATOR=';'
51117   else
51118     PATH_SEPARATOR=:
51119   fi
51120   rm -f conf$$.sh
51121 fi
51122
51123 # Support unset when possible.
51124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51125   as_unset=unset
51126 else
51127   as_unset=false
51128 fi
51129
51130
51131 # IFS
51132 # We need space, tab and new line, in precisely that order.  Quoting is
51133 # there to prevent editors from complaining about space-tab.
51134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51135 # splitting by setting IFS to empty value.)
51136 as_nl='
51137 '
51138 IFS=" ""        $as_nl"
51139
51140 # Find who we are.  Look in the path if we contain no directory separator.
51141 case $0 in
51142   *[\\/]* ) as_myself=$0 ;;
51143   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51144 for as_dir in $PATH
51145 do
51146   IFS=$as_save_IFS
51147   test -z "$as_dir" && as_dir=.
51148   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51149 done
51150 IFS=$as_save_IFS
51151
51152      ;;
51153 esac
51154 # We did not find ourselves, most probably we were run as `sh COMMAND'
51155 # in which case we are not to be found in the path.
51156 if test "x$as_myself" = x; then
51157   as_myself=$0
51158 fi
51159 if test ! -f "$as_myself"; then
51160   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51161   { (exit 1); exit 1; }
51162 fi
51163
51164 # Work around bugs in pre-3.0 UWIN ksh.
51165 for as_var in ENV MAIL MAILPATH
51166 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51167 done
51168 PS1='$ '
51169 PS2='> '
51170 PS4='+ '
51171
51172 # NLS nuisances.
51173 for as_var in \
51174   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51175   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51176   LC_TELEPHONE LC_TIME
51177 do
51178   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51179     eval $as_var=C; export $as_var
51180   else
51181     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51182   fi
51183 done
51184
51185 # Required to use basename.
51186 if expr a : '\(a\)' >/dev/null 2>&1 &&
51187    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51188   as_expr=expr
51189 else
51190   as_expr=false
51191 fi
51192
51193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51194   as_basename=basename
51195 else
51196   as_basename=false
51197 fi
51198
51199
51200 # Name of the executable.
51201 as_me=`$as_basename -- "$0" ||
51202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51203          X"$0" : 'X\(//\)$' \| \
51204          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51205 echo X/"$0" |
51206     sed '/^.*\/\([^/][^/]*\)\/*$/{
51207             s//\1/
51208             q
51209           }
51210           /^X\/\(\/\/\)$/{
51211             s//\1/
51212             q
51213           }
51214           /^X\/\(\/\).*/{
51215             s//\1/
51216             q
51217           }
51218           s/.*/./; q'`
51219
51220 # CDPATH.
51221 $as_unset CDPATH
51222
51223
51224
51225   as_lineno_1=$LINENO
51226   as_lineno_2=$LINENO
51227   test "x$as_lineno_1" != "x$as_lineno_2" &&
51228   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51229
51230   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51231   # uniformly replaced by the line number.  The first 'sed' inserts a
51232   # line-number line after each line using $LINENO; the second 'sed'
51233   # does the real work.  The second script uses 'N' to pair each
51234   # line-number line with the line containing $LINENO, and appends
51235   # trailing '-' during substitution so that $LINENO is not a special
51236   # case at line end.
51237   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51238   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51239   # E. McMahon (1931-1989) for sed's syntax.  :-)
51240   sed -n '
51241     p
51242     /[$]LINENO/=
51243   ' <$as_myself |
51244     sed '
51245       s/[$]LINENO.*/&-/
51246       t lineno
51247       b
51248       :lineno
51249       N
51250       :loop
51251       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51252       t loop
51253       s/-\n.*//
51254     ' >$as_me.lineno &&
51255   chmod +x "$as_me.lineno" ||
51256     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51257    { (exit 1); exit 1; }; }
51258
51259   # Don't try to exec as it changes $[0], causing all sort of problems
51260   # (the dirname of $[0] is not the place where we might find the
51261   # original and so on.  Autoconf is especially sensitive to this).
51262   . "./$as_me.lineno"
51263   # Exit status is that of the last command.
51264   exit
51265 }
51266
51267
51268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51269   as_dirname=dirname
51270 else
51271   as_dirname=false
51272 fi
51273
51274 ECHO_C= ECHO_N= ECHO_T=
51275 case `echo -n x` in
51276 -n*)
51277   case `echo 'x\c'` in
51278   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51279   *)   ECHO_C='\c';;
51280   esac;;
51281 *)
51282   ECHO_N='-n';;
51283 esac
51284
51285 if expr a : '\(a\)' >/dev/null 2>&1 &&
51286    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51287   as_expr=expr
51288 else
51289   as_expr=false
51290 fi
51291
51292 rm -f conf$$ conf$$.exe conf$$.file
51293 if test -d conf$$.dir; then
51294   rm -f conf$$.dir/conf$$.file
51295 else
51296   rm -f conf$$.dir
51297   mkdir conf$$.dir
51298 fi
51299 echo >conf$$.file
51300 if ln -s conf$$.file conf$$ 2>/dev/null; then
51301   as_ln_s='ln -s'
51302   # ... but there are two gotchas:
51303   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51304   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51305   # In both cases, we have to default to `cp -p'.
51306   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51307     as_ln_s='cp -p'
51308 elif ln conf$$.file conf$$ 2>/dev/null; then
51309   as_ln_s=ln
51310 else
51311   as_ln_s='cp -p'
51312 fi
51313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51314 rmdir conf$$.dir 2>/dev/null
51315
51316 if mkdir -p . 2>/dev/null; then
51317   as_mkdir_p=:
51318 else
51319   test -d ./-p && rmdir ./-p
51320   as_mkdir_p=false
51321 fi
51322
51323 if test -x / >/dev/null 2>&1; then
51324   as_test_x='test -x'
51325 else
51326   if ls -dL / >/dev/null 2>&1; then
51327     as_ls_L_option=L
51328   else
51329     as_ls_L_option=
51330   fi
51331   as_test_x='
51332     eval sh -c '\''
51333       if test -d "$1"; then
51334         test -d "$1/.";
51335       else
51336         case $1 in
51337         -*)set "./$1";;
51338         esac;
51339         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51340         ???[sx]*):;;*)false;;esac;fi
51341     '\'' sh
51342   '
51343 fi
51344 as_executable_p=$as_test_x
51345
51346 # Sed expression to map a string onto a valid CPP name.
51347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51348
51349 # Sed expression to map a string onto a valid variable name.
51350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51351
51352
51353 exec 6>&1
51354
51355 # Save the log message, to keep $[0] and so on meaningful, and to
51356 # report actual input values of CONFIG_FILES etc. instead of their
51357 # values after options handling.
51358 ac_log="
51359 This file was extended by wxWidgets $as_me 2.9.0, which was
51360 generated by GNU Autoconf 2.61.  Invocation command line was
51361
51362   CONFIG_FILES    = $CONFIG_FILES
51363   CONFIG_HEADERS  = $CONFIG_HEADERS
51364   CONFIG_LINKS    = $CONFIG_LINKS
51365   CONFIG_COMMANDS = $CONFIG_COMMANDS
51366   $ $0 $@
51367
51368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51369 "
51370
51371 _ACEOF
51372
51373 cat >>$CONFIG_STATUS <<_ACEOF
51374 # Files that config.status was made for.
51375 config_files="$ac_config_files"
51376 config_headers="$ac_config_headers"
51377 config_commands="$ac_config_commands"
51378
51379 _ACEOF
51380
51381 cat >>$CONFIG_STATUS <<\_ACEOF
51382 ac_cs_usage="\
51383 \`$as_me' instantiates files from templates according to the
51384 current configuration.
51385
51386 Usage: $0 [OPTIONS] [FILE]...
51387
51388   -h, --help       print this help, then exit
51389   -V, --version    print version number and configuration settings, then exit
51390   -q, --quiet      do not print progress messages
51391   -d, --debug      don't remove temporary files
51392       --recheck    update $as_me by reconfiguring in the same conditions
51393   --file=FILE[:TEMPLATE]
51394                    instantiate the configuration file FILE
51395   --header=FILE[:TEMPLATE]
51396                    instantiate the configuration header FILE
51397
51398 Configuration files:
51399 $config_files
51400
51401 Configuration headers:
51402 $config_headers
51403
51404 Configuration commands:
51405 $config_commands
51406
51407 Report bugs to <bug-autoconf@gnu.org>."
51408
51409 _ACEOF
51410 cat >>$CONFIG_STATUS <<_ACEOF
51411 ac_cs_version="\\
51412 wxWidgets config.status 2.9.0
51413 configured by $0, generated by GNU Autoconf 2.61,
51414   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51415
51416 Copyright (C) 2006 Free Software Foundation, Inc.
51417 This config.status script is free software; the Free Software Foundation
51418 gives unlimited permission to copy, distribute and modify it."
51419
51420 ac_pwd='$ac_pwd'
51421 srcdir='$srcdir'
51422 INSTALL='$INSTALL'
51423 _ACEOF
51424
51425 cat >>$CONFIG_STATUS <<\_ACEOF
51426 # If no file are specified by the user, then we need to provide default
51427 # value.  By we need to know if files were specified by the user.
51428 ac_need_defaults=:
51429 while test $# != 0
51430 do
51431   case $1 in
51432   --*=*)
51433     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51434     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51435     ac_shift=:
51436     ;;
51437   *)
51438     ac_option=$1
51439     ac_optarg=$2
51440     ac_shift=shift
51441     ;;
51442   esac
51443
51444   case $ac_option in
51445   # Handling of the options.
51446   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51447     ac_cs_recheck=: ;;
51448   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51449     echo "$ac_cs_version"; exit ;;
51450   --debug | --debu | --deb | --de | --d | -d )
51451     debug=: ;;
51452   --file | --fil | --fi | --f )
51453     $ac_shift
51454     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51455     ac_need_defaults=false;;
51456   --header | --heade | --head | --hea )
51457     $ac_shift
51458     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51459     ac_need_defaults=false;;
51460   --he | --h)
51461     # Conflict between --help and --header
51462     { echo "$as_me: error: ambiguous option: $1
51463 Try \`$0 --help' for more information." >&2
51464    { (exit 1); exit 1; }; };;
51465   --help | --hel | -h )
51466     echo "$ac_cs_usage"; exit ;;
51467   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51468   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51469     ac_cs_silent=: ;;
51470
51471   # This is an error.
51472   -*) { echo "$as_me: error: unrecognized option: $1
51473 Try \`$0 --help' for more information." >&2
51474    { (exit 1); exit 1; }; } ;;
51475
51476   *) ac_config_targets="$ac_config_targets $1"
51477      ac_need_defaults=false ;;
51478
51479   esac
51480   shift
51481 done
51482
51483 ac_configure_extra_args=
51484
51485 if $ac_cs_silent; then
51486   exec 6>/dev/null
51487   ac_configure_extra_args="$ac_configure_extra_args --silent"
51488 fi
51489
51490 _ACEOF
51491 cat >>$CONFIG_STATUS <<_ACEOF
51492 if \$ac_cs_recheck; then
51493   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51494   CONFIG_SHELL=$SHELL
51495   export CONFIG_SHELL
51496   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51497 fi
51498
51499 _ACEOF
51500 cat >>$CONFIG_STATUS <<\_ACEOF
51501 exec 5>>config.log
51502 {
51503   echo
51504   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51505 ## Running $as_me. ##
51506 _ASBOX
51507   echo "$ac_log"
51508 } >&5
51509
51510 _ACEOF
51511 cat >>$CONFIG_STATUS <<_ACEOF
51512 #
51513 # INIT-COMMANDS
51514 #
51515
51516             CPP="$CPP"
51517             infile="$srcdir/include/wx/msw/genrcdefs.h"
51518             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51519
51520
51521  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51522  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51523  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51524                      LN_S="${LN_S}"
51525
51526
51527 _ACEOF
51528
51529 cat >>$CONFIG_STATUS <<\_ACEOF
51530
51531 # Handling of arguments.
51532 for ac_config_target in $ac_config_targets
51533 do
51534   case $ac_config_target in
51535     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51536     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51537     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51538     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51539     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51540     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51541     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51542     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51543     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51544
51545   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51546 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51547    { (exit 1); exit 1; }; };;
51548   esac
51549 done
51550
51551
51552 # If the user did not use the arguments to specify the items to instantiate,
51553 # then the envvar interface is used.  Set only those that are not.
51554 # We use the long form for the default assignment because of an extremely
51555 # bizarre bug on SunOS 4.1.3.
51556 if $ac_need_defaults; then
51557   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51558   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51559   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51560 fi
51561
51562 # Have a temporary directory for convenience.  Make it in the build tree
51563 # simply because there is no reason against having it here, and in addition,
51564 # creating and moving files from /tmp can sometimes cause problems.
51565 # Hook for its removal unless debugging.
51566 # Note that there is a small window in which the directory will not be cleaned:
51567 # after its creation but before its name has been assigned to `$tmp'.
51568 $debug ||
51569 {
51570   tmp=
51571   trap 'exit_status=$?
51572   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51573 ' 0
51574   trap '{ (exit 1); exit 1; }' 1 2 13 15
51575 }
51576 # Create a (secure) tmp directory for tmp files.
51577
51578 {
51579   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51580   test -n "$tmp" && test -d "$tmp"
51581 }  ||
51582 {
51583   tmp=./conf$$-$RANDOM
51584   (umask 077 && mkdir "$tmp")
51585 } ||
51586 {
51587    echo "$me: cannot create a temporary directory in ." >&2
51588    { (exit 1); exit 1; }
51589 }
51590
51591 #
51592 # Set up the sed scripts for CONFIG_FILES section.
51593 #
51594
51595 # No need to generate the scripts if there are no CONFIG_FILES.
51596 # This happens for instance when ./config.status config.h
51597 if test -n "$CONFIG_FILES"; then
51598
51599 _ACEOF
51600
51601
51602
51603 ac_delim='%!_!# '
51604 for ac_last_try in false false false false false :; do
51605   cat >conf$$subs.sed <<_ACEOF
51606 SHELL!$SHELL$ac_delim
51607 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51608 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51609 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51610 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51611 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51612 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51613 exec_prefix!$exec_prefix$ac_delim
51614 prefix!$prefix$ac_delim
51615 program_transform_name!$program_transform_name$ac_delim
51616 bindir!$bindir$ac_delim
51617 sbindir!$sbindir$ac_delim
51618 libexecdir!$libexecdir$ac_delim
51619 datarootdir!$datarootdir$ac_delim
51620 datadir!$datadir$ac_delim
51621 sysconfdir!$sysconfdir$ac_delim
51622 sharedstatedir!$sharedstatedir$ac_delim
51623 localstatedir!$localstatedir$ac_delim
51624 includedir!$includedir$ac_delim
51625 oldincludedir!$oldincludedir$ac_delim
51626 docdir!$docdir$ac_delim
51627 infodir!$infodir$ac_delim
51628 htmldir!$htmldir$ac_delim
51629 dvidir!$dvidir$ac_delim
51630 pdfdir!$pdfdir$ac_delim
51631 psdir!$psdir$ac_delim
51632 libdir!$libdir$ac_delim
51633 localedir!$localedir$ac_delim
51634 mandir!$mandir$ac_delim
51635 DEFS!$DEFS$ac_delim
51636 ECHO_C!$ECHO_C$ac_delim
51637 ECHO_N!$ECHO_N$ac_delim
51638 ECHO_T!$ECHO_T$ac_delim
51639 LIBS!$LIBS$ac_delim
51640 build_alias!$build_alias$ac_delim
51641 host_alias!$host_alias$ac_delim
51642 target_alias!$target_alias$ac_delim
51643 build!$build$ac_delim
51644 build_cpu!$build_cpu$ac_delim
51645 build_vendor!$build_vendor$ac_delim
51646 build_os!$build_os$ac_delim
51647 host!$host$ac_delim
51648 host_cpu!$host_cpu$ac_delim
51649 host_vendor!$host_vendor$ac_delim
51650 host_os!$host_os$ac_delim
51651 target!$target$ac_delim
51652 target_cpu!$target_cpu$ac_delim
51653 target_vendor!$target_vendor$ac_delim
51654 target_os!$target_os$ac_delim
51655 wx_top_builddir!$wx_top_builddir$ac_delim
51656 CC!$CC$ac_delim
51657 CFLAGS!$CFLAGS$ac_delim
51658 LDFLAGS!$LDFLAGS$ac_delim
51659 CPPFLAGS!$CPPFLAGS$ac_delim
51660 ac_ct_CC!$ac_ct_CC$ac_delim
51661 EXEEXT!$EXEEXT$ac_delim
51662 OBJEXT!$OBJEXT$ac_delim
51663 CPP!$CPP$ac_delim
51664 GREP!$GREP$ac_delim
51665 EGREP!$EGREP$ac_delim
51666 CXX!$CXX$ac_delim
51667 CXXFLAGS!$CXXFLAGS$ac_delim
51668 ac_ct_CXX!$ac_ct_CXX$ac_delim
51669 AR!$AR$ac_delim
51670 subdirs!$subdirs$ac_delim
51671 PKG_CONFIG!$PKG_CONFIG$ac_delim
51672 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51673 GTK_LIBS!$GTK_LIBS$ac_delim
51674 GTK_CONFIG!$GTK_CONFIG$ac_delim
51675 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51676 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51677 XMKMF!$XMKMF$ac_delim
51678 X_CFLAGS!$X_CFLAGS$ac_delim
51679 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51680 X_LIBS!$X_LIBS$ac_delim
51681 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51682 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51683 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51684 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51685 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51686 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51687 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51688 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51689 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51690 LIBICONV!$LIBICONV$ac_delim
51691 SDL_CONFIG!$SDL_CONFIG$ac_delim
51692 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51693 SDL_LIBS!$SDL_LIBS$ac_delim
51694 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51695 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51696 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51697 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51698 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51699 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51700 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51701 HILDON_LIBS!$HILDON_LIBS$ac_delim
51702 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51703 _ACEOF
51704
51705   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51706     break
51707   elif $ac_last_try; then
51708     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51710    { (exit 1); exit 1; }; }
51711   else
51712     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51713   fi
51714 done
51715
51716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51717 if test -n "$ac_eof"; then
51718   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51719   ac_eof=`expr $ac_eof + 1`
51720 fi
51721
51722 cat >>$CONFIG_STATUS <<_ACEOF
51723 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51725 _ACEOF
51726 sed '
51727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51728 s/^/s,@/; s/!/@,|#_!!_#|/
51729 :n
51730 t n
51731 s/'"$ac_delim"'$/,g/; t
51732 s/$/\\/; p
51733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51734 ' >>$CONFIG_STATUS <conf$$subs.sed
51735 rm -f conf$$subs.sed
51736 cat >>$CONFIG_STATUS <<_ACEOF
51737 CEOF$ac_eof
51738 _ACEOF
51739
51740
51741 ac_delim='%!_!# '
51742 for ac_last_try in false false false false false :; do
51743   cat >conf$$subs.sed <<_ACEOF
51744 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51745 GST_CFLAGS!$GST_CFLAGS$ac_delim
51746 GST_LIBS!$GST_LIBS$ac_delim
51747 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51748 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51749 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51750 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51751 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51752 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51753 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51754 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51755 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51756 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51757 VENDOR!$VENDOR$ac_delim
51758 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51759 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51760 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51761 WXUNIV!$WXUNIV$ac_delim
51762 MONOLITHIC!$MONOLITHIC$ac_delim
51763 USE_PLUGINS!$USE_PLUGINS$ac_delim
51764 CXXWARNINGS!$CXXWARNINGS$ac_delim
51765 EXTRALIBS!$EXTRALIBS$ac_delim
51766 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51767 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51768 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51769 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51770 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51771 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51772 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51773 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51774 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51775 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51776 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51777 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51778 UNICODE!$UNICODE$ac_delim
51779 BUILD!$BUILD$ac_delim
51780 DEBUG_INFO!$DEBUG_INFO$ac_delim
51781 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51782 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51783 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51784 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51785 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51786 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51787 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51788 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51789 RANLIB!$RANLIB$ac_delim
51790 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51791 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51792 INSTALL_DATA!$INSTALL_DATA$ac_delim
51793 LN_S!$LN_S$ac_delim
51794 SET_MAKE!$SET_MAKE$ac_delim
51795 MAKE_SET!$MAKE_SET$ac_delim
51796 AROPTIONS!$AROPTIONS$ac_delim
51797 STRIP!$STRIP$ac_delim
51798 NM!$NM$ac_delim
51799 INSTALL_DIR!$INSTALL_DIR$ac_delim
51800 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51801 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51802 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51803 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51804 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51805 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51806 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51807 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51808 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51809 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51810 SO_SUFFIX!$SO_SUFFIX$ac_delim
51811 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51812 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51813 LIBPREFIX!$LIBPREFIX$ac_delim
51814 LIBEXT!$LIBEXT$ac_delim
51815 DLLPREFIX!$DLLPREFIX$ac_delim
51816 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51817 dlldir!$dlldir$ac_delim
51818 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51819 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51820 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51821 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51822 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51823 PIC_FLAG!$PIC_FLAG$ac_delim
51824 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51825 USE_SOVERSION!$USE_SOVERSION$ac_delim
51826 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51827 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51828 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51829 USE_MACVERSION!$USE_MACVERSION$ac_delim
51830 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51831 SONAME_FLAG!$SONAME_FLAG$ac_delim
51832 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51833 BK_DEPS!$BK_DEPS$ac_delim
51834 WINDRES!$WINDRES$ac_delim
51835 REZ!$REZ$ac_delim
51836 SETFILE!$SETFILE$ac_delim
51837 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
51838 GCC_PCH!$GCC_PCH$ac_delim
51839 ICC_PCH!$ICC_PCH$ac_delim
51840 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51841 _ACEOF
51842
51843   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51844     break
51845   elif $ac_last_try; then
51846     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51847 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51848    { (exit 1); exit 1; }; }
51849   else
51850     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51851   fi
51852 done
51853
51854 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51855 if test -n "$ac_eof"; then
51856   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51857   ac_eof=`expr $ac_eof + 1`
51858 fi
51859
51860 cat >>$CONFIG_STATUS <<_ACEOF
51861 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51863 _ACEOF
51864 sed '
51865 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51866 s/^/s,@/; s/!/@,|#_!!_#|/
51867 :n
51868 t n
51869 s/'"$ac_delim"'$/,g/; t
51870 s/$/\\/; p
51871 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51872 ' >>$CONFIG_STATUS <conf$$subs.sed
51873 rm -f conf$$subs.sed
51874 cat >>$CONFIG_STATUS <<_ACEOF
51875 CEOF$ac_eof
51876 _ACEOF
51877
51878
51879 ac_delim='%!_!# '
51880 for ac_last_try in false false false false false :; do
51881   cat >conf$$subs.sed <<_ACEOF
51882 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51883 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51884 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51885 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51886 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51887 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51888 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51889 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51890 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51891 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
51892 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
51893 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
51894 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
51895 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
51896 COND_BUILD_release!$COND_BUILD_release$ac_delim
51897 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
51898 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
51899 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
51900 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51901 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51902 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51903 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51904 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51905 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51906 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51907 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51908 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51909 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51910 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51911 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51912 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51913 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51914 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51915 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51916 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51917 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51918 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51919 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51920 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51921 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51922 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51923 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51924 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51925 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51926 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51927 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51928 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51929 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51930 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51931 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51932 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51933 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51934 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51935 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51936 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51937 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51938 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51939 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51940 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51941 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51942 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51943 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51944 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51945 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51946 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
51947 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
51948 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
51949 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
51950 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51951 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51952 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
51953 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51954 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51955 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
51956 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51957 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51958 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51959 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51960 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51961 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51962 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51963 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51964 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51965 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51966 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51967 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51968 COND_SHARED_0!$COND_SHARED_0$ac_delim
51969 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51970 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51971 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51972 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51973 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
51974 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
51975 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
51976 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51977 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
51978 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
51979 _ACEOF
51980
51981   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51982     break
51983   elif $ac_last_try; then
51984     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51986    { (exit 1); exit 1; }; }
51987   else
51988     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51989   fi
51990 done
51991
51992 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51993 if test -n "$ac_eof"; then
51994   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51995   ac_eof=`expr $ac_eof + 1`
51996 fi
51997
51998 cat >>$CONFIG_STATUS <<_ACEOF
51999 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52001 _ACEOF
52002 sed '
52003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52004 s/^/s,@/; s/!/@,|#_!!_#|/
52005 :n
52006 t n
52007 s/'"$ac_delim"'$/,g/; t
52008 s/$/\\/; p
52009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52010 ' >>$CONFIG_STATUS <conf$$subs.sed
52011 rm -f conf$$subs.sed
52012 cat >>$CONFIG_STATUS <<_ACEOF
52013 CEOF$ac_eof
52014 _ACEOF
52015
52016
52017 ac_delim='%!_!# '
52018 for ac_last_try in false false false false false :; do
52019   cat >conf$$subs.sed <<_ACEOF
52020 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52021 COND_SHARED_1!$COND_SHARED_1$ac_delim
52022 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52023 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52024 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52025 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52026 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52027 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52028 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52029 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52030 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52031 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52032 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52033 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52034 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52035 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52036 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52037 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52038 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52039 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52040 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52041 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52042 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52043 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52044 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52045 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52046 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52047 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52048 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52049 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52050 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52051 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52052 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52053 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52054 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52055 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52056 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52057 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52058 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52059 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52060 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52061 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52062 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52063 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52064 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52065 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52066 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52067 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52068 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52069 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52070 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52071 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52072 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52073 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52074 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52075 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52076 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52077 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52078 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52079 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52080 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52081 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52082 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52083 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52084 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52085 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52086 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52087 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52088 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52089 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52090 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52091 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52092 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52093 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52094 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52095 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52096 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52097 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52098 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52099 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52100 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52101 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52102 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52103 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52104 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52105 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52106 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52107 DEREZ!$DEREZ$ac_delim
52108 SHARED!$SHARED$ac_delim
52109 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52110 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52111 USE_GUI!$USE_GUI$ac_delim
52112 AFMINSTALL!$AFMINSTALL$ac_delim
52113 WIN32INSTALL!$WIN32INSTALL$ac_delim
52114 TOOLKIT!$TOOLKIT$ac_delim
52115 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52116 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52117 _ACEOF
52118
52119   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52120     break
52121   elif $ac_last_try; then
52122     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52123 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52124    { (exit 1); exit 1; }; }
52125   else
52126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52127   fi
52128 done
52129
52130 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52131 if test -n "$ac_eof"; then
52132   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52133   ac_eof=`expr $ac_eof + 1`
52134 fi
52135
52136 cat >>$CONFIG_STATUS <<_ACEOF
52137 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52139 _ACEOF
52140 sed '
52141 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52142 s/^/s,@/; s/!/@,|#_!!_#|/
52143 :n
52144 t n
52145 s/'"$ac_delim"'$/,g/; t
52146 s/$/\\/; p
52147 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52148 ' >>$CONFIG_STATUS <conf$$subs.sed
52149 rm -f conf$$subs.sed
52150 cat >>$CONFIG_STATUS <<_ACEOF
52151 CEOF$ac_eof
52152 _ACEOF
52153
52154
52155 ac_delim='%!_!# '
52156 for ac_last_try in false false false false false :; do
52157   cat >conf$$subs.sed <<_ACEOF
52158 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52159 cross_compiling!$cross_compiling$ac_delim
52160 WIDGET_SET!$WIDGET_SET$ac_delim
52161 WX_RELEASE!$WX_RELEASE$ac_delim
52162 WX_VERSION!$WX_VERSION$ac_delim
52163 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52164 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52165 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52166 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52167 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52168 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52169 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52170 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52171 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52172 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52173 GUIDIST!$GUIDIST$ac_delim
52174 DISTDIR!$DISTDIR$ac_delim
52175 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52176 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52177 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52178 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52179 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52180 RESCOMP!$RESCOMP$ac_delim
52181 RESFLAGS!$RESFLAGS$ac_delim
52182 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52183 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52184 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52185 LIBWXMACRES!$LIBWXMACRES$ac_delim
52186 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52187 MACSETFILE!$MACSETFILE$ac_delim
52188 GCC!$GCC$ac_delim
52189 DLLTOOL!$DLLTOOL$ac_delim
52190 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52191 LIBOBJS!$LIBOBJS$ac_delim
52192 LTLIBOBJS!$LTLIBOBJS$ac_delim
52193 _ACEOF
52194
52195   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
52196     break
52197   elif $ac_last_try; then
52198     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52200    { (exit 1); exit 1; }; }
52201   else
52202     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52203   fi
52204 done
52205
52206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52207 if test -n "$ac_eof"; then
52208   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52209   ac_eof=`expr $ac_eof + 1`
52210 fi
52211
52212 cat >>$CONFIG_STATUS <<_ACEOF
52213 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52215 _ACEOF
52216 sed '
52217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52218 s/^/s,@/; s/!/@,|#_!!_#|/
52219 :n
52220 t n
52221 s/'"$ac_delim"'$/,g/; t
52222 s/$/\\/; p
52223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52224 ' >>$CONFIG_STATUS <conf$$subs.sed
52225 rm -f conf$$subs.sed
52226 cat >>$CONFIG_STATUS <<_ACEOF
52227 :end
52228 s/|#_!!_#|//g
52229 CEOF$ac_eof
52230 _ACEOF
52231
52232
52233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52235 # trailing colons and then remove the whole line if VPATH becomes empty
52236 # (actually we leave an empty line to preserve line numbers).
52237 if test "x$srcdir" = x.; then
52238   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52239 s/:*\$(srcdir):*/:/
52240 s/:*\${srcdir}:*/:/
52241 s/:*@srcdir@:*/:/
52242 s/^\([^=]*=[     ]*\):*/\1/
52243 s/:*$//
52244 s/^[^=]*=[       ]*$//
52245 }'
52246 fi
52247
52248 cat >>$CONFIG_STATUS <<\_ACEOF
52249 fi # test -n "$CONFIG_FILES"
52250
52251
52252 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52253 do
52254   case $ac_tag in
52255   :[FHLC]) ac_mode=$ac_tag; continue;;
52256   esac
52257   case $ac_mode$ac_tag in
52258   :[FHL]*:*);;
52259   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52260 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52261    { (exit 1); exit 1; }; };;
52262   :[FH]-) ac_tag=-:-;;
52263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52264   esac
52265   ac_save_IFS=$IFS
52266   IFS=:
52267   set x $ac_tag
52268   IFS=$ac_save_IFS
52269   shift
52270   ac_file=$1
52271   shift
52272
52273   case $ac_mode in
52274   :L) ac_source=$1;;
52275   :[FH])
52276     ac_file_inputs=
52277     for ac_f
52278     do
52279       case $ac_f in
52280       -) ac_f="$tmp/stdin";;
52281       *) # Look for the file first in the build tree, then in the source tree
52282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52283          # because $ac_f cannot contain `:'.
52284          test -f "$ac_f" ||
52285            case $ac_f in
52286            [\\/$]*) false;;
52287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52288            esac ||
52289            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52290 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52291    { (exit 1); exit 1; }; };;
52292       esac
52293       ac_file_inputs="$ac_file_inputs $ac_f"
52294     done
52295
52296     # Let's still pretend it is `configure' which instantiates (i.e., don't
52297     # use $as_me), people would be surprised to read:
52298     #    /* config.h.  Generated by config.status.  */
52299     configure_input="Generated from "`IFS=:
52300           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52301     if test x"$ac_file" != x-; then
52302       configure_input="$ac_file.  $configure_input"
52303       { echo "$as_me:$LINENO: creating $ac_file" >&5
52304 echo "$as_me: creating $ac_file" >&6;}
52305     fi
52306
52307     case $ac_tag in
52308     *:-:* | *:-) cat >"$tmp/stdin";;
52309     esac
52310     ;;
52311   esac
52312
52313   ac_dir=`$as_dirname -- "$ac_file" ||
52314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52315          X"$ac_file" : 'X\(//\)[^/]' \| \
52316          X"$ac_file" : 'X\(//\)$' \| \
52317          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52318 echo X"$ac_file" |
52319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52320             s//\1/
52321             q
52322           }
52323           /^X\(\/\/\)[^/].*/{
52324             s//\1/
52325             q
52326           }
52327           /^X\(\/\/\)$/{
52328             s//\1/
52329             q
52330           }
52331           /^X\(\/\).*/{
52332             s//\1/
52333             q
52334           }
52335           s/.*/./; q'`
52336   { as_dir="$ac_dir"
52337   case $as_dir in #(
52338   -*) as_dir=./$as_dir;;
52339   esac
52340   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52341     as_dirs=
52342     while :; do
52343       case $as_dir in #(
52344       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52345       *) as_qdir=$as_dir;;
52346       esac
52347       as_dirs="'$as_qdir' $as_dirs"
52348       as_dir=`$as_dirname -- "$as_dir" ||
52349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52350          X"$as_dir" : 'X\(//\)[^/]' \| \
52351          X"$as_dir" : 'X\(//\)$' \| \
52352          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52353 echo X"$as_dir" |
52354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52355             s//\1/
52356             q
52357           }
52358           /^X\(\/\/\)[^/].*/{
52359             s//\1/
52360             q
52361           }
52362           /^X\(\/\/\)$/{
52363             s//\1/
52364             q
52365           }
52366           /^X\(\/\).*/{
52367             s//\1/
52368             q
52369           }
52370           s/.*/./; q'`
52371       test -d "$as_dir" && break
52372     done
52373     test -z "$as_dirs" || eval "mkdir $as_dirs"
52374   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52375 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52376    { (exit 1); exit 1; }; }; }
52377   ac_builddir=.
52378
52379 case "$ac_dir" in
52380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52381 *)
52382   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52383   # A ".." for each directory in $ac_dir_suffix.
52384   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52385   case $ac_top_builddir_sub in
52386   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52387   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52388   esac ;;
52389 esac
52390 ac_abs_top_builddir=$ac_pwd
52391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52392 # for backward compatibility:
52393 ac_top_builddir=$ac_top_build_prefix
52394
52395 case $srcdir in
52396   .)  # We are building in place.
52397     ac_srcdir=.
52398     ac_top_srcdir=$ac_top_builddir_sub
52399     ac_abs_top_srcdir=$ac_pwd ;;
52400   [\\/]* | ?:[\\/]* )  # Absolute name.
52401     ac_srcdir=$srcdir$ac_dir_suffix;
52402     ac_top_srcdir=$srcdir
52403     ac_abs_top_srcdir=$srcdir ;;
52404   *) # Relative name.
52405     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52406     ac_top_srcdir=$ac_top_build_prefix$srcdir
52407     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52408 esac
52409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52410
52411
52412   case $ac_mode in
52413   :F)
52414   #
52415   # CONFIG_FILE
52416   #
52417
52418   case $INSTALL in
52419   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52420   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52421   esac
52422 _ACEOF
52423
52424 cat >>$CONFIG_STATUS <<\_ACEOF
52425 # If the template does not know about datarootdir, expand it.
52426 # FIXME: This hack should be removed a few years after 2.60.
52427 ac_datarootdir_hack=; ac_datarootdir_seen=
52428
52429 case `sed -n '/datarootdir/ {
52430   p
52431   q
52432 }
52433 /@datadir@/p
52434 /@docdir@/p
52435 /@infodir@/p
52436 /@localedir@/p
52437 /@mandir@/p
52438 ' $ac_file_inputs` in
52439 *datarootdir*) ac_datarootdir_seen=yes;;
52440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52441   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52442 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52443 _ACEOF
52444 cat >>$CONFIG_STATUS <<_ACEOF
52445   ac_datarootdir_hack='
52446   s&@datadir@&$datadir&g
52447   s&@docdir@&$docdir&g
52448   s&@infodir@&$infodir&g
52449   s&@localedir@&$localedir&g
52450   s&@mandir@&$mandir&g
52451     s&\\\${datarootdir}&$datarootdir&g' ;;
52452 esac
52453 _ACEOF
52454
52455 # Neutralize VPATH when `$srcdir' = `.'.
52456 # Shell code in configure.ac might set extrasub.
52457 # FIXME: do we really want to maintain this feature?
52458 cat >>$CONFIG_STATUS <<_ACEOF
52459   sed "$ac_vpsub
52460 $extrasub
52461 _ACEOF
52462 cat >>$CONFIG_STATUS <<\_ACEOF
52463 :t
52464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52465 s&@configure_input@&$configure_input&;t t
52466 s&@top_builddir@&$ac_top_builddir_sub&;t t
52467 s&@srcdir@&$ac_srcdir&;t t
52468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52469 s&@top_srcdir@&$ac_top_srcdir&;t t
52470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52471 s&@builddir@&$ac_builddir&;t t
52472 s&@abs_builddir@&$ac_abs_builddir&;t t
52473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52474 s&@INSTALL@&$ac_INSTALL&;t t
52475 $ac_datarootdir_hack
52476 " $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
52477
52478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52479   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52480   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52481   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52482 which seems to be undefined.  Please make sure it is defined." >&5
52483 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52484 which seems to be undefined.  Please make sure it is defined." >&2;}
52485
52486   rm -f "$tmp/stdin"
52487   case $ac_file in
52488   -) cat "$tmp/out"; rm -f "$tmp/out";;
52489   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52490   esac
52491  ;;
52492   :H)
52493   #
52494   # CONFIG_HEADER
52495   #
52496 _ACEOF
52497
52498 # Transform confdefs.h into a sed script `conftest.defines', that
52499 # substitutes the proper values into config.h.in to produce config.h.
52500 rm -f conftest.defines conftest.tail
52501 # First, append a space to every undef/define line, to ease matching.
52502 echo 's/$/ /' >conftest.defines
52503 # Then, protect against being on the right side of a sed subst, or in
52504 # an unquoted here document, in config.status.  If some macros were
52505 # called several times there might be several #defines for the same
52506 # symbol, which is useless.  But do not sort them, since the last
52507 # AC_DEFINE must be honored.
52508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52509 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52510 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52511 # PARAMS is the parameter list in the macro definition--in most cases, it's
52512 # just an empty string.
52513 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52514 ac_dB='\\)[      (].*,\\1define\\2'
52515 ac_dC=' '
52516 ac_dD=' ,'
52517
52518 uniq confdefs.h |
52519   sed -n '
52520         t rset
52521         :rset
52522         s/^[     ]*#[    ]*define[       ][      ]*//
52523         t ok
52524         d
52525         :ok
52526         s/[\\&,]/\\&/g
52527         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52528         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52529   ' >>conftest.defines
52530
52531 # Remove the space that was appended to ease matching.
52532 # Then replace #undef with comments.  This is necessary, for
52533 # example, in the case of _POSIX_SOURCE, which is predefined and required
52534 # on some systems where configure will not decide to define it.
52535 # (The regexp can be short, since the line contains either #define or #undef.)
52536 echo 's/ $//
52537 s,^[     #]*u.*,/* & */,' >>conftest.defines
52538
52539 # Break up conftest.defines:
52540 ac_max_sed_lines=50
52541
52542 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52543 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52544 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52545 # et cetera.
52546 ac_in='$ac_file_inputs'
52547 ac_out='"$tmp/out1"'
52548 ac_nxt='"$tmp/out2"'
52549
52550 while :
52551 do
52552   # Write a here document:
52553     cat >>$CONFIG_STATUS <<_ACEOF
52554     # First, check the format of the line:
52555     cat >"\$tmp/defines.sed" <<\\CEOF
52556 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52557 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52558 b
52559 :def
52560 _ACEOF
52561   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52562   echo 'CEOF
52563     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52564   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52565   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52566   grep . conftest.tail >/dev/null || break
52567   rm -f conftest.defines
52568   mv conftest.tail conftest.defines
52569 done
52570 rm -f conftest.defines conftest.tail
52571
52572 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52573 cat >>$CONFIG_STATUS <<\_ACEOF
52574   if test x"$ac_file" != x-; then
52575     echo "/* $configure_input  */" >"$tmp/config.h"
52576     cat "$ac_result" >>"$tmp/config.h"
52577     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52578       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52579 echo "$as_me: $ac_file is unchanged" >&6;}
52580     else
52581       rm -f $ac_file
52582       mv "$tmp/config.h" $ac_file
52583     fi
52584   else
52585     echo "/* $configure_input  */"
52586     cat "$ac_result"
52587   fi
52588   rm -f "$tmp/out12"
52589  ;;
52590
52591   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52592 echo "$as_me: executing $ac_file commands" >&6;}
52593  ;;
52594   esac
52595
52596
52597   case $ac_file$ac_mode in
52598     "rcdefs.h":C)
52599             mkdir -p $outdir &&
52600             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52601          ;;
52602     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52603     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52604     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52605     "wx-config":C)  rm -f wx-config
52606                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52607                     ;;
52608
52609   esac
52610 done # for ac_tag
52611
52612
52613 { (exit 0); exit 0; }
52614 _ACEOF
52615 chmod +x $CONFIG_STATUS
52616 ac_clean_files=$ac_clean_files_save
52617
52618
52619 # configure is writing to config.log, and then calls config.status.
52620 # config.status does its own redirection, appending to config.log.
52621 # Unfortunately, on DOS this fails, as config.log is still kept open
52622 # by configure, so config.status won't be able to write to it; its
52623 # output is simply discarded.  So we exec the FD to /dev/null,
52624 # effectively closing config.log, so it can be properly (re)opened and
52625 # appended to by config.status.  When coming back to configure, we
52626 # need to make the FD available again.
52627 if test "$no_create" != yes; then
52628   ac_cs_success=:
52629   ac_config_status_args=
52630   test "$silent" = yes &&
52631     ac_config_status_args="$ac_config_status_args --quiet"
52632   exec 5>/dev/null
52633   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52634   exec 5>>config.log
52635   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52636   # would make configure fail if this is the last instruction.
52637   $ac_cs_success || { (exit 1); exit 1; }
52638 fi
52639
52640 #
52641 # CONFIG_SUBDIRS section.
52642 #
52643 if test "$no_recursion" != yes; then
52644
52645   # Remove --cache-file and --srcdir arguments so they do not pile up.
52646   ac_sub_configure_args=
52647   ac_prev=
52648   eval "set x $ac_configure_args"
52649   shift
52650   for ac_arg
52651   do
52652     if test -n "$ac_prev"; then
52653       ac_prev=
52654       continue
52655     fi
52656     case $ac_arg in
52657     -cache-file | --cache-file | --cache-fil | --cache-fi \
52658     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52659       ac_prev=cache_file ;;
52660     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52661     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52662     | --c=*)
52663       ;;
52664     --config-cache | -C)
52665       ;;
52666     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52667       ac_prev=srcdir ;;
52668     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52669       ;;
52670     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52671       ac_prev=prefix ;;
52672     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52673       ;;
52674     *)
52675       case $ac_arg in
52676       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52677       esac
52678       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52679     esac
52680   done
52681
52682   # Always prepend --prefix to ensure using the same prefix
52683   # in subdir configurations.
52684   ac_arg="--prefix=$prefix"
52685   case $ac_arg in
52686   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52687   esac
52688   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52689
52690   # Pass --silent
52691   if test "$silent" = yes; then
52692     ac_sub_configure_args="--silent $ac_sub_configure_args"
52693   fi
52694
52695   ac_popdir=`pwd`
52696   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52697
52698     # Do not complain, so a configure script can configure whichever
52699     # parts of a large source tree are present.
52700     test -d "$srcdir/$ac_dir" || continue
52701
52702     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52703     echo "$as_me:$LINENO: $ac_msg" >&5
52704     echo "$ac_msg" >&6
52705     { as_dir="$ac_dir"
52706   case $as_dir in #(
52707   -*) as_dir=./$as_dir;;
52708   esac
52709   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52710     as_dirs=
52711     while :; do
52712       case $as_dir in #(
52713       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52714       *) as_qdir=$as_dir;;
52715       esac
52716       as_dirs="'$as_qdir' $as_dirs"
52717       as_dir=`$as_dirname -- "$as_dir" ||
52718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52719          X"$as_dir" : 'X\(//\)[^/]' \| \
52720          X"$as_dir" : 'X\(//\)$' \| \
52721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52722 echo X"$as_dir" |
52723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52724             s//\1/
52725             q
52726           }
52727           /^X\(\/\/\)[^/].*/{
52728             s//\1/
52729             q
52730           }
52731           /^X\(\/\/\)$/{
52732             s//\1/
52733             q
52734           }
52735           /^X\(\/\).*/{
52736             s//\1/
52737             q
52738           }
52739           s/.*/./; q'`
52740       test -d "$as_dir" && break
52741     done
52742     test -z "$as_dirs" || eval "mkdir $as_dirs"
52743   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52745    { (exit 1); exit 1; }; }; }
52746     ac_builddir=.
52747
52748 case "$ac_dir" in
52749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52750 *)
52751   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52752   # A ".." for each directory in $ac_dir_suffix.
52753   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52754   case $ac_top_builddir_sub in
52755   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52756   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52757   esac ;;
52758 esac
52759 ac_abs_top_builddir=$ac_pwd
52760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52761 # for backward compatibility:
52762 ac_top_builddir=$ac_top_build_prefix
52763
52764 case $srcdir in
52765   .)  # We are building in place.
52766     ac_srcdir=.
52767     ac_top_srcdir=$ac_top_builddir_sub
52768     ac_abs_top_srcdir=$ac_pwd ;;
52769   [\\/]* | ?:[\\/]* )  # Absolute name.
52770     ac_srcdir=$srcdir$ac_dir_suffix;
52771     ac_top_srcdir=$srcdir
52772     ac_abs_top_srcdir=$srcdir ;;
52773   *) # Relative name.
52774     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52775     ac_top_srcdir=$ac_top_build_prefix$srcdir
52776     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52777 esac
52778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52779
52780
52781     cd "$ac_dir"
52782
52783     # Check for guested configure; otherwise get Cygnus style configure.
52784     if test -f "$ac_srcdir/configure.gnu"; then
52785       ac_sub_configure=$ac_srcdir/configure.gnu
52786     elif test -f "$ac_srcdir/configure"; then
52787       ac_sub_configure=$ac_srcdir/configure
52788     elif test -f "$ac_srcdir/configure.in"; then
52789       # This should be Cygnus configure.
52790       ac_sub_configure=$ac_aux_dir/configure
52791     else
52792       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52793 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52794       ac_sub_configure=
52795     fi
52796
52797     # The recursion is here.
52798     if test -n "$ac_sub_configure"; then
52799       # Make the cache file name correct relative to the subdirectory.
52800       case $cache_file in
52801       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52802       *) # Relative name.
52803         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52804       esac
52805
52806       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52807 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52808       # The eval makes quoting arguments work.
52809       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52810            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52811         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52812 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52813    { (exit 1); exit 1; }; }
52814     fi
52815
52816     cd "$ac_popdir"
52817   done
52818 fi
52819
52820
52821 echo
52822 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52823 echo ""
52824 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52825 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52826
52827 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52828 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52829 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52830 if test "$wxUSE_UNICODE" = "yes"; then
52831     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52832         echo " (using UTF-8)"
52833     else
52834         echo " (using wchar_t)"
52835     fi
52836 else
52837     echo
52838 fi
52839
52840 echo "  What level of wxWidgets compatibility should be enabled?"
52841 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52842 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52843
52844 echo "  Which libraries should wxWidgets use?"
52845 echo "                                       STL                ${wxUSE_STL}"
52846 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52847 echo "                                       png                ${wxUSE_LIBPNG-none}"
52848 echo "                                       regex              ${wxUSE_REGEX}"
52849 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52850 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52851 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52852 fi
52853 echo "                                       zlib               ${wxUSE_ZLIB}"
52854 echo "                                       expat              ${wxUSE_EXPAT}"
52855 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52856 echo "                                       sdl                ${wxUSE_LIBSDL}"
52857
52858 echo ""
52859