removed AC_TYPE_UID_T check, we don't need it (and gid_t/uid_t it defines may conflic...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 50116 2007-11-20 22:35:40Z VS .
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 WITH_PLUGIN_SDL
745 EXTRALIBS_GTKPRINT
746 EXTRALIBS_GNOMEPRINT
747 EXTRALIBS_GNOMEVFS
748 EXTRALIBS_HILDON
749 UNICODE
750 BUILD
751 DEBUG_INFO
752 DEBUG_FLAG
753 TOOLKIT_LOWERCASE
754 TOOLKIT_VERSION
755 SAMPLES_RPATH_FLAG
756 SAMPLES_RPATH_POSTLINK
757 HOST_SUFFIX
758 CPPUNIT_CFLAGS
759 CPPUNIT_LIBS
760 RANLIB
761 INSTALL_PROGRAM
762 INSTALL_SCRIPT
763 INSTALL_DATA
764 LN_S
765 SET_MAKE
766 MAKE_SET
767 AROPTIONS
768 STRIP
769 NM
770 INSTALL_DIR
771 LDFLAGS_GUI
772 IF_GNU_MAKE
773 PLATFORM_UNIX
774 PLATFORM_WIN32
775 PLATFORM_MSDOS
776 PLATFORM_MAC
777 PLATFORM_MACOS
778 PLATFORM_MACOSX
779 PLATFORM_OS2
780 PLATFORM_BEOS
781 SO_SUFFIX
782 SO_SUFFIX_MODULE
783 DLLIMP_SUFFIX
784 LIBPREFIX
785 LIBEXT
786 DLLPREFIX
787 DLLPREFIX_MODULE
788 dlldir
789 AIX_CXX_LD
790 SHARED_LD_CC
791 SHARED_LD_CXX
792 SHARED_LD_MODULE_CC
793 SHARED_LD_MODULE_CXX
794 PIC_FLAG
795 WINDOWS_IMPLIB
796 USE_SOVERSION
797 USE_SOVERLINUX
798 USE_SOVERSOLARIS
799 USE_SOVERCYGWIN
800 USE_MACVERSION
801 USE_SOSYMLINKS
802 SONAME_FLAG
803 DEPS_TRACKING
804 BK_DEPS
805 WINDRES
806 REZ
807 SETFILE
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
835 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
837 COND_MONOLITHIC_0_SHARED_1
838 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
843 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
844 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
846 COND_MONOLITHIC_0_USE_AUI_1
847 COND_MONOLITHIC_0_USE_GUI_1
848 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
849 COND_MONOLITHIC_0_USE_HTML_1
850 COND_MONOLITHIC_0_USE_MEDIA_1
851 COND_MONOLITHIC_0_USE_QA_1
852 COND_MONOLITHIC_0_USE_RICHTEXT_1
853 COND_MONOLITHIC_0_USE_STC_1
854 COND_MONOLITHIC_0_USE_XRC_1
855 COND_MONOLITHIC_1
856 COND_MONOLITHIC_1_SHARED_0
857 COND_MONOLITHIC_1_SHARED_1
858 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
859 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
860 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
861 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
862 COND_PLATFORM_MACOSX_1
863 COND_PLATFORM_MACOSX_1_TOOLKIT_
864 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
865 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
866 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
867 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
869 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
870 COND_PLATFORM_MACOSX_1_USE_GUI_1
871 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
872 COND_PLATFORM_MACOS_1
873 COND_PLATFORM_MAC_1
874 COND_PLATFORM_MSDOS_1
875 COND_PLATFORM_OS2_1
876 COND_PLATFORM_UNIX_0
877 COND_PLATFORM_UNIX_1
878 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
879 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
880 COND_PLATFORM_UNIX_1_USE_GUI_1
881 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
882 COND_PLATFORM_WIN32_0
883 COND_PLATFORM_WIN32_1
884 COND_SHARED_0
885 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
886 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
887 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
888 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
889 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
890 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
891 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
892 COND_SHARED_0_USE_STC_1
893 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
894 COND_SHARED_0_WXUSE_REGEX_BUILTIN
895 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
896 COND_SHARED_1
897 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
898 COND_TOOLKIT_
899 COND_TOOLKIT_COCOA
900 COND_TOOLKIT_COCOA_USE_GUI_1
901 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
902 COND_TOOLKIT_DFB
903 COND_TOOLKIT_DFB_USE_GUI_1
904 COND_TOOLKIT_GTK
905 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
906 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
907 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
908 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
909 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0
910 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_GTK_USE_GUI_1
913 COND_TOOLKIT_MAC
914 COND_TOOLKIT_MAC_USE_GUI_1
915 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
916 COND_TOOLKIT_MGL
917 COND_TOOLKIT_MGL_USE_GUI_1
918 COND_TOOLKIT_MOTIF
919 COND_TOOLKIT_MOTIF_USE_GUI_1
920 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_MSW
922 COND_TOOLKIT_MSW_USE_GUI_1
923 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_MSW_WXUNIV_0
925 COND_TOOLKIT_PM
926 COND_TOOLKIT_PM_USE_GUI_1
927 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
928 COND_TOOLKIT_WINCE
929 COND_TOOLKIT_WINCE_USE_GUI_1
930 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_WINCE_WXUNIV_0
932 COND_TOOLKIT_X11
933 COND_TOOLKIT_X11_USE_GUI_1
934 COND_UNICODE_1
935 COND_USE_EXCEPTIONS_0
936 COND_USE_EXCEPTIONS_1
937 COND_USE_GUI_0
938 COND_USE_GUI_1
939 COND_USE_GUI_1_USE_OPENGL_1
940 COND_USE_GUI_1_WXUNIV_0
941 COND_USE_GUI_1_WXUNIV_1
942 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
943 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
944 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
945 COND_USE_PCH_1
946 COND_USE_PLUGINS_0
947 COND_USE_RTTI_0
948 COND_USE_RTTI_1
949 COND_USE_SOSYMLINKS_1
950 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
951 COND_USE_SOVERLINUX_1
952 COND_USE_SOVERSION_0
953 COND_USE_SOVERSOLARIS_1
954 COND_USE_STC_1
955 COND_USE_THREADS_0
956 COND_USE_THREADS_1
957 COND_USE_XRC_1
958 COND_WINDOWS_IMPLIB_1
959 COND_WITH_PLUGIN_SDL_1
960 COND_WXUNIV_0
961 COND_WXUNIV_1
962 COND_WXUSE_EXPAT_BUILTIN
963 COND_WXUSE_LIBJPEG_BUILTIN
964 COND_WXUSE_LIBPNG_BUILTIN
965 COND_WXUSE_LIBTIFF_BUILTIN
966 COND_WXUSE_REGEX_BUILTIN
967 COND_WXUSE_ZLIB_BUILTIN
968 DEREZ
969 SHARED
970 WX_LIBRARY_BASENAME_NOGUI
971 WX_LIBRARY_BASENAME_GUI
972 USE_GUI
973 AFMINSTALL
974 WIN32INSTALL
975 TOOLKIT
976 TOOLKIT_DIR
977 TOOLCHAIN_NAME
978 TOOLCHAIN_FULLNAME
979 cross_compiling
980 WIDGET_SET
981 WX_RELEASE
982 WX_VERSION
983 WX_SUBVERSION
984 WX_CHARTYPE
985 WX_DEBUGTYPE
986 WXCONFIG_CPPFLAGS
987 WXCONFIG_CFLAGS
988 WXCONFIG_CXXFLAGS
989 WXCONFIG_LIBS
990 WXCONFIG_RPATH
991 WXCONFIG_LDFLAGS_GUI
992 WXCONFIG_RESFLAGS
993 GUIDIST
994 DISTDIR
995 SAMPLES_SUBDIRS
996 LDFLAGS_GL
997 OPENGL_LIBS
998 DMALLOC_LIBS
999 WX_VERSION_TAG
1000 RESCOMP
1001 RESFLAGS
1002 RESPROGRAMOBJ
1003 WX_RESOURCES_MACOSX_ASCII
1004 WX_RESOURCES_MACOSX_DATA
1005 LIBWXMACRES
1006 POSTLINK_COMMAND
1007 MACSETFILE
1008 GCC
1009 DLLTOOL
1010 CPPUNIT_CONFIG
1011 LIBOBJS
1012 LTLIBOBJS'
1013 ac_subst_files=''
1014       ac_precious_vars='build_alias
1015 host_alias
1016 target_alias
1017 CC
1018 CFLAGS
1019 LDFLAGS
1020 LIBS
1021 CPPFLAGS
1022 CPP
1023 CXX
1024 CXXFLAGS
1025 CCC
1026 PKG_CONFIG
1027 DIRECTFB_CFLAGS
1028 DIRECTFB_LIBS
1029 XMKMF
1030 PANGOX_CFLAGS
1031 PANGOX_LIBS
1032 PANGOFT2_CFLAGS
1033 PANGOFT2_LIBS
1034 PANGOXFT_CFLAGS
1035 PANGOXFT_LIBS
1036 GTKPRINT_CFLAGS
1037 GTKPRINT_LIBS
1038 LIBGNOMEPRINTUI_CFLAGS
1039 LIBGNOMEPRINTUI_LIBS
1040 GNOMEVFS_CFLAGS
1041 GNOMEVFS_LIBS
1042 HILDON_CFLAGS
1043 HILDON_LIBS
1044 CAIRO_CFLAGS
1045 CAIRO_LIBS
1046 GST_CFLAGS
1047 GST_LIBS'
1048 ac_subdirs_all='src/tiff
1049 src/expat'
1050
1051 # Initialize some variables set by options.
1052 ac_init_help=
1053 ac_init_version=false
1054 # The variables have the same names as the options, with
1055 # dashes changed to underlines.
1056 cache_file=/dev/null
1057 exec_prefix=NONE
1058 no_create=
1059 no_recursion=
1060 prefix=NONE
1061 program_prefix=NONE
1062 program_suffix=NONE
1063 program_transform_name=s,x,x,
1064 silent=
1065 site=
1066 srcdir=
1067 verbose=
1068 x_includes=NONE
1069 x_libraries=NONE
1070
1071 # Installation directory options.
1072 # These are left unexpanded so users can "make install exec_prefix=/foo"
1073 # and all the variables that are supposed to be based on exec_prefix
1074 # by default will actually change.
1075 # Use braces instead of parens because sh, perl, etc. also accept them.
1076 # (The list follows the same order as the GNU Coding Standards.)
1077 bindir='${exec_prefix}/bin'
1078 sbindir='${exec_prefix}/sbin'
1079 libexecdir='${exec_prefix}/libexec'
1080 datarootdir='${prefix}/share'
1081 datadir='${datarootdir}'
1082 sysconfdir='${prefix}/etc'
1083 sharedstatedir='${prefix}/com'
1084 localstatedir='${prefix}/var'
1085 includedir='${prefix}/include'
1086 oldincludedir='/usr/include'
1087 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1088 infodir='${datarootdir}/info'
1089 htmldir='${docdir}'
1090 dvidir='${docdir}'
1091 pdfdir='${docdir}'
1092 psdir='${docdir}'
1093 libdir='${exec_prefix}/lib'
1094 localedir='${datarootdir}/locale'
1095 mandir='${datarootdir}/man'
1096
1097 ac_prev=
1098 ac_dashdash=
1099 for ac_option
1100 do
1101   # If the previous option needs an argument, assign it.
1102   if test -n "$ac_prev"; then
1103     eval $ac_prev=\$ac_option
1104     ac_prev=
1105     continue
1106   fi
1107
1108   case $ac_option in
1109   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1110   *)    ac_optarg=yes ;;
1111   esac
1112
1113   # Accept the important Cygnus configure options, so we can diagnose typos.
1114
1115   case $ac_dashdash$ac_option in
1116   --)
1117     ac_dashdash=yes ;;
1118
1119   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1120     ac_prev=bindir ;;
1121   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1122     bindir=$ac_optarg ;;
1123
1124   -build | --build | --buil | --bui | --bu)
1125     ac_prev=build_alias ;;
1126   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1127     build_alias=$ac_optarg ;;
1128
1129   -cache-file | --cache-file | --cache-fil | --cache-fi \
1130   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1131     ac_prev=cache_file ;;
1132   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1133   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1134     cache_file=$ac_optarg ;;
1135
1136   --config-cache | -C)
1137     cache_file=config.cache ;;
1138
1139   -datadir | --datadir | --datadi | --datad)
1140     ac_prev=datadir ;;
1141   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1142     datadir=$ac_optarg ;;
1143
1144   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1145   | --dataroo | --dataro | --datar)
1146     ac_prev=datarootdir ;;
1147   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1148   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1149     datarootdir=$ac_optarg ;;
1150
1151   -disable-* | --disable-*)
1152     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1156    { (exit 1); exit 1; }; }
1157     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1158     eval enable_$ac_feature=no ;;
1159
1160   -docdir | --docdir | --docdi | --doc | --do)
1161     ac_prev=docdir ;;
1162   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163     docdir=$ac_optarg ;;
1164
1165   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166     ac_prev=dvidir ;;
1167   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168     dvidir=$ac_optarg ;;
1169
1170   -enable-* | --enable-*)
1171     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1175    { (exit 1); exit 1; }; }
1176     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1177     eval enable_$ac_feature=\$ac_optarg ;;
1178
1179   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1180   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1181   | --exec | --exe | --ex)
1182     ac_prev=exec_prefix ;;
1183   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1184   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1185   | --exec=* | --exe=* | --ex=*)
1186     exec_prefix=$ac_optarg ;;
1187
1188   -gas | --gas | --ga | --g)
1189     # Obsolete; use --with-gas.
1190     with_gas=yes ;;
1191
1192   -help | --help | --hel | --he | -h)
1193     ac_init_help=long ;;
1194   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1195     ac_init_help=recursive ;;
1196   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1197     ac_init_help=short ;;
1198
1199   -host | --host | --hos | --ho)
1200     ac_prev=host_alias ;;
1201   -host=* | --host=* | --hos=* | --ho=*)
1202     host_alias=$ac_optarg ;;
1203
1204   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1205     ac_prev=htmldir ;;
1206   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1207   | --ht=*)
1208     htmldir=$ac_optarg ;;
1209
1210   -includedir | --includedir | --includedi | --included | --include \
1211   | --includ | --inclu | --incl | --inc)
1212     ac_prev=includedir ;;
1213   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1214   | --includ=* | --inclu=* | --incl=* | --inc=*)
1215     includedir=$ac_optarg ;;
1216
1217   -infodir | --infodir | --infodi | --infod | --info | --inf)
1218     ac_prev=infodir ;;
1219   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1220     infodir=$ac_optarg ;;
1221
1222   -libdir | --libdir | --libdi | --libd)
1223     ac_prev=libdir ;;
1224   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1225     libdir=$ac_optarg ;;
1226
1227   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1228   | --libexe | --libex | --libe)
1229     ac_prev=libexecdir ;;
1230   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1231   | --libexe=* | --libex=* | --libe=*)
1232     libexecdir=$ac_optarg ;;
1233
1234   -localedir | --localedir | --localedi | --localed | --locale)
1235     ac_prev=localedir ;;
1236   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1237     localedir=$ac_optarg ;;
1238
1239   -localstatedir | --localstatedir | --localstatedi | --localstated \
1240   | --localstate | --localstat | --localsta | --localst | --locals)
1241     ac_prev=localstatedir ;;
1242   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1243   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1244     localstatedir=$ac_optarg ;;
1245
1246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1247     ac_prev=mandir ;;
1248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1249     mandir=$ac_optarg ;;
1250
1251   -nfp | --nfp | --nf)
1252     # Obsolete; use --without-fp.
1253     with_fp=no ;;
1254
1255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1256   | --no-cr | --no-c | -n)
1257     no_create=yes ;;
1258
1259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1261     no_recursion=yes ;;
1262
1263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1265   | --oldin | --oldi | --old | --ol | --o)
1266     ac_prev=oldincludedir ;;
1267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1270     oldincludedir=$ac_optarg ;;
1271
1272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1273     ac_prev=prefix ;;
1274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1275     prefix=$ac_optarg ;;
1276
1277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1278   | --program-pre | --program-pr | --program-p)
1279     ac_prev=program_prefix ;;
1280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1282     program_prefix=$ac_optarg ;;
1283
1284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1285   | --program-suf | --program-su | --program-s)
1286     ac_prev=program_suffix ;;
1287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1289     program_suffix=$ac_optarg ;;
1290
1291   -program-transform-name | --program-transform-name \
1292   | --program-transform-nam | --program-transform-na \
1293   | --program-transform-n | --program-transform- \
1294   | --program-transform | --program-transfor \
1295   | --program-transfo | --program-transf \
1296   | --program-trans | --program-tran \
1297   | --progr-tra | --program-tr | --program-t)
1298     ac_prev=program_transform_name ;;
1299   -program-transform-name=* | --program-transform-name=* \
1300   | --program-transform-nam=* | --program-transform-na=* \
1301   | --program-transform-n=* | --program-transform-=* \
1302   | --program-transform=* | --program-transfor=* \
1303   | --program-transfo=* | --program-transf=* \
1304   | --program-trans=* | --program-tran=* \
1305   | --progr-tra=* | --program-tr=* | --program-t=*)
1306     program_transform_name=$ac_optarg ;;
1307
1308   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1309     ac_prev=pdfdir ;;
1310   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1311     pdfdir=$ac_optarg ;;
1312
1313   -psdir | --psdir | --psdi | --psd | --ps)
1314     ac_prev=psdir ;;
1315   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1316     psdir=$ac_optarg ;;
1317
1318   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319   | -silent | --silent | --silen | --sile | --sil)
1320     silent=yes ;;
1321
1322   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1323     ac_prev=sbindir ;;
1324   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1325   | --sbi=* | --sb=*)
1326     sbindir=$ac_optarg ;;
1327
1328   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1329   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1330   | --sharedst | --shareds | --shared | --share | --shar \
1331   | --sha | --sh)
1332     ac_prev=sharedstatedir ;;
1333   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1334   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1335   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1336   | --sha=* | --sh=*)
1337     sharedstatedir=$ac_optarg ;;
1338
1339   -site | --site | --sit)
1340     ac_prev=site ;;
1341   -site=* | --site=* | --sit=*)
1342     site=$ac_optarg ;;
1343
1344   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1345     ac_prev=srcdir ;;
1346   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1347     srcdir=$ac_optarg ;;
1348
1349   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1350   | --syscon | --sysco | --sysc | --sys | --sy)
1351     ac_prev=sysconfdir ;;
1352   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1353   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1354     sysconfdir=$ac_optarg ;;
1355
1356   -target | --target | --targe | --targ | --tar | --ta | --t)
1357     ac_prev=target_alias ;;
1358   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1359     target_alias=$ac_optarg ;;
1360
1361   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1362     verbose=yes ;;
1363
1364   -version | --version | --versio | --versi | --vers | -V)
1365     ac_init_version=: ;;
1366
1367   -with-* | --with-*)
1368     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1369     # Reject names that are not valid shell variable names.
1370     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371       { echo "$as_me: error: invalid package name: $ac_package" >&2
1372    { (exit 1); exit 1; }; }
1373     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1374     eval with_$ac_package=\$ac_optarg ;;
1375
1376   -without-* | --without-*)
1377     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378     # Reject names that are not valid shell variable names.
1379     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380       { echo "$as_me: error: invalid package name: $ac_package" >&2
1381    { (exit 1); exit 1; }; }
1382     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1383     eval with_$ac_package=no ;;
1384
1385   --x)
1386     # Obsolete; use --with-x.
1387     with_x=yes ;;
1388
1389   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1390   | --x-incl | --x-inc | --x-in | --x-i)
1391     ac_prev=x_includes ;;
1392   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1393   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1394     x_includes=$ac_optarg ;;
1395
1396   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1397   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1398     ac_prev=x_libraries ;;
1399   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1400   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1401     x_libraries=$ac_optarg ;;
1402
1403   -*) { echo "$as_me: error: unrecognized option: $ac_option
1404 Try \`$0 --help' for more information." >&2
1405    { (exit 1); exit 1; }; }
1406     ;;
1407
1408   *=*)
1409     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1410     # Reject names that are not valid shell variable names.
1411     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1412       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1413    { (exit 1); exit 1; }; }
1414     eval $ac_envvar=\$ac_optarg
1415     export $ac_envvar ;;
1416
1417   *)
1418     # FIXME: should be removed in autoconf 3.0.
1419     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1420     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1421       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1422     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1423     ;;
1424
1425   esac
1426 done
1427
1428 if test -n "$ac_prev"; then
1429   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1430   { echo "$as_me: error: missing argument to $ac_option" >&2
1431    { (exit 1); exit 1; }; }
1432 fi
1433
1434 # Be sure to have absolute directory names.
1435 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436                 datadir sysconfdir sharedstatedir localstatedir includedir \
1437                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438                 libdir localedir mandir
1439 do
1440   eval ac_val=\$$ac_var
1441   case $ac_val in
1442     [\\/$]* | ?:[\\/]* )  continue;;
1443     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444   esac
1445   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1446    { (exit 1); exit 1; }; }
1447 done
1448
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1452 build=$build_alias
1453 host=$host_alias
1454 target=$target_alias
1455
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458   if test "x$build_alias" = x; then
1459     cross_compiling=maybe
1460     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1461     If a cross compiler is detected then cross compile mode will be used." >&2
1462   elif test "x$build_alias" != "x$host_alias"; then
1463     cross_compiling=yes
1464   fi
1465 fi
1466
1467 ac_tool_prefix=
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469
1470 test "$silent" = yes && exec 6>/dev/null
1471
1472
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476   { echo "$as_me: error: Working directory cannot be determined" >&2
1477    { (exit 1); exit 1; }; }
1478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479   { echo "$as_me: error: pwd does not report name of working directory" >&2
1480    { (exit 1); exit 1; }; }
1481
1482
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485   ac_srcdir_defaulted=yes
1486   # Try the directory containing this script, then the parent directory.
1487   ac_confdir=`$as_dirname -- "$0" ||
1488 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489          X"$0" : 'X\(//\)[^/]' \| \
1490          X"$0" : 'X\(//\)$' \| \
1491          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1492 echo X"$0" |
1493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\/\)[^/].*/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\/\)$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\).*/{
1506             s//\1/
1507             q
1508           }
1509           s/.*/./; q'`
1510   srcdir=$ac_confdir
1511   if test ! -r "$srcdir/$ac_unique_file"; then
1512     srcdir=..
1513   fi
1514 else
1515   ac_srcdir_defaulted=no
1516 fi
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 ac_abs_confdir=`(
1524         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1525    { (exit 1); exit 1; }; }
1526         pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529   srcdir=.
1530 fi
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_env_${ac_var}_value=\$${ac_var}
1540   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1543
1544 #
1545 # Report the --help message.
1546 #
1547 if test "$ac_init_help" = "long"; then
1548   # Omit some internal or obsolete options to make the list less imposing.
1549   # This message is too long to be a string in the A/UX 3.1 sh.
1550   cat <<_ACEOF
1551 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1552
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1554
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE.  See below for descriptions of some of the useful variables.
1557
1558 Defaults for the options are specified in brackets.
1559
1560 Configuration:
1561   -h, --help              display this help and exit
1562       --help=short        display options specific to this package
1563       --help=recursive    display the short help of all the included packages
1564   -V, --version           display version information and exit
1565   -q, --quiet, --silent   do not print \`checking...' messages
1566       --cache-file=FILE   cache test results in FILE [disabled]
1567   -C, --config-cache      alias for \`--cache-file=config.cache'
1568   -n, --no-create         do not create output files
1569       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1570
1571 Installation directories:
1572   --prefix=PREFIX         install architecture-independent files in PREFIX
1573                           [$ac_default_prefix]
1574   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1575                           [PREFIX]
1576
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1581
1582 For better control, use the options below.
1583
1584 Fine tuning of the installation directories:
1585   --bindir=DIR           user executables [EPREFIX/bin]
1586   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1587   --libexecdir=DIR       program executables [EPREFIX/libexec]
1588   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1589   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1590   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1591   --libdir=DIR           object code libraries [EPREFIX/lib]
1592   --includedir=DIR       C header files [PREFIX/include]
1593   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1594   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1595   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1596   --infodir=DIR          info documentation [DATAROOTDIR/info]
1597   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1598   --mandir=DIR           man documentation [DATAROOTDIR/man]
1599   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1600   --htmldir=DIR          html documentation [DOCDIR]
1601   --dvidir=DIR           dvi documentation [DOCDIR]
1602   --pdfdir=DIR           pdf documentation [DOCDIR]
1603   --psdir=DIR            ps documentation [DOCDIR]
1604 _ACEOF
1605
1606   cat <<\_ACEOF
1607
1608 X features:
1609   --x-includes=DIR    X include files are in DIR
1610   --x-libraries=DIR   X library files are in DIR
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615   --target=TARGET   configure for building compilers for TARGET [HOST]
1616 _ACEOF
1617 fi
1618
1619 if test -n "$ac_init_help"; then
1620   case $ac_init_help in
1621      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1622    esac
1623   cat <<\_ACEOF
1624
1625 Optional Features:
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --disable-gui           don't build GUI parts of the library
1629   --enable-monolithic     build wxWidgets as single library
1630   --enable-plugins        build parts of wxWidgets as loadable components
1631   --enable-official_build official build of wxWidgets (win32 DLL only)
1632   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1633   --disable-all-features  disable all optional features to build minimal library
1634   --enable-universal      use wxWidgets GUI controls instead of native ones
1635   --enable-nanox          use NanoX
1636   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1637   --enable-gpe            use GNOME PDA Environment features if possible
1638   --disable-shared        create static library instead of shared
1639   --disable-optimise      create optimised code
1640   --enable-debug          same as debug_flag and debug_info
1641   --enable-stl            use STL for containers
1642   --enable-std_iostreams  use standard C++ stream classes
1643   --enable-std_string     use standard C++ string classes
1644   --disable-unicode       compile without Unicode support
1645   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1646   --enable-utf8           use UTF-8 representation for strings (Unix only)
1647   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1648   --enable-extended_rtti  use extended RTTI (XTI)
1649   --enable-omf            use OMF object format
1650   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1651   --enable-debug_info     create code with debugging information
1652   --enable-debug_gdb      create code with extra GDB debugging information
1653   --enable-debug_cntxt    use wxDebugContext
1654   --enable-mem_tracing    create code with memory tracing
1655   --enable-profile        create code with profiling information
1656   --enable-no_rtti        create code without RTTI information
1657   --enable-no_exceptions  create code without C++ exceptions handling
1658   --enable-permissive     compile code disregarding strict ANSI
1659   --enable-no_deps        create code without dependency information
1660   --disable-vararg_macros don't use vararg macros, even if they are supported
1661   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1662   --enable-compat26       enable wxWidgets 2.6 compatibility
1663   --disable-compat28      disable wxWidgets 2.8 compatibility
1664   --disable-rpath         disable use of rpath for uninstalled builds
1665   --enable-objc_uniquifying enable Objective-C class name uniquifying
1666   --disable-visibility    disable use of ELF symbols visibility even if supported
1667   --enable-intl           use internationalization system
1668   --enable-config         use wxConfig (and derived) classes
1669   --enable-protocols      use wxProtocol and derived classes
1670   --enable-ftp            use wxFTP (requires wxProtocol
1671   --enable-http           use wxHTTP (requires wxProtocol
1672   --enable-fileproto      use wxFileProto class (requires wxProtocol
1673   --enable-sockets        use socket/network classes
1674   --enable-ipv6           enable IPv6 support in wxSocket
1675   --enable-ole            use OLE classes (Win32 only)
1676   --enable-dataobj        use data object classes
1677   --enable-ipc            use interprocess communication (wxSocket etc.)
1678   --enable-baseevtloop    use event loop in console programs too
1679   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1680   --enable-selectloop     use wxSelectDispatcher class
1681   --enable-apple_ieee     use the Apple IEEE codec
1682   --enable-arcstream      use wxArchive streams
1683   --enable-base64         use base64 encoding/decoding functions
1684   --enable-backtrace      use wxStackWalker class for getting backtraces
1685   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1686   --enable-cmdline        use wxCmdLineParser class
1687   --enable-datetime       use wxDateTime class
1688   --enable-debugreport    use wxDebugReport class
1689   --enable-dialupman      use dialup network classes
1690   --enable-dynlib         use wxLibrary class for DLL loading
1691   --enable-dynamicloader  use (new) wxDynamicLibrary class
1692   --enable-exceptions     build exception-safe library
1693   --enable-ffile          use wxFFile class
1694   --enable-file           use wxFile class
1695   --enable-filesystem     use virtual file systems classes
1696   --enable-fontenum       use wxFontEnumerator class
1697   --enable-fontmap        use font encodings conversion classes
1698   --enable-fs_archive     use virtual archive filesystems
1699   --enable-fs_inet        use virtual HTTP/FTP filesystems
1700   --enable-fs_zip         now replaced by fs_archive
1701   --enable-geometry       use geometry class
1702   --enable-log            use logging system
1703   --enable-longlong       use wxLongLong class
1704   --enable-mimetype       use wxMimeTypesManager
1705   --enable-snglinst       use wxSingleInstanceChecker class
1706   --enable-stdpaths       use wxStandardPaths class
1707   --enable-stopwatch      use wxStopWatch class
1708   --enable-streams        use wxStream etc classes
1709   --enable-sysoptions     use wxSystemOptions
1710   --enable-tarstream      use wxTar streams
1711   --enable-textbuf        use wxTextBuffer class
1712   --enable-textfile       use wxTextFile class
1713   --enable-timer          use wxTimer class
1714   --enable-sound          use wxSound class
1715   --enable-mediactrl      use wxMediaCtrl class
1716   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1717   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1718   --enable-zipstream      use wxZip streams
1719   --enable-url            use wxURL class
1720   --enable-variant        use wxVariant class
1721   --enable-protocol       use wxProtocol class
1722   --enable-protocol-http  HTTP support in wxProtocol
1723   --enable-protocol-ftp   FTP support in wxProtocol
1724   --enable-protocol-file  FILE support in wxProtocol
1725   --enable-threads        use threads
1726   --enable-iniconf        use wxIniConfig (Win32 only)
1727   --enable-regkey         use wxRegKey class (Win32 only)
1728   --enable-docview        use document view architecture
1729   --enable-help           use help subsystem
1730   --enable-mshtmlhelp     use MS HTML Help (win32)
1731   --enable-html           use wxHTML sub-library
1732   --enable-htmlhelp       use wxHTML-based help
1733   --enable-xrc            use XRC resources sub-library
1734   --enable-aui            use AUI docking library
1735   --enable-stc            use wxStyledTextCtrl library
1736   --enable-constraints    use layout-constraints system
1737   --enable-printarch      use printing architecture
1738   --enable-mdi            use multiple document interface architecture
1739   --enable-mdidoc         use docview architecture with MDI
1740   --enable-loggui         use standard GUI logger
1741   --enable-logwin         use wxLogWindow
1742   --enable-logdialog      use wxLogDialog
1743   --enable-webkit         use wxWebKitCtrl (Mac)
1744   --enable-richtext       use wxRichTextCtrl
1745   --enable-graphics_ctx   use graphics context 2D drawing API
1746   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1747   --enable-svg            use wxSVGFileDC device context
1748   --enable-clipboard      use wxClipboard class
1749   --enable-dnd            use Drag'n'Drop classes
1750   --enable-metafile       use win32 metafiles
1751   --disable-controls      disable compilation of all standard controls
1752   --enable-accel          use accelerators
1753   --enable-animatectrl    use wxAnimationCtrl class
1754   --enable-button         use wxButton class
1755   --enable-bmpbutton      use wxBitmapButton class
1756   --enable-bmpcombobox    use wxBitmapComboBox class
1757   --enable-calendar       use wxCalendarCtrl class
1758   --enable-caret          use wxCaret class
1759   --enable-checkbox       use wxCheckBox class
1760   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1761   --enable-choice         use wxChoice class
1762   --enable-choicebook     use wxChoicebook class
1763   --enable-collpane       use wxCollapsiblePane class
1764   --enable-colourpicker   use wxColourPickerCtrl class
1765   --enable-combobox       use wxComboBox class
1766   --enable-comboctrl      use wxComboCtrl class
1767   --enable-datepick       use wxDatePickerCtrl class
1768   --enable-dirpicker      use wxDirPickerCtrl class
1769   --enable-display        use wxDisplay class
1770   --enable-detect_sm      use code to detect X11 session manager
1771   --enable-editablebox    use wxEditableListBox class
1772   --enable-filepicker     use wxFilePickerCtrl class
1773   --enable-filectrl       use wxFileCtrl class
1774   --enable-fontpicker     use wxFontPickerCtrl class
1775   --enable-gauge          use wxGauge class
1776   --enable-grid           use wxGrid class
1777   --enable-dataviewctrl   use wxDataViewCtrl class
1778   --enable-hyperlink      use wxHyperlinkCtrl class
1779   --enable-imaglist       use wxImageList class
1780   --enable-listbook       use wxListbook class
1781   --enable-listbox        use wxListBox class
1782   --enable-listctrl       use wxListCtrl class
1783   --enable-notebook       use wxNotebook class
1784   --enable-odcombobox     use wxOwnerDrawnComboBox class
1785   --enable-radiobox       use wxRadioBox class
1786   --enable-radiobtn       use wxRadioButton class
1787   --enable-sash           use wxSashWindow class
1788   --enable-scrollbar      use wxScrollBar class and scrollable windows
1789   --enable-searchctrl     use wxSearchCtrl class
1790   --enable-slider         use wxSlider class
1791   --enable-spinbtn        use wxSpinButton class
1792   --enable-spinctrl       use wxSpinCtrl class
1793   --enable-splitter       use wxSplitterWindow class
1794   --enable-statbmp        use wxStaticBitmap class
1795   --enable-statbox        use wxStaticBox class
1796   --enable-statline       use wxStaticLine class
1797   --enable-stattext       use wxStaticText class
1798   --enable-statusbar      use wxStatusBar class
1799   --enable-tabdialog      use wxTabControl class
1800   --enable-taskbaricon    use wxTaskBarIcon class
1801   --enable-textctrl       use wxTextCtrl class
1802   --enable-togglebtn      use wxToggleButton class
1803   --enable-toolbar        use wxToolBar class
1804   --enable-tbarnative     use native wxToolBar class
1805   --enable-treebook       use wxTreebook class
1806   --enable-toolbook       use wxToolbook class
1807   --enable-treectrl       use wxTreeCtrl class
1808   --enable-tipwindow      use wxTipWindow class
1809   --enable-popupwin       use wxPopUpWindow class
1810   --enable-commondlg      use all common dialogs
1811   --enable-aboutdlg       use wxAboutBox
1812   --enable-choicedlg      use wxChoiceDialog
1813   --enable-coldlg         use wxColourDialog
1814   --enable-filedlg        use wxFileDialog
1815   --enable-finddlg        use wxFindReplaceDialog
1816   --enable-fontdlg        use wxFontDialog
1817   --enable-dirdlg         use wxDirDialog
1818   --enable-msgdlg         use wxMessageDialog
1819   --enable-numberdlg      use wxNumberEntryDialog
1820   --enable-splash         use wxSplashScreen
1821   --enable-textdlg        use wxTextDialog
1822   --enable-tipdlg         use startup tips
1823   --enable-progressdlg    use wxProgressDialog
1824   --enable-wizarddlg      use wxWizard
1825   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1826   --enable-miniframe      use wxMiniFrame class
1827   --enable-tooltips       use wxToolTip class
1828   --enable-splines        use spline drawing code
1829   --enable-mousewheel     use mousewheel
1830   --enable-validators     use wxValidator and derived classes
1831   --enable-busyinfo       use wxBusyInfo
1832   --enable-joystick       use wxJoystick
1833   --enable-metafiles      use wxMetaFile (Win32 only)
1834   --enable-dragimage      use wxDragImage
1835   --enable-accessibility  enable accessibility support
1836   --enable-palette        use wxPalette class
1837   --enable-image          use wxImage class
1838   --enable-gif            use gif images (GIF file format)
1839   --enable-pcx            use pcx images (PCX file format)
1840   --enable-tga            use tga images (TGA file format)
1841   --enable-iff            use iff images (IFF file format)
1842   --enable-pnm            use pnm images (PNM file format)
1843   --enable-xpm            use xpm images (XPM file format)
1844   --enable-icocur         use Windows ICO and CUR formats
1845   --enable-dccache        cache temporary wxDC objects (Win32 only)
1846   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1847   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1848   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1849   --enable-wxdib          use wxDIB class (Win32 only)
1850   --disable-largefile     omit support for large files
1851   --disable-gtktest       do not try to compile and run a test GTK+ program
1852   --disable-gtktest       Do not try to compile and run a test GTK program
1853   --disable-sdltest       Do not try to compile and run a test SDL program
1854   --enable-omf            use OMF object format (OS/2)
1855   --disable-dependency-tracking
1856                           don't use dependency tracking even if the compiler
1857                           can
1858   --disable-precomp-headers
1859                           don't use precompiled headers even if compiler can
1860
1861 Optional Packages:
1862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1864   --without-subdirs       don't generate makefiles for samples/demos/...
1865   --with-flavour=NAME     specify a name to identify this build
1866   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1867   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1868   --with-motif            use Motif/Lesstif
1869   --with-mac              use Mac OS X
1870   --with-cocoa            use Cocoa
1871   --with-wine             use Wine
1872   --with-msw              use MS-Windows
1873   --with-pm               use OS/2 Presentation Manager
1874   --with-mgl              use SciTech MGL
1875   --with-directfb         use DirectFB
1876   --with-microwin         use MicroWindows
1877   --with-x11              use X11
1878   --with-libpng           use libpng (PNG image format)
1879   --with-libjpeg          use libjpeg (JPEG file format)
1880   --with-libtiff          use libtiff (TIFF file format)
1881   --with-libxpm           use libxpm (XPM file format)
1882   --with-libmspack        use libmspack (CHM help files loading)
1883   --without-gtkprint      don't use GTK printing support
1884   --without-gnomeprint    don't use GNOME printing libraries
1885   --with-gnomevfs         use GNOME VFS for associating MIME types
1886   --with-hildon           use Hildon framework for Nokia 770
1887   --with-opengl           use OpenGL (or Mesa)
1888   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1889   --with-sdl              use SDL for audio on Unix
1890   --with-regex            enable support for wxRegEx class
1891   --with-zlib             use zlib for LZW compression
1892   --with-expat            enable XML support using expat parser
1893   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1894   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1895   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1896   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1897   --with-x                use the X Window System
1898   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1899   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1900   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1901   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1902   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1903
1904 Some influential environment variables:
1905   CC          C compiler command
1906   CFLAGS      C compiler flags
1907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1908               nonstandard directory <lib dir>
1909   LIBS        libraries to pass to the linker, e.g. -l<library>
1910   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1911               you have headers in a nonstandard directory <include dir>
1912   CPP         C preprocessor
1913   CXX         C++ compiler command
1914   CXXFLAGS    C++ compiler flags
1915   PKG_CONFIG  path to pkg-config utility
1916   DIRECTFB_CFLAGS
1917               C compiler flags for DIRECTFB, overriding pkg-config
1918   DIRECTFB_LIBS
1919               linker flags for DIRECTFB, overriding pkg-config
1920   XMKMF       Path to xmkmf, Makefile generator for X Window System
1921   PANGOX_CFLAGS
1922               C compiler flags for PANGOX, overriding pkg-config
1923   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1924   PANGOFT2_CFLAGS
1925               C compiler flags for PANGOFT2, overriding pkg-config
1926   PANGOFT2_LIBS
1927               linker flags for PANGOFT2, overriding pkg-config
1928   PANGOXFT_CFLAGS
1929               C compiler flags for PANGOXFT, overriding pkg-config
1930   PANGOXFT_LIBS
1931               linker flags for PANGOXFT, overriding pkg-config
1932   GTKPRINT_CFLAGS
1933               C compiler flags for GTKPRINT, overriding pkg-config
1934   GTKPRINT_LIBS
1935               linker flags for GTKPRINT, overriding pkg-config
1936   LIBGNOMEPRINTUI_CFLAGS
1937               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1938   LIBGNOMEPRINTUI_LIBS
1939               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1940   GNOMEVFS_CFLAGS
1941               C compiler flags for GNOMEVFS, overriding pkg-config
1942   GNOMEVFS_LIBS
1943               linker flags for GNOMEVFS, overriding pkg-config
1944   HILDON_CFLAGS
1945               C compiler flags for HILDON, overriding pkg-config
1946   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1947   CAIRO_CFLAGS
1948               C compiler flags for CAIRO, overriding pkg-config
1949   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1950   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1951   GST_LIBS    linker flags for GST, overriding pkg-config
1952
1953 Use these variables to override the choices made by `configure' or to help
1954 it to find libraries and programs with nonstandard names/locations.
1955
1956 Report bugs to <wx-dev@lists.wxwidgets.org>.
1957 _ACEOF
1958 ac_status=$?
1959 fi
1960
1961 if test "$ac_init_help" = "recursive"; then
1962   # If there are subdirs, report their specific --help.
1963   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1964     test -d "$ac_dir" || continue
1965     ac_builddir=.
1966
1967 case "$ac_dir" in
1968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969 *)
1970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1971   # A ".." for each directory in $ac_dir_suffix.
1972   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1973   case $ac_top_builddir_sub in
1974   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1975   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1976   esac ;;
1977 esac
1978 ac_abs_top_builddir=$ac_pwd
1979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1980 # for backward compatibility:
1981 ac_top_builddir=$ac_top_build_prefix
1982
1983 case $srcdir in
1984   .)  # We are building in place.
1985     ac_srcdir=.
1986     ac_top_srcdir=$ac_top_builddir_sub
1987     ac_abs_top_srcdir=$ac_pwd ;;
1988   [\\/]* | ?:[\\/]* )  # Absolute name.
1989     ac_srcdir=$srcdir$ac_dir_suffix;
1990     ac_top_srcdir=$srcdir
1991     ac_abs_top_srcdir=$srcdir ;;
1992   *) # Relative name.
1993     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1994     ac_top_srcdir=$ac_top_build_prefix$srcdir
1995     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1996 esac
1997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1998
1999     cd "$ac_dir" || { ac_status=$?; continue; }
2000     # Check for guested configure.
2001     if test -f "$ac_srcdir/configure.gnu"; then
2002       echo &&
2003       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2004     elif test -f "$ac_srcdir/configure"; then
2005       echo &&
2006       $SHELL "$ac_srcdir/configure" --help=recursive
2007     else
2008       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2009     fi || ac_status=$?
2010     cd "$ac_pwd" || { ac_status=$?; break; }
2011   done
2012 fi
2013
2014 test -n "$ac_init_help" && exit $ac_status
2015 if $ac_init_version; then
2016   cat <<\_ACEOF
2017 wxWidgets configure 2.9.0
2018 generated by GNU Autoconf 2.61
2019
2020 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2021 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2022 This configure script is free software; the Free Software Foundation
2023 gives unlimited permission to copy, distribute and modify it.
2024 _ACEOF
2025   exit
2026 fi
2027 cat >config.log <<_ACEOF
2028 This file contains any messages produced by compilers while
2029 running configure, to aid debugging if configure makes a mistake.
2030
2031 It was created by wxWidgets $as_me 2.9.0, which was
2032 generated by GNU Autoconf 2.61.  Invocation command line was
2033
2034   $ $0 $@
2035
2036 _ACEOF
2037 exec 5>>config.log
2038 {
2039 cat <<_ASUNAME
2040 ## --------- ##
2041 ## Platform. ##
2042 ## --------- ##
2043
2044 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2045 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2046 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2047 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2048 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049
2050 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2051 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2052
2053 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2054 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2055 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2056 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2057 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2058 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2059 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2060
2061 _ASUNAME
2062
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   echo "PATH: $as_dir"
2069 done
2070 IFS=$as_save_IFS
2071
2072 } >&5
2073
2074 cat >&5 <<_ACEOF
2075
2076
2077 ## ----------- ##
2078 ## Core tests. ##
2079 ## ----------- ##
2080
2081 _ACEOF
2082
2083
2084 # Keep a trace of the command line.
2085 # Strip out --no-create and --no-recursion so they do not pile up.
2086 # Strip out --silent because we don't want to record it for future runs.
2087 # Also quote any args containing shell meta-characters.
2088 # Make two passes to allow for proper duplicate-argument suppression.
2089 ac_configure_args=
2090 ac_configure_args0=
2091 ac_configure_args1=
2092 ac_must_keep_next=false
2093 for ac_pass in 1 2
2094 do
2095   for ac_arg
2096   do
2097     case $ac_arg in
2098     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2099     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2100     | -silent | --silent | --silen | --sile | --sil)
2101       continue ;;
2102     *\'*)
2103       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104     esac
2105     case $ac_pass in
2106     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2107     2)
2108       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2109       if test $ac_must_keep_next = true; then
2110         ac_must_keep_next=false # Got value, back to normal.
2111       else
2112         case $ac_arg in
2113           *=* | --config-cache | -C | -disable-* | --disable-* \
2114           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2115           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2116           | -with-* | --with-* | -without-* | --without-* | --x)
2117             case "$ac_configure_args0 " in
2118               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2119             esac
2120             ;;
2121           -* ) ac_must_keep_next=true ;;
2122         esac
2123       fi
2124       ac_configure_args="$ac_configure_args '$ac_arg'"
2125       ;;
2126     esac
2127   done
2128 done
2129 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2130 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2131
2132 # When interrupted or exit'd, cleanup temporary files, and complete
2133 # config.log.  We remove comments because anyway the quotes in there
2134 # would cause problems or look ugly.
2135 # WARNING: Use '\'' to represent an apostrophe within the trap.
2136 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2137 trap 'exit_status=$?
2138   # Save into config.log some information that might help in debugging.
2139   {
2140     echo
2141
2142     cat <<\_ASBOX
2143 ## ---------------- ##
2144 ## Cache variables. ##
2145 ## ---------------- ##
2146 _ASBOX
2147     echo
2148     # The following way of writing the cache mishandles newlines in values,
2149 (
2150   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2151     eval ac_val=\$$ac_var
2152     case $ac_val in #(
2153     *${as_nl}*)
2154       case $ac_var in #(
2155       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2156 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2157       esac
2158       case $ac_var in #(
2159       _ | IFS | as_nl) ;; #(
2160       *) $as_unset $ac_var ;;
2161       esac ;;
2162     esac
2163   done
2164   (set) 2>&1 |
2165     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166     *${as_nl}ac_space=\ *)
2167       sed -n \
2168         "s/'\''/'\''\\\\'\'''\''/g;
2169           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170       ;; #(
2171     *)
2172       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173       ;;
2174     esac |
2175     sort
2176 )
2177     echo
2178
2179     cat <<\_ASBOX
2180 ## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##
2183 _ASBOX
2184     echo
2185     for ac_var in $ac_subst_vars
2186     do
2187       eval ac_val=\$$ac_var
2188       case $ac_val in
2189       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190       esac
2191       echo "$ac_var='\''$ac_val'\''"
2192     done | sort
2193     echo
2194
2195     if test -n "$ac_subst_files"; then
2196       cat <<\_ASBOX
2197 ## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##
2200 _ASBOX
2201       echo
2202       for ac_var in $ac_subst_files
2203       do
2204         eval ac_val=\$$ac_var
2205         case $ac_val in
2206         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207         esac
2208         echo "$ac_var='\''$ac_val'\''"
2209       done | sort
2210       echo
2211     fi
2212
2213     if test -s confdefs.h; then
2214       cat <<\_ASBOX
2215 ## ----------- ##
2216 ## confdefs.h. ##
2217 ## ----------- ##
2218 _ASBOX
2219       echo
2220       cat confdefs.h
2221       echo
2222     fi
2223     test "$ac_signal" != 0 &&
2224       echo "$as_me: caught signal $ac_signal"
2225     echo "$as_me: exit $exit_status"
2226   } >&5
2227   rm -f core *.core core.conftest.* &&
2228     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229     exit $exit_status
2230 ' 0
2231 for ac_signal in 1 2 13 15; do
2232   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2233 done
2234 ac_signal=0
2235
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2238
2239 # Predefined preprocessor variables.
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 _ACEOF
2244
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 _ACEOF
2249
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 _ACEOF
2254
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 _ACEOF
2259
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 _ACEOF
2264
2265
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer explicitly selected file to automatically selected ones.
2268 if test -n "$CONFIG_SITE"; then
2269   set x "$CONFIG_SITE"
2270 elif test "x$prefix" != xNONE; then
2271   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2272 else
2273   set x "$ac_default_prefix/share/config.site" \
2274         "$ac_default_prefix/etc/config.site"
2275 fi
2276 shift
2277 for ac_site_file
2278 do
2279   if test -r "$ac_site_file"; then
2280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2281 echo "$as_me: loading site script $ac_site_file" >&6;}
2282     sed 's/^/| /' "$ac_site_file" >&5
2283     . "$ac_site_file"
2284   fi
2285 done
2286
2287 if test -r "$cache_file"; then
2288   # Some versions of bash will fail to source /dev/null (special
2289   # files actually), so we avoid doing that.
2290   if test -f "$cache_file"; then
2291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2292 echo "$as_me: loading cache $cache_file" >&6;}
2293     case $cache_file in
2294       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295       *)                      . "./$cache_file";;
2296     esac
2297   fi
2298 else
2299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2300 echo "$as_me: creating cache $cache_file" >&6;}
2301   >$cache_file
2302 fi
2303
2304 # Check that the precious variables saved in the cache have kept the same
2305 # value.
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309   eval ac_new_set=\$ac_env_${ac_var}_set
2310   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311   eval ac_new_val=\$ac_env_${ac_var}_value
2312   case $ac_old_set,$ac_new_set in
2313     set,)
2314       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316       ac_cache_corrupted=: ;;
2317     ,set)
2318       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320       ac_cache_corrupted=: ;;
2321     ,);;
2322     *)
2323       if test "x$ac_old_val" != "x$ac_new_val"; then
2324         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2327 echo "$as_me:   former value:  $ac_old_val" >&2;}
2328         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2329 echo "$as_me:   current value: $ac_new_val" >&2;}
2330         ac_cache_corrupted=:
2331       fi;;
2332   esac
2333   # Pass precious variables to config.status.
2334   if test "$ac_new_set" = set; then
2335     case $ac_new_val in
2336     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337     *) ac_arg=$ac_var=$ac_new_val ;;
2338     esac
2339     case " $ac_configure_args " in
2340       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2341       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2342     esac
2343   fi
2344 done
2345 if $ac_cache_corrupted; then
2346   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2347 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2349 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384
2385
2386
2387 ac_aux_dir=
2388 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2389   if test -f "$ac_dir/install-sh"; then
2390     ac_aux_dir=$ac_dir
2391     ac_install_sh="$ac_aux_dir/install-sh -c"
2392     break
2393   elif test -f "$ac_dir/install.sh"; then
2394     ac_aux_dir=$ac_dir
2395     ac_install_sh="$ac_aux_dir/install.sh -c"
2396     break
2397   elif test -f "$ac_dir/shtool"; then
2398     ac_aux_dir=$ac_dir
2399     ac_install_sh="$ac_aux_dir/shtool install -c"
2400     break
2401   fi
2402 done
2403 if test -z "$ac_aux_dir"; then
2404   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2405 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2406    { (exit 1); exit 1; }; }
2407 fi
2408
2409 # These three variables are undocumented and unsupported,
2410 # and are intended to be withdrawn in a future Autoconf release.
2411 # They can cause serious problems if a builder's source tree is in a directory
2412 # whose full name contains unusual characters.
2413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2415 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2416
2417
2418 # Make sure we can run config.sub.
2419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2420   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2421 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2422    { (exit 1); exit 1; }; }
2423
2424 { echo "$as_me:$LINENO: checking build system type" >&5
2425 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2426 if test "${ac_cv_build+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   ac_build_alias=$build_alias
2430 test "x$ac_build_alias" = x &&
2431   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2432 test "x$ac_build_alias" = x &&
2433   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2435    { (exit 1); exit 1; }; }
2436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2438 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2439    { (exit 1); exit 1; }; }
2440
2441 fi
2442 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2443 echo "${ECHO_T}$ac_cv_build" >&6; }
2444 case $ac_cv_build in
2445 *-*-*) ;;
2446 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2447 echo "$as_me: error: invalid value of canonical build" >&2;}
2448    { (exit 1); exit 1; }; };;
2449 esac
2450 build=$ac_cv_build
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_build
2453 shift
2454 build_cpu=$1
2455 build_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 build_os=$*
2460 IFS=$ac_save_IFS
2461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2462
2463
2464 { echo "$as_me:$LINENO: checking host system type" >&5
2465 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2466 if test "${ac_cv_host+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test "x$host_alias" = x; then
2470   ac_cv_host=$ac_cv_build
2471 else
2472   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2473     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477
2478 fi
2479 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2480 echo "${ECHO_T}$ac_cv_host" >&6; }
2481 case $ac_cv_host in
2482 *-*-*) ;;
2483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2484 echo "$as_me: error: invalid value of canonical host" >&2;}
2485    { (exit 1); exit 1; }; };;
2486 esac
2487 host=$ac_cv_host
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_host
2490 shift
2491 host_cpu=$1
2492 host_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 host_os=$*
2497 IFS=$ac_save_IFS
2498 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 { echo "$as_me:$LINENO: checking target system type" >&5
2502 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2503 if test "${ac_cv_target+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test "x$target_alias" = x; then
2507   ac_cv_target=$ac_cv_host
2508 else
2509   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2510     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 fi
2516 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2517 echo "${ECHO_T}$ac_cv_target" >&6; }
2518 case $ac_cv_target in
2519 *-*-*) ;;
2520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2521 echo "$as_me: error: invalid value of canonical target" >&2;}
2522    { (exit 1); exit 1; }; };;
2523 esac
2524 target=$ac_cv_target
2525 ac_save_IFS=$IFS; IFS='-'
2526 set x $ac_cv_target
2527 shift
2528 target_cpu=$1
2529 target_vendor=$2
2530 shift; shift
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2533 target_os=$*
2534 IFS=$ac_save_IFS
2535 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2536
2537
2538 # The aliases save the names the user supplied, while $host etc.
2539 # will get canonicalized.
2540 test -n "$target_alias" &&
2541   test "$program_prefix$program_suffix$program_transform_name" = \
2542     NONENONEs,x,x, &&
2543   program_prefix=${target_alias}-
2544
2545
2546
2547 wx_major_version_number=2
2548 wx_minor_version_number=9
2549 wx_release_number=0
2550 wx_subrelease_number=0
2551
2552 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2553 WX_VERSION=$WX_RELEASE.$wx_release_number
2554 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2555
2556 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2557
2558
2559 wx_top_builddir="`pwd`"
2560
2561
2562
2563
2564 USE_UNIX=1
2565 USE_OS2=0
2566 USE_WIN32=0
2567 USE_DOS=0
2568 USE_BEOS=0
2569 USE_MAC=0
2570
2571 USE_AIX=
2572 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2573 USE_GNU=                            USE_HPUX=
2574 USE_LINUX=
2575 USE_NETBSD=
2576 USE_OPENBSD=
2577 USE_OSF=                            USE_SGI=
2578 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2579 USE_ULTRIX=
2580 USE_UNIXWARE=
2581
2582 USE_ALPHA=
2583
2584 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2585
2586 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2587
2588 DEFAULT_wxUSE_COCOA=0
2589 DEFAULT_wxUSE_GTK=0
2590 DEFAULT_wxUSE_MAC=0
2591 DEFAULT_wxUSE_MGL=0
2592 DEFAULT_wxUSE_MICROWIN=0
2593 DEFAULT_wxUSE_MOTIF=0
2594 DEFAULT_wxUSE_MSW=0
2595 DEFAULT_wxUSE_PM=0
2596 DEFAULT_wxUSE_X11=0
2597 DEFAULT_wxUSE_DFB=0
2598
2599 DEFAULT_DEFAULT_wxUSE_COCOA=0
2600 DEFAULT_DEFAULT_wxUSE_GTK=0
2601 DEFAULT_DEFAULT_wxUSE_MAC=0
2602 DEFAULT_DEFAULT_wxUSE_MGL=0
2603 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2604 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2605 DEFAULT_DEFAULT_wxUSE_MSW=0
2606 DEFAULT_DEFAULT_wxUSE_PM=0
2607 DEFAULT_DEFAULT_wxUSE_X11=0
2608 DEFAULT_DEFAULT_wxUSE_DFB=0
2609
2610 PROGRAM_EXT=
2611 SO_SUFFIX=so
2612 SAMPLES_RPATH_FLAG=
2613 SAMPLES_RPATH_POSTLINK=
2614
2615 DEFAULT_STD_FLAG=yes
2616
2617 case "${host}" in
2618   *-hp-hpux* )
2619     USE_HPUX=1
2620     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2621     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2622     SO_SUFFIX=sl
2623     cat >>confdefs.h <<\_ACEOF
2624 #define __HPUX__ 1
2625 _ACEOF
2626
2627
2628             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2629   ;;
2630   *-*-linux* )
2631     USE_LINUX=1
2632     cat >>confdefs.h <<\_ACEOF
2633 #define __LINUX__ 1
2634 _ACEOF
2635
2636     TMP=`uname -m`
2637     if test "x$TMP" = "xalpha"; then
2638       USE_ALPHA=1
2639       cat >>confdefs.h <<\_ACEOF
2640 #define __ALPHA__ 1
2641 _ACEOF
2642
2643     fi
2644     DEFAULT_DEFAULT_wxUSE_GTK=1
2645   ;;
2646   *-*-gnu* | *-*-k*bsd*-gnu )
2647     USE_GNU=1
2648     TMP=`uname -m`
2649     if test "x$TMP" = "xalpha"; then
2650       USE_ALPHA=1
2651       cat >>confdefs.h <<\_ACEOF
2652 #define __ALPHA__ 1
2653 _ACEOF
2654
2655     fi
2656     DEFAULT_DEFAULT_wxUSE_GTK=1
2657   ;;
2658   *-*-irix5* | *-*-irix6* )
2659     USE_SGI=1
2660     USE_SVR4=1
2661     cat >>confdefs.h <<\_ACEOF
2662 #define __SGI__ 1
2663 _ACEOF
2664
2665     cat >>confdefs.h <<\_ACEOF
2666 #define __SVR4__ 1
2667 _ACEOF
2668
2669     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2670   ;;
2671   *-*-solaris2* )
2672     USE_SUN=1
2673     USE_SOLARIS=1
2674     USE_SVR4=1
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SUN__ 1
2677 _ACEOF
2678
2679     cat >>confdefs.h <<\_ACEOF
2680 #define __SOLARIS__ 1
2681 _ACEOF
2682
2683     cat >>confdefs.h <<\_ACEOF
2684 #define __SVR4__ 1
2685 _ACEOF
2686
2687     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2688     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2689   ;;
2690   *-*-sunos4* )
2691     USE_SUN=1
2692     USE_SUNOS=1
2693     USE_BSD=1
2694     cat >>confdefs.h <<\_ACEOF
2695 #define __SUN__ 1
2696 _ACEOF
2697
2698     cat >>confdefs.h <<\_ACEOF
2699 #define __SUNOS__ 1
2700 _ACEOF
2701
2702     cat >>confdefs.h <<\_ACEOF
2703 #define __BSD__ 1
2704 _ACEOF
2705
2706     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2707   ;;
2708   *-*-freebsd*)
2709     USE_BSD=1
2710     USE_FREEBSD=1
2711     cat >>confdefs.h <<\_ACEOF
2712 #define __FREEBSD__ 1
2713 _ACEOF
2714
2715     cat >>confdefs.h <<\_ACEOF
2716 #define __BSD__ 1
2717 _ACEOF
2718
2719     DEFAULT_DEFAULT_wxUSE_GTK=1
2720   ;;
2721   *-*-openbsd*|*-*-mirbsd*)
2722     USE_BSD=1
2723     USE_OPENBSD=1
2724     cat >>confdefs.h <<\_ACEOF
2725 #define __OPENBSD__ 1
2726 _ACEOF
2727
2728     cat >>confdefs.h <<\_ACEOF
2729 #define __BSD__ 1
2730 _ACEOF
2731
2732     DEFAULT_DEFAULT_wxUSE_GTK=1
2733   ;;
2734   *-*-netbsd*)
2735     USE_BSD=1
2736     USE_NETBSD=1
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __NETBSD__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __BSD__ 1
2743 _ACEOF
2744
2745     DEFAULT_DEFAULT_wxUSE_GTK=1
2746     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2747
2748             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2749   ;;
2750   *-*-osf* )
2751     USE_ALPHA=1
2752     USE_OSF=1
2753     cat >>confdefs.h <<\_ACEOF
2754 #define __ALPHA__ 1
2755 _ACEOF
2756
2757     cat >>confdefs.h <<\_ACEOF
2758 #define __OSF__ 1
2759 _ACEOF
2760
2761     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2762     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2763   ;;
2764   *-*-dgux5* )
2765     USE_ALPHA=1
2766     USE_SVR4=1
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __ALPHA__ 1
2769 _ACEOF
2770
2771     cat >>confdefs.h <<\_ACEOF
2772 #define __SVR4__ 1
2773 _ACEOF
2774
2775     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2776   ;;
2777   *-*-sysv5* )
2778     USE_SYSV=1
2779     USE_SVR4=1
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __SYSV__ 1
2782 _ACEOF
2783
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __SVR4__ 1
2786 _ACEOF
2787
2788     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2789   ;;
2790   *-*-aix* )
2791     USE_AIX=1
2792     USE_SYSV=1
2793     USE_SVR4=1
2794                         SO_SUFFIX=a
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __AIX__ 1
2797 _ACEOF
2798
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __SYSV__ 1
2801 _ACEOF
2802
2803     cat >>confdefs.h <<\_ACEOF
2804 #define __SVR4__ 1
2805 _ACEOF
2806
2807     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2808   ;;
2809
2810   *-*-*UnixWare*)
2811     USE_SYSV=1
2812     USE_SVR4=1
2813     USE_UNIXWARE=1
2814     cat >>confdefs.h <<\_ACEOF
2815 #define __UNIXWARE__ 1
2816 _ACEOF
2817
2818   ;;
2819
2820   *-*-cygwin* | *-*-mingw32* )
2821                 SO_SUFFIX=dll
2822     PROGRAM_EXT=".exe"
2823     DEFAULT_DEFAULT_wxUSE_MSW=1
2824   ;;
2825
2826   *-pc-msdosdjgpp )
2827     USE_UNIX=0
2828     USE_DOS=1
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __DOS__ 1
2831 _ACEOF
2832
2833     PROGRAM_EXT=".exe"
2834     DEFAULT_DEFAULT_wxUSE_MGL=1
2835   ;;
2836
2837   *-pc-os2_emx | *-pc-os2-emx )
2838     cat >>confdefs.h <<\_ACEOF
2839 #define __EMX__ 1
2840 _ACEOF
2841
2842     USE_OS2=1
2843     cat >>confdefs.h <<\_ACEOF
2844 #define __OS2__ 1
2845 _ACEOF
2846
2847     PROGRAM_EXT=".exe"
2848     DEFAULT_DEFAULT_wxUSE_PM=1
2849         CXX=gcc
2850     LDFLAGS="$LDFLAGS -Zcrtdll"
2851                         ac_executable_extensions=".exe"
2852     export ac_executable_extensions
2853             ac_save_IFS="$IFS"
2854     IFS='\\'
2855     ac_TEMP_PATH=
2856     for ac_dir in $PATH; do
2857       IFS=$ac_save_IFS
2858       if test -z "$ac_TEMP_PATH"; then
2859         ac_TEMP_PATH="$ac_dir"
2860       else
2861         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2862       fi
2863     done
2864     export PATH="$ac_TEMP_PATH"
2865     unset ac_TEMP_PATH
2866     DEFAULT_STD_FLAG=no
2867   ;;
2868
2869   *-*-darwin* )
2870         USE_BSD=1
2871     USE_DARWIN=1
2872     SO_SUFFIX=dylib
2873     cat >>confdefs.h <<\_ACEOF
2874 #define __BSD__ 1
2875 _ACEOF
2876
2877     cat >>confdefs.h <<\_ACEOF
2878 #define __DARWIN__ 1
2879 _ACEOF
2880
2881     cat >>confdefs.h <<\_ACEOF
2882 #define TARGET_CARBON 1
2883 _ACEOF
2884
2885     DEFAULT_DEFAULT_wxUSE_MAC=1
2886     DEFAULT_STD_FLAG=no
2887   ;;
2888   powerpc-apple-macos* )
2889         USE_UNIX=0
2890             ac_cv_c_bigendian=yes
2891     SO_SUFFIX=shlib
2892             DEFAULT_DEFAULT_wxUSE_MAC=1
2893     DEFAULT_STD_FLAG=no
2894   ;;
2895
2896   *-*-beos* )
2897         USE_BEOS=1
2898     cat >>confdefs.h <<\_ACEOF
2899 #define __BEOS__ 1
2900 _ACEOF
2901
2902   ;;
2903
2904   *)
2905     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2906 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2907     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2908 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2909
2910     DEFAULT_DEFAULT_wxUSE_X11=1
2911     DEFAULT_wxUSE_SHARED=no
2912 esac
2913
2914
2915
2916 DEFAULT_wxUSE_ALL_FEATURES=yes
2917
2918 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2919 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2920
2921 DEFAULT_wxUSE_DMALLOC=no
2922 DEFAULT_wxUSE_LIBGNOMEVFS=no
2923 DEFAULT_wxUSE_LIBHILDON=no
2924 DEFAULT_wxUSE_LIBMSPACK=no
2925 DEFAULT_wxUSE_LIBSDL=no
2926 DEFAULT_wxUSE_OPENGL=no
2927
2928 DEFAULT_wxUSE_ACCESSIBILITY=no
2929 DEFAULT_wxUSE_DATAVIEWCTRL=no
2930 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2931 DEFAULT_wxUSE_IPV6=no
2932 DEFAULT_wxUSE_MEDIACTRL=no
2933 DEFAULT_wxUSE_TAB_DIALOG=no
2934 DEFAULT_wxUSE_GSTREAMER8=no
2935
2936 DEFAULT_wxUSE_UNICODE_UTF8=auto
2937 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2938
2939 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2940
2941 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2942
2943 DEFAULT_wxUSE_GTK2=yes
2944
2945 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2946
2947
2948
2949
2950
2951           enablestring=disable
2952           defaultval=
2953           if test -z "$defaultval"; then
2954               if test x"$enablestring" = xdisable; then
2955                   defaultval=yes
2956               else
2957                   defaultval=no
2958               fi
2959           fi
2960
2961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2962 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2963           # Check whether --enable-gui was given.
2964 if test "${enable_gui+set}" = set; then
2965   enableval=$enable_gui;
2966                           if test "$enableval" = yes; then
2967                             wx_cv_use_gui='wxUSE_GUI=yes'
2968                           else
2969                             wx_cv_use_gui='wxUSE_GUI=no'
2970                           fi
2971
2972 else
2973
2974                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2975
2976 fi
2977
2978
2979           eval "$wx_cv_use_gui"
2980
2981           if test x"$enablestring" = xdisable; then
2982             if test $wxUSE_GUI = yes; then
2983               result=no
2984             else
2985               result=yes
2986             fi
2987           else
2988             result=$wxUSE_GUI
2989           fi
2990
2991           { echo "$as_me:$LINENO: result: $result" >&5
2992 echo "${ECHO_T}$result" >&6; }
2993
2994
2995           enablestring=
2996           defaultval=
2997           if test -z "$defaultval"; then
2998               if test x"$enablestring" = xdisable; then
2999                   defaultval=yes
3000               else
3001                   defaultval=no
3002               fi
3003           fi
3004
3005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3006 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3007           # Check whether --enable-monolithic was given.
3008 if test "${enable_monolithic+set}" = set; then
3009   enableval=$enable_monolithic;
3010                           if test "$enableval" = yes; then
3011                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3012                           else
3013                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3014                           fi
3015
3016 else
3017
3018                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3019
3020 fi
3021
3022
3023           eval "$wx_cv_use_monolithic"
3024
3025           if test x"$enablestring" = xdisable; then
3026             if test $wxUSE_MONOLITHIC = yes; then
3027               result=no
3028             else
3029               result=yes
3030             fi
3031           else
3032             result=$wxUSE_MONOLITHIC
3033           fi
3034
3035           { echo "$as_me:$LINENO: result: $result" >&5
3036 echo "${ECHO_T}$result" >&6; }
3037
3038
3039           enablestring=
3040           defaultval=
3041           if test -z "$defaultval"; then
3042               if test x"$enablestring" = xdisable; then
3043                   defaultval=yes
3044               else
3045                   defaultval=no
3046               fi
3047           fi
3048
3049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3050 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3051           # Check whether --enable-plugins was given.
3052 if test "${enable_plugins+set}" = set; then
3053   enableval=$enable_plugins;
3054                           if test "$enableval" = yes; then
3055                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3056                           else
3057                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3058                           fi
3059
3060 else
3061
3062                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3063
3064 fi
3065
3066
3067           eval "$wx_cv_use_plugins"
3068
3069           if test x"$enablestring" = xdisable; then
3070             if test $wxUSE_PLUGINS = yes; then
3071               result=no
3072             else
3073               result=yes
3074             fi
3075           else
3076             result=$wxUSE_PLUGINS
3077           fi
3078
3079           { echo "$as_me:$LINENO: result: $result" >&5
3080 echo "${ECHO_T}$result" >&6; }
3081
3082
3083           withstring=without
3084           defaultval=$wxUSE_ALL_FEATURES
3085           if test -z "$defaultval"; then
3086               if test x"$withstring" = xwithout; then
3087                   defaultval=yes
3088               else
3089                   defaultval=no
3090               fi
3091           fi
3092           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3093 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3094
3095 # Check whether --with-subdirs was given.
3096 if test "${with_subdirs+set}" = set; then
3097   withval=$with_subdirs;
3098                         if test "$withval" = yes; then
3099                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3100                         else
3101                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3102                         fi
3103
3104 else
3105
3106                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3107
3108 fi
3109
3110
3111           eval "$wx_cv_use_subdirs"
3112
3113           if test x"$withstring" = xwithout; then
3114             if test $wxWITH_SUBDIRS = yes; then
3115               result=no
3116             else
3117               result=yes
3118             fi
3119           else
3120             result=$wxWITH_SUBDIRS
3121           fi
3122
3123           { echo "$as_me:$LINENO: result: $result" >&5
3124 echo "${ECHO_T}$result" >&6; }
3125
3126
3127 # Check whether --with-flavour was given.
3128 if test "${with_flavour+set}" = set; then
3129   withval=$with_flavour; WX_FLAVOUR="$withval"
3130 fi
3131
3132
3133           enablestring=
3134           defaultval=
3135           if test -z "$defaultval"; then
3136               if test x"$enablestring" = xdisable; then
3137                   defaultval=yes
3138               else
3139                   defaultval=no
3140               fi
3141           fi
3142
3143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3144 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3145           # Check whether --enable-official_build was given.
3146 if test "${enable_official_build+set}" = set; then
3147   enableval=$enable_official_build;
3148                           if test "$enableval" = yes; then
3149                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3150                           else
3151                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3152                           fi
3153
3154 else
3155
3156                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3157
3158 fi
3159
3160
3161           eval "$wx_cv_use_official_build"
3162
3163           if test x"$enablestring" = xdisable; then
3164             if test $wxUSE_OFFICIAL_BUILD = yes; then
3165               result=no
3166             else
3167               result=yes
3168             fi
3169           else
3170             result=$wxUSE_OFFICIAL_BUILD
3171           fi
3172
3173           { echo "$as_me:$LINENO: result: $result" >&5
3174 echo "${ECHO_T}$result" >&6; }
3175
3176 # Check whether --enable-vendor was given.
3177 if test "${enable_vendor+set}" = set; then
3178   enableval=$enable_vendor; VENDOR="$enableval"
3179 fi
3180
3181 if test "x$VENDOR" = "x"; then
3182     VENDOR="custom"
3183 fi
3184
3185
3186           enablestring=disable
3187           defaultval=
3188           if test -z "$defaultval"; then
3189               if test x"$enablestring" = xdisable; then
3190                   defaultval=yes
3191               else
3192                   defaultval=no
3193               fi
3194           fi
3195
3196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3197 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3198           # Check whether --enable-all-features was given.
3199 if test "${enable_all_features+set}" = set; then
3200   enableval=$enable_all_features;
3201                           if test "$enableval" = yes; then
3202                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3203                           else
3204                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3205                           fi
3206
3207 else
3208
3209                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3210
3211 fi
3212
3213
3214           eval "$wx_cv_use_all_features"
3215
3216           if test x"$enablestring" = xdisable; then
3217             if test $wxUSE_ALL_FEATURES = yes; then
3218               result=no
3219             else
3220               result=yes
3221             fi
3222           else
3223             result=$wxUSE_ALL_FEATURES
3224           fi
3225
3226           { echo "$as_me:$LINENO: result: $result" >&5
3227 echo "${ECHO_T}$result" >&6; }
3228
3229
3230
3231 if test "$wxUSE_GUI" = "yes"; then
3232
3233
3234           enablestring=
3235           defaultval=
3236           if test -z "$defaultval"; then
3237               if test x"$enablestring" = xdisable; then
3238                   defaultval=yes
3239               else
3240                   defaultval=no
3241               fi
3242           fi
3243
3244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3245 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3246           # Check whether --enable-universal was given.
3247 if test "${enable_universal+set}" = set; then
3248   enableval=$enable_universal;
3249                           if test "$enableval" = yes; then
3250                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3251                           else
3252                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3253                           fi
3254
3255 else
3256
3257                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3258
3259 fi
3260
3261
3262           eval "$wx_cv_use_universal"
3263
3264           if test x"$enablestring" = xdisable; then
3265             if test $wxUSE_UNIVERSAL = yes; then
3266               result=no
3267             else
3268               result=yes
3269             fi
3270           else
3271             result=$wxUSE_UNIVERSAL
3272           fi
3273
3274           { echo "$as_me:$LINENO: result: $result" >&5
3275 echo "${ECHO_T}$result" >&6; }
3276
3277 if test "$wxUSE_UNIVERSAL" = "yes"; then
3278
3279 # Check whether --with-themes was given.
3280 if test "${with_themes+set}" = set; then
3281   withval=$with_themes; wxUNIV_THEMES="$withval"
3282 fi
3283
3284 fi
3285
3286
3287 # Check whether --with-gtk was given.
3288 if test "${with_gtk+set}" = set; then
3289   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3290 fi
3291
3292
3293 # Check whether --with-motif was given.
3294 if test "${with_motif+set}" = set; then
3295   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3296 fi
3297
3298
3299 # Check whether --with-mac was given.
3300 if test "${with_mac+set}" = set; then
3301   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3302 fi
3303
3304
3305 # Check whether --with-cocoa was given.
3306 if test "${with_cocoa+set}" = set; then
3307   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3308 fi
3309
3310
3311 # Check whether --with-wine was given.
3312 if test "${with_wine+set}" = set; then
3313   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3314 fi
3315
3316
3317 # Check whether --with-msw was given.
3318 if test "${with_msw+set}" = set; then
3319   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3320 fi
3321
3322
3323 # Check whether --with-pm was given.
3324 if test "${with_pm+set}" = set; then
3325   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3326 fi
3327
3328
3329 # Check whether --with-mgl was given.
3330 if test "${with_mgl+set}" = set; then
3331   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3332 fi
3333
3334
3335 # Check whether --with-directfb was given.
3336 if test "${with_directfb+set}" = set; then
3337   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3338 fi
3339
3340
3341 # Check whether --with-microwin was given.
3342 if test "${with_microwin+set}" = set; then
3343   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3344 fi
3345
3346
3347 # Check whether --with-x11 was given.
3348 if test "${with_x11+set}" = set; then
3349   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3350 fi
3351
3352
3353           enablestring=
3354           defaultval=
3355           if test -z "$defaultval"; then
3356               if test x"$enablestring" = xdisable; then
3357                   defaultval=yes
3358               else
3359                   defaultval=no
3360               fi
3361           fi
3362
3363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3364 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3365           # Check whether --enable-nanox was given.
3366 if test "${enable_nanox+set}" = set; then
3367   enableval=$enable_nanox;
3368                           if test "$enableval" = yes; then
3369                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3370                           else
3371                             wx_cv_use_nanox='wxUSE_NANOX=no'
3372                           fi
3373
3374 else
3375
3376                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3377
3378 fi
3379
3380
3381           eval "$wx_cv_use_nanox"
3382
3383           if test x"$enablestring" = xdisable; then
3384             if test $wxUSE_NANOX = yes; then
3385               result=no
3386             else
3387               result=yes
3388             fi
3389           else
3390             result=$wxUSE_NANOX
3391           fi
3392
3393           { echo "$as_me:$LINENO: result: $result" >&5
3394 echo "${ECHO_T}$result" >&6; }
3395
3396
3397 # Check whether --enable-gtk2 was given.
3398 if test "${enable_gtk2+set}" = set; then
3399   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3400 fi
3401
3402
3403           enablestring=
3404           defaultval=
3405           if test -z "$defaultval"; then
3406               if test x"$enablestring" = xdisable; then
3407                   defaultval=yes
3408               else
3409                   defaultval=no
3410               fi
3411           fi
3412
3413           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3414 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3415           # Check whether --enable-gpe was given.
3416 if test "${enable_gpe+set}" = set; then
3417   enableval=$enable_gpe;
3418                           if test "$enableval" = yes; then
3419                             wx_cv_use_gpe='wxUSE_GPE=yes'
3420                           else
3421                             wx_cv_use_gpe='wxUSE_GPE=no'
3422                           fi
3423
3424 else
3425
3426                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3427
3428 fi
3429
3430
3431           eval "$wx_cv_use_gpe"
3432
3433           if test x"$enablestring" = xdisable; then
3434             if test $wxUSE_GPE = yes; then
3435               result=no
3436             else
3437               result=yes
3438             fi
3439           else
3440             result=$wxUSE_GPE
3441           fi
3442
3443           { echo "$as_me:$LINENO: result: $result" >&5
3444 echo "${ECHO_T}$result" >&6; }
3445
3446
3447
3448
3449           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3450 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3451
3452 # Check whether --with-libpng was given.
3453 if test "${with_libpng+set}" = set; then
3454   withval=$with_libpng;
3455                         if test "$withval" = yes; then
3456                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3457                         elif test "$withval" = no; then
3458                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3459                         elif test "$withval" = sys; then
3460                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3461                         elif test "$withval" = builtin; then
3462                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3463                         else
3464                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3465 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3466    { (exit 1); exit 1; }; }
3467                         fi
3468
3469 else
3470
3471                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3472
3473 fi
3474
3475
3476           eval "$wx_cv_use_libpng"
3477
3478           if test "$wxUSE_LIBPNG" = yes; then
3479             { echo "$as_me:$LINENO: result: yes" >&5
3480 echo "${ECHO_T}yes" >&6; }
3481           elif test "$wxUSE_LIBPNG" = no; then
3482             { echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6; }
3484           elif test "$wxUSE_LIBPNG" = sys; then
3485             { echo "$as_me:$LINENO: result: system version" >&5
3486 echo "${ECHO_T}system version" >&6; }
3487           elif test "$wxUSE_LIBPNG" = builtin; then
3488             { echo "$as_me:$LINENO: result: builtin version" >&5
3489 echo "${ECHO_T}builtin version" >&6; }
3490           else
3491             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3492 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3493    { (exit 1); exit 1; }; }
3494           fi
3495
3496
3497           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3498 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3499
3500 # Check whether --with-libjpeg was given.
3501 if test "${with_libjpeg+set}" = set; then
3502   withval=$with_libjpeg;
3503                         if test "$withval" = yes; then
3504                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3505                         elif test "$withval" = no; then
3506                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3507                         elif test "$withval" = sys; then
3508                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3509                         elif test "$withval" = builtin; then
3510                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3511                         else
3512                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3513 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3514    { (exit 1); exit 1; }; }
3515                         fi
3516
3517 else
3518
3519                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3520
3521 fi
3522
3523
3524           eval "$wx_cv_use_libjpeg"
3525
3526           if test "$wxUSE_LIBJPEG" = yes; then
3527             { echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6; }
3529           elif test "$wxUSE_LIBJPEG" = no; then
3530             { echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6; }
3532           elif test "$wxUSE_LIBJPEG" = sys; then
3533             { echo "$as_me:$LINENO: result: system version" >&5
3534 echo "${ECHO_T}system version" >&6; }
3535           elif test "$wxUSE_LIBJPEG" = builtin; then
3536             { echo "$as_me:$LINENO: result: builtin version" >&5
3537 echo "${ECHO_T}builtin version" >&6; }
3538           else
3539             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3540 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3541    { (exit 1); exit 1; }; }
3542           fi
3543
3544
3545           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3546 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3547
3548 # Check whether --with-libtiff was given.
3549 if test "${with_libtiff+set}" = set; then
3550   withval=$with_libtiff;
3551                         if test "$withval" = yes; then
3552                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3553                         elif test "$withval" = no; then
3554                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3555                         elif test "$withval" = sys; then
3556                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3557                         elif test "$withval" = builtin; then
3558                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3559                         else
3560                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3561 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3562    { (exit 1); exit 1; }; }
3563                         fi
3564
3565 else
3566
3567                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3568
3569 fi
3570
3571
3572           eval "$wx_cv_use_libtiff"
3573
3574           if test "$wxUSE_LIBTIFF" = yes; then
3575             { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3577           elif test "$wxUSE_LIBTIFF" = no; then
3578             { echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6; }
3580           elif test "$wxUSE_LIBTIFF" = sys; then
3581             { echo "$as_me:$LINENO: result: system version" >&5
3582 echo "${ECHO_T}system version" >&6; }
3583           elif test "$wxUSE_LIBTIFF" = builtin; then
3584             { echo "$as_me:$LINENO: result: builtin version" >&5
3585 echo "${ECHO_T}builtin version" >&6; }
3586           else
3587             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3588 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3589    { (exit 1); exit 1; }; }
3590           fi
3591
3592
3593           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3594 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3595
3596 # Check whether --with-libxpm was given.
3597 if test "${with_libxpm+set}" = set; then
3598   withval=$with_libxpm;
3599                         if test "$withval" = yes; then
3600                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3601                         elif test "$withval" = no; then
3602                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3603                         elif test "$withval" = sys; then
3604                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3605                         elif test "$withval" = builtin; then
3606                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3607                         else
3608                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3609 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3610    { (exit 1); exit 1; }; }
3611                         fi
3612
3613 else
3614
3615                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3616
3617 fi
3618
3619
3620           eval "$wx_cv_use_libxpm"
3621
3622           if test "$wxUSE_LIBXPM" = yes; then
3623             { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3625           elif test "$wxUSE_LIBXPM" = no; then
3626             { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628           elif test "$wxUSE_LIBXPM" = sys; then
3629             { echo "$as_me:$LINENO: result: system version" >&5
3630 echo "${ECHO_T}system version" >&6; }
3631           elif test "$wxUSE_LIBXPM" = builtin; then
3632             { echo "$as_me:$LINENO: result: builtin version" >&5
3633 echo "${ECHO_T}builtin version" >&6; }
3634           else
3635             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3636 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3637    { (exit 1); exit 1; }; }
3638           fi
3639
3640
3641           withstring=
3642           defaultval=$wxUSE_ALL_FEATURES
3643           if test -z "$defaultval"; then
3644               if test x"$withstring" = xwithout; then
3645                   defaultval=yes
3646               else
3647                   defaultval=no
3648               fi
3649           fi
3650           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3651 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3652
3653 # Check whether --with-libmspack was given.
3654 if test "${with_libmspack+set}" = set; then
3655   withval=$with_libmspack;
3656                         if test "$withval" = yes; then
3657                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3658                         else
3659                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3660                         fi
3661
3662 else
3663
3664                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3665
3666 fi
3667
3668
3669           eval "$wx_cv_use_libmspack"
3670
3671           if test x"$withstring" = xwithout; then
3672             if test $wxUSE_LIBMSPACK = yes; then
3673               result=no
3674             else
3675               result=yes
3676             fi
3677           else
3678             result=$wxUSE_LIBMSPACK
3679           fi
3680
3681           { echo "$as_me:$LINENO: result: $result" >&5
3682 echo "${ECHO_T}$result" >&6; }
3683
3684
3685           withstring=without
3686           defaultval=$wxUSE_ALL_FEATURES
3687           if test -z "$defaultval"; then
3688               if test x"$withstring" = xwithout; then
3689                   defaultval=yes
3690               else
3691                   defaultval=no
3692               fi
3693           fi
3694           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3695 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3696
3697 # Check whether --with-gtkprint was given.
3698 if test "${with_gtkprint+set}" = set; then
3699   withval=$with_gtkprint;
3700                         if test "$withval" = yes; then
3701                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3702                         else
3703                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3704                         fi
3705
3706 else
3707
3708                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3709
3710 fi
3711
3712
3713           eval "$wx_cv_use_gtkprint"
3714
3715           if test x"$withstring" = xwithout; then
3716             if test $wxUSE_GTKPRINT = yes; then
3717               result=no
3718             else
3719               result=yes
3720             fi
3721           else
3722             result=$wxUSE_GTKPRINT
3723           fi
3724
3725           { echo "$as_me:$LINENO: result: $result" >&5
3726 echo "${ECHO_T}$result" >&6; }
3727
3728
3729           withstring=without
3730           defaultval=$wxUSE_ALL_FEATURES
3731           if test -z "$defaultval"; then
3732               if test x"$withstring" = xwithout; then
3733                   defaultval=yes
3734               else
3735                   defaultval=no
3736               fi
3737           fi
3738           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3739 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3740
3741 # Check whether --with-gnomeprint was given.
3742 if test "${with_gnomeprint+set}" = set; then
3743   withval=$with_gnomeprint;
3744                         if test "$withval" = yes; then
3745                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3746                         else
3747                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3748                         fi
3749
3750 else
3751
3752                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3753
3754 fi
3755
3756
3757           eval "$wx_cv_use_gnomeprint"
3758
3759           if test x"$withstring" = xwithout; then
3760             if test $wxUSE_LIBGNOMEPRINT = yes; then
3761               result=no
3762             else
3763               result=yes
3764             fi
3765           else
3766             result=$wxUSE_LIBGNOMEPRINT
3767           fi
3768
3769           { echo "$as_me:$LINENO: result: $result" >&5
3770 echo "${ECHO_T}$result" >&6; }
3771
3772
3773           withstring=
3774           defaultval=$wxUSE_ALL_FEATURES
3775           if test -z "$defaultval"; then
3776               if test x"$withstring" = xwithout; then
3777                   defaultval=yes
3778               else
3779                   defaultval=no
3780               fi
3781           fi
3782           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3783 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3784
3785 # Check whether --with-gnomevfs was given.
3786 if test "${with_gnomevfs+set}" = set; then
3787   withval=$with_gnomevfs;
3788                         if test "$withval" = yes; then
3789                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3790                         else
3791                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3792                         fi
3793
3794 else
3795
3796                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3797
3798 fi
3799
3800
3801           eval "$wx_cv_use_gnomevfs"
3802
3803           if test x"$withstring" = xwithout; then
3804             if test $wxUSE_LIBGNOMEVFS = yes; then
3805               result=no
3806             else
3807               result=yes
3808             fi
3809           else
3810             result=$wxUSE_LIBGNOMEVFS
3811           fi
3812
3813           { echo "$as_me:$LINENO: result: $result" >&5
3814 echo "${ECHO_T}$result" >&6; }
3815
3816
3817           withstring=
3818           defaultval=$wxUSE_ALL_FEATURES
3819           if test -z "$defaultval"; then
3820               if test x"$withstring" = xwithout; then
3821                   defaultval=yes
3822               else
3823                   defaultval=no
3824               fi
3825           fi
3826           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3827 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3828
3829 # Check whether --with-hildon was given.
3830 if test "${with_hildon+set}" = set; then
3831   withval=$with_hildon;
3832                         if test "$withval" = yes; then
3833                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3834                         else
3835                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3836                         fi
3837
3838 else
3839
3840                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3841
3842 fi
3843
3844
3845           eval "$wx_cv_use_hildon"
3846
3847           if test x"$withstring" = xwithout; then
3848             if test $wxUSE_LIBHILDON = yes; then
3849               result=no
3850             else
3851               result=yes
3852             fi
3853           else
3854             result=$wxUSE_LIBHILDON
3855           fi
3856
3857           { echo "$as_me:$LINENO: result: $result" >&5
3858 echo "${ECHO_T}$result" >&6; }
3859
3860
3861           withstring=
3862           defaultval=$wxUSE_ALL_FEATURES
3863           if test -z "$defaultval"; then
3864               if test x"$withstring" = xwithout; then
3865                   defaultval=yes
3866               else
3867                   defaultval=no
3868               fi
3869           fi
3870           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3871 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
3872
3873 # Check whether --with-opengl was given.
3874 if test "${with_opengl+set}" = set; then
3875   withval=$with_opengl;
3876                         if test "$withval" = yes; then
3877                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
3878                         else
3879                           wx_cv_use_opengl='wxUSE_OPENGL=no'
3880                         fi
3881
3882 else
3883
3884                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
3885
3886 fi
3887
3888
3889           eval "$wx_cv_use_opengl"
3890
3891           if test x"$withstring" = xwithout; then
3892             if test $wxUSE_OPENGL = yes; then
3893               result=no
3894             else
3895               result=yes
3896             fi
3897           else
3898             result=$wxUSE_OPENGL
3899           fi
3900
3901           { echo "$as_me:$LINENO: result: $result" >&5
3902 echo "${ECHO_T}$result" >&6; }
3903
3904
3905 fi
3906
3907
3908           withstring=
3909           defaultval=$wxUSE_ALL_FEATURES
3910           if test -z "$defaultval"; then
3911               if test x"$withstring" = xwithout; then
3912                   defaultval=yes
3913               else
3914                   defaultval=no
3915               fi
3916           fi
3917           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3918 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
3919
3920 # Check whether --with-dmalloc was given.
3921 if test "${with_dmalloc+set}" = set; then
3922   withval=$with_dmalloc;
3923                         if test "$withval" = yes; then
3924                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3925                         else
3926                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
3927                         fi
3928
3929 else
3930
3931                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
3932
3933 fi
3934
3935
3936           eval "$wx_cv_use_dmalloc"
3937
3938           if test x"$withstring" = xwithout; then
3939             if test $wxUSE_DMALLOC = yes; then
3940               result=no
3941             else
3942               result=yes
3943             fi
3944           else
3945             result=$wxUSE_DMALLOC
3946           fi
3947
3948           { echo "$as_me:$LINENO: result: $result" >&5
3949 echo "${ECHO_T}$result" >&6; }
3950
3951
3952           withstring=
3953           defaultval=$wxUSE_ALL_FEATURES
3954           if test -z "$defaultval"; then
3955               if test x"$withstring" = xwithout; then
3956                   defaultval=yes
3957               else
3958                   defaultval=no
3959               fi
3960           fi
3961           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3962 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
3963
3964 # Check whether --with-sdl was given.
3965 if test "${with_sdl+set}" = set; then
3966   withval=$with_sdl;
3967                         if test "$withval" = yes; then
3968                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
3969                         else
3970                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
3971                         fi
3972
3973 else
3974
3975                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
3976
3977 fi
3978
3979
3980           eval "$wx_cv_use_sdl"
3981
3982           if test x"$withstring" = xwithout; then
3983             if test $wxUSE_LIBSDL = yes; then
3984               result=no
3985             else
3986               result=yes
3987             fi
3988           else
3989             result=$wxUSE_LIBSDL
3990           fi
3991
3992           { echo "$as_me:$LINENO: result: $result" >&5
3993 echo "${ECHO_T}$result" >&6; }
3994
3995
3996           { echo "$as_me:$LINENO: checking for --with-regex" >&5
3997 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
3998
3999 # Check whether --with-regex was given.
4000 if test "${with_regex+set}" = set; then
4001   withval=$with_regex;
4002                         if test "$withval" = yes; then
4003                           wx_cv_use_regex='wxUSE_REGEX=yes'
4004                         elif test "$withval" = no; then
4005                           wx_cv_use_regex='wxUSE_REGEX=no'
4006                         elif test "$withval" = sys; then
4007                           wx_cv_use_regex='wxUSE_REGEX=sys'
4008                         elif test "$withval" = builtin; then
4009                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4010                         else
4011                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4012 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4013    { (exit 1); exit 1; }; }
4014                         fi
4015
4016 else
4017
4018                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4019
4020 fi
4021
4022
4023           eval "$wx_cv_use_regex"
4024
4025           if test "$wxUSE_REGEX" = yes; then
4026             { echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6; }
4028           elif test "$wxUSE_REGEX" = no; then
4029             { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4031           elif test "$wxUSE_REGEX" = sys; then
4032             { echo "$as_me:$LINENO: result: system version" >&5
4033 echo "${ECHO_T}system version" >&6; }
4034           elif test "$wxUSE_REGEX" = builtin; then
4035             { echo "$as_me:$LINENO: result: builtin version" >&5
4036 echo "${ECHO_T}builtin version" >&6; }
4037           else
4038             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4039 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4040    { (exit 1); exit 1; }; }
4041           fi
4042
4043
4044           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4045 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4046
4047 # Check whether --with-zlib was given.
4048 if test "${with_zlib+set}" = set; then
4049   withval=$with_zlib;
4050                         if test "$withval" = yes; then
4051                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4052                         elif test "$withval" = no; then
4053                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4054                         elif test "$withval" = sys; then
4055                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4056                         elif test "$withval" = builtin; then
4057                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4058                         else
4059                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4060 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4061    { (exit 1); exit 1; }; }
4062                         fi
4063
4064 else
4065
4066                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4067
4068 fi
4069
4070
4071           eval "$wx_cv_use_zlib"
4072
4073           if test "$wxUSE_ZLIB" = yes; then
4074             { echo "$as_me:$LINENO: result: yes" >&5
4075 echo "${ECHO_T}yes" >&6; }
4076           elif test "$wxUSE_ZLIB" = no; then
4077             { echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6; }
4079           elif test "$wxUSE_ZLIB" = sys; then
4080             { echo "$as_me:$LINENO: result: system version" >&5
4081 echo "${ECHO_T}system version" >&6; }
4082           elif test "$wxUSE_ZLIB" = builtin; then
4083             { echo "$as_me:$LINENO: result: builtin version" >&5
4084 echo "${ECHO_T}builtin version" >&6; }
4085           else
4086             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4087 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4088    { (exit 1); exit 1; }; }
4089           fi
4090
4091
4092           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4093 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4094
4095 # Check whether --with-expat was given.
4096 if test "${with_expat+set}" = set; then
4097   withval=$with_expat;
4098                         if test "$withval" = yes; then
4099                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4100                         elif test "$withval" = no; then
4101                           wx_cv_use_expat='wxUSE_EXPAT=no'
4102                         elif test "$withval" = sys; then
4103                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4104                         elif test "$withval" = builtin; then
4105                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4106                         else
4107                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4108 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4109    { (exit 1); exit 1; }; }
4110                         fi
4111
4112 else
4113
4114                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4115
4116 fi
4117
4118
4119           eval "$wx_cv_use_expat"
4120
4121           if test "$wxUSE_EXPAT" = yes; then
4122             { echo "$as_me:$LINENO: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4124           elif test "$wxUSE_EXPAT" = no; then
4125             { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4127           elif test "$wxUSE_EXPAT" = sys; then
4128             { echo "$as_me:$LINENO: result: system version" >&5
4129 echo "${ECHO_T}system version" >&6; }
4130           elif test "$wxUSE_EXPAT" = builtin; then
4131             { echo "$as_me:$LINENO: result: builtin version" >&5
4132 echo "${ECHO_T}builtin version" >&6; }
4133           else
4134             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4135 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4136    { (exit 1); exit 1; }; }
4137           fi
4138
4139
4140 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4141 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4142
4143 # Check whether --with-macosx-sdk was given.
4144 if test "${with_macosx_sdk+set}" = set; then
4145   withval=$with_macosx_sdk;
4146         wxUSE_MACOSX_SDK=$withval
4147         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4148
4149 fi
4150
4151 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4152 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4153
4154 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4155 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4156
4157 # Check whether --with-macosx-version-min was given.
4158 if test "${with_macosx_version_min+set}" = set; then
4159   withval=$with_macosx_version_min;
4160         wxUSE_MACOSX_VERSION_MIN=$withval
4161         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4162
4163 fi
4164
4165 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4166 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4167
4168
4169
4170           enablestring=disable
4171           defaultval=
4172           if test -z "$defaultval"; then
4173               if test x"$enablestring" = xdisable; then
4174                   defaultval=yes
4175               else
4176                   defaultval=no
4177               fi
4178           fi
4179
4180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4181 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4182           # Check whether --enable-shared was given.
4183 if test "${enable_shared+set}" = set; then
4184   enableval=$enable_shared;
4185                           if test "$enableval" = yes; then
4186                             wx_cv_use_shared='wxUSE_SHARED=yes'
4187                           else
4188                             wx_cv_use_shared='wxUSE_SHARED=no'
4189                           fi
4190
4191 else
4192
4193                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4194
4195 fi
4196
4197
4198           eval "$wx_cv_use_shared"
4199
4200           if test x"$enablestring" = xdisable; then
4201             if test $wxUSE_SHARED = yes; then
4202               result=no
4203             else
4204               result=yes
4205             fi
4206           else
4207             result=$wxUSE_SHARED
4208           fi
4209
4210           { echo "$as_me:$LINENO: result: $result" >&5
4211 echo "${ECHO_T}$result" >&6; }
4212
4213
4214           enablestring=disable
4215           defaultval=
4216           if test -z "$defaultval"; then
4217               if test x"$enablestring" = xdisable; then
4218                   defaultval=yes
4219               else
4220                   defaultval=no
4221               fi
4222           fi
4223
4224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4225 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4226           # Check whether --enable-optimise was given.
4227 if test "${enable_optimise+set}" = set; then
4228   enableval=$enable_optimise;
4229                           if test "$enableval" = yes; then
4230                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4231                           else
4232                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4233                           fi
4234
4235 else
4236
4237                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4238
4239 fi
4240
4241
4242           eval "$wx_cv_use_optimise"
4243
4244           if test x"$enablestring" = xdisable; then
4245             if test $wxUSE_OPTIMISE = yes; then
4246               result=no
4247             else
4248               result=yes
4249             fi
4250           else
4251             result=$wxUSE_OPTIMISE
4252           fi
4253
4254           { echo "$as_me:$LINENO: result: $result" >&5
4255 echo "${ECHO_T}$result" >&6; }
4256
4257
4258           enablestring=
4259           defaultval=
4260           if test -z "$defaultval"; then
4261               if test x"$enablestring" = xdisable; then
4262                   defaultval=yes
4263               else
4264                   defaultval=no
4265               fi
4266           fi
4267
4268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4269 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4270           # Check whether --enable-debug was given.
4271 if test "${enable_debug+set}" = set; then
4272   enableval=$enable_debug;
4273                           if test "$enableval" = yes; then
4274                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4275                           else
4276                             wx_cv_use_debug='wxUSE_DEBUG=no'
4277                           fi
4278
4279 else
4280
4281                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4282
4283 fi
4284
4285
4286           eval "$wx_cv_use_debug"
4287
4288           if test x"$enablestring" = xdisable; then
4289             if test $wxUSE_DEBUG = yes; then
4290               result=no
4291             else
4292               result=yes
4293             fi
4294           else
4295             result=$wxUSE_DEBUG
4296           fi
4297
4298           { echo "$as_me:$LINENO: result: $result" >&5
4299 echo "${ECHO_T}$result" >&6; }
4300
4301
4302           enablestring=
4303           defaultval=
4304           if test -z "$defaultval"; then
4305               if test x"$enablestring" = xdisable; then
4306                   defaultval=yes
4307               else
4308                   defaultval=no
4309               fi
4310           fi
4311
4312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4313 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4314           # Check whether --enable-stl was given.
4315 if test "${enable_stl+set}" = set; then
4316   enableval=$enable_stl;
4317                           if test "$enableval" = yes; then
4318                             wx_cv_use_stl='wxUSE_STL=yes'
4319                           else
4320                             wx_cv_use_stl='wxUSE_STL=no'
4321                           fi
4322
4323 else
4324
4325                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4326
4327 fi
4328
4329
4330           eval "$wx_cv_use_stl"
4331
4332           if test x"$enablestring" = xdisable; then
4333             if test $wxUSE_STL = yes; then
4334               result=no
4335             else
4336               result=yes
4337             fi
4338           else
4339             result=$wxUSE_STL
4340           fi
4341
4342           { echo "$as_me:$LINENO: result: $result" >&5
4343 echo "${ECHO_T}$result" >&6; }
4344
4345
4346           enablestring=
4347           defaultval=
4348           if test -z "$defaultval"; then
4349               if test x"$enablestring" = xdisable; then
4350                   defaultval=yes
4351               else
4352                   defaultval=no
4353               fi
4354           fi
4355
4356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4357 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4358           # Check whether --enable-std_iostreams was given.
4359 if test "${enable_std_iostreams+set}" = set; then
4360   enableval=$enable_std_iostreams;
4361                           if test "$enableval" = yes; then
4362                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4363                           else
4364                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4365                           fi
4366
4367 else
4368
4369                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4370
4371 fi
4372
4373
4374           eval "$wx_cv_use_std_iostreams"
4375
4376           if test x"$enablestring" = xdisable; then
4377             if test $wxUSE_STD_IOSTREAM = yes; then
4378               result=no
4379             else
4380               result=yes
4381             fi
4382           else
4383             result=$wxUSE_STD_IOSTREAM
4384           fi
4385
4386           { echo "$as_me:$LINENO: result: $result" >&5
4387 echo "${ECHO_T}$result" >&6; }
4388
4389
4390           enablestring=
4391           defaultval=
4392           if test -z "$defaultval"; then
4393               if test x"$enablestring" = xdisable; then
4394                   defaultval=yes
4395               else
4396                   defaultval=no
4397               fi
4398           fi
4399
4400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4401 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4402           # Check whether --enable-std_string was given.
4403 if test "${enable_std_string+set}" = set; then
4404   enableval=$enable_std_string;
4405                           if test "$enableval" = yes; then
4406                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4407                           else
4408                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4409                           fi
4410
4411 else
4412
4413                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4414
4415 fi
4416
4417
4418           eval "$wx_cv_use_std_string"
4419
4420           if test x"$enablestring" = xdisable; then
4421             if test $wxUSE_STD_STRING = yes; then
4422               result=no
4423             else
4424               result=yes
4425             fi
4426           else
4427             result=$wxUSE_STD_STRING
4428           fi
4429
4430           { echo "$as_me:$LINENO: result: $result" >&5
4431 echo "${ECHO_T}$result" >&6; }
4432
4433
4434           enablestring=disable
4435           defaultval=
4436           if test -z "$defaultval"; then
4437               if test x"$enablestring" = xdisable; then
4438                   defaultval=yes
4439               else
4440                   defaultval=no
4441               fi
4442           fi
4443
4444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4445 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4446           # Check whether --enable-unicode was given.
4447 if test "${enable_unicode+set}" = set; then
4448   enableval=$enable_unicode;
4449                           if test "$enableval" = yes; then
4450                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4451                           else
4452                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4453                           fi
4454
4455 else
4456
4457                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4458
4459 fi
4460
4461
4462           eval "$wx_cv_use_unicode"
4463
4464           if test x"$enablestring" = xdisable; then
4465             if test $wxUSE_UNICODE = yes; then
4466               result=no
4467             else
4468               result=yes
4469             fi
4470           else
4471             result=$wxUSE_UNICODE
4472           fi
4473
4474           { echo "$as_me:$LINENO: result: $result" >&5
4475 echo "${ECHO_T}$result" >&6; }
4476
4477
4478           enablestring=
4479           defaultval=
4480           if test -z "$defaultval"; then
4481               if test x"$enablestring" = xdisable; then
4482                   defaultval=yes
4483               else
4484                   defaultval=no
4485               fi
4486           fi
4487
4488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4489 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4490           # Check whether --enable-mslu was given.
4491 if test "${enable_mslu+set}" = set; then
4492   enableval=$enable_mslu;
4493                           if test "$enableval" = yes; then
4494                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4495                           else
4496                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4497                           fi
4498
4499 else
4500
4501                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4502
4503 fi
4504
4505
4506           eval "$wx_cv_use_mslu"
4507
4508           if test x"$enablestring" = xdisable; then
4509             if test $wxUSE_UNICODE_MSLU = yes; then
4510               result=no
4511             else
4512               result=yes
4513             fi
4514           else
4515             result=$wxUSE_UNICODE_MSLU
4516           fi
4517
4518           { echo "$as_me:$LINENO: result: $result" >&5
4519 echo "${ECHO_T}$result" >&6; }
4520
4521
4522           enablestring=
4523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4524 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4525           # Check whether --enable-utf8 was given.
4526 if test "${enable_utf8+set}" = set; then
4527   enableval=$enable_utf8;
4528                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4529
4530 else
4531
4532                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4533
4534 fi
4535
4536
4537           eval "$wx_cv_use_utf8"
4538
4539           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4540 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4541
4542
4543           enablestring=
4544           defaultval=
4545           if test -z "$defaultval"; then
4546               if test x"$enablestring" = xdisable; then
4547                   defaultval=yes
4548               else
4549                   defaultval=no
4550               fi
4551           fi
4552
4553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4554 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4555           # Check whether --enable-utf8only was given.
4556 if test "${enable_utf8only+set}" = set; then
4557   enableval=$enable_utf8only;
4558                           if test "$enableval" = yes; then
4559                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4560                           else
4561                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4562                           fi
4563
4564 else
4565
4566                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4567
4568 fi
4569
4570
4571           eval "$wx_cv_use_utf8only"
4572
4573           if test x"$enablestring" = xdisable; then
4574             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4575               result=no
4576             else
4577               result=yes
4578             fi
4579           else
4580             result=$wxUSE_UNICODE_UTF8_LOCALE
4581           fi
4582
4583           { echo "$as_me:$LINENO: result: $result" >&5
4584 echo "${ECHO_T}$result" >&6; }
4585
4586
4587           enablestring=
4588           defaultval=
4589           if test -z "$defaultval"; then
4590               if test x"$enablestring" = xdisable; then
4591                   defaultval=yes
4592               else
4593                   defaultval=no
4594               fi
4595           fi
4596
4597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4598 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4599           # Check whether --enable-extended_rtti was given.
4600 if test "${enable_extended_rtti+set}" = set; then
4601   enableval=$enable_extended_rtti;
4602                           if test "$enableval" = yes; then
4603                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4604                           else
4605                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4606                           fi
4607
4608 else
4609
4610                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4611
4612 fi
4613
4614
4615           eval "$wx_cv_use_extended_rtti"
4616
4617           if test x"$enablestring" = xdisable; then
4618             if test $wxUSE_EXTENDED_RTTI = yes; then
4619               result=no
4620             else
4621               result=yes
4622             fi
4623           else
4624             result=$wxUSE_EXTENDED_RTTI
4625           fi
4626
4627           { echo "$as_me:$LINENO: result: $result" >&5
4628 echo "${ECHO_T}$result" >&6; }
4629
4630 if test "$USE_OS2" = 1; then
4631     DEFAULT_wxUSE_OMF=no
4632
4633           enablestring=
4634           defaultval=
4635           if test -z "$defaultval"; then
4636               if test x"$enablestring" = xdisable; then
4637                   defaultval=yes
4638               else
4639                   defaultval=no
4640               fi
4641           fi
4642
4643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4644 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4645           # Check whether --enable-omf was given.
4646 if test "${enable_omf+set}" = set; then
4647   enableval=$enable_omf;
4648                           if test "$enableval" = yes; then
4649                             wx_cv_use_omf='wxUSE_OMF=yes'
4650                           else
4651                             wx_cv_use_omf='wxUSE_OMF=no'
4652                           fi
4653
4654 else
4655
4656                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4657
4658 fi
4659
4660
4661           eval "$wx_cv_use_omf"
4662
4663           if test x"$enablestring" = xdisable; then
4664             if test $wxUSE_OMF = yes; then
4665               result=no
4666             else
4667               result=yes
4668             fi
4669           else
4670             result=$wxUSE_OMF
4671           fi
4672
4673           { echo "$as_me:$LINENO: result: $result" >&5
4674 echo "${ECHO_T}$result" >&6; }
4675
4676 fi
4677
4678 if test "$wxUSE_DEBUG" = "yes"; then
4679   DEFAULT_wxUSE_DEBUG_FLAG=yes
4680   DEFAULT_wxUSE_DEBUG_INFO=yes
4681   BUILD=debug
4682 elif test "$wxUSE_DEBUG" = "no"; then
4683   DEFAULT_wxUSE_DEBUG_FLAG=no
4684   DEFAULT_wxUSE_DEBUG_INFO=no
4685   BUILD=release
4686 fi
4687
4688
4689           enablestring=
4690           defaultval=
4691           if test -z "$defaultval"; then
4692               if test x"$enablestring" = xdisable; then
4693                   defaultval=yes
4694               else
4695                   defaultval=no
4696               fi
4697           fi
4698
4699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4700 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4701           # Check whether --enable-debug_flag was given.
4702 if test "${enable_debug_flag+set}" = set; then
4703   enableval=$enable_debug_flag;
4704                           if test "$enableval" = yes; then
4705                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4706                           else
4707                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4708                           fi
4709
4710 else
4711
4712                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4713
4714 fi
4715
4716
4717           eval "$wx_cv_use_debug_flag"
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_DEBUG_FLAG = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_DEBUG_FLAG
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732
4733           enablestring=
4734           defaultval=
4735           if test -z "$defaultval"; then
4736               if test x"$enablestring" = xdisable; then
4737                   defaultval=yes
4738               else
4739                   defaultval=no
4740               fi
4741           fi
4742
4743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4745           # Check whether --enable-debug_info was given.
4746 if test "${enable_debug_info+set}" = set; then
4747   enableval=$enable_debug_info;
4748                           if test "$enableval" = yes; then
4749                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4750                           else
4751                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4752                           fi
4753
4754 else
4755
4756                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4757
4758 fi
4759
4760
4761           eval "$wx_cv_use_debug_info"
4762
4763           if test x"$enablestring" = xdisable; then
4764             if test $wxUSE_DEBUG_INFO = yes; then
4765               result=no
4766             else
4767               result=yes
4768             fi
4769           else
4770             result=$wxUSE_DEBUG_INFO
4771           fi
4772
4773           { echo "$as_me:$LINENO: result: $result" >&5
4774 echo "${ECHO_T}$result" >&6; }
4775
4776
4777           enablestring=
4778           defaultval=
4779           if test -z "$defaultval"; then
4780               if test x"$enablestring" = xdisable; then
4781                   defaultval=yes
4782               else
4783                   defaultval=no
4784               fi
4785           fi
4786
4787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4788 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4789           # Check whether --enable-debug_gdb was given.
4790 if test "${enable_debug_gdb+set}" = set; then
4791   enableval=$enable_debug_gdb;
4792                           if test "$enableval" = yes; then
4793                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4794                           else
4795                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4796                           fi
4797
4798 else
4799
4800                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4801
4802 fi
4803
4804
4805           eval "$wx_cv_use_debug_gdb"
4806
4807           if test x"$enablestring" = xdisable; then
4808             if test $wxUSE_DEBUG_GDB = yes; then
4809               result=no
4810             else
4811               result=yes
4812             fi
4813           else
4814             result=$wxUSE_DEBUG_GDB
4815           fi
4816
4817           { echo "$as_me:$LINENO: result: $result" >&5
4818 echo "${ECHO_T}$result" >&6; }
4819
4820
4821           enablestring=
4822           defaultval=
4823           if test -z "$defaultval"; then
4824               if test x"$enablestring" = xdisable; then
4825                   defaultval=yes
4826               else
4827                   defaultval=no
4828               fi
4829           fi
4830
4831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4832 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4833           # Check whether --enable-debug_cntxt was given.
4834 if test "${enable_debug_cntxt+set}" = set; then
4835   enableval=$enable_debug_cntxt;
4836                           if test "$enableval" = yes; then
4837                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4838                           else
4839                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4840                           fi
4841
4842 else
4843
4844                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4845
4846 fi
4847
4848
4849           eval "$wx_cv_use_debug_cntxt"
4850
4851           if test x"$enablestring" = xdisable; then
4852             if test $wxUSE_DEBUG_CONTEXT = yes; then
4853               result=no
4854             else
4855               result=yes
4856             fi
4857           else
4858             result=$wxUSE_DEBUG_CONTEXT
4859           fi
4860
4861           { echo "$as_me:$LINENO: result: $result" >&5
4862 echo "${ECHO_T}$result" >&6; }
4863
4864
4865           enablestring=
4866           defaultval=
4867           if test -z "$defaultval"; then
4868               if test x"$enablestring" = xdisable; then
4869                   defaultval=yes
4870               else
4871                   defaultval=no
4872               fi
4873           fi
4874
4875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4876 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4877           # Check whether --enable-mem_tracing was given.
4878 if test "${enable_mem_tracing+set}" = set; then
4879   enableval=$enable_mem_tracing;
4880                           if test "$enableval" = yes; then
4881                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4882                           else
4883                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4884                           fi
4885
4886 else
4887
4888                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4889
4890 fi
4891
4892
4893           eval "$wx_cv_use_mem_tracing"
4894
4895           if test x"$enablestring" = xdisable; then
4896             if test $wxUSE_MEM_TRACING = yes; then
4897               result=no
4898             else
4899               result=yes
4900             fi
4901           else
4902             result=$wxUSE_MEM_TRACING
4903           fi
4904
4905           { echo "$as_me:$LINENO: result: $result" >&5
4906 echo "${ECHO_T}$result" >&6; }
4907
4908
4909           enablestring=
4910           defaultval=
4911           if test -z "$defaultval"; then
4912               if test x"$enablestring" = xdisable; then
4913                   defaultval=yes
4914               else
4915                   defaultval=no
4916               fi
4917           fi
4918
4919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4920 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
4921           # Check whether --enable-profile was given.
4922 if test "${enable_profile+set}" = set; then
4923   enableval=$enable_profile;
4924                           if test "$enableval" = yes; then
4925                             wx_cv_use_profile='wxUSE_PROFILE=yes'
4926                           else
4927                             wx_cv_use_profile='wxUSE_PROFILE=no'
4928                           fi
4929
4930 else
4931
4932                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
4933
4934 fi
4935
4936
4937           eval "$wx_cv_use_profile"
4938
4939           if test x"$enablestring" = xdisable; then
4940             if test $wxUSE_PROFILE = yes; then
4941               result=no
4942             else
4943               result=yes
4944             fi
4945           else
4946             result=$wxUSE_PROFILE
4947           fi
4948
4949           { echo "$as_me:$LINENO: result: $result" >&5
4950 echo "${ECHO_T}$result" >&6; }
4951
4952
4953           enablestring=
4954           defaultval=
4955           if test -z "$defaultval"; then
4956               if test x"$enablestring" = xdisable; then
4957                   defaultval=yes
4958               else
4959                   defaultval=no
4960               fi
4961           fi
4962
4963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4964 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
4965           # Check whether --enable-no_rtti was given.
4966 if test "${enable_no_rtti+set}" = set; then
4967   enableval=$enable_no_rtti;
4968                           if test "$enableval" = yes; then
4969                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4970                           else
4971                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4972                           fi
4973
4974 else
4975
4976                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
4977
4978 fi
4979
4980
4981           eval "$wx_cv_use_no_rtti"
4982
4983           if test x"$enablestring" = xdisable; then
4984             if test $wxUSE_NO_RTTI = yes; then
4985               result=no
4986             else
4987               result=yes
4988             fi
4989           else
4990             result=$wxUSE_NO_RTTI
4991           fi
4992
4993           { echo "$as_me:$LINENO: result: $result" >&5
4994 echo "${ECHO_T}$result" >&6; }
4995
4996
4997           enablestring=
4998           defaultval=
4999           if test -z "$defaultval"; then
5000               if test x"$enablestring" = xdisable; then
5001                   defaultval=yes
5002               else
5003                   defaultval=no
5004               fi
5005           fi
5006
5007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5008 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5009           # Check whether --enable-no_exceptions was given.
5010 if test "${enable_no_exceptions+set}" = set; then
5011   enableval=$enable_no_exceptions;
5012                           if test "$enableval" = yes; then
5013                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5014                           else
5015                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5016                           fi
5017
5018 else
5019
5020                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5021
5022 fi
5023
5024
5025           eval "$wx_cv_use_no_exceptions"
5026
5027           if test x"$enablestring" = xdisable; then
5028             if test $wxUSE_NO_EXCEPTIONS = yes; then
5029               result=no
5030             else
5031               result=yes
5032             fi
5033           else
5034             result=$wxUSE_NO_EXCEPTIONS
5035           fi
5036
5037           { echo "$as_me:$LINENO: result: $result" >&5
5038 echo "${ECHO_T}$result" >&6; }
5039
5040
5041           enablestring=
5042           defaultval=
5043           if test -z "$defaultval"; then
5044               if test x"$enablestring" = xdisable; then
5045                   defaultval=yes
5046               else
5047                   defaultval=no
5048               fi
5049           fi
5050
5051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5052 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5053           # Check whether --enable-permissive was given.
5054 if test "${enable_permissive+set}" = set; then
5055   enableval=$enable_permissive;
5056                           if test "$enableval" = yes; then
5057                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5058                           else
5059                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5060                           fi
5061
5062 else
5063
5064                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5065
5066 fi
5067
5068
5069           eval "$wx_cv_use_permissive"
5070
5071           if test x"$enablestring" = xdisable; then
5072             if test $wxUSE_PERMISSIVE = yes; then
5073               result=no
5074             else
5075               result=yes
5076             fi
5077           else
5078             result=$wxUSE_PERMISSIVE
5079           fi
5080
5081           { echo "$as_me:$LINENO: result: $result" >&5
5082 echo "${ECHO_T}$result" >&6; }
5083
5084
5085           enablestring=
5086           defaultval=
5087           if test -z "$defaultval"; then
5088               if test x"$enablestring" = xdisable; then
5089                   defaultval=yes
5090               else
5091                   defaultval=no
5092               fi
5093           fi
5094
5095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5096 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5097           # Check whether --enable-no_deps was given.
5098 if test "${enable_no_deps+set}" = set; then
5099   enableval=$enable_no_deps;
5100                           if test "$enableval" = yes; then
5101                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5102                           else
5103                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5104                           fi
5105
5106 else
5107
5108                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5109
5110 fi
5111
5112
5113           eval "$wx_cv_use_no_deps"
5114
5115           if test x"$enablestring" = xdisable; then
5116             if test $wxUSE_NO_DEPS = yes; then
5117               result=no
5118             else
5119               result=yes
5120             fi
5121           else
5122             result=$wxUSE_NO_DEPS
5123           fi
5124
5125           { echo "$as_me:$LINENO: result: $result" >&5
5126 echo "${ECHO_T}$result" >&6; }
5127
5128
5129           enablestring=disable
5130           defaultval=
5131           if test -z "$defaultval"; then
5132               if test x"$enablestring" = xdisable; then
5133                   defaultval=yes
5134               else
5135                   defaultval=no
5136               fi
5137           fi
5138
5139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5140 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5141           # Check whether --enable-vararg_macros was given.
5142 if test "${enable_vararg_macros+set}" = set; then
5143   enableval=$enable_vararg_macros;
5144                           if test "$enableval" = yes; then
5145                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5146                           else
5147                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5148                           fi
5149
5150 else
5151
5152                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5153
5154 fi
5155
5156
5157           eval "$wx_cv_use_vararg_macros"
5158
5159           if test x"$enablestring" = xdisable; then
5160             if test $wxUSE_VARARG_MACROS = yes; then
5161               result=no
5162             else
5163               result=yes
5164             fi
5165           else
5166             result=$wxUSE_VARARG_MACROS
5167           fi
5168
5169           { echo "$as_me:$LINENO: result: $result" >&5
5170 echo "${ECHO_T}$result" >&6; }
5171
5172
5173           enablestring=
5174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5176           # Check whether --enable-universal_binary was given.
5177 if test "${enable_universal_binary+set}" = set; then
5178   enableval=$enable_universal_binary;
5179                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5180
5181 else
5182
5183                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5184
5185 fi
5186
5187
5188           eval "$wx_cv_use_universal_binary"
5189
5190           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5191 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5192
5193
5194
5195           enablestring=
5196           defaultval=
5197           if test -z "$defaultval"; then
5198               if test x"$enablestring" = xdisable; then
5199                   defaultval=yes
5200               else
5201                   defaultval=no
5202               fi
5203           fi
5204
5205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5206 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5207           # Check whether --enable-compat26 was given.
5208 if test "${enable_compat26+set}" = set; then
5209   enableval=$enable_compat26;
5210                           if test "$enableval" = yes; then
5211                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5212                           else
5213                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5214                           fi
5215
5216 else
5217
5218                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5219
5220 fi
5221
5222
5223           eval "$wx_cv_use_compat26"
5224
5225           if test x"$enablestring" = xdisable; then
5226             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5227               result=no
5228             else
5229               result=yes
5230             fi
5231           else
5232             result=$WXWIN_COMPATIBILITY_2_6
5233           fi
5234
5235           { echo "$as_me:$LINENO: result: $result" >&5
5236 echo "${ECHO_T}$result" >&6; }
5237
5238
5239           enablestring=disable
5240           defaultval=
5241           if test -z "$defaultval"; then
5242               if test x"$enablestring" = xdisable; then
5243                   defaultval=yes
5244               else
5245                   defaultval=no
5246               fi
5247           fi
5248
5249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5250 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5251           # Check whether --enable-compat28 was given.
5252 if test "${enable_compat28+set}" = set; then
5253   enableval=$enable_compat28;
5254                           if test "$enableval" = yes; then
5255                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5256                           else
5257                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5258                           fi
5259
5260 else
5261
5262                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5263
5264 fi
5265
5266
5267           eval "$wx_cv_use_compat28"
5268
5269           if test x"$enablestring" = xdisable; then
5270             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5271               result=no
5272             else
5273               result=yes
5274             fi
5275           else
5276             result=$WXWIN_COMPATIBILITY_2_8
5277           fi
5278
5279           { echo "$as_me:$LINENO: result: $result" >&5
5280 echo "${ECHO_T}$result" >&6; }
5281
5282
5283
5284           enablestring=disable
5285           defaultval=
5286           if test -z "$defaultval"; then
5287               if test x"$enablestring" = xdisable; then
5288                   defaultval=yes
5289               else
5290                   defaultval=no
5291               fi
5292           fi
5293
5294           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5295 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5296           # Check whether --enable-rpath was given.
5297 if test "${enable_rpath+set}" = set; then
5298   enableval=$enable_rpath;
5299                           if test "$enableval" = yes; then
5300                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5301                           else
5302                             wx_cv_use_rpath='wxUSE_RPATH=no'
5303                           fi
5304
5305 else
5306
5307                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5308
5309 fi
5310
5311
5312           eval "$wx_cv_use_rpath"
5313
5314           if test x"$enablestring" = xdisable; then
5315             if test $wxUSE_RPATH = yes; then
5316               result=no
5317             else
5318               result=yes
5319             fi
5320           else
5321             result=$wxUSE_RPATH
5322           fi
5323
5324           { echo "$as_me:$LINENO: result: $result" >&5
5325 echo "${ECHO_T}$result" >&6; }
5326
5327
5328
5329           enablestring=
5330           defaultval=
5331           if test -z "$defaultval"; then
5332               if test x"$enablestring" = xdisable; then
5333                   defaultval=yes
5334               else
5335                   defaultval=no
5336               fi
5337           fi
5338
5339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5340 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5341           # Check whether --enable-objc_uniquifying was given.
5342 if test "${enable_objc_uniquifying+set}" = set; then
5343   enableval=$enable_objc_uniquifying;
5344                           if test "$enableval" = yes; then
5345                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5346                           else
5347                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5348                           fi
5349
5350 else
5351
5352                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5353
5354 fi
5355
5356
5357           eval "$wx_cv_use_objc_uniquifying"
5358
5359           if test x"$enablestring" = xdisable; then
5360             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5361               result=no
5362             else
5363               result=yes
5364             fi
5365           else
5366             result=$wxUSE_OBJC_UNIQUIFYING
5367           fi
5368
5369           { echo "$as_me:$LINENO: result: $result" >&5
5370 echo "${ECHO_T}$result" >&6; }
5371
5372
5373
5374           enablestring=disable
5375           defaultval=
5376           if test -z "$defaultval"; then
5377               if test x"$enablestring" = xdisable; then
5378                   defaultval=yes
5379               else
5380                   defaultval=no
5381               fi
5382           fi
5383
5384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5385 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5386           # Check whether --enable-visibility was given.
5387 if test "${enable_visibility+set}" = set; then
5388   enableval=$enable_visibility;
5389                           if test "$enableval" = yes; then
5390                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5391                           else
5392                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5393                           fi
5394
5395 else
5396
5397                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5398
5399 fi
5400
5401
5402           eval "$wx_cv_use_visibility"
5403
5404           if test x"$enablestring" = xdisable; then
5405             if test $wxUSE_VISIBILITY = yes; then
5406               result=no
5407             else
5408               result=yes
5409             fi
5410           else
5411             result=$wxUSE_VISIBILITY
5412           fi
5413
5414           { echo "$as_me:$LINENO: result: $result" >&5
5415 echo "${ECHO_T}$result" >&6; }
5416
5417
5418
5419
5420           enablestring=
5421           defaultval=$wxUSE_ALL_FEATURES
5422           if test -z "$defaultval"; then
5423               if test x"$enablestring" = xdisable; then
5424                   defaultval=yes
5425               else
5426                   defaultval=no
5427               fi
5428           fi
5429
5430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5431 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5432           # Check whether --enable-intl was given.
5433 if test "${enable_intl+set}" = set; then
5434   enableval=$enable_intl;
5435                           if test "$enableval" = yes; then
5436                             wx_cv_use_intl='wxUSE_INTL=yes'
5437                           else
5438                             wx_cv_use_intl='wxUSE_INTL=no'
5439                           fi
5440
5441 else
5442
5443                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5444
5445 fi
5446
5447
5448           eval "$wx_cv_use_intl"
5449
5450           if test x"$enablestring" = xdisable; then
5451             if test $wxUSE_INTL = yes; then
5452               result=no
5453             else
5454               result=yes
5455             fi
5456           else
5457             result=$wxUSE_INTL
5458           fi
5459
5460           { echo "$as_me:$LINENO: result: $result" >&5
5461 echo "${ECHO_T}$result" >&6; }
5462
5463
5464           enablestring=
5465           defaultval=$wxUSE_ALL_FEATURES
5466           if test -z "$defaultval"; then
5467               if test x"$enablestring" = xdisable; then
5468                   defaultval=yes
5469               else
5470                   defaultval=no
5471               fi
5472           fi
5473
5474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5475 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5476           # Check whether --enable-config was given.
5477 if test "${enable_config+set}" = set; then
5478   enableval=$enable_config;
5479                           if test "$enableval" = yes; then
5480                             wx_cv_use_config='wxUSE_CONFIG=yes'
5481                           else
5482                             wx_cv_use_config='wxUSE_CONFIG=no'
5483                           fi
5484
5485 else
5486
5487                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5488
5489 fi
5490
5491
5492           eval "$wx_cv_use_config"
5493
5494           if test x"$enablestring" = xdisable; then
5495             if test $wxUSE_CONFIG = yes; then
5496               result=no
5497             else
5498               result=yes
5499             fi
5500           else
5501             result=$wxUSE_CONFIG
5502           fi
5503
5504           { echo "$as_me:$LINENO: result: $result" >&5
5505 echo "${ECHO_T}$result" >&6; }
5506
5507
5508
5509           enablestring=
5510           defaultval=$wxUSE_ALL_FEATURES
5511           if test -z "$defaultval"; then
5512               if test x"$enablestring" = xdisable; then
5513                   defaultval=yes
5514               else
5515                   defaultval=no
5516               fi
5517           fi
5518
5519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5520 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5521           # Check whether --enable-protocols was given.
5522 if test "${enable_protocols+set}" = set; then
5523   enableval=$enable_protocols;
5524                           if test "$enableval" = yes; then
5525                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5526                           else
5527                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5528                           fi
5529
5530 else
5531
5532                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5533
5534 fi
5535
5536
5537           eval "$wx_cv_use_protocols"
5538
5539           if test x"$enablestring" = xdisable; then
5540             if test $wxUSE_PROTOCOL = yes; then
5541               result=no
5542             else
5543               result=yes
5544             fi
5545           else
5546             result=$wxUSE_PROTOCOL
5547           fi
5548
5549           { echo "$as_me:$LINENO: result: $result" >&5
5550 echo "${ECHO_T}$result" >&6; }
5551
5552
5553           enablestring=
5554           defaultval=$wxUSE_ALL_FEATURES
5555           if test -z "$defaultval"; then
5556               if test x"$enablestring" = xdisable; then
5557                   defaultval=yes
5558               else
5559                   defaultval=no
5560               fi
5561           fi
5562
5563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5564 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5565           # Check whether --enable-ftp was given.
5566 if test "${enable_ftp+set}" = set; then
5567   enableval=$enable_ftp;
5568                           if test "$enableval" = yes; then
5569                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5570                           else
5571                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5572                           fi
5573
5574 else
5575
5576                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5577
5578 fi
5579
5580
5581           eval "$wx_cv_use_ftp"
5582
5583           if test x"$enablestring" = xdisable; then
5584             if test $wxUSE_PROTOCOL_FTP = yes; then
5585               result=no
5586             else
5587               result=yes
5588             fi
5589           else
5590             result=$wxUSE_PROTOCOL_FTP
5591           fi
5592
5593           { echo "$as_me:$LINENO: result: $result" >&5
5594 echo "${ECHO_T}$result" >&6; }
5595
5596
5597           enablestring=
5598           defaultval=$wxUSE_ALL_FEATURES
5599           if test -z "$defaultval"; then
5600               if test x"$enablestring" = xdisable; then
5601                   defaultval=yes
5602               else
5603                   defaultval=no
5604               fi
5605           fi
5606
5607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5608 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5609           # Check whether --enable-http was given.
5610 if test "${enable_http+set}" = set; then
5611   enableval=$enable_http;
5612                           if test "$enableval" = yes; then
5613                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5614                           else
5615                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5616                           fi
5617
5618 else
5619
5620                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5621
5622 fi
5623
5624
5625           eval "$wx_cv_use_http"
5626
5627           if test x"$enablestring" = xdisable; then
5628             if test $wxUSE_PROTOCOL_HTTP = yes; then
5629               result=no
5630             else
5631               result=yes
5632             fi
5633           else
5634             result=$wxUSE_PROTOCOL_HTTP
5635           fi
5636
5637           { echo "$as_me:$LINENO: result: $result" >&5
5638 echo "${ECHO_T}$result" >&6; }
5639
5640
5641           enablestring=
5642           defaultval=$wxUSE_ALL_FEATURES
5643           if test -z "$defaultval"; then
5644               if test x"$enablestring" = xdisable; then
5645                   defaultval=yes
5646               else
5647                   defaultval=no
5648               fi
5649           fi
5650
5651           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5652 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5653           # Check whether --enable-fileproto was given.
5654 if test "${enable_fileproto+set}" = set; then
5655   enableval=$enable_fileproto;
5656                           if test "$enableval" = yes; then
5657                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5658                           else
5659                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5660                           fi
5661
5662 else
5663
5664                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5665
5666 fi
5667
5668
5669           eval "$wx_cv_use_fileproto"
5670
5671           if test x"$enablestring" = xdisable; then
5672             if test $wxUSE_PROTOCOL_FILE = yes; then
5673               result=no
5674             else
5675               result=yes
5676             fi
5677           else
5678             result=$wxUSE_PROTOCOL_FILE
5679           fi
5680
5681           { echo "$as_me:$LINENO: result: $result" >&5
5682 echo "${ECHO_T}$result" >&6; }
5683
5684
5685           enablestring=
5686           defaultval=$wxUSE_ALL_FEATURES
5687           if test -z "$defaultval"; then
5688               if test x"$enablestring" = xdisable; then
5689                   defaultval=yes
5690               else
5691                   defaultval=no
5692               fi
5693           fi
5694
5695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5696 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5697           # Check whether --enable-sockets was given.
5698 if test "${enable_sockets+set}" = set; then
5699   enableval=$enable_sockets;
5700                           if test "$enableval" = yes; then
5701                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5702                           else
5703                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5704                           fi
5705
5706 else
5707
5708                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5709
5710 fi
5711
5712
5713           eval "$wx_cv_use_sockets"
5714
5715           if test x"$enablestring" = xdisable; then
5716             if test $wxUSE_SOCKETS = yes; then
5717               result=no
5718             else
5719               result=yes
5720             fi
5721           else
5722             result=$wxUSE_SOCKETS
5723           fi
5724
5725           { echo "$as_me:$LINENO: result: $result" >&5
5726 echo "${ECHO_T}$result" >&6; }
5727
5728
5729           enablestring=
5730           defaultval=$wxUSE_ALL_FEATURES
5731           if test -z "$defaultval"; then
5732               if test x"$enablestring" = xdisable; then
5733                   defaultval=yes
5734               else
5735                   defaultval=no
5736               fi
5737           fi
5738
5739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5740 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5741           # Check whether --enable-ipv6 was given.
5742 if test "${enable_ipv6+set}" = set; then
5743   enableval=$enable_ipv6;
5744                           if test "$enableval" = yes; then
5745                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5746                           else
5747                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5748                           fi
5749
5750 else
5751
5752                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5753
5754 fi
5755
5756
5757           eval "$wx_cv_use_ipv6"
5758
5759           if test x"$enablestring" = xdisable; then
5760             if test $wxUSE_IPV6 = yes; then
5761               result=no
5762             else
5763               result=yes
5764             fi
5765           else
5766             result=$wxUSE_IPV6
5767           fi
5768
5769           { echo "$as_me:$LINENO: result: $result" >&5
5770 echo "${ECHO_T}$result" >&6; }
5771
5772
5773           enablestring=
5774           defaultval=$wxUSE_ALL_FEATURES
5775           if test -z "$defaultval"; then
5776               if test x"$enablestring" = xdisable; then
5777                   defaultval=yes
5778               else
5779                   defaultval=no
5780               fi
5781           fi
5782
5783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5784 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5785           # Check whether --enable-ole was given.
5786 if test "${enable_ole+set}" = set; then
5787   enableval=$enable_ole;
5788                           if test "$enableval" = yes; then
5789                             wx_cv_use_ole='wxUSE_OLE=yes'
5790                           else
5791                             wx_cv_use_ole='wxUSE_OLE=no'
5792                           fi
5793
5794 else
5795
5796                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5797
5798 fi
5799
5800
5801           eval "$wx_cv_use_ole"
5802
5803           if test x"$enablestring" = xdisable; then
5804             if test $wxUSE_OLE = yes; then
5805               result=no
5806             else
5807               result=yes
5808             fi
5809           else
5810             result=$wxUSE_OLE
5811           fi
5812
5813           { echo "$as_me:$LINENO: result: $result" >&5
5814 echo "${ECHO_T}$result" >&6; }
5815
5816
5817           enablestring=
5818           defaultval=$wxUSE_ALL_FEATURES
5819           if test -z "$defaultval"; then
5820               if test x"$enablestring" = xdisable; then
5821                   defaultval=yes
5822               else
5823                   defaultval=no
5824               fi
5825           fi
5826
5827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5828 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5829           # Check whether --enable-dataobj was given.
5830 if test "${enable_dataobj+set}" = set; then
5831   enableval=$enable_dataobj;
5832                           if test "$enableval" = yes; then
5833                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5834                           else
5835                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
5836                           fi
5837
5838 else
5839
5840                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
5841
5842 fi
5843
5844
5845           eval "$wx_cv_use_dataobj"
5846
5847           if test x"$enablestring" = xdisable; then
5848             if test $wxUSE_DATAOBJ = yes; then
5849               result=no
5850             else
5851               result=yes
5852             fi
5853           else
5854             result=$wxUSE_DATAOBJ
5855           fi
5856
5857           { echo "$as_me:$LINENO: result: $result" >&5
5858 echo "${ECHO_T}$result" >&6; }
5859
5860
5861
5862           enablestring=
5863           defaultval=$wxUSE_ALL_FEATURES
5864           if test -z "$defaultval"; then
5865               if test x"$enablestring" = xdisable; then
5866                   defaultval=yes
5867               else
5868                   defaultval=no
5869               fi
5870           fi
5871
5872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5873 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
5874           # Check whether --enable-ipc was given.
5875 if test "${enable_ipc+set}" = set; then
5876   enableval=$enable_ipc;
5877                           if test "$enableval" = yes; then
5878                             wx_cv_use_ipc='wxUSE_IPC=yes'
5879                           else
5880                             wx_cv_use_ipc='wxUSE_IPC=no'
5881                           fi
5882
5883 else
5884
5885                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
5886
5887 fi
5888
5889
5890           eval "$wx_cv_use_ipc"
5891
5892           if test x"$enablestring" = xdisable; then
5893             if test $wxUSE_IPC = yes; then
5894               result=no
5895             else
5896               result=yes
5897             fi
5898           else
5899             result=$wxUSE_IPC
5900           fi
5901
5902           { echo "$as_me:$LINENO: result: $result" >&5
5903 echo "${ECHO_T}$result" >&6; }
5904
5905
5906
5907           enablestring=
5908           defaultval=$wxUSE_ALL_FEATURES
5909           if test -z "$defaultval"; then
5910               if test x"$enablestring" = xdisable; then
5911                   defaultval=yes
5912               else
5913                   defaultval=no
5914               fi
5915           fi
5916
5917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
5918 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
5919           # Check whether --enable-baseevtloop was given.
5920 if test "${enable_baseevtloop+set}" = set; then
5921   enableval=$enable_baseevtloop;
5922                           if test "$enableval" = yes; then
5923                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
5924                           else
5925                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
5926                           fi
5927
5928 else
5929
5930                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
5931
5932 fi
5933
5934
5935           eval "$wx_cv_use_baseevtloop"
5936
5937           if test x"$enablestring" = xdisable; then
5938             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
5939               result=no
5940             else
5941               result=yes
5942             fi
5943           else
5944             result=$wxUSE_CONSOLE_EVENTLOOP
5945           fi
5946
5947           { echo "$as_me:$LINENO: result: $result" >&5
5948 echo "${ECHO_T}$result" >&6; }
5949
5950
5951           enablestring=
5952           defaultval=$wxUSE_ALL_FEATURES
5953           if test -z "$defaultval"; then
5954               if test x"$enablestring" = xdisable; then
5955                   defaultval=yes
5956               else
5957                   defaultval=no
5958               fi
5959           fi
5960
5961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
5962 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
5963           # Check whether --enable-epollloop was given.
5964 if test "${enable_epollloop+set}" = set; then
5965   enableval=$enable_epollloop;
5966                           if test "$enableval" = yes; then
5967                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
5968                           else
5969                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
5970                           fi
5971
5972 else
5973
5974                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
5975
5976 fi
5977
5978
5979           eval "$wx_cv_use_epollloop"
5980
5981           if test x"$enablestring" = xdisable; then
5982             if test $wxUSE_EPOLL_DISPATCHER = yes; then
5983               result=no
5984             else
5985               result=yes
5986             fi
5987           else
5988             result=$wxUSE_EPOLL_DISPATCHER
5989           fi
5990
5991           { echo "$as_me:$LINENO: result: $result" >&5
5992 echo "${ECHO_T}$result" >&6; }
5993
5994
5995           enablestring=
5996           defaultval=$wxUSE_ALL_FEATURES
5997           if test -z "$defaultval"; then
5998               if test x"$enablestring" = xdisable; then
5999                   defaultval=yes
6000               else
6001                   defaultval=no
6002               fi
6003           fi
6004
6005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6006 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6007           # Check whether --enable-selectloop was given.
6008 if test "${enable_selectloop+set}" = set; then
6009   enableval=$enable_selectloop;
6010                           if test "$enableval" = yes; then
6011                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6012                           else
6013                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6014                           fi
6015
6016 else
6017
6018                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6019
6020 fi
6021
6022
6023           eval "$wx_cv_use_selectloop"
6024
6025           if test x"$enablestring" = xdisable; then
6026             if test $wxUSE_SELECT_DISPATCHER = yes; then
6027               result=no
6028             else
6029               result=yes
6030             fi
6031           else
6032             result=$wxUSE_SELECT_DISPATCHER
6033           fi
6034
6035           { echo "$as_me:$LINENO: result: $result" >&5
6036 echo "${ECHO_T}$result" >&6; }
6037
6038
6039
6040           enablestring=
6041           defaultval=$wxUSE_ALL_FEATURES
6042           if test -z "$defaultval"; then
6043               if test x"$enablestring" = xdisable; then
6044                   defaultval=yes
6045               else
6046                   defaultval=no
6047               fi
6048           fi
6049
6050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6051 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6052           # Check whether --enable-apple_ieee was given.
6053 if test "${enable_apple_ieee+set}" = set; then
6054   enableval=$enable_apple_ieee;
6055                           if test "$enableval" = yes; then
6056                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6057                           else
6058                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6059                           fi
6060
6061 else
6062
6063                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6064
6065 fi
6066
6067
6068           eval "$wx_cv_use_apple_ieee"
6069
6070           if test x"$enablestring" = xdisable; then
6071             if test $wxUSE_APPLE_IEEE = yes; then
6072               result=no
6073             else
6074               result=yes
6075             fi
6076           else
6077             result=$wxUSE_APPLE_IEEE
6078           fi
6079
6080           { echo "$as_me:$LINENO: result: $result" >&5
6081 echo "${ECHO_T}$result" >&6; }
6082
6083
6084           enablestring=
6085           defaultval=$wxUSE_ALL_FEATURES
6086           if test -z "$defaultval"; then
6087               if test x"$enablestring" = xdisable; then
6088                   defaultval=yes
6089               else
6090                   defaultval=no
6091               fi
6092           fi
6093
6094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6095 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6096           # Check whether --enable-arcstream was given.
6097 if test "${enable_arcstream+set}" = set; then
6098   enableval=$enable_arcstream;
6099                           if test "$enableval" = yes; then
6100                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6101                           else
6102                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6103                           fi
6104
6105 else
6106
6107                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6108
6109 fi
6110
6111
6112           eval "$wx_cv_use_arcstream"
6113
6114           if test x"$enablestring" = xdisable; then
6115             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6116               result=no
6117             else
6118               result=yes
6119             fi
6120           else
6121             result=$wxUSE_ARCHIVE_STREAMS
6122           fi
6123
6124           { echo "$as_me:$LINENO: result: $result" >&5
6125 echo "${ECHO_T}$result" >&6; }
6126
6127
6128           enablestring=
6129           defaultval=$wxUSE_ALL_FEATURES
6130           if test -z "$defaultval"; then
6131               if test x"$enablestring" = xdisable; then
6132                   defaultval=yes
6133               else
6134                   defaultval=no
6135               fi
6136           fi
6137
6138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6139 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6140           # Check whether --enable-base64 was given.
6141 if test "${enable_base64+set}" = set; then
6142   enableval=$enable_base64;
6143                           if test "$enableval" = yes; then
6144                             wx_cv_use_base64='wxUSE_BASE64=yes'
6145                           else
6146                             wx_cv_use_base64='wxUSE_BASE64=no'
6147                           fi
6148
6149 else
6150
6151                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6152
6153 fi
6154
6155
6156           eval "$wx_cv_use_base64"
6157
6158           if test x"$enablestring" = xdisable; then
6159             if test $wxUSE_BASE64 = yes; then
6160               result=no
6161             else
6162               result=yes
6163             fi
6164           else
6165             result=$wxUSE_BASE64
6166           fi
6167
6168           { echo "$as_me:$LINENO: result: $result" >&5
6169 echo "${ECHO_T}$result" >&6; }
6170
6171
6172           enablestring=
6173           defaultval=$wxUSE_ALL_FEATURES
6174           if test -z "$defaultval"; then
6175               if test x"$enablestring" = xdisable; then
6176                   defaultval=yes
6177               else
6178                   defaultval=no
6179               fi
6180           fi
6181
6182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6183 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6184           # Check whether --enable-backtrace was given.
6185 if test "${enable_backtrace+set}" = set; then
6186   enableval=$enable_backtrace;
6187                           if test "$enableval" = yes; then
6188                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6189                           else
6190                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6191                           fi
6192
6193 else
6194
6195                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6196
6197 fi
6198
6199
6200           eval "$wx_cv_use_backtrace"
6201
6202           if test x"$enablestring" = xdisable; then
6203             if test $wxUSE_STACKWALKER = yes; then
6204               result=no
6205             else
6206               result=yes
6207             fi
6208           else
6209             result=$wxUSE_STACKWALKER
6210           fi
6211
6212           { echo "$as_me:$LINENO: result: $result" >&5
6213 echo "${ECHO_T}$result" >&6; }
6214
6215
6216           enablestring=
6217           defaultval=$wxUSE_ALL_FEATURES
6218           if test -z "$defaultval"; then
6219               if test x"$enablestring" = xdisable; then
6220                   defaultval=yes
6221               else
6222                   defaultval=no
6223               fi
6224           fi
6225
6226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6227 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6228           # Check whether --enable-catch_segvs was given.
6229 if test "${enable_catch_segvs+set}" = set; then
6230   enableval=$enable_catch_segvs;
6231                           if test "$enableval" = yes; then
6232                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6233                           else
6234                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6235                           fi
6236
6237 else
6238
6239                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6240
6241 fi
6242
6243
6244           eval "$wx_cv_use_catch_segvs"
6245
6246           if test x"$enablestring" = xdisable; then
6247             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6248               result=no
6249             else
6250               result=yes
6251             fi
6252           else
6253             result=$wxUSE_ON_FATAL_EXCEPTION
6254           fi
6255
6256           { echo "$as_me:$LINENO: result: $result" >&5
6257 echo "${ECHO_T}$result" >&6; }
6258
6259
6260           enablestring=
6261           defaultval=$wxUSE_ALL_FEATURES
6262           if test -z "$defaultval"; then
6263               if test x"$enablestring" = xdisable; then
6264                   defaultval=yes
6265               else
6266                   defaultval=no
6267               fi
6268           fi
6269
6270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6271 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6272           # Check whether --enable-cmdline was given.
6273 if test "${enable_cmdline+set}" = set; then
6274   enableval=$enable_cmdline;
6275                           if test "$enableval" = yes; then
6276                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6277                           else
6278                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6279                           fi
6280
6281 else
6282
6283                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6284
6285 fi
6286
6287
6288           eval "$wx_cv_use_cmdline"
6289
6290           if test x"$enablestring" = xdisable; then
6291             if test $wxUSE_CMDLINE_PARSER = yes; then
6292               result=no
6293             else
6294               result=yes
6295             fi
6296           else
6297             result=$wxUSE_CMDLINE_PARSER
6298           fi
6299
6300           { echo "$as_me:$LINENO: result: $result" >&5
6301 echo "${ECHO_T}$result" >&6; }
6302
6303
6304           enablestring=
6305           defaultval=$wxUSE_ALL_FEATURES
6306           if test -z "$defaultval"; then
6307               if test x"$enablestring" = xdisable; then
6308                   defaultval=yes
6309               else
6310                   defaultval=no
6311               fi
6312           fi
6313
6314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6315 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6316           # Check whether --enable-datetime was given.
6317 if test "${enable_datetime+set}" = set; then
6318   enableval=$enable_datetime;
6319                           if test "$enableval" = yes; then
6320                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6321                           else
6322                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6323                           fi
6324
6325 else
6326
6327                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6328
6329 fi
6330
6331
6332           eval "$wx_cv_use_datetime"
6333
6334           if test x"$enablestring" = xdisable; then
6335             if test $wxUSE_DATETIME = yes; then
6336               result=no
6337             else
6338               result=yes
6339             fi
6340           else
6341             result=$wxUSE_DATETIME
6342           fi
6343
6344           { echo "$as_me:$LINENO: result: $result" >&5
6345 echo "${ECHO_T}$result" >&6; }
6346
6347
6348           enablestring=
6349           defaultval=$wxUSE_ALL_FEATURES
6350           if test -z "$defaultval"; then
6351               if test x"$enablestring" = xdisable; then
6352                   defaultval=yes
6353               else
6354                   defaultval=no
6355               fi
6356           fi
6357
6358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6359 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6360           # Check whether --enable-debugreport was given.
6361 if test "${enable_debugreport+set}" = set; then
6362   enableval=$enable_debugreport;
6363                           if test "$enableval" = yes; then
6364                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6365                           else
6366                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6367                           fi
6368
6369 else
6370
6371                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6372
6373 fi
6374
6375
6376           eval "$wx_cv_use_debugreport"
6377
6378           if test x"$enablestring" = xdisable; then
6379             if test $wxUSE_DEBUGREPORT = yes; then
6380               result=no
6381             else
6382               result=yes
6383             fi
6384           else
6385             result=$wxUSE_DEBUGREPORT
6386           fi
6387
6388           { echo "$as_me:$LINENO: result: $result" >&5
6389 echo "${ECHO_T}$result" >&6; }
6390
6391
6392           enablestring=
6393           defaultval=$wxUSE_ALL_FEATURES
6394           if test -z "$defaultval"; then
6395               if test x"$enablestring" = xdisable; then
6396                   defaultval=yes
6397               else
6398                   defaultval=no
6399               fi
6400           fi
6401
6402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6403 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6404           # Check whether --enable-dialupman was given.
6405 if test "${enable_dialupman+set}" = set; then
6406   enableval=$enable_dialupman;
6407                           if test "$enableval" = yes; then
6408                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6409                           else
6410                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6411                           fi
6412
6413 else
6414
6415                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6416
6417 fi
6418
6419
6420           eval "$wx_cv_use_dialupman"
6421
6422           if test x"$enablestring" = xdisable; then
6423             if test $wxUSE_DIALUP_MANAGER = yes; then
6424               result=no
6425             else
6426               result=yes
6427             fi
6428           else
6429             result=$wxUSE_DIALUP_MANAGER
6430           fi
6431
6432           { echo "$as_me:$LINENO: result: $result" >&5
6433 echo "${ECHO_T}$result" >&6; }
6434
6435
6436           enablestring=
6437           defaultval=$wxUSE_ALL_FEATURES
6438           if test -z "$defaultval"; then
6439               if test x"$enablestring" = xdisable; then
6440                   defaultval=yes
6441               else
6442                   defaultval=no
6443               fi
6444           fi
6445
6446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6447 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6448           # Check whether --enable-dynlib was given.
6449 if test "${enable_dynlib+set}" = set; then
6450   enableval=$enable_dynlib;
6451                           if test "$enableval" = yes; then
6452                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6453                           else
6454                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6455                           fi
6456
6457 else
6458
6459                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6460
6461 fi
6462
6463
6464           eval "$wx_cv_use_dynlib"
6465
6466           if test x"$enablestring" = xdisable; then
6467             if test $wxUSE_DYNLIB_CLASS = yes; then
6468               result=no
6469             else
6470               result=yes
6471             fi
6472           else
6473             result=$wxUSE_DYNLIB_CLASS
6474           fi
6475
6476           { echo "$as_me:$LINENO: result: $result" >&5
6477 echo "${ECHO_T}$result" >&6; }
6478
6479
6480           enablestring=
6481           defaultval=$wxUSE_ALL_FEATURES
6482           if test -z "$defaultval"; then
6483               if test x"$enablestring" = xdisable; then
6484                   defaultval=yes
6485               else
6486                   defaultval=no
6487               fi
6488           fi
6489
6490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6491 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6492           # Check whether --enable-dynamicloader was given.
6493 if test "${enable_dynamicloader+set}" = set; then
6494   enableval=$enable_dynamicloader;
6495                           if test "$enableval" = yes; then
6496                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6497                           else
6498                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6499                           fi
6500
6501 else
6502
6503                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6504
6505 fi
6506
6507
6508           eval "$wx_cv_use_dynamicloader"
6509
6510           if test x"$enablestring" = xdisable; then
6511             if test $wxUSE_DYNAMIC_LOADER = yes; then
6512               result=no
6513             else
6514               result=yes
6515             fi
6516           else
6517             result=$wxUSE_DYNAMIC_LOADER
6518           fi
6519
6520           { echo "$as_me:$LINENO: result: $result" >&5
6521 echo "${ECHO_T}$result" >&6; }
6522
6523
6524           enablestring=
6525           defaultval=$wxUSE_ALL_FEATURES
6526           if test -z "$defaultval"; then
6527               if test x"$enablestring" = xdisable; then
6528                   defaultval=yes
6529               else
6530                   defaultval=no
6531               fi
6532           fi
6533
6534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6535 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6536           # Check whether --enable-exceptions was given.
6537 if test "${enable_exceptions+set}" = set; then
6538   enableval=$enable_exceptions;
6539                           if test "$enableval" = yes; then
6540                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6541                           else
6542                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6543                           fi
6544
6545 else
6546
6547                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6548
6549 fi
6550
6551
6552           eval "$wx_cv_use_exceptions"
6553
6554           if test x"$enablestring" = xdisable; then
6555             if test $wxUSE_EXCEPTIONS = yes; then
6556               result=no
6557             else
6558               result=yes
6559             fi
6560           else
6561             result=$wxUSE_EXCEPTIONS
6562           fi
6563
6564           { echo "$as_me:$LINENO: result: $result" >&5
6565 echo "${ECHO_T}$result" >&6; }
6566
6567
6568           enablestring=
6569           defaultval=$wxUSE_ALL_FEATURES
6570           if test -z "$defaultval"; then
6571               if test x"$enablestring" = xdisable; then
6572                   defaultval=yes
6573               else
6574                   defaultval=no
6575               fi
6576           fi
6577
6578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6579 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6580           # Check whether --enable-ffile was given.
6581 if test "${enable_ffile+set}" = set; then
6582   enableval=$enable_ffile;
6583                           if test "$enableval" = yes; then
6584                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6585                           else
6586                             wx_cv_use_ffile='wxUSE_FFILE=no'
6587                           fi
6588
6589 else
6590
6591                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6592
6593 fi
6594
6595
6596           eval "$wx_cv_use_ffile"
6597
6598           if test x"$enablestring" = xdisable; then
6599             if test $wxUSE_FFILE = yes; then
6600               result=no
6601             else
6602               result=yes
6603             fi
6604           else
6605             result=$wxUSE_FFILE
6606           fi
6607
6608           { echo "$as_me:$LINENO: result: $result" >&5
6609 echo "${ECHO_T}$result" >&6; }
6610
6611
6612           enablestring=
6613           defaultval=$wxUSE_ALL_FEATURES
6614           if test -z "$defaultval"; then
6615               if test x"$enablestring" = xdisable; then
6616                   defaultval=yes
6617               else
6618                   defaultval=no
6619               fi
6620           fi
6621
6622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6623 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6624           # Check whether --enable-file was given.
6625 if test "${enable_file+set}" = set; then
6626   enableval=$enable_file;
6627                           if test "$enableval" = yes; then
6628                             wx_cv_use_file='wxUSE_FILE=yes'
6629                           else
6630                             wx_cv_use_file='wxUSE_FILE=no'
6631                           fi
6632
6633 else
6634
6635                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6636
6637 fi
6638
6639
6640           eval "$wx_cv_use_file"
6641
6642           if test x"$enablestring" = xdisable; then
6643             if test $wxUSE_FILE = yes; then
6644               result=no
6645             else
6646               result=yes
6647             fi
6648           else
6649             result=$wxUSE_FILE
6650           fi
6651
6652           { echo "$as_me:$LINENO: result: $result" >&5
6653 echo "${ECHO_T}$result" >&6; }
6654
6655
6656           enablestring=
6657           defaultval=$wxUSE_ALL_FEATURES
6658           if test -z "$defaultval"; then
6659               if test x"$enablestring" = xdisable; then
6660                   defaultval=yes
6661               else
6662                   defaultval=no
6663               fi
6664           fi
6665
6666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6667 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6668           # Check whether --enable-filesystem was given.
6669 if test "${enable_filesystem+set}" = set; then
6670   enableval=$enable_filesystem;
6671                           if test "$enableval" = yes; then
6672                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6673                           else
6674                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6675                           fi
6676
6677 else
6678
6679                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6680
6681 fi
6682
6683
6684           eval "$wx_cv_use_filesystem"
6685
6686           if test x"$enablestring" = xdisable; then
6687             if test $wxUSE_FILESYSTEM = yes; then
6688               result=no
6689             else
6690               result=yes
6691             fi
6692           else
6693             result=$wxUSE_FILESYSTEM
6694           fi
6695
6696           { echo "$as_me:$LINENO: result: $result" >&5
6697 echo "${ECHO_T}$result" >&6; }
6698
6699
6700           enablestring=
6701           defaultval=$wxUSE_ALL_FEATURES
6702           if test -z "$defaultval"; then
6703               if test x"$enablestring" = xdisable; then
6704                   defaultval=yes
6705               else
6706                   defaultval=no
6707               fi
6708           fi
6709
6710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6711 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6712           # Check whether --enable-fontenum was given.
6713 if test "${enable_fontenum+set}" = set; then
6714   enableval=$enable_fontenum;
6715                           if test "$enableval" = yes; then
6716                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6717                           else
6718                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6719                           fi
6720
6721 else
6722
6723                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6724
6725 fi
6726
6727
6728           eval "$wx_cv_use_fontenum"
6729
6730           if test x"$enablestring" = xdisable; then
6731             if test $wxUSE_FONTENUM = yes; then
6732               result=no
6733             else
6734               result=yes
6735             fi
6736           else
6737             result=$wxUSE_FONTENUM
6738           fi
6739
6740           { echo "$as_me:$LINENO: result: $result" >&5
6741 echo "${ECHO_T}$result" >&6; }
6742
6743
6744           enablestring=
6745           defaultval=$wxUSE_ALL_FEATURES
6746           if test -z "$defaultval"; then
6747               if test x"$enablestring" = xdisable; then
6748                   defaultval=yes
6749               else
6750                   defaultval=no
6751               fi
6752           fi
6753
6754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6755 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6756           # Check whether --enable-fontmap was given.
6757 if test "${enable_fontmap+set}" = set; then
6758   enableval=$enable_fontmap;
6759                           if test "$enableval" = yes; then
6760                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6761                           else
6762                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6763                           fi
6764
6765 else
6766
6767                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6768
6769 fi
6770
6771
6772           eval "$wx_cv_use_fontmap"
6773
6774           if test x"$enablestring" = xdisable; then
6775             if test $wxUSE_FONTMAP = yes; then
6776               result=no
6777             else
6778               result=yes
6779             fi
6780           else
6781             result=$wxUSE_FONTMAP
6782           fi
6783
6784           { echo "$as_me:$LINENO: result: $result" >&5
6785 echo "${ECHO_T}$result" >&6; }
6786
6787
6788           enablestring=
6789           defaultval=$wxUSE_ALL_FEATURES
6790           if test -z "$defaultval"; then
6791               if test x"$enablestring" = xdisable; then
6792                   defaultval=yes
6793               else
6794                   defaultval=no
6795               fi
6796           fi
6797
6798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6799 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6800           # Check whether --enable-fs_archive was given.
6801 if test "${enable_fs_archive+set}" = set; then
6802   enableval=$enable_fs_archive;
6803                           if test "$enableval" = yes; then
6804                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6805                           else
6806                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6807                           fi
6808
6809 else
6810
6811                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
6812
6813 fi
6814
6815
6816           eval "$wx_cv_use_fs_archive"
6817
6818           if test x"$enablestring" = xdisable; then
6819             if test $wxUSE_FS_ARCHIVE = yes; then
6820               result=no
6821             else
6822               result=yes
6823             fi
6824           else
6825             result=$wxUSE_FS_ARCHIVE
6826           fi
6827
6828           { echo "$as_me:$LINENO: result: $result" >&5
6829 echo "${ECHO_T}$result" >&6; }
6830
6831
6832           enablestring=
6833           defaultval=$wxUSE_ALL_FEATURES
6834           if test -z "$defaultval"; then
6835               if test x"$enablestring" = xdisable; then
6836                   defaultval=yes
6837               else
6838                   defaultval=no
6839               fi
6840           fi
6841
6842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6843 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6844           # Check whether --enable-fs_inet was given.
6845 if test "${enable_fs_inet+set}" = set; then
6846   enableval=$enable_fs_inet;
6847                           if test "$enableval" = yes; then
6848                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
6849                           else
6850                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
6851                           fi
6852
6853 else
6854
6855                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
6856
6857 fi
6858
6859
6860           eval "$wx_cv_use_fs_inet"
6861
6862           if test x"$enablestring" = xdisable; then
6863             if test $wxUSE_FS_INET = yes; then
6864               result=no
6865             else
6866               result=yes
6867             fi
6868           else
6869             result=$wxUSE_FS_INET
6870           fi
6871
6872           { echo "$as_me:$LINENO: result: $result" >&5
6873 echo "${ECHO_T}$result" >&6; }
6874
6875
6876           enablestring=
6877           defaultval=$wxUSE_ALL_FEATURES
6878           if test -z "$defaultval"; then
6879               if test x"$enablestring" = xdisable; then
6880                   defaultval=yes
6881               else
6882                   defaultval=no
6883               fi
6884           fi
6885
6886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6887 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
6888           # Check whether --enable-fs_zip was given.
6889 if test "${enable_fs_zip+set}" = set; then
6890   enableval=$enable_fs_zip;
6891                           if test "$enableval" = yes; then
6892                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6893                           else
6894                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6895                           fi
6896
6897 else
6898
6899                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
6900
6901 fi
6902
6903
6904           eval "$wx_cv_use_fs_zip"
6905
6906           if test x"$enablestring" = xdisable; then
6907             if test $wxUSE_FS_ZIP = yes; then
6908               result=no
6909             else
6910               result=yes
6911             fi
6912           else
6913             result=$wxUSE_FS_ZIP
6914           fi
6915
6916           { echo "$as_me:$LINENO: result: $result" >&5
6917 echo "${ECHO_T}$result" >&6; }
6918
6919
6920           enablestring=
6921           defaultval=$wxUSE_ALL_FEATURES
6922           if test -z "$defaultval"; then
6923               if test x"$enablestring" = xdisable; then
6924                   defaultval=yes
6925               else
6926                   defaultval=no
6927               fi
6928           fi
6929
6930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
6931 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
6932           # Check whether --enable-geometry was given.
6933 if test "${enable_geometry+set}" = set; then
6934   enableval=$enable_geometry;
6935                           if test "$enableval" = yes; then
6936                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
6937                           else
6938                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
6939                           fi
6940
6941 else
6942
6943                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
6944
6945 fi
6946
6947
6948           eval "$wx_cv_use_geometry"
6949
6950           if test x"$enablestring" = xdisable; then
6951             if test $wxUSE_GEOMETRY = yes; then
6952               result=no
6953             else
6954               result=yes
6955             fi
6956           else
6957             result=$wxUSE_GEOMETRY
6958           fi
6959
6960           { echo "$as_me:$LINENO: result: $result" >&5
6961 echo "${ECHO_T}$result" >&6; }
6962
6963
6964           enablestring=
6965           defaultval=$wxUSE_ALL_FEATURES
6966           if test -z "$defaultval"; then
6967               if test x"$enablestring" = xdisable; then
6968                   defaultval=yes
6969               else
6970                   defaultval=no
6971               fi
6972           fi
6973
6974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
6975 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
6976           # Check whether --enable-log was given.
6977 if test "${enable_log+set}" = set; then
6978   enableval=$enable_log;
6979                           if test "$enableval" = yes; then
6980                             wx_cv_use_log='wxUSE_LOG=yes'
6981                           else
6982                             wx_cv_use_log='wxUSE_LOG=no'
6983                           fi
6984
6985 else
6986
6987                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
6988
6989 fi
6990
6991
6992           eval "$wx_cv_use_log"
6993
6994           if test x"$enablestring" = xdisable; then
6995             if test $wxUSE_LOG = yes; then
6996               result=no
6997             else
6998               result=yes
6999             fi
7000           else
7001             result=$wxUSE_LOG
7002           fi
7003
7004           { echo "$as_me:$LINENO: result: $result" >&5
7005 echo "${ECHO_T}$result" >&6; }
7006
7007
7008           enablestring=
7009           defaultval=$wxUSE_ALL_FEATURES
7010           if test -z "$defaultval"; then
7011               if test x"$enablestring" = xdisable; then
7012                   defaultval=yes
7013               else
7014                   defaultval=no
7015               fi
7016           fi
7017
7018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7019 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7020           # Check whether --enable-longlong was given.
7021 if test "${enable_longlong+set}" = set; then
7022   enableval=$enable_longlong;
7023                           if test "$enableval" = yes; then
7024                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7025                           else
7026                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7027                           fi
7028
7029 else
7030
7031                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7032
7033 fi
7034
7035
7036           eval "$wx_cv_use_longlong"
7037
7038           if test x"$enablestring" = xdisable; then
7039             if test $wxUSE_LONGLONG = yes; then
7040               result=no
7041             else
7042               result=yes
7043             fi
7044           else
7045             result=$wxUSE_LONGLONG
7046           fi
7047
7048           { echo "$as_me:$LINENO: result: $result" >&5
7049 echo "${ECHO_T}$result" >&6; }
7050
7051
7052           enablestring=
7053           defaultval=$wxUSE_ALL_FEATURES
7054           if test -z "$defaultval"; then
7055               if test x"$enablestring" = xdisable; then
7056                   defaultval=yes
7057               else
7058                   defaultval=no
7059               fi
7060           fi
7061
7062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7063 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7064           # Check whether --enable-mimetype was given.
7065 if test "${enable_mimetype+set}" = set; then
7066   enableval=$enable_mimetype;
7067                           if test "$enableval" = yes; then
7068                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7069                           else
7070                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7071                           fi
7072
7073 else
7074
7075                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7076
7077 fi
7078
7079
7080           eval "$wx_cv_use_mimetype"
7081
7082           if test x"$enablestring" = xdisable; then
7083             if test $wxUSE_MIMETYPE = yes; then
7084               result=no
7085             else
7086               result=yes
7087             fi
7088           else
7089             result=$wxUSE_MIMETYPE
7090           fi
7091
7092           { echo "$as_me:$LINENO: result: $result" >&5
7093 echo "${ECHO_T}$result" >&6; }
7094
7095
7096           enablestring=
7097           defaultval=$wxUSE_ALL_FEATURES
7098           if test -z "$defaultval"; then
7099               if test x"$enablestring" = xdisable; then
7100                   defaultval=yes
7101               else
7102                   defaultval=no
7103               fi
7104           fi
7105
7106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7107 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7108           # Check whether --enable-snglinst was given.
7109 if test "${enable_snglinst+set}" = set; then
7110   enableval=$enable_snglinst;
7111                           if test "$enableval" = yes; then
7112                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7113                           else
7114                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7115                           fi
7116
7117 else
7118
7119                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7120
7121 fi
7122
7123
7124           eval "$wx_cv_use_snglinst"
7125
7126           if test x"$enablestring" = xdisable; then
7127             if test $wxUSE_SNGLINST_CHECKER = yes; then
7128               result=no
7129             else
7130               result=yes
7131             fi
7132           else
7133             result=$wxUSE_SNGLINST_CHECKER
7134           fi
7135
7136           { echo "$as_me:$LINENO: result: $result" >&5
7137 echo "${ECHO_T}$result" >&6; }
7138
7139
7140           enablestring=
7141           defaultval=$wxUSE_ALL_FEATURES
7142           if test -z "$defaultval"; then
7143               if test x"$enablestring" = xdisable; then
7144                   defaultval=yes
7145               else
7146                   defaultval=no
7147               fi
7148           fi
7149
7150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7151 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7152           # Check whether --enable-stdpaths was given.
7153 if test "${enable_stdpaths+set}" = set; then
7154   enableval=$enable_stdpaths;
7155                           if test "$enableval" = yes; then
7156                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7157                           else
7158                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7159                           fi
7160
7161 else
7162
7163                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7164
7165 fi
7166
7167
7168           eval "$wx_cv_use_stdpaths"
7169
7170           if test x"$enablestring" = xdisable; then
7171             if test $wxUSE_STDPATHS = yes; then
7172               result=no
7173             else
7174               result=yes
7175             fi
7176           else
7177             result=$wxUSE_STDPATHS
7178           fi
7179
7180           { echo "$as_me:$LINENO: result: $result" >&5
7181 echo "${ECHO_T}$result" >&6; }
7182
7183
7184           enablestring=
7185           defaultval=$wxUSE_ALL_FEATURES
7186           if test -z "$defaultval"; then
7187               if test x"$enablestring" = xdisable; then
7188                   defaultval=yes
7189               else
7190                   defaultval=no
7191               fi
7192           fi
7193
7194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7195 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7196           # Check whether --enable-stopwatch was given.
7197 if test "${enable_stopwatch+set}" = set; then
7198   enableval=$enable_stopwatch;
7199                           if test "$enableval" = yes; then
7200                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7201                           else
7202                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7203                           fi
7204
7205 else
7206
7207                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7208
7209 fi
7210
7211
7212           eval "$wx_cv_use_stopwatch"
7213
7214           if test x"$enablestring" = xdisable; then
7215             if test $wxUSE_STOPWATCH = yes; then
7216               result=no
7217             else
7218               result=yes
7219             fi
7220           else
7221             result=$wxUSE_STOPWATCH
7222           fi
7223
7224           { echo "$as_me:$LINENO: result: $result" >&5
7225 echo "${ECHO_T}$result" >&6; }
7226
7227
7228           enablestring=
7229           defaultval=$wxUSE_ALL_FEATURES
7230           if test -z "$defaultval"; then
7231               if test x"$enablestring" = xdisable; then
7232                   defaultval=yes
7233               else
7234                   defaultval=no
7235               fi
7236           fi
7237
7238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7239 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7240           # Check whether --enable-streams was given.
7241 if test "${enable_streams+set}" = set; then
7242   enableval=$enable_streams;
7243                           if test "$enableval" = yes; then
7244                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7245                           else
7246                             wx_cv_use_streams='wxUSE_STREAMS=no'
7247                           fi
7248
7249 else
7250
7251                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7252
7253 fi
7254
7255
7256           eval "$wx_cv_use_streams"
7257
7258           if test x"$enablestring" = xdisable; then
7259             if test $wxUSE_STREAMS = yes; then
7260               result=no
7261             else
7262               result=yes
7263             fi
7264           else
7265             result=$wxUSE_STREAMS
7266           fi
7267
7268           { echo "$as_me:$LINENO: result: $result" >&5
7269 echo "${ECHO_T}$result" >&6; }
7270
7271
7272           enablestring=
7273           defaultval=$wxUSE_ALL_FEATURES
7274           if test -z "$defaultval"; then
7275               if test x"$enablestring" = xdisable; then
7276                   defaultval=yes
7277               else
7278                   defaultval=no
7279               fi
7280           fi
7281
7282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7283 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7284           # Check whether --enable-system_options was given.
7285 if test "${enable_system_options+set}" = set; then
7286   enableval=$enable_system_options;
7287                           if test "$enableval" = yes; then
7288                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7289                           else
7290                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7291                           fi
7292
7293 else
7294
7295                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7296
7297 fi
7298
7299
7300           eval "$wx_cv_use_system_options"
7301
7302           if test x"$enablestring" = xdisable; then
7303             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7304               result=no
7305             else
7306               result=yes
7307             fi
7308           else
7309             result=$wxUSE_SYSTEM_OPTIONS
7310           fi
7311
7312           { echo "$as_me:$LINENO: result: $result" >&5
7313 echo "${ECHO_T}$result" >&6; }
7314
7315
7316           enablestring=
7317           defaultval=$wxUSE_ALL_FEATURES
7318           if test -z "$defaultval"; then
7319               if test x"$enablestring" = xdisable; then
7320                   defaultval=yes
7321               else
7322                   defaultval=no
7323               fi
7324           fi
7325
7326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7327 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7328           # Check whether --enable-tarstream was given.
7329 if test "${enable_tarstream+set}" = set; then
7330   enableval=$enable_tarstream;
7331                           if test "$enableval" = yes; then
7332                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7333                           else
7334                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7335                           fi
7336
7337 else
7338
7339                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7340
7341 fi
7342
7343
7344           eval "$wx_cv_use_tarstream"
7345
7346           if test x"$enablestring" = xdisable; then
7347             if test $wxUSE_TARSTREAM = yes; then
7348               result=no
7349             else
7350               result=yes
7351             fi
7352           else
7353             result=$wxUSE_TARSTREAM
7354           fi
7355
7356           { echo "$as_me:$LINENO: result: $result" >&5
7357 echo "${ECHO_T}$result" >&6; }
7358
7359
7360           enablestring=
7361           defaultval=$wxUSE_ALL_FEATURES
7362           if test -z "$defaultval"; then
7363               if test x"$enablestring" = xdisable; then
7364                   defaultval=yes
7365               else
7366                   defaultval=no
7367               fi
7368           fi
7369
7370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7371 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7372           # Check whether --enable-textbuf was given.
7373 if test "${enable_textbuf+set}" = set; then
7374   enableval=$enable_textbuf;
7375                           if test "$enableval" = yes; then
7376                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7377                           else
7378                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7379                           fi
7380
7381 else
7382
7383                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7384
7385 fi
7386
7387
7388           eval "$wx_cv_use_textbuf"
7389
7390           if test x"$enablestring" = xdisable; then
7391             if test $wxUSE_TEXTBUFFER = yes; then
7392               result=no
7393             else
7394               result=yes
7395             fi
7396           else
7397             result=$wxUSE_TEXTBUFFER
7398           fi
7399
7400           { echo "$as_me:$LINENO: result: $result" >&5
7401 echo "${ECHO_T}$result" >&6; }
7402
7403
7404           enablestring=
7405           defaultval=$wxUSE_ALL_FEATURES
7406           if test -z "$defaultval"; then
7407               if test x"$enablestring" = xdisable; then
7408                   defaultval=yes
7409               else
7410                   defaultval=no
7411               fi
7412           fi
7413
7414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7415 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7416           # Check whether --enable-textfile was given.
7417 if test "${enable_textfile+set}" = set; then
7418   enableval=$enable_textfile;
7419                           if test "$enableval" = yes; then
7420                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7421                           else
7422                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7423                           fi
7424
7425 else
7426
7427                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7428
7429 fi
7430
7431
7432           eval "$wx_cv_use_textfile"
7433
7434           if test x"$enablestring" = xdisable; then
7435             if test $wxUSE_TEXTFILE = yes; then
7436               result=no
7437             else
7438               result=yes
7439             fi
7440           else
7441             result=$wxUSE_TEXTFILE
7442           fi
7443
7444           { echo "$as_me:$LINENO: result: $result" >&5
7445 echo "${ECHO_T}$result" >&6; }
7446
7447
7448           enablestring=
7449           defaultval=$wxUSE_ALL_FEATURES
7450           if test -z "$defaultval"; then
7451               if test x"$enablestring" = xdisable; then
7452                   defaultval=yes
7453               else
7454                   defaultval=no
7455               fi
7456           fi
7457
7458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7459 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7460           # Check whether --enable-timer was given.
7461 if test "${enable_timer+set}" = set; then
7462   enableval=$enable_timer;
7463                           if test "$enableval" = yes; then
7464                             wx_cv_use_timer='wxUSE_TIMER=yes'
7465                           else
7466                             wx_cv_use_timer='wxUSE_TIMER=no'
7467                           fi
7468
7469 else
7470
7471                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7472
7473 fi
7474
7475
7476           eval "$wx_cv_use_timer"
7477
7478           if test x"$enablestring" = xdisable; then
7479             if test $wxUSE_TIMER = yes; then
7480               result=no
7481             else
7482               result=yes
7483             fi
7484           else
7485             result=$wxUSE_TIMER
7486           fi
7487
7488           { echo "$as_me:$LINENO: result: $result" >&5
7489 echo "${ECHO_T}$result" >&6; }
7490
7491
7492           enablestring=
7493           defaultval=$wxUSE_ALL_FEATURES
7494           if test -z "$defaultval"; then
7495               if test x"$enablestring" = xdisable; then
7496                   defaultval=yes
7497               else
7498                   defaultval=no
7499               fi
7500           fi
7501
7502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7503 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7504           # Check whether --enable-sound was given.
7505 if test "${enable_sound+set}" = set; then
7506   enableval=$enable_sound;
7507                           if test "$enableval" = yes; then
7508                             wx_cv_use_sound='wxUSE_SOUND=yes'
7509                           else
7510                             wx_cv_use_sound='wxUSE_SOUND=no'
7511                           fi
7512
7513 else
7514
7515                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7516
7517 fi
7518
7519
7520           eval "$wx_cv_use_sound"
7521
7522           if test x"$enablestring" = xdisable; then
7523             if test $wxUSE_SOUND = yes; then
7524               result=no
7525             else
7526               result=yes
7527             fi
7528           else
7529             result=$wxUSE_SOUND
7530           fi
7531
7532           { echo "$as_me:$LINENO: result: $result" >&5
7533 echo "${ECHO_T}$result" >&6; }
7534
7535
7536           enablestring=
7537           defaultval=$wxUSE_ALL_FEATURES
7538           if test -z "$defaultval"; then
7539               if test x"$enablestring" = xdisable; then
7540                   defaultval=yes
7541               else
7542                   defaultval=no
7543               fi
7544           fi
7545
7546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7547 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7548           # Check whether --enable-mediactrl was given.
7549 if test "${enable_mediactrl+set}" = set; then
7550   enableval=$enable_mediactrl;
7551                           if test "$enableval" = yes; then
7552                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7553                           else
7554                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7555                           fi
7556
7557 else
7558
7559                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
7560
7561 fi
7562
7563
7564           eval "$wx_cv_use_mediactrl"
7565
7566           if test x"$enablestring" = xdisable; then
7567             if test $wxUSE_MEDIACTRL = yes; then
7568               result=no
7569             else
7570               result=yes
7571             fi
7572           else
7573             result=$wxUSE_MEDIACTRL
7574           fi
7575
7576           { echo "$as_me:$LINENO: result: $result" >&5
7577 echo "${ECHO_T}$result" >&6; }
7578
7579
7580           enablestring=
7581           defaultval=$wxUSE_ALL_FEATURES
7582           if test -z "$defaultval"; then
7583               if test x"$enablestring" = xdisable; then
7584                   defaultval=yes
7585               else
7586                   defaultval=no
7587               fi
7588           fi
7589
7590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7591 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7592           # Check whether --enable-gstreamer8 was given.
7593 if test "${enable_gstreamer8+set}" = set; then
7594   enableval=$enable_gstreamer8;
7595                           if test "$enableval" = yes; then
7596                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7597                           else
7598                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7599                           fi
7600
7601 else
7602
7603                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
7604
7605 fi
7606
7607
7608           eval "$wx_cv_use_gstreamer8"
7609
7610           if test x"$enablestring" = xdisable; then
7611             if test $wxUSE_GSTREAMER8 = yes; then
7612               result=no
7613             else
7614               result=yes
7615             fi
7616           else
7617             result=$wxUSE_GSTREAMER8
7618           fi
7619
7620           { echo "$as_me:$LINENO: result: $result" >&5
7621 echo "${ECHO_T}$result" >&6; }
7622
7623
7624           enablestring=
7625           defaultval=$wxUSE_ALL_FEATURES
7626           if test -z "$defaultval"; then
7627               if test x"$enablestring" = xdisable; then
7628                   defaultval=yes
7629               else
7630                   defaultval=no
7631               fi
7632           fi
7633
7634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7635 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7636           # Check whether --enable-printfposparam was given.
7637 if test "${enable_printfposparam+set}" = set; then
7638   enableval=$enable_printfposparam;
7639                           if test "$enableval" = yes; then
7640                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7641                           else
7642                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7643                           fi
7644
7645 else
7646
7647                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7648
7649 fi
7650
7651
7652           eval "$wx_cv_use_printfposparam"
7653
7654           if test x"$enablestring" = xdisable; then
7655             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7656               result=no
7657             else
7658               result=yes
7659             fi
7660           else
7661             result=$wxUSE_PRINTF_POS_PARAMS
7662           fi
7663
7664           { echo "$as_me:$LINENO: result: $result" >&5
7665 echo "${ECHO_T}$result" >&6; }
7666
7667
7668           enablestring=
7669           defaultval=$wxUSE_ALL_FEATURES
7670           if test -z "$defaultval"; then
7671               if test x"$enablestring" = xdisable; then
7672                   defaultval=yes
7673               else
7674                   defaultval=no
7675               fi
7676           fi
7677
7678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7679 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7680           # Check whether --enable-zipstream was given.
7681 if test "${enable_zipstream+set}" = set; then
7682   enableval=$enable_zipstream;
7683                           if test "$enableval" = yes; then
7684                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7685                           else
7686                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7687                           fi
7688
7689 else
7690
7691                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7692
7693 fi
7694
7695
7696           eval "$wx_cv_use_zipstream"
7697
7698           if test x"$enablestring" = xdisable; then
7699             if test $wxUSE_ZIPSTREAM = yes; then
7700               result=no
7701             else
7702               result=yes
7703             fi
7704           else
7705             result=$wxUSE_ZIPSTREAM
7706           fi
7707
7708           { echo "$as_me:$LINENO: result: $result" >&5
7709 echo "${ECHO_T}$result" >&6; }
7710
7711
7712
7713           enablestring=
7714           defaultval=$wxUSE_ALL_FEATURES
7715           if test -z "$defaultval"; then
7716               if test x"$enablestring" = xdisable; then
7717                   defaultval=yes
7718               else
7719                   defaultval=no
7720               fi
7721           fi
7722
7723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7724 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7725           # Check whether --enable-url was given.
7726 if test "${enable_url+set}" = set; then
7727   enableval=$enable_url;
7728                           if test "$enableval" = yes; then
7729                             wx_cv_use_url='wxUSE_URL=yes'
7730                           else
7731                             wx_cv_use_url='wxUSE_URL=no'
7732                           fi
7733
7734 else
7735
7736                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7737
7738 fi
7739
7740
7741           eval "$wx_cv_use_url"
7742
7743           if test x"$enablestring" = xdisable; then
7744             if test $wxUSE_URL = yes; then
7745               result=no
7746             else
7747               result=yes
7748             fi
7749           else
7750             result=$wxUSE_URL
7751           fi
7752
7753           { echo "$as_me:$LINENO: result: $result" >&5
7754 echo "${ECHO_T}$result" >&6; }
7755
7756
7757           enablestring=
7758           defaultval=$wxUSE_ALL_FEATURES
7759           if test -z "$defaultval"; then
7760               if test x"$enablestring" = xdisable; then
7761                   defaultval=yes
7762               else
7763                   defaultval=no
7764               fi
7765           fi
7766
7767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7768 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7769           # Check whether --enable-variant was given.
7770 if test "${enable_variant+set}" = set; then
7771   enableval=$enable_variant;
7772                           if test "$enableval" = yes; then
7773                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7774                           else
7775                             wx_cv_use_variant='wxUSE_VARIANT=no'
7776                           fi
7777
7778 else
7779
7780                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7781
7782 fi
7783
7784
7785           eval "$wx_cv_use_variant"
7786
7787           if test x"$enablestring" = xdisable; then
7788             if test $wxUSE_VARIANT = yes; then
7789               result=no
7790             else
7791               result=yes
7792             fi
7793           else
7794             result=$wxUSE_VARIANT
7795           fi
7796
7797           { echo "$as_me:$LINENO: result: $result" >&5
7798 echo "${ECHO_T}$result" >&6; }
7799
7800
7801           enablestring=
7802           defaultval=$wxUSE_ALL_FEATURES
7803           if test -z "$defaultval"; then
7804               if test x"$enablestring" = xdisable; then
7805                   defaultval=yes
7806               else
7807                   defaultval=no
7808               fi
7809           fi
7810
7811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7812 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7813           # Check whether --enable-protocol was given.
7814 if test "${enable_protocol+set}" = set; then
7815   enableval=$enable_protocol;
7816                           if test "$enableval" = yes; then
7817                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7818                           else
7819                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7820                           fi
7821
7822 else
7823
7824                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7825
7826 fi
7827
7828
7829           eval "$wx_cv_use_protocol"
7830
7831           if test x"$enablestring" = xdisable; then
7832             if test $wxUSE_PROTOCOL = yes; then
7833               result=no
7834             else
7835               result=yes
7836             fi
7837           else
7838             result=$wxUSE_PROTOCOL
7839           fi
7840
7841           { echo "$as_me:$LINENO: result: $result" >&5
7842 echo "${ECHO_T}$result" >&6; }
7843
7844
7845           enablestring=
7846           defaultval=$wxUSE_ALL_FEATURES
7847           if test -z "$defaultval"; then
7848               if test x"$enablestring" = xdisable; then
7849                   defaultval=yes
7850               else
7851                   defaultval=no
7852               fi
7853           fi
7854
7855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7856 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7857           # Check whether --enable-protocol_http was given.
7858 if test "${enable_protocol_http+set}" = set; then
7859   enableval=$enable_protocol_http;
7860                           if test "$enableval" = yes; then
7861                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7862                           else
7863                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7864                           fi
7865
7866 else
7867
7868                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7869
7870 fi
7871
7872
7873           eval "$wx_cv_use_protocol_http"
7874
7875           if test x"$enablestring" = xdisable; then
7876             if test $wxUSE_PROTOCOL_HTTP = yes; then
7877               result=no
7878             else
7879               result=yes
7880             fi
7881           else
7882             result=$wxUSE_PROTOCOL_HTTP
7883           fi
7884
7885           { echo "$as_me:$LINENO: result: $result" >&5
7886 echo "${ECHO_T}$result" >&6; }
7887
7888
7889           enablestring=
7890           defaultval=$wxUSE_ALL_FEATURES
7891           if test -z "$defaultval"; then
7892               if test x"$enablestring" = xdisable; then
7893                   defaultval=yes
7894               else
7895                   defaultval=no
7896               fi
7897           fi
7898
7899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
7900 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
7901           # Check whether --enable-protocol_ftp was given.
7902 if test "${enable_protocol_ftp+set}" = set; then
7903   enableval=$enable_protocol_ftp;
7904                           if test "$enableval" = yes; then
7905                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
7906                           else
7907                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7908                           fi
7909
7910 else
7911
7912                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
7913
7914 fi
7915
7916
7917           eval "$wx_cv_use_protocol_ftp"
7918
7919           if test x"$enablestring" = xdisable; then
7920             if test $wxUSE_PROTOCOL_FTP = yes; then
7921               result=no
7922             else
7923               result=yes
7924             fi
7925           else
7926             result=$wxUSE_PROTOCOL_FTP
7927           fi
7928
7929           { echo "$as_me:$LINENO: result: $result" >&5
7930 echo "${ECHO_T}$result" >&6; }
7931
7932
7933           enablestring=
7934           defaultval=$wxUSE_ALL_FEATURES
7935           if test -z "$defaultval"; then
7936               if test x"$enablestring" = xdisable; then
7937                   defaultval=yes
7938               else
7939                   defaultval=no
7940               fi
7941           fi
7942
7943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
7944 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
7945           # Check whether --enable-protocol_file was given.
7946 if test "${enable_protocol_file+set}" = set; then
7947   enableval=$enable_protocol_file;
7948                           if test "$enableval" = yes; then
7949                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
7950                           else
7951                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
7952                           fi
7953
7954 else
7955
7956                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
7957
7958 fi
7959
7960
7961           eval "$wx_cv_use_protocol_file"
7962
7963           if test x"$enablestring" = xdisable; then
7964             if test $wxUSE_PROTOCOL_FILE = yes; then
7965               result=no
7966             else
7967               result=yes
7968             fi
7969           else
7970             result=$wxUSE_PROTOCOL_FILE
7971           fi
7972
7973           { echo "$as_me:$LINENO: result: $result" >&5
7974 echo "${ECHO_T}$result" >&6; }
7975
7976
7977
7978           enablestring=
7979           defaultval=$wxUSE_ALL_FEATURES
7980           if test -z "$defaultval"; then
7981               if test x"$enablestring" = xdisable; then
7982                   defaultval=yes
7983               else
7984                   defaultval=no
7985               fi
7986           fi
7987
7988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
7989 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
7990           # Check whether --enable-threads was given.
7991 if test "${enable_threads+set}" = set; then
7992   enableval=$enable_threads;
7993                           if test "$enableval" = yes; then
7994                             wx_cv_use_threads='wxUSE_THREADS=yes'
7995                           else
7996                             wx_cv_use_threads='wxUSE_THREADS=no'
7997                           fi
7998
7999 else
8000
8001                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8002
8003 fi
8004
8005
8006           eval "$wx_cv_use_threads"
8007
8008           if test x"$enablestring" = xdisable; then
8009             if test $wxUSE_THREADS = yes; then
8010               result=no
8011             else
8012               result=yes
8013             fi
8014           else
8015             result=$wxUSE_THREADS
8016           fi
8017
8018           { echo "$as_me:$LINENO: result: $result" >&5
8019 echo "${ECHO_T}$result" >&6; }
8020
8021
8022
8023           enablestring=
8024           defaultval=
8025           if test -z "$defaultval"; then
8026               if test x"$enablestring" = xdisable; then
8027                   defaultval=yes
8028               else
8029                   defaultval=no
8030               fi
8031           fi
8032
8033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8034 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8035           # Check whether --enable-iniconf was given.
8036 if test "${enable_iniconf+set}" = set; then
8037   enableval=$enable_iniconf;
8038                           if test "$enableval" = yes; then
8039                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8040                           else
8041                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8042                           fi
8043
8044 else
8045
8046                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8047
8048 fi
8049
8050
8051           eval "$wx_cv_use_iniconf"
8052
8053           if test x"$enablestring" = xdisable; then
8054             if test $wxUSE_INICONF = yes; then
8055               result=no
8056             else
8057               result=yes
8058             fi
8059           else
8060             result=$wxUSE_INICONF
8061           fi
8062
8063           { echo "$as_me:$LINENO: result: $result" >&5
8064 echo "${ECHO_T}$result" >&6; }
8065
8066
8067           enablestring=
8068           defaultval=$wxUSE_ALL_FEATURES
8069           if test -z "$defaultval"; then
8070               if test x"$enablestring" = xdisable; then
8071                   defaultval=yes
8072               else
8073                   defaultval=no
8074               fi
8075           fi
8076
8077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8078 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8079           # Check whether --enable-regkey was given.
8080 if test "${enable_regkey+set}" = set; then
8081   enableval=$enable_regkey;
8082                           if test "$enableval" = yes; then
8083                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8084                           else
8085                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8086                           fi
8087
8088 else
8089
8090                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8091
8092 fi
8093
8094
8095           eval "$wx_cv_use_regkey"
8096
8097           if test x"$enablestring" = xdisable; then
8098             if test $wxUSE_REGKEY = yes; then
8099               result=no
8100             else
8101               result=yes
8102             fi
8103           else
8104             result=$wxUSE_REGKEY
8105           fi
8106
8107           { echo "$as_me:$LINENO: result: $result" >&5
8108 echo "${ECHO_T}$result" >&6; }
8109
8110
8111 if test "$wxUSE_GUI" = "yes"; then
8112
8113
8114
8115           enablestring=
8116           defaultval=$wxUSE_ALL_FEATURES
8117           if test -z "$defaultval"; then
8118               if test x"$enablestring" = xdisable; then
8119                   defaultval=yes
8120               else
8121                   defaultval=no
8122               fi
8123           fi
8124
8125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8126 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8127           # Check whether --enable-docview was given.
8128 if test "${enable_docview+set}" = set; then
8129   enableval=$enable_docview;
8130                           if test "$enableval" = yes; then
8131                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8132                           else
8133                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8134                           fi
8135
8136 else
8137
8138                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8139
8140 fi
8141
8142
8143           eval "$wx_cv_use_docview"
8144
8145           if test x"$enablestring" = xdisable; then
8146             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8147               result=no
8148             else
8149               result=yes
8150             fi
8151           else
8152             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8153           fi
8154
8155           { echo "$as_me:$LINENO: result: $result" >&5
8156 echo "${ECHO_T}$result" >&6; }
8157
8158
8159           enablestring=
8160           defaultval=$wxUSE_ALL_FEATURES
8161           if test -z "$defaultval"; then
8162               if test x"$enablestring" = xdisable; then
8163                   defaultval=yes
8164               else
8165                   defaultval=no
8166               fi
8167           fi
8168
8169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8170 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8171           # Check whether --enable-help was given.
8172 if test "${enable_help+set}" = set; then
8173   enableval=$enable_help;
8174                           if test "$enableval" = yes; then
8175                             wx_cv_use_help='wxUSE_HELP=yes'
8176                           else
8177                             wx_cv_use_help='wxUSE_HELP=no'
8178                           fi
8179
8180 else
8181
8182                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8183
8184 fi
8185
8186
8187           eval "$wx_cv_use_help"
8188
8189           if test x"$enablestring" = xdisable; then
8190             if test $wxUSE_HELP = yes; then
8191               result=no
8192             else
8193               result=yes
8194             fi
8195           else
8196             result=$wxUSE_HELP
8197           fi
8198
8199           { echo "$as_me:$LINENO: result: $result" >&5
8200 echo "${ECHO_T}$result" >&6; }
8201
8202
8203           enablestring=
8204           defaultval=$wxUSE_ALL_FEATURES
8205           if test -z "$defaultval"; then
8206               if test x"$enablestring" = xdisable; then
8207                   defaultval=yes
8208               else
8209                   defaultval=no
8210               fi
8211           fi
8212
8213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8214 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8215           # Check whether --enable-mshtmlhelp was given.
8216 if test "${enable_mshtmlhelp+set}" = set; then
8217   enableval=$enable_mshtmlhelp;
8218                           if test "$enableval" = yes; then
8219                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8220                           else
8221                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8222                           fi
8223
8224 else
8225
8226                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8227
8228 fi
8229
8230
8231           eval "$wx_cv_use_mshtmlhelp"
8232
8233           if test x"$enablestring" = xdisable; then
8234             if test $wxUSE_MS_HTML_HELP = yes; then
8235               result=no
8236             else
8237               result=yes
8238             fi
8239           else
8240             result=$wxUSE_MS_HTML_HELP
8241           fi
8242
8243           { echo "$as_me:$LINENO: result: $result" >&5
8244 echo "${ECHO_T}$result" >&6; }
8245
8246
8247           enablestring=
8248           defaultval=$wxUSE_ALL_FEATURES
8249           if test -z "$defaultval"; then
8250               if test x"$enablestring" = xdisable; then
8251                   defaultval=yes
8252               else
8253                   defaultval=no
8254               fi
8255           fi
8256
8257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8258 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8259           # Check whether --enable-html was given.
8260 if test "${enable_html+set}" = set; then
8261   enableval=$enable_html;
8262                           if test "$enableval" = yes; then
8263                             wx_cv_use_html='wxUSE_HTML=yes'
8264                           else
8265                             wx_cv_use_html='wxUSE_HTML=no'
8266                           fi
8267
8268 else
8269
8270                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8271
8272 fi
8273
8274
8275           eval "$wx_cv_use_html"
8276
8277           if test x"$enablestring" = xdisable; then
8278             if test $wxUSE_HTML = yes; then
8279               result=no
8280             else
8281               result=yes
8282             fi
8283           else
8284             result=$wxUSE_HTML
8285           fi
8286
8287           { echo "$as_me:$LINENO: result: $result" >&5
8288 echo "${ECHO_T}$result" >&6; }
8289
8290
8291           enablestring=
8292           defaultval=$wxUSE_ALL_FEATURES
8293           if test -z "$defaultval"; then
8294               if test x"$enablestring" = xdisable; then
8295                   defaultval=yes
8296               else
8297                   defaultval=no
8298               fi
8299           fi
8300
8301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8302 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8303           # Check whether --enable-htmlhelp was given.
8304 if test "${enable_htmlhelp+set}" = set; then
8305   enableval=$enable_htmlhelp;
8306                           if test "$enableval" = yes; then
8307                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8308                           else
8309                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8310                           fi
8311
8312 else
8313
8314                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8315
8316 fi
8317
8318
8319           eval "$wx_cv_use_htmlhelp"
8320
8321           if test x"$enablestring" = xdisable; then
8322             if test $wxUSE_WXHTML_HELP = yes; then
8323               result=no
8324             else
8325               result=yes
8326             fi
8327           else
8328             result=$wxUSE_WXHTML_HELP
8329           fi
8330
8331           { echo "$as_me:$LINENO: result: $result" >&5
8332 echo "${ECHO_T}$result" >&6; }
8333
8334
8335           enablestring=
8336           defaultval=$wxUSE_ALL_FEATURES
8337           if test -z "$defaultval"; then
8338               if test x"$enablestring" = xdisable; then
8339                   defaultval=yes
8340               else
8341                   defaultval=no
8342               fi
8343           fi
8344
8345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8346 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8347           # Check whether --enable-xrc was given.
8348 if test "${enable_xrc+set}" = set; then
8349   enableval=$enable_xrc;
8350                           if test "$enableval" = yes; then
8351                             wx_cv_use_xrc='wxUSE_XRC=yes'
8352                           else
8353                             wx_cv_use_xrc='wxUSE_XRC=no'
8354                           fi
8355
8356 else
8357
8358                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8359
8360 fi
8361
8362
8363           eval "$wx_cv_use_xrc"
8364
8365           if test x"$enablestring" = xdisable; then
8366             if test $wxUSE_XRC = yes; then
8367               result=no
8368             else
8369               result=yes
8370             fi
8371           else
8372             result=$wxUSE_XRC
8373           fi
8374
8375           { echo "$as_me:$LINENO: result: $result" >&5
8376 echo "${ECHO_T}$result" >&6; }
8377
8378
8379           enablestring=
8380           defaultval=$wxUSE_ALL_FEATURES
8381           if test -z "$defaultval"; then
8382               if test x"$enablestring" = xdisable; then
8383                   defaultval=yes
8384               else
8385                   defaultval=no
8386               fi
8387           fi
8388
8389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8390 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8391           # Check whether --enable-aui was given.
8392 if test "${enable_aui+set}" = set; then
8393   enableval=$enable_aui;
8394                           if test "$enableval" = yes; then
8395                             wx_cv_use_aui='wxUSE_AUI=yes'
8396                           else
8397                             wx_cv_use_aui='wxUSE_AUI=no'
8398                           fi
8399
8400 else
8401
8402                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8403
8404 fi
8405
8406
8407           eval "$wx_cv_use_aui"
8408
8409           if test x"$enablestring" = xdisable; then
8410             if test $wxUSE_AUI = yes; then
8411               result=no
8412             else
8413               result=yes
8414             fi
8415           else
8416             result=$wxUSE_AUI
8417           fi
8418
8419           { echo "$as_me:$LINENO: result: $result" >&5
8420 echo "${ECHO_T}$result" >&6; }
8421
8422
8423           enablestring=
8424           defaultval=$wxUSE_ALL_FEATURES
8425           if test -z "$defaultval"; then
8426               if test x"$enablestring" = xdisable; then
8427                   defaultval=yes
8428               else
8429                   defaultval=no
8430               fi
8431           fi
8432
8433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8434 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8435           # Check whether --enable-stc was given.
8436 if test "${enable_stc+set}" = set; then
8437   enableval=$enable_stc;
8438                           if test "$enableval" = yes; then
8439                             wx_cv_use_stc='wxUSE_STC=yes'
8440                           else
8441                             wx_cv_use_stc='wxUSE_STC=no'
8442                           fi
8443
8444 else
8445
8446                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8447
8448 fi
8449
8450
8451           eval "$wx_cv_use_stc"
8452
8453           if test x"$enablestring" = xdisable; then
8454             if test $wxUSE_STC = yes; then
8455               result=no
8456             else
8457               result=yes
8458             fi
8459           else
8460             result=$wxUSE_STC
8461           fi
8462
8463           { echo "$as_me:$LINENO: result: $result" >&5
8464 echo "${ECHO_T}$result" >&6; }
8465
8466
8467           enablestring=
8468           defaultval=$wxUSE_ALL_FEATURES
8469           if test -z "$defaultval"; then
8470               if test x"$enablestring" = xdisable; then
8471                   defaultval=yes
8472               else
8473                   defaultval=no
8474               fi
8475           fi
8476
8477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8478 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8479           # Check whether --enable-constraints was given.
8480 if test "${enable_constraints+set}" = set; then
8481   enableval=$enable_constraints;
8482                           if test "$enableval" = yes; then
8483                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8484                           else
8485                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8486                           fi
8487
8488 else
8489
8490                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8491
8492 fi
8493
8494
8495           eval "$wx_cv_use_constraints"
8496
8497           if test x"$enablestring" = xdisable; then
8498             if test $wxUSE_CONSTRAINTS = yes; then
8499               result=no
8500             else
8501               result=yes
8502             fi
8503           else
8504             result=$wxUSE_CONSTRAINTS
8505           fi
8506
8507           { echo "$as_me:$LINENO: result: $result" >&5
8508 echo "${ECHO_T}$result" >&6; }
8509
8510
8511           enablestring=
8512           defaultval=$wxUSE_ALL_FEATURES
8513           if test -z "$defaultval"; then
8514               if test x"$enablestring" = xdisable; then
8515                   defaultval=yes
8516               else
8517                   defaultval=no
8518               fi
8519           fi
8520
8521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8522 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
8523           # Check whether --enable-printarch was given.
8524 if test "${enable_printarch+set}" = set; then
8525   enableval=$enable_printarch;
8526                           if test "$enableval" = yes; then
8527                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8528                           else
8529                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8530                           fi
8531
8532 else
8533
8534                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
8535
8536 fi
8537
8538
8539           eval "$wx_cv_use_printarch"
8540
8541           if test x"$enablestring" = xdisable; then
8542             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
8543               result=no
8544             else
8545               result=yes
8546             fi
8547           else
8548             result=$wxUSE_PRINTING_ARCHITECTURE
8549           fi
8550
8551           { echo "$as_me:$LINENO: result: $result" >&5
8552 echo "${ECHO_T}$result" >&6; }
8553
8554
8555           enablestring=
8556           defaultval=$wxUSE_ALL_FEATURES
8557           if test -z "$defaultval"; then
8558               if test x"$enablestring" = xdisable; then
8559                   defaultval=yes
8560               else
8561                   defaultval=no
8562               fi
8563           fi
8564
8565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8566 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8567           # Check whether --enable-mdi was given.
8568 if test "${enable_mdi+set}" = set; then
8569   enableval=$enable_mdi;
8570                           if test "$enableval" = yes; then
8571                             wx_cv_use_mdi='wxUSE_MDI=yes'
8572                           else
8573                             wx_cv_use_mdi='wxUSE_MDI=no'
8574                           fi
8575
8576 else
8577
8578                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8579
8580 fi
8581
8582
8583           eval "$wx_cv_use_mdi"
8584
8585           if test x"$enablestring" = xdisable; then
8586             if test $wxUSE_MDI = yes; then
8587               result=no
8588             else
8589               result=yes
8590             fi
8591           else
8592             result=$wxUSE_MDI
8593           fi
8594
8595           { echo "$as_me:$LINENO: result: $result" >&5
8596 echo "${ECHO_T}$result" >&6; }
8597
8598
8599           enablestring=
8600           defaultval=$wxUSE_ALL_FEATURES
8601           if test -z "$defaultval"; then
8602               if test x"$enablestring" = xdisable; then
8603                   defaultval=yes
8604               else
8605                   defaultval=no
8606               fi
8607           fi
8608
8609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8610 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8611           # Check whether --enable-mdidoc was given.
8612 if test "${enable_mdidoc+set}" = set; then
8613   enableval=$enable_mdidoc;
8614                           if test "$enableval" = yes; then
8615                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8616                           else
8617                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8618                           fi
8619
8620 else
8621
8622                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8623
8624 fi
8625
8626
8627           eval "$wx_cv_use_mdidoc"
8628
8629           if test x"$enablestring" = xdisable; then
8630             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8631               result=no
8632             else
8633               result=yes
8634             fi
8635           else
8636             result=$wxUSE_MDI_ARCHITECTURE
8637           fi
8638
8639           { echo "$as_me:$LINENO: result: $result" >&5
8640 echo "${ECHO_T}$result" >&6; }
8641
8642
8643           enablestring=
8644           defaultval=$wxUSE_ALL_FEATURES
8645           if test -z "$defaultval"; then
8646               if test x"$enablestring" = xdisable; then
8647                   defaultval=yes
8648               else
8649                   defaultval=no
8650               fi
8651           fi
8652
8653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8654 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8655           # Check whether --enable-loggui was given.
8656 if test "${enable_loggui+set}" = set; then
8657   enableval=$enable_loggui;
8658                           if test "$enableval" = yes; then
8659                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8660                           else
8661                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8662                           fi
8663
8664 else
8665
8666                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8667
8668 fi
8669
8670
8671           eval "$wx_cv_use_loggui"
8672
8673           if test x"$enablestring" = xdisable; then
8674             if test $wxUSE_LOGGUI = yes; then
8675               result=no
8676             else
8677               result=yes
8678             fi
8679           else
8680             result=$wxUSE_LOGGUI
8681           fi
8682
8683           { echo "$as_me:$LINENO: result: $result" >&5
8684 echo "${ECHO_T}$result" >&6; }
8685
8686
8687           enablestring=
8688           defaultval=$wxUSE_ALL_FEATURES
8689           if test -z "$defaultval"; then
8690               if test x"$enablestring" = xdisable; then
8691                   defaultval=yes
8692               else
8693                   defaultval=no
8694               fi
8695           fi
8696
8697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8698 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8699           # Check whether --enable-logwin was given.
8700 if test "${enable_logwin+set}" = set; then
8701   enableval=$enable_logwin;
8702                           if test "$enableval" = yes; then
8703                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8704                           else
8705                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8706                           fi
8707
8708 else
8709
8710                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8711
8712 fi
8713
8714
8715           eval "$wx_cv_use_logwin"
8716
8717           if test x"$enablestring" = xdisable; then
8718             if test $wxUSE_LOGWINDOW = yes; then
8719               result=no
8720             else
8721               result=yes
8722             fi
8723           else
8724             result=$wxUSE_LOGWINDOW
8725           fi
8726
8727           { echo "$as_me:$LINENO: result: $result" >&5
8728 echo "${ECHO_T}$result" >&6; }
8729
8730
8731           enablestring=
8732           defaultval=$wxUSE_ALL_FEATURES
8733           if test -z "$defaultval"; then
8734               if test x"$enablestring" = xdisable; then
8735                   defaultval=yes
8736               else
8737                   defaultval=no
8738               fi
8739           fi
8740
8741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8742 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8743           # Check whether --enable-logdialog was given.
8744 if test "${enable_logdialog+set}" = set; then
8745   enableval=$enable_logdialog;
8746                           if test "$enableval" = yes; then
8747                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8748                           else
8749                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8750                           fi
8751
8752 else
8753
8754                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8755
8756 fi
8757
8758
8759           eval "$wx_cv_use_logdialog"
8760
8761           if test x"$enablestring" = xdisable; then
8762             if test $wxUSE_LOGDIALOG = yes; then
8763               result=no
8764             else
8765               result=yes
8766             fi
8767           else
8768             result=$wxUSE_LOGDIALOG
8769           fi
8770
8771           { echo "$as_me:$LINENO: result: $result" >&5
8772 echo "${ECHO_T}$result" >&6; }
8773
8774
8775           enablestring=
8776           defaultval=$wxUSE_ALL_FEATURES
8777           if test -z "$defaultval"; then
8778               if test x"$enablestring" = xdisable; then
8779                   defaultval=yes
8780               else
8781                   defaultval=no
8782               fi
8783           fi
8784
8785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8786 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8787           # Check whether --enable-webkit was given.
8788 if test "${enable_webkit+set}" = set; then
8789   enableval=$enable_webkit;
8790                           if test "$enableval" = yes; then
8791                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
8792                           else
8793                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
8794                           fi
8795
8796 else
8797
8798                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8799
8800 fi
8801
8802
8803           eval "$wx_cv_use_webkit"
8804
8805           if test x"$enablestring" = xdisable; then
8806             if test $wxUSE_WEBKIT = yes; then
8807               result=no
8808             else
8809               result=yes
8810             fi
8811           else
8812             result=$wxUSE_WEBKIT
8813           fi
8814
8815           { echo "$as_me:$LINENO: result: $result" >&5
8816 echo "${ECHO_T}$result" >&6; }
8817
8818
8819           enablestring=
8820           defaultval=$wxUSE_ALL_FEATURES
8821           if test -z "$defaultval"; then
8822               if test x"$enablestring" = xdisable; then
8823                   defaultval=yes
8824               else
8825                   defaultval=no
8826               fi
8827           fi
8828
8829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8830 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8831           # Check whether --enable-richtext was given.
8832 if test "${enable_richtext+set}" = set; then
8833   enableval=$enable_richtext;
8834                           if test "$enableval" = yes; then
8835                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
8836                           else
8837                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
8838                           fi
8839
8840 else
8841
8842                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
8843
8844 fi
8845
8846
8847           eval "$wx_cv_use_richtext"
8848
8849           if test x"$enablestring" = xdisable; then
8850             if test $wxUSE_RICHTEXT = yes; then
8851               result=no
8852             else
8853               result=yes
8854             fi
8855           else
8856             result=$wxUSE_RICHTEXT
8857           fi
8858
8859           { echo "$as_me:$LINENO: result: $result" >&5
8860 echo "${ECHO_T}$result" >&6; }
8861
8862
8863           enablestring=
8864           defaultval=$wxUSE_ALL_FEATURES
8865           if test -z "$defaultval"; then
8866               if test x"$enablestring" = xdisable; then
8867                   defaultval=yes
8868               else
8869                   defaultval=no
8870               fi
8871           fi
8872
8873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
8874 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
8875           # Check whether --enable-graphics_ctx was given.
8876 if test "${enable_graphics_ctx+set}" = set; then
8877   enableval=$enable_graphics_ctx;
8878                           if test "$enableval" = yes; then
8879                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
8880                           else
8881                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
8882                           fi
8883
8884 else
8885
8886                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
8887
8888 fi
8889
8890
8891           eval "$wx_cv_use_graphics_ctx"
8892
8893           if test x"$enablestring" = xdisable; then
8894             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
8895               result=no
8896             else
8897               result=yes
8898             fi
8899           else
8900             result=$wxUSE_GRAPHICS_CONTEXT
8901           fi
8902
8903           { echo "$as_me:$LINENO: result: $result" >&5
8904 echo "${ECHO_T}$result" >&6; }
8905
8906
8907           enablestring=
8908           defaultval=$wxUSE_ALL_FEATURES
8909           if test -z "$defaultval"; then
8910               if test x"$enablestring" = xdisable; then
8911                   defaultval=yes
8912               else
8913                   defaultval=no
8914               fi
8915           fi
8916
8917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
8918 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
8919           # Check whether --enable-postscript was given.
8920 if test "${enable_postscript+set}" = set; then
8921   enableval=$enable_postscript;
8922                           if test "$enableval" = yes; then
8923                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
8924                           else
8925                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
8926                           fi
8927
8928 else
8929
8930                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
8931
8932 fi
8933
8934
8935           eval "$wx_cv_use_postscript"
8936
8937           if test x"$enablestring" = xdisable; then
8938             if test $wxUSE_POSTSCRIPT = yes; then
8939               result=no
8940             else
8941               result=yes
8942             fi
8943           else
8944             result=$wxUSE_POSTSCRIPT
8945           fi
8946
8947           { echo "$as_me:$LINENO: result: $result" >&5
8948 echo "${ECHO_T}$result" >&6; }
8949
8950
8951           enablestring=
8952           defaultval=$wxUSE_ALL_FEATURES
8953           if test -z "$defaultval"; then
8954               if test x"$enablestring" = xdisable; then
8955                   defaultval=yes
8956               else
8957                   defaultval=no
8958               fi
8959           fi
8960
8961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
8962 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
8963           # Check whether --enable-svg was given.
8964 if test "${enable_svg+set}" = set; then
8965   enableval=$enable_svg;
8966                           if test "$enableval" = yes; then
8967                             wx_cv_use_svg='wxUSE_SVG=yes'
8968                           else
8969                             wx_cv_use_svg='wxUSE_SVG=no'
8970                           fi
8971
8972 else
8973
8974                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
8975
8976 fi
8977
8978
8979           eval "$wx_cv_use_svg"
8980
8981           if test x"$enablestring" = xdisable; then
8982             if test $wxUSE_SVG = yes; then
8983               result=no
8984             else
8985               result=yes
8986             fi
8987           else
8988             result=$wxUSE_SVG
8989           fi
8990
8991           { echo "$as_me:$LINENO: result: $result" >&5
8992 echo "${ECHO_T}$result" >&6; }
8993
8994
8995
8996
8997           enablestring=
8998           defaultval=$wxUSE_ALL_FEATURES
8999           if test -z "$defaultval"; then
9000               if test x"$enablestring" = xdisable; then
9001                   defaultval=yes
9002               else
9003                   defaultval=no
9004               fi
9005           fi
9006
9007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9008 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9009           # Check whether --enable-clipboard was given.
9010 if test "${enable_clipboard+set}" = set; then
9011   enableval=$enable_clipboard;
9012                           if test "$enableval" = yes; then
9013                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9014                           else
9015                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9016                           fi
9017
9018 else
9019
9020                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9021
9022 fi
9023
9024
9025           eval "$wx_cv_use_clipboard"
9026
9027           if test x"$enablestring" = xdisable; then
9028             if test $wxUSE_CLIPBOARD = yes; then
9029               result=no
9030             else
9031               result=yes
9032             fi
9033           else
9034             result=$wxUSE_CLIPBOARD
9035           fi
9036
9037           { echo "$as_me:$LINENO: result: $result" >&5
9038 echo "${ECHO_T}$result" >&6; }
9039
9040
9041           enablestring=
9042           defaultval=$wxUSE_ALL_FEATURES
9043           if test -z "$defaultval"; then
9044               if test x"$enablestring" = xdisable; then
9045                   defaultval=yes
9046               else
9047                   defaultval=no
9048               fi
9049           fi
9050
9051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9052 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9053           # Check whether --enable-dnd was given.
9054 if test "${enable_dnd+set}" = set; then
9055   enableval=$enable_dnd;
9056                           if test "$enableval" = yes; then
9057                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9058                           else
9059                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9060                           fi
9061
9062 else
9063
9064                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9065
9066 fi
9067
9068
9069           eval "$wx_cv_use_dnd"
9070
9071           if test x"$enablestring" = xdisable; then
9072             if test $wxUSE_DRAG_AND_DROP = yes; then
9073               result=no
9074             else
9075               result=yes
9076             fi
9077           else
9078             result=$wxUSE_DRAG_AND_DROP
9079           fi
9080
9081           { echo "$as_me:$LINENO: result: $result" >&5
9082 echo "${ECHO_T}$result" >&6; }
9083
9084
9085           enablestring=
9086           defaultval=$wxUSE_ALL_FEATURES
9087           if test -z "$defaultval"; then
9088               if test x"$enablestring" = xdisable; then
9089                   defaultval=yes
9090               else
9091                   defaultval=no
9092               fi
9093           fi
9094
9095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9096 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9097           # Check whether --enable-metafile was given.
9098 if test "${enable_metafile+set}" = set; then
9099   enableval=$enable_metafile;
9100                           if test "$enableval" = yes; then
9101                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9102                           else
9103                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9104                           fi
9105
9106 else
9107
9108                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9109
9110 fi
9111
9112
9113           eval "$wx_cv_use_metafile"
9114
9115           if test x"$enablestring" = xdisable; then
9116             if test $wxUSE_METAFILE = yes; then
9117               result=no
9118             else
9119               result=yes
9120             fi
9121           else
9122             result=$wxUSE_METAFILE
9123           fi
9124
9125           { echo "$as_me:$LINENO: result: $result" >&5
9126 echo "${ECHO_T}$result" >&6; }
9127
9128
9129
9130 DEFAULT_wxUSE_CONTROLS=none
9131
9132           enablestring=disable
9133           defaultval=
9134           if test -z "$defaultval"; then
9135               if test x"$enablestring" = xdisable; then
9136                   defaultval=yes
9137               else
9138                   defaultval=no
9139               fi
9140           fi
9141
9142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9144           # Check whether --enable-controls was given.
9145 if test "${enable_controls+set}" = set; then
9146   enableval=$enable_controls;
9147                           if test "$enableval" = yes; then
9148                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9149                           else
9150                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9151                           fi
9152
9153 else
9154
9155                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9156
9157 fi
9158
9159
9160           eval "$wx_cv_use_controls"
9161
9162           if test x"$enablestring" = xdisable; then
9163             if test $wxUSE_CONTROLS = yes; then
9164               result=no
9165             else
9166               result=yes
9167             fi
9168           else
9169             result=$wxUSE_CONTROLS
9170           fi
9171
9172           { echo "$as_me:$LINENO: result: $result" >&5
9173 echo "${ECHO_T}$result" >&6; }
9174
9175
9176 if test "$wxUSE_CONTROLS" = "yes"; then
9177   DEFAULT_wxUSE_ACCEL=yes
9178   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9179   DEFAULT_wxUSE_BMPBUTTON=yes
9180   DEFAULT_wxUSE_BUTTON=yes
9181   DEFAULT_wxUSE_CALCTRL=yes
9182   DEFAULT_wxUSE_CARET=yes
9183   DEFAULT_wxUSE_COMBOBOX=yes
9184   DEFAULT_wxUSE_CHECKBOX=yes
9185   DEFAULT_wxUSE_CHECKLISTBOX=yes
9186   DEFAULT_wxUSE_CHOICE=yes
9187   DEFAULT_wxUSE_CHOICEBOOK=yes
9188   DEFAULT_wxUSE_COLLPANE=yes
9189   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9190   DEFAULT_wxUSE_COMBOBOX=yes
9191   DEFAULT_wxUSE_DATEPICKCTRL=yes
9192   DEFAULT_wxUSE_DISPLAY=yes
9193   DEFAULT_wxUSE_DETECT_SM=yes
9194   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9195   DEFAULT_wxUSE_FILECTRL=yes
9196   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9197   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9198   DEFAULT_wxUSE_GAUGE=yes
9199   DEFAULT_wxUSE_GRID=yes
9200   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9201   DEFAULT_wxUSE_DATAVIEWCTRL=no
9202   DEFAULT_wxUSE_IMAGLIST=yes
9203   DEFAULT_wxUSE_LISTBOOK=yes
9204   DEFAULT_wxUSE_LISTBOX=yes
9205   DEFAULT_wxUSE_LISTCTRL=yes
9206   DEFAULT_wxUSE_NOTEBOOK=yes
9207   DEFAULT_wxUSE_RADIOBOX=yes
9208   DEFAULT_wxUSE_RADIOBTN=yes
9209   DEFAULT_wxUSE_SASH=yes
9210   DEFAULT_wxUSE_SCROLLBAR=yes
9211   DEFAULT_wxUSE_SEARCHCTRL=yes
9212   DEFAULT_wxUSE_SLIDER=yes
9213   DEFAULT_wxUSE_SPINBTN=yes
9214   DEFAULT_wxUSE_SPINCTRL=yes
9215   DEFAULT_wxUSE_SPLITTER=yes
9216   DEFAULT_wxUSE_STATBMP=yes
9217   DEFAULT_wxUSE_STATBOX=yes
9218   DEFAULT_wxUSE_STATLINE=yes
9219   DEFAULT_wxUSE_STATUSBAR=yes
9220   DEFAULT_wxUSE_TAB_DIALOG=yes
9221   DEFAULT_wxUSE_TOGGLEBTN=yes
9222   DEFAULT_wxUSE_TOOLBAR=yes
9223   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9224   DEFAULT_wxUSE_TOOLTIPS=yes
9225   DEFAULT_wxUSE_TREEBOOK=yes
9226   DEFAULT_wxUSE_TOOLBOOK=yes
9227   DEFAULT_wxUSE_TREECTRL=yes
9228   DEFAULT_wxUSE_POPUPWIN=yes
9229   DEFAULT_wxUSE_TIPWINDOW=yes
9230 elif test "$wxUSE_CONTROLS" = "no"; then
9231   DEFAULT_wxUSE_ACCEL=no
9232   DEFAULT_wxUSE_ANIMATIONCTRL=no
9233   DEFAULT_wxUSE_BMPBUTTON=no
9234   DEFAULT_wxUSE_BUTTON=no
9235   DEFAULT_wxUSE_CALCTRL=no
9236   DEFAULT_wxUSE_CARET=no
9237   DEFAULT_wxUSE_COLLPANE=no
9238   DEFAULT_wxUSE_COMBOBOX=no
9239   DEFAULT_wxUSE_CHECKBOX=no
9240   DEFAULT_wxUSE_CHECKLISTBOX=no
9241   DEFAULT_wxUSE_CHOICE=no
9242   DEFAULT_wxUSE_CHOICEBOOK=no
9243   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9244   DEFAULT_wxUSE_COMBOBOX=no
9245   DEFAULT_wxUSE_DATEPICKCTRL=no
9246   DEFAULT_wxUSE_DISPLAY=no
9247   DEFAULT_wxUSE_DETECT_SM=no
9248   DEFAULT_wxUSE_DIRPICKERCTRL=no
9249   DEFAULT_wxUSE_FILECTRL=no
9250   DEFAULT_wxUSE_FILEPICKERCTRL=no
9251   DEFAULT_wxUSE_FONTPICKERCTRL=no
9252   DEFAULT_wxUSE_GAUGE=no
9253   DEFAULT_wxUSE_GRID=no
9254   DEFAULT_wxUSE_HYPERLINKCTRL=no
9255   DEFAULT_wxUSE_DATAVIEWCTRL=no
9256   DEFAULT_wxUSE_IMAGLIST=no
9257   DEFAULT_wxUSE_LISTBOOK=no
9258   DEFAULT_wxUSE_LISTBOX=no
9259   DEFAULT_wxUSE_LISTCTRL=no
9260   DEFAULT_wxUSE_NOTEBOOK=no
9261   DEFAULT_wxUSE_RADIOBOX=no
9262   DEFAULT_wxUSE_RADIOBTN=no
9263   DEFAULT_wxUSE_SASH=no
9264   DEFAULT_wxUSE_SCROLLBAR=no
9265   DEFAULT_wxUSE_SEARCHCTRL=no
9266   DEFAULT_wxUSE_SLIDER=no
9267   DEFAULT_wxUSE_SPINBTN=no
9268   DEFAULT_wxUSE_SPINCTRL=no
9269   DEFAULT_wxUSE_SPLITTER=no
9270   DEFAULT_wxUSE_STATBMP=no
9271   DEFAULT_wxUSE_STATBOX=no
9272   DEFAULT_wxUSE_STATLINE=no
9273   DEFAULT_wxUSE_STATUSBAR=no
9274   DEFAULT_wxUSE_TAB_DIALOG=no
9275   DEFAULT_wxUSE_TOGGLEBTN=no
9276   DEFAULT_wxUSE_TOOLBAR=no
9277   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9278   DEFAULT_wxUSE_TOOLTIPS=no
9279   DEFAULT_wxUSE_TREEBOOK=no
9280   DEFAULT_wxUSE_TOOLBOOK=no
9281   DEFAULT_wxUSE_TREECTRL=no
9282   DEFAULT_wxUSE_POPUPWIN=no
9283   DEFAULT_wxUSE_TIPWINDOW=no
9284 fi
9285
9286
9287           enablestring=
9288           defaultval=$wxUSE_ALL_FEATURES
9289           if test -z "$defaultval"; then
9290               if test x"$enablestring" = xdisable; then
9291                   defaultval=yes
9292               else
9293                   defaultval=no
9294               fi
9295           fi
9296
9297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9298 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9299           # Check whether --enable-accel was given.
9300 if test "${enable_accel+set}" = set; then
9301   enableval=$enable_accel;
9302                           if test "$enableval" = yes; then
9303                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9304                           else
9305                             wx_cv_use_accel='wxUSE_ACCEL=no'
9306                           fi
9307
9308 else
9309
9310                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9311
9312 fi
9313
9314
9315           eval "$wx_cv_use_accel"
9316
9317           if test x"$enablestring" = xdisable; then
9318             if test $wxUSE_ACCEL = yes; then
9319               result=no
9320             else
9321               result=yes
9322             fi
9323           else
9324             result=$wxUSE_ACCEL
9325           fi
9326
9327           { echo "$as_me:$LINENO: result: $result" >&5
9328 echo "${ECHO_T}$result" >&6; }
9329
9330
9331           enablestring=
9332           defaultval=$wxUSE_ALL_FEATURES
9333           if test -z "$defaultval"; then
9334               if test x"$enablestring" = xdisable; then
9335                   defaultval=yes
9336               else
9337                   defaultval=no
9338               fi
9339           fi
9340
9341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9342 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9343           # Check whether --enable-animatectrl was given.
9344 if test "${enable_animatectrl+set}" = set; then
9345   enableval=$enable_animatectrl;
9346                           if test "$enableval" = yes; then
9347                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9348                           else
9349                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9350                           fi
9351
9352 else
9353
9354                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9355
9356 fi
9357
9358
9359           eval "$wx_cv_use_animatectrl"
9360
9361           if test x"$enablestring" = xdisable; then
9362             if test $wxUSE_ANIMATIONCTRL = yes; then
9363               result=no
9364             else
9365               result=yes
9366             fi
9367           else
9368             result=$wxUSE_ANIMATIONCTRL
9369           fi
9370
9371           { echo "$as_me:$LINENO: result: $result" >&5
9372 echo "${ECHO_T}$result" >&6; }
9373
9374
9375           enablestring=
9376           defaultval=$wxUSE_ALL_FEATURES
9377           if test -z "$defaultval"; then
9378               if test x"$enablestring" = xdisable; then
9379                   defaultval=yes
9380               else
9381                   defaultval=no
9382               fi
9383           fi
9384
9385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9386 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9387           # Check whether --enable-button was given.
9388 if test "${enable_button+set}" = set; then
9389   enableval=$enable_button;
9390                           if test "$enableval" = yes; then
9391                             wx_cv_use_button='wxUSE_BUTTON=yes'
9392                           else
9393                             wx_cv_use_button='wxUSE_BUTTON=no'
9394                           fi
9395
9396 else
9397
9398                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9399
9400 fi
9401
9402
9403           eval "$wx_cv_use_button"
9404
9405           if test x"$enablestring" = xdisable; then
9406             if test $wxUSE_BUTTON = yes; then
9407               result=no
9408             else
9409               result=yes
9410             fi
9411           else
9412             result=$wxUSE_BUTTON
9413           fi
9414
9415           { echo "$as_me:$LINENO: result: $result" >&5
9416 echo "${ECHO_T}$result" >&6; }
9417
9418
9419           enablestring=
9420           defaultval=$wxUSE_ALL_FEATURES
9421           if test -z "$defaultval"; then
9422               if test x"$enablestring" = xdisable; then
9423                   defaultval=yes
9424               else
9425                   defaultval=no
9426               fi
9427           fi
9428
9429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9430 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9431           # Check whether --enable-bmpbutton was given.
9432 if test "${enable_bmpbutton+set}" = set; then
9433   enableval=$enable_bmpbutton;
9434                           if test "$enableval" = yes; then
9435                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9436                           else
9437                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9438                           fi
9439
9440 else
9441
9442                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9443
9444 fi
9445
9446
9447           eval "$wx_cv_use_bmpbutton"
9448
9449           if test x"$enablestring" = xdisable; then
9450             if test $wxUSE_BMPBUTTON = yes; then
9451               result=no
9452             else
9453               result=yes
9454             fi
9455           else
9456             result=$wxUSE_BMPBUTTON
9457           fi
9458
9459           { echo "$as_me:$LINENO: result: $result" >&5
9460 echo "${ECHO_T}$result" >&6; }
9461
9462
9463           enablestring=
9464           defaultval=$wxUSE_ALL_FEATURES
9465           if test -z "$defaultval"; then
9466               if test x"$enablestring" = xdisable; then
9467                   defaultval=yes
9468               else
9469                   defaultval=no
9470               fi
9471           fi
9472
9473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9474 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9475           # Check whether --enable-bmpcombobox was given.
9476 if test "${enable_bmpcombobox+set}" = set; then
9477   enableval=$enable_bmpcombobox;
9478                           if test "$enableval" = yes; then
9479                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9480                           else
9481                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9482                           fi
9483
9484 else
9485
9486                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9487
9488 fi
9489
9490
9491           eval "$wx_cv_use_bmpcombobox"
9492
9493           if test x"$enablestring" = xdisable; then
9494             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9495               result=no
9496             else
9497               result=yes
9498             fi
9499           else
9500             result=$wxUSE_BITMAPCOMBOBOX
9501           fi
9502
9503           { echo "$as_me:$LINENO: result: $result" >&5
9504 echo "${ECHO_T}$result" >&6; }
9505
9506
9507           enablestring=
9508           defaultval=$wxUSE_ALL_FEATURES
9509           if test -z "$defaultval"; then
9510               if test x"$enablestring" = xdisable; then
9511                   defaultval=yes
9512               else
9513                   defaultval=no
9514               fi
9515           fi
9516
9517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9518 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9519           # Check whether --enable-calendar was given.
9520 if test "${enable_calendar+set}" = set; then
9521   enableval=$enable_calendar;
9522                           if test "$enableval" = yes; then
9523                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9524                           else
9525                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9526                           fi
9527
9528 else
9529
9530                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9531
9532 fi
9533
9534
9535           eval "$wx_cv_use_calendar"
9536
9537           if test x"$enablestring" = xdisable; then
9538             if test $wxUSE_CALCTRL = yes; then
9539               result=no
9540             else
9541               result=yes
9542             fi
9543           else
9544             result=$wxUSE_CALCTRL
9545           fi
9546
9547           { echo "$as_me:$LINENO: result: $result" >&5
9548 echo "${ECHO_T}$result" >&6; }
9549
9550
9551           enablestring=
9552           defaultval=$wxUSE_ALL_FEATURES
9553           if test -z "$defaultval"; then
9554               if test x"$enablestring" = xdisable; then
9555                   defaultval=yes
9556               else
9557                   defaultval=no
9558               fi
9559           fi
9560
9561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9562 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9563           # Check whether --enable-caret was given.
9564 if test "${enable_caret+set}" = set; then
9565   enableval=$enable_caret;
9566                           if test "$enableval" = yes; then
9567                             wx_cv_use_caret='wxUSE_CARET=yes'
9568                           else
9569                             wx_cv_use_caret='wxUSE_CARET=no'
9570                           fi
9571
9572 else
9573
9574                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9575
9576 fi
9577
9578
9579           eval "$wx_cv_use_caret"
9580
9581           if test x"$enablestring" = xdisable; then
9582             if test $wxUSE_CARET = yes; then
9583               result=no
9584             else
9585               result=yes
9586             fi
9587           else
9588             result=$wxUSE_CARET
9589           fi
9590
9591           { echo "$as_me:$LINENO: result: $result" >&5
9592 echo "${ECHO_T}$result" >&6; }
9593
9594
9595           enablestring=
9596           defaultval=$wxUSE_ALL_FEATURES
9597           if test -z "$defaultval"; then
9598               if test x"$enablestring" = xdisable; then
9599                   defaultval=yes
9600               else
9601                   defaultval=no
9602               fi
9603           fi
9604
9605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9606 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9607           # Check whether --enable-checkbox was given.
9608 if test "${enable_checkbox+set}" = set; then
9609   enableval=$enable_checkbox;
9610                           if test "$enableval" = yes; then
9611                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9612                           else
9613                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9614                           fi
9615
9616 else
9617
9618                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9619
9620 fi
9621
9622
9623           eval "$wx_cv_use_checkbox"
9624
9625           if test x"$enablestring" = xdisable; then
9626             if test $wxUSE_CHECKBOX = yes; then
9627               result=no
9628             else
9629               result=yes
9630             fi
9631           else
9632             result=$wxUSE_CHECKBOX
9633           fi
9634
9635           { echo "$as_me:$LINENO: result: $result" >&5
9636 echo "${ECHO_T}$result" >&6; }
9637
9638
9639           enablestring=
9640           defaultval=$wxUSE_ALL_FEATURES
9641           if test -z "$defaultval"; then
9642               if test x"$enablestring" = xdisable; then
9643                   defaultval=yes
9644               else
9645                   defaultval=no
9646               fi
9647           fi
9648
9649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9650 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9651           # Check whether --enable-checklst was given.
9652 if test "${enable_checklst+set}" = set; then
9653   enableval=$enable_checklst;
9654                           if test "$enableval" = yes; then
9655                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9656                           else
9657                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9658                           fi
9659
9660 else
9661
9662                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9663
9664 fi
9665
9666
9667           eval "$wx_cv_use_checklst"
9668
9669           if test x"$enablestring" = xdisable; then
9670             if test $wxUSE_CHECKLST = yes; then
9671               result=no
9672             else
9673               result=yes
9674             fi
9675           else
9676             result=$wxUSE_CHECKLST
9677           fi
9678
9679           { echo "$as_me:$LINENO: result: $result" >&5
9680 echo "${ECHO_T}$result" >&6; }
9681
9682
9683           enablestring=
9684           defaultval=$wxUSE_ALL_FEATURES
9685           if test -z "$defaultval"; then
9686               if test x"$enablestring" = xdisable; then
9687                   defaultval=yes
9688               else
9689                   defaultval=no
9690               fi
9691           fi
9692
9693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9694 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9695           # Check whether --enable-choice was given.
9696 if test "${enable_choice+set}" = set; then
9697   enableval=$enable_choice;
9698                           if test "$enableval" = yes; then
9699                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9700                           else
9701                             wx_cv_use_choice='wxUSE_CHOICE=no'
9702                           fi
9703
9704 else
9705
9706                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9707
9708 fi
9709
9710
9711           eval "$wx_cv_use_choice"
9712
9713           if test x"$enablestring" = xdisable; then
9714             if test $wxUSE_CHOICE = yes; then
9715               result=no
9716             else
9717               result=yes
9718             fi
9719           else
9720             result=$wxUSE_CHOICE
9721           fi
9722
9723           { echo "$as_me:$LINENO: result: $result" >&5
9724 echo "${ECHO_T}$result" >&6; }
9725
9726
9727           enablestring=
9728           defaultval=$wxUSE_ALL_FEATURES
9729           if test -z "$defaultval"; then
9730               if test x"$enablestring" = xdisable; then
9731                   defaultval=yes
9732               else
9733                   defaultval=no
9734               fi
9735           fi
9736
9737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9738 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9739           # Check whether --enable-choicebook was given.
9740 if test "${enable_choicebook+set}" = set; then
9741   enableval=$enable_choicebook;
9742                           if test "$enableval" = yes; then
9743                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9744                           else
9745                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9746                           fi
9747
9748 else
9749
9750                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9751
9752 fi
9753
9754
9755           eval "$wx_cv_use_choicebook"
9756
9757           if test x"$enablestring" = xdisable; then
9758             if test $wxUSE_CHOICEBOOK = yes; then
9759               result=no
9760             else
9761               result=yes
9762             fi
9763           else
9764             result=$wxUSE_CHOICEBOOK
9765           fi
9766
9767           { echo "$as_me:$LINENO: result: $result" >&5
9768 echo "${ECHO_T}$result" >&6; }
9769
9770
9771           enablestring=
9772           defaultval=$wxUSE_ALL_FEATURES
9773           if test -z "$defaultval"; then
9774               if test x"$enablestring" = xdisable; then
9775                   defaultval=yes
9776               else
9777                   defaultval=no
9778               fi
9779           fi
9780
9781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9782 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9783           # Check whether --enable-collpane was given.
9784 if test "${enable_collpane+set}" = set; then
9785   enableval=$enable_collpane;
9786                           if test "$enableval" = yes; then
9787                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9788                           else
9789                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9790                           fi
9791
9792 else
9793
9794                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9795
9796 fi
9797
9798
9799           eval "$wx_cv_use_collpane"
9800
9801           if test x"$enablestring" = xdisable; then
9802             if test $wxUSE_COLLPANE = yes; then
9803               result=no
9804             else
9805               result=yes
9806             fi
9807           else
9808             result=$wxUSE_COLLPANE
9809           fi
9810
9811           { echo "$as_me:$LINENO: result: $result" >&5
9812 echo "${ECHO_T}$result" >&6; }
9813
9814
9815           enablestring=
9816           defaultval=$wxUSE_ALL_FEATURES
9817           if test -z "$defaultval"; then
9818               if test x"$enablestring" = xdisable; then
9819                   defaultval=yes
9820               else
9821                   defaultval=no
9822               fi
9823           fi
9824
9825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9826 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9827           # Check whether --enable-colourpicker was given.
9828 if test "${enable_colourpicker+set}" = set; then
9829   enableval=$enable_colourpicker;
9830                           if test "$enableval" = yes; then
9831                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9832                           else
9833                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9834                           fi
9835
9836 else
9837
9838                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
9839
9840 fi
9841
9842
9843           eval "$wx_cv_use_colourpicker"
9844
9845           if test x"$enablestring" = xdisable; then
9846             if test $wxUSE_COLOURPICKERCTRL = yes; then
9847               result=no
9848             else
9849               result=yes
9850             fi
9851           else
9852             result=$wxUSE_COLOURPICKERCTRL
9853           fi
9854
9855           { echo "$as_me:$LINENO: result: $result" >&5
9856 echo "${ECHO_T}$result" >&6; }
9857
9858
9859           enablestring=
9860           defaultval=$wxUSE_ALL_FEATURES
9861           if test -z "$defaultval"; then
9862               if test x"$enablestring" = xdisable; then
9863                   defaultval=yes
9864               else
9865                   defaultval=no
9866               fi
9867           fi
9868
9869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
9870 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
9871           # Check whether --enable-combobox was given.
9872 if test "${enable_combobox+set}" = set; then
9873   enableval=$enable_combobox;
9874                           if test "$enableval" = yes; then
9875                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
9876                           else
9877                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
9878                           fi
9879
9880 else
9881
9882                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
9883
9884 fi
9885
9886
9887           eval "$wx_cv_use_combobox"
9888
9889           if test x"$enablestring" = xdisable; then
9890             if test $wxUSE_COMBOBOX = yes; then
9891               result=no
9892             else
9893               result=yes
9894             fi
9895           else
9896             result=$wxUSE_COMBOBOX
9897           fi
9898
9899           { echo "$as_me:$LINENO: result: $result" >&5
9900 echo "${ECHO_T}$result" >&6; }
9901
9902
9903           enablestring=
9904           defaultval=$wxUSE_ALL_FEATURES
9905           if test -z "$defaultval"; then
9906               if test x"$enablestring" = xdisable; then
9907                   defaultval=yes
9908               else
9909                   defaultval=no
9910               fi
9911           fi
9912
9913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
9914 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
9915           # Check whether --enable-comboctrl was given.
9916 if test "${enable_comboctrl+set}" = set; then
9917   enableval=$enable_comboctrl;
9918                           if test "$enableval" = yes; then
9919                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
9920                           else
9921                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
9922                           fi
9923
9924 else
9925
9926                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
9927
9928 fi
9929
9930
9931           eval "$wx_cv_use_comboctrl"
9932
9933           if test x"$enablestring" = xdisable; then
9934             if test $wxUSE_COMBOCTRL = yes; then
9935               result=no
9936             else
9937               result=yes
9938             fi
9939           else
9940             result=$wxUSE_COMBOCTRL
9941           fi
9942
9943           { echo "$as_me:$LINENO: result: $result" >&5
9944 echo "${ECHO_T}$result" >&6; }
9945
9946
9947           enablestring=
9948           defaultval=$wxUSE_ALL_FEATURES
9949           if test -z "$defaultval"; then
9950               if test x"$enablestring" = xdisable; then
9951                   defaultval=yes
9952               else
9953                   defaultval=no
9954               fi
9955           fi
9956
9957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
9958 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
9959           # Check whether --enable-datepick was given.
9960 if test "${enable_datepick+set}" = set; then
9961   enableval=$enable_datepick;
9962                           if test "$enableval" = yes; then
9963                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
9964                           else
9965                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
9966                           fi
9967
9968 else
9969
9970                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
9971
9972 fi
9973
9974
9975           eval "$wx_cv_use_datepick"
9976
9977           if test x"$enablestring" = xdisable; then
9978             if test $wxUSE_DATEPICKCTRL = yes; then
9979               result=no
9980             else
9981               result=yes
9982             fi
9983           else
9984             result=$wxUSE_DATEPICKCTRL
9985           fi
9986
9987           { echo "$as_me:$LINENO: result: $result" >&5
9988 echo "${ECHO_T}$result" >&6; }
9989
9990
9991           enablestring=
9992           defaultval=$wxUSE_ALL_FEATURES
9993           if test -z "$defaultval"; then
9994               if test x"$enablestring" = xdisable; then
9995                   defaultval=yes
9996               else
9997                   defaultval=no
9998               fi
9999           fi
10000
10001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10002 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10003           # Check whether --enable-dirpicker was given.
10004 if test "${enable_dirpicker+set}" = set; then
10005   enableval=$enable_dirpicker;
10006                           if test "$enableval" = yes; then
10007                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10008                           else
10009                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10010                           fi
10011
10012 else
10013
10014                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10015
10016 fi
10017
10018
10019           eval "$wx_cv_use_dirpicker"
10020
10021           if test x"$enablestring" = xdisable; then
10022             if test $wxUSE_DIRPICKERCTRL = yes; then
10023               result=no
10024             else
10025               result=yes
10026             fi
10027           else
10028             result=$wxUSE_DIRPICKERCTRL
10029           fi
10030
10031           { echo "$as_me:$LINENO: result: $result" >&5
10032 echo "${ECHO_T}$result" >&6; }
10033
10034
10035           enablestring=
10036           defaultval=$wxUSE_ALL_FEATURES
10037           if test -z "$defaultval"; then
10038               if test x"$enablestring" = xdisable; then
10039                   defaultval=yes
10040               else
10041                   defaultval=no
10042               fi
10043           fi
10044
10045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10046 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10047           # Check whether --enable-display was given.
10048 if test "${enable_display+set}" = set; then
10049   enableval=$enable_display;
10050                           if test "$enableval" = yes; then
10051                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10052                           else
10053                             wx_cv_use_display='wxUSE_DISPLAY=no'
10054                           fi
10055
10056 else
10057
10058                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10059
10060 fi
10061
10062
10063           eval "$wx_cv_use_display"
10064
10065           if test x"$enablestring" = xdisable; then
10066             if test $wxUSE_DISPLAY = yes; then
10067               result=no
10068             else
10069               result=yes
10070             fi
10071           else
10072             result=$wxUSE_DISPLAY
10073           fi
10074
10075           { echo "$as_me:$LINENO: result: $result" >&5
10076 echo "${ECHO_T}$result" >&6; }
10077
10078
10079           enablestring=
10080           defaultval=$wxUSE_ALL_FEATURES
10081           if test -z "$defaultval"; then
10082               if test x"$enablestring" = xdisable; then
10083                   defaultval=yes
10084               else
10085                   defaultval=no
10086               fi
10087           fi
10088
10089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10090 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10091           # Check whether --enable-detect_sm was given.
10092 if test "${enable_detect_sm+set}" = set; then
10093   enableval=$enable_detect_sm;
10094                           if test "$enableval" = yes; then
10095                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10096                           else
10097                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10098                           fi
10099
10100 else
10101
10102                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10103
10104 fi
10105
10106
10107           eval "$wx_cv_use_detect_sm"
10108
10109           if test x"$enablestring" = xdisable; then
10110             if test $wxUSE_DETECT_SM = yes; then
10111               result=no
10112             else
10113               result=yes
10114             fi
10115           else
10116             result=$wxUSE_DETECT_SM
10117           fi
10118
10119           { echo "$as_me:$LINENO: result: $result" >&5
10120 echo "${ECHO_T}$result" >&6; }
10121
10122
10123           enablestring=
10124           defaultval=$wxUSE_ALL_FEATURES
10125           if test -z "$defaultval"; then
10126               if test x"$enablestring" = xdisable; then
10127                   defaultval=yes
10128               else
10129                   defaultval=no
10130               fi
10131           fi
10132
10133           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10134 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10135           # Check whether --enable-editablebox was given.
10136 if test "${enable_editablebox+set}" = set; then
10137   enableval=$enable_editablebox;
10138                           if test "$enableval" = yes; then
10139                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10140                           else
10141                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10142                           fi
10143
10144 else
10145
10146                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10147
10148 fi
10149
10150
10151           eval "$wx_cv_use_editablebox"
10152
10153           if test x"$enablestring" = xdisable; then
10154             if test $wxUSE_EDITABLELISTBOX = yes; then
10155               result=no
10156             else
10157               result=yes
10158             fi
10159           else
10160             result=$wxUSE_EDITABLELISTBOX
10161           fi
10162
10163           { echo "$as_me:$LINENO: result: $result" >&5
10164 echo "${ECHO_T}$result" >&6; }
10165
10166
10167           enablestring=
10168           defaultval=$wxUSE_ALL_FEATURES
10169           if test -z "$defaultval"; then
10170               if test x"$enablestring" = xdisable; then
10171                   defaultval=yes
10172               else
10173                   defaultval=no
10174               fi
10175           fi
10176
10177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10178 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10179           # Check whether --enable-filepicker was given.
10180 if test "${enable_filepicker+set}" = set; then
10181   enableval=$enable_filepicker;
10182                           if test "$enableval" = yes; then
10183                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10184                           else
10185                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10186                           fi
10187
10188 else
10189
10190                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10191
10192 fi
10193
10194
10195           eval "$wx_cv_use_filepicker"
10196
10197           if test x"$enablestring" = xdisable; then
10198             if test $wxUSE_FILEPICKERCTRL = yes; then
10199               result=no
10200             else
10201               result=yes
10202             fi
10203           else
10204             result=$wxUSE_FILEPICKERCTRL
10205           fi
10206
10207           { echo "$as_me:$LINENO: result: $result" >&5
10208 echo "${ECHO_T}$result" >&6; }
10209
10210
10211           enablestring=
10212           defaultval=$wxUSE_ALL_FEATURES
10213           if test -z "$defaultval"; then
10214               if test x"$enablestring" = xdisable; then
10215                   defaultval=yes
10216               else
10217                   defaultval=no
10218               fi
10219           fi
10220
10221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10222 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10223           # Check whether --enable-filectrl was given.
10224 if test "${enable_filectrl+set}" = set; then
10225   enableval=$enable_filectrl;
10226                           if test "$enableval" = yes; then
10227                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10228                           else
10229                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10230                           fi
10231
10232 else
10233
10234                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10235
10236 fi
10237
10238
10239           eval "$wx_cv_use_filectrl"
10240
10241           if test x"$enablestring" = xdisable; then
10242             if test $wxUSE_FILECTRL = yes; then
10243               result=no
10244             else
10245               result=yes
10246             fi
10247           else
10248             result=$wxUSE_FILECTRL
10249           fi
10250
10251           { echo "$as_me:$LINENO: result: $result" >&5
10252 echo "${ECHO_T}$result" >&6; }
10253
10254
10255           enablestring=
10256           defaultval=$wxUSE_ALL_FEATURES
10257           if test -z "$defaultval"; then
10258               if test x"$enablestring" = xdisable; then
10259                   defaultval=yes
10260               else
10261                   defaultval=no
10262               fi
10263           fi
10264
10265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10266 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10267           # Check whether --enable-fontpicker was given.
10268 if test "${enable_fontpicker+set}" = set; then
10269   enableval=$enable_fontpicker;
10270                           if test "$enableval" = yes; then
10271                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10272                           else
10273                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10274                           fi
10275
10276 else
10277
10278                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10279
10280 fi
10281
10282
10283           eval "$wx_cv_use_fontpicker"
10284
10285           if test x"$enablestring" = xdisable; then
10286             if test $wxUSE_FONTPICKERCTRL = yes; then
10287               result=no
10288             else
10289               result=yes
10290             fi
10291           else
10292             result=$wxUSE_FONTPICKERCTRL
10293           fi
10294
10295           { echo "$as_me:$LINENO: result: $result" >&5
10296 echo "${ECHO_T}$result" >&6; }
10297
10298
10299           enablestring=
10300           defaultval=$wxUSE_ALL_FEATURES
10301           if test -z "$defaultval"; then
10302               if test x"$enablestring" = xdisable; then
10303                   defaultval=yes
10304               else
10305                   defaultval=no
10306               fi
10307           fi
10308
10309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10310 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10311           # Check whether --enable-gauge was given.
10312 if test "${enable_gauge+set}" = set; then
10313   enableval=$enable_gauge;
10314                           if test "$enableval" = yes; then
10315                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10316                           else
10317                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10318                           fi
10319
10320 else
10321
10322                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10323
10324 fi
10325
10326
10327           eval "$wx_cv_use_gauge"
10328
10329           if test x"$enablestring" = xdisable; then
10330             if test $wxUSE_GAUGE = yes; then
10331               result=no
10332             else
10333               result=yes
10334             fi
10335           else
10336             result=$wxUSE_GAUGE
10337           fi
10338
10339           { echo "$as_me:$LINENO: result: $result" >&5
10340 echo "${ECHO_T}$result" >&6; }
10341
10342
10343           enablestring=
10344           defaultval=$wxUSE_ALL_FEATURES
10345           if test -z "$defaultval"; then
10346               if test x"$enablestring" = xdisable; then
10347                   defaultval=yes
10348               else
10349                   defaultval=no
10350               fi
10351           fi
10352
10353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10354 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10355           # Check whether --enable-grid was given.
10356 if test "${enable_grid+set}" = set; then
10357   enableval=$enable_grid;
10358                           if test "$enableval" = yes; then
10359                             wx_cv_use_grid='wxUSE_GRID=yes'
10360                           else
10361                             wx_cv_use_grid='wxUSE_GRID=no'
10362                           fi
10363
10364 else
10365
10366                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10367
10368 fi
10369
10370
10371           eval "$wx_cv_use_grid"
10372
10373           if test x"$enablestring" = xdisable; then
10374             if test $wxUSE_GRID = yes; then
10375               result=no
10376             else
10377               result=yes
10378             fi
10379           else
10380             result=$wxUSE_GRID
10381           fi
10382
10383           { echo "$as_me:$LINENO: result: $result" >&5
10384 echo "${ECHO_T}$result" >&6; }
10385
10386
10387           enablestring=
10388           defaultval=$wxUSE_ALL_FEATURES
10389           if test -z "$defaultval"; then
10390               if test x"$enablestring" = xdisable; then
10391                   defaultval=yes
10392               else
10393                   defaultval=no
10394               fi
10395           fi
10396
10397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10398 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10399           # Check whether --enable-dataviewctrl was given.
10400 if test "${enable_dataviewctrl+set}" = set; then
10401   enableval=$enable_dataviewctrl;
10402                           if test "$enableval" = yes; then
10403                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10404                           else
10405                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10406                           fi
10407
10408 else
10409
10410                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10411
10412 fi
10413
10414
10415           eval "$wx_cv_use_dataviewctrl"
10416
10417           if test x"$enablestring" = xdisable; then
10418             if test $wxUSE_DATAVIEWCTRL = yes; then
10419               result=no
10420             else
10421               result=yes
10422             fi
10423           else
10424             result=$wxUSE_DATAVIEWCTRL
10425           fi
10426
10427           { echo "$as_me:$LINENO: result: $result" >&5
10428 echo "${ECHO_T}$result" >&6; }
10429
10430
10431           enablestring=
10432           defaultval=$wxUSE_ALL_FEATURES
10433           if test -z "$defaultval"; then
10434               if test x"$enablestring" = xdisable; then
10435                   defaultval=yes
10436               else
10437                   defaultval=no
10438               fi
10439           fi
10440
10441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10442 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10443           # Check whether --enable-hyperlink was given.
10444 if test "${enable_hyperlink+set}" = set; then
10445   enableval=$enable_hyperlink;
10446                           if test "$enableval" = yes; then
10447                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10448                           else
10449                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10450                           fi
10451
10452 else
10453
10454                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10455
10456 fi
10457
10458
10459           eval "$wx_cv_use_hyperlink"
10460
10461           if test x"$enablestring" = xdisable; then
10462             if test $wxUSE_HYPERLINKCTRL = yes; then
10463               result=no
10464             else
10465               result=yes
10466             fi
10467           else
10468             result=$wxUSE_HYPERLINKCTRL
10469           fi
10470
10471           { echo "$as_me:$LINENO: result: $result" >&5
10472 echo "${ECHO_T}$result" >&6; }
10473
10474
10475           enablestring=
10476           defaultval=$wxUSE_ALL_FEATURES
10477           if test -z "$defaultval"; then
10478               if test x"$enablestring" = xdisable; then
10479                   defaultval=yes
10480               else
10481                   defaultval=no
10482               fi
10483           fi
10484
10485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10486 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10487           # Check whether --enable-imaglist was given.
10488 if test "${enable_imaglist+set}" = set; then
10489   enableval=$enable_imaglist;
10490                           if test "$enableval" = yes; then
10491                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10492                           else
10493                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10494                           fi
10495
10496 else
10497
10498                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10499
10500 fi
10501
10502
10503           eval "$wx_cv_use_imaglist"
10504
10505           if test x"$enablestring" = xdisable; then
10506             if test $wxUSE_IMAGLIST = yes; then
10507               result=no
10508             else
10509               result=yes
10510             fi
10511           else
10512             result=$wxUSE_IMAGLIST
10513           fi
10514
10515           { echo "$as_me:$LINENO: result: $result" >&5
10516 echo "${ECHO_T}$result" >&6; }
10517
10518
10519           enablestring=
10520           defaultval=$wxUSE_ALL_FEATURES
10521           if test -z "$defaultval"; then
10522               if test x"$enablestring" = xdisable; then
10523                   defaultval=yes
10524               else
10525                   defaultval=no
10526               fi
10527           fi
10528
10529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10530 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10531           # Check whether --enable-listbook was given.
10532 if test "${enable_listbook+set}" = set; then
10533   enableval=$enable_listbook;
10534                           if test "$enableval" = yes; then
10535                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10536                           else
10537                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10538                           fi
10539
10540 else
10541
10542                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10543
10544 fi
10545
10546
10547           eval "$wx_cv_use_listbook"
10548
10549           if test x"$enablestring" = xdisable; then
10550             if test $wxUSE_LISTBOOK = yes; then
10551               result=no
10552             else
10553               result=yes
10554             fi
10555           else
10556             result=$wxUSE_LISTBOOK
10557           fi
10558
10559           { echo "$as_me:$LINENO: result: $result" >&5
10560 echo "${ECHO_T}$result" >&6; }
10561
10562
10563           enablestring=
10564           defaultval=$wxUSE_ALL_FEATURES
10565           if test -z "$defaultval"; then
10566               if test x"$enablestring" = xdisable; then
10567                   defaultval=yes
10568               else
10569                   defaultval=no
10570               fi
10571           fi
10572
10573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10574 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10575           # Check whether --enable-listbox was given.
10576 if test "${enable_listbox+set}" = set; then
10577   enableval=$enable_listbox;
10578                           if test "$enableval" = yes; then
10579                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10580                           else
10581                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10582                           fi
10583
10584 else
10585
10586                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10587
10588 fi
10589
10590
10591           eval "$wx_cv_use_listbox"
10592
10593           if test x"$enablestring" = xdisable; then
10594             if test $wxUSE_LISTBOX = yes; then
10595               result=no
10596             else
10597               result=yes
10598             fi
10599           else
10600             result=$wxUSE_LISTBOX
10601           fi
10602
10603           { echo "$as_me:$LINENO: result: $result" >&5
10604 echo "${ECHO_T}$result" >&6; }
10605
10606
10607           enablestring=
10608           defaultval=$wxUSE_ALL_FEATURES
10609           if test -z "$defaultval"; then
10610               if test x"$enablestring" = xdisable; then
10611                   defaultval=yes
10612               else
10613                   defaultval=no
10614               fi
10615           fi
10616
10617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10618 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10619           # Check whether --enable-listctrl was given.
10620 if test "${enable_listctrl+set}" = set; then
10621   enableval=$enable_listctrl;
10622                           if test "$enableval" = yes; then
10623                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10624                           else
10625                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10626                           fi
10627
10628 else
10629
10630                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10631
10632 fi
10633
10634
10635           eval "$wx_cv_use_listctrl"
10636
10637           if test x"$enablestring" = xdisable; then
10638             if test $wxUSE_LISTCTRL = yes; then
10639               result=no
10640             else
10641               result=yes
10642             fi
10643           else
10644             result=$wxUSE_LISTCTRL
10645           fi
10646
10647           { echo "$as_me:$LINENO: result: $result" >&5
10648 echo "${ECHO_T}$result" >&6; }
10649
10650
10651           enablestring=
10652           defaultval=$wxUSE_ALL_FEATURES
10653           if test -z "$defaultval"; then
10654               if test x"$enablestring" = xdisable; then
10655                   defaultval=yes
10656               else
10657                   defaultval=no
10658               fi
10659           fi
10660
10661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10662 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10663           # Check whether --enable-notebook was given.
10664 if test "${enable_notebook+set}" = set; then
10665   enableval=$enable_notebook;
10666                           if test "$enableval" = yes; then
10667                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10668                           else
10669                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10670                           fi
10671
10672 else
10673
10674                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10675
10676 fi
10677
10678
10679           eval "$wx_cv_use_notebook"
10680
10681           if test x"$enablestring" = xdisable; then
10682             if test $wxUSE_NOTEBOOK = yes; then
10683               result=no
10684             else
10685               result=yes
10686             fi
10687           else
10688             result=$wxUSE_NOTEBOOK
10689           fi
10690
10691           { echo "$as_me:$LINENO: result: $result" >&5
10692 echo "${ECHO_T}$result" >&6; }
10693
10694
10695           enablestring=
10696           defaultval=$wxUSE_ALL_FEATURES
10697           if test -z "$defaultval"; then
10698               if test x"$enablestring" = xdisable; then
10699                   defaultval=yes
10700               else
10701                   defaultval=no
10702               fi
10703           fi
10704
10705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10706 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10707           # Check whether --enable-odcombobox was given.
10708 if test "${enable_odcombobox+set}" = set; then
10709   enableval=$enable_odcombobox;
10710                           if test "$enableval" = yes; then
10711                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10712                           else
10713                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10714                           fi
10715
10716 else
10717
10718                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
10719
10720 fi
10721
10722
10723           eval "$wx_cv_use_odcombobox"
10724
10725           if test x"$enablestring" = xdisable; then
10726             if test $wxUSE_ODCOMBOBOX = yes; then
10727               result=no
10728             else
10729               result=yes
10730             fi
10731           else
10732             result=$wxUSE_ODCOMBOBOX
10733           fi
10734
10735           { echo "$as_me:$LINENO: result: $result" >&5
10736 echo "${ECHO_T}$result" >&6; }
10737
10738
10739           enablestring=
10740           defaultval=$wxUSE_ALL_FEATURES
10741           if test -z "$defaultval"; then
10742               if test x"$enablestring" = xdisable; then
10743                   defaultval=yes
10744               else
10745                   defaultval=no
10746               fi
10747           fi
10748
10749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10750 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10751           # Check whether --enable-radiobox was given.
10752 if test "${enable_radiobox+set}" = set; then
10753   enableval=$enable_radiobox;
10754                           if test "$enableval" = yes; then
10755                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10756                           else
10757                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
10758                           fi
10759
10760 else
10761
10762                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
10763
10764 fi
10765
10766
10767           eval "$wx_cv_use_radiobox"
10768
10769           if test x"$enablestring" = xdisable; then
10770             if test $wxUSE_RADIOBOX = yes; then
10771               result=no
10772             else
10773               result=yes
10774             fi
10775           else
10776             result=$wxUSE_RADIOBOX
10777           fi
10778
10779           { echo "$as_me:$LINENO: result: $result" >&5
10780 echo "${ECHO_T}$result" >&6; }
10781
10782
10783           enablestring=
10784           defaultval=$wxUSE_ALL_FEATURES
10785           if test -z "$defaultval"; then
10786               if test x"$enablestring" = xdisable; then
10787                   defaultval=yes
10788               else
10789                   defaultval=no
10790               fi
10791           fi
10792
10793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10794 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10795           # Check whether --enable-radiobtn was given.
10796 if test "${enable_radiobtn+set}" = set; then
10797   enableval=$enable_radiobtn;
10798                           if test "$enableval" = yes; then
10799                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10800                           else
10801                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10802                           fi
10803
10804 else
10805
10806                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
10807
10808 fi
10809
10810
10811           eval "$wx_cv_use_radiobtn"
10812
10813           if test x"$enablestring" = xdisable; then
10814             if test $wxUSE_RADIOBTN = yes; then
10815               result=no
10816             else
10817               result=yes
10818             fi
10819           else
10820             result=$wxUSE_RADIOBTN
10821           fi
10822
10823           { echo "$as_me:$LINENO: result: $result" >&5
10824 echo "${ECHO_T}$result" >&6; }
10825
10826
10827           enablestring=
10828           defaultval=$wxUSE_ALL_FEATURES
10829           if test -z "$defaultval"; then
10830               if test x"$enablestring" = xdisable; then
10831                   defaultval=yes
10832               else
10833                   defaultval=no
10834               fi
10835           fi
10836
10837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
10838 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
10839           # Check whether --enable-sash was given.
10840 if test "${enable_sash+set}" = set; then
10841   enableval=$enable_sash;
10842                           if test "$enableval" = yes; then
10843                             wx_cv_use_sash='wxUSE_SASH=yes'
10844                           else
10845                             wx_cv_use_sash='wxUSE_SASH=no'
10846                           fi
10847
10848 else
10849
10850                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
10851
10852 fi
10853
10854
10855           eval "$wx_cv_use_sash"
10856
10857           if test x"$enablestring" = xdisable; then
10858             if test $wxUSE_SASH = yes; then
10859               result=no
10860             else
10861               result=yes
10862             fi
10863           else
10864             result=$wxUSE_SASH
10865           fi
10866
10867           { echo "$as_me:$LINENO: result: $result" >&5
10868 echo "${ECHO_T}$result" >&6; }
10869
10870
10871           enablestring=
10872           defaultval=$wxUSE_ALL_FEATURES
10873           if test -z "$defaultval"; then
10874               if test x"$enablestring" = xdisable; then
10875                   defaultval=yes
10876               else
10877                   defaultval=no
10878               fi
10879           fi
10880
10881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
10882 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
10883           # Check whether --enable-scrollbar was given.
10884 if test "${enable_scrollbar+set}" = set; then
10885   enableval=$enable_scrollbar;
10886                           if test "$enableval" = yes; then
10887                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
10888                           else
10889                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
10890                           fi
10891
10892 else
10893
10894                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
10895
10896 fi
10897
10898
10899           eval "$wx_cv_use_scrollbar"
10900
10901           if test x"$enablestring" = xdisable; then
10902             if test $wxUSE_SCROLLBAR = yes; then
10903               result=no
10904             else
10905               result=yes
10906             fi
10907           else
10908             result=$wxUSE_SCROLLBAR
10909           fi
10910
10911           { echo "$as_me:$LINENO: result: $result" >&5
10912 echo "${ECHO_T}$result" >&6; }
10913
10914
10915           enablestring=
10916           defaultval=$wxUSE_ALL_FEATURES
10917           if test -z "$defaultval"; then
10918               if test x"$enablestring" = xdisable; then
10919                   defaultval=yes
10920               else
10921                   defaultval=no
10922               fi
10923           fi
10924
10925           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
10926 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
10927           # Check whether --enable-searchctrl was given.
10928 if test "${enable_searchctrl+set}" = set; then
10929   enableval=$enable_searchctrl;
10930                           if test "$enableval" = yes; then
10931                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
10932                           else
10933                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
10934                           fi
10935
10936 else
10937
10938                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
10939
10940 fi
10941
10942
10943           eval "$wx_cv_use_searchctrl"
10944
10945           if test x"$enablestring" = xdisable; then
10946             if test $wxUSE_SEARCHCTRL = yes; then
10947               result=no
10948             else
10949               result=yes
10950             fi
10951           else
10952             result=$wxUSE_SEARCHCTRL
10953           fi
10954
10955           { echo "$as_me:$LINENO: result: $result" >&5
10956 echo "${ECHO_T}$result" >&6; }
10957
10958
10959           enablestring=
10960           defaultval=$wxUSE_ALL_FEATURES
10961           if test -z "$defaultval"; then
10962               if test x"$enablestring" = xdisable; then
10963                   defaultval=yes
10964               else
10965                   defaultval=no
10966               fi
10967           fi
10968
10969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
10970 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
10971           # Check whether --enable-slider was given.
10972 if test "${enable_slider+set}" = set; then
10973   enableval=$enable_slider;
10974                           if test "$enableval" = yes; then
10975                             wx_cv_use_slider='wxUSE_SLIDER=yes'
10976                           else
10977                             wx_cv_use_slider='wxUSE_SLIDER=no'
10978                           fi
10979
10980 else
10981
10982                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
10983
10984 fi
10985
10986
10987           eval "$wx_cv_use_slider"
10988
10989           if test x"$enablestring" = xdisable; then
10990             if test $wxUSE_SLIDER = yes; then
10991               result=no
10992             else
10993               result=yes
10994             fi
10995           else
10996             result=$wxUSE_SLIDER
10997           fi
10998
10999           { echo "$as_me:$LINENO: result: $result" >&5
11000 echo "${ECHO_T}$result" >&6; }
11001
11002
11003           enablestring=
11004           defaultval=$wxUSE_ALL_FEATURES
11005           if test -z "$defaultval"; then
11006               if test x"$enablestring" = xdisable; then
11007                   defaultval=yes
11008               else
11009                   defaultval=no
11010               fi
11011           fi
11012
11013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11014 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11015           # Check whether --enable-spinbtn was given.
11016 if test "${enable_spinbtn+set}" = set; then
11017   enableval=$enable_spinbtn;
11018                           if test "$enableval" = yes; then
11019                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11020                           else
11021                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11022                           fi
11023
11024 else
11025
11026                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11027
11028 fi
11029
11030
11031           eval "$wx_cv_use_spinbtn"
11032
11033           if test x"$enablestring" = xdisable; then
11034             if test $wxUSE_SPINBTN = yes; then
11035               result=no
11036             else
11037               result=yes
11038             fi
11039           else
11040             result=$wxUSE_SPINBTN
11041           fi
11042
11043           { echo "$as_me:$LINENO: result: $result" >&5
11044 echo "${ECHO_T}$result" >&6; }
11045
11046
11047           enablestring=
11048           defaultval=$wxUSE_ALL_FEATURES
11049           if test -z "$defaultval"; then
11050               if test x"$enablestring" = xdisable; then
11051                   defaultval=yes
11052               else
11053                   defaultval=no
11054               fi
11055           fi
11056
11057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11058 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11059           # Check whether --enable-spinctrl was given.
11060 if test "${enable_spinctrl+set}" = set; then
11061   enableval=$enable_spinctrl;
11062                           if test "$enableval" = yes; then
11063                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11064                           else
11065                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11066                           fi
11067
11068 else
11069
11070                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11071
11072 fi
11073
11074
11075           eval "$wx_cv_use_spinctrl"
11076
11077           if test x"$enablestring" = xdisable; then
11078             if test $wxUSE_SPINCTRL = yes; then
11079               result=no
11080             else
11081               result=yes
11082             fi
11083           else
11084             result=$wxUSE_SPINCTRL
11085           fi
11086
11087           { echo "$as_me:$LINENO: result: $result" >&5
11088 echo "${ECHO_T}$result" >&6; }
11089
11090
11091           enablestring=
11092           defaultval=$wxUSE_ALL_FEATURES
11093           if test -z "$defaultval"; then
11094               if test x"$enablestring" = xdisable; then
11095                   defaultval=yes
11096               else
11097                   defaultval=no
11098               fi
11099           fi
11100
11101           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11102 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11103           # Check whether --enable-splitter was given.
11104 if test "${enable_splitter+set}" = set; then
11105   enableval=$enable_splitter;
11106                           if test "$enableval" = yes; then
11107                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11108                           else
11109                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11110                           fi
11111
11112 else
11113
11114                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11115
11116 fi
11117
11118
11119           eval "$wx_cv_use_splitter"
11120
11121           if test x"$enablestring" = xdisable; then
11122             if test $wxUSE_SPLITTER = yes; then
11123               result=no
11124             else
11125               result=yes
11126             fi
11127           else
11128             result=$wxUSE_SPLITTER
11129           fi
11130
11131           { echo "$as_me:$LINENO: result: $result" >&5
11132 echo "${ECHO_T}$result" >&6; }
11133
11134
11135           enablestring=
11136           defaultval=$wxUSE_ALL_FEATURES
11137           if test -z "$defaultval"; then
11138               if test x"$enablestring" = xdisable; then
11139                   defaultval=yes
11140               else
11141                   defaultval=no
11142               fi
11143           fi
11144
11145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11146 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11147           # Check whether --enable-statbmp was given.
11148 if test "${enable_statbmp+set}" = set; then
11149   enableval=$enable_statbmp;
11150                           if test "$enableval" = yes; then
11151                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11152                           else
11153                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11154                           fi
11155
11156 else
11157
11158                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11159
11160 fi
11161
11162
11163           eval "$wx_cv_use_statbmp"
11164
11165           if test x"$enablestring" = xdisable; then
11166             if test $wxUSE_STATBMP = yes; then
11167               result=no
11168             else
11169               result=yes
11170             fi
11171           else
11172             result=$wxUSE_STATBMP
11173           fi
11174
11175           { echo "$as_me:$LINENO: result: $result" >&5
11176 echo "${ECHO_T}$result" >&6; }
11177
11178
11179           enablestring=
11180           defaultval=$wxUSE_ALL_FEATURES
11181           if test -z "$defaultval"; then
11182               if test x"$enablestring" = xdisable; then
11183                   defaultval=yes
11184               else
11185                   defaultval=no
11186               fi
11187           fi
11188
11189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11190 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11191           # Check whether --enable-statbox was given.
11192 if test "${enable_statbox+set}" = set; then
11193   enableval=$enable_statbox;
11194                           if test "$enableval" = yes; then
11195                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11196                           else
11197                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11198                           fi
11199
11200 else
11201
11202                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11203
11204 fi
11205
11206
11207           eval "$wx_cv_use_statbox"
11208
11209           if test x"$enablestring" = xdisable; then
11210             if test $wxUSE_STATBOX = yes; then
11211               result=no
11212             else
11213               result=yes
11214             fi
11215           else
11216             result=$wxUSE_STATBOX
11217           fi
11218
11219           { echo "$as_me:$LINENO: result: $result" >&5
11220 echo "${ECHO_T}$result" >&6; }
11221
11222
11223           enablestring=
11224           defaultval=$wxUSE_ALL_FEATURES
11225           if test -z "$defaultval"; then
11226               if test x"$enablestring" = xdisable; then
11227                   defaultval=yes
11228               else
11229                   defaultval=no
11230               fi
11231           fi
11232
11233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11234 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11235           # Check whether --enable-statline was given.
11236 if test "${enable_statline+set}" = set; then
11237   enableval=$enable_statline;
11238                           if test "$enableval" = yes; then
11239                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11240                           else
11241                             wx_cv_use_statline='wxUSE_STATLINE=no'
11242                           fi
11243
11244 else
11245
11246                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11247
11248 fi
11249
11250
11251           eval "$wx_cv_use_statline"
11252
11253           if test x"$enablestring" = xdisable; then
11254             if test $wxUSE_STATLINE = yes; then
11255               result=no
11256             else
11257               result=yes
11258             fi
11259           else
11260             result=$wxUSE_STATLINE
11261           fi
11262
11263           { echo "$as_me:$LINENO: result: $result" >&5
11264 echo "${ECHO_T}$result" >&6; }
11265
11266
11267           enablestring=
11268           defaultval=$wxUSE_ALL_FEATURES
11269           if test -z "$defaultval"; then
11270               if test x"$enablestring" = xdisable; then
11271                   defaultval=yes
11272               else
11273                   defaultval=no
11274               fi
11275           fi
11276
11277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11278 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11279           # Check whether --enable-stattext was given.
11280 if test "${enable_stattext+set}" = set; then
11281   enableval=$enable_stattext;
11282                           if test "$enableval" = yes; then
11283                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11284                           else
11285                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11286                           fi
11287
11288 else
11289
11290                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11291
11292 fi
11293
11294
11295           eval "$wx_cv_use_stattext"
11296
11297           if test x"$enablestring" = xdisable; then
11298             if test $wxUSE_STATTEXT = yes; then
11299               result=no
11300             else
11301               result=yes
11302             fi
11303           else
11304             result=$wxUSE_STATTEXT
11305           fi
11306
11307           { echo "$as_me:$LINENO: result: $result" >&5
11308 echo "${ECHO_T}$result" >&6; }
11309
11310
11311           enablestring=
11312           defaultval=$wxUSE_ALL_FEATURES
11313           if test -z "$defaultval"; then
11314               if test x"$enablestring" = xdisable; then
11315                   defaultval=yes
11316               else
11317                   defaultval=no
11318               fi
11319           fi
11320
11321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11322 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11323           # Check whether --enable-statusbar was given.
11324 if test "${enable_statusbar+set}" = set; then
11325   enableval=$enable_statusbar;
11326                           if test "$enableval" = yes; then
11327                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11328                           else
11329                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11330                           fi
11331
11332 else
11333
11334                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11335
11336 fi
11337
11338
11339           eval "$wx_cv_use_statusbar"
11340
11341           if test x"$enablestring" = xdisable; then
11342             if test $wxUSE_STATUSBAR = yes; then
11343               result=no
11344             else
11345               result=yes
11346             fi
11347           else
11348             result=$wxUSE_STATUSBAR
11349           fi
11350
11351           { echo "$as_me:$LINENO: result: $result" >&5
11352 echo "${ECHO_T}$result" >&6; }
11353
11354
11355           enablestring=
11356           defaultval=$wxUSE_ALL_FEATURES
11357           if test -z "$defaultval"; then
11358               if test x"$enablestring" = xdisable; then
11359                   defaultval=yes
11360               else
11361                   defaultval=no
11362               fi
11363           fi
11364
11365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11366 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11367           # Check whether --enable-tabdialog was given.
11368 if test "${enable_tabdialog+set}" = set; then
11369   enableval=$enable_tabdialog;
11370                           if test "$enableval" = yes; then
11371                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11372                           else
11373                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11374                           fi
11375
11376 else
11377
11378                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11379
11380 fi
11381
11382
11383           eval "$wx_cv_use_tabdialog"
11384
11385           if test x"$enablestring" = xdisable; then
11386             if test $wxUSE_TAB_DIALOG = yes; then
11387               result=no
11388             else
11389               result=yes
11390             fi
11391           else
11392             result=$wxUSE_TAB_DIALOG
11393           fi
11394
11395           { echo "$as_me:$LINENO: result: $result" >&5
11396 echo "${ECHO_T}$result" >&6; }
11397
11398
11399           enablestring=
11400           defaultval=$wxUSE_ALL_FEATURES
11401           if test -z "$defaultval"; then
11402               if test x"$enablestring" = xdisable; then
11403                   defaultval=yes
11404               else
11405                   defaultval=no
11406               fi
11407           fi
11408
11409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11410 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11411           # Check whether --enable-taskbaricon was given.
11412 if test "${enable_taskbaricon+set}" = set; then
11413   enableval=$enable_taskbaricon;
11414                           if test "$enableval" = yes; then
11415                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11416                           else
11417                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11418                           fi
11419
11420 else
11421
11422                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11423
11424 fi
11425
11426
11427           eval "$wx_cv_use_taskbaricon"
11428
11429           if test x"$enablestring" = xdisable; then
11430             if test $wxUSE_TASKBARICON = yes; then
11431               result=no
11432             else
11433               result=yes
11434             fi
11435           else
11436             result=$wxUSE_TASKBARICON
11437           fi
11438
11439           { echo "$as_me:$LINENO: result: $result" >&5
11440 echo "${ECHO_T}$result" >&6; }
11441
11442
11443           enablestring=
11444           defaultval=$wxUSE_ALL_FEATURES
11445           if test -z "$defaultval"; then
11446               if test x"$enablestring" = xdisable; then
11447                   defaultval=yes
11448               else
11449                   defaultval=no
11450               fi
11451           fi
11452
11453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11454 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11455           # Check whether --enable-textctrl was given.
11456 if test "${enable_textctrl+set}" = set; then
11457   enableval=$enable_textctrl;
11458                           if test "$enableval" = yes; then
11459                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11460                           else
11461                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11462                           fi
11463
11464 else
11465
11466                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11467
11468 fi
11469
11470
11471           eval "$wx_cv_use_textctrl"
11472
11473           if test x"$enablestring" = xdisable; then
11474             if test $wxUSE_TEXTCTRL = yes; then
11475               result=no
11476             else
11477               result=yes
11478             fi
11479           else
11480             result=$wxUSE_TEXTCTRL
11481           fi
11482
11483           { echo "$as_me:$LINENO: result: $result" >&5
11484 echo "${ECHO_T}$result" >&6; }
11485
11486
11487           enablestring=
11488           defaultval=$wxUSE_ALL_FEATURES
11489           if test -z "$defaultval"; then
11490               if test x"$enablestring" = xdisable; then
11491                   defaultval=yes
11492               else
11493                   defaultval=no
11494               fi
11495           fi
11496
11497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11498 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11499           # Check whether --enable-togglebtn was given.
11500 if test "${enable_togglebtn+set}" = set; then
11501   enableval=$enable_togglebtn;
11502                           if test "$enableval" = yes; then
11503                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11504                           else
11505                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11506                           fi
11507
11508 else
11509
11510                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11511
11512 fi
11513
11514
11515           eval "$wx_cv_use_togglebtn"
11516
11517           if test x"$enablestring" = xdisable; then
11518             if test $wxUSE_TOGGLEBTN = yes; then
11519               result=no
11520             else
11521               result=yes
11522             fi
11523           else
11524             result=$wxUSE_TOGGLEBTN
11525           fi
11526
11527           { echo "$as_me:$LINENO: result: $result" >&5
11528 echo "${ECHO_T}$result" >&6; }
11529
11530
11531           enablestring=
11532           defaultval=$wxUSE_ALL_FEATURES
11533           if test -z "$defaultval"; then
11534               if test x"$enablestring" = xdisable; then
11535                   defaultval=yes
11536               else
11537                   defaultval=no
11538               fi
11539           fi
11540
11541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11542 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11543           # Check whether --enable-toolbar was given.
11544 if test "${enable_toolbar+set}" = set; then
11545   enableval=$enable_toolbar;
11546                           if test "$enableval" = yes; then
11547                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11548                           else
11549                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11550                           fi
11551
11552 else
11553
11554                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11555
11556 fi
11557
11558
11559           eval "$wx_cv_use_toolbar"
11560
11561           if test x"$enablestring" = xdisable; then
11562             if test $wxUSE_TOOLBAR = yes; then
11563               result=no
11564             else
11565               result=yes
11566             fi
11567           else
11568             result=$wxUSE_TOOLBAR
11569           fi
11570
11571           { echo "$as_me:$LINENO: result: $result" >&5
11572 echo "${ECHO_T}$result" >&6; }
11573
11574
11575           enablestring=
11576           defaultval=$wxUSE_ALL_FEATURES
11577           if test -z "$defaultval"; then
11578               if test x"$enablestring" = xdisable; then
11579                   defaultval=yes
11580               else
11581                   defaultval=no
11582               fi
11583           fi
11584
11585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11586 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11587           # Check whether --enable-tbarnative was given.
11588 if test "${enable_tbarnative+set}" = set; then
11589   enableval=$enable_tbarnative;
11590                           if test "$enableval" = yes; then
11591                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11592                           else
11593                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11594                           fi
11595
11596 else
11597
11598                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11599
11600 fi
11601
11602
11603           eval "$wx_cv_use_tbarnative"
11604
11605           if test x"$enablestring" = xdisable; then
11606             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11607               result=no
11608             else
11609               result=yes
11610             fi
11611           else
11612             result=$wxUSE_TOOLBAR_NATIVE
11613           fi
11614
11615           { echo "$as_me:$LINENO: result: $result" >&5
11616 echo "${ECHO_T}$result" >&6; }
11617
11618
11619           enablestring=
11620           defaultval=$wxUSE_ALL_FEATURES
11621           if test -z "$defaultval"; then
11622               if test x"$enablestring" = xdisable; then
11623                   defaultval=yes
11624               else
11625                   defaultval=no
11626               fi
11627           fi
11628
11629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11630 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11631           # Check whether --enable-treebook was given.
11632 if test "${enable_treebook+set}" = set; then
11633   enableval=$enable_treebook;
11634                           if test "$enableval" = yes; then
11635                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11636                           else
11637                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11638                           fi
11639
11640 else
11641
11642                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11643
11644 fi
11645
11646
11647           eval "$wx_cv_use_treebook"
11648
11649           if test x"$enablestring" = xdisable; then
11650             if test $wxUSE_TREEBOOK = yes; then
11651               result=no
11652             else
11653               result=yes
11654             fi
11655           else
11656             result=$wxUSE_TREEBOOK
11657           fi
11658
11659           { echo "$as_me:$LINENO: result: $result" >&5
11660 echo "${ECHO_T}$result" >&6; }
11661
11662
11663           enablestring=
11664           defaultval=$wxUSE_ALL_FEATURES
11665           if test -z "$defaultval"; then
11666               if test x"$enablestring" = xdisable; then
11667                   defaultval=yes
11668               else
11669                   defaultval=no
11670               fi
11671           fi
11672
11673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11674 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11675           # Check whether --enable-toolbook was given.
11676 if test "${enable_toolbook+set}" = set; then
11677   enableval=$enable_toolbook;
11678                           if test "$enableval" = yes; then
11679                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11680                           else
11681                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11682                           fi
11683
11684 else
11685
11686                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
11687
11688 fi
11689
11690
11691           eval "$wx_cv_use_toolbook"
11692
11693           if test x"$enablestring" = xdisable; then
11694             if test $wxUSE_TOOLBOOK = yes; then
11695               result=no
11696             else
11697               result=yes
11698             fi
11699           else
11700             result=$wxUSE_TOOLBOOK
11701           fi
11702
11703           { echo "$as_me:$LINENO: result: $result" >&5
11704 echo "${ECHO_T}$result" >&6; }
11705
11706
11707           enablestring=
11708           defaultval=$wxUSE_ALL_FEATURES
11709           if test -z "$defaultval"; then
11710               if test x"$enablestring" = xdisable; then
11711                   defaultval=yes
11712               else
11713                   defaultval=no
11714               fi
11715           fi
11716
11717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11718 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11719           # Check whether --enable-treectrl was given.
11720 if test "${enable_treectrl+set}" = set; then
11721   enableval=$enable_treectrl;
11722                           if test "$enableval" = yes; then
11723                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
11724                           else
11725                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
11726                           fi
11727
11728 else
11729
11730                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
11731
11732 fi
11733
11734
11735           eval "$wx_cv_use_treectrl"
11736
11737           if test x"$enablestring" = xdisable; then
11738             if test $wxUSE_TREECTRL = yes; then
11739               result=no
11740             else
11741               result=yes
11742             fi
11743           else
11744             result=$wxUSE_TREECTRL
11745           fi
11746
11747           { echo "$as_me:$LINENO: result: $result" >&5
11748 echo "${ECHO_T}$result" >&6; }
11749
11750
11751           enablestring=
11752           defaultval=$wxUSE_ALL_FEATURES
11753           if test -z "$defaultval"; then
11754               if test x"$enablestring" = xdisable; then
11755                   defaultval=yes
11756               else
11757                   defaultval=no
11758               fi
11759           fi
11760
11761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11762 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11763           # Check whether --enable-tipwindow was given.
11764 if test "${enable_tipwindow+set}" = set; then
11765   enableval=$enable_tipwindow;
11766                           if test "$enableval" = yes; then
11767                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11768                           else
11769                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11770                           fi
11771
11772 else
11773
11774                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11775
11776 fi
11777
11778
11779           eval "$wx_cv_use_tipwindow"
11780
11781           if test x"$enablestring" = xdisable; then
11782             if test $wxUSE_TIPWINDOW = yes; then
11783               result=no
11784             else
11785               result=yes
11786             fi
11787           else
11788             result=$wxUSE_TIPWINDOW
11789           fi
11790
11791           { echo "$as_me:$LINENO: result: $result" >&5
11792 echo "${ECHO_T}$result" >&6; }
11793
11794
11795           enablestring=
11796           defaultval=$wxUSE_ALL_FEATURES
11797           if test -z "$defaultval"; then
11798               if test x"$enablestring" = xdisable; then
11799                   defaultval=yes
11800               else
11801                   defaultval=no
11802               fi
11803           fi
11804
11805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11806 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11807           # Check whether --enable-popupwin was given.
11808 if test "${enable_popupwin+set}" = set; then
11809   enableval=$enable_popupwin;
11810                           if test "$enableval" = yes; then
11811                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11812                           else
11813                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11814                           fi
11815
11816 else
11817
11818                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11819
11820 fi
11821
11822
11823           eval "$wx_cv_use_popupwin"
11824
11825           if test x"$enablestring" = xdisable; then
11826             if test $wxUSE_POPUPWIN = yes; then
11827               result=no
11828             else
11829               result=yes
11830             fi
11831           else
11832             result=$wxUSE_POPUPWIN
11833           fi
11834
11835           { echo "$as_me:$LINENO: result: $result" >&5
11836 echo "${ECHO_T}$result" >&6; }
11837
11838
11839
11840
11841           enablestring=
11842           defaultval=$wxUSE_ALL_FEATURES
11843           if test -z "$defaultval"; then
11844               if test x"$enablestring" = xdisable; then
11845                   defaultval=yes
11846               else
11847                   defaultval=no
11848               fi
11849           fi
11850
11851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
11852 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
11853           # Check whether --enable-commondlg was given.
11854 if test "${enable_commondlg+set}" = set; then
11855   enableval=$enable_commondlg;
11856                           if test "$enableval" = yes; then
11857                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
11858                           else
11859                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
11860                           fi
11861
11862 else
11863
11864                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
11865
11866 fi
11867
11868
11869           eval "$wx_cv_use_commondlg"
11870
11871           if test x"$enablestring" = xdisable; then
11872             if test $wxUSE_COMMONDLGS = yes; then
11873               result=no
11874             else
11875               result=yes
11876             fi
11877           else
11878             result=$wxUSE_COMMONDLGS
11879           fi
11880
11881           { echo "$as_me:$LINENO: result: $result" >&5
11882 echo "${ECHO_T}$result" >&6; }
11883
11884
11885           enablestring=
11886           defaultval=$wxUSE_ALL_FEATURES
11887           if test -z "$defaultval"; then
11888               if test x"$enablestring" = xdisable; then
11889                   defaultval=yes
11890               else
11891                   defaultval=no
11892               fi
11893           fi
11894
11895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
11896 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
11897           # Check whether --enable-aboutdlg was given.
11898 if test "${enable_aboutdlg+set}" = set; then
11899   enableval=$enable_aboutdlg;
11900                           if test "$enableval" = yes; then
11901                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
11902                           else
11903                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
11904                           fi
11905
11906 else
11907
11908                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
11909
11910 fi
11911
11912
11913           eval "$wx_cv_use_aboutdlg"
11914
11915           if test x"$enablestring" = xdisable; then
11916             if test $wxUSE_ABOUTDLG = yes; then
11917               result=no
11918             else
11919               result=yes
11920             fi
11921           else
11922             result=$wxUSE_ABOUTDLG
11923           fi
11924
11925           { echo "$as_me:$LINENO: result: $result" >&5
11926 echo "${ECHO_T}$result" >&6; }
11927
11928
11929           enablestring=
11930           defaultval=$wxUSE_ALL_FEATURES
11931           if test -z "$defaultval"; then
11932               if test x"$enablestring" = xdisable; then
11933                   defaultval=yes
11934               else
11935                   defaultval=no
11936               fi
11937           fi
11938
11939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
11940 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
11941           # Check whether --enable-choicedlg was given.
11942 if test "${enable_choicedlg+set}" = set; then
11943   enableval=$enable_choicedlg;
11944                           if test "$enableval" = yes; then
11945                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
11946                           else
11947                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
11948                           fi
11949
11950 else
11951
11952                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
11953
11954 fi
11955
11956
11957           eval "$wx_cv_use_choicedlg"
11958
11959           if test x"$enablestring" = xdisable; then
11960             if test $wxUSE_CHOICEDLG = yes; then
11961               result=no
11962             else
11963               result=yes
11964             fi
11965           else
11966             result=$wxUSE_CHOICEDLG
11967           fi
11968
11969           { echo "$as_me:$LINENO: result: $result" >&5
11970 echo "${ECHO_T}$result" >&6; }
11971
11972
11973           enablestring=
11974           defaultval=$wxUSE_ALL_FEATURES
11975           if test -z "$defaultval"; then
11976               if test x"$enablestring" = xdisable; then
11977                   defaultval=yes
11978               else
11979                   defaultval=no
11980               fi
11981           fi
11982
11983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
11984 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
11985           # Check whether --enable-coldlg was given.
11986 if test "${enable_coldlg+set}" = set; then
11987   enableval=$enable_coldlg;
11988                           if test "$enableval" = yes; then
11989                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
11990                           else
11991                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
11992                           fi
11993
11994 else
11995
11996                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
11997
11998 fi
11999
12000
12001           eval "$wx_cv_use_coldlg"
12002
12003           if test x"$enablestring" = xdisable; then
12004             if test $wxUSE_COLOURDLG = yes; then
12005               result=no
12006             else
12007               result=yes
12008             fi
12009           else
12010             result=$wxUSE_COLOURDLG
12011           fi
12012
12013           { echo "$as_me:$LINENO: result: $result" >&5
12014 echo "${ECHO_T}$result" >&6; }
12015
12016
12017           enablestring=
12018           defaultval=$wxUSE_ALL_FEATURES
12019           if test -z "$defaultval"; then
12020               if test x"$enablestring" = xdisable; then
12021                   defaultval=yes
12022               else
12023                   defaultval=no
12024               fi
12025           fi
12026
12027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12028 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12029           # Check whether --enable-filedlg was given.
12030 if test "${enable_filedlg+set}" = set; then
12031   enableval=$enable_filedlg;
12032                           if test "$enableval" = yes; then
12033                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12034                           else
12035                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12036                           fi
12037
12038 else
12039
12040                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12041
12042 fi
12043
12044
12045           eval "$wx_cv_use_filedlg"
12046
12047           if test x"$enablestring" = xdisable; then
12048             if test $wxUSE_FILEDLG = yes; then
12049               result=no
12050             else
12051               result=yes
12052             fi
12053           else
12054             result=$wxUSE_FILEDLG
12055           fi
12056
12057           { echo "$as_me:$LINENO: result: $result" >&5
12058 echo "${ECHO_T}$result" >&6; }
12059
12060
12061           enablestring=
12062           defaultval=$wxUSE_ALL_FEATURES
12063           if test -z "$defaultval"; then
12064               if test x"$enablestring" = xdisable; then
12065                   defaultval=yes
12066               else
12067                   defaultval=no
12068               fi
12069           fi
12070
12071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12072 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12073           # Check whether --enable-finddlg was given.
12074 if test "${enable_finddlg+set}" = set; then
12075   enableval=$enable_finddlg;
12076                           if test "$enableval" = yes; then
12077                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12078                           else
12079                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12080                           fi
12081
12082 else
12083
12084                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12085
12086 fi
12087
12088
12089           eval "$wx_cv_use_finddlg"
12090
12091           if test x"$enablestring" = xdisable; then
12092             if test $wxUSE_FINDREPLDLG = yes; then
12093               result=no
12094             else
12095               result=yes
12096             fi
12097           else
12098             result=$wxUSE_FINDREPLDLG
12099           fi
12100
12101           { echo "$as_me:$LINENO: result: $result" >&5
12102 echo "${ECHO_T}$result" >&6; }
12103
12104
12105           enablestring=
12106           defaultval=$wxUSE_ALL_FEATURES
12107           if test -z "$defaultval"; then
12108               if test x"$enablestring" = xdisable; then
12109                   defaultval=yes
12110               else
12111                   defaultval=no
12112               fi
12113           fi
12114
12115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12116 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12117           # Check whether --enable-fontdlg was given.
12118 if test "${enable_fontdlg+set}" = set; then
12119   enableval=$enable_fontdlg;
12120                           if test "$enableval" = yes; then
12121                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12122                           else
12123                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12124                           fi
12125
12126 else
12127
12128                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12129
12130 fi
12131
12132
12133           eval "$wx_cv_use_fontdlg"
12134
12135           if test x"$enablestring" = xdisable; then
12136             if test $wxUSE_FONTDLG = yes; then
12137               result=no
12138             else
12139               result=yes
12140             fi
12141           else
12142             result=$wxUSE_FONTDLG
12143           fi
12144
12145           { echo "$as_me:$LINENO: result: $result" >&5
12146 echo "${ECHO_T}$result" >&6; }
12147
12148
12149           enablestring=
12150           defaultval=$wxUSE_ALL_FEATURES
12151           if test -z "$defaultval"; then
12152               if test x"$enablestring" = xdisable; then
12153                   defaultval=yes
12154               else
12155                   defaultval=no
12156               fi
12157           fi
12158
12159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12160 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12161           # Check whether --enable-dirdlg was given.
12162 if test "${enable_dirdlg+set}" = set; then
12163   enableval=$enable_dirdlg;
12164                           if test "$enableval" = yes; then
12165                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12166                           else
12167                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12168                           fi
12169
12170 else
12171
12172                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12173
12174 fi
12175
12176
12177           eval "$wx_cv_use_dirdlg"
12178
12179           if test x"$enablestring" = xdisable; then
12180             if test $wxUSE_DIRDLG = yes; then
12181               result=no
12182             else
12183               result=yes
12184             fi
12185           else
12186             result=$wxUSE_DIRDLG
12187           fi
12188
12189           { echo "$as_me:$LINENO: result: $result" >&5
12190 echo "${ECHO_T}$result" >&6; }
12191
12192
12193           enablestring=
12194           defaultval=$wxUSE_ALL_FEATURES
12195           if test -z "$defaultval"; then
12196               if test x"$enablestring" = xdisable; then
12197                   defaultval=yes
12198               else
12199                   defaultval=no
12200               fi
12201           fi
12202
12203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12204 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12205           # Check whether --enable-msgdlg was given.
12206 if test "${enable_msgdlg+set}" = set; then
12207   enableval=$enable_msgdlg;
12208                           if test "$enableval" = yes; then
12209                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12210                           else
12211                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12212                           fi
12213
12214 else
12215
12216                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12217
12218 fi
12219
12220
12221           eval "$wx_cv_use_msgdlg"
12222
12223           if test x"$enablestring" = xdisable; then
12224             if test $wxUSE_MSGDLG = yes; then
12225               result=no
12226             else
12227               result=yes
12228             fi
12229           else
12230             result=$wxUSE_MSGDLG
12231           fi
12232
12233           { echo "$as_me:$LINENO: result: $result" >&5
12234 echo "${ECHO_T}$result" >&6; }
12235
12236
12237           enablestring=
12238           defaultval=$wxUSE_ALL_FEATURES
12239           if test -z "$defaultval"; then
12240               if test x"$enablestring" = xdisable; then
12241                   defaultval=yes
12242               else
12243                   defaultval=no
12244               fi
12245           fi
12246
12247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12248 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12249           # Check whether --enable-numberdlg was given.
12250 if test "${enable_numberdlg+set}" = set; then
12251   enableval=$enable_numberdlg;
12252                           if test "$enableval" = yes; then
12253                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12254                           else
12255                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12256                           fi
12257
12258 else
12259
12260                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12261
12262 fi
12263
12264
12265           eval "$wx_cv_use_numberdlg"
12266
12267           if test x"$enablestring" = xdisable; then
12268             if test $wxUSE_NUMBERDLG = yes; then
12269               result=no
12270             else
12271               result=yes
12272             fi
12273           else
12274             result=$wxUSE_NUMBERDLG
12275           fi
12276
12277           { echo "$as_me:$LINENO: result: $result" >&5
12278 echo "${ECHO_T}$result" >&6; }
12279
12280
12281           enablestring=
12282           defaultval=$wxUSE_ALL_FEATURES
12283           if test -z "$defaultval"; then
12284               if test x"$enablestring" = xdisable; then
12285                   defaultval=yes
12286               else
12287                   defaultval=no
12288               fi
12289           fi
12290
12291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12292 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12293           # Check whether --enable-splash was given.
12294 if test "${enable_splash+set}" = set; then
12295   enableval=$enable_splash;
12296                           if test "$enableval" = yes; then
12297                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12298                           else
12299                             wx_cv_use_splash='wxUSE_SPLASH=no'
12300                           fi
12301
12302 else
12303
12304                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12305
12306 fi
12307
12308
12309           eval "$wx_cv_use_splash"
12310
12311           if test x"$enablestring" = xdisable; then
12312             if test $wxUSE_SPLASH = yes; then
12313               result=no
12314             else
12315               result=yes
12316             fi
12317           else
12318             result=$wxUSE_SPLASH
12319           fi
12320
12321           { echo "$as_me:$LINENO: result: $result" >&5
12322 echo "${ECHO_T}$result" >&6; }
12323
12324
12325           enablestring=
12326           defaultval=$wxUSE_ALL_FEATURES
12327           if test -z "$defaultval"; then
12328               if test x"$enablestring" = xdisable; then
12329                   defaultval=yes
12330               else
12331                   defaultval=no
12332               fi
12333           fi
12334
12335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12336 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12337           # Check whether --enable-textdlg was given.
12338 if test "${enable_textdlg+set}" = set; then
12339   enableval=$enable_textdlg;
12340                           if test "$enableval" = yes; then
12341                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12342                           else
12343                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12344                           fi
12345
12346 else
12347
12348                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12349
12350 fi
12351
12352
12353           eval "$wx_cv_use_textdlg"
12354
12355           if test x"$enablestring" = xdisable; then
12356             if test $wxUSE_TEXTDLG = yes; then
12357               result=no
12358             else
12359               result=yes
12360             fi
12361           else
12362             result=$wxUSE_TEXTDLG
12363           fi
12364
12365           { echo "$as_me:$LINENO: result: $result" >&5
12366 echo "${ECHO_T}$result" >&6; }
12367
12368
12369           enablestring=
12370           defaultval=$wxUSE_ALL_FEATURES
12371           if test -z "$defaultval"; then
12372               if test x"$enablestring" = xdisable; then
12373                   defaultval=yes
12374               else
12375                   defaultval=no
12376               fi
12377           fi
12378
12379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12380 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12381           # Check whether --enable-tipdlg was given.
12382 if test "${enable_tipdlg+set}" = set; then
12383   enableval=$enable_tipdlg;
12384                           if test "$enableval" = yes; then
12385                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12386                           else
12387                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12388                           fi
12389
12390 else
12391
12392                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12393
12394 fi
12395
12396
12397           eval "$wx_cv_use_tipdlg"
12398
12399           if test x"$enablestring" = xdisable; then
12400             if test $wxUSE_STARTUP_TIPS = yes; then
12401               result=no
12402             else
12403               result=yes
12404             fi
12405           else
12406             result=$wxUSE_STARTUP_TIPS
12407           fi
12408
12409           { echo "$as_me:$LINENO: result: $result" >&5
12410 echo "${ECHO_T}$result" >&6; }
12411
12412
12413           enablestring=
12414           defaultval=$wxUSE_ALL_FEATURES
12415           if test -z "$defaultval"; then
12416               if test x"$enablestring" = xdisable; then
12417                   defaultval=yes
12418               else
12419                   defaultval=no
12420               fi
12421           fi
12422
12423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12424 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12425           # Check whether --enable-progressdlg was given.
12426 if test "${enable_progressdlg+set}" = set; then
12427   enableval=$enable_progressdlg;
12428                           if test "$enableval" = yes; then
12429                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12430                           else
12431                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12432                           fi
12433
12434 else
12435
12436                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12437
12438 fi
12439
12440
12441           eval "$wx_cv_use_progressdlg"
12442
12443           if test x"$enablestring" = xdisable; then
12444             if test $wxUSE_PROGRESSDLG = yes; then
12445               result=no
12446             else
12447               result=yes
12448             fi
12449           else
12450             result=$wxUSE_PROGRESSDLG
12451           fi
12452
12453           { echo "$as_me:$LINENO: result: $result" >&5
12454 echo "${ECHO_T}$result" >&6; }
12455
12456
12457           enablestring=
12458           defaultval=$wxUSE_ALL_FEATURES
12459           if test -z "$defaultval"; then
12460               if test x"$enablestring" = xdisable; then
12461                   defaultval=yes
12462               else
12463                   defaultval=no
12464               fi
12465           fi
12466
12467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12468 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12469           # Check whether --enable-wizarddlg was given.
12470 if test "${enable_wizarddlg+set}" = set; then
12471   enableval=$enable_wizarddlg;
12472                           if test "$enableval" = yes; then
12473                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12474                           else
12475                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12476                           fi
12477
12478 else
12479
12480                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12481
12482 fi
12483
12484
12485           eval "$wx_cv_use_wizarddlg"
12486
12487           if test x"$enablestring" = xdisable; then
12488             if test $wxUSE_WIZARDDLG = yes; then
12489               result=no
12490             else
12491               result=yes
12492             fi
12493           else
12494             result=$wxUSE_WIZARDDLG
12495           fi
12496
12497           { echo "$as_me:$LINENO: result: $result" >&5
12498 echo "${ECHO_T}$result" >&6; }
12499
12500
12501
12502
12503           enablestring=
12504           defaultval=$wxUSE_ALL_FEATURES
12505           if test -z "$defaultval"; then
12506               if test x"$enablestring" = xdisable; then
12507                   defaultval=yes
12508               else
12509                   defaultval=no
12510               fi
12511           fi
12512
12513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12514 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12515           # Check whether --enable-menus was given.
12516 if test "${enable_menus+set}" = set; then
12517   enableval=$enable_menus;
12518                           if test "$enableval" = yes; then
12519                             wx_cv_use_menus='wxUSE_MENUS=yes'
12520                           else
12521                             wx_cv_use_menus='wxUSE_MENUS=no'
12522                           fi
12523
12524 else
12525
12526                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12527
12528 fi
12529
12530
12531           eval "$wx_cv_use_menus"
12532
12533           if test x"$enablestring" = xdisable; then
12534             if test $wxUSE_MENUS = yes; then
12535               result=no
12536             else
12537               result=yes
12538             fi
12539           else
12540             result=$wxUSE_MENUS
12541           fi
12542
12543           { echo "$as_me:$LINENO: result: $result" >&5
12544 echo "${ECHO_T}$result" >&6; }
12545
12546
12547           enablestring=
12548           defaultval=$wxUSE_ALL_FEATURES
12549           if test -z "$defaultval"; then
12550               if test x"$enablestring" = xdisable; then
12551                   defaultval=yes
12552               else
12553                   defaultval=no
12554               fi
12555           fi
12556
12557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12558 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12559           # Check whether --enable-miniframe was given.
12560 if test "${enable_miniframe+set}" = set; then
12561   enableval=$enable_miniframe;
12562                           if test "$enableval" = yes; then
12563                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12564                           else
12565                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12566                           fi
12567
12568 else
12569
12570                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12571
12572 fi
12573
12574
12575           eval "$wx_cv_use_miniframe"
12576
12577           if test x"$enablestring" = xdisable; then
12578             if test $wxUSE_MINIFRAME = yes; then
12579               result=no
12580             else
12581               result=yes
12582             fi
12583           else
12584             result=$wxUSE_MINIFRAME
12585           fi
12586
12587           { echo "$as_me:$LINENO: result: $result" >&5
12588 echo "${ECHO_T}$result" >&6; }
12589
12590
12591           enablestring=
12592           defaultval=$wxUSE_ALL_FEATURES
12593           if test -z "$defaultval"; then
12594               if test x"$enablestring" = xdisable; then
12595                   defaultval=yes
12596               else
12597                   defaultval=no
12598               fi
12599           fi
12600
12601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12602 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12603           # Check whether --enable-tooltips was given.
12604 if test "${enable_tooltips+set}" = set; then
12605   enableval=$enable_tooltips;
12606                           if test "$enableval" = yes; then
12607                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12608                           else
12609                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12610                           fi
12611
12612 else
12613
12614                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12615
12616 fi
12617
12618
12619           eval "$wx_cv_use_tooltips"
12620
12621           if test x"$enablestring" = xdisable; then
12622             if test $wxUSE_TOOLTIPS = yes; then
12623               result=no
12624             else
12625               result=yes
12626             fi
12627           else
12628             result=$wxUSE_TOOLTIPS
12629           fi
12630
12631           { echo "$as_me:$LINENO: result: $result" >&5
12632 echo "${ECHO_T}$result" >&6; }
12633
12634
12635           enablestring=
12636           defaultval=$wxUSE_ALL_FEATURES
12637           if test -z "$defaultval"; then
12638               if test x"$enablestring" = xdisable; then
12639                   defaultval=yes
12640               else
12641                   defaultval=no
12642               fi
12643           fi
12644
12645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12646 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12647           # Check whether --enable-splines was given.
12648 if test "${enable_splines+set}" = set; then
12649   enableval=$enable_splines;
12650                           if test "$enableval" = yes; then
12651                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12652                           else
12653                             wx_cv_use_splines='wxUSE_SPLINES=no'
12654                           fi
12655
12656 else
12657
12658                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12659
12660 fi
12661
12662
12663           eval "$wx_cv_use_splines"
12664
12665           if test x"$enablestring" = xdisable; then
12666             if test $wxUSE_SPLINES = yes; then
12667               result=no
12668             else
12669               result=yes
12670             fi
12671           else
12672             result=$wxUSE_SPLINES
12673           fi
12674
12675           { echo "$as_me:$LINENO: result: $result" >&5
12676 echo "${ECHO_T}$result" >&6; }
12677
12678
12679           enablestring=
12680           defaultval=$wxUSE_ALL_FEATURES
12681           if test -z "$defaultval"; then
12682               if test x"$enablestring" = xdisable; then
12683                   defaultval=yes
12684               else
12685                   defaultval=no
12686               fi
12687           fi
12688
12689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12690 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12691           # Check whether --enable-mousewheel was given.
12692 if test "${enable_mousewheel+set}" = set; then
12693   enableval=$enable_mousewheel;
12694                           if test "$enableval" = yes; then
12695                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12696                           else
12697                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12698                           fi
12699
12700 else
12701
12702                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12703
12704 fi
12705
12706
12707           eval "$wx_cv_use_mousewheel"
12708
12709           if test x"$enablestring" = xdisable; then
12710             if test $wxUSE_MOUSEWHEEL = yes; then
12711               result=no
12712             else
12713               result=yes
12714             fi
12715           else
12716             result=$wxUSE_MOUSEWHEEL
12717           fi
12718
12719           { echo "$as_me:$LINENO: result: $result" >&5
12720 echo "${ECHO_T}$result" >&6; }
12721
12722
12723           enablestring=
12724           defaultval=$wxUSE_ALL_FEATURES
12725           if test -z "$defaultval"; then
12726               if test x"$enablestring" = xdisable; then
12727                   defaultval=yes
12728               else
12729                   defaultval=no
12730               fi
12731           fi
12732
12733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12734 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12735           # Check whether --enable-validators was given.
12736 if test "${enable_validators+set}" = set; then
12737   enableval=$enable_validators;
12738                           if test "$enableval" = yes; then
12739                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
12740                           else
12741                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
12742                           fi
12743
12744 else
12745
12746                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
12747
12748 fi
12749
12750
12751           eval "$wx_cv_use_validators"
12752
12753           if test x"$enablestring" = xdisable; then
12754             if test $wxUSE_VALIDATORS = yes; then
12755               result=no
12756             else
12757               result=yes
12758             fi
12759           else
12760             result=$wxUSE_VALIDATORS
12761           fi
12762
12763           { echo "$as_me:$LINENO: result: $result" >&5
12764 echo "${ECHO_T}$result" >&6; }
12765
12766
12767           enablestring=
12768           defaultval=$wxUSE_ALL_FEATURES
12769           if test -z "$defaultval"; then
12770               if test x"$enablestring" = xdisable; then
12771                   defaultval=yes
12772               else
12773                   defaultval=no
12774               fi
12775           fi
12776
12777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
12778 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
12779           # Check whether --enable-busyinfo was given.
12780 if test "${enable_busyinfo+set}" = set; then
12781   enableval=$enable_busyinfo;
12782                           if test "$enableval" = yes; then
12783                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
12784                           else
12785                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
12786                           fi
12787
12788 else
12789
12790                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
12791
12792 fi
12793
12794
12795           eval "$wx_cv_use_busyinfo"
12796
12797           if test x"$enablestring" = xdisable; then
12798             if test $wxUSE_BUSYINFO = yes; then
12799               result=no
12800             else
12801               result=yes
12802             fi
12803           else
12804             result=$wxUSE_BUSYINFO
12805           fi
12806
12807           { echo "$as_me:$LINENO: result: $result" >&5
12808 echo "${ECHO_T}$result" >&6; }
12809
12810
12811           enablestring=
12812           defaultval=$wxUSE_ALL_FEATURES
12813           if test -z "$defaultval"; then
12814               if test x"$enablestring" = xdisable; then
12815                   defaultval=yes
12816               else
12817                   defaultval=no
12818               fi
12819           fi
12820
12821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
12822 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
12823           # Check whether --enable-joystick was given.
12824 if test "${enable_joystick+set}" = set; then
12825   enableval=$enable_joystick;
12826                           if test "$enableval" = yes; then
12827                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
12828                           else
12829                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
12830                           fi
12831
12832 else
12833
12834                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
12835
12836 fi
12837
12838
12839           eval "$wx_cv_use_joystick"
12840
12841           if test x"$enablestring" = xdisable; then
12842             if test $wxUSE_JOYSTICK = yes; then
12843               result=no
12844             else
12845               result=yes
12846             fi
12847           else
12848             result=$wxUSE_JOYSTICK
12849           fi
12850
12851           { echo "$as_me:$LINENO: result: $result" >&5
12852 echo "${ECHO_T}$result" >&6; }
12853
12854
12855           enablestring=
12856           defaultval=$wxUSE_ALL_FEATURES
12857           if test -z "$defaultval"; then
12858               if test x"$enablestring" = xdisable; then
12859                   defaultval=yes
12860               else
12861                   defaultval=no
12862               fi
12863           fi
12864
12865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
12866 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
12867           # Check whether --enable-metafile was given.
12868 if test "${enable_metafile+set}" = set; then
12869   enableval=$enable_metafile;
12870                           if test "$enableval" = yes; then
12871                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
12872                           else
12873                             wx_cv_use_metafile='wxUSE_METAFILE=no'
12874                           fi
12875
12876 else
12877
12878                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
12879
12880 fi
12881
12882
12883           eval "$wx_cv_use_metafile"
12884
12885           if test x"$enablestring" = xdisable; then
12886             if test $wxUSE_METAFILE = yes; then
12887               result=no
12888             else
12889               result=yes
12890             fi
12891           else
12892             result=$wxUSE_METAFILE
12893           fi
12894
12895           { echo "$as_me:$LINENO: result: $result" >&5
12896 echo "${ECHO_T}$result" >&6; }
12897
12898
12899           enablestring=
12900           defaultval=$wxUSE_ALL_FEATURES
12901           if test -z "$defaultval"; then
12902               if test x"$enablestring" = xdisable; then
12903                   defaultval=yes
12904               else
12905                   defaultval=no
12906               fi
12907           fi
12908
12909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
12910 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
12911           # Check whether --enable-dragimage was given.
12912 if test "${enable_dragimage+set}" = set; then
12913   enableval=$enable_dragimage;
12914                           if test "$enableval" = yes; then
12915                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
12916                           else
12917                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
12918                           fi
12919
12920 else
12921
12922                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
12923
12924 fi
12925
12926
12927           eval "$wx_cv_use_dragimage"
12928
12929           if test x"$enablestring" = xdisable; then
12930             if test $wxUSE_DRAGIMAGE = yes; then
12931               result=no
12932             else
12933               result=yes
12934             fi
12935           else
12936             result=$wxUSE_DRAGIMAGE
12937           fi
12938
12939           { echo "$as_me:$LINENO: result: $result" >&5
12940 echo "${ECHO_T}$result" >&6; }
12941
12942
12943           enablestring=
12944           defaultval=$wxUSE_ALL_FEATURES
12945           if test -z "$defaultval"; then
12946               if test x"$enablestring" = xdisable; then
12947                   defaultval=yes
12948               else
12949                   defaultval=no
12950               fi
12951           fi
12952
12953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
12954 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
12955           # Check whether --enable-accessibility was given.
12956 if test "${enable_accessibility+set}" = set; then
12957   enableval=$enable_accessibility;
12958                           if test "$enableval" = yes; then
12959                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
12960                           else
12961                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
12962                           fi
12963
12964 else
12965
12966                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
12967
12968 fi
12969
12970
12971           eval "$wx_cv_use_accessibility"
12972
12973           if test x"$enablestring" = xdisable; then
12974             if test $wxUSE_ACCESSIBILITY = yes; then
12975               result=no
12976             else
12977               result=yes
12978             fi
12979           else
12980             result=$wxUSE_ACCESSIBILITY
12981           fi
12982
12983           { echo "$as_me:$LINENO: result: $result" >&5
12984 echo "${ECHO_T}$result" >&6; }
12985
12986
12987
12988
12989           enablestring=
12990           defaultval=$wxUSE_ALL_FEATURES
12991           if test -z "$defaultval"; then
12992               if test x"$enablestring" = xdisable; then
12993                   defaultval=yes
12994               else
12995                   defaultval=no
12996               fi
12997           fi
12998
12999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13000 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13001           # Check whether --enable-palette was given.
13002 if test "${enable_palette+set}" = set; then
13003   enableval=$enable_palette;
13004                           if test "$enableval" = yes; then
13005                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13006                           else
13007                             wx_cv_use_palette='wxUSE_PALETTE=no'
13008                           fi
13009
13010 else
13011
13012                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13013
13014 fi
13015
13016
13017           eval "$wx_cv_use_palette"
13018
13019           if test x"$enablestring" = xdisable; then
13020             if test $wxUSE_PALETTE = yes; then
13021               result=no
13022             else
13023               result=yes
13024             fi
13025           else
13026             result=$wxUSE_PALETTE
13027           fi
13028
13029           { echo "$as_me:$LINENO: result: $result" >&5
13030 echo "${ECHO_T}$result" >&6; }
13031
13032
13033           enablestring=
13034           defaultval=$wxUSE_ALL_FEATURES
13035           if test -z "$defaultval"; then
13036               if test x"$enablestring" = xdisable; then
13037                   defaultval=yes
13038               else
13039                   defaultval=no
13040               fi
13041           fi
13042
13043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13044 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13045           # Check whether --enable-image was given.
13046 if test "${enable_image+set}" = set; then
13047   enableval=$enable_image;
13048                           if test "$enableval" = yes; then
13049                             wx_cv_use_image='wxUSE_IMAGE=yes'
13050                           else
13051                             wx_cv_use_image='wxUSE_IMAGE=no'
13052                           fi
13053
13054 else
13055
13056                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13057
13058 fi
13059
13060
13061           eval "$wx_cv_use_image"
13062
13063           if test x"$enablestring" = xdisable; then
13064             if test $wxUSE_IMAGE = yes; then
13065               result=no
13066             else
13067               result=yes
13068             fi
13069           else
13070             result=$wxUSE_IMAGE
13071           fi
13072
13073           { echo "$as_me:$LINENO: result: $result" >&5
13074 echo "${ECHO_T}$result" >&6; }
13075
13076
13077           enablestring=
13078           defaultval=$wxUSE_ALL_FEATURES
13079           if test -z "$defaultval"; then
13080               if test x"$enablestring" = xdisable; then
13081                   defaultval=yes
13082               else
13083                   defaultval=no
13084               fi
13085           fi
13086
13087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13088 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13089           # Check whether --enable-gif was given.
13090 if test "${enable_gif+set}" = set; then
13091   enableval=$enable_gif;
13092                           if test "$enableval" = yes; then
13093                             wx_cv_use_gif='wxUSE_GIF=yes'
13094                           else
13095                             wx_cv_use_gif='wxUSE_GIF=no'
13096                           fi
13097
13098 else
13099
13100                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13101
13102 fi
13103
13104
13105           eval "$wx_cv_use_gif"
13106
13107           if test x"$enablestring" = xdisable; then
13108             if test $wxUSE_GIF = yes; then
13109               result=no
13110             else
13111               result=yes
13112             fi
13113           else
13114             result=$wxUSE_GIF
13115           fi
13116
13117           { echo "$as_me:$LINENO: result: $result" >&5
13118 echo "${ECHO_T}$result" >&6; }
13119
13120
13121           enablestring=
13122           defaultval=$wxUSE_ALL_FEATURES
13123           if test -z "$defaultval"; then
13124               if test x"$enablestring" = xdisable; then
13125                   defaultval=yes
13126               else
13127                   defaultval=no
13128               fi
13129           fi
13130
13131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13132 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13133           # Check whether --enable-pcx was given.
13134 if test "${enable_pcx+set}" = set; then
13135   enableval=$enable_pcx;
13136                           if test "$enableval" = yes; then
13137                             wx_cv_use_pcx='wxUSE_PCX=yes'
13138                           else
13139                             wx_cv_use_pcx='wxUSE_PCX=no'
13140                           fi
13141
13142 else
13143
13144                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13145
13146 fi
13147
13148
13149           eval "$wx_cv_use_pcx"
13150
13151           if test x"$enablestring" = xdisable; then
13152             if test $wxUSE_PCX = yes; then
13153               result=no
13154             else
13155               result=yes
13156             fi
13157           else
13158             result=$wxUSE_PCX
13159           fi
13160
13161           { echo "$as_me:$LINENO: result: $result" >&5
13162 echo "${ECHO_T}$result" >&6; }
13163
13164
13165           enablestring=
13166           defaultval=$wxUSE_ALL_FEATURES
13167           if test -z "$defaultval"; then
13168               if test x"$enablestring" = xdisable; then
13169                   defaultval=yes
13170               else
13171                   defaultval=no
13172               fi
13173           fi
13174
13175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13176 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13177           # Check whether --enable-tga was given.
13178 if test "${enable_tga+set}" = set; then
13179   enableval=$enable_tga;
13180                           if test "$enableval" = yes; then
13181                             wx_cv_use_tga='wxUSE_TGA=yes'
13182                           else
13183                             wx_cv_use_tga='wxUSE_TGA=no'
13184                           fi
13185
13186 else
13187
13188                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13189
13190 fi
13191
13192
13193           eval "$wx_cv_use_tga"
13194
13195           if test x"$enablestring" = xdisable; then
13196             if test $wxUSE_TGA = yes; then
13197               result=no
13198             else
13199               result=yes
13200             fi
13201           else
13202             result=$wxUSE_TGA
13203           fi
13204
13205           { echo "$as_me:$LINENO: result: $result" >&5
13206 echo "${ECHO_T}$result" >&6; }
13207
13208
13209           enablestring=
13210           defaultval=$wxUSE_ALL_FEATURES
13211           if test -z "$defaultval"; then
13212               if test x"$enablestring" = xdisable; then
13213                   defaultval=yes
13214               else
13215                   defaultval=no
13216               fi
13217           fi
13218
13219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13220 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13221           # Check whether --enable-iff was given.
13222 if test "${enable_iff+set}" = set; then
13223   enableval=$enable_iff;
13224                           if test "$enableval" = yes; then
13225                             wx_cv_use_iff='wxUSE_IFF=yes'
13226                           else
13227                             wx_cv_use_iff='wxUSE_IFF=no'
13228                           fi
13229
13230 else
13231
13232                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13233
13234 fi
13235
13236
13237           eval "$wx_cv_use_iff"
13238
13239           if test x"$enablestring" = xdisable; then
13240             if test $wxUSE_IFF = yes; then
13241               result=no
13242             else
13243               result=yes
13244             fi
13245           else
13246             result=$wxUSE_IFF
13247           fi
13248
13249           { echo "$as_me:$LINENO: result: $result" >&5
13250 echo "${ECHO_T}$result" >&6; }
13251
13252
13253           enablestring=
13254           defaultval=$wxUSE_ALL_FEATURES
13255           if test -z "$defaultval"; then
13256               if test x"$enablestring" = xdisable; then
13257                   defaultval=yes
13258               else
13259                   defaultval=no
13260               fi
13261           fi
13262
13263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13264 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13265           # Check whether --enable-pnm was given.
13266 if test "${enable_pnm+set}" = set; then
13267   enableval=$enable_pnm;
13268                           if test "$enableval" = yes; then
13269                             wx_cv_use_pnm='wxUSE_PNM=yes'
13270                           else
13271                             wx_cv_use_pnm='wxUSE_PNM=no'
13272                           fi
13273
13274 else
13275
13276                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13277
13278 fi
13279
13280
13281           eval "$wx_cv_use_pnm"
13282
13283           if test x"$enablestring" = xdisable; then
13284             if test $wxUSE_PNM = yes; then
13285               result=no
13286             else
13287               result=yes
13288             fi
13289           else
13290             result=$wxUSE_PNM
13291           fi
13292
13293           { echo "$as_me:$LINENO: result: $result" >&5
13294 echo "${ECHO_T}$result" >&6; }
13295
13296
13297           enablestring=
13298           defaultval=$wxUSE_ALL_FEATURES
13299           if test -z "$defaultval"; then
13300               if test x"$enablestring" = xdisable; then
13301                   defaultval=yes
13302               else
13303                   defaultval=no
13304               fi
13305           fi
13306
13307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13308 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13309           # Check whether --enable-xpm was given.
13310 if test "${enable_xpm+set}" = set; then
13311   enableval=$enable_xpm;
13312                           if test "$enableval" = yes; then
13313                             wx_cv_use_xpm='wxUSE_XPM=yes'
13314                           else
13315                             wx_cv_use_xpm='wxUSE_XPM=no'
13316                           fi
13317
13318 else
13319
13320                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13321
13322 fi
13323
13324
13325           eval "$wx_cv_use_xpm"
13326
13327           if test x"$enablestring" = xdisable; then
13328             if test $wxUSE_XPM = yes; then
13329               result=no
13330             else
13331               result=yes
13332             fi
13333           else
13334             result=$wxUSE_XPM
13335           fi
13336
13337           { echo "$as_me:$LINENO: result: $result" >&5
13338 echo "${ECHO_T}$result" >&6; }
13339
13340
13341           enablestring=
13342           defaultval=$wxUSE_ALL_FEATURES
13343           if test -z "$defaultval"; then
13344               if test x"$enablestring" = xdisable; then
13345                   defaultval=yes
13346               else
13347                   defaultval=no
13348               fi
13349           fi
13350
13351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13352 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13353           # Check whether --enable-ico_cur was given.
13354 if test "${enable_ico_cur+set}" = set; then
13355   enableval=$enable_ico_cur;
13356                           if test "$enableval" = yes; then
13357                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13358                           else
13359                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13360                           fi
13361
13362 else
13363
13364                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13365
13366 fi
13367
13368
13369           eval "$wx_cv_use_ico_cur"
13370
13371           if test x"$enablestring" = xdisable; then
13372             if test $wxUSE_ICO_CUR = yes; then
13373               result=no
13374             else
13375               result=yes
13376             fi
13377           else
13378             result=$wxUSE_ICO_CUR
13379           fi
13380
13381           { echo "$as_me:$LINENO: result: $result" >&5
13382 echo "${ECHO_T}$result" >&6; }
13383
13384
13385
13386
13387           enablestring=
13388           defaultval=$wxUSE_ALL_FEATURES
13389           if test -z "$defaultval"; then
13390               if test x"$enablestring" = xdisable; then
13391                   defaultval=yes
13392               else
13393                   defaultval=no
13394               fi
13395           fi
13396
13397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13398 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13399           # Check whether --enable-dccache was given.
13400 if test "${enable_dccache+set}" = set; then
13401   enableval=$enable_dccache;
13402                           if test "$enableval" = yes; then
13403                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13404                           else
13405                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13406                           fi
13407
13408 else
13409
13410                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13411
13412 fi
13413
13414
13415           eval "$wx_cv_use_dccache"
13416
13417           if test x"$enablestring" = xdisable; then
13418             if test $wxUSE_DC_CACHEING = yes; then
13419               result=no
13420             else
13421               result=yes
13422             fi
13423           else
13424             result=$wxUSE_DC_CACHEING
13425           fi
13426
13427           { echo "$as_me:$LINENO: result: $result" >&5
13428 echo "${ECHO_T}$result" >&6; }
13429
13430
13431           enablestring=
13432           defaultval=$wxUSE_ALL_FEATURES
13433           if test -z "$defaultval"; then
13434               if test x"$enablestring" = xdisable; then
13435                   defaultval=yes
13436               else
13437                   defaultval=no
13438               fi
13439           fi
13440
13441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13442 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13443           # Check whether --enable-ps-in-msw was given.
13444 if test "${enable_ps_in_msw+set}" = set; then
13445   enableval=$enable_ps_in_msw;
13446                           if test "$enableval" = yes; then
13447                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13448                           else
13449                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13450                           fi
13451
13452 else
13453
13454                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13455
13456 fi
13457
13458
13459           eval "$wx_cv_use_ps_in_msw"
13460
13461           if test x"$enablestring" = xdisable; then
13462             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13463               result=no
13464             else
13465               result=yes
13466             fi
13467           else
13468             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13469           fi
13470
13471           { echo "$as_me:$LINENO: result: $result" >&5
13472 echo "${ECHO_T}$result" >&6; }
13473
13474
13475           enablestring=
13476           defaultval=$wxUSE_ALL_FEATURES
13477           if test -z "$defaultval"; then
13478               if test x"$enablestring" = xdisable; then
13479                   defaultval=yes
13480               else
13481                   defaultval=no
13482               fi
13483           fi
13484
13485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13486 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13487           # Check whether --enable-ownerdrawn was given.
13488 if test "${enable_ownerdrawn+set}" = set; then
13489   enableval=$enable_ownerdrawn;
13490                           if test "$enableval" = yes; then
13491                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13492                           else
13493                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13494                           fi
13495
13496 else
13497
13498                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13499
13500 fi
13501
13502
13503           eval "$wx_cv_use_ownerdrawn"
13504
13505           if test x"$enablestring" = xdisable; then
13506             if test $wxUSE_OWNER_DRAWN = yes; then
13507               result=no
13508             else
13509               result=yes
13510             fi
13511           else
13512             result=$wxUSE_OWNER_DRAWN
13513           fi
13514
13515           { echo "$as_me:$LINENO: result: $result" >&5
13516 echo "${ECHO_T}$result" >&6; }
13517
13518
13519           enablestring=
13520           defaultval=$wxUSE_ALL_FEATURES
13521           if test -z "$defaultval"; then
13522               if test x"$enablestring" = xdisable; then
13523                   defaultval=yes
13524               else
13525                   defaultval=no
13526               fi
13527           fi
13528
13529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13530 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13531           # Check whether --enable-uxtheme was given.
13532 if test "${enable_uxtheme+set}" = set; then
13533   enableval=$enable_uxtheme;
13534                           if test "$enableval" = yes; then
13535                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13536                           else
13537                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13538                           fi
13539
13540 else
13541
13542                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13543
13544 fi
13545
13546
13547           eval "$wx_cv_use_uxtheme"
13548
13549           if test x"$enablestring" = xdisable; then
13550             if test $wxUSE_UXTHEME = yes; then
13551               result=no
13552             else
13553               result=yes
13554             fi
13555           else
13556             result=$wxUSE_UXTHEME
13557           fi
13558
13559           { echo "$as_me:$LINENO: result: $result" >&5
13560 echo "${ECHO_T}$result" >&6; }
13561
13562
13563           enablestring=
13564           defaultval=$wxUSE_ALL_FEATURES
13565           if test -z "$defaultval"; then
13566               if test x"$enablestring" = xdisable; then
13567                   defaultval=yes
13568               else
13569                   defaultval=no
13570               fi
13571           fi
13572
13573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13574 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13575           # Check whether --enable-wxdib was given.
13576 if test "${enable_wxdib+set}" = set; then
13577   enableval=$enable_wxdib;
13578                           if test "$enableval" = yes; then
13579                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13580                           else
13581                             wx_cv_use_wxdib='wxUSE_DIB=no'
13582                           fi
13583
13584 else
13585
13586                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13587
13588 fi
13589
13590
13591           eval "$wx_cv_use_wxdib"
13592
13593           if test x"$enablestring" = xdisable; then
13594             if test $wxUSE_DIB = yes; then
13595               result=no
13596             else
13597               result=yes
13598             fi
13599           else
13600             result=$wxUSE_DIB
13601           fi
13602
13603           { echo "$as_me:$LINENO: result: $result" >&5
13604 echo "${ECHO_T}$result" >&6; }
13605
13606
13607 fi
13608
13609
13610 { echo "$as_me:$LINENO: checking for toolkit" >&5
13611 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
13612
13613 # In Wine, we need to default to MSW, not GTK or MOTIF
13614 if test "$wxUSE_WINE" = "yes"; then
13615     DEFAULT_DEFAULT_wxUSE_GTK=0
13616     DEFAULT_DEFAULT_wxUSE_MOTIF=0
13617     DEFAULT_DEFAULT_wxUSE_MSW=1
13618     wxUSE_SHARED=no
13619     CC=${CC:-winegcc}
13620     CXX=${CXX:-wineg++}
13621 fi
13622
13623
13624 if test "$wxUSE_GUI" = "yes"; then
13625
13626     if test "$USE_BEOS" = 1; then
13627         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
13628 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
13629    { (exit 1); exit 1; }; }
13630     fi
13631
13632     if test "$TOOLKIT_GIVEN" = 1; then
13633             for toolkit in $ALL_TOOLKITS; do
13634         var=wxUSE_$toolkit
13635         eval "value=\$${var}"
13636         if test "x$value" = "xno"; then
13637           eval "$var=0"
13638         elif test "x$value" != "x"; then
13639           eval "$var=1"
13640         fi
13641
13642         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
13643           eval "wx${toolkit}_VERSION=$value"
13644         fi
13645       done
13646     else
13647             for toolkit in $ALL_TOOLKITS; do
13648         var=DEFAULT_DEFAULT_wxUSE_$toolkit
13649         eval "wxUSE_$toolkit=\$${var}"
13650       done
13651     fi
13652
13653             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
13654                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
13655                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
13656
13657         case "${host}" in
13658       *-pc-os2_emx | *-pc-os2-emx )
13659         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
13660     esac
13661
13662     case "$NUM_TOOLKITS" in
13663       1)
13664       ;;
13665       0)
13666         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
13667 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
13668    { (exit 1); exit 1; }; }
13669       ;;
13670       *)
13671         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
13672 echo "$as_me: error: Please specify at most one toolkit" >&2;}
13673    { (exit 1); exit 1; }; }
13674     esac
13675
13676     # to be removed when --disable-gtk2 isn't needed
13677     if test "x$wxUSE_GTK2" = "xyes"; then
13678         wxGTK_VERSION=2
13679     elif test "x$wxUSE_GTK2" = "xno"; then
13680         wxGTK_VERSION=1
13681     fi
13682
13683     for toolkit in $ALL_TOOLKITS; do
13684         var=wxUSE_$toolkit
13685         eval "value=\$${var}"
13686         if test "$value" = 1; then
13687           toolkit_echo=`echo $toolkit | tr A-Z a-z`
13688           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
13689 echo "${ECHO_T}$toolkit_echo" >&6; }
13690         fi
13691     done
13692 else
13693     if test "x$host_alias" != "x"; then
13694         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
13695 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
13696     else
13697         { echo "$as_me:$LINENO: result: base only" >&5
13698 echo "${ECHO_T}base only" >&6; }
13699     fi
13700 fi
13701
13702
13703 cat >confcache <<\_ACEOF
13704 # This file is a shell script that caches the results of configure
13705 # tests run on this system so they can be shared between configure
13706 # scripts and configure runs, see configure's option --config-cache.
13707 # It is not useful on other systems.  If it contains results you don't
13708 # want to keep, you may remove or edit it.
13709 #
13710 # config.status only pays attention to the cache file if you give it
13711 # the --recheck option to rerun configure.
13712 #
13713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13715 # following values.
13716
13717 _ACEOF
13718
13719 # The following way of writing the cache mishandles newlines in values,
13720 # but we know of no workaround that is simple, portable, and efficient.
13721 # So, we kill variables containing newlines.
13722 # Ultrix sh set writes to stderr and can't be redirected directly,
13723 # and sets the high bit in the cache file unless we assign to the vars.
13724 (
13725   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13726     eval ac_val=\$$ac_var
13727     case $ac_val in #(
13728     *${as_nl}*)
13729       case $ac_var in #(
13730       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13732       esac
13733       case $ac_var in #(
13734       _ | IFS | as_nl) ;; #(
13735       *) $as_unset $ac_var ;;
13736       esac ;;
13737     esac
13738   done
13739
13740   (set) 2>&1 |
13741     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13742     *${as_nl}ac_space=\ *)
13743       # `set' does not quote correctly, so add quotes (double-quote
13744       # substitution turns \\\\ into \\, and sed turns \\ into \).
13745       sed -n \
13746         "s/'/'\\\\''/g;
13747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13748       ;; #(
13749     *)
13750       # `set' quotes correctly as required by POSIX, so do not add quotes.
13751       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13752       ;;
13753     esac |
13754     sort
13755 ) |
13756   sed '
13757      /^ac_cv_env_/b end
13758      t clear
13759      :clear
13760      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13761      t end
13762      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13763      :end' >>confcache
13764 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13765   if test -w "$cache_file"; then
13766     test "x$cache_file" != "x/dev/null" &&
13767       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13768 echo "$as_me: updating cache $cache_file" >&6;}
13769     cat confcache >$cache_file
13770   else
13771     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13772 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13773   fi
13774 fi
13775 rm -f confcache
13776
13777 CFLAGS=${CFLAGS:=}
13778
13779
13780
13781     ac_ext=c
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13786 if test -n "$ac_tool_prefix"; then
13787   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13791 if test "${ac_cv_prog_CC+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   if test -n "$CC"; then
13795   ac_cv_prog_CC="$CC" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800   IFS=$as_save_IFS
13801   test -z "$as_dir" && as_dir=.
13802   for ac_exec_ext in '' $ac_executable_extensions; do
13803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13804     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13806     break 2
13807   fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 fi
13813 fi
13814 CC=$ac_cv_prog_CC
13815 if test -n "$CC"; then
13816   { echo "$as_me:$LINENO: result: $CC" >&5
13817 echo "${ECHO_T}$CC" >&6; }
13818 else
13819   { echo "$as_me:$LINENO: result: no" >&5
13820 echo "${ECHO_T}no" >&6; }
13821 fi
13822
13823
13824 fi
13825 if test -z "$ac_cv_prog_CC"; then
13826   ac_ct_CC=$CC
13827   # Extract the first word of "gcc", so it can be a program name with args.
13828 set dummy gcc; ac_word=$2
13829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   if test -n "$ac_ct_CC"; then
13835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13836 else
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840   IFS=$as_save_IFS
13841   test -z "$as_dir" && as_dir=.
13842   for ac_exec_ext in '' $ac_executable_extensions; do
13843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13844     ac_cv_prog_ac_ct_CC="gcc"
13845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13846     break 2
13847   fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi
13853 fi
13854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13855 if test -n "$ac_ct_CC"; then
13856   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13857 echo "${ECHO_T}$ac_ct_CC" >&6; }
13858 else
13859   { echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6; }
13861 fi
13862
13863   if test "x$ac_ct_CC" = x; then
13864     CC=""
13865   else
13866     case $cross_compiling:$ac_tool_warned in
13867 yes:)
13868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13869 whose name does not start with the host triplet.  If you think this
13870 configuration is useful to you, please write to autoconf@gnu.org." >&5
13871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13872 whose name does not start with the host triplet.  If you think this
13873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13874 ac_tool_warned=yes ;;
13875 esac
13876     CC=$ac_ct_CC
13877   fi
13878 else
13879   CC="$ac_cv_prog_CC"
13880 fi
13881
13882 if test -z "$CC"; then
13883           if test -n "$ac_tool_prefix"; then
13884     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13885 set dummy ${ac_tool_prefix}cc; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_prog_CC+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   if test -n "$CC"; then
13892   ac_cv_prog_CC="$CC" # Let the user override the test.
13893 else
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13896 do
13897   IFS=$as_save_IFS
13898   test -z "$as_dir" && as_dir=.
13899   for ac_exec_ext in '' $ac_executable_extensions; do
13900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13901     ac_cv_prog_CC="${ac_tool_prefix}cc"
13902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13903     break 2
13904   fi
13905 done
13906 done
13907 IFS=$as_save_IFS
13908
13909 fi
13910 fi
13911 CC=$ac_cv_prog_CC
13912 if test -n "$CC"; then
13913   { echo "$as_me:$LINENO: result: $CC" >&5
13914 echo "${ECHO_T}$CC" >&6; }
13915 else
13916   { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13918 fi
13919
13920
13921   fi
13922 fi
13923 if test -z "$CC"; then
13924   # Extract the first word of "cc", so it can be a program name with args.
13925 set dummy cc; ac_word=$2
13926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13928 if test "${ac_cv_prog_CC+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931   if test -n "$CC"; then
13932   ac_cv_prog_CC="$CC" # Let the user override the test.
13933 else
13934   ac_prog_rejected=no
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13937 do
13938   IFS=$as_save_IFS
13939   test -z "$as_dir" && as_dir=.
13940   for ac_exec_ext in '' $ac_executable_extensions; do
13941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13942     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13943        ac_prog_rejected=yes
13944        continue
13945      fi
13946     ac_cv_prog_CC="cc"
13947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948     break 2
13949   fi
13950 done
13951 done
13952 IFS=$as_save_IFS
13953
13954 if test $ac_prog_rejected = yes; then
13955   # We found a bogon in the path, so make sure we never use it.
13956   set dummy $ac_cv_prog_CC
13957   shift
13958   if test $# != 0; then
13959     # We chose a different compiler from the bogus one.
13960     # However, it has the same basename, so the bogon will be chosen
13961     # first if we set CC to just the basename; use the full file name.
13962     shift
13963     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13964   fi
13965 fi
13966 fi
13967 fi
13968 CC=$ac_cv_prog_CC
13969 if test -n "$CC"; then
13970   { echo "$as_me:$LINENO: result: $CC" >&5
13971 echo "${ECHO_T}$CC" >&6; }
13972 else
13973   { echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6; }
13975 fi
13976
13977
13978 fi
13979 if test -z "$CC"; then
13980   if test -n "$ac_tool_prefix"; then
13981   for ac_prog in cl.exe
13982   do
13983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13987 if test "${ac_cv_prog_CC+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   if test -n "$CC"; then
13991   ac_cv_prog_CC="$CC" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996   IFS=$as_save_IFS
13997   test -z "$as_dir" && as_dir=.
13998   for ac_exec_ext in '' $ac_executable_extensions; do
13999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002     break 2
14003   fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 CC=$ac_cv_prog_CC
14011 if test -n "$CC"; then
14012   { echo "$as_me:$LINENO: result: $CC" >&5
14013 echo "${ECHO_T}$CC" >&6; }
14014 else
14015   { echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6; }
14017 fi
14018
14019
14020     test -n "$CC" && break
14021   done
14022 fi
14023 if test -z "$CC"; then
14024   ac_ct_CC=$CC
14025   for ac_prog in cl.exe
14026 do
14027   # Extract the first word of "$ac_prog", so it can be a program name with args.
14028 set dummy $ac_prog; ac_word=$2
14029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   if test -n "$ac_ct_CC"; then
14035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14036 else
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14039 do
14040   IFS=$as_save_IFS
14041   test -z "$as_dir" && as_dir=.
14042   for ac_exec_ext in '' $ac_executable_extensions; do
14043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044     ac_cv_prog_ac_ct_CC="$ac_prog"
14045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14046     break 2
14047   fi
14048 done
14049 done
14050 IFS=$as_save_IFS
14051
14052 fi
14053 fi
14054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14055 if test -n "$ac_ct_CC"; then
14056   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14057 echo "${ECHO_T}$ac_ct_CC" >&6; }
14058 else
14059   { echo "$as_me:$LINENO: result: no" >&5
14060 echo "${ECHO_T}no" >&6; }
14061 fi
14062
14063
14064   test -n "$ac_ct_CC" && break
14065 done
14066
14067   if test "x$ac_ct_CC" = x; then
14068     CC=""
14069   else
14070     case $cross_compiling:$ac_tool_warned in
14071 yes:)
14072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14073 whose name does not start with the host triplet.  If you think this
14074 configuration is useful to you, please write to autoconf@gnu.org." >&5
14075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14076 whose name does not start with the host triplet.  If you think this
14077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14078 ac_tool_warned=yes ;;
14079 esac
14080     CC=$ac_ct_CC
14081   fi
14082 fi
14083
14084 fi
14085
14086
14087 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14088 See \`config.log' for more details." >&5
14089 echo "$as_me: error: no acceptable C compiler found in \$PATH
14090 See \`config.log' for more details." >&2;}
14091    { (exit 1); exit 1; }; }
14092
14093 # Provide some information about the compiler.
14094 echo "$as_me:$LINENO: checking for C compiler version" >&5
14095 ac_compiler=`set X $ac_compile; echo $2`
14096 { (ac_try="$ac_compiler --version >&5"
14097 case "(($ac_try" in
14098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099   *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102   (eval "$ac_compiler --version >&5") 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }
14106 { (ac_try="$ac_compiler -v >&5"
14107 case "(($ac_try" in
14108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109   *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112   (eval "$ac_compiler -v >&5") 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }
14116 { (ac_try="$ac_compiler -V >&5"
14117 case "(($ac_try" in
14118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119   *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122   (eval "$ac_compiler -V >&5") 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }
14126
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133
14134 int
14135 main ()
14136 {
14137
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 ac_clean_files_save=$ac_clean_files
14143 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14144 # Try to create an executable without -o first, disregard a.out.
14145 # It will help us diagnose broken compilers, and finding out an intuition
14146 # of exeext.
14147 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14148 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14149 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14150 #
14151 # List of possible output files, starting from the most likely.
14152 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14153 # only as a last resort.  b.out is created by i960 compilers.
14154 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14155 #
14156 # The IRIX 6 linker writes into existing files which may not be
14157 # executable, retaining their permissions.  Remove them first so a
14158 # subsequent execution test works.
14159 ac_rmfiles=
14160 for ac_file in $ac_files
14161 do
14162   case $ac_file in
14163     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14164     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14165   esac
14166 done
14167 rm -f $ac_rmfiles
14168
14169 if { (ac_try="$ac_link_default"
14170 case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_link_default") 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; then
14179   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14180 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14181 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14182 # so that the user can short-circuit this test for compilers unknown to
14183 # Autoconf.
14184 for ac_file in $ac_files ''
14185 do
14186   test -f "$ac_file" || continue
14187   case $ac_file in
14188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14189         ;;
14190     [ab].out )
14191         # We found the default executable, but exeext='' is most
14192         # certainly right.
14193         break;;
14194     *.* )
14195         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14196         then :; else
14197            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14198         fi
14199         # We set ac_cv_exeext here because the later test for it is not
14200         # safe: cross compilers may not add the suffix if given an `-o'
14201         # argument, so we may need to know it at that point already.
14202         # Even if this section looks crufty: it has the advantage of
14203         # actually working.
14204         break;;
14205     * )
14206         break;;
14207   esac
14208 done
14209 test "$ac_cv_exeext" = no && ac_cv_exeext=
14210
14211 else
14212   ac_file=''
14213 fi
14214
14215 { echo "$as_me:$LINENO: result: $ac_file" >&5
14216 echo "${ECHO_T}$ac_file" >&6; }
14217 if test -z "$ac_file"; then
14218   echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14222 See \`config.log' for more details." >&5
14223 echo "$as_me: error: C compiler cannot create executables
14224 See \`config.log' for more details." >&2;}
14225    { (exit 77); exit 77; }; }
14226 fi
14227
14228 ac_exeext=$ac_cv_exeext
14229
14230 # Check that the compiler produces executables we can run.  If not, either
14231 # the compiler is broken, or we cross compile.
14232 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14235 # If not cross compiling, check that we can run a simple program.
14236 if test "$cross_compiling" != yes; then
14237   if { ac_try='./$ac_file'
14238   { (case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_try") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247     cross_compiling=no
14248   else
14249     if test "$cross_compiling" = maybe; then
14250         cross_compiling=yes
14251     else
14252         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14253 If you meant to cross compile, use \`--host'.
14254 See \`config.log' for more details." >&5
14255 echo "$as_me: error: cannot run C compiled programs.
14256 If you meant to cross compile, use \`--host'.
14257 See \`config.log' for more details." >&2;}
14258    { (exit 1); exit 1; }; }
14259     fi
14260   fi
14261 fi
14262 { echo "$as_me:$LINENO: result: yes" >&5
14263 echo "${ECHO_T}yes" >&6; }
14264
14265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14266 ac_clean_files=$ac_clean_files_save
14267 # Check that the compiler produces executables we can run.  If not, either
14268 # the compiler is broken, or we cross compile.
14269 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14271 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14272 echo "${ECHO_T}$cross_compiling" >&6; }
14273
14274 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_link") 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; then
14286   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14287 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14288 # work properly (i.e., refer to `conftest.exe'), while it won't with
14289 # `rm'.
14290 for ac_file in conftest.exe conftest conftest.*; do
14291   test -f "$ac_file" || continue
14292   case $ac_file in
14293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14294     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14295           break;;
14296     * ) break;;
14297   esac
14298 done
14299 else
14300   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14301 See \`config.log' for more details." >&5
14302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14303 See \`config.log' for more details." >&2;}
14304    { (exit 1); exit 1; }; }
14305 fi
14306
14307 rm -f conftest$ac_cv_exeext
14308 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14309 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14310
14311 rm -f conftest.$ac_ext
14312 EXEEXT=$ac_cv_exeext
14313 ac_exeext=$EXEEXT
14314 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14316 if test "${ac_cv_objext+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325
14326 int
14327 main ()
14328 {
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.o conftest.obj
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; then
14345   for ac_file in conftest.o conftest.obj conftest.*; do
14346   test -f "$ac_file" || continue;
14347   case $ac_file in
14348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14350        break;;
14351   esac
14352 done
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14358 See \`config.log' for more details." >&5
14359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14360 See \`config.log' for more details." >&2;}
14361    { (exit 1); exit 1; }; }
14362 fi
14363
14364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14365 fi
14366 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14367 echo "${ECHO_T}$ac_cv_objext" >&6; }
14368 OBJEXT=$ac_cv_objext
14369 ac_objext=$OBJEXT
14370 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381
14382 int
14383 main ()
14384 {
14385 #ifndef __GNUC__
14386        choke me
14387 #endif
14388
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_compile") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } && {
14407          test -z "$ac_c_werror_flag" ||
14408          test ! -s conftest.err
14409        } && test -s conftest.$ac_objext; then
14410   ac_compiler_gnu=yes
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415         ac_compiler_gnu=no
14416 fi
14417
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14420
14421 fi
14422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14424 GCC=`test $ac_compiler_gnu = yes && echo yes`
14425 ac_test_CFLAGS=${CFLAGS+set}
14426 ac_save_CFLAGS=$CFLAGS
14427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14429 if test "${ac_cv_prog_cc_g+set}" = set; then
14430   echo $ECHO_N "(cached) $ECHO_C" >&6
14431 else
14432   ac_save_c_werror_flag=$ac_c_werror_flag
14433    ac_c_werror_flag=yes
14434    ac_cv_prog_cc_g=no
14435    CFLAGS="-g"
14436    cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442
14443 int
14444 main ()
14445 {
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455   *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458   (eval "$ac_compile") 2>conftest.er1
14459   ac_status=$?
14460   grep -v '^ *+' conftest.er1 >conftest.err
14461   rm -f conftest.er1
14462   cat conftest.err >&5
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } && {
14465          test -z "$ac_c_werror_flag" ||
14466          test ! -s conftest.err
14467        } && test -s conftest.$ac_objext; then
14468   ac_cv_prog_cc_g=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473         CFLAGS=""
14474       cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h.  */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h.  */
14480
14481 int
14482 main ()
14483 {
14484
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_compile") 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } && {
14503          test -z "$ac_c_werror_flag" ||
14504          test ! -s conftest.err
14505        } && test -s conftest.$ac_objext; then
14506   :
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511         ac_c_werror_flag=$ac_save_c_werror_flag
14512          CFLAGS="-g"
14513          cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519
14520 int
14521 main ()
14522 {
14523
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext
14529 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } && {
14542          test -z "$ac_c_werror_flag" ||
14543          test ! -s conftest.err
14544        } && test -s conftest.$ac_objext; then
14545   ac_cv_prog_cc_g=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550
14551 fi
14552
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 fi
14555
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560    ac_c_werror_flag=$ac_save_c_werror_flag
14561 fi
14562 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14564 if test "$ac_test_CFLAGS" = set; then
14565   CFLAGS=$ac_save_CFLAGS
14566 elif test $ac_cv_prog_cc_g = yes; then
14567   if test "$GCC" = yes; then
14568     CFLAGS="-g -O2"
14569   else
14570     CFLAGS="-g"
14571   fi
14572 else
14573   if test "$GCC" = yes; then
14574     CFLAGS="-O2"
14575   else
14576     CFLAGS=
14577   fi
14578 fi
14579 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14580 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14581 if test "${ac_cv_prog_cc_c89+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   ac_cv_prog_cc_c89=no
14585 ac_save_CC=$CC
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 #include <stdarg.h>
14593 #include <stdio.h>
14594 #include <sys/types.h>
14595 #include <sys/stat.h>
14596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14597 struct buf { int x; };
14598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14599 static char *e (p, i)
14600      char **p;
14601      int i;
14602 {
14603   return p[i];
14604 }
14605 static char *f (char * (*g) (char **, int), char **p, ...)
14606 {
14607   char *s;
14608   va_list v;
14609   va_start (v,p);
14610   s = g (p, va_arg (v,int));
14611   va_end (v);
14612   return s;
14613 }
14614
14615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14616    function prototypes and stuff, but not '\xHH' hex character constants.
14617    These don't provoke an error unfortunately, instead are silently treated
14618    as 'x'.  The following induces an error, until -std is added to get
14619    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14620    array size at least.  It's necessary to write '\x00'==0 to get something
14621    that's true only with -std.  */
14622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14623
14624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14625    inside strings and character constants.  */
14626 #define FOO(x) 'x'
14627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14628
14629 int test (int i, double x);
14630 struct s1 {int (*f) (int a);};
14631 struct s2 {int (*f) (double a);};
14632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14633 int argc;
14634 char **argv;
14635 int
14636 main ()
14637 {
14638 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14644         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14645 do
14646   CC="$ac_save_CC $ac_arg"
14647   rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_compile") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } && {
14661          test -z "$ac_c_werror_flag" ||
14662          test ! -s conftest.err
14663        } && test -s conftest.$ac_objext; then
14664   ac_cv_prog_cc_c89=$ac_arg
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669
14670 fi
14671
14672 rm -f core conftest.err conftest.$ac_objext
14673   test "x$ac_cv_prog_cc_c89" != "xno" && break
14674 done
14675 rm -f conftest.$ac_ext
14676 CC=$ac_save_CC
14677
14678 fi
14679 # AC_CACHE_VAL
14680 case "x$ac_cv_prog_cc_c89" in
14681   x)
14682     { echo "$as_me:$LINENO: result: none needed" >&5
14683 echo "${ECHO_T}none needed" >&6; } ;;
14684   xno)
14685     { echo "$as_me:$LINENO: result: unsupported" >&5
14686 echo "${ECHO_T}unsupported" >&6; } ;;
14687   *)
14688     CC="$CC $ac_cv_prog_cc_c89"
14689     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14690 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14691 esac
14692
14693
14694 ac_ext=c
14695 ac_cpp='$CPP $CPPFLAGS'
14696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14699
14700
14701
14702
14703     ac_ext=c
14704 ac_cpp='$CPP $CPPFLAGS'
14705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14708
14709     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14710 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14711 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720
14721 int
14722 main ()
14723 {
14724
14725              #ifndef __INTEL_COMPILER
14726                 choke me
14727              #endif
14728
14729   ;
14730   return 0;
14731 }
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_compile") 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } && {
14747          test -z "$ac_c_werror_flag" ||
14748          test ! -s conftest.err
14749        } && test -s conftest.$ac_objext; then
14750   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755         bakefile_cv_c_compiler___INTEL_COMPILER=no
14756
14757 fi
14758
14759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14760
14761
14762 fi
14763 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
14764 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
14765     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14766         :; INTELCC=yes
14767     else
14768         :;
14769     fi
14770     ac_ext=c
14771 ac_cpp='$CPP $CPPFLAGS'
14772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14775
14776
14777
14778
14779         if test "x$GCC" != "xyes"; then
14780         if test "xCC" = "xC"; then
14781             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14782 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
14783 if test "${bakefile_cv_c_exto+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h.  */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h.  */
14792
14793 int
14794 main ()
14795 {
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest.$ac_ext.o
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803   (eval $ac_compile) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; then
14807   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14808     case $ac_file in
14809         conftest.$ac_ext.o)
14810             bakefile_cv_c_exto="-ext o"
14811             ;;
14812         *)
14813             ;;
14814     esac
14815 done
14816 else
14817   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14818 See \`config.log' for more details." >&5
14819 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14820 See \`config.log' for more details." >&2;}
14821    { (exit 1); exit 1; }; }
14822
14823 fi
14824
14825 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14826
14827 fi
14828 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14829 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
14830 if test "x$bakefile_cv_c_exto" '!=' "x"; then
14831     if test "c" = "c"; then
14832         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
14833     fi
14834     if test "c" = "cxx"; then
14835         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
14836     fi
14837 fi
14838
14839             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14840                 unset ac_cv_prog_cc_g
14841                 ac_test_CFLAGS=${CFLAGS+set}
14842 ac_save_CFLAGS=$CFLAGS
14843 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14844 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14845 if test "${ac_cv_prog_cc_g+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   ac_save_c_werror_flag=$ac_c_werror_flag
14849    ac_c_werror_flag=yes
14850    ac_cv_prog_cc_g=no
14851    CFLAGS="-g"
14852    cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h.  */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h.  */
14858
14859 int
14860 main ()
14861 {
14862
14863   ;
14864   return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (ac_try="$ac_compile"
14869 case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_compile") 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } && {
14881          test -z "$ac_c_werror_flag" ||
14882          test ! -s conftest.err
14883        } && test -s conftest.$ac_objext; then
14884   ac_cv_prog_cc_g=yes
14885 else
14886   echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889         CFLAGS=""
14890       cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h.  */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h.  */
14896
14897 int
14898 main ()
14899 {
14900
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_compile") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } && {
14919          test -z "$ac_c_werror_flag" ||
14920          test ! -s conftest.err
14921        } && test -s conftest.$ac_objext; then
14922   :
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927         ac_c_werror_flag=$ac_save_c_werror_flag
14928          CFLAGS="-g"
14929          cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935
14936 int
14937 main ()
14938 {
14939
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (ac_try="$ac_compile"
14946 case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_compile") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } && {
14958          test -z "$ac_c_werror_flag" ||
14959          test ! -s conftest.err
14960        } && test -s conftest.$ac_objext; then
14961   ac_cv_prog_cc_g=yes
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966
14967 fi
14968
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 fi
14971
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 fi
14974
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976    ac_c_werror_flag=$ac_save_c_werror_flag
14977 fi
14978 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14980 if test "$ac_test_CFLAGS" = set; then
14981   CFLAGS=$ac_save_CFLAGS
14982 elif test $ac_cv_prog_cc_g = yes; then
14983   if test "$GCC" = yes; then
14984     CFLAGS="-g -O2"
14985   else
14986     CFLAGS="-g"
14987   fi
14988 else
14989   if test "$GCC" = yes; then
14990     CFLAGS="-O2"
14991   else
14992     CFLAGS=
14993   fi
14994 fi
14995             fi
14996         fi
14997
14998                         case `uname -s` in
14999             AIX*)
15000
15001
15002     ac_ext=c
15003 ac_cpp='$CPP $CPPFLAGS'
15004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15007
15008     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15009 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15010 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h.  */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h.  */
15019
15020 int
15021 main ()
15022 {
15023
15024              #ifndef __xlC__
15025                 choke me
15026              #endif
15027
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_compile") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } && {
15046          test -z "$ac_c_werror_flag" ||
15047          test ! -s conftest.err
15048        } && test -s conftest.$ac_objext; then
15049   bakefile_cv_c_compiler___xlC__=yes
15050 else
15051   echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054         bakefile_cv_c_compiler___xlC__=no
15055
15056 fi
15057
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059
15060
15061 fi
15062 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15063 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15064     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15065         :; XLCC=yes
15066     else
15067         :;
15068     fi
15069     ac_ext=c
15070 ac_cpp='$CPP $CPPFLAGS'
15071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15074
15075
15076
15077                 ;;
15078
15079             Darwin)
15080
15081
15082     ac_ext=c
15083 ac_cpp='$CPP $CPPFLAGS'
15084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087
15088     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15089 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15090 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15091   echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093   cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099
15100 int
15101 main ()
15102 {
15103
15104              #ifndef __MWERKS__
15105                 choke me
15106              #endif
15107
15108   ;
15109   return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext
15113 if { (ac_try="$ac_compile"
15114 case "(($ac_try" in
15115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116   *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119   (eval "$ac_compile") 2>conftest.er1
15120   ac_status=$?
15121   grep -v '^ *+' conftest.er1 >conftest.err
15122   rm -f conftest.er1
15123   cat conftest.err >&5
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } && {
15126          test -z "$ac_c_werror_flag" ||
15127          test ! -s conftest.err
15128        } && test -s conftest.$ac_objext; then
15129   bakefile_cv_c_compiler___MWERKS__=yes
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134         bakefile_cv_c_compiler___MWERKS__=no
15135
15136 fi
15137
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139
15140
15141 fi
15142 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15143 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15144     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15145         :; MWCC=yes
15146     else
15147         :;
15148     fi
15149     ac_ext=c
15150 ac_cpp='$CPP $CPPFLAGS'
15151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154
15155
15156
15157
15158
15159     ac_ext=c
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164
15165     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15166 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15167 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170   cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h.  */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h.  */
15176
15177 int
15178 main ()
15179 {
15180
15181              #ifndef __xlC__
15182                 choke me
15183              #endif
15184
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (ac_try="$ac_compile"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_compile") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } && {
15203          test -z "$ac_c_werror_flag" ||
15204          test ! -s conftest.err
15205        } && test -s conftest.$ac_objext; then
15206   bakefile_cv_c_compiler___xlC__=yes
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211         bakefile_cv_c_compiler___xlC__=no
15212
15213 fi
15214
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216
15217
15218 fi
15219 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15220 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15221     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15222         :; XLCC=yes
15223     else
15224         :;
15225     fi
15226     ac_ext=c
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231
15232
15233
15234                 ;;
15235
15236             IRIX*)
15237
15238
15239     ac_ext=c
15240 ac_cpp='$CPP $CPPFLAGS'
15241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15244
15245     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15246 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15247 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256
15257 int
15258 main ()
15259 {
15260
15261              #ifndef _SGI_COMPILER_VERSION
15262                 choke me
15263              #endif
15264
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (ac_try="$ac_compile"
15271 case "(($ac_try" in
15272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273   *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276   (eval "$ac_compile") 2>conftest.er1
15277   ac_status=$?
15278   grep -v '^ *+' conftest.er1 >conftest.err
15279   rm -f conftest.er1
15280   cat conftest.err >&5
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } && {
15283          test -z "$ac_c_werror_flag" ||
15284          test ! -s conftest.err
15285        } && test -s conftest.$ac_objext; then
15286   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15292
15293 fi
15294
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296
15297
15298 fi
15299 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15300 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15301     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15302         :; SGICC=yes
15303     else
15304         :;
15305     fi
15306     ac_ext=c
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15311
15312
15313
15314                 ;;
15315
15316             Linux*)
15317
15318
15319     ac_ext=c
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15324
15325     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15326 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15327 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336
15337 int
15338 main ()
15339 {
15340
15341              #ifndef __SUNPRO_C
15342                 choke me
15343              #endif
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_compile") 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } && {
15363          test -z "$ac_c_werror_flag" ||
15364          test ! -s conftest.err
15365        } && test -s conftest.$ac_objext; then
15366   bakefile_cv_c_compiler___SUNPRO_C=yes
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371         bakefile_cv_c_compiler___SUNPRO_C=no
15372
15373 fi
15374
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376
15377
15378 fi
15379 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15380 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15381     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15382         :; SUNCC=yes
15383     else
15384         :;
15385     fi
15386     ac_ext=c
15387 ac_cpp='$CPP $CPPFLAGS'
15388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15391
15392
15393
15394                 ;;
15395
15396             HP-UX*)
15397
15398
15399     ac_ext=c
15400 ac_cpp='$CPP $CPPFLAGS'
15401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15404
15405     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15406 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15407 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h.  */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h.  */
15416
15417 int
15418 main ()
15419 {
15420
15421              #ifndef __HP_cc
15422                 choke me
15423              #endif
15424
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_compile") 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } && {
15443          test -z "$ac_c_werror_flag" ||
15444          test ! -s conftest.err
15445        } && test -s conftest.$ac_objext; then
15446   bakefile_cv_c_compiler___HP_cc=yes
15447 else
15448   echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451         bakefile_cv_c_compiler___HP_cc=no
15452
15453 fi
15454
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456
15457
15458 fi
15459 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15460 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15461     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15462         :; HPCC=yes
15463     else
15464         :;
15465     fi
15466     ac_ext=c
15467 ac_cpp='$CPP $CPPFLAGS'
15468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471
15472
15473
15474                 ;;
15475
15476             OSF1)
15477
15478
15479     ac_ext=c
15480 ac_cpp='$CPP $CPPFLAGS'
15481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15484
15485     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15486 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15487 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496
15497 int
15498 main ()
15499 {
15500
15501              #ifndef __DECC
15502                 choke me
15503              #endif
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext
15510 if { (ac_try="$ac_compile"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_compile") 2>conftest.er1
15517   ac_status=$?
15518   grep -v '^ *+' conftest.er1 >conftest.err
15519   rm -f conftest.er1
15520   cat conftest.err >&5
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } && {
15523          test -z "$ac_c_werror_flag" ||
15524          test ! -s conftest.err
15525        } && test -s conftest.$ac_objext; then
15526   bakefile_cv_c_compiler___DECC=yes
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531         bakefile_cv_c_compiler___DECC=no
15532
15533 fi
15534
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536
15537
15538 fi
15539 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15540 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15541     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15542         :; COMPAQCC=yes
15543     else
15544         :;
15545     fi
15546     ac_ext=c
15547 ac_cpp='$CPP $CPPFLAGS'
15548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15551
15552
15553
15554                 ;;
15555
15556             SunOS)
15557
15558
15559     ac_ext=c
15560 ac_cpp='$CPP $CPPFLAGS'
15561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15564
15565     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15566 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15567 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576
15577 int
15578 main ()
15579 {
15580
15581              #ifndef __SUNPRO_C
15582                 choke me
15583              #endif
15584
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (ac_try="$ac_compile"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_compile") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } && {
15603          test -z "$ac_c_werror_flag" ||
15604          test ! -s conftest.err
15605        } && test -s conftest.$ac_objext; then
15606   bakefile_cv_c_compiler___SUNPRO_C=yes
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611         bakefile_cv_c_compiler___SUNPRO_C=no
15612
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616
15617
15618 fi
15619 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15620 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15621     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15622         :; SUNCC=yes
15623     else
15624         :;
15625     fi
15626     ac_ext=c
15627 ac_cpp='$CPP $CPPFLAGS'
15628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15631
15632
15633
15634                 ;;
15635         esac
15636     fi
15637
15638
15639
15640 ac_ext=c
15641 ac_cpp='$CPP $CPPFLAGS'
15642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15647 # On Suns, sometimes $CPP names a directory.
15648 if test -n "$CPP" && test -d "$CPP"; then
15649   CPP=
15650 fi
15651 if test -z "$CPP"; then
15652   if test "${ac_cv_prog_CPP+set}" = set; then
15653   echo $ECHO_N "(cached) $ECHO_C" >&6
15654 else
15655       # Double quotes because CPP needs to be expanded
15656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15657     do
15658       ac_preproc_ok=false
15659 for ac_c_preproc_warn_flag in '' yes
15660 do
15661   # Use a header file that comes with gcc, so configuring glibc
15662   # with a fresh cross-compiler works.
15663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15664   # <limits.h> exists even on freestanding compilers.
15665   # On the NeXT, cc -E runs the code through the compiler's parser,
15666   # not just through cpp. "Syntax error" is here to catch this case.
15667   cat >conftest.$ac_ext <<_ACEOF
15668 /* confdefs.h.  */
15669 _ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h.  */
15673 #ifdef __STDC__
15674 # include <limits.h>
15675 #else
15676 # include <assert.h>
15677 #endif
15678                      Syntax error
15679 _ACEOF
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } >/dev/null && {
15693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15694          test ! -s conftest.err
15695        }; then
15696   :
15697 else
15698   echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701   # Broken: fails on valid input.
15702 continue
15703 fi
15704
15705 rm -f conftest.err conftest.$ac_ext
15706
15707   # OK, works on sane cases.  Now check whether nonexistent headers
15708   # can be detected and how.
15709   cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 #include <ac_nonexistent.h>
15716 _ACEOF
15717 if { (ac_try="$ac_cpp conftest.$ac_ext"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } >/dev/null && {
15730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15731          test ! -s conftest.err
15732        }; then
15733   # Broken: success on invalid input.
15734 continue
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739   # Passes both tests.
15740 ac_preproc_ok=:
15741 break
15742 fi
15743
15744 rm -f conftest.err conftest.$ac_ext
15745
15746 done
15747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15748 rm -f conftest.err conftest.$ac_ext
15749 if $ac_preproc_ok; then
15750   break
15751 fi
15752
15753     done
15754     ac_cv_prog_CPP=$CPP
15755
15756 fi
15757   CPP=$ac_cv_prog_CPP
15758 else
15759   ac_cv_prog_CPP=$CPP
15760 fi
15761 { echo "$as_me:$LINENO: result: $CPP" >&5
15762 echo "${ECHO_T}$CPP" >&6; }
15763 ac_preproc_ok=false
15764 for ac_c_preproc_warn_flag in '' yes
15765 do
15766   # Use a header file that comes with gcc, so configuring glibc
15767   # with a fresh cross-compiler works.
15768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15769   # <limits.h> exists even on freestanding compilers.
15770   # On the NeXT, cc -E runs the code through the compiler's parser,
15771   # not just through cpp. "Syntax error" is here to catch this case.
15772   cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 #ifdef __STDC__
15779 # include <limits.h>
15780 #else
15781 # include <assert.h>
15782 #endif
15783                      Syntax error
15784 _ACEOF
15785 if { (ac_try="$ac_cpp conftest.$ac_ext"
15786 case "(($ac_try" in
15787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788   *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15792   ac_status=$?
15793   grep -v '^ *+' conftest.er1 >conftest.err
15794   rm -f conftest.er1
15795   cat conftest.err >&5
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } >/dev/null && {
15798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15799          test ! -s conftest.err
15800        }; then
15801   :
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806   # Broken: fails on valid input.
15807 continue
15808 fi
15809
15810 rm -f conftest.err conftest.$ac_ext
15811
15812   # OK, works on sane cases.  Now check whether nonexistent headers
15813   # can be detected and how.
15814   cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820 #include <ac_nonexistent.h>
15821 _ACEOF
15822 if { (ac_try="$ac_cpp conftest.$ac_ext"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } >/dev/null && {
15835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15836          test ! -s conftest.err
15837        }; then
15838   # Broken: success on invalid input.
15839 continue
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844   # Passes both tests.
15845 ac_preproc_ok=:
15846 break
15847 fi
15848
15849 rm -f conftest.err conftest.$ac_ext
15850
15851 done
15852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15853 rm -f conftest.err conftest.$ac_ext
15854 if $ac_preproc_ok; then
15855   :
15856 else
15857   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15858 See \`config.log' for more details." >&5
15859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15860 See \`config.log' for more details." >&2;}
15861    { (exit 1); exit 1; }; }
15862 fi
15863
15864 ac_ext=c
15865 ac_cpp='$CPP $CPPFLAGS'
15866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15869
15870
15871 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
15872 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
15873 if test "${ac_cv_path_GREP+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   # Extract the first word of "grep ggrep" to use in msg output
15877 if test -z "$GREP"; then
15878 set dummy grep ggrep; ac_prog_name=$2
15879 if test "${ac_cv_path_GREP+set}" = set; then
15880   echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882   ac_path_GREP_found=false
15883 # Loop through the user's path and test for each of PROGNAME-LIST
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15886 do
15887   IFS=$as_save_IFS
15888   test -z "$as_dir" && as_dir=.
15889   for ac_prog in grep ggrep; do
15890   for ac_exec_ext in '' $ac_executable_extensions; do
15891     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15892     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
15893     # Check for GNU ac_path_GREP and select it if it is found.
15894   # Check for GNU $ac_path_GREP
15895 case `"$ac_path_GREP" --version 2>&1` in
15896 *GNU*)
15897   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
15898 *)
15899   ac_count=0
15900   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15901   while :
15902   do
15903     cat "conftest.in" "conftest.in" >"conftest.tmp"
15904     mv "conftest.tmp" "conftest.in"
15905     cp "conftest.in" "conftest.nl"
15906     echo 'GREP' >> "conftest.nl"
15907     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15908     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15909     ac_count=`expr $ac_count + 1`
15910     if test $ac_count -gt ${ac_path_GREP_max-0}; then
15911       # Best one so far, save it but keep looking for a better one
15912       ac_cv_path_GREP="$ac_path_GREP"
15913       ac_path_GREP_max=$ac_count
15914     fi
15915     # 10*(2^10) chars as input seems more than enough
15916     test $ac_count -gt 10 && break
15917   done
15918   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15919 esac
15920
15921
15922     $ac_path_GREP_found && break 3
15923   done
15924 done
15925
15926 done
15927 IFS=$as_save_IFS
15928
15929
15930 fi
15931
15932 GREP="$ac_cv_path_GREP"
15933 if test -z "$GREP"; then
15934   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15935 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15936    { (exit 1); exit 1; }; }
15937 fi
15938
15939 else
15940   ac_cv_path_GREP=$GREP
15941 fi
15942
15943
15944 fi
15945 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
15946 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
15947  GREP="$ac_cv_path_GREP"
15948
15949
15950 { echo "$as_me:$LINENO: checking for egrep" >&5
15951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
15952 if test "${ac_cv_path_EGREP+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15956    then ac_cv_path_EGREP="$GREP -E"
15957    else
15958      # Extract the first word of "egrep" to use in msg output
15959 if test -z "$EGREP"; then
15960 set dummy egrep; ac_prog_name=$2
15961 if test "${ac_cv_path_EGREP+set}" = set; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964   ac_path_EGREP_found=false
15965 # Loop through the user's path and test for each of PROGNAME-LIST
15966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15968 do
15969   IFS=$as_save_IFS
15970   test -z "$as_dir" && as_dir=.
15971   for ac_prog in egrep; do
15972   for ac_exec_ext in '' $ac_executable_extensions; do
15973     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
15974     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
15975     # Check for GNU ac_path_EGREP and select it if it is found.
15976   # Check for GNU $ac_path_EGREP
15977 case `"$ac_path_EGREP" --version 2>&1` in
15978 *GNU*)
15979   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15980 *)
15981   ac_count=0
15982   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15983   while :
15984   do
15985     cat "conftest.in" "conftest.in" >"conftest.tmp"
15986     mv "conftest.tmp" "conftest.in"
15987     cp "conftest.in" "conftest.nl"
15988     echo 'EGREP' >> "conftest.nl"
15989     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15991     ac_count=`expr $ac_count + 1`
15992     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15993       # Best one so far, save it but keep looking for a better one
15994       ac_cv_path_EGREP="$ac_path_EGREP"
15995       ac_path_EGREP_max=$ac_count
15996     fi
15997     # 10*(2^10) chars as input seems more than enough
15998     test $ac_count -gt 10 && break
15999   done
16000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16001 esac
16002
16003
16004     $ac_path_EGREP_found && break 3
16005   done
16006 done
16007
16008 done
16009 IFS=$as_save_IFS
16010
16011
16012 fi
16013
16014 EGREP="$ac_cv_path_EGREP"
16015 if test -z "$EGREP"; then
16016   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16018    { (exit 1); exit 1; }; }
16019 fi
16020
16021 else
16022   ac_cv_path_EGREP=$EGREP
16023 fi
16024
16025
16026    fi
16027 fi
16028 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16029 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16030  EGREP="$ac_cv_path_EGREP"
16031
16032
16033 if test $ac_cv_c_compiler_gnu = yes; then
16034     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16035 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16036 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039     ac_pattern="Autoconf.*'x'"
16040   cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046 #include <sgtty.h>
16047 Autoconf TIOCGETP
16048 _ACEOF
16049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16050   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16051   ac_cv_prog_gcc_traditional=yes
16052 else
16053   ac_cv_prog_gcc_traditional=no
16054 fi
16055 rm -f conftest*
16056
16057
16058   if test $ac_cv_prog_gcc_traditional = no; then
16059     cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 #include <termio.h>
16066 Autoconf TCGETA
16067 _ACEOF
16068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16069   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16070   ac_cv_prog_gcc_traditional=yes
16071 fi
16072 rm -f conftest*
16073
16074   fi
16075 fi
16076 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16077 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16078   if test $ac_cv_prog_gcc_traditional = yes; then
16079     CC="$CC -traditional"
16080   fi
16081 fi
16082
16083
16084 CXXFLAGS=${CXXFLAGS:=}
16085
16086
16087
16088     ac_ext=cpp
16089 ac_cpp='$CXXCPP $CPPFLAGS'
16090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16093 if test -z "$CXX"; then
16094   if test -n "$CCC"; then
16095     CXX=$CCC
16096   else
16097     if test -n "$ac_tool_prefix"; then
16098   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16099   do
16100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16104 if test "${ac_cv_prog_CXX+set}" = set; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   if test -n "$CXX"; then
16108   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16109 else
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16112 do
16113   IFS=$as_save_IFS
16114   test -z "$as_dir" && as_dir=.
16115   for ac_exec_ext in '' $ac_executable_extensions; do
16116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16117     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16119     break 2
16120   fi
16121 done
16122 done
16123 IFS=$as_save_IFS
16124
16125 fi
16126 fi
16127 CXX=$ac_cv_prog_CXX
16128 if test -n "$CXX"; then
16129   { echo "$as_me:$LINENO: result: $CXX" >&5
16130 echo "${ECHO_T}$CXX" >&6; }
16131 else
16132   { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16134 fi
16135
16136
16137     test -n "$CXX" && break
16138   done
16139 fi
16140 if test -z "$CXX"; then
16141   ac_ct_CXX=$CXX
16142   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16143 do
16144   # Extract the first word of "$ac_prog", so it can be a program name with args.
16145 set dummy $ac_prog; ac_word=$2
16146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16148 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   if test -n "$ac_ct_CXX"; then
16152   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16153 else
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155 for as_dir in $PATH
16156 do
16157   IFS=$as_save_IFS
16158   test -z "$as_dir" && as_dir=.
16159   for ac_exec_ext in '' $ac_executable_extensions; do
16160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16161     ac_cv_prog_ac_ct_CXX="$ac_prog"
16162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16163     break 2
16164   fi
16165 done
16166 done
16167 IFS=$as_save_IFS
16168
16169 fi
16170 fi
16171 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16172 if test -n "$ac_ct_CXX"; then
16173   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16174 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16175 else
16176   { echo "$as_me:$LINENO: result: no" >&5
16177 echo "${ECHO_T}no" >&6; }
16178 fi
16179
16180
16181   test -n "$ac_ct_CXX" && break
16182 done
16183
16184   if test "x$ac_ct_CXX" = x; then
16185     CXX="g++"
16186   else
16187     case $cross_compiling:$ac_tool_warned in
16188 yes:)
16189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16190 whose name does not start with the host triplet.  If you think this
16191 configuration is useful to you, please write to autoconf@gnu.org." >&5
16192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16193 whose name does not start with the host triplet.  If you think this
16194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16195 ac_tool_warned=yes ;;
16196 esac
16197     CXX=$ac_ct_CXX
16198   fi
16199 fi
16200
16201   fi
16202 fi
16203 # Provide some information about the compiler.
16204 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16205 ac_compiler=`set X $ac_compile; echo $2`
16206 { (ac_try="$ac_compiler --version >&5"
16207 case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_compiler --version >&5") 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }
16216 { (ac_try="$ac_compiler -v >&5"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_compiler -v >&5") 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }
16226 { (ac_try="$ac_compiler -V >&5"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_compiler -V >&5") 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }
16236
16237 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16238 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16239 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242   cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248
16249 int
16250 main ()
16251 {
16252 #ifndef __GNUC__
16253        choke me
16254 #endif
16255
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_compile") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } && {
16274          test -z "$ac_cxx_werror_flag" ||
16275          test ! -s conftest.err
16276        } && test -s conftest.$ac_objext; then
16277   ac_compiler_gnu=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282         ac_compiler_gnu=no
16283 fi
16284
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16287
16288 fi
16289 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16290 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16291 GXX=`test $ac_compiler_gnu = yes && echo yes`
16292 ac_test_CXXFLAGS=${CXXFLAGS+set}
16293 ac_save_CXXFLAGS=$CXXFLAGS
16294 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16295 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16296 if test "${ac_cv_prog_cxx_g+set}" = set; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16300    ac_cxx_werror_flag=yes
16301    ac_cv_prog_cxx_g=no
16302    CXXFLAGS="-g"
16303    cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309
16310 int
16311 main ()
16312 {
16313
16314   ;
16315   return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_compile") 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } && {
16332          test -z "$ac_cxx_werror_flag" ||
16333          test ! -s conftest.err
16334        } && test -s conftest.$ac_objext; then
16335   ac_cv_prog_cxx_g=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340         CXXFLAGS=""
16341       cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347
16348 int
16349 main ()
16350 {
16351
16352   ;
16353   return 0;
16354 }
16355 _ACEOF
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_compile") 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } && {
16370          test -z "$ac_cxx_werror_flag" ||
16371          test ! -s conftest.err
16372        } && test -s conftest.$ac_objext; then
16373   :
16374 else
16375   echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16379          CXXFLAGS="-g"
16380          cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386
16387 int
16388 main ()
16389 {
16390
16391   ;
16392   return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399   *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402   (eval "$ac_compile") 2>conftest.er1
16403   ac_status=$?
16404   grep -v '^ *+' conftest.er1 >conftest.err
16405   rm -f conftest.er1
16406   cat conftest.err >&5
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); } && {
16409          test -z "$ac_cxx_werror_flag" ||
16410          test ! -s conftest.err
16411        } && test -s conftest.$ac_objext; then
16412   ac_cv_prog_cxx_g=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 fi
16422
16423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424 fi
16425
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16428 fi
16429 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16430 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16431 if test "$ac_test_CXXFLAGS" = set; then
16432   CXXFLAGS=$ac_save_CXXFLAGS
16433 elif test $ac_cv_prog_cxx_g = yes; then
16434   if test "$GXX" = yes; then
16435     CXXFLAGS="-g -O2"
16436   else
16437     CXXFLAGS="-g"
16438   fi
16439 else
16440   if test "$GXX" = yes; then
16441     CXXFLAGS="-O2"
16442   else
16443     CXXFLAGS=
16444   fi
16445 fi
16446 ac_ext=c
16447 ac_cpp='$CPP $CPPFLAGS'
16448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16451
16452
16453
16454
16455     ac_ext=cpp
16456 ac_cpp='$CXXCPP $CPPFLAGS'
16457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16460
16461     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16462 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16463 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h.  */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h.  */
16472
16473 int
16474 main ()
16475 {
16476
16477              #ifndef __INTEL_COMPILER
16478                 choke me
16479              #endif
16480
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_cxx_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest.$ac_objext; then
16502   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16508
16509 fi
16510
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512
16513
16514 fi
16515 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16516 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16517     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16518         :; INTELCXX=yes
16519     else
16520         :;
16521     fi
16522     ac_ext=c
16523 ac_cpp='$CPP $CPPFLAGS'
16524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16527
16528
16529
16530
16531         if test "x$GCXX" != "xyes"; then
16532         if test "xCXX" = "xC"; then
16533             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16534 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16535 if test "${bakefile_cv_c_exto+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544
16545 int
16546 main ()
16547 {
16548
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext conftest.$ac_ext.o
16554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16555   (eval $ac_compile) 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); }; then
16559   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16560     case $ac_file in
16561         conftest.$ac_ext.o)
16562             bakefile_cv_c_exto="-ext o"
16563             ;;
16564         *)
16565             ;;
16566     esac
16567 done
16568 else
16569   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16570 See \`config.log' for more details." >&5
16571 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16572 See \`config.log' for more details." >&2;}
16573    { (exit 1); exit 1; }; }
16574
16575 fi
16576
16577 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16578
16579 fi
16580 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16581 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16582 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16583     if test "c" = "c"; then
16584         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16585     fi
16586     if test "c" = "cxx"; then
16587         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16588     fi
16589 fi
16590
16591             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16592                 unset ac_cv_prog_cc_g
16593                 ac_test_CFLAGS=${CFLAGS+set}
16594 ac_save_CFLAGS=$CFLAGS
16595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16597 if test "${ac_cv_prog_cc_g+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   ac_save_c_werror_flag=$ac_c_werror_flag
16601    ac_c_werror_flag=yes
16602    ac_cv_prog_cc_g=no
16603    CFLAGS="-g"
16604    cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610
16611 int
16612 main ()
16613 {
16614
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (ac_try="$ac_compile"
16621 case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_compile") 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } && {
16633          test -z "$ac_c_werror_flag" ||
16634          test ! -s conftest.err
16635        } && test -s conftest.$ac_objext; then
16636   ac_cv_prog_cc_g=yes
16637 else
16638   echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641         CFLAGS=""
16642       cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648
16649 int
16650 main ()
16651 {
16652
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 rm -f conftest.$ac_objext
16658 if { (ac_try="$ac_compile"
16659 case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664   (eval "$ac_compile") 2>conftest.er1
16665   ac_status=$?
16666   grep -v '^ *+' conftest.er1 >conftest.err
16667   rm -f conftest.er1
16668   cat conftest.err >&5
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } && {
16671          test -z "$ac_c_werror_flag" ||
16672          test ! -s conftest.err
16673        } && test -s conftest.$ac_objext; then
16674   :
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679         ac_c_werror_flag=$ac_save_c_werror_flag
16680          CFLAGS="-g"
16681          cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687
16688 int
16689 main ()
16690 {
16691
16692   ;
16693   return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (ac_try="$ac_compile"
16698 case "(($ac_try" in
16699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700   *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703   (eval "$ac_compile") 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } && {
16710          test -z "$ac_c_werror_flag" ||
16711          test ! -s conftest.err
16712        } && test -s conftest.$ac_objext; then
16713   ac_cv_prog_cc_g=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718
16719 fi
16720
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 fi
16726
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728    ac_c_werror_flag=$ac_save_c_werror_flag
16729 fi
16730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16732 if test "$ac_test_CFLAGS" = set; then
16733   CFLAGS=$ac_save_CFLAGS
16734 elif test $ac_cv_prog_cc_g = yes; then
16735   if test "$GCC" = yes; then
16736     CFLAGS="-g -O2"
16737   else
16738     CFLAGS="-g"
16739   fi
16740 else
16741   if test "$GCC" = yes; then
16742     CFLAGS="-O2"
16743   else
16744     CFLAGS=
16745   fi
16746 fi
16747             fi
16748         fi
16749
16750                         case `uname -s` in
16751             AIX*)
16752
16753
16754     ac_ext=cpp
16755 ac_cpp='$CXXCPP $CPPFLAGS'
16756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16759
16760     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16761 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16762 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771
16772 int
16773 main ()
16774 {
16775
16776              #ifndef __xlC__
16777                 choke me
16778              #endif
16779
16780   ;
16781   return 0;
16782 }
16783 _ACEOF
16784 rm -f conftest.$ac_objext
16785 if { (ac_try="$ac_compile"
16786 case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_compile") 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } && {
16798          test -z "$ac_cxx_werror_flag" ||
16799          test ! -s conftest.err
16800        } && test -s conftest.$ac_objext; then
16801   bakefile_cv_cxx_compiler___xlC__=yes
16802 else
16803   echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806         bakefile_cv_cxx_compiler___xlC__=no
16807
16808 fi
16809
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811
16812
16813 fi
16814 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
16815 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
16816     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16817         :; XLCXX=yes
16818     else
16819         :;
16820     fi
16821     ac_ext=c
16822 ac_cpp='$CPP $CPPFLAGS'
16823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16826
16827
16828
16829                 ;;
16830
16831             Darwin)
16832
16833
16834     ac_ext=cpp
16835 ac_cpp='$CXXCPP $CPPFLAGS'
16836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16839
16840     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16841 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16842 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   cat >conftest.$ac_ext <<_ACEOF
16846 /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851
16852 int
16853 main ()
16854 {
16855
16856              #ifndef __MWERKS__
16857                 choke me
16858              #endif
16859
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext
16865 if { (ac_try="$ac_compile"
16866 case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_compile") 2>conftest.er1
16872   ac_status=$?
16873   grep -v '^ *+' conftest.er1 >conftest.err
16874   rm -f conftest.er1
16875   cat conftest.err >&5
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } && {
16878          test -z "$ac_cxx_werror_flag" ||
16879          test ! -s conftest.err
16880        } && test -s conftest.$ac_objext; then
16881   bakefile_cv_cxx_compiler___MWERKS__=yes
16882 else
16883   echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16885
16886         bakefile_cv_cxx_compiler___MWERKS__=no
16887
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891
16892
16893 fi
16894 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
16895 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
16896     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
16897         :; MWCXX=yes
16898     else
16899         :;
16900     fi
16901     ac_ext=c
16902 ac_cpp='$CPP $CPPFLAGS'
16903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16906
16907
16908
16909
16910
16911     ac_ext=cpp
16912 ac_cpp='$CXXCPP $CPPFLAGS'
16913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16916
16917     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16918 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16919 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928
16929 int
16930 main ()
16931 {
16932
16933              #ifndef __xlC__
16934                 choke me
16935              #endif
16936
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_compile") 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } && {
16955          test -z "$ac_cxx_werror_flag" ||
16956          test ! -s conftest.err
16957        } && test -s conftest.$ac_objext; then
16958   bakefile_cv_cxx_compiler___xlC__=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963         bakefile_cv_cxx_compiler___xlC__=no
16964
16965 fi
16966
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968
16969
16970 fi
16971 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
16972 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
16973     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16974         :; XLCXX=yes
16975     else
16976         :;
16977     fi
16978     ac_ext=c
16979 ac_cpp='$CPP $CPPFLAGS'
16980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16983
16984
16985
16986                 ;;
16987
16988             IRIX*)
16989
16990
16991     ac_ext=cpp
16992 ac_cpp='$CXXCPP $CPPFLAGS'
16993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16996
16997     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
16998 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
16999 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h.  */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h.  */
17008
17009 int
17010 main ()
17011 {
17012
17013              #ifndef _SGI_COMPILER_VERSION
17014                 choke me
17015              #endif
17016
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (ac_try="$ac_compile"
17023 case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_compile") 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } && {
17035          test -z "$ac_cxx_werror_flag" ||
17036          test ! -s conftest.err
17037        } && test -s conftest.$ac_objext; then
17038   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17044
17045 fi
17046
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048
17049
17050 fi
17051 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17052 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17053     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17054         :; SGICXX=yes
17055     else
17056         :;
17057     fi
17058     ac_ext=c
17059 ac_cpp='$CPP $CPPFLAGS'
17060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17063
17064
17065
17066                 ;;
17067
17068             Linux*)
17069
17070
17071     ac_ext=cpp
17072 ac_cpp='$CXXCPP $CPPFLAGS'
17073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17076
17077     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17078 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17079 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17080   echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082   cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h.  */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h.  */
17088
17089 int
17090 main ()
17091 {
17092
17093              #ifndef __SUNPRO_CC
17094                 choke me
17095              #endif
17096
17097   ;
17098   return 0;
17099 }
17100 _ACEOF
17101 rm -f conftest.$ac_objext
17102 if { (ac_try="$ac_compile"
17103 case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_compile") 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } && {
17115          test -z "$ac_cxx_werror_flag" ||
17116          test ! -s conftest.err
17117        } && test -s conftest.$ac_objext; then
17118   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17119 else
17120   echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17124
17125 fi
17126
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128
17129
17130 fi
17131 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17132 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17133     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17134         :; SUNCXX=yes
17135     else
17136         :;
17137     fi
17138     ac_ext=c
17139 ac_cpp='$CPP $CPPFLAGS'
17140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17143
17144
17145
17146                 ;;
17147
17148             HP-UX*)
17149
17150
17151     ac_ext=cpp
17152 ac_cpp='$CXXCPP $CPPFLAGS'
17153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17156
17157     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17158 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17159 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162   cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168
17169 int
17170 main ()
17171 {
17172
17173              #ifndef __HP_aCC
17174                 choke me
17175              #endif
17176
17177   ;
17178   return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_compile") 2>conftest.er1
17189   ac_status=$?
17190   grep -v '^ *+' conftest.er1 >conftest.err
17191   rm -f conftest.er1
17192   cat conftest.err >&5
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } && {
17195          test -z "$ac_cxx_werror_flag" ||
17196          test ! -s conftest.err
17197        } && test -s conftest.$ac_objext; then
17198   bakefile_cv_cxx_compiler___HP_aCC=yes
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203         bakefile_cv_cxx_compiler___HP_aCC=no
17204
17205 fi
17206
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208
17209
17210 fi
17211 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17212 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17213     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17214         :; HPCXX=yes
17215     else
17216         :;
17217     fi
17218     ac_ext=c
17219 ac_cpp='$CPP $CPPFLAGS'
17220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17223
17224
17225
17226                 ;;
17227
17228             OSF1)
17229
17230
17231     ac_ext=cpp
17232 ac_cpp='$CXXCPP $CPPFLAGS'
17233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17236
17237     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17238 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17239 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242   cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 int
17250 main ()
17251 {
17252
17253              #ifndef __DECCXX
17254                 choke me
17255              #endif
17256
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_cxx_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   bakefile_cv_cxx_compiler___DECCXX=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283         bakefile_cv_cxx_compiler___DECCXX=no
17284
17285 fi
17286
17287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288
17289
17290 fi
17291 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17292 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17293     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17294         :; COMPAQCXX=yes
17295     else
17296         :;
17297     fi
17298     ac_ext=c
17299 ac_cpp='$CPP $CPPFLAGS'
17300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17303
17304
17305
17306                 ;;
17307
17308             SunOS)
17309
17310
17311     ac_ext=cpp
17312 ac_cpp='$CXXCPP $CPPFLAGS'
17313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17316
17317     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17318 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17319 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322   cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h.  */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h.  */
17328
17329 int
17330 main ()
17331 {
17332
17333              #ifndef __SUNPRO_CC
17334                 choke me
17335              #endif
17336
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 rm -f conftest.$ac_objext
17342 if { (ac_try="$ac_compile"
17343 case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_compile") 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } && {
17355          test -z "$ac_cxx_werror_flag" ||
17356          test ! -s conftest.err
17357        } && test -s conftest.$ac_objext; then
17358   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17359 else
17360   echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17362
17363         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17364
17365 fi
17366
17367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17368
17369
17370 fi
17371 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17372 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17373     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17374         :; SUNCXX=yes
17375     else
17376         :;
17377     fi
17378     ac_ext=c
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17383
17384
17385
17386                 ;;
17387         esac
17388     fi
17389
17390
17391
17392 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17393     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17394 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17395    { (exit 1); exit 1; }; }
17396 fi
17397
17398 if test "x$SUNCXX" != xyes; then
17399     if test -n "$ac_tool_prefix"; then
17400   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17401 set dummy ${ac_tool_prefix}ar; ac_word=$2
17402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17404 if test "${ac_cv_prog_AR+set}" = set; then
17405   echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407   if test -n "$AR"; then
17408   ac_cv_prog_AR="$AR" # Let the user override the test.
17409 else
17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411 for as_dir in $PATH
17412 do
17413   IFS=$as_save_IFS
17414   test -z "$as_dir" && as_dir=.
17415   for ac_exec_ext in '' $ac_executable_extensions; do
17416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17417     ac_cv_prog_AR="${ac_tool_prefix}ar"
17418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17419     break 2
17420   fi
17421 done
17422 done
17423 IFS=$as_save_IFS
17424
17425 fi
17426 fi
17427 AR=$ac_cv_prog_AR
17428 if test -n "$AR"; then
17429   { echo "$as_me:$LINENO: result: $AR" >&5
17430 echo "${ECHO_T}$AR" >&6; }
17431 else
17432   { echo "$as_me:$LINENO: result: no" >&5
17433 echo "${ECHO_T}no" >&6; }
17434 fi
17435
17436
17437 fi
17438 if test -z "$ac_cv_prog_AR"; then
17439   ac_ct_AR=$AR
17440   # Extract the first word of "ar", so it can be a program name with args.
17441 set dummy ar; ac_word=$2
17442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17444 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17445   echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447   if test -n "$ac_ct_AR"; then
17448   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17449 else
17450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451 for as_dir in $PATH
17452 do
17453   IFS=$as_save_IFS
17454   test -z "$as_dir" && as_dir=.
17455   for ac_exec_ext in '' $ac_executable_extensions; do
17456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17457     ac_cv_prog_ac_ct_AR="ar"
17458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17459     break 2
17460   fi
17461 done
17462 done
17463 IFS=$as_save_IFS
17464
17465 fi
17466 fi
17467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17468 if test -n "$ac_ct_AR"; then
17469   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17470 echo "${ECHO_T}$ac_ct_AR" >&6; }
17471 else
17472   { echo "$as_me:$LINENO: result: no" >&5
17473 echo "${ECHO_T}no" >&6; }
17474 fi
17475
17476   if test "x$ac_ct_AR" = x; then
17477     AR=""
17478   else
17479     case $cross_compiling:$ac_tool_warned in
17480 yes:)
17481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17482 whose name does not start with the host triplet.  If you think this
17483 configuration is useful to you, please write to autoconf@gnu.org." >&5
17484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17485 whose name does not start with the host triplet.  If you think this
17486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17487 ac_tool_warned=yes ;;
17488 esac
17489     AR=$ac_ct_AR
17490   fi
17491 else
17492   AR="$ac_cv_prog_AR"
17493 fi
17494
17495     if test "x$AR" = "x" ; then
17496         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17497 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17498    { (exit 1); exit 1; }; }
17499     fi
17500 fi
17501
17502 retest_macosx_linking=no
17503
17504 #if test "$wxUSE_MAC" = 1; then
17505     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17506                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17507             # Implicitly turn on the new --with-macosx-sdk using the default
17508             # SDK which provides the behavior this option has always had.
17509             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17510                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17511 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17512                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17513 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17514                 wxUSE_MACOSX_SDK=yes
17515             fi
17516         else
17517             # Complain to user if he specified an argument to --enable-universal_binary
17518             # and also 1) specified --with-macosx-sdk using the default (yes) or
17519             # 2) specified --with-macosx-sdk using a path or 3) specified
17520             # --without-macosx-sdk (no).
17521             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17522                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17523 See \`config.log' for more details." >&5
17524 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17525 See \`config.log' for more details." >&2;}
17526    { (exit 1); exit 1; }; }
17527             else
17528                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17529                 # special-case the empty string because the below test simply
17530                 # converts "no" to the empty string anyway.
17531                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17532                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17533 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17534             fi
17535         fi
17536                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17537         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17538         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17539         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17540                                                                                                                 retest_macosx_linking=yes
17541
17542                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17543 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17544         bk_use_pch=no
17545     fi
17546 #fi
17547
17548 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17549     wxUSE_MACOSX_SDK=
17550 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17551     # TODO: Search for most recent SDK and use it.
17552     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17553 fi
17554
17555
17556 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17557     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17558 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17559     if ! test -d "$wxUSE_MACOSX_SDK"; then
17560         { { echo "$as_me:$LINENO: error: not found
17561 See \`config.log' for more details." >&5
17562 echo "$as_me: error: not found
17563 See \`config.log' for more details." >&2;}
17564    { (exit 1); exit 1; }; }
17565     else
17566         { echo "$as_me:$LINENO: result: exists" >&5
17567 echo "${ECHO_T}exists" >&6; }
17568     fi
17569     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17570     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17571     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17572     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17573     retest_macosx_linking=yes
17574             fi
17575
17576 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17577     wxUSE_MACOSX_VERSION_MIN=
17578 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17579     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17580         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17581 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17582
17583         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/'`
17584
17585         # If that failed, try again with the new key
17586         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17587
17588             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/'`
17589
17590         fi
17591
17592         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17593             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17594             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17595 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17596         else
17597             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17598 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17599             wxUSE_MACOSX_VERSION_MIN=
17600         fi
17601     else
17602         wxUSE_MACOSX_VERSION_MIN=
17603     fi
17604 fi
17605
17606 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17607     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17608     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17609     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17610     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17611     retest_macosx_linking=yes
17612 fi
17613
17614 if test "x$retest_macosx_linking" = "xyes"; then
17615     ac_ext=c
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620
17621     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17622 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17623     cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629
17630 int
17631 main ()
17632 {
17633
17634   ;
17635   return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (ac_try="$ac_link"
17640 case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645   (eval "$ac_link") 2>conftest.er1
17646   ac_status=$?
17647   grep -v '^ *+' conftest.er1 >conftest.err
17648   rm -f conftest.er1
17649   cat conftest.err >&5
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } && {
17652          test -z "$ac_c_werror_flag" ||
17653          test ! -s conftest.err
17654        } && test -s conftest$ac_exeext &&
17655        $as_test_x conftest$ac_exeext; then
17656   { echo "$as_me:$LINENO: result: yes" >&5
17657 echo "${ECHO_T}yes" >&6; }
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17663 See \`config.log' for more details." >&5
17664 echo "$as_me: error: no.  Try a different SDK
17665 See \`config.log' for more details." >&2;}
17666    { (exit 1); exit 1; }; }; exit 1
17667 fi
17668
17669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17670       conftest$ac_exeext conftest.$ac_ext
17671     ac_ext=c
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676
17677
17678     ac_ext=cpp
17679 ac_cpp='$CXXCPP $CPPFLAGS'
17680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17683
17684     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17685 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17686     cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692
17693 int
17694 main ()
17695 {
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_link") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } && {
17715          test -z "$ac_cxx_werror_flag" ||
17716          test ! -s conftest.err
17717        } && test -s conftest$ac_exeext &&
17718        $as_test_x conftest$ac_exeext; then
17719   { echo "$as_me:$LINENO: result: yes" >&5
17720 echo "${ECHO_T}yes" >&6; }
17721 else
17722   echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17726 See \`config.log' for more details." >&5
17727 echo "$as_me: error: no.  Try a different SDK
17728 See \`config.log' for more details." >&2;}
17729    { (exit 1); exit 1; }; }; exit 1
17730 fi
17731
17732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17733       conftest$ac_exeext conftest.$ac_ext
17734     ac_ext=c
17735 ac_cpp='$CPP $CPPFLAGS'
17736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17739
17740 fi
17741
17742
17743 case "${host}" in
17744
17745                 *-*-darwin* )
17746         INSTALL_PROGRAM="cp -fp"
17747         INSTALL_DATA="cp -fp"
17748         ;;
17749     *)
17750         ;;
17751 esac
17752
17753
17754 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17755     CXXFLAGS="-qunique $CXXFLAGS"
17756 fi
17757
17758 case "${host}" in
17759   powerpc-*-darwin* )
17760     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17761 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17762     cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h.  */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h.  */
17768
17769 int
17770 main ()
17771 {
17772 #ifndef __POWERPC__
17773         choke me for lack of PowerPC
17774 #endif
17775
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787   (eval "$ac_compile") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } && {
17794          test -z "$ac_c_werror_flag" ||
17795          test ! -s conftest.err
17796        } && test -s conftest.$ac_objext; then
17797   { echo "$as_me:$LINENO: result: yes" >&5
17798 echo "${ECHO_T}yes" >&6; }
17799 else
17800   echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803         { echo "$as_me:$LINENO: result: no" >&5
17804 echo "${ECHO_T}no" >&6; }
17805         cat >>confdefs.h <<\_ACEOF
17806 #define __POWERPC__ 1
17807 _ACEOF
17808
17809
17810 fi
17811
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813   ;;
17814 esac
17815
17816 case "${host}" in
17817   *-*-darwin* )
17818     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17819 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17820     cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 #include <CoreFoundation/CFBase.h>
17827
17828 int
17829 main ()
17830 {
17831
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_compile") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } && {
17850          test -z "$ac_c_werror_flag" ||
17851          test ! -s conftest.err
17852        } && test -s conftest.$ac_objext; then
17853   { echo "$as_me:$LINENO: result: yes" >&5
17854 echo "${ECHO_T}yes" >&6; }
17855 else
17856   echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859         { echo "$as_me:$LINENO: result: no" >&5
17860 echo "${ECHO_T}no" >&6; }
17861         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
17862 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
17863         cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h.  */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h.  */
17869 #define __CF_USE_FRAMEWORK_INCLUDES__
17870 #include <CoreFoundation/CFBase.h>
17871
17872 int
17873 main ()
17874 {
17875
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext
17881 if { (ac_try="$ac_compile"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_compile") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest.$ac_objext; then
17897   { echo "$as_me:$LINENO: result: yes" >&5
17898 echo "${ECHO_T}yes" >&6; }
17899                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
17905 See \`config.log' for more details." >&5
17906 echo "$as_me: error: no.  CoreFoundation not available.
17907 See \`config.log' for more details." >&2;}
17908    { (exit 1); exit 1; }; }
17909
17910 fi
17911
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913
17914
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918   ;;
17919 esac
17920
17921 wants_win32=0
17922 doesnt_want_win32=0
17923 case "${host}" in
17924   *-*-cygwin*)
17925       if test "$wxUSE_MSW" = 1 ; then
17926         wants_win32=1
17927       else
17928                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
17929 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
17930 if test "${wx_cv_nocygwin+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933
17934                 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 int
17942 main ()
17943 {
17944
17945                         #ifdef __MINGW32__
17946                             choke me
17947                         #endif
17948
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_compile") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } && {
17967          test -z "$ac_c_werror_flag" ||
17968          test ! -s conftest.err
17969        } && test -s conftest.$ac_objext; then
17970   wx_cv_nocygwin=no
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975         wx_cv_nocygwin=yes
17976
17977 fi
17978
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980
17981
17982 fi
17983 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
17984 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
17985
17986         if test "$wx_cv_nocygwin" = "yes"; then
17987             wants_win32=1
17988         else
17989             doesnt_want_win32=1
17990         fi
17991       fi
17992       if test "$wants_win32" = 1 ; then
17993         BAKEFILE_FORCE_PLATFORM=win32
17994       fi
17995   ;;
17996   *-*-mingw*)
17997       wants_win32=1
17998   ;;
17999 esac
18000
18001 if test "$wxUSE_WINE" = "yes"; then
18002     wants_win32=1
18003     LDFLAGS_GUI="-mwindows"
18004 fi
18005
18006 if test "$wants_win32" = 1 ; then
18007     USE_UNIX=0
18008     USE_WIN32=1
18009     cat >>confdefs.h <<\_ACEOF
18010 #define __WIN32__ 1
18011 _ACEOF
18012
18013     cat >>confdefs.h <<\_ACEOF
18014 #define __WIN95__ 1
18015 _ACEOF
18016
18017     cat >>confdefs.h <<\_ACEOF
18018 #define __WINDOWS__ 1
18019 _ACEOF
18020
18021     cat >>confdefs.h <<\_ACEOF
18022 #define __GNUWIN32__ 1
18023 _ACEOF
18024
18025     cat >>confdefs.h <<\_ACEOF
18026 #define STRICT 1
18027 _ACEOF
18028
18029 fi
18030 if test "$doesnt_want_win32" = 1 ; then
18031     USE_UNIX=1
18032     USE_WIN32=0
18033 fi
18034
18035 if test "$USE_UNIX" = 1 ; then
18036     wxUSE_UNIX=yes
18037     cat >>confdefs.h <<\_ACEOF
18038 #define __UNIX__ 1
18039 _ACEOF
18040
18041 fi
18042
18043 case "${host}" in
18044   *-pc-os2_emx | *-pc-os2-emx )
18045                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18046                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18047 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18048 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18049   echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051   ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-lcExt  $LIBS"
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h.  */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h.  */
18059
18060 /* Override any GCC internal prototype to avoid an error.
18061    Use char because int might match the return type of a GCC
18062    builtin and then its argument prototype would still apply.  */
18063 #ifdef __cplusplus
18064 extern "C"
18065 #endif
18066 char drand48 ();
18067 int
18068 main ()
18069 {
18070 return drand48 ();
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_link") 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && {
18089          test -z "$ac_c_werror_flag" ||
18090          test ! -s conftest.err
18091        } && test -s conftest$ac_exeext &&
18092        $as_test_x conftest$ac_exeext; then
18093   ac_cv_lib_cExt_drand48=yes
18094 else
18095   echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098         ac_cv_lib_cExt_drand48=no
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18102       conftest$ac_exeext conftest.$ac_ext
18103 LIBS=$ac_check_lib_save_LIBS
18104 fi
18105 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18106 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18107 if test $ac_cv_lib_cExt_drand48 = yes; then
18108   LIBS="$LIBS -lcExt"
18109 fi
18110
18111       else
18112                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18113       fi
18114                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18115 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18116 if test "${wx_cv_gccversion+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119
18120           if test "$cross_compiling" = yes; then
18121                 wx_cv_gccversion="EMX2"
18122
18123 else
18124   cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130
18131                   #include <stdio.h>
18132
18133                   int main()
18134                   {
18135                       FILE *f=fopen("conftestval", "w");
18136                       if (!f) exit(1);
18137                       fprintf(f,
18138                   #if (__GNUC__ < 3)
18139                               "EMX2"
18140                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18141                               "EMX3"
18142                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18143                               "Innotek5"
18144                   #else
18145                               "Innotek6"
18146                   #endif
18147                       );
18148                       exit(0);
18149                   }
18150
18151 _ACEOF
18152 rm -f conftest$ac_exeext
18153 if { (ac_try="$ac_link"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_link") 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18163   { (case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_try") 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   wx_cv_gccversion=`cat conftestval`
18173 else
18174   echo "$as_me: program exited with status $ac_status" >&5
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 ( exit $ac_status )
18179 wx_cv_gccversion="EMX2"
18180 fi
18181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18182 fi
18183
18184
18185
18186 fi
18187 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18188 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18189       if test "$wx_cv_gccversion" = "EMX2"; then
18190           LIBS="$LIBS -lstdcpp"
18191           LDFLAGS="$LDFLAGS -Zsysv-signals"
18192       else
18193           if test "$wx_cv_gccversion" = "EMX3"; then
18194               LIBS="$LIBS -lstdcxx -lgcc"
18195               LDFLAGS="$LDFLAGS -Zsysv-signals"
18196           else
18197               LIBS="$LIBS -lstdc++"
18198           fi
18199       fi
18200       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18201         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18202 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18203         wxUSE_OMF=yes
18204         enable_omf=yes
18205       fi
18206         ;;
18207   *)
18208
18209       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18210 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18211 if test "${ac_cv_string_strcasecmp+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214
18215           cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221
18222               #include <string.h>
18223
18224 int
18225 main ()
18226 {
18227
18228                   strcasecmp("foo", "bar");
18229
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241   (eval "$ac_link") 2>conftest.er1
18242   ac_status=$?
18243   grep -v '^ *+' conftest.er1 >conftest.err
18244   rm -f conftest.er1
18245   cat conftest.err >&5
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); } && {
18248          test -z "$ac_c_werror_flag" ||
18249          test ! -s conftest.err
18250        } && test -s conftest$ac_exeext &&
18251        $as_test_x conftest$ac_exeext; then
18252   ac_cv_string_strcasecmp=yes
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257         ac_cv_string_strcasecmp=no
18258
18259 fi
18260
18261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18262       conftest$ac_exeext conftest.$ac_ext
18263
18264 fi
18265 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18266 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18267
18268       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18269           cat >>confdefs.h <<\_ACEOF
18270 #define HAVE_STRCASECMP_IN_STRING_H 1
18271 _ACEOF
18272
18273       else
18274           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18275 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18276 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279
18280               cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287                   #include <strings.h>
18288
18289 int
18290 main ()
18291 {
18292
18293                       strcasecmp("foo", "bar");
18294
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_link") 2>conftest.er1
18307   ac_status=$?
18308   grep -v '^ *+' conftest.er1 >conftest.err
18309   rm -f conftest.er1
18310   cat conftest.err >&5
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); } && {
18313          test -z "$ac_c_werror_flag" ||
18314          test ! -s conftest.err
18315        } && test -s conftest$ac_exeext &&
18316        $as_test_x conftest$ac_exeext; then
18317   ac_cv_strings_strcasecmp=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322         ac_cv_strings_strcasecmp=no
18323
18324 fi
18325
18326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327       conftest$ac_exeext conftest.$ac_ext
18328
18329 fi
18330 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18331 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18332
18333           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18334               cat >>confdefs.h <<\_ACEOF
18335 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18336 _ACEOF
18337
18338           else
18339               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18340 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18341    { (exit 1); exit 1; }; }
18342           fi
18343       fi
18344
18345         ;;
18346 esac
18347
18348
18349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18351 if test "${ac_cv_header_stdc+set}" = set; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 #include <stdlib.h>
18361 #include <stdarg.h>
18362 #include <string.h>
18363 #include <float.h>
18364
18365 int
18366 main ()
18367 {
18368
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (ac_try="$ac_compile"
18375 case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_compile") 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } && {
18387          test -z "$ac_c_werror_flag" ||
18388          test ! -s conftest.err
18389        } && test -s conftest.$ac_objext; then
18390   ac_cv_header_stdc=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         ac_cv_header_stdc=no
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399
18400 if test $ac_cv_header_stdc = yes; then
18401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18402   cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 #include <string.h>
18409
18410 _ACEOF
18411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18412   $EGREP "memchr" >/dev/null 2>&1; then
18413   :
18414 else
18415   ac_cv_header_stdc=no
18416 fi
18417 rm -f conftest*
18418
18419 fi
18420
18421 if test $ac_cv_header_stdc = yes; then
18422   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
18430
18431 _ACEOF
18432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18433   $EGREP "free" >/dev/null 2>&1; then
18434   :
18435 else
18436   ac_cv_header_stdc=no
18437 fi
18438 rm -f conftest*
18439
18440 fi
18441
18442 if test $ac_cv_header_stdc = yes; then
18443   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18444   if test "$cross_compiling" = yes; then
18445   :
18446 else
18447   cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453 #include <ctype.h>
18454 #include <stdlib.h>
18455 #if ((' ' & 0x0FF) == 0x020)
18456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18458 #else
18459 # define ISLOWER(c) \
18460                    (('a' <= (c) && (c) <= 'i') \
18461                      || ('j' <= (c) && (c) <= 'r') \
18462                      || ('s' <= (c) && (c) <= 'z'))
18463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18464 #endif
18465
18466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18467 int
18468 main ()
18469 {
18470   int i;
18471   for (i = 0; i < 256; i++)
18472     if (XOR (islower (i), ISLOWER (i))
18473         || toupper (i) != TOUPPER (i))
18474       return 2;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest$ac_exeext
18479 if { (ac_try="$ac_link"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_link") 2>&5
18486   ac_status=$?
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18489   { (case "(($ac_try" in
18490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491   *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494   (eval "$ac_try") 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); }; }; then
18498   :
18499 else
18500   echo "$as_me: program exited with status $ac_status" >&5
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18503
18504 ( exit $ac_status )
18505 ac_cv_header_stdc=no
18506 fi
18507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18508 fi
18509
18510
18511 fi
18512 fi
18513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18515 if test $ac_cv_header_stdc = yes; then
18516
18517 cat >>confdefs.h <<\_ACEOF
18518 #define STDC_HEADERS 1
18519 _ACEOF
18520
18521 fi
18522
18523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18534                   inttypes.h stdint.h unistd.h
18535 do
18536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18540   echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542   cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h.  */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h.  */
18548 $ac_includes_default
18549
18550 #include <$ac_header>
18551 _ACEOF
18552 rm -f conftest.$ac_objext
18553 if { (ac_try="$ac_compile"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_compile") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && {
18566          test -z "$ac_c_werror_flag" ||
18567          test ! -s conftest.err
18568        } && test -s conftest.$ac_objext; then
18569   eval "$as_ac_Header=yes"
18570 else
18571   echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574         eval "$as_ac_Header=no"
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 fi
18579 ac_res=`eval echo '${'$as_ac_Header'}'`
18580                { echo "$as_me:$LINENO: result: $ac_res" >&5
18581 echo "${ECHO_T}$ac_res" >&6; }
18582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18583   cat >>confdefs.h <<_ACEOF
18584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18585 _ACEOF
18586
18587 fi
18588
18589 done
18590
18591
18592
18593
18594 for ac_header in langinfo.h wchar.h
18595 do
18596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18600   echo $ECHO_N "(cached) $ECHO_C" >&6
18601 else
18602   cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608 $ac_includes_default
18609
18610 #include <$ac_header>
18611 _ACEOF
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_compile") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } && {
18626          test -z "$ac_c_werror_flag" ||
18627          test ! -s conftest.err
18628        } && test -s conftest.$ac_objext; then
18629   eval "$as_ac_Header=yes"
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         eval "$as_ac_Header=no"
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 fi
18639 ac_res=`eval echo '${'$as_ac_Header'}'`
18640                { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18643   cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18645 _ACEOF
18646
18647 fi
18648
18649 done
18650
18651
18652 if test "$ac_cv_header_wchar_h" != "yes"; then
18653
18654 for ac_header in wcstr.h
18655 do
18656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668 $ac_includes_default
18669
18670 #include <$ac_header>
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   eval "$as_ac_Header=yes"
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694         eval "$as_ac_Header=no"
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 fi
18699 ac_res=`eval echo '${'$as_ac_Header'}'`
18700                { echo "$as_me:$LINENO: result: $ac_res" >&5
18701 echo "${ECHO_T}$ac_res" >&6; }
18702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18703   cat >>confdefs.h <<_ACEOF
18704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18705 _ACEOF
18706
18707 fi
18708
18709 done
18710
18711 fi
18712
18713 case "${host}" in
18714   *-pc-os2_emx | *-pc-os2-emx )
18715                   if test $ac_cv_header_langinfo_h = "yes" \
18716                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18717                      -o "$wx_cv_gccversion" = "EMX3" \
18718                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18719           LIBS="$LIBS -lintl"
18720       fi
18721   ;;
18722 esac
18723
18724 if test "$USE_UNIX" = 1 ; then
18725
18726 for ac_header in sys/select.h
18727 do
18728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
18740 $ac_includes_default
18741
18742 #include <$ac_header>
18743 _ACEOF
18744 rm -f conftest.$ac_objext
18745 if { (ac_try="$ac_compile"
18746 case "(($ac_try" in
18747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748   *) ac_try_echo=$ac_try;;
18749 esac
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751   (eval "$ac_compile") 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } && {
18758          test -z "$ac_c_werror_flag" ||
18759          test ! -s conftest.err
18760        } && test -s conftest.$ac_objext; then
18761   eval "$as_ac_Header=yes"
18762 else
18763   echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766         eval "$as_ac_Header=no"
18767 fi
18768
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 fi
18771 ac_res=`eval echo '${'$as_ac_Header'}'`
18772                { echo "$as_me:$LINENO: result: $ac_res" >&5
18773 echo "${ECHO_T}$ac_res" >&6; }
18774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18775   cat >>confdefs.h <<_ACEOF
18776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18777 _ACEOF
18778
18779 fi
18780
18781 done
18782
18783 fi
18784
18785
18786 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18787 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18788 if test "${ac_cv_c_const+set}" = set; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803   /* Ultrix mips cc rejects this.  */
18804   typedef int charset[2];
18805   const charset cs;
18806   /* SunOS 4.1.1 cc rejects this.  */
18807   char const *const *pcpcc;
18808   char **ppc;
18809   /* NEC SVR4.0.2 mips cc rejects this.  */
18810   struct point {int x, y;};
18811   static struct point const zero = {0,0};
18812   /* AIX XL C 1.02.0.0 rejects this.
18813      It does not let you subtract one const X* pointer from another in
18814      an arm of an if-expression whose if-part is not a constant
18815      expression */
18816   const char *g = "string";
18817   pcpcc = &g + (g ? g-g : 0);
18818   /* HPUX 7.0 cc rejects these. */
18819   ++pcpcc;
18820   ppc = (char**) pcpcc;
18821   pcpcc = (char const *const *) ppc;
18822   { /* SCO 3.2v4 cc rejects this.  */
18823     char *t;
18824     char const *s = 0 ? (char *) 0 : (char const *) 0;
18825
18826     *t++ = 0;
18827     if (s) return 0;
18828   }
18829   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18830     int x[] = {25, 17};
18831     const int *foo = &x[0];
18832     ++foo;
18833   }
18834   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835     typedef const int *iptr;
18836     iptr p = 0;
18837     ++p;
18838   }
18839   { /* AIX XL C 1.02.0.0 rejects this saying
18840        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841     struct s { int j; const int *ap[3]; };
18842     struct s *b; b->j = 5;
18843   }
18844   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845     const int foo = 10;
18846     if (!foo) return 0;
18847   }
18848   return !cs[0] && !zero.x;
18849 #endif
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859   *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862   (eval "$ac_compile") 2>conftest.er1
18863   ac_status=$?
18864   grep -v '^ *+' conftest.er1 >conftest.err
18865   rm -f conftest.er1
18866   cat conftest.err >&5
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); } && {
18869          test -z "$ac_c_werror_flag" ||
18870          test ! -s conftest.err
18871        } && test -s conftest.$ac_objext; then
18872   ac_cv_c_const=yes
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877         ac_cv_c_const=no
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18881 fi
18882 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18883 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18884 if test $ac_cv_c_const = no; then
18885
18886 cat >>confdefs.h <<\_ACEOF
18887 #define const
18888 _ACEOF
18889
18890 fi
18891
18892 { echo "$as_me:$LINENO: checking for inline" >&5
18893 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18894 if test "${ac_cv_c_inline+set}" = set; then
18895   echo $ECHO_N "(cached) $ECHO_C" >&6
18896 else
18897   ac_cv_c_inline=no
18898 for ac_kw in inline __inline__ __inline; do
18899   cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905 #ifndef __cplusplus
18906 typedef int foo_t;
18907 static $ac_kw foo_t static_foo () {return 0; }
18908 $ac_kw foo_t foo () {return 0; }
18909 #endif
18910
18911 _ACEOF
18912 rm -f conftest.$ac_objext
18913 if { (ac_try="$ac_compile"
18914 case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_compile") 2>conftest.er1
18920   ac_status=$?
18921   grep -v '^ *+' conftest.er1 >conftest.err
18922   rm -f conftest.er1
18923   cat conftest.err >&5
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); } && {
18926          test -z "$ac_c_werror_flag" ||
18927          test ! -s conftest.err
18928        } && test -s conftest.$ac_objext; then
18929   ac_cv_c_inline=$ac_kw
18930 else
18931   echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934
18935 fi
18936
18937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18938   test "$ac_cv_c_inline" != no && break
18939 done
18940
18941 fi
18942 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18943 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18944
18945
18946 case $ac_cv_c_inline in
18947   inline | yes) ;;
18948   *)
18949     case $ac_cv_c_inline in
18950       no) ac_val=;;
18951       *) ac_val=$ac_cv_c_inline;;
18952     esac
18953     cat >>confdefs.h <<_ACEOF
18954 #ifndef __cplusplus
18955 #define inline $ac_val
18956 #endif
18957 _ACEOF
18958     ;;
18959 esac
18960
18961
18962 { echo "$as_me:$LINENO: checking for short" >&5
18963 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
18964 if test "${ac_cv_type_short+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 $ac_includes_default
18974 typedef short ac__type_new_;
18975 int
18976 main ()
18977 {
18978 if ((ac__type_new_ *) 0)
18979   return 0;
18980 if (sizeof (ac__type_new_))
18981   return 0;
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_compile") 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } && {
19000          test -z "$ac_c_werror_flag" ||
19001          test ! -s conftest.err
19002        } && test -s conftest.$ac_objext; then
19003   ac_cv_type_short=yes
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008         ac_cv_type_short=no
19009 fi
19010
19011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012 fi
19013 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19014 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19015
19016 # The cast to long int works around a bug in the HP C Compiler
19017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19019 # This bug is HP SR number 8606223364.
19020 { echo "$as_me:$LINENO: checking size of short" >&5
19021 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19022 if test "${ac_cv_sizeof_short+set}" = set; then
19023   echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025   if test "$cross_compiling" = yes; then
19026   # Depending upon the size, compute the lo and hi bounds.
19027 cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h.  */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h.  */
19033 $ac_includes_default
19034    typedef short ac__type_sizeof_;
19035 int
19036 main ()
19037 {
19038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19039 test_array [0] = 0
19040
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_compile") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } && {
19059          test -z "$ac_c_werror_flag" ||
19060          test ! -s conftest.err
19061        } && test -s conftest.$ac_objext; then
19062   ac_lo=0 ac_mid=0
19063   while :; do
19064     cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 $ac_includes_default
19071    typedef short ac__type_sizeof_;
19072 int
19073 main ()
19074 {
19075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19076 test_array [0] = 0
19077
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_compile") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } && {
19096          test -z "$ac_c_werror_flag" ||
19097          test ! -s conftest.err
19098        } && test -s conftest.$ac_objext; then
19099   ac_hi=$ac_mid; break
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104         ac_lo=`expr $ac_mid + 1`
19105                         if test $ac_lo -le $ac_mid; then
19106                           ac_lo= ac_hi=
19107                           break
19108                         fi
19109                         ac_mid=`expr 2 '*' $ac_mid + 1`
19110 fi
19111
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113   done
19114 else
19115   echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118         cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 $ac_includes_default
19125    typedef short ac__type_sizeof_;
19126 int
19127 main ()
19128 {
19129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19130 test_array [0] = 0
19131
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_c_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   ac_hi=-1 ac_mid=-1
19154   while :; do
19155     cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 $ac_includes_default
19162    typedef short ac__type_sizeof_;
19163 int
19164 main ()
19165 {
19166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19167 test_array [0] = 0
19168
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_compile") 2>conftest.er1
19181   ac_status=$?
19182   grep -v '^ *+' conftest.er1 >conftest.err
19183   rm -f conftest.er1
19184   cat conftest.err >&5
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } && {
19187          test -z "$ac_c_werror_flag" ||
19188          test ! -s conftest.err
19189        } && test -s conftest.$ac_objext; then
19190   ac_lo=$ac_mid; break
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195         ac_hi=`expr '(' $ac_mid ')' - 1`
19196                         if test $ac_mid -le $ac_hi; then
19197                           ac_lo= ac_hi=
19198                           break
19199                         fi
19200                         ac_mid=`expr 2 '*' $ac_mid`
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204   done
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209         ac_lo= ac_hi=
19210 fi
19211
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 fi
19214
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 # Binary search between lo and hi bounds.
19217 while test "x$ac_lo" != "x$ac_hi"; do
19218   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19219   cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 $ac_includes_default
19226    typedef short ac__type_sizeof_;
19227 int
19228 main ()
19229 {
19230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19231 test_array [0] = 0
19232
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (ac_try="$ac_compile"
19239 case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_compile") 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } && {
19251          test -z "$ac_c_werror_flag" ||
19252          test ! -s conftest.err
19253        } && test -s conftest.$ac_objext; then
19254   ac_hi=$ac_mid
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         ac_lo=`expr '(' $ac_mid ')' + 1`
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 done
19264 case $ac_lo in
19265 ?*) ac_cv_sizeof_short=$ac_lo;;
19266 '') if test "$ac_cv_type_short" = yes; then
19267      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19268 See \`config.log' for more details." >&5
19269 echo "$as_me: error: cannot compute sizeof (short)
19270 See \`config.log' for more details." >&2;}
19271    { (exit 77); exit 77; }; }
19272    else
19273      ac_cv_sizeof_short=0
19274    fi ;;
19275 esac
19276 else
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 $ac_includes_default
19284    typedef short ac__type_sizeof_;
19285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19287 #include <stdio.h>
19288 #include <stdlib.h>
19289 int
19290 main ()
19291 {
19292
19293   FILE *f = fopen ("conftest.val", "w");
19294   if (! f)
19295     return 1;
19296   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19297     {
19298       long int i = longval ();
19299       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19300         return 1;
19301       fprintf (f, "%ld\n", i);
19302     }
19303   else
19304     {
19305       unsigned long int i = ulongval ();
19306       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19307         return 1;
19308       fprintf (f, "%lu\n", i);
19309     }
19310   return ferror (f) || fclose (f) != 0;
19311
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_link") 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19327   { (case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_try") 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; }; then
19336   ac_cv_sizeof_short=`cat conftest.val`
19337 else
19338   echo "$as_me: program exited with status $ac_status" >&5
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ( exit $ac_status )
19343 if test "$ac_cv_type_short" = yes; then
19344      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19345 See \`config.log' for more details." >&5
19346 echo "$as_me: error: cannot compute sizeof (short)
19347 See \`config.log' for more details." >&2;}
19348    { (exit 77); exit 77; }; }
19349    else
19350      ac_cv_sizeof_short=0
19351    fi
19352 fi
19353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19354 fi
19355 rm -f conftest.val
19356 fi
19357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19358 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19359
19360
19361
19362 cat >>confdefs.h <<_ACEOF
19363 #define SIZEOF_SHORT $ac_cv_sizeof_short
19364 _ACEOF
19365
19366
19367 { echo "$as_me:$LINENO: checking for void *" >&5
19368 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19369 if test "${ac_cv_type_void_p+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378 $ac_includes_default
19379 typedef void * ac__type_new_;
19380 int
19381 main ()
19382 {
19383 if ((ac__type_new_ *) 0)
19384   return 0;
19385 if (sizeof (ac__type_new_))
19386   return 0;
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_compile") 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } && {
19405          test -z "$ac_c_werror_flag" ||
19406          test ! -s conftest.err
19407        } && test -s conftest.$ac_objext; then
19408   ac_cv_type_void_p=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         ac_cv_type_void_p=no
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19419 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19420
19421 # The cast to long int works around a bug in the HP C Compiler
19422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19424 # This bug is HP SR number 8606223364.
19425 { echo "$as_me:$LINENO: checking size of void *" >&5
19426 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19427 if test "${ac_cv_sizeof_void_p+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   if test "$cross_compiling" = yes; then
19431   # Depending upon the size, compute the lo and hi bounds.
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h.  */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h.  */
19438 $ac_includes_default
19439    typedef void * ac__type_sizeof_;
19440 int
19441 main ()
19442 {
19443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19444 test_array [0] = 0
19445
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_compile") 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } && {
19464          test -z "$ac_c_werror_flag" ||
19465          test ! -s conftest.err
19466        } && test -s conftest.$ac_objext; then
19467   ac_lo=0 ac_mid=0
19468   while :; do
19469     cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 $ac_includes_default
19476    typedef void * ac__type_sizeof_;
19477 int
19478 main ()
19479 {
19480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19481 test_array [0] = 0
19482
19483   ;
19484   return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_compile") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } && {
19501          test -z "$ac_c_werror_flag" ||
19502          test ! -s conftest.err
19503        } && test -s conftest.$ac_objext; then
19504   ac_hi=$ac_mid; break
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         ac_lo=`expr $ac_mid + 1`
19510                         if test $ac_lo -le $ac_mid; then
19511                           ac_lo= ac_hi=
19512                           break
19513                         fi
19514                         ac_mid=`expr 2 '*' $ac_mid + 1`
19515 fi
19516
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518   done
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523         cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 $ac_includes_default
19530    typedef void * ac__type_sizeof_;
19531 int
19532 main ()
19533 {
19534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19535 test_array [0] = 0
19536
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_compile") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && {
19555          test -z "$ac_c_werror_flag" ||
19556          test ! -s conftest.err
19557        } && test -s conftest.$ac_objext; then
19558   ac_hi=-1 ac_mid=-1
19559   while :; do
19560     cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h.  */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h.  */
19566 $ac_includes_default
19567    typedef void * ac__type_sizeof_;
19568 int
19569 main ()
19570 {
19571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19572 test_array [0] = 0
19573
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_compile") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } && {
19592          test -z "$ac_c_werror_flag" ||
19593          test ! -s conftest.err
19594        } && test -s conftest.$ac_objext; then
19595   ac_lo=$ac_mid; break
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600         ac_hi=`expr '(' $ac_mid ')' - 1`
19601                         if test $ac_mid -le $ac_hi; then
19602                           ac_lo= ac_hi=
19603                           break
19604                         fi
19605                         ac_mid=`expr 2 '*' $ac_mid`
19606 fi
19607
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609   done
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614         ac_lo= ac_hi=
19615 fi
19616
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 # Binary search between lo and hi bounds.
19622 while test "x$ac_lo" != "x$ac_hi"; do
19623   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19624   cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 $ac_includes_default
19631    typedef void * ac__type_sizeof_;
19632 int
19633 main ()
19634 {
19635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19636 test_array [0] = 0
19637
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (ac_try="$ac_compile"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_compile") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } && {
19656          test -z "$ac_c_werror_flag" ||
19657          test ! -s conftest.err
19658        } && test -s conftest.$ac_objext; then
19659   ac_hi=$ac_mid
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664         ac_lo=`expr '(' $ac_mid ')' + 1`
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668 done
19669 case $ac_lo in
19670 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19671 '') if test "$ac_cv_type_void_p" = yes; then
19672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19673 See \`config.log' for more details." >&5
19674 echo "$as_me: error: cannot compute sizeof (void *)
19675 See \`config.log' for more details." >&2;}
19676    { (exit 77); exit 77; }; }
19677    else
19678      ac_cv_sizeof_void_p=0
19679    fi ;;
19680 esac
19681 else
19682   cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h.  */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h.  */
19688 $ac_includes_default
19689    typedef void * ac__type_sizeof_;
19690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19692 #include <stdio.h>
19693 #include <stdlib.h>
19694 int
19695 main ()
19696 {
19697
19698   FILE *f = fopen ("conftest.val", "w");
19699   if (! f)
19700     return 1;
19701   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19702     {
19703       long int i = longval ();
19704       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19705         return 1;
19706       fprintf (f, "%ld\n", i);
19707     }
19708   else
19709     {
19710       unsigned long int i = ulongval ();
19711       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19712         return 1;
19713       fprintf (f, "%lu\n", i);
19714     }
19715   return ferror (f) || fclose (f) != 0;
19716
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_link") 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19732   { (case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_try") 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; }; then
19741   ac_cv_sizeof_void_p=`cat conftest.val`
19742 else
19743   echo "$as_me: program exited with status $ac_status" >&5
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ( exit $ac_status )
19748 if test "$ac_cv_type_void_p" = yes; then
19749      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19750 See \`config.log' for more details." >&5
19751 echo "$as_me: error: cannot compute sizeof (void *)
19752 See \`config.log' for more details." >&2;}
19753    { (exit 77); exit 77; }; }
19754    else
19755      ac_cv_sizeof_void_p=0
19756    fi
19757 fi
19758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19759 fi
19760 rm -f conftest.val
19761 fi
19762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19763 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19764
19765
19766
19767 cat >>confdefs.h <<_ACEOF
19768 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19769 _ACEOF
19770
19771
19772 { echo "$as_me:$LINENO: checking for int" >&5
19773 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19774 if test "${ac_cv_type_int+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783 $ac_includes_default
19784 typedef int ac__type_new_;
19785 int
19786 main ()
19787 {
19788 if ((ac__type_new_ *) 0)
19789   return 0;
19790 if (sizeof (ac__type_new_))
19791   return 0;
19792   ;
19793   return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext
19797 if { (ac_try="$ac_compile"
19798 case "(($ac_try" in
19799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800   *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803   (eval "$ac_compile") 2>conftest.er1
19804   ac_status=$?
19805   grep -v '^ *+' conftest.er1 >conftest.err
19806   rm -f conftest.er1
19807   cat conftest.err >&5
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } && {
19810          test -z "$ac_c_werror_flag" ||
19811          test ! -s conftest.err
19812        } && test -s conftest.$ac_objext; then
19813   ac_cv_type_int=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818         ac_cv_type_int=no
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822 fi
19823 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19824 echo "${ECHO_T}$ac_cv_type_int" >&6; }
19825
19826 # The cast to long int works around a bug in the HP C Compiler
19827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19829 # This bug is HP SR number 8606223364.
19830 { echo "$as_me:$LINENO: checking size of int" >&5
19831 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19832 if test "${ac_cv_sizeof_int+set}" = set; then
19833   echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835   if test "$cross_compiling" = yes; then
19836   # Depending upon the size, compute the lo and hi bounds.
19837 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 $ac_includes_default
19844    typedef int ac__type_sizeof_;
19845 int
19846 main ()
19847 {
19848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19849 test_array [0] = 0
19850
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_compile") 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } && {
19869          test -z "$ac_c_werror_flag" ||
19870          test ! -s conftest.err
19871        } && test -s conftest.$ac_objext; then
19872   ac_lo=0 ac_mid=0
19873   while :; do
19874     cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 $ac_includes_default
19881    typedef int ac__type_sizeof_;
19882 int
19883 main ()
19884 {
19885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19886 test_array [0] = 0
19887
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest.$ac_objext
19893 if { (ac_try="$ac_compile"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_compile") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } && {
19906          test -z "$ac_c_werror_flag" ||
19907          test ! -s conftest.err
19908        } && test -s conftest.$ac_objext; then
19909   ac_hi=$ac_mid; break
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914         ac_lo=`expr $ac_mid + 1`
19915                         if test $ac_lo -le $ac_mid; then
19916                           ac_lo= ac_hi=
19917                           break
19918                         fi
19919                         ac_mid=`expr 2 '*' $ac_mid + 1`
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923   done
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928         cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934 $ac_includes_default
19935    typedef int ac__type_sizeof_;
19936 int
19937 main ()
19938 {
19939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19940 test_array [0] = 0
19941
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_compile") 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } && {
19960          test -z "$ac_c_werror_flag" ||
19961          test ! -s conftest.err
19962        } && test -s conftest.$ac_objext; then
19963   ac_hi=-1 ac_mid=-1
19964   while :; do
19965     cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971 $ac_includes_default
19972    typedef int ac__type_sizeof_;
19973 int
19974 main ()
19975 {
19976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19977 test_array [0] = 0
19978
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_compile") 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } && {
19997          test -z "$ac_c_werror_flag" ||
19998          test ! -s conftest.err
19999        } && test -s conftest.$ac_objext; then
20000   ac_lo=$ac_mid; break
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005         ac_hi=`expr '(' $ac_mid ')' - 1`
20006                         if test $ac_mid -le $ac_hi; then
20007                           ac_lo= ac_hi=
20008                           break
20009                         fi
20010                         ac_mid=`expr 2 '*' $ac_mid`
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014   done
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019         ac_lo= ac_hi=
20020 fi
20021
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 # Binary search between lo and hi bounds.
20027 while test "x$ac_lo" != "x$ac_hi"; do
20028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20029   cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 $ac_includes_default
20036    typedef int ac__type_sizeof_;
20037 int
20038 main ()
20039 {
20040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20041 test_array [0] = 0
20042
20043   ;
20044   return 0;
20045 }
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (ac_try="$ac_compile"
20049 case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_compile") 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } && {
20061          test -z "$ac_c_werror_flag" ||
20062          test ! -s conftest.err
20063        } && test -s conftest.$ac_objext; then
20064   ac_hi=$ac_mid
20065 else
20066   echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20068
20069         ac_lo=`expr '(' $ac_mid ')' + 1`
20070 fi
20071
20072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 done
20074 case $ac_lo in
20075 ?*) ac_cv_sizeof_int=$ac_lo;;
20076 '') if test "$ac_cv_type_int" = yes; then
20077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20078 See \`config.log' for more details." >&5
20079 echo "$as_me: error: cannot compute sizeof (int)
20080 See \`config.log' for more details." >&2;}
20081    { (exit 77); exit 77; }; }
20082    else
20083      ac_cv_sizeof_int=0
20084    fi ;;
20085 esac
20086 else
20087   cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093 $ac_includes_default
20094    typedef int ac__type_sizeof_;
20095 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20096 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20097 #include <stdio.h>
20098 #include <stdlib.h>
20099 int
20100 main ()
20101 {
20102
20103   FILE *f = fopen ("conftest.val", "w");
20104   if (! f)
20105     return 1;
20106   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20107     {
20108       long int i = longval ();
20109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20110         return 1;
20111       fprintf (f, "%ld\n", i);
20112     }
20113   else
20114     {
20115       unsigned long int i = ulongval ();
20116       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20117         return 1;
20118       fprintf (f, "%lu\n", i);
20119     }
20120   return ferror (f) || fclose (f) != 0;
20121
20122   ;
20123   return 0;
20124 }
20125 _ACEOF
20126 rm -f conftest$ac_exeext
20127 if { (ac_try="$ac_link"
20128 case "(($ac_try" in
20129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130   *) ac_try_echo=$ac_try;;
20131 esac
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133   (eval "$ac_link") 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20137   { (case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142   (eval "$ac_try") 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; }; then
20146   ac_cv_sizeof_int=`cat conftest.val`
20147 else
20148   echo "$as_me: program exited with status $ac_status" >&5
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20151
20152 ( exit $ac_status )
20153 if test "$ac_cv_type_int" = yes; then
20154      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20155 See \`config.log' for more details." >&5
20156 echo "$as_me: error: cannot compute sizeof (int)
20157 See \`config.log' for more details." >&2;}
20158    { (exit 77); exit 77; }; }
20159    else
20160      ac_cv_sizeof_int=0
20161    fi
20162 fi
20163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20164 fi
20165 rm -f conftest.val
20166 fi
20167 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20168 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20169
20170
20171
20172 cat >>confdefs.h <<_ACEOF
20173 #define SIZEOF_INT $ac_cv_sizeof_int
20174 _ACEOF
20175
20176
20177 { echo "$as_me:$LINENO: checking for long" >&5
20178 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20179 if test "${ac_cv_type_long+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 $ac_includes_default
20189 typedef long ac__type_new_;
20190 int
20191 main ()
20192 {
20193 if ((ac__type_new_ *) 0)
20194   return 0;
20195 if (sizeof (ac__type_new_))
20196   return 0;
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext
20202 if { (ac_try="$ac_compile"
20203 case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_compile") 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } && {
20215          test -z "$ac_c_werror_flag" ||
20216          test ! -s conftest.err
20217        } && test -s conftest.$ac_objext; then
20218   ac_cv_type_long=yes
20219 else
20220   echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223         ac_cv_type_long=no
20224 fi
20225
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20227 fi
20228 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20229 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20230
20231 # The cast to long int works around a bug in the HP C Compiler
20232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20234 # This bug is HP SR number 8606223364.
20235 { echo "$as_me:$LINENO: checking size of long" >&5
20236 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20237 if test "${ac_cv_sizeof_long+set}" = set; then
20238   echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240   if test "$cross_compiling" = yes; then
20241   # Depending upon the size, compute the lo and hi bounds.
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 $ac_includes_default
20249    typedef long ac__type_sizeof_;
20250 int
20251 main ()
20252 {
20253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20254 test_array [0] = 0
20255
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_compile") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && {
20274          test -z "$ac_c_werror_flag" ||
20275          test ! -s conftest.err
20276        } && test -s conftest.$ac_objext; then
20277   ac_lo=0 ac_mid=0
20278   while :; do
20279     cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 $ac_includes_default
20286    typedef long ac__type_sizeof_;
20287 int
20288 main ()
20289 {
20290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20291 test_array [0] = 0
20292
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext
20298 if { (ac_try="$ac_compile"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_compile") 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && {
20311          test -z "$ac_c_werror_flag" ||
20312          test ! -s conftest.err
20313        } && test -s conftest.$ac_objext; then
20314   ac_hi=$ac_mid; break
20315 else
20316   echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319         ac_lo=`expr $ac_mid + 1`
20320                         if test $ac_lo -le $ac_mid; then
20321                           ac_lo= ac_hi=
20322                           break
20323                         fi
20324                         ac_mid=`expr 2 '*' $ac_mid + 1`
20325 fi
20326
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328   done
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 $ac_includes_default
20340    typedef long ac__type_sizeof_;
20341 int
20342 main ()
20343 {
20344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20345 test_array [0] = 0
20346
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_compile") 2>conftest.er1
20359   ac_status=$?
20360   grep -v '^ *+' conftest.er1 >conftest.err
20361   rm -f conftest.er1
20362   cat conftest.err >&5
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } && {
20365          test -z "$ac_c_werror_flag" ||
20366          test ! -s conftest.err
20367        } && test -s conftest.$ac_objext; then
20368   ac_hi=-1 ac_mid=-1
20369   while :; do
20370     cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376 $ac_includes_default
20377    typedef long ac__type_sizeof_;
20378 int
20379 main ()
20380 {
20381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20382 test_array [0] = 0
20383
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395   (eval "$ac_compile") 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } && {
20402          test -z "$ac_c_werror_flag" ||
20403          test ! -s conftest.err
20404        } && test -s conftest.$ac_objext; then
20405   ac_lo=$ac_mid; break
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410         ac_hi=`expr '(' $ac_mid ')' - 1`
20411                         if test $ac_mid -le $ac_hi; then
20412                           ac_lo= ac_hi=
20413                           break
20414                         fi
20415                         ac_mid=`expr 2 '*' $ac_mid`
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419   done
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_lo= ac_hi=
20425 fi
20426
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 # Binary search between lo and hi bounds.
20432 while test "x$ac_lo" != "x$ac_hi"; do
20433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441    typedef long ac__type_sizeof_;
20442 int
20443 main ()
20444 {
20445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20446 test_array [0] = 0
20447
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (ac_try="$ac_compile"
20454 case "(($ac_try" in
20455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456   *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459   (eval "$ac_compile") 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } && {
20466          test -z "$ac_c_werror_flag" ||
20467          test ! -s conftest.err
20468        } && test -s conftest.$ac_objext; then
20469   ac_hi=$ac_mid
20470 else
20471   echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474         ac_lo=`expr '(' $ac_mid ')' + 1`
20475 fi
20476
20477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 done
20479 case $ac_lo in
20480 ?*) ac_cv_sizeof_long=$ac_lo;;
20481 '') if test "$ac_cv_type_long" = yes; then
20482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20483 See \`config.log' for more details." >&5
20484 echo "$as_me: error: cannot compute sizeof (long)
20485 See \`config.log' for more details." >&2;}
20486    { (exit 77); exit 77; }; }
20487    else
20488      ac_cv_sizeof_long=0
20489    fi ;;
20490 esac
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499    typedef long ac__type_sizeof_;
20500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20502 #include <stdio.h>
20503 #include <stdlib.h>
20504 int
20505 main ()
20506 {
20507
20508   FILE *f = fopen ("conftest.val", "w");
20509   if (! f)
20510     return 1;
20511   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20512     {
20513       long int i = longval ();
20514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20515         return 1;
20516       fprintf (f, "%ld\n", i);
20517     }
20518   else
20519     {
20520       unsigned long int i = ulongval ();
20521       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20522         return 1;
20523       fprintf (f, "%lu\n", i);
20524     }
20525   return ferror (f) || fclose (f) != 0;
20526
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_link") 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20542   { (case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_try") 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; }; then
20551   ac_cv_sizeof_long=`cat conftest.val`
20552 else
20553   echo "$as_me: program exited with status $ac_status" >&5
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 ( exit $ac_status )
20558 if test "$ac_cv_type_long" = yes; then
20559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20560 See \`config.log' for more details." >&5
20561 echo "$as_me: error: cannot compute sizeof (long)
20562 See \`config.log' for more details." >&2;}
20563    { (exit 77); exit 77; }; }
20564    else
20565      ac_cv_sizeof_long=0
20566    fi
20567 fi
20568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20569 fi
20570 rm -f conftest.val
20571 fi
20572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20573 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20574
20575
20576
20577 cat >>confdefs.h <<_ACEOF
20578 #define SIZEOF_LONG $ac_cv_sizeof_long
20579 _ACEOF
20580
20581
20582 { echo "$as_me:$LINENO: checking for size_t" >&5
20583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20584 if test "${ac_cv_type_size_t+set}" = set; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587   cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 $ac_includes_default
20594 typedef size_t ac__type_new_;
20595 int
20596 main ()
20597 {
20598 if ((ac__type_new_ *) 0)
20599   return 0;
20600 if (sizeof (ac__type_new_))
20601   return 0;
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (ac_try="$ac_compile"
20608 case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_compile") 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } && {
20620          test -z "$ac_c_werror_flag" ||
20621          test ! -s conftest.err
20622        } && test -s conftest.$ac_objext; then
20623   ac_cv_type_size_t=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628         ac_cv_type_size_t=no
20629 fi
20630
20631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632 fi
20633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20635
20636 # The cast to long int works around a bug in the HP C Compiler
20637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20639 # This bug is HP SR number 8606223364.
20640 { echo "$as_me:$LINENO: checking size of size_t" >&5
20641 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20642 if test "${ac_cv_sizeof_size_t+set}" = set; then
20643   echo $ECHO_N "(cached) $ECHO_C" >&6
20644 else
20645   if test "$cross_compiling" = yes; then
20646   # Depending upon the size, compute the lo and hi bounds.
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 $ac_includes_default
20654    typedef size_t ac__type_sizeof_;
20655 int
20656 main ()
20657 {
20658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20659 test_array [0] = 0
20660
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (ac_try="$ac_compile"
20667 case "(($ac_try" in
20668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669   *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672   (eval "$ac_compile") 2>conftest.er1
20673   ac_status=$?
20674   grep -v '^ *+' conftest.er1 >conftest.err
20675   rm -f conftest.er1
20676   cat conftest.err >&5
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); } && {
20679          test -z "$ac_c_werror_flag" ||
20680          test ! -s conftest.err
20681        } && test -s conftest.$ac_objext; then
20682   ac_lo=0 ac_mid=0
20683   while :; do
20684     cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 $ac_includes_default
20691    typedef size_t ac__type_sizeof_;
20692 int
20693 main ()
20694 {
20695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20696 test_array [0] = 0
20697
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_compile") 2>conftest.er1
20710   ac_status=$?
20711   grep -v '^ *+' conftest.er1 >conftest.err
20712   rm -f conftest.er1
20713   cat conftest.err >&5
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } && {
20716          test -z "$ac_c_werror_flag" ||
20717          test ! -s conftest.err
20718        } && test -s conftest.$ac_objext; then
20719   ac_hi=$ac_mid; break
20720 else
20721   echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724         ac_lo=`expr $ac_mid + 1`
20725                         if test $ac_lo -le $ac_mid; then
20726                           ac_lo= ac_hi=
20727                           break
20728                         fi
20729                         ac_mid=`expr 2 '*' $ac_mid + 1`
20730 fi
20731
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733   done
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738         cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 $ac_includes_default
20745    typedef size_t ac__type_sizeof_;
20746 int
20747 main ()
20748 {
20749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20750 test_array [0] = 0
20751
20752   ;
20753   return 0;
20754 }
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (ac_try="$ac_compile"
20758 case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_compile") 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } && {
20770          test -z "$ac_c_werror_flag" ||
20771          test ! -s conftest.err
20772        } && test -s conftest.$ac_objext; then
20773   ac_hi=-1 ac_mid=-1
20774   while :; do
20775     cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 $ac_includes_default
20782    typedef size_t ac__type_sizeof_;
20783 int
20784 main ()
20785 {
20786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20787 test_array [0] = 0
20788
20789   ;
20790   return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_compile") 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } && {
20807          test -z "$ac_c_werror_flag" ||
20808          test ! -s conftest.err
20809        } && test -s conftest.$ac_objext; then
20810   ac_lo=$ac_mid; break
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815         ac_hi=`expr '(' $ac_mid ')' - 1`
20816                         if test $ac_mid -le $ac_hi; then
20817                           ac_lo= ac_hi=
20818                           break
20819                         fi
20820                         ac_mid=`expr 2 '*' $ac_mid`
20821 fi
20822
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20824   done
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829         ac_lo= ac_hi=
20830 fi
20831
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 fi
20834
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 # Binary search between lo and hi bounds.
20837 while test "x$ac_lo" != "x$ac_hi"; do
20838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 $ac_includes_default
20846    typedef size_t ac__type_sizeof_;
20847 int
20848 main ()
20849 {
20850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20851 test_array [0] = 0
20852
20853   ;
20854   return 0;
20855 }
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861   *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864   (eval "$ac_compile") 2>conftest.er1
20865   ac_status=$?
20866   grep -v '^ *+' conftest.er1 >conftest.err
20867   rm -f conftest.er1
20868   cat conftest.err >&5
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); } && {
20871          test -z "$ac_c_werror_flag" ||
20872          test ! -s conftest.err
20873        } && test -s conftest.$ac_objext; then
20874   ac_hi=$ac_mid
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879         ac_lo=`expr '(' $ac_mid ')' + 1`
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 done
20884 case $ac_lo in
20885 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20886 '') if test "$ac_cv_type_size_t" = yes; then
20887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20888 See \`config.log' for more details." >&5
20889 echo "$as_me: error: cannot compute sizeof (size_t)
20890 See \`config.log' for more details." >&2;}
20891    { (exit 77); exit 77; }; }
20892    else
20893      ac_cv_sizeof_size_t=0
20894    fi ;;
20895 esac
20896 else
20897   cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903 $ac_includes_default
20904    typedef size_t ac__type_sizeof_;
20905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20907 #include <stdio.h>
20908 #include <stdlib.h>
20909 int
20910 main ()
20911 {
20912
20913   FILE *f = fopen ("conftest.val", "w");
20914   if (! f)
20915     return 1;
20916   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20917     {
20918       long int i = longval ();
20919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20920         return 1;
20921       fprintf (f, "%ld\n", i);
20922     }
20923   else
20924     {
20925       unsigned long int i = ulongval ();
20926       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20927         return 1;
20928       fprintf (f, "%lu\n", i);
20929     }
20930   return ferror (f) || fclose (f) != 0;
20931
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest$ac_exeext
20937 if { (ac_try="$ac_link"
20938 case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_link") 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20947   { (case "(($ac_try" in
20948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949   *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952   (eval "$ac_try") 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; }; then
20956   ac_cv_sizeof_size_t=`cat conftest.val`
20957 else
20958   echo "$as_me: program exited with status $ac_status" >&5
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 ( exit $ac_status )
20963 if test "$ac_cv_type_size_t" = yes; then
20964      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20965 See \`config.log' for more details." >&5
20966 echo "$as_me: error: cannot compute sizeof (size_t)
20967 See \`config.log' for more details." >&2;}
20968    { (exit 77); exit 77; }; }
20969    else
20970      ac_cv_sizeof_size_t=0
20971    fi
20972 fi
20973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20974 fi
20975 rm -f conftest.val
20976 fi
20977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20978 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20979
20980
20981
20982 cat >>confdefs.h <<_ACEOF
20983 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20984 _ACEOF
20985
20986
20987
20988 case "${host}" in
20989     arm-*-linux* )
20990         { echo "$as_me:$LINENO: checking for long long" >&5
20991 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20992 if test "${ac_cv_type_long_long+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 $ac_includes_default
21002 typedef long long ac__type_new_;
21003 int
21004 main ()
21005 {
21006 if ((ac__type_new_ *) 0)
21007   return 0;
21008 if (sizeof (ac__type_new_))
21009   return 0;
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_compile") 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && {
21028          test -z "$ac_c_werror_flag" ||
21029          test ! -s conftest.err
21030        } && test -s conftest.$ac_objext; then
21031   ac_cv_type_long_long=yes
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036         ac_cv_type_long_long=no
21037 fi
21038
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 fi
21041 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21042 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21043
21044 # The cast to long int works around a bug in the HP C Compiler
21045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21047 # This bug is HP SR number 8606223364.
21048 { echo "$as_me:$LINENO: checking size of long long" >&5
21049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21050 if test "${ac_cv_sizeof_long_long+set}" = set; then
21051   echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053   if test "$cross_compiling" = yes; then
21054   # Depending upon the size, compute the lo and hi bounds.
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061 $ac_includes_default
21062    typedef long long ac__type_sizeof_;
21063 int
21064 main ()
21065 {
21066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21067 test_array [0] = 0
21068
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_compile") 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && {
21087          test -z "$ac_c_werror_flag" ||
21088          test ! -s conftest.err
21089        } && test -s conftest.$ac_objext; then
21090   ac_lo=0 ac_mid=0
21091   while :; do
21092     cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 $ac_includes_default
21099    typedef long long ac__type_sizeof_;
21100 int
21101 main ()
21102 {
21103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21104 test_array [0] = 0
21105
21106   ;
21107   return 0;
21108 }
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117   (eval "$ac_compile") 2>conftest.er1
21118   ac_status=$?
21119   grep -v '^ *+' conftest.er1 >conftest.err
21120   rm -f conftest.er1
21121   cat conftest.err >&5
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); } && {
21124          test -z "$ac_c_werror_flag" ||
21125          test ! -s conftest.err
21126        } && test -s conftest.$ac_objext; then
21127   ac_hi=$ac_mid; break
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132         ac_lo=`expr $ac_mid + 1`
21133                         if test $ac_lo -le $ac_mid; then
21134                           ac_lo= ac_hi=
21135                           break
21136                         fi
21137                         ac_mid=`expr 2 '*' $ac_mid + 1`
21138 fi
21139
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141   done
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h.  */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h.  */
21152 $ac_includes_default
21153    typedef long long ac__type_sizeof_;
21154 int
21155 main ()
21156 {
21157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21158 test_array [0] = 0
21159
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168   *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171   (eval "$ac_compile") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } && {
21178          test -z "$ac_c_werror_flag" ||
21179          test ! -s conftest.err
21180        } && test -s conftest.$ac_objext; then
21181   ac_hi=-1 ac_mid=-1
21182   while :; do
21183     cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 $ac_includes_default
21190    typedef long long ac__type_sizeof_;
21191 int
21192 main ()
21193 {
21194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21195 test_array [0] = 0
21196
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_compile") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest.$ac_objext; then
21218   ac_lo=$ac_mid; break
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223         ac_hi=`expr '(' $ac_mid ')' - 1`
21224                         if test $ac_mid -le $ac_hi; then
21225                           ac_lo= ac_hi=
21226                           break
21227                         fi
21228                         ac_mid=`expr 2 '*' $ac_mid`
21229 fi
21230
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232   done
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_lo= ac_hi=
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241 fi
21242
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 # Binary search between lo and hi bounds.
21245 while test "x$ac_lo" != "x$ac_hi"; do
21246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 $ac_includes_default
21254    typedef long long ac__type_sizeof_;
21255 int
21256 main ()
21257 {
21258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21259 test_array [0] = 0
21260
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_compile") 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } && {
21279          test -z "$ac_c_werror_flag" ||
21280          test ! -s conftest.err
21281        } && test -s conftest.$ac_objext; then
21282   ac_hi=$ac_mid
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287         ac_lo=`expr '(' $ac_mid ')' + 1`
21288 fi
21289
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 done
21292 case $ac_lo in
21293 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21294 '') if test "$ac_cv_type_long_long" = yes; then
21295      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21296 See \`config.log' for more details." >&5
21297 echo "$as_me: error: cannot compute sizeof (long long)
21298 See \`config.log' for more details." >&2;}
21299    { (exit 77); exit 77; }; }
21300    else
21301      ac_cv_sizeof_long_long=0
21302    fi ;;
21303 esac
21304 else
21305   cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 $ac_includes_default
21312    typedef long long ac__type_sizeof_;
21313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21315 #include <stdio.h>
21316 #include <stdlib.h>
21317 int
21318 main ()
21319 {
21320
21321   FILE *f = fopen ("conftest.val", "w");
21322   if (! f)
21323     return 1;
21324   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21325     {
21326       long int i = longval ();
21327       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21328         return 1;
21329       fprintf (f, "%ld\n", i);
21330     }
21331   else
21332     {
21333       unsigned long int i = ulongval ();
21334       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21335         return 1;
21336       fprintf (f, "%lu\n", i);
21337     }
21338   return ferror (f) || fclose (f) != 0;
21339
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest$ac_exeext
21345 if { (ac_try="$ac_link"
21346 case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_link") 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21355   { (case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_try") 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; }; then
21364   ac_cv_sizeof_long_long=`cat conftest.val`
21365 else
21366   echo "$as_me: program exited with status $ac_status" >&5
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370 ( exit $ac_status )
21371 if test "$ac_cv_type_long_long" = yes; then
21372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21373 See \`config.log' for more details." >&5
21374 echo "$as_me: error: cannot compute sizeof (long long)
21375 See \`config.log' for more details." >&2;}
21376    { (exit 77); exit 77; }; }
21377    else
21378      ac_cv_sizeof_long_long=0
21379    fi
21380 fi
21381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21382 fi
21383 rm -f conftest.val
21384 fi
21385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21386 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21387
21388
21389
21390 cat >>confdefs.h <<_ACEOF
21391 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21392 _ACEOF
21393
21394
21395     ;;
21396     *-hp-hpux* )
21397         { echo "$as_me:$LINENO: checking for long long" >&5
21398 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21399 if test "${ac_cv_type_long_long+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402   cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408 $ac_includes_default
21409 typedef long long ac__type_new_;
21410 int
21411 main ()
21412 {
21413 if ((ac__type_new_ *) 0)
21414   return 0;
21415 if (sizeof (ac__type_new_))
21416   return 0;
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428   (eval "$ac_compile") 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } && {
21435          test -z "$ac_c_werror_flag" ||
21436          test ! -s conftest.err
21437        } && test -s conftest.$ac_objext; then
21438   ac_cv_type_long_long=yes
21439 else
21440   echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443         ac_cv_type_long_long=no
21444 fi
21445
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 fi
21448 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21449 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21450
21451 # The cast to long int works around a bug in the HP C Compiler
21452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21454 # This bug is HP SR number 8606223364.
21455 { echo "$as_me:$LINENO: checking size of long long" >&5
21456 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21457 if test "${ac_cv_sizeof_long_long+set}" = set; then
21458   echo $ECHO_N "(cached) $ECHO_C" >&6
21459 else
21460   if test "$cross_compiling" = yes; then
21461   # Depending upon the size, compute the lo and hi bounds.
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 $ac_includes_default
21469    typedef long long ac__type_sizeof_;
21470 int
21471 main ()
21472 {
21473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21474 test_array [0] = 0
21475
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_compile") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } && {
21494          test -z "$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        } && test -s conftest.$ac_objext; then
21497   ac_lo=0 ac_mid=0
21498   while :; do
21499     cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 $ac_includes_default
21506    typedef long long ac__type_sizeof_;
21507 int
21508 main ()
21509 {
21510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21511 test_array [0] = 0
21512
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_compile") 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } && {
21531          test -z "$ac_c_werror_flag" ||
21532          test ! -s conftest.err
21533        } && test -s conftest.$ac_objext; then
21534   ac_hi=$ac_mid; break
21535 else
21536   echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539         ac_lo=`expr $ac_mid + 1`
21540                         if test $ac_lo -le $ac_mid; then
21541                           ac_lo= ac_hi=
21542                           break
21543                         fi
21544                         ac_mid=`expr 2 '*' $ac_mid + 1`
21545 fi
21546
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548   done
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553         cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 $ac_includes_default
21560    typedef long long ac__type_sizeof_;
21561 int
21562 main ()
21563 {
21564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21565 test_array [0] = 0
21566
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578   (eval "$ac_compile") 2>conftest.er1
21579   ac_status=$?
21580   grep -v '^ *+' conftest.er1 >conftest.err
21581   rm -f conftest.er1
21582   cat conftest.err >&5
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); } && {
21585          test -z "$ac_c_werror_flag" ||
21586          test ! -s conftest.err
21587        } && test -s conftest.$ac_objext; then
21588   ac_hi=-1 ac_mid=-1
21589   while :; do
21590     cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h.  */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h.  */
21596 $ac_includes_default
21597    typedef long long ac__type_sizeof_;
21598 int
21599 main ()
21600 {
21601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21602 test_array [0] = 0
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_compile") 2>conftest.er1
21616   ac_status=$?
21617   grep -v '^ *+' conftest.er1 >conftest.err
21618   rm -f conftest.er1
21619   cat conftest.err >&5
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && {
21622          test -z "$ac_c_werror_flag" ||
21623          test ! -s conftest.err
21624        } && test -s conftest.$ac_objext; then
21625   ac_lo=$ac_mid; break
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630         ac_hi=`expr '(' $ac_mid ')' - 1`
21631                         if test $ac_mid -le $ac_hi; then
21632                           ac_lo= ac_hi=
21633                           break
21634                         fi
21635                         ac_mid=`expr 2 '*' $ac_mid`
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639   done
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_lo= ac_hi=
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 $ac_includes_default
21661    typedef long long ac__type_sizeof_;
21662 int
21663 main ()
21664 {
21665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21666 test_array [0] = 0
21667
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && {
21686          test -z "$ac_c_werror_flag" ||
21687          test ! -s conftest.err
21688        } && test -s conftest.$ac_objext; then
21689   ac_hi=$ac_mid
21690 else
21691   echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21693
21694         ac_lo=`expr '(' $ac_mid ')' + 1`
21695 fi
21696
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 done
21699 case $ac_lo in
21700 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21701 '') if test "$ac_cv_type_long_long" = yes; then
21702      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21703 See \`config.log' for more details." >&5
21704 echo "$as_me: error: cannot compute sizeof (long long)
21705 See \`config.log' for more details." >&2;}
21706    { (exit 77); exit 77; }; }
21707    else
21708      ac_cv_sizeof_long_long=0
21709    fi ;;
21710 esac
21711 else
21712   cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718 $ac_includes_default
21719    typedef long long ac__type_sizeof_;
21720 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21721 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21722 #include <stdio.h>
21723 #include <stdlib.h>
21724 int
21725 main ()
21726 {
21727
21728   FILE *f = fopen ("conftest.val", "w");
21729   if (! f)
21730     return 1;
21731   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21732     {
21733       long int i = longval ();
21734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21735         return 1;
21736       fprintf (f, "%ld\n", i);
21737     }
21738   else
21739     {
21740       unsigned long int i = ulongval ();
21741       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21742         return 1;
21743       fprintf (f, "%lu\n", i);
21744     }
21745   return ferror (f) || fclose (f) != 0;
21746
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_link") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762   { (case "(($ac_try" in
21763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764   *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767   (eval "$ac_try") 2>&5
21768   ac_status=$?
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); }; }; then
21771   ac_cv_sizeof_long_long=`cat conftest.val`
21772 else
21773   echo "$as_me: program exited with status $ac_status" >&5
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 ( exit $ac_status )
21778 if test "$ac_cv_type_long_long" = yes; then
21779      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (long long)
21782 See \`config.log' for more details." >&2;}
21783    { (exit 77); exit 77; }; }
21784    else
21785      ac_cv_sizeof_long_long=0
21786    fi
21787 fi
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21789 fi
21790 rm -f conftest.val
21791 fi
21792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21793 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21794
21795
21796
21797 cat >>confdefs.h <<_ACEOF
21798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21799 _ACEOF
21800
21801
21802         if test "$ac_cv_sizeof_long_long" != 0; then
21803                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21804         fi
21805     ;;
21806     * )
21807         { echo "$as_me:$LINENO: checking for long long" >&5
21808 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21809 if test "${ac_cv_type_long_long+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 $ac_includes_default
21819 typedef long long ac__type_new_;
21820 int
21821 main ()
21822 {
21823 if ((ac__type_new_ *) 0)
21824   return 0;
21825 if (sizeof (ac__type_new_))
21826   return 0;
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest.$ac_objext
21832 if { (ac_try="$ac_compile"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838   (eval "$ac_compile") 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } && {
21845          test -z "$ac_c_werror_flag" ||
21846          test ! -s conftest.err
21847        } && test -s conftest.$ac_objext; then
21848   ac_cv_type_long_long=yes
21849 else
21850   echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853         ac_cv_type_long_long=no
21854 fi
21855
21856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857 fi
21858 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21859 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21860
21861 # The cast to long int works around a bug in the HP C Compiler
21862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21864 # This bug is HP SR number 8606223364.
21865 { echo "$as_me:$LINENO: checking size of long long" >&5
21866 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21867 if test "${ac_cv_sizeof_long_long+set}" = set; then
21868   echo $ECHO_N "(cached) $ECHO_C" >&6
21869 else
21870   if test "$cross_compiling" = yes; then
21871   # Depending upon the size, compute the lo and hi bounds.
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 $ac_includes_default
21879    typedef long long ac__type_sizeof_;
21880 int
21881 main ()
21882 {
21883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21884 test_array [0] = 0
21885
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_compile") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && {
21904          test -z "$ac_c_werror_flag" ||
21905          test ! -s conftest.err
21906        } && test -s conftest.$ac_objext; then
21907   ac_lo=0 ac_mid=0
21908   while :; do
21909     cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h.  */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h.  */
21915 $ac_includes_default
21916    typedef long long ac__type_sizeof_;
21917 int
21918 main ()
21919 {
21920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21921 test_array [0] = 0
21922
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_compile") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } && {
21941          test -z "$ac_c_werror_flag" ||
21942          test ! -s conftest.err
21943        } && test -s conftest.$ac_objext; then
21944   ac_hi=$ac_mid; break
21945 else
21946   echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949         ac_lo=`expr $ac_mid + 1`
21950                         if test $ac_lo -le $ac_mid; then
21951                           ac_lo= ac_hi=
21952                           break
21953                         fi
21954                         ac_mid=`expr 2 '*' $ac_mid + 1`
21955 fi
21956
21957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958   done
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963         cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h.  */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h.  */
21969 $ac_includes_default
21970    typedef long long ac__type_sizeof_;
21971 int
21972 main ()
21973 {
21974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21975 test_array [0] = 0
21976
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (ac_try="$ac_compile"
21983 case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_compile") 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && {
21995          test -z "$ac_c_werror_flag" ||
21996          test ! -s conftest.err
21997        } && test -s conftest.$ac_objext; then
21998   ac_hi=-1 ac_mid=-1
21999   while :; do
22000     cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 $ac_includes_default
22007    typedef long long ac__type_sizeof_;
22008 int
22009 main ()
22010 {
22011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22012 test_array [0] = 0
22013
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_compile") 2>conftest.er1
22026   ac_status=$?
22027   grep -v '^ *+' conftest.er1 >conftest.err
22028   rm -f conftest.er1
22029   cat conftest.err >&5
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } && {
22032          test -z "$ac_c_werror_flag" ||
22033          test ! -s conftest.err
22034        } && test -s conftest.$ac_objext; then
22035   ac_lo=$ac_mid; break
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040         ac_hi=`expr '(' $ac_mid ')' - 1`
22041                         if test $ac_mid -le $ac_hi; then
22042                           ac_lo= ac_hi=
22043                           break
22044                         fi
22045                         ac_mid=`expr 2 '*' $ac_mid`
22046 fi
22047
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049   done
22050 else
22051   echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         ac_lo= ac_hi=
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 fi
22059
22060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061 # Binary search between lo and hi bounds.
22062 while test "x$ac_lo" != "x$ac_hi"; do
22063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22064   cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 $ac_includes_default
22071    typedef long long ac__type_sizeof_;
22072 int
22073 main ()
22074 {
22075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22076 test_array [0] = 0
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest.$ac_objext; then
22099   ac_hi=$ac_mid
22100 else
22101   echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         ac_lo=`expr '(' $ac_mid ')' + 1`
22105 fi
22106
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 done
22109 case $ac_lo in
22110 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22111 '') if test "$ac_cv_type_long_long" = yes; then
22112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22113 See \`config.log' for more details." >&5
22114 echo "$as_me: error: cannot compute sizeof (long long)
22115 See \`config.log' for more details." >&2;}
22116    { (exit 77); exit 77; }; }
22117    else
22118      ac_cv_sizeof_long_long=0
22119    fi ;;
22120 esac
22121 else
22122   cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 $ac_includes_default
22129    typedef long long ac__type_sizeof_;
22130 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22131 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22132 #include <stdio.h>
22133 #include <stdlib.h>
22134 int
22135 main ()
22136 {
22137
22138   FILE *f = fopen ("conftest.val", "w");
22139   if (! f)
22140     return 1;
22141   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22142     {
22143       long int i = longval ();
22144       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22145         return 1;
22146       fprintf (f, "%ld\n", i);
22147     }
22148   else
22149     {
22150       unsigned long int i = ulongval ();
22151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22152         return 1;
22153       fprintf (f, "%lu\n", i);
22154     }
22155   return ferror (f) || fclose (f) != 0;
22156
22157   ;
22158   return 0;
22159 }
22160 _ACEOF
22161 rm -f conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_link") 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22172   { (case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177   (eval "$ac_try") 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); }; }; then
22181   ac_cv_sizeof_long_long=`cat conftest.val`
22182 else
22183   echo "$as_me: program exited with status $ac_status" >&5
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ( exit $ac_status )
22188 if test "$ac_cv_type_long_long" = yes; then
22189      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22190 See \`config.log' for more details." >&5
22191 echo "$as_me: error: cannot compute sizeof (long long)
22192 See \`config.log' for more details." >&2;}
22193    { (exit 77); exit 77; }; }
22194    else
22195      ac_cv_sizeof_long_long=0
22196    fi
22197 fi
22198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22199 fi
22200 rm -f conftest.val
22201 fi
22202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22204
22205
22206
22207 cat >>confdefs.h <<_ACEOF
22208 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22209 _ACEOF
22210
22211
22212 esac
22213
22214 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22215 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22216 if test "${ac_cv_type_wchar_t+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225
22226         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22227         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22228         #  error "fake wchar_t"
22229         #endif
22230         #ifdef HAVE_WCHAR_H
22231         #  ifdef __CYGWIN__
22232         #    include <stddef.h>
22233         #  endif
22234         #  include <wchar.h>
22235         #endif
22236         #ifdef HAVE_STDLIB_H
22237         #  include <stdlib.h>
22238         #endif
22239         #include <stdio.h>
22240
22241
22242
22243 typedef wchar_t ac__type_new_;
22244 int
22245 main ()
22246 {
22247 if ((ac__type_new_ *) 0)
22248   return 0;
22249 if (sizeof (ac__type_new_))
22250   return 0;
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262   (eval "$ac_compile") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest.$ac_objext; then
22272   ac_cv_type_wchar_t=yes
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277         ac_cv_type_wchar_t=no
22278 fi
22279
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 fi
22282 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22283 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22284
22285 # The cast to long int works around a bug in the HP C Compiler
22286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22288 # This bug is HP SR number 8606223364.
22289 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22290 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22291 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   if test "$cross_compiling" = yes; then
22295   # Depending upon the size, compute the lo and hi bounds.
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302
22303         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22304         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22305         #  error "fake wchar_t"
22306         #endif
22307         #ifdef HAVE_WCHAR_H
22308         #  ifdef __CYGWIN__
22309         #    include <stddef.h>
22310         #  endif
22311         #  include <wchar.h>
22312         #endif
22313         #ifdef HAVE_STDLIB_H
22314         #  include <stdlib.h>
22315         #endif
22316         #include <stdio.h>
22317
22318
22319
22320    typedef wchar_t ac__type_sizeof_;
22321 int
22322 main ()
22323 {
22324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22325 test_array [0] = 0
22326
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_compile") 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } && {
22345          test -z "$ac_c_werror_flag" ||
22346          test ! -s conftest.err
22347        } && test -s conftest.$ac_objext; then
22348   ac_lo=0 ac_mid=0
22349   while :; do
22350     cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356
22357         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22358         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22359         #  error "fake wchar_t"
22360         #endif
22361         #ifdef HAVE_WCHAR_H
22362         #  ifdef __CYGWIN__
22363         #    include <stddef.h>
22364         #  endif
22365         #  include <wchar.h>
22366         #endif
22367         #ifdef HAVE_STDLIB_H
22368         #  include <stdlib.h>
22369         #endif
22370         #include <stdio.h>
22371
22372
22373
22374    typedef wchar_t ac__type_sizeof_;
22375 int
22376 main ()
22377 {
22378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22379 test_array [0] = 0
22380
22381   ;
22382   return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389   *) ac_try_echo=$ac_try;;
22390 esac
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392   (eval "$ac_compile") 2>conftest.er1
22393   ac_status=$?
22394   grep -v '^ *+' conftest.er1 >conftest.err
22395   rm -f conftest.er1
22396   cat conftest.err >&5
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); } && {
22399          test -z "$ac_c_werror_flag" ||
22400          test ! -s conftest.err
22401        } && test -s conftest.$ac_objext; then
22402   ac_hi=$ac_mid; break
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407         ac_lo=`expr $ac_mid + 1`
22408                         if test $ac_lo -le $ac_mid; then
22409                           ac_lo= ac_hi=
22410                           break
22411                         fi
22412                         ac_mid=`expr 2 '*' $ac_mid + 1`
22413 fi
22414
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416   done
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
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
22428         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22429         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22430         #  error "fake wchar_t"
22431         #endif
22432         #ifdef HAVE_WCHAR_H
22433         #  ifdef __CYGWIN__
22434         #    include <stddef.h>
22435         #  endif
22436         #  include <wchar.h>
22437         #endif
22438         #ifdef HAVE_STDLIB_H
22439         #  include <stdlib.h>
22440         #endif
22441         #include <stdio.h>
22442
22443
22444
22445    typedef wchar_t ac__type_sizeof_;
22446 int
22447 main ()
22448 {
22449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22450 test_array [0] = 0
22451
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest.$ac_objext; then
22473   ac_hi=-1 ac_mid=-1
22474   while :; do
22475     cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h.  */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h.  */
22481
22482         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22483         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22484         #  error "fake wchar_t"
22485         #endif
22486         #ifdef HAVE_WCHAR_H
22487         #  ifdef __CYGWIN__
22488         #    include <stddef.h>
22489         #  endif
22490         #  include <wchar.h>
22491         #endif
22492         #ifdef HAVE_STDLIB_H
22493         #  include <stdlib.h>
22494         #endif
22495         #include <stdio.h>
22496
22497
22498
22499    typedef wchar_t ac__type_sizeof_;
22500 int
22501 main ()
22502 {
22503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22504 test_array [0] = 0
22505
22506   ;
22507   return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514   *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517   (eval "$ac_compile") 2>conftest.er1
22518   ac_status=$?
22519   grep -v '^ *+' conftest.er1 >conftest.err
22520   rm -f conftest.er1
22521   cat conftest.err >&5
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); } && {
22524          test -z "$ac_c_werror_flag" ||
22525          test ! -s conftest.err
22526        } && test -s conftest.$ac_objext; then
22527   ac_lo=$ac_mid; break
22528 else
22529   echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22531
22532         ac_hi=`expr '(' $ac_mid ')' - 1`
22533                         if test $ac_mid -le $ac_hi; then
22534                           ac_lo= ac_hi=
22535                           break
22536                         fi
22537                         ac_mid=`expr 2 '*' $ac_mid`
22538 fi
22539
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541   done
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546         ac_lo= ac_hi=
22547 fi
22548
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 fi
22551
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 # Binary search between lo and hi bounds.
22554 while test "x$ac_lo" != "x$ac_hi"; do
22555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22556   cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562
22563         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22564         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22565         #  error "fake wchar_t"
22566         #endif
22567         #ifdef HAVE_WCHAR_H
22568         #  ifdef __CYGWIN__
22569         #    include <stddef.h>
22570         #  endif
22571         #  include <wchar.h>
22572         #endif
22573         #ifdef HAVE_STDLIB_H
22574         #  include <stdlib.h>
22575         #endif
22576         #include <stdio.h>
22577
22578
22579
22580    typedef wchar_t ac__type_sizeof_;
22581 int
22582 main ()
22583 {
22584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22585 test_array [0] = 0
22586
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595   *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598   (eval "$ac_compile") 2>conftest.er1
22599   ac_status=$?
22600   grep -v '^ *+' conftest.er1 >conftest.err
22601   rm -f conftest.er1
22602   cat conftest.err >&5
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && {
22605          test -z "$ac_c_werror_flag" ||
22606          test ! -s conftest.err
22607        } && test -s conftest.$ac_objext; then
22608   ac_hi=$ac_mid
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613         ac_lo=`expr '(' $ac_mid ')' + 1`
22614 fi
22615
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617 done
22618 case $ac_lo in
22619 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22620 '') if test "$ac_cv_type_wchar_t" = yes; then
22621      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22622 See \`config.log' for more details." >&5
22623 echo "$as_me: error: cannot compute sizeof (wchar_t)
22624 See \`config.log' for more details." >&2;}
22625    { (exit 77); exit 77; }; }
22626    else
22627      ac_cv_sizeof_wchar_t=0
22628    fi ;;
22629 esac
22630 else
22631   cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h.  */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h.  */
22637
22638         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22639         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22640         #  error "fake wchar_t"
22641         #endif
22642         #ifdef HAVE_WCHAR_H
22643         #  ifdef __CYGWIN__
22644         #    include <stddef.h>
22645         #  endif
22646         #  include <wchar.h>
22647         #endif
22648         #ifdef HAVE_STDLIB_H
22649         #  include <stdlib.h>
22650         #endif
22651         #include <stdio.h>
22652
22653
22654
22655    typedef wchar_t ac__type_sizeof_;
22656 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22657 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22658 #include <stdio.h>
22659 #include <stdlib.h>
22660 int
22661 main ()
22662 {
22663
22664   FILE *f = fopen ("conftest.val", "w");
22665   if (! f)
22666     return 1;
22667   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22668     {
22669       long int i = longval ();
22670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22671         return 1;
22672       fprintf (f, "%ld\n", i);
22673     }
22674   else
22675     {
22676       unsigned long int i = ulongval ();
22677       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22678         return 1;
22679       fprintf (f, "%lu\n", i);
22680     }
22681   return ferror (f) || fclose (f) != 0;
22682
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest$ac_exeext
22688 if { (ac_try="$ac_link"
22689 case "(($ac_try" in
22690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691   *) ac_try_echo=$ac_try;;
22692 esac
22693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22694   (eval "$ac_link") 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22698   { (case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_try") 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); }; }; then
22707   ac_cv_sizeof_wchar_t=`cat conftest.val`
22708 else
22709   echo "$as_me: program exited with status $ac_status" >&5
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22712
22713 ( exit $ac_status )
22714 if test "$ac_cv_type_wchar_t" = yes; then
22715      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22716 See \`config.log' for more details." >&5
22717 echo "$as_me: error: cannot compute sizeof (wchar_t)
22718 See \`config.log' for more details." >&2;}
22719    { (exit 77); exit 77; }; }
22720    else
22721      ac_cv_sizeof_wchar_t=0
22722    fi
22723 fi
22724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22725 fi
22726 rm -f conftest.val
22727 fi
22728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22729 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22730
22731
22732
22733 cat >>confdefs.h <<_ACEOF
22734 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22735 _ACEOF
22736
22737
22738 if test "$ac_cv_sizeof_wchar_t" != 0; then
22739     wxUSE_WCHAR_T=yes
22740 else
22741     wxUSE_WCHAR_T=no
22742 fi
22743
22744 { echo "$as_me:$LINENO: checking for va_copy" >&5
22745 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22746 if test "${wx_cv_func_va_copy+set}" = set; then
22747   echo $ECHO_N "(cached) $ECHO_C" >&6
22748 else
22749
22750         ac_ext=cpp
22751 ac_cpp='$CXXCPP $CPPFLAGS'
22752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22755
22756         cat >conftest.$ac_ext <<_ACEOF
22757
22758             #include <stdarg.h>
22759             void foo(char *f, ...)
22760             {
22761                 va_list ap1, ap2;
22762                 va_start(ap1, f);
22763                 va_copy(ap2, ap1);
22764                 va_end(ap2);
22765                 va_end(ap1);
22766             }
22767             int main()
22768             {
22769                 foo("hi", 17);
22770                 return 0;
22771             }
22772 _ACEOF
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777   *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780   (eval "$ac_link") 2>conftest.er1
22781   ac_status=$?
22782   grep -v '^ *+' conftest.er1 >conftest.err
22783   rm -f conftest.er1
22784   cat conftest.err >&5
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && {
22787          test -z "$ac_cxx_werror_flag" ||
22788          test ! -s conftest.err
22789        } && test -s conftest$ac_exeext &&
22790        $as_test_x conftest$ac_exeext; then
22791   wx_cv_func_va_copy=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796         wx_cv_func_va_copy=no
22797
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22801       conftest$ac_exeext conftest.$ac_ext
22802         ac_ext=c
22803 ac_cpp='$CPP $CPPFLAGS'
22804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22807
22808
22809
22810 fi
22811 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22812 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
22813
22814 if test $wx_cv_func_va_copy = "yes"; then
22815     cat >>confdefs.h <<\_ACEOF
22816 #define HAVE_VA_COPY 1
22817 _ACEOF
22818
22819 else
22820         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22821 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
22822 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825
22826             if test "$cross_compiling" = yes; then
22827                   wx_cv_type_va_list_lvalue=yes
22828
22829 else
22830   cat >conftest.$ac_ext <<_ACEOF
22831
22832                 #include <stdarg.h>
22833                 int foo(char *f, ...)
22834                 {
22835                     va_list ap1, ap2;
22836                     va_start(ap1, f);
22837                     ap2 = ap1;
22838                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22839                         return 1;
22840                     va_end(ap2);
22841                     va_end(ap1);
22842                     return 0;
22843                 }
22844                 int main()
22845                 {
22846                     return foo("hi", 17);
22847                 }
22848 _ACEOF
22849 rm -f conftest$ac_exeext
22850 if { (ac_try="$ac_link"
22851 case "(($ac_try" in
22852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853   *) ac_try_echo=$ac_try;;
22854 esac
22855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856   (eval "$ac_link") 2>&5
22857   ac_status=$?
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22860   { (case "(($ac_try" in
22861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862   *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865   (eval "$ac_try") 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; }; then
22869   wx_cv_type_va_list_lvalue=yes
22870 else
22871   echo "$as_me: program exited with status $ac_status" >&5
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875 ( exit $ac_status )
22876 wx_cv_type_va_list_lvalue=no
22877 fi
22878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22879 fi
22880
22881
22882
22883
22884 fi
22885 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22886 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
22887
22888     if test $wx_cv_type_va_list_lvalue != "yes"; then
22889                         cat >>confdefs.h <<\_ACEOF
22890 #define VA_LIST_IS_ARRAY 1
22891 _ACEOF
22892
22893     fi
22894 fi
22895
22896 if test "$wxUSE_VARARG_MACROS" = "yes"; then
22897
22898 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22899 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
22900 if test "${wx_cv_have_variadic_macros+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903
22904                         ac_ext=cpp
22905 ac_cpp='$CXXCPP $CPPFLAGS'
22906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909
22910         cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916
22917                     #include <stdio.h>
22918                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22919
22920 int
22921 main ()
22922 {
22923
22924                     test("%s %d %p", "test", 1, 0);
22925
22926
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_compile") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } && {
22945          test -z "$ac_cxx_werror_flag" ||
22946          test ! -s conftest.err
22947        } && test -s conftest.$ac_objext; then
22948   wx_cv_have_variadic_macros=yes
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953         wx_cv_have_variadic_macros=no
22954
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958         ac_ext=c
22959 ac_cpp='$CPP $CPPFLAGS'
22960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22963
22964
22965
22966 fi
22967 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22968 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
22969
22970 if test $wx_cv_have_variadic_macros = "yes"; then
22971     cat >>confdefs.h <<\_ACEOF
22972 #define HAVE_VARIADIC_MACROS 1
22973 _ACEOF
22974
22975 fi
22976
22977 fi
22978 # Check whether --enable-largefile was given.
22979 if test "${enable_largefile+set}" = set; then
22980   enableval=$enable_largefile;
22981 fi
22982
22983 if test "$enable_largefile" != no; then
22984             wx_largefile=no
22985
22986     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22987 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22988 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991
22992           cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 #define _FILE_OFFSET_BITS 64
22999                           #include <sys/types.h>
23000 int
23001 main ()
23002 {
23003 typedef struct {
23004     unsigned int field: sizeof(off_t) == 8;
23005 } wxlf;
23006
23007   ;
23008   return 0;
23009 }
23010 _ACEOF
23011 rm -f conftest.$ac_objext
23012 if { (ac_try="$ac_compile"
23013 case "(($ac_try" in
23014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015   *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018   (eval "$ac_compile") 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } && {
23025          test -z "$ac_c_werror_flag" ||
23026          test ! -s conftest.err
23027        } && test -s conftest.$ac_objext; then
23028   ac_cv_sys_file_offset_bits=64
23029 else
23030   echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033         ac_cv_sys_file_offset_bits=no
23034 fi
23035
23036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23037
23038
23039 fi
23040 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23041 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23042
23043     if test "$ac_cv_sys_file_offset_bits" != no; then
23044         wx_largefile=yes
23045         cat >>confdefs.h <<_ACEOF
23046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23047 _ACEOF
23048
23049     fi
23050
23051     if test "x$wx_largefile" != "xyes"; then
23052
23053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23055 if test "${ac_cv_sys_large_files+set}" = set; then
23056   echo $ECHO_N "(cached) $ECHO_C" >&6
23057 else
23058
23059           cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065 #define _LARGE_FILES 1
23066                           #include <sys/types.h>
23067 int
23068 main ()
23069 {
23070 typedef struct {
23071     unsigned int field: sizeof(off_t) == 8;
23072 } wxlf;
23073
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082   *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085   (eval "$ac_compile") 2>conftest.er1
23086   ac_status=$?
23087   grep -v '^ *+' conftest.er1 >conftest.err
23088   rm -f conftest.er1
23089   cat conftest.err >&5
23090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091   (exit $ac_status); } && {
23092          test -z "$ac_c_werror_flag" ||
23093          test ! -s conftest.err
23094        } && test -s conftest.$ac_objext; then
23095   ac_cv_sys_large_files=1
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100         ac_cv_sys_large_files=no
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104
23105
23106 fi
23107 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23108 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23109
23110     if test "$ac_cv_sys_large_files" != no; then
23111         wx_largefile=yes
23112         cat >>confdefs.h <<_ACEOF
23113 #define _LARGE_FILES $ac_cv_sys_large_files
23114 _ACEOF
23115
23116     fi
23117
23118     fi
23119
23120     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23121 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23122     if test "x$wx_largefile" = "xyes"; then
23123         cat >>confdefs.h <<\_ACEOF
23124 #define HAVE_LARGEFILE_SUPPORT 1
23125 _ACEOF
23126
23127     fi
23128     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23129 echo "${ECHO_T}$wx_largefile" >&6; }
23130 fi
23131
23132
23133 if test "x$wx_largefile" = "xyes"; then
23134     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23135         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23136
23137                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23138             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23139 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23140 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23141   echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143
23144                     ac_ext=cpp
23145 ac_cpp='$CXXCPP $CPPFLAGS'
23146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23149
23150                     cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156
23157 int
23158 main ()
23159 {
23160
23161                             #ifndef __STDC_EXT__
23162                                 choke me
23163                             #endif
23164
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (ac_try="$ac_compile"
23171 case "(($ac_try" in
23172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173   *) ac_try_echo=$ac_try;;
23174 esac
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176   (eval "$ac_compile") 2>conftest.er1
23177   ac_status=$?
23178   grep -v '^ *+' conftest.er1 >conftest.err
23179   rm -f conftest.er1
23180   cat conftest.err >&5
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); } && {
23183          test -z "$ac_cxx_werror_flag" ||
23184          test ! -s conftest.err
23185        } && test -s conftest.$ac_objext; then
23186   wx_cv_STDC_EXT_required=no
23187 else
23188   echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.$ac_ext >&5
23190
23191         wx_cv_STDC_EXT_required=yes
23192
23193 fi
23194
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23196                     ac_ext=c
23197 ac_cpp='$CPP $CPPFLAGS'
23198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23201
23202
23203
23204 fi
23205 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23206 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23207             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23208                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23209             fi
23210         fi
23211     else
23212         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23213     fi
23214         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23215 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23216 if test "${ac_cv_sys_largefile_source+set}" = set; then
23217   echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219   while :; do
23220   cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 #include <sys/types.h> /* for off_t */
23227      #include <stdio.h>
23228 int
23229 main ()
23230 {
23231 int (*fp) (FILE *, off_t, int) = fseeko;
23232      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext conftest$ac_exeext
23238 if { (ac_try="$ac_link"
23239 case "(($ac_try" in
23240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241   *) ac_try_echo=$ac_try;;
23242 esac
23243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244   (eval "$ac_link") 2>conftest.er1
23245   ac_status=$?
23246   grep -v '^ *+' conftest.er1 >conftest.err
23247   rm -f conftest.er1
23248   cat conftest.err >&5
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); } && {
23251          test -z "$ac_c_werror_flag" ||
23252          test ! -s conftest.err
23253        } && test -s conftest$ac_exeext &&
23254        $as_test_x conftest$ac_exeext; then
23255   ac_cv_sys_largefile_source=no; break
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260
23261 fi
23262
23263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23264       conftest$ac_exeext conftest.$ac_ext
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 #define _LARGEFILE_SOURCE 1
23272 #include <sys/types.h> /* for off_t */
23273      #include <stdio.h>
23274 int
23275 main ()
23276 {
23277 int (*fp) (FILE *, off_t, int) = fseeko;
23278      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_link") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && {
23297          test -z "$ac_c_werror_flag" ||
23298          test ! -s conftest.err
23299        } && test -s conftest$ac_exeext &&
23300        $as_test_x conftest$ac_exeext; then
23301   ac_cv_sys_largefile_source=1; break
23302 else
23303   echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23305
23306
23307 fi
23308
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310       conftest$ac_exeext conftest.$ac_ext
23311   ac_cv_sys_largefile_source=unknown
23312   break
23313 done
23314 fi
23315 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23316 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23317 case $ac_cv_sys_largefile_source in #(
23318   no | unknown) ;;
23319   *)
23320 cat >>confdefs.h <<_ACEOF
23321 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23322 _ACEOF
23323 ;;
23324 esac
23325 rm -f conftest*
23326
23327 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23328 # in glibc 2.1.3, but that breaks too many other things.
23329 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23330 if test $ac_cv_sys_largefile_source != unknown; then
23331
23332 cat >>confdefs.h <<\_ACEOF
23333 #define HAVE_FSEEKO 1
23334 _ACEOF
23335
23336 fi
23337
23338     if test "$ac_cv_sys_largefile_source" != no; then
23339         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23340     fi
23341 fi
23342
23343 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23344 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23345 if test "${ac_cv_c_bigendian+set}" = set; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348   ac_cv_c_bigendian=unknown
23349 # See if sys/param.h defines the BYTE_ORDER macro.
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356 #include <sys/types.h>
23357 #include <sys/param.h>
23358 int
23359 main ()
23360 {
23361
23362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23363  bogus endian macros
23364 #endif
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (ac_try="$ac_compile"
23371 case "(($ac_try" in
23372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373   *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376   (eval "$ac_compile") 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } && {
23383          test -z "$ac_c_werror_flag" ||
23384          test ! -s conftest.err
23385        } && test -s conftest.$ac_objext; then
23386   # It does; now see whether it defined to BIG_ENDIAN or not.
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 #include <sys/types.h>
23394 #include <sys/param.h>
23395 int
23396 main ()
23397 {
23398
23399 #if BYTE_ORDER != BIG_ENDIAN
23400  not big endian
23401 #endif
23402   ;
23403   return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410   *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413   (eval "$ac_compile") 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && {
23420          test -z "$ac_c_werror_flag" ||
23421          test ! -s conftest.err
23422        } && test -s conftest.$ac_objext; then
23423   ac_cv_c_bigendian=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428         ac_cv_c_bigendian=no
23429 fi
23430
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436
23437 fi
23438
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 if test $ac_cv_c_bigendian = unknown; then
23441 if test "$cross_compiling" = yes; then
23442   ac_cv_c_bigendian=unknown
23443 else
23444   cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h.  */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h.  */
23450 main () {
23451   /* Are we little or big endian?  From Harbison&Steele.  */
23452   union
23453   {
23454     long l;
23455     char c[sizeof (long)];
23456   } u;
23457   u.l = 1;
23458   exit (u.c[sizeof (long) - 1] == 1);
23459 }
23460 _ACEOF
23461 rm -f conftest$ac_exeext
23462 if { (ac_try="$ac_link"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_link") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23472   { (case "(($ac_try" in
23473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474   *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477   (eval "$ac_try") 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481   ac_cv_c_bigendian=no
23482 else
23483   echo "$as_me: program exited with status $ac_status" >&5
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 ( exit $ac_status )
23488 ac_cv_c_bigendian=yes
23489 fi
23490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 fi
23492
23493
23494 fi
23495 fi
23496 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23498 if test $ac_cv_c_bigendian = unknown; then
23499   { 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
23500 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;}
23501 fi
23502 if test $ac_cv_c_bigendian = yes; then
23503   cat >>confdefs.h <<\_ACEOF
23504 #define WORDS_BIGENDIAN 1
23505 _ACEOF
23506
23507 fi
23508
23509
23510
23511
23512     ac_ext=cpp
23513 ac_cpp='$CXXCPP $CPPFLAGS'
23514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23517
23518
23519
23520 for ac_header in iostream
23521 do
23522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534
23535
23536 #include <$ac_header>
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_compile") 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } && {
23552          test -z "$ac_cxx_werror_flag" ||
23553          test ! -s conftest.err
23554        } && test -s conftest.$ac_objext; then
23555   eval "$as_ac_Header=yes"
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560         eval "$as_ac_Header=no"
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 fi
23565 ac_res=`eval echo '${'$as_ac_Header'}'`
23566                { echo "$as_me:$LINENO: result: $ac_res" >&5
23567 echo "${ECHO_T}$ac_res" >&6; }
23568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23569   cat >>confdefs.h <<_ACEOF
23570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23571 _ACEOF
23572
23573 fi
23574
23575 done
23576
23577
23578     if test "$ac_cv_header_iostream" = "yes" ; then
23579       :
23580     else
23581       cat >>confdefs.h <<\_ACEOF
23582 #define wxUSE_IOSTREAMH 1
23583 _ACEOF
23584
23585     fi
23586
23587     ac_ext=c
23588 ac_cpp='$CPP $CPPFLAGS'
23589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23592
23593
23594
23595
23596   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23597 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23598 if test "${wx_cv_cpp_bool+set}" = set; then
23599   echo $ECHO_N "(cached) $ECHO_C" >&6
23600 else
23601
23602
23603     ac_ext=cpp
23604 ac_cpp='$CXXCPP $CPPFLAGS'
23605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23608
23609
23610     cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617
23618 int
23619 main ()
23620 {
23621
23622         bool b = true;
23623
23624         return 0;
23625
23626   ;
23627   return 0;
23628 }
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634   *) ac_try_echo=$ac_try;;
23635 esac
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637   (eval "$ac_compile") 2>conftest.er1
23638   ac_status=$?
23639   grep -v '^ *+' conftest.er1 >conftest.err
23640   rm -f conftest.er1
23641   cat conftest.err >&5
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); } && {
23644          test -z "$ac_cxx_werror_flag" ||
23645          test ! -s conftest.err
23646        } && test -s conftest.$ac_objext; then
23647
23648         wx_cv_cpp_bool=yes
23649
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654
23655         wx_cv_cpp_bool=no
23656
23657
23658 fi
23659
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661
23662     ac_ext=c
23663 ac_cpp='$CPP $CPPFLAGS'
23664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23667
23668
23669 fi
23670 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23671 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23672
23673   if test "$wx_cv_cpp_bool" = "yes"; then
23674     cat >>confdefs.h <<\_ACEOF
23675 #define HAVE_BOOL 1
23676 _ACEOF
23677
23678   fi
23679
23680
23681
23682   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23683 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23684 if test "${wx_cv_explicit+set}" = set; then
23685   echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687
23688
23689     ac_ext=cpp
23690 ac_cpp='$CXXCPP $CPPFLAGS'
23691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23694
23695
23696             cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702
23703         class Foo { public: explicit Foo(int) {} };
23704
23705 int
23706 main ()
23707 {
23708
23709         return 0;
23710
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (ac_try="$ac_compile"
23717 case "(($ac_try" in
23718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719   *) ac_try_echo=$ac_try;;
23720 esac
23721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23722   (eval "$ac_compile") 2>conftest.er1
23723   ac_status=$?
23724   grep -v '^ *+' conftest.er1 >conftest.err
23725   rm -f conftest.er1
23726   cat conftest.err >&5
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } && {
23729          test -z "$ac_cxx_werror_flag" ||
23730          test ! -s conftest.err
23731        } && test -s conftest.$ac_objext; then
23732
23733         cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739
23740                 class Foo { public: explicit Foo(int) {} };
23741                 static void TakeFoo(const Foo& foo) { }
23742
23743 int
23744 main ()
23745 {
23746
23747                 TakeFoo(17);
23748                 return 0;
23749
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext
23755 if { (ac_try="$ac_compile"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_compile") 2>conftest.er1
23762   ac_status=$?
23763   grep -v '^ *+' conftest.er1 >conftest.err
23764   rm -f conftest.er1
23765   cat conftest.err >&5
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); } && {
23768          test -z "$ac_cxx_werror_flag" ||
23769          test ! -s conftest.err
23770        } && test -s conftest.$ac_objext; then
23771   wx_cv_explicit=no
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776         wx_cv_explicit=yes
23777
23778 fi
23779
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781
23782 else
23783   echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786         wx_cv_explicit=no
23787
23788 fi
23789
23790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791
23792     ac_ext=c
23793 ac_cpp='$CPP $CPPFLAGS'
23794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23797
23798
23799 fi
23800 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23801 echo "${ECHO_T}$wx_cv_explicit" >&6; }
23802
23803   if test "$wx_cv_explicit" = "yes"; then
23804     cat >>confdefs.h <<\_ACEOF
23805 #define HAVE_EXPLICIT 1
23806 _ACEOF
23807
23808   fi
23809
23810
23811 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23812 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
23813 if test "${ac_cv_cxx_const_cast+set}" = set; then
23814   echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23816
23817  ac_ext=cpp
23818 ac_cpp='$CXXCPP $CPPFLAGS'
23819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23822
23823  cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829
23830 int
23831 main ()
23832 {
23833 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23834   ;
23835   return 0;
23836 }
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842   *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845   (eval "$ac_compile") 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } && {
23852          test -z "$ac_cxx_werror_flag" ||
23853          test ! -s conftest.err
23854        } && test -s conftest.$ac_objext; then
23855   ac_cv_cxx_const_cast=yes
23856 else
23857   echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860         ac_cv_cxx_const_cast=no
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864  ac_ext=c
23865 ac_cpp='$CPP $CPPFLAGS'
23866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23869
23870
23871 fi
23872 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23873 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
23874 if test "$ac_cv_cxx_const_cast" = yes; then
23875
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_CONST_CAST
23878 _ACEOF
23879
23880 fi
23881
23882 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23883 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
23884 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23885   echo $ECHO_N "(cached) $ECHO_C" >&6
23886 else
23887
23888  ac_ext=cpp
23889 ac_cpp='$CXXCPP $CPPFLAGS'
23890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23893
23894  cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900 #include <typeinfo>
23901 class Base { public : Base () {} virtual void f () = 0;};
23902 class Derived : public Base { public : Derived () {} virtual void f () {} };
23903 class Unrelated { public : Unrelated () {} };
23904 int g (Unrelated&) { return 0; }
23905 int
23906 main ()
23907 {
23908
23909 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_compile") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_cxx_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest.$ac_objext; then
23931   ac_cv_cxx_reinterpret_cast=yes
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936         ac_cv_cxx_reinterpret_cast=no
23937 fi
23938
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940  ac_ext=c
23941 ac_cpp='$CPP $CPPFLAGS'
23942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23945
23946
23947 fi
23948 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23949 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
23950 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23951
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_REINTERPRET_CAST
23954 _ACEOF
23955
23956 fi
23957
23958 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23959 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
23960 if test "${ac_cv_cxx_static_cast+set}" = set; then
23961   echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963
23964  ac_ext=cpp
23965 ac_cpp='$CXXCPP $CPPFLAGS'
23966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23969
23970  cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h.  */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h.  */
23976 #include <typeinfo>
23977 class Base { public : Base () {} virtual void f () = 0; };
23978 class Derived : public Base { public : Derived () {} virtual void f () {} };
23979 int g (Derived&) { return 0; }
23980 int
23981 main ()
23982 {
23983
23984 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993   *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996   (eval "$ac_compile") 2>conftest.er1
23997   ac_status=$?
23998   grep -v '^ *+' conftest.er1 >conftest.err
23999   rm -f conftest.er1
24000   cat conftest.err >&5
24001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002   (exit $ac_status); } && {
24003          test -z "$ac_cxx_werror_flag" ||
24004          test ! -s conftest.err
24005        } && test -s conftest.$ac_objext; then
24006   ac_cv_cxx_static_cast=yes
24007 else
24008   echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011         ac_cv_cxx_static_cast=no
24012 fi
24013
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015  ac_ext=c
24016 ac_cpp='$CPP $CPPFLAGS'
24017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24020
24021
24022 fi
24023 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24024 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24025 if test "$ac_cv_cxx_static_cast" = yes; then
24026
24027 cat >>confdefs.h <<\_ACEOF
24028 #define HAVE_STATIC_CAST
24029 _ACEOF
24030
24031 fi
24032
24033
24034 if test "x$SUNCXX" = xyes; then
24035     CXXFLAGS="-features=tmplife $CXXFLAGS"
24036 fi
24037
24038 if test "x$SUNCC" = xyes; then
24039     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24040 fi
24041
24042 if test "x$SGICC" = "xyes"; then
24043     CFLAGS="-woff 3970 $CFLAGS"
24044 fi
24045 if test "x$SGICXX" = "xyes"; then
24046     CXXFLAGS="-woff 3970 $CXXFLAGS"
24047 fi
24048
24049 if test "x$HPCC" = "xyes"; then
24050                     CFLAGS="+W 2011,2450 $CFLAGS"
24051 fi
24052 if test "x$HPCXX" = "xyes"; then
24053             CXXFLAGS="+W 2340 $CXXFLAGS"
24054 fi
24055
24056 if test "x$COMPAQCXX" = "xyes"; then
24057                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24058 fi
24059
24060 ac_ext=cpp
24061 ac_cpp='$CXXCPP $CPPFLAGS'
24062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24065
24066
24067 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24068     if test "$wxUSE_UNICODE" = "yes"; then
24069         std_string="std::wstring"
24070         char_type="wchar_t"
24071     else
24072         std_string="std::string"
24073         char_type="char"
24074     fi
24075
24076         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24077 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24078 if test "${wx_cv_class_stdstring+set}" = set; then
24079   echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081
24082             cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h.  */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h.  */
24088 #include <string>
24089 int
24090 main ()
24091 {
24092 $std_string foo;
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 rm -f conftest.$ac_objext
24098 if { (ac_try="$ac_compile"
24099 case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_compile") 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && {
24111          test -z "$ac_cxx_werror_flag" ||
24112          test ! -s conftest.err
24113        } && test -s conftest.$ac_objext; then
24114   wx_cv_class_stdstring=yes
24115 else
24116   echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24118
24119         wx_cv_class_stdstring=no
24120
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124
24125
24126 fi
24127 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24128 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24129
24130     if test "$wx_cv_class_stdstring" = yes; then
24131         if test "$wxUSE_UNICODE" = "yes"; then
24132             cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_STD_WSTRING 1
24134 _ACEOF
24135
24136         fi
24137                     else
24138         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24139 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24140 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24141   echo $ECHO_N "(cached) $ECHO_C" >&6
24142 else
24143
24144                 cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h.  */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h.  */
24150
24151                     #ifdef HAVE_WCHAR_H
24152                     #  ifdef __CYGWIN__
24153                     #    include <stddef.h>
24154                     #  endif
24155                     #  include <wchar.h>
24156                     #endif
24157                     #ifdef HAVE_STDLIB_H
24158                     #  include <stdlib.h>
24159                     #endif
24160                     #include <stdio.h>
24161                     #include <string>
24162
24163 int
24164 main ()
24165 {
24166 std::basic_string<$char_type> foo;
24167                      const $char_type* dummy = foo.c_str();
24168   ;
24169   return 0;
24170 }
24171 _ACEOF
24172 rm -f conftest.$ac_objext
24173 if { (ac_try="$ac_compile"
24174 case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179   (eval "$ac_compile") 2>conftest.er1
24180   ac_status=$?
24181   grep -v '^ *+' conftest.er1 >conftest.err
24182   rm -f conftest.er1
24183   cat conftest.err >&5
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); } && {
24186          test -z "$ac_cxx_werror_flag" ||
24187          test ! -s conftest.err
24188        } && test -s conftest.$ac_objext; then
24189   wx_cv_class_stdbasicstring=yes
24190 else
24191   echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194         wx_cv_class_stdbasicstring=no
24195
24196 fi
24197
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199
24200
24201 fi
24202 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24203 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24204
24205         if test "$wx_cv_class_stdbasicstring" != yes; then
24206             if test "$wxUSE_STL" = "yes"; then
24207                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24208 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24209    { (exit 1); exit 1; }; }
24210             elif test "$wxUSE_STD_STRING" = "yes"; then
24211                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24212 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24213    { (exit 1); exit 1; }; }
24214             else
24215                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24216 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24217                 wxUSE_STD_STRING=no
24218             fi
24219         fi
24220     fi
24221 fi
24222
24223 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24224     { echo "$as_me:$LINENO: checking for std::istream" >&5
24225 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24226 if test "${ac_cv_type_std__istream+set}" = set; then
24227   echo $ECHO_N "(cached) $ECHO_C" >&6
24228 else
24229   cat >conftest.$ac_ext <<_ACEOF
24230 /* confdefs.h.  */
24231 _ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h.  */
24235 #include <iostream>
24236
24237 typedef std::istream ac__type_new_;
24238 int
24239 main ()
24240 {
24241 if ((ac__type_new_ *) 0)
24242   return 0;
24243 if (sizeof (ac__type_new_))
24244   return 0;
24245   ;
24246   return 0;
24247 }
24248 _ACEOF
24249 rm -f conftest.$ac_objext
24250 if { (ac_try="$ac_compile"
24251 case "(($ac_try" in
24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253   *) ac_try_echo=$ac_try;;
24254 esac
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256   (eval "$ac_compile") 2>conftest.er1
24257   ac_status=$?
24258   grep -v '^ *+' conftest.er1 >conftest.err
24259   rm -f conftest.er1
24260   cat conftest.err >&5
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } && {
24263          test -z "$ac_cxx_werror_flag" ||
24264          test ! -s conftest.err
24265        } && test -s conftest.$ac_objext; then
24266   ac_cv_type_std__istream=yes
24267 else
24268   echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271         ac_cv_type_std__istream=no
24272 fi
24273
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24275 fi
24276 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24277 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24278 if test $ac_cv_type_std__istream = yes; then
24279
24280 cat >>confdefs.h <<_ACEOF
24281 #define HAVE_STD__ISTREAM 1
24282 _ACEOF
24283
24284
24285 else
24286   wxUSE_STD_IOSTREAM=no
24287 fi
24288 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24289 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24290 if test "${ac_cv_type_std__ostream+set}" = set; then
24291   echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299 #include <iostream>
24300
24301 typedef std::ostream ac__type_new_;
24302 int
24303 main ()
24304 {
24305 if ((ac__type_new_ *) 0)
24306   return 0;
24307 if (sizeof (ac__type_new_))
24308   return 0;
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext
24314 if { (ac_try="$ac_compile"
24315 case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_compile") 2>conftest.er1
24321   ac_status=$?
24322   grep -v '^ *+' conftest.er1 >conftest.err
24323   rm -f conftest.er1
24324   cat conftest.err >&5
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); } && {
24327          test -z "$ac_cxx_werror_flag" ||
24328          test ! -s conftest.err
24329        } && test -s conftest.$ac_objext; then
24330   ac_cv_type_std__ostream=yes
24331 else
24332   echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24334
24335         ac_cv_type_std__ostream=no
24336 fi
24337
24338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 fi
24340 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24341 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24342 if test $ac_cv_type_std__ostream = yes; then
24343
24344 cat >>confdefs.h <<_ACEOF
24345 #define HAVE_STD__OSTREAM 1
24346 _ACEOF
24347
24348
24349 else
24350   wxUSE_STD_IOSTREAM=no
24351 fi
24352
24353
24354     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24355         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24356             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24357 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24358    { (exit 1); exit 1; }; }
24359         else
24360             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24361 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24362         fi
24363     fi
24364 fi
24365
24366 if test "$wxUSE_STL" = "yes"; then
24367         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24368 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24369 if test "${wx_cv_lib_stl+set}" = set; then
24370   echo $ECHO_N "(cached) $ECHO_C" >&6
24371 else
24372   cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378 #include <string>
24379             #include <functional>
24380             #include <algorithm>
24381             #include <vector>
24382             #include <list>
24383 int
24384 main ()
24385 {
24386 std::vector<int> moo;
24387              std::list<int> foo;
24388              std::vector<int>::iterator it =
24389                  std::find_if(moo.begin(), moo.end(),
24390                               std::bind2nd(std::less<int>(), 3));
24391   ;
24392   return 0;
24393 }
24394 _ACEOF
24395 rm -f conftest.$ac_objext
24396 if { (ac_try="$ac_compile"
24397 case "(($ac_try" in
24398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399   *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402   (eval "$ac_compile") 2>conftest.er1
24403   ac_status=$?
24404   grep -v '^ *+' conftest.er1 >conftest.err
24405   rm -f conftest.er1
24406   cat conftest.err >&5
24407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408   (exit $ac_status); } && {
24409          test -z "$ac_cxx_werror_flag" ||
24410          test ! -s conftest.err
24411        } && test -s conftest.$ac_objext; then
24412   wx_cv_lib_stl=yes
24413 else
24414   echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417         wx_cv_lib_stl=no
24418
24419 fi
24420
24421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24422
24423 fi
24424 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24425 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24426
24427     if test "$wx_cv_lib_stl" != yes; then
24428          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24429 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24430    { (exit 1); exit 1; }; }
24431     fi
24432
24433         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24434 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24435 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24436   echo $ECHO_N "(cached) $ECHO_C" >&6
24437 else
24438   cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444 #include <string>
24445 int
24446 main ()
24447 {
24448 std::string foo, bar;
24449             foo.compare(bar);
24450             foo.compare(1, 1, bar);
24451             foo.compare(1, 1, bar, 1, 1);
24452             foo.compare("");
24453             foo.compare(1, 1, "");
24454             foo.compare(1, 1, "", 2);
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext
24460 if { (ac_try="$ac_compile"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_compile") 2>conftest.er1
24467   ac_status=$?
24468   grep -v '^ *+' conftest.er1 >conftest.err
24469   rm -f conftest.er1
24470   cat conftest.err >&5
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); } && {
24473          test -z "$ac_cxx_werror_flag" ||
24474          test ! -s conftest.err
24475        } && test -s conftest.$ac_objext; then
24476   wx_cv_func_stdstring_compare=yes
24477 else
24478   echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481         wx_cv_func_stdstring_compare=no
24482
24483 fi
24484
24485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24486
24487 fi
24488 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24489 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24490
24491     if test "$wx_cv_func_stdstring_compare" = yes; then
24492         cat >>confdefs.h <<\_ACEOF
24493 #define HAVE_STD_STRING_COMPARE 1
24494 _ACEOF
24495
24496     fi
24497
24498         { echo "$as_me:$LINENO: checking for hash_map" >&5
24499 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24500 if test "${ac_cv_header_hash_map+set}" = set; then
24501   echo $ECHO_N "(cached) $ECHO_C" >&6
24502 else
24503   cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509
24510
24511
24512 #include <hash_map>
24513 _ACEOF
24514 rm -f conftest.$ac_objext
24515 if { (ac_try="$ac_compile"
24516 case "(($ac_try" in
24517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518   *) ac_try_echo=$ac_try;;
24519 esac
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521   (eval "$ac_compile") 2>conftest.er1
24522   ac_status=$?
24523   grep -v '^ *+' conftest.er1 >conftest.err
24524   rm -f conftest.er1
24525   cat conftest.err >&5
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); } && {
24528          test -z "$ac_cxx_werror_flag" ||
24529          test ! -s conftest.err
24530        } && test -s conftest.$ac_objext; then
24531   ac_cv_header_hash_map=yes
24532 else
24533   echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536         ac_cv_header_hash_map=no
24537 fi
24538
24539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24540 fi
24541 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24542 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24543 if test $ac_cv_header_hash_map = yes; then
24544   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
24545 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
24546 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 #include <hash_map>
24556                 #include <hash_set>
24557 int
24558 main ()
24559 {
24560 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24561                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24562   ;
24563   return 0;
24564 }
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (ac_try="$ac_compile"
24568 case "(($ac_try" in
24569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570   *) ac_try_echo=$ac_try;;
24571 esac
24572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573   (eval "$ac_compile") 2>conftest.er1
24574   ac_status=$?
24575   grep -v '^ *+' conftest.er1 >conftest.err
24576   rm -f conftest.er1
24577   cat conftest.err >&5
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); } && {
24580          test -z "$ac_cxx_werror_flag" ||
24581          test ! -s conftest.err
24582        } && test -s conftest.$ac_objext; then
24583   wx_cv_class_stdhashmapset=yes
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588         wx_cv_class_stdhashmapset=no
24589 fi
24590
24591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592
24593
24594 fi
24595 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24596 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
24597 fi
24598
24599
24600
24601     if test "$wx_cv_class_stdhashmapset" = yes; then
24602         cat >>confdefs.h <<\_ACEOF
24603 #define HAVE_HASH_MAP 1
24604 _ACEOF
24605
24606         cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_STD_HASH_MAP 1
24608 _ACEOF
24609
24610     fi
24611
24612     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24613 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
24614 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24615   echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617   cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623
24624
24625
24626 #include <ext/hash_map>
24627 _ACEOF
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632   *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635   (eval "$ac_compile") 2>conftest.er1
24636   ac_status=$?
24637   grep -v '^ *+' conftest.er1 >conftest.err
24638   rm -f conftest.er1
24639   cat conftest.err >&5
24640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); } && {
24642          test -z "$ac_cxx_werror_flag" ||
24643          test ! -s conftest.err
24644        } && test -s conftest.$ac_objext; then
24645   ac_cv_header_ext_hash_map=yes
24646 else
24647   echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24649
24650         ac_cv_header_ext_hash_map=no
24651 fi
24652
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654 fi
24655 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24656 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
24657 if test $ac_cv_header_ext_hash_map = yes; then
24658   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24659 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
24660 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669 #include <ext/hash_map>
24670                 #include <ext/hash_set>
24671 int
24672 main ()
24673 {
24674 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24675                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 rm -f conftest.$ac_objext
24681 if { (ac_try="$ac_compile"
24682 case "(($ac_try" in
24683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684   *) ac_try_echo=$ac_try;;
24685 esac
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687   (eval "$ac_compile") 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } && {
24694          test -z "$ac_cxx_werror_flag" ||
24695          test ! -s conftest.err
24696        } && test -s conftest.$ac_objext; then
24697   wx_cv_class_gnuhashmapset=yes
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702         wx_cv_class_gnuhashmapset=no
24703 fi
24704
24705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706
24707
24708 fi
24709 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24710 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
24711 fi
24712
24713
24714
24715     if test "$wx_cv_class_gnuhashmapset" = yes; then
24716          cat >>confdefs.h <<\_ACEOF
24717 #define HAVE_EXT_HASH_MAP 1
24718 _ACEOF
24719
24720          cat >>confdefs.h <<\_ACEOF
24721 #define HAVE_GNU_CXX_HASH_MAP 1
24722 _ACEOF
24723
24724     fi
24725 fi
24726
24727
24728
24729   if test -n "$GCC"; then
24730     { echo "$as_me:$LINENO: checking for __sync_fetch_* builtins" >&5
24731 echo $ECHO_N "checking for __sync_fetch_* builtins... $ECHO_C" >&6; }
24732     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
24733   echo $ECHO_N "(cached) $ECHO_C" >&6
24734 else
24735
24736       cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h.  */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h.  */
24742
24743 int
24744 main ()
24745 {
24746
24747           int value=0;
24748           __sync_fetch_and_add(&value, 1);
24749           __sync_sub_and_fetch(&value, 1);
24750
24751   ;
24752   return 0;
24753 }
24754 _ACEOF
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_compile") 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } && {
24769          test -z "$ac_cxx_werror_flag" ||
24770          test ! -s conftest.err
24771        } && test -s conftest.$ac_objext; then
24772   wx_cv_cc_gcc_atomic_builtins=yes
24773 else
24774   echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777         wx_cv_cc_gcc_atomic_builtins=no
24778 fi
24779
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781
24782 fi
24783
24784     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
24785 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
24786     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
24787       cat >>confdefs.h <<\_ACEOF
24788 #define HAVE_GCC_ATOMIC_BUILTINS 1
24789 _ACEOF
24790
24791     fi
24792   fi
24793
24794
24795 ac_ext=c
24796 ac_cpp='$CPP $CPPFLAGS'
24797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24800
24801
24802
24803 SEARCH_INCLUDE="\
24804     /usr/local/include        \
24805                               \
24806     /usr/Motif-2.1/include    \
24807     /usr/Motif-1.2/include    \
24808     /usr/include/Motif1.2     \
24809                               \
24810     /usr/dt/include           \
24811     /usr/openwin/include      \
24812                               \
24813     /usr/include/Xm           \
24814                               \
24815     /usr/X11R6/include        \
24816     /usr/X11R6.4/include      \
24817     /usr/X11R5/include        \
24818     /usr/X11R4/include        \
24819                               \
24820     /usr/include/X11R6        \
24821     /usr/include/X11R5        \
24822     /usr/include/X11R4        \
24823                               \
24824     /usr/local/X11R6/include  \
24825     /usr/local/X11R5/include  \
24826     /usr/local/X11R4/include  \
24827                               \
24828     /usr/local/include/X11R6  \
24829     /usr/local/include/X11R5  \
24830     /usr/local/include/X11R4  \
24831                               \
24832     /usr/X11/include          \
24833     /usr/include/X11          \
24834     /usr/local/X11/include    \
24835     /usr/local/include/X11    \
24836                               \
24837     /usr/XFree86/include/X11  \
24838     /usr/pkg/include          \
24839                               \
24840     /usr/openwin/share/include"
24841
24842 { echo "$as_me:$LINENO: checking for libraries directory" >&5
24843 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
24844
24845 case "${host}" in
24846     *-*-irix6* )
24847         if test "${wx_cv_std_libpath+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850
24851                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24852                     for e in a so sl dylib dll.a; do
24853                         libc="$d/libc.$e"
24854                         if test -f $libc; then
24855                             save_LIBS="$LIBS"
24856                             LIBS="$libc"
24857                             cat >conftest.$ac_ext <<_ACEOF
24858 int main() { return 0; }
24859 _ACEOF
24860 rm -f conftest.$ac_objext conftest$ac_exeext
24861 if { (ac_try="$ac_link"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_link") 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } && {
24874          test -z "$ac_c_werror_flag" ||
24875          test ! -s conftest.err
24876        } && test -s conftest$ac_exeext &&
24877        $as_test_x conftest$ac_exeext; then
24878   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883
24884 fi
24885
24886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24887       conftest$ac_exeext conftest.$ac_ext
24888                             LIBS="$save_LIBS"
24889                             if test "x$wx_cv_std_libpath" != "x"; then
24890                                 break 2
24891                             fi
24892                         fi
24893                     done
24894                 done
24895                 if test "x$wx_cv_std_libpath" = "x"; then
24896                     wx_cv_std_libpath="lib"
24897                 fi
24898
24899
24900 fi
24901
24902         ;;
24903
24904     *-*-solaris2* )
24905                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24906             wx_cv_std_libpath="lib/64"
24907         else
24908             wx_cv_std_libpath="lib"
24909         fi
24910         ;;
24911
24912     *-*-linux* )
24913                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24914                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24915             wx_cv_std_libpath="lib64"
24916         else
24917             wx_cv_std_libpath="lib"
24918         fi
24919         ;;
24920
24921     *)
24922         wx_cv_std_libpath="lib";
24923         ;;
24924 esac
24925
24926 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24927 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
24928
24929 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24930
24931 if test "$build" != "$host" -a "$GCC" = yes; then
24932                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24933         cross_root=`dirname $cross_root`
24934         cross_root=`dirname $cross_root`
24935
24936                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24937         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24938         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24939
24940                 if test -z "$PKG_CONFIG_PATH"; then
24941             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24942             export PKG_CONFIG_PATH
24943         fi
24944
24945                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24946
24947 ac_find_includes=
24948 for ac_dir in $SEARCH_INCLUDE /usr/include;
24949   do
24950     if test -f "$ac_dir/X11/Intrinsic.h"; then
24951       ac_find_includes=$ac_dir
24952       break
24953     fi
24954   done
24955
24956             x_includes=$ac_find_includes
24957         fi
24958         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24959
24960   ac_find_libraries=
24961   for ac_dir in $SEARCH_LIB;
24962   do
24963     for ac_extension in a so sl dylib dll.a; do
24964       if test -f "$ac_dir/libXt.$ac_extension"; then
24965         ac_find_libraries=$ac_dir
24966         break 2
24967       fi
24968     done
24969   done
24970
24971             x_libraries=$ac_find_libraries
24972         fi
24973     fi
24974 fi
24975
24976
24977 cat >confcache <<\_ACEOF
24978 # This file is a shell script that caches the results of configure
24979 # tests run on this system so they can be shared between configure
24980 # scripts and configure runs, see configure's option --config-cache.
24981 # It is not useful on other systems.  If it contains results you don't
24982 # want to keep, you may remove or edit it.
24983 #
24984 # config.status only pays attention to the cache file if you give it
24985 # the --recheck option to rerun configure.
24986 #
24987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24989 # following values.
24990
24991 _ACEOF
24992
24993 # The following way of writing the cache mishandles newlines in values,
24994 # but we know of no workaround that is simple, portable, and efficient.
24995 # So, we kill variables containing newlines.
24996 # Ultrix sh set writes to stderr and can't be redirected directly,
24997 # and sets the high bit in the cache file unless we assign to the vars.
24998 (
24999   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25000     eval ac_val=\$$ac_var
25001     case $ac_val in #(
25002     *${as_nl}*)
25003       case $ac_var in #(
25004       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25005 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25006       esac
25007       case $ac_var in #(
25008       _ | IFS | as_nl) ;; #(
25009       *) $as_unset $ac_var ;;
25010       esac ;;
25011     esac
25012   done
25013
25014   (set) 2>&1 |
25015     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25016     *${as_nl}ac_space=\ *)
25017       # `set' does not quote correctly, so add quotes (double-quote
25018       # substitution turns \\\\ into \\, and sed turns \\ into \).
25019       sed -n \
25020         "s/'/'\\\\''/g;
25021           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25022       ;; #(
25023     *)
25024       # `set' quotes correctly as required by POSIX, so do not add quotes.
25025       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25026       ;;
25027     esac |
25028     sort
25029 ) |
25030   sed '
25031      /^ac_cv_env_/b end
25032      t clear
25033      :clear
25034      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25035      t end
25036      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25037      :end' >>confcache
25038 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25039   if test -w "$cache_file"; then
25040     test "x$cache_file" != "x/dev/null" &&
25041       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25042 echo "$as_me: updating cache $cache_file" >&6;}
25043     cat confcache >$cache_file
25044   else
25045     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25046 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25047   fi
25048 fi
25049 rm -f confcache
25050
25051 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25052     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25053 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25054 if test "${wx_cv_lib_glibc21+set}" = set; then
25055   echo $ECHO_N "(cached) $ECHO_C" >&6
25056 else
25057
25058         cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064 #include <features.h>
25065 int
25066 main ()
25067 {
25068
25069                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25070                 not glibc 2.1
25071                 #endif
25072
25073   ;
25074   return 0;
25075 }
25076 _ACEOF
25077 rm -f conftest.$ac_objext
25078 if { (ac_try="$ac_compile"
25079 case "(($ac_try" in
25080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25081   *) ac_try_echo=$ac_try;;
25082 esac
25083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25084   (eval "$ac_compile") 2>conftest.er1
25085   ac_status=$?
25086   grep -v '^ *+' conftest.er1 >conftest.err
25087   rm -f conftest.er1
25088   cat conftest.err >&5
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); } && {
25091          test -z "$ac_c_werror_flag" ||
25092          test ! -s conftest.err
25093        } && test -s conftest.$ac_objext; then
25094
25095                 wx_cv_lib_glibc21=yes
25096
25097 else
25098   echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101
25102                 wx_cv_lib_glibc21=no
25103
25104
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108
25109 fi
25110 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25111 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25112     if test "$wx_cv_lib_glibc21" = "yes"; then
25113         cat >>confdefs.h <<\_ACEOF
25114 #define wxHAVE_GLIBC2 1
25115 _ACEOF
25116
25117     fi
25118 fi
25119
25120 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25121     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25122         cat >>confdefs.h <<\_ACEOF
25123 #define _GNU_SOURCE 1
25124 _ACEOF
25125
25126     fi
25127 fi
25128
25129 have_cos=0
25130 have_floor=0
25131
25132 for ac_func in cos
25133 do
25134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25138   echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140   cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h.  */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h.  */
25146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25148 #define $ac_func innocuous_$ac_func
25149
25150 /* System header to define __stub macros and hopefully few prototypes,
25151     which can conflict with char $ac_func (); below.
25152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25153     <limits.h> exists even on freestanding compilers.  */
25154
25155 #ifdef __STDC__
25156 # include <limits.h>
25157 #else
25158 # include <assert.h>
25159 #endif
25160
25161 #undef $ac_func
25162
25163 /* Override any GCC internal prototype to avoid an error.
25164    Use char because int might match the return type of a GCC
25165    builtin and then its argument prototype would still apply.  */
25166 #ifdef __cplusplus
25167 extern "C"
25168 #endif
25169 char $ac_func ();
25170 /* The GNU C library defines this for functions which it implements
25171     to always fail with ENOSYS.  Some functions are actually named
25172     something starting with __ and the normal name is an alias.  */
25173 #if defined __stub_$ac_func || defined __stub___$ac_func
25174 choke me
25175 #endif
25176
25177 int
25178 main ()
25179 {
25180 return $ac_func ();
25181   ;
25182   return 0;
25183 }
25184 _ACEOF
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (ac_try="$ac_link"
25187 case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192   (eval "$ac_link") 2>conftest.er1
25193   ac_status=$?
25194   grep -v '^ *+' conftest.er1 >conftest.err
25195   rm -f conftest.er1
25196   cat conftest.err >&5
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); } && {
25199          test -z "$ac_c_werror_flag" ||
25200          test ! -s conftest.err
25201        } && test -s conftest$ac_exeext &&
25202        $as_test_x conftest$ac_exeext; then
25203   eval "$as_ac_var=yes"
25204 else
25205   echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208         eval "$as_ac_var=no"
25209 fi
25210
25211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25212       conftest$ac_exeext conftest.$ac_ext
25213 fi
25214 ac_res=`eval echo '${'$as_ac_var'}'`
25215                { echo "$as_me:$LINENO: result: $ac_res" >&5
25216 echo "${ECHO_T}$ac_res" >&6; }
25217 if test `eval echo '${'$as_ac_var'}'` = yes; then
25218   cat >>confdefs.h <<_ACEOF
25219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25220 _ACEOF
25221  have_cos=1
25222 fi
25223 done
25224
25225
25226 for ac_func in floor
25227 do
25228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25232   echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234   cat >conftest.$ac_ext <<_ACEOF
25235 /* confdefs.h.  */
25236 _ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h.  */
25240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25242 #define $ac_func innocuous_$ac_func
25243
25244 /* System header to define __stub macros and hopefully few prototypes,
25245     which can conflict with char $ac_func (); below.
25246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25247     <limits.h> exists even on freestanding compilers.  */
25248
25249 #ifdef __STDC__
25250 # include <limits.h>
25251 #else
25252 # include <assert.h>
25253 #endif
25254
25255 #undef $ac_func
25256
25257 /* Override any GCC internal prototype to avoid an error.
25258    Use char because int might match the return type of a GCC
25259    builtin and then its argument prototype would still apply.  */
25260 #ifdef __cplusplus
25261 extern "C"
25262 #endif
25263 char $ac_func ();
25264 /* The GNU C library defines this for functions which it implements
25265     to always fail with ENOSYS.  Some functions are actually named
25266     something starting with __ and the normal name is an alias.  */
25267 #if defined __stub_$ac_func || defined __stub___$ac_func
25268 choke me
25269 #endif
25270
25271 int
25272 main ()
25273 {
25274 return $ac_func ();
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (ac_try="$ac_link"
25281 case "(($ac_try" in
25282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25283   *) ac_try_echo=$ac_try;;
25284 esac
25285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25286   (eval "$ac_link") 2>conftest.er1
25287   ac_status=$?
25288   grep -v '^ *+' conftest.er1 >conftest.err
25289   rm -f conftest.er1
25290   cat conftest.err >&5
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); } && {
25293          test -z "$ac_c_werror_flag" ||
25294          test ! -s conftest.err
25295        } && test -s conftest$ac_exeext &&
25296        $as_test_x conftest$ac_exeext; then
25297   eval "$as_ac_var=yes"
25298 else
25299   echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25301
25302         eval "$as_ac_var=no"
25303 fi
25304
25305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25306       conftest$ac_exeext conftest.$ac_ext
25307 fi
25308 ac_res=`eval echo '${'$as_ac_var'}'`
25309                { echo "$as_me:$LINENO: result: $ac_res" >&5
25310 echo "${ECHO_T}$ac_res" >&6; }
25311 if test `eval echo '${'$as_ac_var'}'` = yes; then
25312   cat >>confdefs.h <<_ACEOF
25313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25314 _ACEOF
25315  have_floor=1
25316 fi
25317 done
25318
25319 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25320 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25321 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25322     { echo "$as_me:$LINENO: result: yes" >&5
25323 echo "${ECHO_T}yes" >&6; }
25324 else
25325     { echo "$as_me:$LINENO: result: no" >&5
25326 echo "${ECHO_T}no" >&6; }
25327     LIBS="$LIBS -lm"
25328     # use different functions to avoid configure caching
25329     have_sin=0
25330     have_ceil=0
25331
25332 for ac_func in sin
25333 do
25334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25338   echo $ECHO_N "(cached) $ECHO_C" >&6
25339 else
25340   cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25348 #define $ac_func innocuous_$ac_func
25349
25350 /* System header to define __stub macros and hopefully few prototypes,
25351     which can conflict with char $ac_func (); below.
25352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25353     <limits.h> exists even on freestanding compilers.  */
25354
25355 #ifdef __STDC__
25356 # include <limits.h>
25357 #else
25358 # include <assert.h>
25359 #endif
25360
25361 #undef $ac_func
25362
25363 /* Override any GCC internal prototype to avoid an error.
25364    Use char because int might match the return type of a GCC
25365    builtin and then its argument prototype would still apply.  */
25366 #ifdef __cplusplus
25367 extern "C"
25368 #endif
25369 char $ac_func ();
25370 /* The GNU C library defines this for functions which it implements
25371     to always fail with ENOSYS.  Some functions are actually named
25372     something starting with __ and the normal name is an alias.  */
25373 #if defined __stub_$ac_func || defined __stub___$ac_func
25374 choke me
25375 #endif
25376
25377 int
25378 main ()
25379 {
25380 return $ac_func ();
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext conftest$ac_exeext
25386 if { (ac_try="$ac_link"
25387 case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_link") 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } && {
25399          test -z "$ac_c_werror_flag" ||
25400          test ! -s conftest.err
25401        } && test -s conftest$ac_exeext &&
25402        $as_test_x conftest$ac_exeext; then
25403   eval "$as_ac_var=yes"
25404 else
25405   echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25407
25408         eval "$as_ac_var=no"
25409 fi
25410
25411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25412       conftest$ac_exeext conftest.$ac_ext
25413 fi
25414 ac_res=`eval echo '${'$as_ac_var'}'`
25415                { echo "$as_me:$LINENO: result: $ac_res" >&5
25416 echo "${ECHO_T}$ac_res" >&6; }
25417 if test `eval echo '${'$as_ac_var'}'` = yes; then
25418   cat >>confdefs.h <<_ACEOF
25419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25420 _ACEOF
25421  have_sin=1
25422 fi
25423 done
25424
25425
25426 for ac_func in ceil
25427 do
25428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25429 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25432   echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434   cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h.  */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h.  */
25440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25442 #define $ac_func innocuous_$ac_func
25443
25444 /* System header to define __stub macros and hopefully few prototypes,
25445     which can conflict with char $ac_func (); below.
25446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25447     <limits.h> exists even on freestanding compilers.  */
25448
25449 #ifdef __STDC__
25450 # include <limits.h>
25451 #else
25452 # include <assert.h>
25453 #endif
25454
25455 #undef $ac_func
25456
25457 /* Override any GCC internal prototype to avoid an error.
25458    Use char because int might match the return type of a GCC
25459    builtin and then its argument prototype would still apply.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 char $ac_func ();
25464 /* The GNU C library defines this for functions which it implements
25465     to always fail with ENOSYS.  Some functions are actually named
25466     something starting with __ and the normal name is an alias.  */
25467 #if defined __stub_$ac_func || defined __stub___$ac_func
25468 choke me
25469 #endif
25470
25471 int
25472 main ()
25473 {
25474 return $ac_func ();
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486   (eval "$ac_link") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest$ac_exeext &&
25496        $as_test_x conftest$ac_exeext; then
25497   eval "$as_ac_var=yes"
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502         eval "$as_ac_var=no"
25503 fi
25504
25505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25506       conftest$ac_exeext conftest.$ac_ext
25507 fi
25508 ac_res=`eval echo '${'$as_ac_var'}'`
25509                { echo "$as_me:$LINENO: result: $ac_res" >&5
25510 echo "${ECHO_T}$ac_res" >&6; }
25511 if test `eval echo '${'$as_ac_var'}'` = yes; then
25512   cat >>confdefs.h <<_ACEOF
25513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25514 _ACEOF
25515  have_ceil=1
25516 fi
25517 done
25518
25519     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25520 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25521     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25522         { echo "$as_me:$LINENO: result: yes" >&5
25523 echo "${ECHO_T}yes" >&6; }
25524     else
25525         { echo "$as_me:$LINENO: result: no" >&5
25526 echo "${ECHO_T}no" >&6; }
25527         # not sure we should warn the user, crash, etc.
25528     fi
25529 fi
25530
25531 ac_ext=cpp
25532 ac_cpp='$CXXCPP $CPPFLAGS'
25533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25536
25537 if test "wxUSE_UNICODE" = "yes"; then
25538
25539   for wx_func in wcstoull
25540   do
25541     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25542 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25543 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546
25547         cat >conftest.$ac_ext <<_ACEOF
25548
25549             /* confdefs.h.  */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h.  */
25554
25555
25556                 $ac_includes_default
25557
25558 int
25559 main ()
25560 {
25561
25562                 #ifndef $wx_func
25563                   &$wx_func;
25564                 #endif
25565
25566
25567   ;
25568   return 0;
25569 }
25570
25571 _ACEOF
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (ac_try="$ac_link"
25574 case "(($ac_try" in
25575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576   *) ac_try_echo=$ac_try;;
25577 esac
25578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25579   (eval "$ac_link") 2>conftest.er1
25580   ac_status=$?
25581   grep -v '^ *+' conftest.er1 >conftest.err
25582   rm -f conftest.er1
25583   cat conftest.err >&5
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); } && {
25586          test -z "$ac_cxx_werror_flag" ||
25587          test ! -s conftest.err
25588        } && test -s conftest$ac_exeext &&
25589        $as_test_x conftest$ac_exeext; then
25590   eval wx_cv_func_$wx_func=yes
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595         eval wx_cv_func_$wx_func=no
25596 fi
25597
25598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25599       conftest$ac_exeext conftest.$ac_ext
25600
25601 fi
25602 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25603                { echo "$as_me:$LINENO: result: $ac_res" >&5
25604 echo "${ECHO_T}$ac_res" >&6; }
25605
25606     if eval test \$wx_cv_func_$wx_func = yes
25607     then
25608       cat >>confdefs.h <<_ACEOF
25609 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25610 _ACEOF
25611
25612
25613     else
25614       :
25615
25616     fi
25617   done
25618
25619 else
25620
25621   for wx_func in strtoull
25622   do
25623     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25624 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25625 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25626   echo $ECHO_N "(cached) $ECHO_C" >&6
25627 else
25628
25629         cat >conftest.$ac_ext <<_ACEOF
25630
25631             /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636
25637
25638                 $ac_includes_default
25639
25640 int
25641 main ()
25642 {
25643
25644                 #ifndef $wx_func
25645                   &$wx_func;
25646                 #endif
25647
25648
25649   ;
25650   return 0;
25651 }
25652
25653 _ACEOF
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (ac_try="$ac_link"
25656 case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661   (eval "$ac_link") 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } && {
25668          test -z "$ac_cxx_werror_flag" ||
25669          test ! -s conftest.err
25670        } && test -s conftest$ac_exeext &&
25671        $as_test_x conftest$ac_exeext; then
25672   eval wx_cv_func_$wx_func=yes
25673 else
25674   echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25676
25677         eval wx_cv_func_$wx_func=no
25678 fi
25679
25680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25681       conftest$ac_exeext conftest.$ac_ext
25682
25683 fi
25684 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25685                { echo "$as_me:$LINENO: result: $ac_res" >&5
25686 echo "${ECHO_T}$ac_res" >&6; }
25687
25688     if eval test \$wx_cv_func_$wx_func = yes
25689     then
25690       cat >>confdefs.h <<_ACEOF
25691 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25692 _ACEOF
25693
25694
25695     else
25696       :
25697
25698     fi
25699   done
25700
25701 fi
25702 ac_ext=c
25703 ac_cpp='$CPP $CPPFLAGS'
25704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25707
25708
25709
25710
25711 if test "$wxUSE_REGEX" != "no"; then
25712     cat >>confdefs.h <<\_ACEOF
25713 #define wxUSE_REGEX 1
25714 _ACEOF
25715
25716
25717     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25718         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25719 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25720         wxUSE_REGEX=builtin
25721     fi
25722
25723     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25724                         { echo "$as_me:$LINENO: checking for regex.h" >&5
25725 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
25726 if test "${ac_cv_header_regex_h+set}" = set; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735
25736
25737 #include <regex.h>
25738 _ACEOF
25739 rm -f conftest.$ac_objext
25740 if { (ac_try="$ac_compile"
25741 case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_compile") 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } && {
25753          test -z "$ac_c_werror_flag" ||
25754          test ! -s conftest.err
25755        } && test -s conftest.$ac_objext; then
25756   ac_cv_header_regex_h=yes
25757 else
25758   echo "$as_me: failed program was:" >&5
25759 sed 's/^/| /' conftest.$ac_ext >&5
25760
25761         ac_cv_header_regex_h=no
25762 fi
25763
25764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 fi
25766 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25767 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
25768 if test $ac_cv_header_regex_h = yes; then
25769
25770
25771 for ac_func in regcomp re_search
25772 do
25773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779   cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25787 #define $ac_func innocuous_$ac_func
25788
25789 /* System header to define __stub macros and hopefully few prototypes,
25790     which can conflict with char $ac_func (); below.
25791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25792     <limits.h> exists even on freestanding compilers.  */
25793
25794 #ifdef __STDC__
25795 # include <limits.h>
25796 #else
25797 # include <assert.h>
25798 #endif
25799
25800 #undef $ac_func
25801
25802 /* Override any GCC internal prototype to avoid an error.
25803    Use char because int might match the return type of a GCC
25804    builtin and then its argument prototype would still apply.  */
25805 #ifdef __cplusplus
25806 extern "C"
25807 #endif
25808 char $ac_func ();
25809 /* The GNU C library defines this for functions which it implements
25810     to always fail with ENOSYS.  Some functions are actually named
25811     something starting with __ and the normal name is an alias.  */
25812 #if defined __stub_$ac_func || defined __stub___$ac_func
25813 choke me
25814 #endif
25815
25816 int
25817 main ()
25818 {
25819 return $ac_func ();
25820   ;
25821   return 0;
25822 }
25823 _ACEOF
25824 rm -f conftest.$ac_objext conftest$ac_exeext
25825 if { (ac_try="$ac_link"
25826 case "(($ac_try" in
25827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828   *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831   (eval "$ac_link") 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } && {
25838          test -z "$ac_c_werror_flag" ||
25839          test ! -s conftest.err
25840        } && test -s conftest$ac_exeext &&
25841        $as_test_x conftest$ac_exeext; then
25842   eval "$as_ac_var=yes"
25843 else
25844   echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847         eval "$as_ac_var=no"
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25851       conftest$ac_exeext conftest.$ac_ext
25852 fi
25853 ac_res=`eval echo '${'$as_ac_var'}'`
25854                { echo "$as_me:$LINENO: result: $ac_res" >&5
25855 echo "${ECHO_T}$ac_res" >&6; }
25856 if test `eval echo '${'$as_ac_var'}'` = yes; then
25857   cat >>confdefs.h <<_ACEOF
25858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25859 _ACEOF
25860
25861 fi
25862 done
25863
25864 fi
25865
25866
25867
25868         if test "x$ac_cv_func_regcomp" != "xyes"; then
25869             if test "$wxUSE_REGEX" = "sys" ; then
25870                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25871 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25872    { (exit 1); exit 1; }; }
25873             else
25874                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25875 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25876                 wxUSE_REGEX=builtin
25877             fi
25878         else
25879                         wxUSE_REGEX=sys
25880                         cat >>confdefs.h <<\_ACEOF
25881 #define WX_NO_REGEX_ADVANCED 1
25882 _ACEOF
25883
25884         fi
25885     fi
25886 fi
25887
25888
25889 ZLIB_LINK=
25890 if test "$wxUSE_ZLIB" != "no" ; then
25891     cat >>confdefs.h <<\_ACEOF
25892 #define wxUSE_ZLIB 1
25893 _ACEOF
25894
25895
25896     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25897                                                 if test "$USE_DARWIN" = 1; then
25898             system_zlib_h_ok="yes"
25899         else
25900                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25901 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
25902 if test "${ac_cv_header_zlib_h+set}" = set; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905   if test "$cross_compiling" = yes; then
25906                       unset ac_cv_header_zlib_h
25907
25908 else
25909   cat >conftest.$ac_ext <<_ACEOF
25910 /* confdefs.h.  */
25911 _ACEOF
25912 cat confdefs.h >>conftest.$ac_ext
25913 cat >>conftest.$ac_ext <<_ACEOF
25914 /* end confdefs.h.  */
25915
25916                         #include <zlib.h>
25917                         #include <stdio.h>
25918
25919                         int main()
25920                         {
25921                             FILE *f=fopen("conftestval", "w");
25922                             if (!f) exit(1);
25923                             fprintf(f, "%s",
25924                                     ZLIB_VERSION[0] == '1' &&
25925                                     (ZLIB_VERSION[2] > '1' ||
25926                                     (ZLIB_VERSION[2] == '1' &&
25927                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25928                             exit(0);
25929                         }
25930
25931 _ACEOF
25932 rm -f conftest$ac_exeext
25933 if { (ac_try="$ac_link"
25934 case "(($ac_try" in
25935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936   *) ac_try_echo=$ac_try;;
25937 esac
25938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939   (eval "$ac_link") 2>&5
25940   ac_status=$?
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25943   { (case "(($ac_try" in
25944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945   *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948   (eval "$ac_try") 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; }; then
25952   ac_cv_header_zlib_h=`cat conftestval`
25953 else
25954   echo "$as_me: program exited with status $ac_status" >&5
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958 ( exit $ac_status )
25959 ac_cv_header_zlib_h=no
25960 fi
25961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25962 fi
25963
25964
25965
25966 fi
25967 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25968 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25969                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
25970 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25971 if test "${ac_cv_header_zlib_h+set}" = set; then
25972   echo $ECHO_N "(cached) $ECHO_C" >&6
25973 else
25974   cat >conftest.$ac_ext <<_ACEOF
25975 /* confdefs.h.  */
25976 _ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h.  */
25980
25981
25982 #include <zlib.h>
25983 _ACEOF
25984 rm -f conftest.$ac_objext
25985 if { (ac_try="$ac_compile"
25986 case "(($ac_try" in
25987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988   *) ac_try_echo=$ac_try;;
25989 esac
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991   (eval "$ac_compile") 2>conftest.er1
25992   ac_status=$?
25993   grep -v '^ *+' conftest.er1 >conftest.err
25994   rm -f conftest.er1
25995   cat conftest.err >&5
25996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997   (exit $ac_status); } && {
25998          test -z "$ac_c_werror_flag" ||
25999          test ! -s conftest.err
26000        } && test -s conftest.$ac_objext; then
26001   ac_cv_header_zlib_h=yes
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006         ac_cv_header_zlib_h=no
26007 fi
26008
26009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 fi
26011 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26012 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26013
26014
26015
26016             system_zlib_h_ok=$ac_cv_header_zlib_h
26017         fi
26018
26019         if test "$system_zlib_h_ok" = "yes"; then
26020             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26021 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26022 if test "${ac_cv_lib_z_deflate+set}" = set; then
26023   echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025   ac_check_lib_save_LIBS=$LIBS
26026 LIBS="-lz  $LIBS"
26027 cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h.  */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h.  */
26033
26034 /* Override any GCC internal prototype to avoid an error.
26035    Use char because int might match the return type of a GCC
26036    builtin and then its argument prototype would still apply.  */
26037 #ifdef __cplusplus
26038 extern "C"
26039 #endif
26040 char deflate ();
26041 int
26042 main ()
26043 {
26044 return deflate ();
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest.$ac_objext conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053   *) ac_try_echo=$ac_try;;
26054 esac
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056   (eval "$ac_link") 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } && {
26063          test -z "$ac_c_werror_flag" ||
26064          test ! -s conftest.err
26065        } && test -s conftest$ac_exeext &&
26066        $as_test_x conftest$ac_exeext; then
26067   ac_cv_lib_z_deflate=yes
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072         ac_cv_lib_z_deflate=no
26073 fi
26074
26075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26076       conftest$ac_exeext conftest.$ac_ext
26077 LIBS=$ac_check_lib_save_LIBS
26078 fi
26079 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26080 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26081 if test $ac_cv_lib_z_deflate = yes; then
26082   ZLIB_LINK=" -lz"
26083 fi
26084
26085         fi
26086
26087         if test "x$ZLIB_LINK" = "x" ; then
26088             if test "$wxUSE_ZLIB" = "sys" ; then
26089                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26090 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26091    { (exit 1); exit 1; }; }
26092             else
26093                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26094 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26095                 wxUSE_ZLIB=builtin
26096             fi
26097         else
26098                         wxUSE_ZLIB=sys
26099         fi
26100     fi
26101 fi
26102
26103
26104 PNG_LINK=
26105 if test "$wxUSE_LIBPNG" != "no" ; then
26106     cat >>confdefs.h <<\_ACEOF
26107 #define wxUSE_LIBPNG 1
26108 _ACEOF
26109
26110
26111     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26112         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26113 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26114         wxUSE_LIBPNG=sys
26115     fi
26116
26117                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26118         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26119 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26120         wxUSE_LIBPNG=builtin
26121     fi
26122
26123     if test "$wxUSE_MGL" != 1 ; then
26124                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26125                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26126 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26127 if test "${ac_cv_header_png_h+set}" = set; then
26128   echo $ECHO_N "(cached) $ECHO_C" >&6
26129 else
26130   if test "$cross_compiling" = yes; then
26131                       unset ac_cv_header_png_h
26132
26133 else
26134   cat >conftest.$ac_ext <<_ACEOF
26135 /* confdefs.h.  */
26136 _ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h.  */
26140
26141                         #include <png.h>
26142                         #include <stdio.h>
26143
26144                         int main()
26145                         {
26146                             FILE *f=fopen("conftestval", "w");
26147                             if (!f) exit(1);
26148                             fprintf(f, "%s",
26149                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26150                             exit(0);
26151                         }
26152
26153 _ACEOF
26154 rm -f conftest$ac_exeext
26155 if { (ac_try="$ac_link"
26156 case "(($ac_try" in
26157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26158   *) ac_try_echo=$ac_try;;
26159 esac
26160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26161   (eval "$ac_link") 2>&5
26162   ac_status=$?
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26165   { (case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_try") 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; }; then
26174   ac_cv_header_png_h=`cat conftestval`
26175 else
26176   echo "$as_me: program exited with status $ac_status" >&5
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26179
26180 ( exit $ac_status )
26181 ac_cv_header_png_h=no
26182 fi
26183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26184 fi
26185
26186
26187
26188 fi
26189 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26190 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26191             { echo "$as_me:$LINENO: checking for png.h" >&5
26192 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26193 if test "${ac_cv_header_png_h+set}" = set; then
26194   echo $ECHO_N "(cached) $ECHO_C" >&6
26195 else
26196   cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202
26203
26204 #include <png.h>
26205 _ACEOF
26206 rm -f conftest.$ac_objext
26207 if { (ac_try="$ac_compile"
26208 case "(($ac_try" in
26209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210   *) ac_try_echo=$ac_try;;
26211 esac
26212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26213   (eval "$ac_compile") 2>conftest.er1
26214   ac_status=$?
26215   grep -v '^ *+' conftest.er1 >conftest.err
26216   rm -f conftest.er1
26217   cat conftest.err >&5
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); } && {
26220          test -z "$ac_c_werror_flag" ||
26221          test ! -s conftest.err
26222        } && test -s conftest.$ac_objext; then
26223   ac_cv_header_png_h=yes
26224 else
26225   echo "$as_me: failed program was:" >&5
26226 sed 's/^/| /' conftest.$ac_ext >&5
26227
26228         ac_cv_header_png_h=no
26229 fi
26230
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26232 fi
26233 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26234 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26235
26236
26237
26238             if test "$ac_cv_header_png_h" = "yes"; then
26239                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26240 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26241 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244   ac_check_lib_save_LIBS=$LIBS
26245 LIBS="-lpng -lz -lm $LIBS"
26246 cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h.  */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h.  */
26252
26253 /* Override any GCC internal prototype to avoid an error.
26254    Use char because int might match the return type of a GCC
26255    builtin and then its argument prototype would still apply.  */
26256 #ifdef __cplusplus
26257 extern "C"
26258 #endif
26259 char png_check_sig ();
26260 int
26261 main ()
26262 {
26263 return png_check_sig ();
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 rm -f conftest.$ac_objext conftest$ac_exeext
26269 if { (ac_try="$ac_link"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275   (eval "$ac_link") 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } && {
26282          test -z "$ac_c_werror_flag" ||
26283          test ! -s conftest.err
26284        } && test -s conftest$ac_exeext &&
26285        $as_test_x conftest$ac_exeext; then
26286   ac_cv_lib_png_png_check_sig=yes
26287 else
26288   echo "$as_me: failed program was:" >&5
26289 sed 's/^/| /' conftest.$ac_ext >&5
26290
26291         ac_cv_lib_png_png_check_sig=no
26292 fi
26293
26294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26295       conftest$ac_exeext conftest.$ac_ext
26296 LIBS=$ac_check_lib_save_LIBS
26297 fi
26298 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26299 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26300 if test $ac_cv_lib_png_png_check_sig = yes; then
26301   PNG_LINK=" -lpng -lz"
26302 fi
26303
26304             fi
26305
26306             if test "x$PNG_LINK" = "x" ; then
26307                 if test "$wxUSE_LIBPNG" = "sys" ; then
26308                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26309 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26310    { (exit 1); exit 1; }; }
26311                 else
26312                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26313 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26314                     wxUSE_LIBPNG=builtin
26315                 fi
26316             else
26317                                 wxUSE_LIBPNG=sys
26318             fi
26319         fi
26320     fi
26321 fi
26322
26323
26324 JPEG_LINK=
26325 if test "$wxUSE_LIBJPEG" != "no" ; then
26326     cat >>confdefs.h <<\_ACEOF
26327 #define wxUSE_LIBJPEG 1
26328 _ACEOF
26329
26330
26331     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26332         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26333 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26334         wxUSE_LIBJPEG=sys
26335     fi
26336
26337     if test "$wxUSE_MGL" != 1 ; then
26338                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26339                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26340 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26341             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26342   echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26344   cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350
26351                         #undef HAVE_STDLIB_H
26352                         #include <stdio.h>
26353                         #include <jpeglib.h>
26354
26355 int
26356 main ()
26357 {
26358
26359
26360   ;
26361   return 0;
26362 }
26363 _ACEOF
26364 rm -f conftest.$ac_objext
26365 if { (ac_try="$ac_compile"
26366 case "(($ac_try" in
26367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368   *) ac_try_echo=$ac_try;;
26369 esac
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371   (eval "$ac_compile") 2>conftest.er1
26372   ac_status=$?
26373   grep -v '^ *+' conftest.er1 >conftest.err
26374   rm -f conftest.er1
26375   cat conftest.err >&5
26376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377   (exit $ac_status); } && {
26378          test -z "$ac_c_werror_flag" ||
26379          test ! -s conftest.err
26380        } && test -s conftest.$ac_objext; then
26381   ac_cv_header_jpeglib_h=yes
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386         ac_cv_header_jpeglib_h=no
26387
26388 fi
26389
26390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391
26392 fi
26393
26394             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26395 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26396
26397             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26398                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26399 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26400 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26401   echo $ECHO_N "(cached) $ECHO_C" >&6
26402 else
26403   ac_check_lib_save_LIBS=$LIBS
26404 LIBS="-ljpeg  $LIBS"
26405 cat >conftest.$ac_ext <<_ACEOF
26406 /* confdefs.h.  */
26407 _ACEOF
26408 cat confdefs.h >>conftest.$ac_ext
26409 cat >>conftest.$ac_ext <<_ACEOF
26410 /* end confdefs.h.  */
26411
26412 /* Override any GCC internal prototype to avoid an error.
26413    Use char because int might match the return type of a GCC
26414    builtin and then its argument prototype would still apply.  */
26415 #ifdef __cplusplus
26416 extern "C"
26417 #endif
26418 char jpeg_read_header ();
26419 int
26420 main ()
26421 {
26422 return jpeg_read_header ();
26423   ;
26424   return 0;
26425 }
26426 _ACEOF
26427 rm -f conftest.$ac_objext conftest$ac_exeext
26428 if { (ac_try="$ac_link"
26429 case "(($ac_try" in
26430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431   *) ac_try_echo=$ac_try;;
26432 esac
26433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26434   (eval "$ac_link") 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && {
26441          test -z "$ac_c_werror_flag" ||
26442          test ! -s conftest.err
26443        } && test -s conftest$ac_exeext &&
26444        $as_test_x conftest$ac_exeext; then
26445   ac_cv_lib_jpeg_jpeg_read_header=yes
26446 else
26447   echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26449
26450         ac_cv_lib_jpeg_jpeg_read_header=no
26451 fi
26452
26453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26454       conftest$ac_exeext conftest.$ac_ext
26455 LIBS=$ac_check_lib_save_LIBS
26456 fi
26457 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26458 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26459 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26460   JPEG_LINK=" -ljpeg"
26461 fi
26462
26463             fi
26464
26465             if test "x$JPEG_LINK" = "x" ; then
26466                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26467                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26468 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26469    { (exit 1); exit 1; }; }
26470                 else
26471                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26472 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26473                     wxUSE_LIBJPEG=builtin
26474                 fi
26475             else
26476                                 wxUSE_LIBJPEG=sys
26477
26478                 if test "$wxUSE_MSW" = 1; then
26479                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26480 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26481 if test "${ac_cv_type_boolean+set}" = set; then
26482   echo $ECHO_N "(cached) $ECHO_C" >&6
26483 else
26484   cat >conftest.$ac_ext <<_ACEOF
26485 /* confdefs.h.  */
26486 _ACEOF
26487 cat confdefs.h >>conftest.$ac_ext
26488 cat >>conftest.$ac_ext <<_ACEOF
26489 /* end confdefs.h.  */
26490 #include <windows.h>
26491
26492 typedef boolean ac__type_new_;
26493 int
26494 main ()
26495 {
26496 if ((ac__type_new_ *) 0)
26497   return 0;
26498 if (sizeof (ac__type_new_))
26499   return 0;
26500   ;
26501   return 0;
26502 }
26503 _ACEOF
26504 rm -f conftest.$ac_objext
26505 if { (ac_try="$ac_compile"
26506 case "(($ac_try" in
26507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508   *) ac_try_echo=$ac_try;;
26509 esac
26510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26511   (eval "$ac_compile") 2>conftest.er1
26512   ac_status=$?
26513   grep -v '^ *+' conftest.er1 >conftest.err
26514   rm -f conftest.er1
26515   cat conftest.err >&5
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); } && {
26518          test -z "$ac_c_werror_flag" ||
26519          test ! -s conftest.err
26520        } && test -s conftest.$ac_objext; then
26521   ac_cv_type_boolean=yes
26522 else
26523   echo "$as_me: failed program was:" >&5
26524 sed 's/^/| /' conftest.$ac_ext >&5
26525
26526         ac_cv_type_boolean=no
26527 fi
26528
26529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 fi
26531 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26532 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26533 if test $ac_cv_type_boolean = yes; then
26534
26535 cat >>confdefs.h <<_ACEOF
26536 #define HAVE_BOOLEAN 1
26537 _ACEOF
26538
26539
26540                             { echo "$as_me:$LINENO: checking for boolean" >&5
26541 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26542 if test "${ac_cv_type_boolean+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545   cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551
26552                                     #undef HAVE_BOOLEAN
26553                                     #include <stdio.h>
26554                                     #include <jpeglib.h>
26555
26556
26557 typedef boolean ac__type_new_;
26558 int
26559 main ()
26560 {
26561 if ((ac__type_new_ *) 0)
26562   return 0;
26563 if (sizeof (ac__type_new_))
26564   return 0;
26565   ;
26566   return 0;
26567 }
26568 _ACEOF
26569 rm -f conftest.$ac_objext
26570 if { (ac_try="$ac_compile"
26571 case "(($ac_try" in
26572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573   *) ac_try_echo=$ac_try;;
26574 esac
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576   (eval "$ac_compile") 2>conftest.er1
26577   ac_status=$?
26578   grep -v '^ *+' conftest.er1 >conftest.err
26579   rm -f conftest.er1
26580   cat conftest.err >&5
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); } && {
26583          test -z "$ac_c_werror_flag" ||
26584          test ! -s conftest.err
26585        } && test -s conftest.$ac_objext; then
26586   ac_cv_type_boolean=yes
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591         ac_cv_type_boolean=no
26592 fi
26593
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26595 fi
26596 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26597 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26598
26599 # The cast to long int works around a bug in the HP C Compiler
26600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26602 # This bug is HP SR number 8606223364.
26603 { echo "$as_me:$LINENO: checking size of boolean" >&5
26604 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
26605 if test "${ac_cv_sizeof_boolean+set}" = set; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608   if test "$cross_compiling" = yes; then
26609   # Depending upon the size, compute the lo and hi bounds.
26610 cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616
26617                                     #undef HAVE_BOOLEAN
26618                                     #include <stdio.h>
26619                                     #include <jpeglib.h>
26620
26621
26622    typedef boolean ac__type_sizeof_;
26623 int
26624 main ()
26625 {
26626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26627 test_array [0] = 0
26628
26629   ;
26630   return 0;
26631 }
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637   *) ac_try_echo=$ac_try;;
26638 esac
26639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26640   (eval "$ac_compile") 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } && {
26647          test -z "$ac_c_werror_flag" ||
26648          test ! -s conftest.err
26649        } && test -s conftest.$ac_objext; then
26650   ac_lo=0 ac_mid=0
26651   while :; do
26652     cat >conftest.$ac_ext <<_ACEOF
26653 /* confdefs.h.  */
26654 _ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h.  */
26658
26659                                     #undef HAVE_BOOLEAN
26660                                     #include <stdio.h>
26661                                     #include <jpeglib.h>
26662
26663
26664    typedef boolean ac__type_sizeof_;
26665 int
26666 main ()
26667 {
26668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26669 test_array [0] = 0
26670
26671   ;
26672   return 0;
26673 }
26674 _ACEOF
26675 rm -f conftest.$ac_objext
26676 if { (ac_try="$ac_compile"
26677 case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_compile") 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } && {
26689          test -z "$ac_c_werror_flag" ||
26690          test ! -s conftest.err
26691        } && test -s conftest.$ac_objext; then
26692   ac_hi=$ac_mid; break
26693 else
26694   echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697         ac_lo=`expr $ac_mid + 1`
26698                         if test $ac_lo -le $ac_mid; then
26699                           ac_lo= ac_hi=
26700                           break
26701                         fi
26702                         ac_mid=`expr 2 '*' $ac_mid + 1`
26703 fi
26704
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706   done
26707 else
26708   echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711         cat >conftest.$ac_ext <<_ACEOF
26712 /* confdefs.h.  */
26713 _ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h.  */
26717
26718                                     #undef HAVE_BOOLEAN
26719                                     #include <stdio.h>
26720                                     #include <jpeglib.h>
26721
26722
26723    typedef boolean ac__type_sizeof_;
26724 int
26725 main ()
26726 {
26727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26728 test_array [0] = 0
26729
26730   ;
26731   return 0;
26732 }
26733 _ACEOF
26734 rm -f conftest.$ac_objext
26735 if { (ac_try="$ac_compile"
26736 case "(($ac_try" in
26737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738   *) ac_try_echo=$ac_try;;
26739 esac
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741   (eval "$ac_compile") 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } && {
26748          test -z "$ac_c_werror_flag" ||
26749          test ! -s conftest.err
26750        } && test -s conftest.$ac_objext; then
26751   ac_hi=-1 ac_mid=-1
26752   while :; do
26753     cat >conftest.$ac_ext <<_ACEOF
26754 /* confdefs.h.  */
26755 _ACEOF
26756 cat confdefs.h >>conftest.$ac_ext
26757 cat >>conftest.$ac_ext <<_ACEOF
26758 /* end confdefs.h.  */
26759
26760                                     #undef HAVE_BOOLEAN
26761                                     #include <stdio.h>
26762                                     #include <jpeglib.h>
26763
26764
26765    typedef boolean ac__type_sizeof_;
26766 int
26767 main ()
26768 {
26769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26770 test_array [0] = 0
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 rm -f conftest.$ac_objext
26777 if { (ac_try="$ac_compile"
26778 case "(($ac_try" in
26779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780   *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783   (eval "$ac_compile") 2>conftest.er1
26784   ac_status=$?
26785   grep -v '^ *+' conftest.er1 >conftest.err
26786   rm -f conftest.er1
26787   cat conftest.err >&5
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } && {
26790          test -z "$ac_c_werror_flag" ||
26791          test ! -s conftest.err
26792        } && test -s conftest.$ac_objext; then
26793   ac_lo=$ac_mid; break
26794 else
26795   echo "$as_me: failed program was:" >&5
26796 sed 's/^/| /' conftest.$ac_ext >&5
26797
26798         ac_hi=`expr '(' $ac_mid ')' - 1`
26799                         if test $ac_mid -le $ac_hi; then
26800                           ac_lo= ac_hi=
26801                           break
26802                         fi
26803                         ac_mid=`expr 2 '*' $ac_mid`
26804 fi
26805
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807   done
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812         ac_lo= ac_hi=
26813 fi
26814
26815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26816 fi
26817
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26819 # Binary search between lo and hi bounds.
26820 while test "x$ac_lo" != "x$ac_hi"; do
26821   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26822   cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828
26829                                     #undef HAVE_BOOLEAN
26830                                     #include <stdio.h>
26831                                     #include <jpeglib.h>
26832
26833
26834    typedef boolean ac__type_sizeof_;
26835 int
26836 main ()
26837 {
26838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26839 test_array [0] = 0
26840
26841   ;
26842   return 0;
26843 }
26844 _ACEOF
26845 rm -f conftest.$ac_objext
26846 if { (ac_try="$ac_compile"
26847 case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852   (eval "$ac_compile") 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } && {
26859          test -z "$ac_c_werror_flag" ||
26860          test ! -s conftest.err
26861        } && test -s conftest.$ac_objext; then
26862   ac_hi=$ac_mid
26863 else
26864   echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26866
26867         ac_lo=`expr '(' $ac_mid ')' + 1`
26868 fi
26869
26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871 done
26872 case $ac_lo in
26873 ?*) ac_cv_sizeof_boolean=$ac_lo;;
26874 '') if test "$ac_cv_type_boolean" = yes; then
26875      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
26876 See \`config.log' for more details." >&5
26877 echo "$as_me: error: cannot compute sizeof (boolean)
26878 See \`config.log' for more details." >&2;}
26879    { (exit 77); exit 77; }; }
26880    else
26881      ac_cv_sizeof_boolean=0
26882    fi ;;
26883 esac
26884 else
26885   cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891
26892                                     #undef HAVE_BOOLEAN
26893                                     #include <stdio.h>
26894                                     #include <jpeglib.h>
26895
26896
26897    typedef boolean ac__type_sizeof_;
26898 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26899 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26900 #include <stdio.h>
26901 #include <stdlib.h>
26902 int
26903 main ()
26904 {
26905
26906   FILE *f = fopen ("conftest.val", "w");
26907   if (! f)
26908     return 1;
26909   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26910     {
26911       long int i = longval ();
26912       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26913         return 1;
26914       fprintf (f, "%ld\n", i);
26915     }
26916   else
26917     {
26918       unsigned long int i = ulongval ();
26919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26920         return 1;
26921       fprintf (f, "%lu\n", i);
26922     }
26923   return ferror (f) || fclose (f) != 0;
26924
26925   ;
26926   return 0;
26927 }
26928 _ACEOF
26929 rm -f conftest$ac_exeext
26930 if { (ac_try="$ac_link"
26931 case "(($ac_try" in
26932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933   *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936   (eval "$ac_link") 2>&5
26937   ac_status=$?
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26940   { (case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_try") 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; }; then
26949   ac_cv_sizeof_boolean=`cat conftest.val`
26950 else
26951   echo "$as_me: program exited with status $ac_status" >&5
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 ( exit $ac_status )
26956 if test "$ac_cv_type_boolean" = yes; then
26957      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
26958 See \`config.log' for more details." >&5
26959 echo "$as_me: error: cannot compute sizeof (boolean)
26960 See \`config.log' for more details." >&2;}
26961    { (exit 77); exit 77; }; }
26962    else
26963      ac_cv_sizeof_boolean=0
26964    fi
26965 fi
26966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26967 fi
26968 rm -f conftest.val
26969 fi
26970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
26971 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
26972
26973
26974
26975 cat >>confdefs.h <<_ACEOF
26976 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
26977 _ACEOF
26978
26979
26980                             cat >>confdefs.h <<_ACEOF
26981 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
26982 _ACEOF
26983
26984
26985 fi
26986
26987                 fi
26988             fi
26989         fi
26990     fi
26991 fi
26992
26993
26994 TIFF_LINK=
26995 TIFF_PREREQ_LINKS=-lm
26996 if test "$wxUSE_LIBTIFF" != "no" ; then
26997     cat >>confdefs.h <<\_ACEOF
26998 #define wxUSE_LIBTIFF 1
26999 _ACEOF
27000
27001
27002     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27003                         if test "$wxUSE_LIBJPEG" = "sys"; then
27004             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27005         fi
27006         if test "$wxUSE_ZLIB" = "sys"; then
27007             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27008         fi
27009         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27010 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27011 if test "${ac_cv_header_tiffio_h+set}" = set; then
27012   echo $ECHO_N "(cached) $ECHO_C" >&6
27013 else
27014   cat >conftest.$ac_ext <<_ACEOF
27015 /* confdefs.h.  */
27016 _ACEOF
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h.  */
27020
27021
27022
27023 #include <tiffio.h>
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (ac_try="$ac_compile"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032   (eval "$ac_compile") 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } && {
27039          test -z "$ac_c_werror_flag" ||
27040          test ! -s conftest.err
27041        } && test -s conftest.$ac_objext; then
27042   ac_cv_header_tiffio_h=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_cv_header_tiffio_h=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 fi
27052 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27053 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27054 if test $ac_cv_header_tiffio_h = yes; then
27055
27056                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27057 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27058 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27059   echo $ECHO_N "(cached) $ECHO_C" >&6
27060 else
27061   ac_check_lib_save_LIBS=$LIBS
27062 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27063 cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069
27070 /* Override any GCC internal prototype to avoid an error.
27071    Use char because int might match the return type of a GCC
27072    builtin and then its argument prototype would still apply.  */
27073 #ifdef __cplusplus
27074 extern "C"
27075 #endif
27076 char TIFFError ();
27077 int
27078 main ()
27079 {
27080 return TIFFError ();
27081   ;
27082   return 0;
27083 }
27084 _ACEOF
27085 rm -f conftest.$ac_objext conftest$ac_exeext
27086 if { (ac_try="$ac_link"
27087 case "(($ac_try" in
27088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089   *) ac_try_echo=$ac_try;;
27090 esac
27091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092   (eval "$ac_link") 2>conftest.er1
27093   ac_status=$?
27094   grep -v '^ *+' conftest.er1 >conftest.err
27095   rm -f conftest.er1
27096   cat conftest.err >&5
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); } && {
27099          test -z "$ac_c_werror_flag" ||
27100          test ! -s conftest.err
27101        } && test -s conftest$ac_exeext &&
27102        $as_test_x conftest$ac_exeext; then
27103   ac_cv_lib_tiff_TIFFError=yes
27104 else
27105   echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27107
27108         ac_cv_lib_tiff_TIFFError=no
27109 fi
27110
27111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27112       conftest$ac_exeext conftest.$ac_ext
27113 LIBS=$ac_check_lib_save_LIBS
27114 fi
27115 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27116 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27117 if test $ac_cv_lib_tiff_TIFFError = yes; then
27118   TIFF_LINK=" -ltiff"
27119 fi
27120
27121
27122 fi
27123
27124
27125
27126         if test "x$TIFF_LINK" = "x" ; then
27127             if test "$wxUSE_LIBTIFF" = "sys" ; then
27128                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27129 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27130    { (exit 1); exit 1; }; }
27131             else
27132                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27133 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27134                 wxUSE_LIBTIFF=builtin
27135             fi
27136         else
27137                         wxUSE_LIBTIFF=sys
27138         fi
27139     fi
27140     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27141         if test "$wxUSE_LIBJPEG" = "no"; then
27142                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27143         fi
27144         subdirs="$subdirs src/tiff"
27145
27146     fi
27147 fi
27148
27149
27150 if test "$wxUSE_WCHAR_T" != "yes"; then
27151     if test "$wxUSE_EXPAT" != "no"; then
27152         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27153 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27154         wxUSE_EXPAT=no
27155     fi
27156     if test "$wxUSE_XML" != "no"; then
27157         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27158 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27159         wxUSE_XML=no
27160     fi
27161 fi
27162
27163 if test "$wxUSE_EXPAT" != "no"; then
27164     wxUSE_XML=yes
27165     cat >>confdefs.h <<\_ACEOF
27166 #define wxUSE_EXPAT 1
27167 _ACEOF
27168
27169     cat >>confdefs.h <<\_ACEOF
27170 #define wxUSE_XML 1
27171 _ACEOF
27172
27173
27174     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27175         { echo "$as_me:$LINENO: checking for expat.h" >&5
27176 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27177 if test "${ac_cv_header_expat_h+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186
27187
27188 #include <expat.h>
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (ac_try="$ac_compile"
27192 case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_compile") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest.$ac_objext; then
27207   ac_cv_header_expat_h=yes
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212         ac_cv_header_expat_h=no
27213 fi
27214
27215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 fi
27217 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27218 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27219 if test $ac_cv_header_expat_h = yes; then
27220   found_expat_h=1
27221 fi
27222
27223
27224         if test "x$found_expat_h" = "x1"; then
27225                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27226 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27227 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27228   echo $ECHO_N "(cached) $ECHO_C" >&6
27229 else
27230
27231                 ac_ext=cpp
27232 ac_cpp='$CXXCPP $CPPFLAGS'
27233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27236
27237                 cat >conftest.$ac_ext <<_ACEOF
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243 #include <expat.h>
27244 int
27245 main ()
27246 {
27247
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext
27253 if { (ac_try="$ac_compile"
27254 case "(($ac_try" in
27255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256   *) ac_try_echo=$ac_try;;
27257 esac
27258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259   (eval "$ac_compile") 2>conftest.er1
27260   ac_status=$?
27261   grep -v '^ *+' conftest.er1 >conftest.err
27262   rm -f conftest.er1
27263   cat conftest.err >&5
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); } && {
27266          test -z "$ac_cxx_werror_flag" ||
27267          test ! -s conftest.err
27268        } && test -s conftest.$ac_objext; then
27269   wx_cv_expat_is_not_broken=yes
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274         wx_cv_expat_is_not_broken=no
27275
27276 fi
27277
27278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279                 ac_ext=c
27280 ac_cpp='$CPP $CPPFLAGS'
27281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27284
27285
27286
27287 fi
27288 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27289 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27290             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27291                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27292 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27293 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27294   echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296   ac_check_lib_save_LIBS=$LIBS
27297 LIBS="-lexpat  $LIBS"
27298 cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304
27305 /* Override any GCC internal prototype to avoid an error.
27306    Use char because int might match the return type of a GCC
27307    builtin and then its argument prototype would still apply.  */
27308 #ifdef __cplusplus
27309 extern "C"
27310 #endif
27311 char XML_ParserCreate ();
27312 int
27313 main ()
27314 {
27315 return XML_ParserCreate ();
27316   ;
27317   return 0;
27318 }
27319 _ACEOF
27320 rm -f conftest.$ac_objext conftest$ac_exeext
27321 if { (ac_try="$ac_link"
27322 case "(($ac_try" in
27323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324   *) ac_try_echo=$ac_try;;
27325 esac
27326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327   (eval "$ac_link") 2>conftest.er1
27328   ac_status=$?
27329   grep -v '^ *+' conftest.er1 >conftest.err
27330   rm -f conftest.er1
27331   cat conftest.err >&5
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); } && {
27334          test -z "$ac_c_werror_flag" ||
27335          test ! -s conftest.err
27336        } && test -s conftest$ac_exeext &&
27337        $as_test_x conftest$ac_exeext; then
27338   ac_cv_lib_expat_XML_ParserCreate=yes
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         ac_cv_lib_expat_XML_ParserCreate=no
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27347       conftest$ac_exeext conftest.$ac_ext
27348 LIBS=$ac_check_lib_save_LIBS
27349 fi
27350 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27351 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27352 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27353   EXPAT_LINK=" -lexpat"
27354 fi
27355
27356             fi
27357         fi
27358         if test "x$EXPAT_LINK" = "x" ; then
27359             if test "$wxUSE_EXPAT" = "sys" ; then
27360                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27361 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27362    { (exit 1); exit 1; }; }
27363             else
27364                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27365 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27366                 wxUSE_EXPAT=builtin
27367             fi
27368         else
27369                         wxUSE_EXPAT=sys
27370         fi
27371     fi
27372     if test "$wxUSE_EXPAT" = "builtin" ; then
27373                 subdirs="$subdirs src/expat"
27374
27375     fi
27376 fi
27377
27378
27379
27380 if test "$wxUSE_LIBMSPACK" != "no"; then
27381     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27382 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27383 if test "${ac_cv_header_mspack_h+set}" = set; then
27384   echo $ECHO_N "(cached) $ECHO_C" >&6
27385 else
27386   cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392
27393
27394 #include <mspack.h>
27395 _ACEOF
27396 rm -f conftest.$ac_objext
27397 if { (ac_try="$ac_compile"
27398 case "(($ac_try" in
27399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400   *) ac_try_echo=$ac_try;;
27401 esac
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403   (eval "$ac_compile") 2>conftest.er1
27404   ac_status=$?
27405   grep -v '^ *+' conftest.er1 >conftest.err
27406   rm -f conftest.er1
27407   cat conftest.err >&5
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); } && {
27410          test -z "$ac_c_werror_flag" ||
27411          test ! -s conftest.err
27412        } && test -s conftest.$ac_objext; then
27413   ac_cv_header_mspack_h=yes
27414 else
27415   echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418         ac_cv_header_mspack_h=no
27419 fi
27420
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422 fi
27423 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27424 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27425 if test $ac_cv_header_mspack_h = yes; then
27426   found_mspack_h=1
27427 fi
27428
27429
27430     if test "x$found_mspack_h" = "x1"; then
27431         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27432 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27433 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 else
27436   ac_check_lib_save_LIBS=$LIBS
27437 LIBS="-lmspack  $LIBS"
27438 cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444
27445 /* Override any GCC internal prototype to avoid an error.
27446    Use char because int might match the return type of a GCC
27447    builtin and then its argument prototype would still apply.  */
27448 #ifdef __cplusplus
27449 extern "C"
27450 #endif
27451 char mspack_create_chm_decompressor ();
27452 int
27453 main ()
27454 {
27455 return mspack_create_chm_decompressor ();
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_link") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } && {
27474          test -z "$ac_c_werror_flag" ||
27475          test ! -s conftest.err
27476        } && test -s conftest$ac_exeext &&
27477        $as_test_x conftest$ac_exeext; then
27478   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27479 else
27480   echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27484 fi
27485
27486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27487       conftest$ac_exeext conftest.$ac_ext
27488 LIBS=$ac_check_lib_save_LIBS
27489 fi
27490 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27491 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27492 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27493   MSPACK_LINK=" -lmspack"
27494 fi
27495
27496     fi
27497     if test "x$MSPACK_LINK" = "x" ; then
27498         wxUSE_LIBMSPACK=no
27499     fi
27500 fi
27501
27502 if test "$wxUSE_LIBMSPACK" != "no"; then
27503     cat >>confdefs.h <<\_ACEOF
27504 #define wxUSE_LIBMSPACK 1
27505 _ACEOF
27506
27507 fi
27508
27509
27510
27511 AFMINSTALL=
27512 WIN32INSTALL=
27513
27514 TOOLKIT=
27515 TOOLKIT_INCLUDE=
27516 WIDGET_SET=
27517
27518 if test "$USE_WIN32" = 1 ; then
27519
27520 for ac_header in w32api.h
27521 do
27522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27526   echo $ECHO_N "(cached) $ECHO_C" >&6
27527 else
27528   cat >conftest.$ac_ext <<_ACEOF
27529 /* confdefs.h.  */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h.  */
27534
27535
27536 #include <$ac_header>
27537 _ACEOF
27538 rm -f conftest.$ac_objext
27539 if { (ac_try="$ac_compile"
27540 case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545   (eval "$ac_compile") 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } && {
27552          test -z "$ac_c_werror_flag" ||
27553          test ! -s conftest.err
27554        } && test -s conftest.$ac_objext; then
27555   eval "$as_ac_Header=yes"
27556 else
27557   echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27559
27560         eval "$as_ac_Header=no"
27561 fi
27562
27563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564 fi
27565 ac_res=`eval echo '${'$as_ac_Header'}'`
27566                { echo "$as_me:$LINENO: result: $ac_res" >&5
27567 echo "${ECHO_T}$ac_res" >&6; }
27568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27569   cat >>confdefs.h <<_ACEOF
27570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27571 _ACEOF
27572
27573 fi
27574
27575 done
27576
27577     { echo "$as_me:$LINENO: checking for windows.h" >&5
27578 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
27579 if test "${ac_cv_header_windows_h+set}" = set; then
27580   echo $ECHO_N "(cached) $ECHO_C" >&6
27581 else
27582   cat >conftest.$ac_ext <<_ACEOF
27583 /* confdefs.h.  */
27584 _ACEOF
27585 cat confdefs.h >>conftest.$ac_ext
27586 cat >>conftest.$ac_ext <<_ACEOF
27587 /* end confdefs.h.  */
27588
27589
27590 #include <windows.h>
27591 _ACEOF
27592 rm -f conftest.$ac_objext
27593 if { (ac_try="$ac_compile"
27594 case "(($ac_try" in
27595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596   *) ac_try_echo=$ac_try;;
27597 esac
27598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599   (eval "$ac_compile") 2>conftest.er1
27600   ac_status=$?
27601   grep -v '^ *+' conftest.er1 >conftest.err
27602   rm -f conftest.er1
27603   cat conftest.err >&5
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); } && {
27606          test -z "$ac_c_werror_flag" ||
27607          test ! -s conftest.err
27608        } && test -s conftest.$ac_objext; then
27609   ac_cv_header_windows_h=yes
27610 else
27611   echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27613
27614         ac_cv_header_windows_h=no
27615 fi
27616
27617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27618 fi
27619 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27620 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
27621 if test $ac_cv_header_windows_h = yes; then
27622   :
27623 else
27624
27625         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27626 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27627    { (exit 1); exit 1; }; }
27628
27629 fi
27630
27631
27632
27633             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27634
27635     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27636         LIBS="$LIBS -loleacc"
27637     fi
27638
27639     case "${host}" in
27640         *-*-cygwin* )
27641                         LIBS="$LIBS -lkernel32 -luser32"
27642     esac
27643
27644         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27645     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27646
27647                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27648
27649         WIN32INSTALL=win32install
27650
27651         { echo "$as_me:$LINENO: checking for pbt.h" >&5
27652 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
27653 if test "${ac_cv_header_pbt_h+set}" = set; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662
27663
27664 #include <pbt.h>
27665 _ACEOF
27666 rm -f conftest.$ac_objext
27667 if { (ac_try="$ac_compile"
27668 case "(($ac_try" in
27669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670   *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673   (eval "$ac_compile") 2>conftest.er1
27674   ac_status=$?
27675   grep -v '^ *+' conftest.er1 >conftest.err
27676   rm -f conftest.er1
27677   cat conftest.err >&5
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); } && {
27680          test -z "$ac_c_werror_flag" ||
27681          test ! -s conftest.err
27682        } && test -s conftest.$ac_objext; then
27683   ac_cv_header_pbt_h=yes
27684 else
27685   echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688         ac_cv_header_pbt_h=no
27689 fi
27690
27691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27692 fi
27693 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
27694 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
27695 if test $ac_cv_header_pbt_h = yes; then
27696   :
27697 else
27698   cat >>confdefs.h <<\_ACEOF
27699 #define NEED_PBT_H 1
27700 _ACEOF
27701
27702 fi
27703
27704
27705 fi
27706
27707 if test "$wxUSE_GUI" = "yes"; then
27708     USE_GUI=1
27709
27710     GUI_TK_LIBRARY=
27711
27712     WXGTK12=
27713     WXGTK127=
27714     WXGTK2=
27715     WXGPE=
27716
27717     if test "$wxUSE_COCOA" = 1 ; then
27718         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27719             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27720 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27721             wxUSE_PRINTING_ARCHITECTURE=no
27722         fi
27723         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27724             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27725 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27726             wxUSE_DRAG_AND_DROP=no
27727         fi
27728         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27729             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
27730 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
27731             wxUSE_DRAGIMAGE=no
27732         fi
27733     fi
27734
27735     if test "$wxUSE_MSW" = 1 ; then
27736         TOOLKIT=MSW
27737         GUIDIST=MSW_DIST
27738
27739                 case "${host}" in
27740             *-*-mingw32* )
27741                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27742         esac
27743     fi
27744
27745     if test "$wxUSE_GTK" = 1; then
27746                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
27747 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
27748
27749         gtk_version_cached=1
27750         if test "${wx_cv_lib_gtk+set}" = set; then
27751   echo $ECHO_N "(cached) $ECHO_C" >&6
27752 else
27753
27754                                                 gtk_version_cached=0
27755                 { echo "$as_me:$LINENO: result: " >&5
27756 echo "${ECHO_T}" >&6; }
27757
27758                                                 GTK_MODULES=
27759                 if test "$wxUSE_THREADS" = "yes"; then
27760                     GTK_MODULES=gthread
27761                 fi
27762
27763                                 wx_cv_lib_gtk=
27764                 if test "x$wxGTK_VERSION" != "x1"
27765                 then
27766                                                                                 case "${host}" in
27767                         *-*-solaris2* )
27768                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27769                                 enable_gtktest=no
27770                             fi
27771                     esac
27772
27773                     # Check whether --enable-gtktest was given.
27774 if test "${enable_gtktest+set}" = set; then
27775   enableval=$enable_gtktest;
27776 else
27777   enable_gtktest=yes
27778 fi
27779
27780
27781   pkg_config_args=gtk+-2.0
27782   for module in . $GTK_MODULES
27783   do
27784       case "$module" in
27785          gthread)
27786              pkg_config_args="$pkg_config_args gthread-2.0"
27787          ;;
27788       esac
27789   done
27790
27791   no_gtk=""
27792
27793   # Extract the first word of "pkg-config", so it can be a program name with args.
27794 set dummy pkg-config; ac_word=$2
27795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27798   echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800   case $PKG_CONFIG in
27801   [\\/]* | ?:[\\/]*)
27802   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27803   ;;
27804   *)
27805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27806 for as_dir in $PATH
27807 do
27808   IFS=$as_save_IFS
27809   test -z "$as_dir" && as_dir=.
27810   for ac_exec_ext in '' $ac_executable_extensions; do
27811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27812     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27814     break 2
27815   fi
27816 done
27817 done
27818 IFS=$as_save_IFS
27819
27820   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27821   ;;
27822 esac
27823 fi
27824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27825 if test -n "$PKG_CONFIG"; then
27826   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27827 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27828 else
27829   { echo "$as_me:$LINENO: result: no" >&5
27830 echo "${ECHO_T}no" >&6; }
27831 fi
27832
27833
27834
27835   if test x$PKG_CONFIG != xno ; then
27836     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27837       :
27838     else
27839       echo "*** pkg-config too old; version 0.7 or better required."
27840       no_gtk=yes
27841       PKG_CONFIG=no
27842     fi
27843   else
27844     no_gtk=yes
27845   fi
27846
27847   min_gtk_version=2.4.0
27848   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27849 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
27850
27851   if test x$PKG_CONFIG != xno ; then
27852     ## don't try to run the test against uninstalled libtool libs
27853     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27854           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27855           enable_gtktest=no
27856     fi
27857
27858     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27859           :
27860     else
27861           no_gtk=yes
27862     fi
27863   fi
27864
27865   if test x"$no_gtk" = x ; then
27866     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27867     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27868     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27869            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27870     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27871            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27872     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27873            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27874     if test "x$enable_gtktest" = "xyes" ; then
27875       ac_save_CFLAGS="$CFLAGS"
27876       ac_save_LIBS="$LIBS"
27877       CFLAGS="$CFLAGS $GTK_CFLAGS"
27878       LIBS="$GTK_LIBS $LIBS"
27879       rm -f conf.gtktest
27880       if test "$cross_compiling" = yes; then
27881   echo $ac_n "cross compiling; assumed OK... $ac_c"
27882 else
27883   cat >conftest.$ac_ext <<_ACEOF
27884 /* confdefs.h.  */
27885 _ACEOF
27886 cat confdefs.h >>conftest.$ac_ext
27887 cat >>conftest.$ac_ext <<_ACEOF
27888 /* end confdefs.h.  */
27889
27890 #include <gtk/gtk.h>
27891 #include <stdio.h>
27892 #include <stdlib.h>
27893
27894 int
27895 main ()
27896 {
27897   int major, minor, micro;
27898   char *tmp_version;
27899
27900   system ("touch conf.gtktest");
27901
27902   /* HP/UX 9 (%@#!) writes to sscanf strings */
27903   tmp_version = g_strdup("$min_gtk_version");
27904   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27905      printf("%s, bad version string\n", "$min_gtk_version");
27906      exit(1);
27907    }
27908
27909   if ((gtk_major_version != $gtk_config_major_version) ||
27910       (gtk_minor_version != $gtk_config_minor_version) ||
27911       (gtk_micro_version != $gtk_config_micro_version))
27912     {
27913       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27914              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27915              gtk_major_version, gtk_minor_version, gtk_micro_version);
27916       printf ("*** was found! If pkg-config was correct, then it is best\n");
27917       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27918       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27919       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27920       printf("*** required on your system.\n");
27921       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27922       printf("*** to point to the correct configuration files\n");
27923     }
27924   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27925            (gtk_minor_version != GTK_MINOR_VERSION) ||
27926            (gtk_micro_version != GTK_MICRO_VERSION))
27927     {
27928       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27929              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27930       printf("*** library (version %d.%d.%d)\n",
27931              gtk_major_version, gtk_minor_version, gtk_micro_version);
27932     }
27933   else
27934     {
27935       if ((gtk_major_version > major) ||
27936         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27937         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27938       {
27939         return 0;
27940        }
27941      else
27942       {
27943         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27944                gtk_major_version, gtk_minor_version, gtk_micro_version);
27945         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27946                major, minor, micro);
27947         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27948         printf("***\n");
27949         printf("*** If you have already installed a sufficiently new version, this error\n");
27950         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27951         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27952         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27953         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27954         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27955         printf("*** so that the correct libraries are found at run-time))\n");
27956       }
27957     }
27958   return 1;
27959 }
27960
27961 _ACEOF
27962 rm -f conftest$ac_exeext
27963 if { (ac_try="$ac_link"
27964 case "(($ac_try" in
27965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966   *) ac_try_echo=$ac_try;;
27967 esac
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969   (eval "$ac_link") 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27973   { (case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978   (eval "$ac_try") 2>&5
27979   ac_status=$?
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); }; }; then
27982   :
27983 else
27984   echo "$as_me: program exited with status $ac_status" >&5
27985 echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988 ( exit $ac_status )
27989 no_gtk=yes
27990 fi
27991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27992 fi
27993
27994
27995        CFLAGS="$ac_save_CFLAGS"
27996        LIBS="$ac_save_LIBS"
27997      fi
27998   fi
27999   if test "x$no_gtk" = x ; then
28000      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28001 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28002      wx_cv_lib_gtk=2.0
28003   else
28004      { echo "$as_me:$LINENO: result: no" >&5
28005 echo "${ECHO_T}no" >&6; }
28006      if test "$PKG_CONFIG" = "no" ; then
28007        echo "*** A new enough version of pkg-config was not found."
28008        echo "*** See http://pkgconfig.sourceforge.net"
28009      else
28010        if test -f conf.gtktest ; then
28011         :
28012        else
28013           echo "*** Could not run GTK+ test program, checking why..."
28014           ac_save_CFLAGS="$CFLAGS"
28015           ac_save_LIBS="$LIBS"
28016           CFLAGS="$CFLAGS $GTK_CFLAGS"
28017           LIBS="$LIBS $GTK_LIBS"
28018           cat >conftest.$ac_ext <<_ACEOF
28019 /* confdefs.h.  */
28020 _ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h.  */
28024
28025 #include <gtk/gtk.h>
28026 #include <stdio.h>
28027
28028 int
28029 main ()
28030 {
28031  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28032   ;
28033   return 0;
28034 }
28035 _ACEOF
28036 rm -f conftest.$ac_objext conftest$ac_exeext
28037 if { (ac_try="$ac_link"
28038 case "(($ac_try" in
28039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040   *) ac_try_echo=$ac_try;;
28041 esac
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043   (eval "$ac_link") 2>conftest.er1
28044   ac_status=$?
28045   grep -v '^ *+' conftest.er1 >conftest.err
28046   rm -f conftest.er1
28047   cat conftest.err >&5
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); } && {
28050          test -z "$ac_c_werror_flag" ||
28051          test ! -s conftest.err
28052        } && test -s conftest$ac_exeext &&
28053        $as_test_x conftest$ac_exeext; then
28054    echo "*** The test program compiled, but did not run. This usually means"
28055           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28056           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28057           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28058           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28059           echo "*** is required on your system"
28060           echo "***"
28061           echo "*** If you have an old version installed, it is best to remove it, although"
28062           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28063 else
28064   echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28066
28067          echo "*** The test program failed to compile or link. See the file config.log for the"
28068           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28069 fi
28070
28071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28072       conftest$ac_exeext conftest.$ac_ext
28073           CFLAGS="$ac_save_CFLAGS"
28074           LIBS="$ac_save_LIBS"
28075        fi
28076      fi
28077      GTK_CFLAGS=""
28078      GTK_LIBS=""
28079      :
28080   fi
28081
28082
28083   rm -f conf.gtktest
28084
28085
28086                                         case "${host}" in
28087                         *-*-solaris2* )
28088                             if test "$wxUSE_SHARED" != "yes"; then
28089                                 GTK_LIBS="$GTK_LIBS -lX11"
28090                             fi
28091                     esac
28092                 fi
28093
28094                                 if test -z "$wx_cv_lib_gtk"; then
28095                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28096
28097 # Check whether --with-gtk-prefix was given.
28098 if test "${with_gtk_prefix+set}" = set; then
28099   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28100 else
28101   gtk_config_prefix=""
28102 fi
28103
28104
28105 # Check whether --with-gtk-exec-prefix was given.
28106 if test "${with_gtk_exec_prefix+set}" = set; then
28107   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28108 else
28109   gtk_config_exec_prefix=""
28110 fi
28111
28112 # Check whether --enable-gtktest was given.
28113 if test "${enable_gtktest+set}" = set; then
28114   enableval=$enable_gtktest;
28115 else
28116   enable_gtktest=yes
28117 fi
28118
28119
28120   for module in . $GTK_MODULES
28121   do
28122       case "$module" in
28123          gthread)
28124              gtk_config_args="$gtk_config_args gthread"
28125          ;;
28126       esac
28127   done
28128
28129   if test x$gtk_config_exec_prefix != x ; then
28130      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28131      if test x${GTK_CONFIG+set} != xset ; then
28132         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28133      fi
28134   fi
28135   if test x$gtk_config_prefix != x ; then
28136      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28137      if test x${GTK_CONFIG+set} != xset ; then
28138         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28139      fi
28140   fi
28141
28142   # Extract the first word of "gtk-config", so it can be a program name with args.
28143 set dummy gtk-config; ac_word=$2
28144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28146 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28147   echo $ECHO_N "(cached) $ECHO_C" >&6
28148 else
28149   case $GTK_CONFIG in
28150   [\\/]* | ?:[\\/]*)
28151   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28152   ;;
28153   *)
28154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28155 for as_dir in $PATH
28156 do
28157   IFS=$as_save_IFS
28158   test -z "$as_dir" && as_dir=.
28159   for ac_exec_ext in '' $ac_executable_extensions; do
28160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28161     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28163     break 2
28164   fi
28165 done
28166 done
28167 IFS=$as_save_IFS
28168
28169   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28170   ;;
28171 esac
28172 fi
28173 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28174 if test -n "$GTK_CONFIG"; then
28175   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28176 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28177 else
28178   { echo "$as_me:$LINENO: result: no" >&5
28179 echo "${ECHO_T}no" >&6; }
28180 fi
28181
28182
28183   min_gtk_version=1.2.7
28184   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28185 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28186   no_gtk=""
28187   if test "$GTK_CONFIG" = "no" ; then
28188     no_gtk=yes
28189   else
28190     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28191     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28192     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28193            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28194     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28195            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28196     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28197            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28198     if test "x$enable_gtktest" = "xyes" ; then
28199       ac_save_CFLAGS="$CFLAGS"
28200       ac_save_LIBS="$LIBS"
28201       CFLAGS="$CFLAGS $GTK_CFLAGS"
28202       LIBS="$GTK_LIBS $LIBS"
28203       rm -f conf.gtktest
28204       if test "$cross_compiling" = yes; then
28205   echo $ac_n "cross compiling; assumed OK... $ac_c"
28206 else
28207   cat >conftest.$ac_ext <<_ACEOF
28208 /* confdefs.h.  */
28209 _ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h.  */
28213
28214 #include <gtk/gtk.h>
28215 #include <stdio.h>
28216 #include <stdlib.h>
28217
28218 int
28219 main ()
28220 {
28221   int major, minor, micro;
28222   char *tmp_version;
28223
28224   system ("touch conf.gtktest");
28225
28226   /* HP/UX 9 (%@#!) writes to sscanf strings */
28227   tmp_version = g_strdup("$min_gtk_version");
28228   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28229      printf("%s, bad version string\n", "$min_gtk_version");
28230      exit(1);
28231    }
28232
28233   if ((gtk_major_version != $gtk_config_major_version) ||
28234       (gtk_minor_version != $gtk_config_minor_version) ||
28235       (gtk_micro_version != $gtk_config_micro_version))
28236     {
28237       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28238              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28239              gtk_major_version, gtk_minor_version, gtk_micro_version);
28240       printf ("*** was found! If gtk-config was correct, then it is best\n");
28241       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28242       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28243       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28244       printf("*** required on your system.\n");
28245       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28246       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28247       printf("*** before re-running configure\n");
28248     }
28249 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28250   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28251            (gtk_minor_version != GTK_MINOR_VERSION) ||
28252            (gtk_micro_version != GTK_MICRO_VERSION))
28253     {
28254       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28255              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28256       printf("*** library (version %d.%d.%d)\n",
28257              gtk_major_version, gtk_minor_version, gtk_micro_version);
28258     }
28259 #endif /* defined (GTK_MAJOR_VERSION) ... */
28260   else
28261     {
28262       if ((gtk_major_version > major) ||
28263         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28264         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28265       {
28266         return 0;
28267        }
28268      else
28269       {
28270         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28271                gtk_major_version, gtk_minor_version, gtk_micro_version);
28272         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28273                major, minor, micro);
28274         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28275         printf("***\n");
28276         printf("*** If you have already installed a sufficiently new version, this error\n");
28277         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28278         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28279         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28280         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28281         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28282         printf("*** so that the correct libraries are found at run-time))\n");
28283       }
28284     }
28285   return 1;
28286 }
28287
28288 _ACEOF
28289 rm -f conftest$ac_exeext
28290 if { (ac_try="$ac_link"
28291 case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_link") 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28300   { (case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305   (eval "$ac_try") 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; }; then
28309   :
28310 else
28311   echo "$as_me: program exited with status $ac_status" >&5
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 ( exit $ac_status )
28316 no_gtk=yes
28317 fi
28318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28319 fi
28320
28321
28322        CFLAGS="$ac_save_CFLAGS"
28323        LIBS="$ac_save_LIBS"
28324      fi
28325   fi
28326   if test "x$no_gtk" = x ; then
28327      { echo "$as_me:$LINENO: result: yes" >&5
28328 echo "${ECHO_T}yes" >&6; }
28329      wx_cv_lib_gtk=1.2.7
28330   else
28331      { echo "$as_me:$LINENO: result: no" >&5
28332 echo "${ECHO_T}no" >&6; }
28333      if test "$GTK_CONFIG" = "no" ; then
28334        echo "*** The gtk-config script installed by GTK could not be found"
28335        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28336        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28337        echo "*** full path to gtk-config."
28338      else
28339        if test -f conf.gtktest ; then
28340         :
28341        else
28342           echo "*** Could not run GTK test program, checking why..."
28343           CFLAGS="$CFLAGS $GTK_CFLAGS"
28344           LIBS="$LIBS $GTK_LIBS"
28345           cat >conftest.$ac_ext <<_ACEOF
28346 /* confdefs.h.  */
28347 _ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h.  */
28351
28352 #include <gtk/gtk.h>
28353 #include <stdio.h>
28354
28355 int
28356 main ()
28357 {
28358  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 rm -f conftest.$ac_objext conftest$ac_exeext
28364 if { (ac_try="$ac_link"
28365 case "(($ac_try" in
28366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367   *) ac_try_echo=$ac_try;;
28368 esac
28369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370   (eval "$ac_link") 2>conftest.er1
28371   ac_status=$?
28372   grep -v '^ *+' conftest.er1 >conftest.err
28373   rm -f conftest.er1
28374   cat conftest.err >&5
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); } && {
28377          test -z "$ac_c_werror_flag" ||
28378          test ! -s conftest.err
28379        } && test -s conftest$ac_exeext &&
28380        $as_test_x conftest$ac_exeext; then
28381    echo "*** The test program compiled, but did not run. This usually means"
28382           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28383           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28384           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28385           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28386           echo "*** is required on your system"
28387           echo "***"
28388           echo "*** If you have an old version installed, it is best to remove it, although"
28389           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28390           echo "***"
28391           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28392           echo "*** came with the system with the command"
28393           echo "***"
28394           echo "***    rpm --erase --nodeps gtk gtk-devel"
28395 else
28396   echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28398
28399          echo "*** The test program failed to compile or link. See the file config.log for the"
28400           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28401           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28402           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28403 fi
28404
28405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28406       conftest$ac_exeext conftest.$ac_ext
28407           CFLAGS="$ac_save_CFLAGS"
28408           LIBS="$ac_save_LIBS"
28409        fi
28410      fi
28411      GTK_CFLAGS=""
28412      GTK_LIBS=""
28413      :
28414   fi
28415
28416
28417   rm -f conf.gtktest
28418
28419
28420                         if test -z "$wx_cv_lib_gtk"; then
28421
28422 # Check whether --with-gtk-prefix was given.
28423 if test "${with_gtk_prefix+set}" = set; then
28424   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28425 else
28426   gtk_config_prefix=""
28427 fi
28428
28429
28430 # Check whether --with-gtk-exec-prefix was given.
28431 if test "${with_gtk_exec_prefix+set}" = set; then
28432   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28433 else
28434   gtk_config_exec_prefix=""
28435 fi
28436
28437 # Check whether --enable-gtktest was given.
28438 if test "${enable_gtktest+set}" = set; then
28439   enableval=$enable_gtktest;
28440 else
28441   enable_gtktest=yes
28442 fi
28443
28444
28445   for module in . $GTK_MODULES
28446   do
28447       case "$module" in
28448          gthread)
28449              gtk_config_args="$gtk_config_args gthread"
28450          ;;
28451       esac
28452   done
28453
28454   if test x$gtk_config_exec_prefix != x ; then
28455      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28456      if test x${GTK_CONFIG+set} != xset ; then
28457         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28458      fi
28459   fi
28460   if test x$gtk_config_prefix != x ; then
28461      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28462      if test x${GTK_CONFIG+set} != xset ; then
28463         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28464      fi
28465   fi
28466
28467   # Extract the first word of "gtk-config", so it can be a program name with args.
28468 set dummy gtk-config; ac_word=$2
28469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28471 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474   case $GTK_CONFIG in
28475   [\\/]* | ?:[\\/]*)
28476   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28477   ;;
28478   *)
28479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28480 for as_dir in $PATH
28481 do
28482   IFS=$as_save_IFS
28483   test -z "$as_dir" && as_dir=.
28484   for ac_exec_ext in '' $ac_executable_extensions; do
28485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28486     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28488     break 2
28489   fi
28490 done
28491 done
28492 IFS=$as_save_IFS
28493
28494   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28495   ;;
28496 esac
28497 fi
28498 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28499 if test -n "$GTK_CONFIG"; then
28500   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28501 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28502 else
28503   { echo "$as_me:$LINENO: result: no" >&5
28504 echo "${ECHO_T}no" >&6; }
28505 fi
28506
28507
28508   min_gtk_version=1.2.3
28509   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28510 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28511   no_gtk=""
28512   if test "$GTK_CONFIG" = "no" ; then
28513     no_gtk=yes
28514   else
28515     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28516     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28517     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28518            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28519     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28520            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28521     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28522            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28523     if test "x$enable_gtktest" = "xyes" ; then
28524       ac_save_CFLAGS="$CFLAGS"
28525       ac_save_LIBS="$LIBS"
28526       CFLAGS="$CFLAGS $GTK_CFLAGS"
28527       LIBS="$GTK_LIBS $LIBS"
28528       rm -f conf.gtktest
28529       if test "$cross_compiling" = yes; then
28530   echo $ac_n "cross compiling; assumed OK... $ac_c"
28531 else
28532   cat >conftest.$ac_ext <<_ACEOF
28533 /* confdefs.h.  */
28534 _ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h.  */
28538
28539 #include <gtk/gtk.h>
28540 #include <stdio.h>
28541 #include <stdlib.h>
28542
28543 int
28544 main ()
28545 {
28546   int major, minor, micro;
28547   char *tmp_version;
28548
28549   system ("touch conf.gtktest");
28550
28551   /* HP/UX 9 (%@#!) writes to sscanf strings */
28552   tmp_version = g_strdup("$min_gtk_version");
28553   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28554      printf("%s, bad version string\n", "$min_gtk_version");
28555      exit(1);
28556    }
28557
28558   if ((gtk_major_version != $gtk_config_major_version) ||
28559       (gtk_minor_version != $gtk_config_minor_version) ||
28560       (gtk_micro_version != $gtk_config_micro_version))
28561     {
28562       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28563              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28564              gtk_major_version, gtk_minor_version, gtk_micro_version);
28565       printf ("*** was found! If gtk-config was correct, then it is best\n");
28566       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28567       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28568       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28569       printf("*** required on your system.\n");
28570       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28571       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28572       printf("*** before re-running configure\n");
28573     }
28574 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28575   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28576            (gtk_minor_version != GTK_MINOR_VERSION) ||
28577            (gtk_micro_version != GTK_MICRO_VERSION))
28578     {
28579       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28580              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28581       printf("*** library (version %d.%d.%d)\n",
28582              gtk_major_version, gtk_minor_version, gtk_micro_version);
28583     }
28584 #endif /* defined (GTK_MAJOR_VERSION) ... */
28585   else
28586     {
28587       if ((gtk_major_version > major) ||
28588         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28589         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28590       {
28591         return 0;
28592        }
28593      else
28594       {
28595         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28596                gtk_major_version, gtk_minor_version, gtk_micro_version);
28597         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28598                major, minor, micro);
28599         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28600         printf("***\n");
28601         printf("*** If you have already installed a sufficiently new version, this error\n");
28602         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28603         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28604         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28605         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28606         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28607         printf("*** so that the correct libraries are found at run-time))\n");
28608       }
28609     }
28610   return 1;
28611 }
28612
28613 _ACEOF
28614 rm -f conftest$ac_exeext
28615 if { (ac_try="$ac_link"
28616 case "(($ac_try" in
28617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618   *) ac_try_echo=$ac_try;;
28619 esac
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621   (eval "$ac_link") 2>&5
28622   ac_status=$?
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28625   { (case "(($ac_try" in
28626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627   *) ac_try_echo=$ac_try;;
28628 esac
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630   (eval "$ac_try") 2>&5
28631   ac_status=$?
28632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633   (exit $ac_status); }; }; then
28634   :
28635 else
28636   echo "$as_me: program exited with status $ac_status" >&5
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640 ( exit $ac_status )
28641 no_gtk=yes
28642 fi
28643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28644 fi
28645
28646
28647        CFLAGS="$ac_save_CFLAGS"
28648        LIBS="$ac_save_LIBS"
28649      fi
28650   fi
28651   if test "x$no_gtk" = x ; then
28652      { echo "$as_me:$LINENO: result: yes" >&5
28653 echo "${ECHO_T}yes" >&6; }
28654      wx_cv_lib_gtk=1.2.3
28655   else
28656      { echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6; }
28658      if test "$GTK_CONFIG" = "no" ; then
28659        echo "*** The gtk-config script installed by GTK could not be found"
28660        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28661        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28662        echo "*** full path to gtk-config."
28663      else
28664        if test -f conf.gtktest ; then
28665         :
28666        else
28667           echo "*** Could not run GTK test program, checking why..."
28668           CFLAGS="$CFLAGS $GTK_CFLAGS"
28669           LIBS="$LIBS $GTK_LIBS"
28670           cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676
28677 #include <gtk/gtk.h>
28678 #include <stdio.h>
28679
28680 int
28681 main ()
28682 {
28683  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext conftest$ac_exeext
28689 if { (ac_try="$ac_link"
28690 case "(($ac_try" in
28691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692   *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695   (eval "$ac_link") 2>conftest.er1
28696   ac_status=$?
28697   grep -v '^ *+' conftest.er1 >conftest.err
28698   rm -f conftest.er1
28699   cat conftest.err >&5
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); } && {
28702          test -z "$ac_c_werror_flag" ||
28703          test ! -s conftest.err
28704        } && test -s conftest$ac_exeext &&
28705        $as_test_x conftest$ac_exeext; then
28706    echo "*** The test program compiled, but did not run. This usually means"
28707           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28708           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28709           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28710           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28711           echo "*** is required on your system"
28712           echo "***"
28713           echo "*** If you have an old version installed, it is best to remove it, although"
28714           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28715           echo "***"
28716           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28717           echo "*** came with the system with the command"
28718           echo "***"
28719           echo "***    rpm --erase --nodeps gtk gtk-devel"
28720 else
28721   echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.$ac_ext >&5
28723
28724          echo "*** The test program failed to compile or link. See the file config.log for the"
28725           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28726           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28727           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28728 fi
28729
28730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28731       conftest$ac_exeext conftest.$ac_ext
28732           CFLAGS="$ac_save_CFLAGS"
28733           LIBS="$ac_save_LIBS"
28734        fi
28735      fi
28736      GTK_CFLAGS=""
28737      GTK_LIBS=""
28738      :
28739   fi
28740
28741
28742   rm -f conf.gtktest
28743
28744                         fi
28745                     fi
28746                 fi
28747
28748                 if test -z "$wx_cv_lib_gtk"; then
28749                                         wx_cv_lib_gtk=none
28750                 else
28751                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28752                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28753                 fi
28754
28755
28756 fi
28757
28758
28759                         if test "$gtk_version_cached" = 1; then
28760             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28761 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
28762         fi
28763
28764         case "$wx_cv_lib_gtk" in
28765             2.0)    WXGTK2=1
28766                     TOOLKIT_VERSION=2
28767                     ;;
28768             1.2.7)  WXGTK127=1
28769                     WXGTK12=1
28770                     ;;
28771             1.2.3)  WXGTK12=1
28772                     ;;
28773             *)      { { echo "$as_me:$LINENO: error:
28774 The development files for GTK+ were not found. For GTK+ 2, please
28775 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28776 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28777 and that the version is 1.2.3 or above. Also check that the
28778 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28779 --libs' are in the LD_LIBRARY_PATH or equivalent.
28780                             " >&5
28781 echo "$as_me: error:
28782 The development files for GTK+ were not found. For GTK+ 2, please
28783 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28784 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28785 and that the version is 1.2.3 or above. Also check that the
28786 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28787 --libs' are in the LD_LIBRARY_PATH or equivalent.
28788                             " >&2;}
28789    { (exit 1); exit 1; }; }
28790                     ;;
28791         esac
28792
28793         if test "$WXGTK2" = 1; then
28794             save_CFLAGS="$CFLAGS"
28795             save_LIBS="$LIBS"
28796             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28797             LIBS="$LIBS $wx_cv_libs_gtk"
28798
28799                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28800 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
28801 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28802   echo $ECHO_N "(cached) $ECHO_C" >&6
28803 else
28804   cat >conftest.$ac_ext <<_ACEOF
28805 /* confdefs.h.  */
28806 _ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h.  */
28810 #include <gtk/gtk.h>
28811
28812 int
28813 main ()
28814 {
28815 #ifndef gtk_icon_size_lookup
28816   (void) gtk_icon_size_lookup;
28817 #endif
28818
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext
28824 if { (ac_try="$ac_compile"
28825 case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830   (eval "$ac_compile") 2>conftest.er1
28831   ac_status=$?
28832   grep -v '^ *+' conftest.er1 >conftest.err
28833   rm -f conftest.er1
28834   cat conftest.err >&5
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); } && {
28837          test -z "$ac_c_werror_flag" ||
28838          test ! -s conftest.err
28839        } && test -s conftest.$ac_objext; then
28840   ac_cv_have_decl_gtk_icon_size_lookup=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845         ac_cv_have_decl_gtk_icon_size_lookup=no
28846 fi
28847
28848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28849 fi
28850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28851 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
28852 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28853
28854 cat >>confdefs.h <<_ACEOF
28855 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28856 _ACEOF
28857
28858
28859 else
28860   cat >>confdefs.h <<_ACEOF
28861 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28862 _ACEOF
28863
28864 cat >>confdefs.h <<\_ACEOF
28865 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28866 _ACEOF
28867
28868 fi
28869
28870
28871
28872
28873                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
28874 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
28875             cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881
28882                             #include <gtk/gtk.h>
28883
28884 int
28885 main ()
28886 {
28887
28888                             #if !GTK_CHECK_VERSION(2,10,0)
28889                             Not GTK+ 2.10
28890                             #endif
28891
28892   ;
28893   return 0;
28894 }
28895 _ACEOF
28896 rm -f conftest.$ac_objext
28897 if { (ac_try="$ac_compile"
28898 case "(($ac_try" in
28899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900   *) ac_try_echo=$ac_try;;
28901 esac
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903   (eval "$ac_compile") 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } && {
28910          test -z "$ac_c_werror_flag" ||
28911          test ! -s conftest.err
28912        } && test -s conftest.$ac_objext; then
28913
28914                             cat >>confdefs.h <<\_ACEOF
28915 #define __WXGTK210__ 1
28916 _ACEOF
28917
28918                             cat >>confdefs.h <<\_ACEOF
28919 #define __WXGTK26__ 1
28920 _ACEOF
28921
28922                             { echo "$as_me:$LINENO: result: yes" >&5
28923 echo "${ECHO_T}yes" >&6; }
28924                             ac_wxgtk210=1
28925
28926 else
28927   echo "$as_me: failed program was:" >&5
28928 sed 's/^/| /' conftest.$ac_ext >&5
28929
28930
28931                             { echo "$as_me:$LINENO: result: no" >&5
28932 echo "${ECHO_T}no" >&6; }
28933                             ac_wxgtk210=0
28934
28935 fi
28936
28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28938
28939             if test "$ac_wxgtk210" = 0; then
28940                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28941 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
28942                 cat >conftest.$ac_ext <<_ACEOF
28943 /* confdefs.h.  */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h.  */
28948
28949                                 #include <gtk/gtk.h>
28950
28951 int
28952 main ()
28953 {
28954
28955                                 #if !GTK_CHECK_VERSION(2,6,0)
28956                                 Not GTK+ 2.6
28957                                 #endif
28958
28959   ;
28960   return 0;
28961 }
28962 _ACEOF
28963 rm -f conftest.$ac_objext
28964 if { (ac_try="$ac_compile"
28965 case "(($ac_try" in
28966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967   *) ac_try_echo=$ac_try;;
28968 esac
28969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970   (eval "$ac_compile") 2>conftest.er1
28971   ac_status=$?
28972   grep -v '^ *+' conftest.er1 >conftest.err
28973   rm -f conftest.er1
28974   cat conftest.err >&5
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); } && {
28977          test -z "$ac_c_werror_flag" ||
28978          test ! -s conftest.err
28979        } && test -s conftest.$ac_objext; then
28980
28981                                 cat >>confdefs.h <<\_ACEOF
28982 #define __WXGTK26__ 1
28983 _ACEOF
28984
28985                                 { echo "$as_me:$LINENO: result: yes" >&5
28986 echo "${ECHO_T}yes" >&6; }
28987                                 ac_wxgtk26=1
28988
28989 else
28990   echo "$as_me: failed program was:" >&5
28991 sed 's/^/| /' conftest.$ac_ext >&5
28992
28993
28994                                 { echo "$as_me:$LINENO: result: no" >&5
28995 echo "${ECHO_T}no" >&6; }
28996                                 ac_wxgtk26=0
28997
28998 fi
28999
29000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29001             fi
29002
29003             CFLAGS="$save_CFLAGS"
29004             LIBS="$save_LIBS"
29005         else
29006             if test "$wxUSE_UNICODE" = "yes"; then
29007                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29008 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29009                 wxUSE_UNICODE=no
29010             fi
29011
29012                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29013 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29014 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29015   echo $ECHO_N "(cached) $ECHO_C" >&6
29016 else
29017   ac_check_lib_save_LIBS=$LIBS
29018 LIBS="-lgdk  $LIBS"
29019 cat >conftest.$ac_ext <<_ACEOF
29020 /* confdefs.h.  */
29021 _ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h.  */
29025
29026 /* Override any GCC internal prototype to avoid an error.
29027    Use char because int might match the return type of a GCC
29028    builtin and then its argument prototype would still apply.  */
29029 #ifdef __cplusplus
29030 extern "C"
29031 #endif
29032 char gdk_im_open ();
29033 int
29034 main ()
29035 {
29036 return gdk_im_open ();
29037   ;
29038   return 0;
29039 }
29040 _ACEOF
29041 rm -f conftest.$ac_objext conftest$ac_exeext
29042 if { (ac_try="$ac_link"
29043 case "(($ac_try" in
29044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29045   *) ac_try_echo=$ac_try;;
29046 esac
29047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29048   (eval "$ac_link") 2>conftest.er1
29049   ac_status=$?
29050   grep -v '^ *+' conftest.er1 >conftest.err
29051   rm -f conftest.er1
29052   cat conftest.err >&5
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); } && {
29055          test -z "$ac_c_werror_flag" ||
29056          test ! -s conftest.err
29057        } && test -s conftest$ac_exeext &&
29058        $as_test_x conftest$ac_exeext; then
29059   ac_cv_lib_gdk_gdk_im_open=yes
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064         ac_cv_lib_gdk_gdk_im_open=no
29065 fi
29066
29067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29068       conftest$ac_exeext conftest.$ac_ext
29069 LIBS=$ac_check_lib_save_LIBS
29070 fi
29071 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29072 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29073 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29074   cat >>confdefs.h <<\_ACEOF
29075 #define HAVE_XIM 1
29076 _ACEOF
29077
29078 fi
29079
29080
29081                                     if test "$USE_DARWIN" != 1; then
29082
29083 for ac_func in poll
29084 do
29085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29089   echo $ECHO_N "(cached) $ECHO_C" >&6
29090 else
29091   cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29099 #define $ac_func innocuous_$ac_func
29100
29101 /* System header to define __stub macros and hopefully few prototypes,
29102     which can conflict with char $ac_func (); below.
29103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29104     <limits.h> exists even on freestanding compilers.  */
29105
29106 #ifdef __STDC__
29107 # include <limits.h>
29108 #else
29109 # include <assert.h>
29110 #endif
29111
29112 #undef $ac_func
29113
29114 /* Override any GCC internal prototype to avoid an error.
29115    Use char because int might match the return type of a GCC
29116    builtin and then its argument prototype would still apply.  */
29117 #ifdef __cplusplus
29118 extern "C"
29119 #endif
29120 char $ac_func ();
29121 /* The GNU C library defines this for functions which it implements
29122     to always fail with ENOSYS.  Some functions are actually named
29123     something starting with __ and the normal name is an alias.  */
29124 #if defined __stub_$ac_func || defined __stub___$ac_func
29125 choke me
29126 #endif
29127
29128 int
29129 main ()
29130 {
29131 return $ac_func ();
29132   ;
29133   return 0;
29134 }
29135 _ACEOF
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137 if { (ac_try="$ac_link"
29138 case "(($ac_try" in
29139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140   *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143   (eval "$ac_link") 2>conftest.er1
29144   ac_status=$?
29145   grep -v '^ *+' conftest.er1 >conftest.err
29146   rm -f conftest.er1
29147   cat conftest.err >&5
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } && {
29150          test -z "$ac_c_werror_flag" ||
29151          test ! -s conftest.err
29152        } && test -s conftest$ac_exeext &&
29153        $as_test_x conftest$ac_exeext; then
29154   eval "$as_ac_var=yes"
29155 else
29156   echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29158
29159         eval "$as_ac_var=no"
29160 fi
29161
29162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29163       conftest$ac_exeext conftest.$ac_ext
29164 fi
29165 ac_res=`eval echo '${'$as_ac_var'}'`
29166                { echo "$as_me:$LINENO: result: $ac_res" >&5
29167 echo "${ECHO_T}$ac_res" >&6; }
29168 if test `eval echo '${'$as_ac_var'}'` = yes; then
29169   cat >>confdefs.h <<_ACEOF
29170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29171 _ACEOF
29172
29173 fi
29174 done
29175
29176             fi
29177         fi
29178
29179         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29180         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29181
29182         AFMINSTALL=afminstall
29183         TOOLKIT=GTK
29184         GUIDIST=GTK_DIST
29185
29186                 if test "$wxUSE_GPE" = "yes"; then
29187             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29188 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29189
29190   ac_find_libraries=
29191   for ac_dir in $SEARCH_LIB;
29192   do
29193     for ac_extension in a so sl dylib dll.a; do
29194       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29195         ac_find_libraries=$ac_dir
29196         break 2
29197       fi
29198     done
29199   done
29200
29201             if test "$ac_find_libraries" != "" ; then
29202
29203     if test "$ac_find_libraries" = "default location"; then
29204     ac_path_to_link=""
29205   else
29206     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29207     result=$?
29208     if test $result = 0; then
29209       ac_path_to_link=""
29210     else
29211       ac_path_to_link=" -L$ac_find_libraries"
29212     fi
29213   fi
29214
29215                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29216                 WXGPE=1
29217                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29218 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29219             else
29220                 { echo "$as_me:$LINENO: result: not found" >&5
29221 echo "${ECHO_T}not found" >&6; }
29222             fi
29223
29224                                                                                                                     fi
29225     fi
29226
29227     if test "$wxUSE_MGL" = 1; then
29228        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29229 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29230         if test "x$MGL_ROOT" = x ; then
29231             { echo "$as_me:$LINENO: result: not found" >&5
29232 echo "${ECHO_T}not found" >&6; }
29233             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29234 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29235    { (exit 1); exit 1; }; }
29236         else
29237             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29238 echo "${ECHO_T}$MGL_ROOT" >&6; }
29239         fi
29240
29241         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29242 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29243                                 case "${host}" in
29244             *-*-linux* )
29245                                           if test "x$wxUSE_SHARED" = xyes ; then
29246                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29247               else
29248                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29249               fi
29250               ;;
29251             *-pc-msdosdjgpp )
29252               mgl_os_candidates="dos32/dj2"
29253               ;;
29254             *)
29255               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29256 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29257    { (exit 1); exit 1; }; }
29258         esac
29259
29260         mgl_lib_type=""
29261         mgl_os=""
29262
29263         for mgl_os_i in $mgl_os_candidates ; do
29264             if test "x$mgl_os" = x ; then
29265                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29266                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29267                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29268                         mgl_lib_type=debug
29269                         mgl_os=$mgl_os_i
29270                     fi
29271                 fi
29272                 if test "x$mgl_lib_type" = x ; then
29273                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29274                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29275                         mgl_lib_type=release
29276                         mgl_os=$mgl_os_i
29277                     fi
29278                 fi
29279             fi
29280         done
29281
29282         if test "x$mgl_os" = x ; then
29283             { echo "$as_me:$LINENO: result: not found" >&5
29284 echo "${ECHO_T}not found" >&6; }
29285             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29286 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29287    { (exit 1); exit 1; }; }
29288         fi
29289         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29290 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29291
29292         wxUSE_UNIVERSAL="yes"
29293
29294         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29295         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29296
29297         AFMINSTALL=afminstall
29298         TOOLKIT=MGL
29299         GUIDIST=MGL_DIST
29300     fi
29301
29302     if test "$wxUSE_DFB" = 1; then
29303
29304
29305 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29306         if test -n "$ac_tool_prefix"; then
29307   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29308 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29311 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29312   echo $ECHO_N "(cached) $ECHO_C" >&6
29313 else
29314   case $PKG_CONFIG in
29315   [\\/]* | ?:[\\/]*)
29316   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29317   ;;
29318   *)
29319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29320 for as_dir in $PATH
29321 do
29322   IFS=$as_save_IFS
29323   test -z "$as_dir" && as_dir=.
29324   for ac_exec_ext in '' $ac_executable_extensions; do
29325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29326     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29328     break 2
29329   fi
29330 done
29331 done
29332 IFS=$as_save_IFS
29333
29334   ;;
29335 esac
29336 fi
29337 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29338 if test -n "$PKG_CONFIG"; then
29339   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29340 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29341 else
29342   { echo "$as_me:$LINENO: result: no" >&5
29343 echo "${ECHO_T}no" >&6; }
29344 fi
29345
29346
29347 fi
29348 if test -z "$ac_cv_path_PKG_CONFIG"; then
29349   ac_pt_PKG_CONFIG=$PKG_CONFIG
29350   # Extract the first word of "pkg-config", so it can be a program name with args.
29351 set dummy pkg-config; ac_word=$2
29352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29354 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357   case $ac_pt_PKG_CONFIG in
29358   [\\/]* | ?:[\\/]*)
29359   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29360   ;;
29361   *)
29362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29363 for as_dir in $PATH
29364 do
29365   IFS=$as_save_IFS
29366   test -z "$as_dir" && as_dir=.
29367   for ac_exec_ext in '' $ac_executable_extensions; do
29368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29369     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29371     break 2
29372   fi
29373 done
29374 done
29375 IFS=$as_save_IFS
29376
29377   ;;
29378 esac
29379 fi
29380 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29381 if test -n "$ac_pt_PKG_CONFIG"; then
29382   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29383 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29384 else
29385   { echo "$as_me:$LINENO: result: no" >&5
29386 echo "${ECHO_T}no" >&6; }
29387 fi
29388
29389   if test "x$ac_pt_PKG_CONFIG" = x; then
29390     PKG_CONFIG=""
29391   else
29392     case $cross_compiling:$ac_tool_warned in
29393 yes:)
29394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29395 whose name does not start with the host triplet.  If you think this
29396 configuration is useful to you, please write to autoconf@gnu.org." >&5
29397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29398 whose name does not start with the host triplet.  If you think this
29399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29400 ac_tool_warned=yes ;;
29401 esac
29402     PKG_CONFIG=$ac_pt_PKG_CONFIG
29403   fi
29404 else
29405   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29406 fi
29407
29408 fi
29409 if test -n "$PKG_CONFIG"; then
29410         _pkg_min_version=0.9.0
29411         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29412 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29413         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29414                 { echo "$as_me:$LINENO: result: yes" >&5
29415 echo "${ECHO_T}yes" >&6; }
29416         else
29417                 { echo "$as_me:$LINENO: result: no" >&5
29418 echo "${ECHO_T}no" >&6; }
29419                 PKG_CONFIG=""
29420         fi
29421
29422 fi
29423
29424
29425 pkg_failed=no
29426 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29427 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29428
29429 if test -n "$PKG_CONFIG"; then
29430     if test -n "$DIRECTFB_CFLAGS"; then
29431         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29432     else
29433         if test -n "$PKG_CONFIG" && \
29434     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29435   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29436   ac_status=$?
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); }; then
29439   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29440 else
29441   pkg_failed=yes
29442 fi
29443     fi
29444 else
29445         pkg_failed=untried
29446 fi
29447 if test -n "$PKG_CONFIG"; then
29448     if test -n "$DIRECTFB_LIBS"; then
29449         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29450     else
29451         if test -n "$PKG_CONFIG" && \
29452     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29453   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29454   ac_status=$?
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); }; then
29457   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29458 else
29459   pkg_failed=yes
29460 fi
29461     fi
29462 else
29463         pkg_failed=untried
29464 fi
29465
29466
29467
29468 if test $pkg_failed = yes; then
29469
29470 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29471         _pkg_short_errors_supported=yes
29472 else
29473         _pkg_short_errors_supported=no
29474 fi
29475         if test $_pkg_short_errors_supported = yes; then
29476                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29477         else
29478                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29479         fi
29480         # Put the nasty error message in config.log where it belongs
29481         echo "$DIRECTFB_PKG_ERRORS" >&5
29482
29483
29484                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29485 echo "$as_me: error: DirectFB not found." >&2;}
29486    { (exit 1); exit 1; }; }
29487
29488
29489 elif test $pkg_failed = untried; then
29490
29491                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29492 echo "$as_me: error: DirectFB not found." >&2;}
29493    { (exit 1); exit 1; }; }
29494
29495
29496 else
29497         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29498         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29499         { echo "$as_me:$LINENO: result: yes" >&5
29500 echo "${ECHO_T}yes" >&6; }
29501
29502                            wxUSE_UNIVERSAL="yes"
29503                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29504                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29505                            TOOLKIT=DFB
29506                            GUIDIST=DFB_DIST
29507
29508 fi
29509     fi
29510
29511     if test "$wxUSE_MICROWIN" = 1; then
29512         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29513 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29514         if test "x$MICROWINDOWS" = x ; then
29515             { echo "$as_me:$LINENO: result: not found" >&5
29516 echo "${ECHO_T}not found" >&6; }
29517             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29518 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29519    { (exit 1); exit 1; }; }
29520         else
29521             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29522 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29523         fi
29524
29525         if test -f $MICROWINDOWS/lib/libmwin.a; then
29526             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29527 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29528         else
29529             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29530 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29531    { (exit 1); exit 1; }; }
29532         fi
29533
29534         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29535         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29536
29537         wxUSE_UNIVERSAL="yes"
29538
29539         AFMINSTALL=afminstall
29540         TOOLKIT=MICROWIN
29541         GUIDIST=MICROWIN_DIST
29542
29543         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29544     fi
29545
29546         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29547                                 { echo "$as_me:$LINENO: checking for X" >&5
29548 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29549
29550
29551 # Check whether --with-x was given.
29552 if test "${with_x+set}" = set; then
29553   withval=$with_x;
29554 fi
29555
29556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29557 if test "x$with_x" = xno; then
29558   # The user explicitly disabled X.
29559   have_x=disabled
29560 else
29561   case $x_includes,$x_libraries in #(
29562     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29563 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29564    { (exit 1); exit 1; }; };; #(
29565     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29566   echo $ECHO_N "(cached) $ECHO_C" >&6
29567 else
29568   # One or both of the vars are not set, and there is no cached value.
29569 ac_x_includes=no ac_x_libraries=no
29570 rm -f -r conftest.dir
29571 if mkdir conftest.dir; then
29572   cd conftest.dir
29573   cat >Imakefile <<'_ACEOF'
29574 incroot:
29575         @echo incroot='${INCROOT}'
29576 usrlibdir:
29577         @echo usrlibdir='${USRLIBDIR}'
29578 libdir:
29579         @echo libdir='${LIBDIR}'
29580 _ACEOF
29581   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29582     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29583     for ac_var in incroot usrlibdir libdir; do
29584       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29585     done
29586     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29587     for ac_extension in a so sl; do
29588       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29589          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29590         ac_im_usrlibdir=$ac_im_libdir; break
29591       fi
29592     done
29593     # Screen out bogus values from the imake configuration.  They are
29594     # bogus both because they are the default anyway, and because
29595     # using them would break gcc on systems where it needs fixed includes.
29596     case $ac_im_incroot in
29597         /usr/include) ac_x_includes= ;;
29598         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29599     esac
29600     case $ac_im_usrlibdir in
29601         /usr/lib | /lib) ;;
29602         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29603     esac
29604   fi
29605   cd ..
29606   rm -f -r conftest.dir
29607 fi
29608
29609 # Standard set of common directories for X headers.
29610 # Check X11 before X11Rn because it is often a symlink to the current release.
29611 ac_x_header_dirs='
29612 /usr/X11/include
29613 /usr/X11R6/include
29614 /usr/X11R5/include
29615 /usr/X11R4/include
29616
29617 /usr/include/X11
29618 /usr/include/X11R6
29619 /usr/include/X11R5
29620 /usr/include/X11R4
29621
29622 /usr/local/X11/include
29623 /usr/local/X11R6/include
29624 /usr/local/X11R5/include
29625 /usr/local/X11R4/include
29626
29627 /usr/local/include/X11
29628 /usr/local/include/X11R6
29629 /usr/local/include/X11R5
29630 /usr/local/include/X11R4
29631
29632 /usr/X386/include
29633 /usr/x386/include
29634 /usr/XFree86/include/X11
29635
29636 /usr/include
29637 /usr/local/include
29638 /usr/unsupported/include
29639 /usr/athena/include
29640 /usr/local/x11r5/include
29641 /usr/lpp/Xamples/include
29642
29643 /usr/openwin/include
29644 /usr/openwin/share/include'
29645
29646 if test "$ac_x_includes" = no; then
29647   # Guess where to find include files, by looking for Xlib.h.
29648   # First, try using that file with no special directory specified.
29649   cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655 #include <X11/Xlib.h>
29656 _ACEOF
29657 if { (ac_try="$ac_cpp conftest.$ac_ext"
29658 case "(($ac_try" in
29659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660   *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29664   ac_status=$?
29665   grep -v '^ *+' conftest.er1 >conftest.err
29666   rm -f conftest.er1
29667   cat conftest.err >&5
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); } >/dev/null && {
29670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29671          test ! -s conftest.err
29672        }; then
29673   # We can compile using X headers with no special include directory.
29674 ac_x_includes=
29675 else
29676   echo "$as_me: failed program was:" >&5
29677 sed 's/^/| /' conftest.$ac_ext >&5
29678
29679   for ac_dir in $ac_x_header_dirs; do
29680   if test -r "$ac_dir/X11/Xlib.h"; then
29681     ac_x_includes=$ac_dir
29682     break
29683   fi
29684 done
29685 fi
29686
29687 rm -f conftest.err conftest.$ac_ext
29688 fi # $ac_x_includes = no
29689
29690 if test "$ac_x_libraries" = no; then
29691   # Check for the libraries.
29692   # See if we find them without any special options.
29693   # Don't add to $LIBS permanently.
29694   ac_save_LIBS=$LIBS
29695   LIBS="-lX11 $LIBS"
29696   cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702 #include <X11/Xlib.h>
29703 int
29704 main ()
29705 {
29706 XrmInitialize ()
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (ac_try="$ac_link"
29713 case "(($ac_try" in
29714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715   *) ac_try_echo=$ac_try;;
29716 esac
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718   (eval "$ac_link") 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } && {
29725          test -z "$ac_c_werror_flag" ||
29726          test ! -s conftest.err
29727        } && test -s conftest$ac_exeext &&
29728        $as_test_x conftest$ac_exeext; then
29729   LIBS=$ac_save_LIBS
29730 # We can link X programs with no special library path.
29731 ac_x_libraries=
29732 else
29733   echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736         LIBS=$ac_save_LIBS
29737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29738 do
29739   # Don't even attempt the hair of trying to link an X program!
29740   for ac_extension in a so sl; do
29741     if test -r "$ac_dir/libX11.$ac_extension"; then
29742       ac_x_libraries=$ac_dir
29743       break 2
29744     fi
29745   done
29746 done
29747 fi
29748
29749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29750       conftest$ac_exeext conftest.$ac_ext
29751 fi # $ac_x_libraries = no
29752
29753 case $ac_x_includes,$ac_x_libraries in #(
29754   no,* | *,no | *\'*)
29755     # Didn't find X, or a directory has "'" in its name.
29756     ac_cv_have_x="have_x=no";; #(
29757   *)
29758     # Record where we found X for the cache.
29759     ac_cv_have_x="have_x=yes\
29760         ac_x_includes='$ac_x_includes'\
29761         ac_x_libraries='$ac_x_libraries'"
29762 esac
29763 fi
29764 ;; #(
29765     *) have_x=yes;;
29766   esac
29767   eval "$ac_cv_have_x"
29768 fi # $with_x != no
29769
29770 if test "$have_x" != yes; then
29771   { echo "$as_me:$LINENO: result: $have_x" >&5
29772 echo "${ECHO_T}$have_x" >&6; }
29773   no_x=yes
29774 else
29775   # If each of the values was on the command line, it overrides each guess.
29776   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29777   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29778   # Update the cache value to reflect the command line values.
29779   ac_cv_have_x="have_x=yes\
29780         ac_x_includes='$x_includes'\
29781         ac_x_libraries='$x_libraries'"
29782   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29783 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29784 fi
29785
29786 if test "$no_x" = yes; then
29787   # Not all programs may use this symbol, but it does not hurt to define it.
29788
29789 cat >>confdefs.h <<\_ACEOF
29790 #define X_DISPLAY_MISSING 1
29791 _ACEOF
29792
29793   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29794 else
29795   if test -n "$x_includes"; then
29796     X_CFLAGS="$X_CFLAGS -I$x_includes"
29797   fi
29798
29799   # It would also be nice to do this for all -L options, not just this one.
29800   if test -n "$x_libraries"; then
29801     X_LIBS="$X_LIBS -L$x_libraries"
29802     # For Solaris; some versions of Sun CC require a space after -R and
29803     # others require no space.  Words are not sufficient . . . .
29804     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29805 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29806     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29807     ac_xsave_c_werror_flag=$ac_c_werror_flag
29808     ac_c_werror_flag=yes
29809     cat >conftest.$ac_ext <<_ACEOF
29810 /* confdefs.h.  */
29811 _ACEOF
29812 cat confdefs.h >>conftest.$ac_ext
29813 cat >>conftest.$ac_ext <<_ACEOF
29814 /* end confdefs.h.  */
29815
29816 int
29817 main ()
29818 {
29819
29820   ;
29821   return 0;
29822 }
29823 _ACEOF
29824 rm -f conftest.$ac_objext conftest$ac_exeext
29825 if { (ac_try="$ac_link"
29826 case "(($ac_try" in
29827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828   *) ac_try_echo=$ac_try;;
29829 esac
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831   (eval "$ac_link") 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } && {
29838          test -z "$ac_c_werror_flag" ||
29839          test ! -s conftest.err
29840        } && test -s conftest$ac_exeext &&
29841        $as_test_x conftest$ac_exeext; then
29842   { echo "$as_me:$LINENO: result: no" >&5
29843 echo "${ECHO_T}no" >&6; }
29844        X_LIBS="$X_LIBS -R$x_libraries"
29845 else
29846   echo "$as_me: failed program was:" >&5
29847 sed 's/^/| /' conftest.$ac_ext >&5
29848
29849         LIBS="$ac_xsave_LIBS -R $x_libraries"
29850        cat >conftest.$ac_ext <<_ACEOF
29851 /* confdefs.h.  */
29852 _ACEOF
29853 cat confdefs.h >>conftest.$ac_ext
29854 cat >>conftest.$ac_ext <<_ACEOF
29855 /* end confdefs.h.  */
29856
29857 int
29858 main ()
29859 {
29860
29861   ;
29862   return 0;
29863 }
29864 _ACEOF
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (ac_try="$ac_link"
29867 case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872   (eval "$ac_link") 2>conftest.er1
29873   ac_status=$?
29874   grep -v '^ *+' conftest.er1 >conftest.err
29875   rm -f conftest.er1
29876   cat conftest.err >&5
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); } && {
29879          test -z "$ac_c_werror_flag" ||
29880          test ! -s conftest.err
29881        } && test -s conftest$ac_exeext &&
29882        $as_test_x conftest$ac_exeext; then
29883   { echo "$as_me:$LINENO: result: yes" >&5
29884 echo "${ECHO_T}yes" >&6; }
29885           X_LIBS="$X_LIBS -R $x_libraries"
29886 else
29887   echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29889
29890         { echo "$as_me:$LINENO: result: neither works" >&5
29891 echo "${ECHO_T}neither works" >&6; }
29892 fi
29893
29894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29895       conftest$ac_exeext conftest.$ac_ext
29896 fi
29897
29898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29899       conftest$ac_exeext conftest.$ac_ext
29900     ac_c_werror_flag=$ac_xsave_c_werror_flag
29901     LIBS=$ac_xsave_LIBS
29902   fi
29903
29904   # Check for system-dependent libraries X programs must link with.
29905   # Do this before checking for the system-independent R6 libraries
29906   # (-lICE), since we may need -lsocket or whatever for X linking.
29907
29908   if test "$ISC" = yes; then
29909     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29910   else
29911     # Martyn Johnson says this is needed for Ultrix, if the X
29912     # libraries were built with DECnet support.  And Karl Berry says
29913     # the Alpha needs dnet_stub (dnet does not exist).
29914     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29915     cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h.  */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h.  */
29921
29922 /* Override any GCC internal prototype to avoid an error.
29923    Use char because int might match the return type of a GCC
29924    builtin and then its argument prototype would still apply.  */
29925 #ifdef __cplusplus
29926 extern "C"
29927 #endif
29928 char XOpenDisplay ();
29929 int
29930 main ()
29931 {
29932 return XOpenDisplay ();
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest.$ac_objext conftest$ac_exeext
29938 if { (ac_try="$ac_link"
29939 case "(($ac_try" in
29940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941   *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944   (eval "$ac_link") 2>conftest.er1
29945   ac_status=$?
29946   grep -v '^ *+' conftest.er1 >conftest.err
29947   rm -f conftest.er1
29948   cat conftest.err >&5
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } && {
29951          test -z "$ac_c_werror_flag" ||
29952          test ! -s conftest.err
29953        } && test -s conftest$ac_exeext &&
29954        $as_test_x conftest$ac_exeext; then
29955   :
29956 else
29957   echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29959
29960         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29961 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29962 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29963   echo $ECHO_N "(cached) $ECHO_C" >&6
29964 else
29965   ac_check_lib_save_LIBS=$LIBS
29966 LIBS="-ldnet  $LIBS"
29967 cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973
29974 /* Override any GCC internal prototype to avoid an error.
29975    Use char because int might match the return type of a GCC
29976    builtin and then its argument prototype would still apply.  */
29977 #ifdef __cplusplus
29978 extern "C"
29979 #endif
29980 char dnet_ntoa ();
29981 int
29982 main ()
29983 {
29984 return dnet_ntoa ();
29985   ;
29986   return 0;
29987 }
29988 _ACEOF
29989 rm -f conftest.$ac_objext conftest$ac_exeext
29990 if { (ac_try="$ac_link"
29991 case "(($ac_try" in
29992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993   *) ac_try_echo=$ac_try;;
29994 esac
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996   (eval "$ac_link") 2>conftest.er1
29997   ac_status=$?
29998   grep -v '^ *+' conftest.er1 >conftest.err
29999   rm -f conftest.er1
30000   cat conftest.err >&5
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); } && {
30003          test -z "$ac_c_werror_flag" ||
30004          test ! -s conftest.err
30005        } && test -s conftest$ac_exeext &&
30006        $as_test_x conftest$ac_exeext; then
30007   ac_cv_lib_dnet_dnet_ntoa=yes
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012         ac_cv_lib_dnet_dnet_ntoa=no
30013 fi
30014
30015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30016       conftest$ac_exeext conftest.$ac_ext
30017 LIBS=$ac_check_lib_save_LIBS
30018 fi
30019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30020 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30021 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30022   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30023 fi
30024
30025     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30026       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30027 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30028 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30029   echo $ECHO_N "(cached) $ECHO_C" >&6
30030 else
30031   ac_check_lib_save_LIBS=$LIBS
30032 LIBS="-ldnet_stub  $LIBS"
30033 cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h.  */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h.  */
30039
30040 /* Override any GCC internal prototype to avoid an error.
30041    Use char because int might match the return type of a GCC
30042    builtin and then its argument prototype would still apply.  */
30043 #ifdef __cplusplus
30044 extern "C"
30045 #endif
30046 char dnet_ntoa ();
30047 int
30048 main ()
30049 {
30050 return dnet_ntoa ();
30051   ;
30052   return 0;
30053 }
30054 _ACEOF
30055 rm -f conftest.$ac_objext conftest$ac_exeext
30056 if { (ac_try="$ac_link"
30057 case "(($ac_try" in
30058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059   *) ac_try_echo=$ac_try;;
30060 esac
30061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062   (eval "$ac_link") 2>conftest.er1
30063   ac_status=$?
30064   grep -v '^ *+' conftest.er1 >conftest.err
30065   rm -f conftest.er1
30066   cat conftest.err >&5
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); } && {
30069          test -z "$ac_c_werror_flag" ||
30070          test ! -s conftest.err
30071        } && test -s conftest$ac_exeext &&
30072        $as_test_x conftest$ac_exeext; then
30073   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30074 else
30075   echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30077
30078         ac_cv_lib_dnet_stub_dnet_ntoa=no
30079 fi
30080
30081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30082       conftest$ac_exeext conftest.$ac_ext
30083 LIBS=$ac_check_lib_save_LIBS
30084 fi
30085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30086 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30087 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30088   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30089 fi
30090
30091     fi
30092 fi
30093
30094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30095       conftest$ac_exeext conftest.$ac_ext
30096     LIBS="$ac_xsave_LIBS"
30097
30098     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30099     # to get the SysV transport functions.
30100     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30101     # needs -lnsl.
30102     # The nsl library prevents programs from opening the X display
30103     # on Irix 5.2, according to T.E. Dickey.
30104     # The functions gethostbyname, getservbyname, and inet_addr are
30105     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30106     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30107 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30108 if test "${ac_cv_func_gethostbyname+set}" = set; then
30109   echo $ECHO_N "(cached) $ECHO_C" >&6
30110 else
30111   cat >conftest.$ac_ext <<_ACEOF
30112 /* confdefs.h.  */
30113 _ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h.  */
30117 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30119 #define gethostbyname innocuous_gethostbyname
30120
30121 /* System header to define __stub macros and hopefully few prototypes,
30122     which can conflict with char gethostbyname (); below.
30123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30124     <limits.h> exists even on freestanding compilers.  */
30125
30126 #ifdef __STDC__
30127 # include <limits.h>
30128 #else
30129 # include <assert.h>
30130 #endif
30131
30132 #undef gethostbyname
30133
30134 /* Override any GCC internal prototype to avoid an error.
30135    Use char because int might match the return type of a GCC
30136    builtin and then its argument prototype would still apply.  */
30137 #ifdef __cplusplus
30138 extern "C"
30139 #endif
30140 char gethostbyname ();
30141 /* The GNU C library defines this for functions which it implements
30142     to always fail with ENOSYS.  Some functions are actually named
30143     something starting with __ and the normal name is an alias.  */
30144 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30145 choke me
30146 #endif
30147
30148 int
30149 main ()
30150 {
30151 return gethostbyname ();
30152   ;
30153   return 0;
30154 }
30155 _ACEOF
30156 rm -f conftest.$ac_objext conftest$ac_exeext
30157 if { (ac_try="$ac_link"
30158 case "(($ac_try" in
30159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160   *) ac_try_echo=$ac_try;;
30161 esac
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163   (eval "$ac_link") 2>conftest.er1
30164   ac_status=$?
30165   grep -v '^ *+' conftest.er1 >conftest.err
30166   rm -f conftest.er1
30167   cat conftest.err >&5
30168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169   (exit $ac_status); } && {
30170          test -z "$ac_c_werror_flag" ||
30171          test ! -s conftest.err
30172        } && test -s conftest$ac_exeext &&
30173        $as_test_x conftest$ac_exeext; then
30174   ac_cv_func_gethostbyname=yes
30175 else
30176   echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30178
30179         ac_cv_func_gethostbyname=no
30180 fi
30181
30182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30183       conftest$ac_exeext conftest.$ac_ext
30184 fi
30185 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30186 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30187
30188     if test $ac_cv_func_gethostbyname = no; then
30189       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30190 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30191 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30192   echo $ECHO_N "(cached) $ECHO_C" >&6
30193 else
30194   ac_check_lib_save_LIBS=$LIBS
30195 LIBS="-lnsl  $LIBS"
30196 cat >conftest.$ac_ext <<_ACEOF
30197 /* confdefs.h.  */
30198 _ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h.  */
30202
30203 /* Override any GCC internal prototype to avoid an error.
30204    Use char because int might match the return type of a GCC
30205    builtin and then its argument prototype would still apply.  */
30206 #ifdef __cplusplus
30207 extern "C"
30208 #endif
30209 char gethostbyname ();
30210 int
30211 main ()
30212 {
30213 return gethostbyname ();
30214   ;
30215   return 0;
30216 }
30217 _ACEOF
30218 rm -f conftest.$ac_objext conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_link") 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } && {
30232          test -z "$ac_c_werror_flag" ||
30233          test ! -s conftest.err
30234        } && test -s conftest$ac_exeext &&
30235        $as_test_x conftest$ac_exeext; then
30236   ac_cv_lib_nsl_gethostbyname=yes
30237 else
30238   echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30240
30241         ac_cv_lib_nsl_gethostbyname=no
30242 fi
30243
30244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30245       conftest$ac_exeext conftest.$ac_ext
30246 LIBS=$ac_check_lib_save_LIBS
30247 fi
30248 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30249 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30250 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30251   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30252 fi
30253
30254       if test $ac_cv_lib_nsl_gethostbyname = no; then
30255         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30256 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30257 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30258   echo $ECHO_N "(cached) $ECHO_C" >&6
30259 else
30260   ac_check_lib_save_LIBS=$LIBS
30261 LIBS="-lbsd  $LIBS"
30262 cat >conftest.$ac_ext <<_ACEOF
30263 /* confdefs.h.  */
30264 _ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h.  */
30268
30269 /* Override any GCC internal prototype to avoid an error.
30270    Use char because int might match the return type of a GCC
30271    builtin and then its argument prototype would still apply.  */
30272 #ifdef __cplusplus
30273 extern "C"
30274 #endif
30275 char gethostbyname ();
30276 int
30277 main ()
30278 {
30279 return gethostbyname ();
30280   ;
30281   return 0;
30282 }
30283 _ACEOF
30284 rm -f conftest.$ac_objext conftest$ac_exeext
30285 if { (ac_try="$ac_link"
30286 case "(($ac_try" in
30287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288   *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291   (eval "$ac_link") 2>conftest.er1
30292   ac_status=$?
30293   grep -v '^ *+' conftest.er1 >conftest.err
30294   rm -f conftest.er1
30295   cat conftest.err >&5
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } && {
30298          test -z "$ac_c_werror_flag" ||
30299          test ! -s conftest.err
30300        } && test -s conftest$ac_exeext &&
30301        $as_test_x conftest$ac_exeext; then
30302   ac_cv_lib_bsd_gethostbyname=yes
30303 else
30304   echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30306
30307         ac_cv_lib_bsd_gethostbyname=no
30308 fi
30309
30310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30311       conftest$ac_exeext conftest.$ac_ext
30312 LIBS=$ac_check_lib_save_LIBS
30313 fi
30314 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30315 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30316 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30317   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30318 fi
30319
30320       fi
30321     fi
30322
30323     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30324     # socket/setsockopt and other routines are undefined under SCO ODT
30325     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30326     # on later versions), says Simon Leinen: it contains gethostby*
30327     # variants that don't use the name server (or something).  -lsocket
30328     # must be given before -lnsl if both are needed.  We assume that
30329     # if connect needs -lnsl, so does gethostbyname.
30330     { echo "$as_me:$LINENO: checking for connect" >&5
30331 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30332 if test "${ac_cv_func_connect+set}" = set; then
30333   echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335   cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30343 #define connect innocuous_connect
30344
30345 /* System header to define __stub macros and hopefully few prototypes,
30346     which can conflict with char connect (); below.
30347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30348     <limits.h> exists even on freestanding compilers.  */
30349
30350 #ifdef __STDC__
30351 # include <limits.h>
30352 #else
30353 # include <assert.h>
30354 #endif
30355
30356 #undef connect
30357
30358 /* Override any GCC internal prototype to avoid an error.
30359    Use char because int might match the return type of a GCC
30360    builtin and then its argument prototype would still apply.  */
30361 #ifdef __cplusplus
30362 extern "C"
30363 #endif
30364 char connect ();
30365 /* The GNU C library defines this for functions which it implements
30366     to always fail with ENOSYS.  Some functions are actually named
30367     something starting with __ and the normal name is an alias.  */
30368 #if defined __stub_connect || defined __stub___connect
30369 choke me
30370 #endif
30371
30372 int
30373 main ()
30374 {
30375 return connect ();
30376   ;
30377   return 0;
30378 }
30379 _ACEOF
30380 rm -f conftest.$ac_objext conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384   *) ac_try_echo=$ac_try;;
30385 esac
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387   (eval "$ac_link") 2>conftest.er1
30388   ac_status=$?
30389   grep -v '^ *+' conftest.er1 >conftest.err
30390   rm -f conftest.er1
30391   cat conftest.err >&5
30392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); } && {
30394          test -z "$ac_c_werror_flag" ||
30395          test ! -s conftest.err
30396        } && test -s conftest$ac_exeext &&
30397        $as_test_x conftest$ac_exeext; then
30398   ac_cv_func_connect=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30402
30403         ac_cv_func_connect=no
30404 fi
30405
30406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30407       conftest$ac_exeext conftest.$ac_ext
30408 fi
30409 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30410 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30411
30412     if test $ac_cv_func_connect = no; then
30413       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30414 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30415 if test "${ac_cv_lib_socket_connect+set}" = set; then
30416   echo $ECHO_N "(cached) $ECHO_C" >&6
30417 else
30418   ac_check_lib_save_LIBS=$LIBS
30419 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30420 cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426
30427 /* Override any GCC internal prototype to avoid an error.
30428    Use char because int might match the return type of a GCC
30429    builtin and then its argument prototype would still apply.  */
30430 #ifdef __cplusplus
30431 extern "C"
30432 #endif
30433 char connect ();
30434 int
30435 main ()
30436 {
30437 return connect ();
30438   ;
30439   return 0;
30440 }
30441 _ACEOF
30442 rm -f conftest.$ac_objext conftest$ac_exeext
30443 if { (ac_try="$ac_link"
30444 case "(($ac_try" in
30445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446   *) ac_try_echo=$ac_try;;
30447 esac
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449   (eval "$ac_link") 2>conftest.er1
30450   ac_status=$?
30451   grep -v '^ *+' conftest.er1 >conftest.err
30452   rm -f conftest.er1
30453   cat conftest.err >&5
30454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455   (exit $ac_status); } && {
30456          test -z "$ac_c_werror_flag" ||
30457          test ! -s conftest.err
30458        } && test -s conftest$ac_exeext &&
30459        $as_test_x conftest$ac_exeext; then
30460   ac_cv_lib_socket_connect=yes
30461 else
30462   echo "$as_me: failed program was:" >&5
30463 sed 's/^/| /' conftest.$ac_ext >&5
30464
30465         ac_cv_lib_socket_connect=no
30466 fi
30467
30468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30469       conftest$ac_exeext conftest.$ac_ext
30470 LIBS=$ac_check_lib_save_LIBS
30471 fi
30472 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30473 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30474 if test $ac_cv_lib_socket_connect = yes; then
30475   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30476 fi
30477
30478     fi
30479
30480     # Guillermo Gomez says -lposix is necessary on A/UX.
30481     { echo "$as_me:$LINENO: checking for remove" >&5
30482 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30483 if test "${ac_cv_func_remove+set}" = set; then
30484   echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486   cat >conftest.$ac_ext <<_ACEOF
30487 /* confdefs.h.  */
30488 _ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h.  */
30492 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30494 #define remove innocuous_remove
30495
30496 /* System header to define __stub macros and hopefully few prototypes,
30497     which can conflict with char remove (); below.
30498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30499     <limits.h> exists even on freestanding compilers.  */
30500
30501 #ifdef __STDC__
30502 # include <limits.h>
30503 #else
30504 # include <assert.h>
30505 #endif
30506
30507 #undef remove
30508
30509 /* Override any GCC internal prototype to avoid an error.
30510    Use char because int might match the return type of a GCC
30511    builtin and then its argument prototype would still apply.  */
30512 #ifdef __cplusplus
30513 extern "C"
30514 #endif
30515 char remove ();
30516 /* The GNU C library defines this for functions which it implements
30517     to always fail with ENOSYS.  Some functions are actually named
30518     something starting with __ and the normal name is an alias.  */
30519 #if defined __stub_remove || defined __stub___remove
30520 choke me
30521 #endif
30522
30523 int
30524 main ()
30525 {
30526 return remove ();
30527   ;
30528   return 0;
30529 }
30530 _ACEOF
30531 rm -f conftest.$ac_objext conftest$ac_exeext
30532 if { (ac_try="$ac_link"
30533 case "(($ac_try" in
30534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535   *) ac_try_echo=$ac_try;;
30536 esac
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538   (eval "$ac_link") 2>conftest.er1
30539   ac_status=$?
30540   grep -v '^ *+' conftest.er1 >conftest.err
30541   rm -f conftest.er1
30542   cat conftest.err >&5
30543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544   (exit $ac_status); } && {
30545          test -z "$ac_c_werror_flag" ||
30546          test ! -s conftest.err
30547        } && test -s conftest$ac_exeext &&
30548        $as_test_x conftest$ac_exeext; then
30549   ac_cv_func_remove=yes
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554         ac_cv_func_remove=no
30555 fi
30556
30557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30558       conftest$ac_exeext conftest.$ac_ext
30559 fi
30560 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30561 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30562
30563     if test $ac_cv_func_remove = no; then
30564       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30565 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30566 if test "${ac_cv_lib_posix_remove+set}" = set; then
30567   echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30569   ac_check_lib_save_LIBS=$LIBS
30570 LIBS="-lposix  $LIBS"
30571 cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577
30578 /* Override any GCC internal prototype to avoid an error.
30579    Use char because int might match the return type of a GCC
30580    builtin and then its argument prototype would still apply.  */
30581 #ifdef __cplusplus
30582 extern "C"
30583 #endif
30584 char remove ();
30585 int
30586 main ()
30587 {
30588 return remove ();
30589   ;
30590   return 0;
30591 }
30592 _ACEOF
30593 rm -f conftest.$ac_objext conftest$ac_exeext
30594 if { (ac_try="$ac_link"
30595 case "(($ac_try" in
30596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597   *) ac_try_echo=$ac_try;;
30598 esac
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600   (eval "$ac_link") 2>conftest.er1
30601   ac_status=$?
30602   grep -v '^ *+' conftest.er1 >conftest.err
30603   rm -f conftest.er1
30604   cat conftest.err >&5
30605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606   (exit $ac_status); } && {
30607          test -z "$ac_c_werror_flag" ||
30608          test ! -s conftest.err
30609        } && test -s conftest$ac_exeext &&
30610        $as_test_x conftest$ac_exeext; then
30611   ac_cv_lib_posix_remove=yes
30612 else
30613   echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30615
30616         ac_cv_lib_posix_remove=no
30617 fi
30618
30619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30620       conftest$ac_exeext conftest.$ac_ext
30621 LIBS=$ac_check_lib_save_LIBS
30622 fi
30623 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30624 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30625 if test $ac_cv_lib_posix_remove = yes; then
30626   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30627 fi
30628
30629     fi
30630
30631     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30632     { echo "$as_me:$LINENO: checking for shmat" >&5
30633 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30634 if test "${ac_cv_func_shmat+set}" = set; then
30635   echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637   cat >conftest.$ac_ext <<_ACEOF
30638 /* confdefs.h.  */
30639 _ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h.  */
30643 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30645 #define shmat innocuous_shmat
30646
30647 /* System header to define __stub macros and hopefully few prototypes,
30648     which can conflict with char shmat (); below.
30649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30650     <limits.h> exists even on freestanding compilers.  */
30651
30652 #ifdef __STDC__
30653 # include <limits.h>
30654 #else
30655 # include <assert.h>
30656 #endif
30657
30658 #undef shmat
30659
30660 /* Override any GCC internal prototype to avoid an error.
30661    Use char because int might match the return type of a GCC
30662    builtin and then its argument prototype would still apply.  */
30663 #ifdef __cplusplus
30664 extern "C"
30665 #endif
30666 char shmat ();
30667 /* The GNU C library defines this for functions which it implements
30668     to always fail with ENOSYS.  Some functions are actually named
30669     something starting with __ and the normal name is an alias.  */
30670 #if defined __stub_shmat || defined __stub___shmat
30671 choke me
30672 #endif
30673
30674 int
30675 main ()
30676 {
30677 return shmat ();
30678   ;
30679   return 0;
30680 }
30681 _ACEOF
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (ac_try="$ac_link"
30684 case "(($ac_try" in
30685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686   *) ac_try_echo=$ac_try;;
30687 esac
30688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30689   (eval "$ac_link") 2>conftest.er1
30690   ac_status=$?
30691   grep -v '^ *+' conftest.er1 >conftest.err
30692   rm -f conftest.er1
30693   cat conftest.err >&5
30694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695   (exit $ac_status); } && {
30696          test -z "$ac_c_werror_flag" ||
30697          test ! -s conftest.err
30698        } && test -s conftest$ac_exeext &&
30699        $as_test_x conftest$ac_exeext; then
30700   ac_cv_func_shmat=yes
30701 else
30702   echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30704
30705         ac_cv_func_shmat=no
30706 fi
30707
30708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30709       conftest$ac_exeext conftest.$ac_ext
30710 fi
30711 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30712 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30713
30714     if test $ac_cv_func_shmat = no; then
30715       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30716 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30717 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30718   echo $ECHO_N "(cached) $ECHO_C" >&6
30719 else
30720   ac_check_lib_save_LIBS=$LIBS
30721 LIBS="-lipc  $LIBS"
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730    Use char because int might match the return type of a GCC
30731    builtin and then its argument prototype would still apply.  */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char shmat ();
30736 int
30737 main ()
30738 {
30739 return shmat ();
30740   ;
30741   return 0;
30742 }
30743 _ACEOF
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (ac_try="$ac_link"
30746 case "(($ac_try" in
30747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748   *) ac_try_echo=$ac_try;;
30749 esac
30750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30751   (eval "$ac_link") 2>conftest.er1
30752   ac_status=$?
30753   grep -v '^ *+' conftest.er1 >conftest.err
30754   rm -f conftest.er1
30755   cat conftest.err >&5
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); } && {
30758          test -z "$ac_c_werror_flag" ||
30759          test ! -s conftest.err
30760        } && test -s conftest$ac_exeext &&
30761        $as_test_x conftest$ac_exeext; then
30762   ac_cv_lib_ipc_shmat=yes
30763 else
30764   echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30766
30767         ac_cv_lib_ipc_shmat=no
30768 fi
30769
30770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30771       conftest$ac_exeext conftest.$ac_ext
30772 LIBS=$ac_check_lib_save_LIBS
30773 fi
30774 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30775 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30776 if test $ac_cv_lib_ipc_shmat = yes; then
30777   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30778 fi
30779
30780     fi
30781   fi
30782
30783   # Check for libraries that X11R6 Xt/Xaw programs need.
30784   ac_save_LDFLAGS=$LDFLAGS
30785   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30786   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30787   # check for ICE first), but we must link in the order -lSM -lICE or
30788   # we get undefined symbols.  So assume we have SM if we have ICE.
30789   # These have to be linked with before -lX11, unlike the other
30790   # libraries we check for below, so use a different variable.
30791   # John Interrante, Karl Berry
30792   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30793 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30794 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30795   echo $ECHO_N "(cached) $ECHO_C" >&6
30796 else
30797   ac_check_lib_save_LIBS=$LIBS
30798 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30799 cat >conftest.$ac_ext <<_ACEOF
30800 /* confdefs.h.  */
30801 _ACEOF
30802 cat confdefs.h >>conftest.$ac_ext
30803 cat >>conftest.$ac_ext <<_ACEOF
30804 /* end confdefs.h.  */
30805
30806 /* Override any GCC internal prototype to avoid an error.
30807    Use char because int might match the return type of a GCC
30808    builtin and then its argument prototype would still apply.  */
30809 #ifdef __cplusplus
30810 extern "C"
30811 #endif
30812 char IceConnectionNumber ();
30813 int
30814 main ()
30815 {
30816 return IceConnectionNumber ();
30817   ;
30818   return 0;
30819 }
30820 _ACEOF
30821 rm -f conftest.$ac_objext conftest$ac_exeext
30822 if { (ac_try="$ac_link"
30823 case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_link") 2>conftest.er1
30829   ac_status=$?
30830   grep -v '^ *+' conftest.er1 >conftest.err
30831   rm -f conftest.er1
30832   cat conftest.err >&5
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); } && {
30835          test -z "$ac_c_werror_flag" ||
30836          test ! -s conftest.err
30837        } && test -s conftest$ac_exeext &&
30838        $as_test_x conftest$ac_exeext; then
30839   ac_cv_lib_ICE_IceConnectionNumber=yes
30840 else
30841   echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844         ac_cv_lib_ICE_IceConnectionNumber=no
30845 fi
30846
30847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30848       conftest$ac_exeext conftest.$ac_ext
30849 LIBS=$ac_check_lib_save_LIBS
30850 fi
30851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30852 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30853 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30854   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30855 fi
30856
30857   LDFLAGS=$ac_save_LDFLAGS
30858
30859 fi
30860
30861
30862         if test "$no_x" = "yes"; then
30863           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30864 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30865    { (exit 1); exit 1; }; }
30866         fi
30867
30868                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30869         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30870         AFMINSTALL=afminstall
30871         COMPILED_X_PROGRAM=0
30872
30873     fi
30874
30875     if test "$wxUSE_X11" = 1; then
30876         if test "$wxUSE_NANOX" = "yes"; then
30877             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30878 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
30879             if test "x$MICROWIN" = x ; then
30880                 { echo "$as_me:$LINENO: result: not found" >&5
30881 echo "${ECHO_T}not found" >&6; }
30882                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30883 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30884    { (exit 1); exit 1; }; }
30885             else
30886                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
30887 echo "${ECHO_T}$MICROWIN" >&6; }
30888                 cat >>confdefs.h <<\_ACEOF
30889 #define wxUSE_NANOX 1
30890 _ACEOF
30891
30892             fi
30893         fi
30894
30895         if test "$wxUSE_UNICODE" = "yes"; then
30896
30897
30898 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30899         if test -n "$ac_tool_prefix"; then
30900   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30901 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30905   echo $ECHO_N "(cached) $ECHO_C" >&6
30906 else
30907   case $PKG_CONFIG in
30908   [\\/]* | ?:[\\/]*)
30909   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30910   ;;
30911   *)
30912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30913 for as_dir in $PATH
30914 do
30915   IFS=$as_save_IFS
30916   test -z "$as_dir" && as_dir=.
30917   for ac_exec_ext in '' $ac_executable_extensions; do
30918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30919     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30921     break 2
30922   fi
30923 done
30924 done
30925 IFS=$as_save_IFS
30926
30927   ;;
30928 esac
30929 fi
30930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30931 if test -n "$PKG_CONFIG"; then
30932   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30933 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30934 else
30935   { echo "$as_me:$LINENO: result: no" >&5
30936 echo "${ECHO_T}no" >&6; }
30937 fi
30938
30939
30940 fi
30941 if test -z "$ac_cv_path_PKG_CONFIG"; then
30942   ac_pt_PKG_CONFIG=$PKG_CONFIG
30943   # Extract the first word of "pkg-config", so it can be a program name with args.
30944 set dummy pkg-config; ac_word=$2
30945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30947 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30948   echo $ECHO_N "(cached) $ECHO_C" >&6
30949 else
30950   case $ac_pt_PKG_CONFIG in
30951   [\\/]* | ?:[\\/]*)
30952   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30953   ;;
30954   *)
30955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30956 for as_dir in $PATH
30957 do
30958   IFS=$as_save_IFS
30959   test -z "$as_dir" && as_dir=.
30960   for ac_exec_ext in '' $ac_executable_extensions; do
30961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30962     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30964     break 2
30965   fi
30966 done
30967 done
30968 IFS=$as_save_IFS
30969
30970   ;;
30971 esac
30972 fi
30973 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30974 if test -n "$ac_pt_PKG_CONFIG"; then
30975   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30976 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30977 else
30978   { echo "$as_me:$LINENO: result: no" >&5
30979 echo "${ECHO_T}no" >&6; }
30980 fi
30981
30982   if test "x$ac_pt_PKG_CONFIG" = x; then
30983     PKG_CONFIG=""
30984   else
30985     case $cross_compiling:$ac_tool_warned in
30986 yes:)
30987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30988 whose name does not start with the host triplet.  If you think this
30989 configuration is useful to you, please write to autoconf@gnu.org." >&5
30990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30991 whose name does not start with the host triplet.  If you think this
30992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30993 ac_tool_warned=yes ;;
30994 esac
30995     PKG_CONFIG=$ac_pt_PKG_CONFIG
30996   fi
30997 else
30998   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30999 fi
31000
31001 fi
31002 if test -n "$PKG_CONFIG"; then
31003         _pkg_min_version=0.9.0
31004         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31005 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31006         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31007                 { echo "$as_me:$LINENO: result: yes" >&5
31008 echo "${ECHO_T}yes" >&6; }
31009         else
31010                 { echo "$as_me:$LINENO: result: no" >&5
31011 echo "${ECHO_T}no" >&6; }
31012                 PKG_CONFIG=""
31013         fi
31014
31015 fi
31016
31017
31018 pkg_failed=no
31019 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31020 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31021
31022 if test -n "$PKG_CONFIG"; then
31023     if test -n "$PANGOX_CFLAGS"; then
31024         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31025     else
31026         if test -n "$PKG_CONFIG" && \
31027     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31028   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31029   ac_status=$?
31030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031   (exit $ac_status); }; then
31032   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31033 else
31034   pkg_failed=yes
31035 fi
31036     fi
31037 else
31038         pkg_failed=untried
31039 fi
31040 if test -n "$PKG_CONFIG"; then
31041     if test -n "$PANGOX_LIBS"; then
31042         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31043     else
31044         if test -n "$PKG_CONFIG" && \
31045     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31046   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31047   ac_status=$?
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); }; then
31050   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31051 else
31052   pkg_failed=yes
31053 fi
31054     fi
31055 else
31056         pkg_failed=untried
31057 fi
31058
31059
31060
31061 if test $pkg_failed = yes; then
31062
31063 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31064         _pkg_short_errors_supported=yes
31065 else
31066         _pkg_short_errors_supported=no
31067 fi
31068         if test $_pkg_short_errors_supported = yes; then
31069                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31070         else
31071                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31072         fi
31073         # Put the nasty error message in config.log where it belongs
31074         echo "$PANGOX_PKG_ERRORS" >&5
31075
31076
31077                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31078 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31079    { (exit 1); exit 1; }; }
31080
31081
31082 elif test $pkg_failed = untried; then
31083
31084                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31085 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31086    { (exit 1); exit 1; }; }
31087
31088
31089 else
31090         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31091         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31092         { echo "$as_me:$LINENO: result: yes" >&5
31093 echo "${ECHO_T}yes" >&6; }
31094
31095                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31096                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31097                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31098
31099 fi
31100
31101 pkg_failed=no
31102 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31103 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31104
31105 if test -n "$PKG_CONFIG"; then
31106     if test -n "$PANGOFT2_CFLAGS"; then
31107         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31108     else
31109         if test -n "$PKG_CONFIG" && \
31110     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31111   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31112   ac_status=$?
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); }; then
31115   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31116 else
31117   pkg_failed=yes
31118 fi
31119     fi
31120 else
31121         pkg_failed=untried
31122 fi
31123 if test -n "$PKG_CONFIG"; then
31124     if test -n "$PANGOFT2_LIBS"; then
31125         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31126     else
31127         if test -n "$PKG_CONFIG" && \
31128     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31129   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31130   ac_status=$?
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); }; then
31133   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31134 else
31135   pkg_failed=yes
31136 fi
31137     fi
31138 else
31139         pkg_failed=untried
31140 fi
31141
31142
31143
31144 if test $pkg_failed = yes; then
31145
31146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31147         _pkg_short_errors_supported=yes
31148 else
31149         _pkg_short_errors_supported=no
31150 fi
31151         if test $_pkg_short_errors_supported = yes; then
31152                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31153         else
31154                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31155         fi
31156         # Put the nasty error message in config.log where it belongs
31157         echo "$PANGOFT2_PKG_ERRORS" >&5
31158
31159
31160                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31161 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31162                     wxUSE_PRINTING_ARCHITECTURE="no"
31163
31164
31165 elif test $pkg_failed = untried; then
31166
31167                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31168 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31169                     wxUSE_PRINTING_ARCHITECTURE="no"
31170
31171
31172 else
31173         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31174         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31175         { echo "$as_me:$LINENO: result: yes" >&5
31176 echo "${ECHO_T}yes" >&6; }
31177
31178                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31179                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31180                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31181
31182 fi
31183
31184 pkg_failed=no
31185 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31186 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31187
31188 if test -n "$PKG_CONFIG"; then
31189     if test -n "$PANGOXFT_CFLAGS"; then
31190         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31191     else
31192         if test -n "$PKG_CONFIG" && \
31193     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31194   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31195   ac_status=$?
31196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197   (exit $ac_status); }; then
31198   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31199 else
31200   pkg_failed=yes
31201 fi
31202     fi
31203 else
31204         pkg_failed=untried
31205 fi
31206 if test -n "$PKG_CONFIG"; then
31207     if test -n "$PANGOXFT_LIBS"; then
31208         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31209     else
31210         if test -n "$PKG_CONFIG" && \
31211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31212   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31213   ac_status=$?
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); }; then
31216   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31217 else
31218   pkg_failed=yes
31219 fi
31220     fi
31221 else
31222         pkg_failed=untried
31223 fi
31224
31225
31226
31227 if test $pkg_failed = yes; then
31228
31229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31230         _pkg_short_errors_supported=yes
31231 else
31232         _pkg_short_errors_supported=no
31233 fi
31234         if test $_pkg_short_errors_supported = yes; then
31235                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31236         else
31237                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31238         fi
31239         # Put the nasty error message in config.log where it belongs
31240         echo "$PANGOXFT_PKG_ERRORS" >&5
31241
31242
31243                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31244 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31245
31246
31247 elif test $pkg_failed = untried; then
31248
31249                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31250 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31251
31252
31253 else
31254         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31255         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31256         { echo "$as_me:$LINENO: result: yes" >&5
31257 echo "${ECHO_T}yes" >&6; }
31258
31259                     cat >>confdefs.h <<\_ACEOF
31260 #define HAVE_PANGO_XFT 1
31261 _ACEOF
31262
31263                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31264                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31265                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31266
31267 fi
31268             save_LIBS="$LIBS"
31269             LIBS="$LIBS $PANGOX_LIBS"
31270
31271 for ac_func in pango_font_family_is_monospace
31272 do
31273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31287 #define $ac_func innocuous_$ac_func
31288
31289 /* System header to define __stub macros and hopefully few prototypes,
31290     which can conflict with char $ac_func (); below.
31291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292     <limits.h> exists even on freestanding compilers.  */
31293
31294 #ifdef __STDC__
31295 # include <limits.h>
31296 #else
31297 # include <assert.h>
31298 #endif
31299
31300 #undef $ac_func
31301
31302 /* Override any GCC internal prototype to avoid an error.
31303    Use char because int might match the return type of a GCC
31304    builtin and then its argument prototype would still apply.  */
31305 #ifdef __cplusplus
31306 extern "C"
31307 #endif
31308 char $ac_func ();
31309 /* The GNU C library defines this for functions which it implements
31310     to always fail with ENOSYS.  Some functions are actually named
31311     something starting with __ and the normal name is an alias.  */
31312 #if defined __stub_$ac_func || defined __stub___$ac_func
31313 choke me
31314 #endif
31315
31316 int
31317 main ()
31318 {
31319 return $ac_func ();
31320   ;
31321   return 0;
31322 }
31323 _ACEOF
31324 rm -f conftest.$ac_objext conftest$ac_exeext
31325 if { (ac_try="$ac_link"
31326 case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331   (eval "$ac_link") 2>conftest.er1
31332   ac_status=$?
31333   grep -v '^ *+' conftest.er1 >conftest.err
31334   rm -f conftest.er1
31335   cat conftest.err >&5
31336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337   (exit $ac_status); } && {
31338          test -z "$ac_c_werror_flag" ||
31339          test ! -s conftest.err
31340        } && test -s conftest$ac_exeext &&
31341        $as_test_x conftest$ac_exeext; then
31342   eval "$as_ac_var=yes"
31343 else
31344   echo "$as_me: failed program was:" >&5
31345 sed 's/^/| /' conftest.$ac_ext >&5
31346
31347         eval "$as_ac_var=no"
31348 fi
31349
31350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31351       conftest$ac_exeext conftest.$ac_ext
31352 fi
31353 ac_res=`eval echo '${'$as_ac_var'}'`
31354                { echo "$as_me:$LINENO: result: $ac_res" >&5
31355 echo "${ECHO_T}$ac_res" >&6; }
31356 if test `eval echo '${'$as_ac_var'}'` = yes; then
31357   cat >>confdefs.h <<_ACEOF
31358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31359 _ACEOF
31360
31361 fi
31362 done
31363
31364             LIBS="$save_LIBS"
31365         fi
31366
31367         wxUSE_UNIVERSAL="yes"
31368
31369         if test "$wxUSE_NANOX" = "yes"; then
31370             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31371             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"
31372             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31373         else
31374             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31375         fi
31376
31377         TOOLKIT=X11
31378         GUIDIST=X11_DIST
31379     fi
31380
31381     if test "$wxUSE_MOTIF" = 1; then
31382         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31383 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31384
31385 ac_find_includes=
31386 for ac_dir in $SEARCH_INCLUDE /usr/include;
31387   do
31388     if test -f "$ac_dir/Xm/Xm.h"; then
31389       ac_find_includes=$ac_dir
31390       break
31391     fi
31392   done
31393
31394         if test "$ac_find_includes" != "" ; then
31395             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31396 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31397
31398     if test "x$ac_find_includes" = "x/usr/include"; then
31399     ac_path_to_include=""
31400   else
31401     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31402     result=$?
31403     if test $result = 0; then
31404       ac_path_to_include=""
31405     else
31406       ac_path_to_include=" -I$ac_find_includes"
31407     fi
31408   fi
31409
31410             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31411         else
31412             save_CFLAGS=$CFLAGS
31413             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31414
31415             cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h.  */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h.  */
31421
31422                     #include <Xm/Xm.h>
31423
31424 int
31425 main ()
31426 {
31427
31428                     int version;
31429                     version = xmUseVersion;
31430
31431   ;
31432   return 0;
31433 }
31434 _ACEOF
31435 rm -f conftest.$ac_objext
31436 if { (ac_try="$ac_compile"
31437 case "(($ac_try" in
31438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439   *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442   (eval "$ac_compile") 2>conftest.er1
31443   ac_status=$?
31444   grep -v '^ *+' conftest.er1 >conftest.err
31445   rm -f conftest.er1
31446   cat conftest.err >&5
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } && {
31449          test -z "$ac_c_werror_flag" ||
31450          test ! -s conftest.err
31451        } && test -s conftest.$ac_objext; then
31452
31453                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31454 echo "${ECHO_T}found in default search path" >&6; }
31455                     COMPILED_X_PROGRAM=1
31456
31457 else
31458   echo "$as_me: failed program was:" >&5
31459 sed 's/^/| /' conftest.$ac_ext >&5
31460
31461
31462                     { echo "$as_me:$LINENO: result: no" >&5
31463 echo "${ECHO_T}no" >&6; }
31464                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31465 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31466    { (exit 1); exit 1; }; }
31467
31468
31469 fi
31470
31471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31472
31473             CFLAGS=$save_CFLAGS
31474         fi
31475
31476
31477         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31478 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31479
31480   ac_find_libraries=
31481   for ac_dir in $SEARCH_LIB;
31482   do
31483     for ac_extension in a so sl dylib dll.a; do
31484       if test -f "$ac_dir/libXm.$ac_extension"; then
31485         ac_find_libraries=$ac_dir
31486         break 2
31487       fi
31488     done
31489   done
31490
31491
31492         if test "x$ac_find_libraries" != "x" ; then
31493             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31494 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31495
31496
31497     if test "$ac_find_libraries" = "default location"; then
31498     ac_path_to_link=""
31499   else
31500     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31501     result=$?
31502     if test $result = 0; then
31503       ac_path_to_link=""
31504     else
31505       ac_path_to_link=" -L$ac_find_libraries"
31506     fi
31507   fi
31508
31509             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31510         else
31511                                                 save_CFLAGS=$CFLAGS
31512             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31513             save_LIBS="$LIBS"
31514             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31515
31516             cat >conftest.$ac_ext <<_ACEOF
31517 /* confdefs.h.  */
31518 _ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h.  */
31522
31523                     #include <Xm/Xm.h>
31524
31525 int
31526 main ()
31527 {
31528
31529                     int version;
31530                     version = xmUseVersion;
31531
31532   ;
31533   return 0;
31534 }
31535 _ACEOF
31536 rm -f conftest.$ac_objext conftest$ac_exeext
31537 if { (ac_try="$ac_link"
31538 case "(($ac_try" in
31539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540   *) ac_try_echo=$ac_try;;
31541 esac
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543   (eval "$ac_link") 2>conftest.er1
31544   ac_status=$?
31545   grep -v '^ *+' conftest.er1 >conftest.err
31546   rm -f conftest.er1
31547   cat conftest.err >&5
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); } && {
31550          test -z "$ac_c_werror_flag" ||
31551          test ! -s conftest.err
31552        } && test -s conftest$ac_exeext &&
31553        $as_test_x conftest$ac_exeext; then
31554
31555                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31556 echo "${ECHO_T}found in default search path" >&6; }
31557                     COMPILED_X_PROGRAM=1
31558
31559 else
31560   echo "$as_me: failed program was:" >&5
31561 sed 's/^/| /' conftest.$ac_ext >&5
31562
31563
31564                     { echo "$as_me:$LINENO: result: no" >&5
31565 echo "${ECHO_T}no" >&6; }
31566                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31567 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31568    { (exit 1); exit 1; }; }
31569
31570
31571 fi
31572
31573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31574       conftest$ac_exeext conftest.$ac_ext
31575
31576             CFLAGS=$save_CFLAGS
31577             LIBS="$save_LIBS"
31578         fi
31579
31580         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31581 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31582         libp_link=""
31583         libsm_ice_link=""
31584         libs_found=0
31585         for libp in "" " -lXp"; do
31586             if test "$libs_found" = 0; then
31587                 for libsm_ice in "" " -lSM -lICE"; do
31588                     if test "$libs_found" = 0; then
31589                         save_LIBS="$LIBS"
31590                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31591                         save_CFLAGS=$CFLAGS
31592                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31593
31594                         cat >conftest.$ac_ext <<_ACEOF
31595 /* confdefs.h.  */
31596 _ACEOF
31597 cat confdefs.h >>conftest.$ac_ext
31598 cat >>conftest.$ac_ext <<_ACEOF
31599 /* end confdefs.h.  */
31600
31601                                 #include <Xm/Xm.h>
31602                                 #include <Xm/List.h>
31603
31604 int
31605 main ()
31606 {
31607
31608                                 XmString string = NULL;
31609                                 Widget w = NULL;
31610                                 int position = 0;
31611                                 XmListAddItem(w, string, position);
31612
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621   *) ac_try_echo=$ac_try;;
31622 esac
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624   (eval "$ac_link") 2>conftest.er1
31625   ac_status=$?
31626   grep -v '^ *+' conftest.er1 >conftest.err
31627   rm -f conftest.er1
31628   cat conftest.err >&5
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } && {
31631          test -z "$ac_c_werror_flag" ||
31632          test ! -s conftest.err
31633        } && test -s conftest$ac_exeext &&
31634        $as_test_x conftest$ac_exeext; then
31635
31636                                 libp_link="$libp"
31637                                 libsm_ice_link="$libsm_ice"
31638                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31639 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
31640                                 libs_found=1
31641
31642 else
31643   echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31645
31646
31647
31648 fi
31649
31650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31651       conftest$ac_exeext conftest.$ac_ext
31652
31653                         LIBS="$save_LIBS"
31654                         CFLAGS=$save_CFLAGS
31655                     fi
31656                 done
31657             fi
31658         done
31659
31660         if test "$libs_found" = 0; then
31661             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31662 echo "${ECHO_T}can't find the right libraries" >&6; }
31663             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31664 echo "$as_me: error: can't link a simple motif program" >&2;}
31665    { (exit 1); exit 1; }; }
31666         fi
31667
31668                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31669 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
31670 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31671   echo $ECHO_N "(cached) $ECHO_C" >&6
31672 else
31673   ac_check_lib_save_LIBS=$LIBS
31674 LIBS="-lSgm  $LIBS"
31675 cat >conftest.$ac_ext <<_ACEOF
31676 /* confdefs.h.  */
31677 _ACEOF
31678 cat confdefs.h >>conftest.$ac_ext
31679 cat >>conftest.$ac_ext <<_ACEOF
31680 /* end confdefs.h.  */
31681
31682 /* Override any GCC internal prototype to avoid an error.
31683    Use char because int might match the return type of a GCC
31684    builtin and then its argument prototype would still apply.  */
31685 #ifdef __cplusplus
31686 extern "C"
31687 #endif
31688 char SgCreateList ();
31689 int
31690 main ()
31691 {
31692 return SgCreateList ();
31693   ;
31694   return 0;
31695 }
31696 _ACEOF
31697 rm -f conftest.$ac_objext conftest$ac_exeext
31698 if { (ac_try="$ac_link"
31699 case "(($ac_try" in
31700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701   *) ac_try_echo=$ac_try;;
31702 esac
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704   (eval "$ac_link") 2>conftest.er1
31705   ac_status=$?
31706   grep -v '^ *+' conftest.er1 >conftest.err
31707   rm -f conftest.er1
31708   cat conftest.err >&5
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); } && {
31711          test -z "$ac_c_werror_flag" ||
31712          test ! -s conftest.err
31713        } && test -s conftest$ac_exeext &&
31714        $as_test_x conftest$ac_exeext; then
31715   ac_cv_lib_Sgm_SgCreateList=yes
31716 else
31717   echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31719
31720         ac_cv_lib_Sgm_SgCreateList=no
31721 fi
31722
31723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31724       conftest$ac_exeext conftest.$ac_ext
31725 LIBS=$ac_check_lib_save_LIBS
31726 fi
31727 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31728 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
31729 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31730   libsgm_link=" -lSgm"
31731 fi
31732
31733
31734         save_CFLAGS=$CFLAGS
31735         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31736
31737         { echo "$as_me:$LINENO: checking for Motif 2" >&5
31738 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
31739 if test "${wx_cv_lib_motif2+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748
31749                             #include <Xm/Xm.h>
31750
31751 int
31752 main ()
31753 {
31754
31755                             #if XmVersion < 2000
31756                             Not Motif 2
31757                             #endif
31758
31759   ;
31760   return 0;
31761 }
31762 _ACEOF
31763 rm -f conftest.$ac_objext
31764 if { (ac_try="$ac_compile"
31765 case "(($ac_try" in
31766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767   *) ac_try_echo=$ac_try;;
31768 esac
31769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770   (eval "$ac_compile") 2>conftest.er1
31771   ac_status=$?
31772   grep -v '^ *+' conftest.er1 >conftest.err
31773   rm -f conftest.er1
31774   cat conftest.err >&5
31775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); } && {
31777          test -z "$ac_c_werror_flag" ||
31778          test ! -s conftest.err
31779        } && test -s conftest.$ac_objext; then
31780   wx_cv_lib_motif2="yes"
31781 else
31782   echo "$as_me: failed program was:" >&5
31783 sed 's/^/| /' conftest.$ac_ext >&5
31784
31785         wx_cv_lib_motif2="no"
31786 fi
31787
31788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789 fi
31790 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31791 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
31792         if test "$wx_cv_lib_motif2" = "yes"; then
31793             cat >>confdefs.h <<\_ACEOF
31794 #define __WXMOTIF20__ 1
31795 _ACEOF
31796
31797         else
31798             cat >>confdefs.h <<\_ACEOF
31799 #define __WXMOTIF20__ 0
31800 _ACEOF
31801
31802         fi
31803
31804         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31805 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
31806 if test "${wx_cv_lib_lesstif+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809   cat >conftest.$ac_ext <<_ACEOF
31810 /* confdefs.h.  */
31811 _ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h.  */
31815
31816                             #include <Xm/Xm.h>
31817
31818 int
31819 main ()
31820 {
31821
31822                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31823                             Not Lesstif
31824                             #endif
31825
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext
31831 if { (ac_try="$ac_compile"
31832 case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_compile") 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } && {
31844          test -z "$ac_c_werror_flag" ||
31845          test ! -s conftest.err
31846        } && test -s conftest.$ac_objext; then
31847   wx_cv_lib_lesstif="yes"
31848 else
31849   echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31851
31852         wx_cv_lib_lesstif="no"
31853 fi
31854
31855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856
31857 fi
31858 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31859 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
31860         if test "$wx_cv_lib_lesstif" = "yes"; then
31861             cat >>confdefs.h <<\_ACEOF
31862 #define __WXLESSTIF__ 1
31863 _ACEOF
31864
31865         else
31866             cat >>confdefs.h <<\_ACEOF
31867 #define __WXLESSTIF__ 0
31868 _ACEOF
31869
31870         fi
31871
31872         CFLAGS=$save_CFLAGS
31873
31874         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31875         TOOLKIT=MOTIF
31876         GUIDIST=MOTIF_DIST
31877     fi
31878
31879         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31880                 if test "$wxUSE_LIBXPM" = "sys"; then
31881             { echo "$as_me:$LINENO: checking for Xpm library" >&5
31882 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
31883
31884   ac_find_libraries=
31885   for ac_dir in $SEARCH_LIB;
31886   do
31887     for ac_extension in a so sl dylib dll.a; do
31888       if test -f "$ac_dir/libXpm.$ac_extension"; then
31889         ac_find_libraries=$ac_dir
31890         break 2
31891       fi
31892     done
31893   done
31894
31895             if test "$ac_find_libraries" != "" ; then
31896
31897     if test "$ac_find_libraries" = "default location"; then
31898     ac_path_to_link=""
31899   else
31900     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31901     result=$?
31902     if test $result = 0; then
31903       ac_path_to_link=""
31904     else
31905       ac_path_to_link=" -L$ac_find_libraries"
31906     fi
31907   fi
31908
31909                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31910                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31911 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31912
31913                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31914 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
31915 if test "${wx_cv_x11_xpm_h+set}" = set; then
31916   echo $ECHO_N "(cached) $ECHO_C" >&6
31917 else
31918
31919                         save_CFLAGS=$CFLAGS
31920                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31921
31922                         cat >conftest.$ac_ext <<_ACEOF
31923 /* confdefs.h.  */
31924 _ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h.  */
31928
31929                                 #include <X11/xpm.h>
31930
31931 int
31932 main ()
31933 {
31934
31935                                 int version;
31936                                 version = XpmLibraryVersion();
31937
31938   ;
31939   return 0;
31940 }
31941 _ACEOF
31942 rm -f conftest.$ac_objext
31943 if { (ac_try="$ac_compile"
31944 case "(($ac_try" in
31945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31946   *) ac_try_echo=$ac_try;;
31947 esac
31948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31949   (eval "$ac_compile") 2>conftest.er1
31950   ac_status=$?
31951   grep -v '^ *+' conftest.er1 >conftest.err
31952   rm -f conftest.er1
31953   cat conftest.err >&5
31954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955   (exit $ac_status); } && {
31956          test -z "$ac_c_werror_flag" ||
31957          test ! -s conftest.err
31958        } && test -s conftest.$ac_objext; then
31959   wx_cv_x11_xpm_h=yes
31960 else
31961   echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31963
31964         wx_cv_x11_xpm_h=no
31965
31966 fi
31967
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969
31970                         CFLAGS=$save_CFLAGS
31971
31972
31973 fi
31974 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31975 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
31976
31977                 if test $wx_cv_x11_xpm_h = "yes"; then
31978                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31979                     cat >>confdefs.h <<\_ACEOF
31980 #define wxHAVE_LIB_XPM 1
31981 _ACEOF
31982
31983                 else
31984                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31985 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31986                 fi
31987             fi
31988
31989         fi
31990
31991                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31992 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
31993 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   ac_check_lib_save_LIBS=$LIBS
31997 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31998 cat >conftest.$ac_ext <<_ACEOF
31999 /* confdefs.h.  */
32000 _ACEOF
32001 cat confdefs.h >>conftest.$ac_ext
32002 cat >>conftest.$ac_ext <<_ACEOF
32003 /* end confdefs.h.  */
32004
32005 /* Override any GCC internal prototype to avoid an error.
32006    Use char because int might match the return type of a GCC
32007    builtin and then its argument prototype would still apply.  */
32008 #ifdef __cplusplus
32009 extern "C"
32010 #endif
32011 char XShapeQueryExtension ();
32012 int
32013 main ()
32014 {
32015 return XShapeQueryExtension ();
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (ac_try="$ac_link"
32022 case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_link") 2>conftest.er1
32028   ac_status=$?
32029   grep -v '^ *+' conftest.er1 >conftest.err
32030   rm -f conftest.er1
32031   cat conftest.err >&5
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); } && {
32034          test -z "$ac_c_werror_flag" ||
32035          test ! -s conftest.err
32036        } && test -s conftest$ac_exeext &&
32037        $as_test_x conftest$ac_exeext; then
32038   ac_cv_lib_Xext_XShapeQueryExtension=yes
32039 else
32040   echo "$as_me: failed program was:" >&5
32041 sed 's/^/| /' conftest.$ac_ext >&5
32042
32043         ac_cv_lib_Xext_XShapeQueryExtension=no
32044 fi
32045
32046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32047       conftest$ac_exeext conftest.$ac_ext
32048 LIBS=$ac_check_lib_save_LIBS
32049 fi
32050 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32051 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32052 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32053
32054                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32055                       wxHAVE_XEXT_LIB=1
32056
32057 fi
32058
32059
32060         if test "$wxHAVE_XEXT_LIB" = 1; then
32061             save_CFLAGS="$CFLAGS"
32062             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32063
32064             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32065 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32066             cat >conftest.$ac_ext <<_ACEOF
32067 /* confdefs.h.  */
32068 _ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h.  */
32072
32073                             #include <X11/Xlib.h>
32074                             #include <X11/extensions/shape.h>
32075
32076 int
32077 main ()
32078 {
32079
32080                             int dummy1, dummy2;
32081                             XShapeQueryExtension((Display*)NULL,
32082                                                  (int*)NULL, (int*)NULL);
32083
32084   ;
32085   return 0;
32086 }
32087 _ACEOF
32088 rm -f conftest.$ac_objext
32089 if { (ac_try="$ac_compile"
32090 case "(($ac_try" in
32091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092   *) ac_try_echo=$ac_try;;
32093 esac
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095   (eval "$ac_compile") 2>conftest.er1
32096   ac_status=$?
32097   grep -v '^ *+' conftest.er1 >conftest.err
32098   rm -f conftest.er1
32099   cat conftest.err >&5
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); } && {
32102          test -z "$ac_c_werror_flag" ||
32103          test ! -s conftest.err
32104        } && test -s conftest.$ac_objext; then
32105
32106                             cat >>confdefs.h <<\_ACEOF
32107 #define HAVE_XSHAPE 1
32108 _ACEOF
32109
32110                             { echo "$as_me:$LINENO: result: found" >&5
32111 echo "${ECHO_T}found" >&6; }
32112
32113 else
32114   echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32116
32117
32118                             { echo "$as_me:$LINENO: result: not found" >&5
32119 echo "${ECHO_T}not found" >&6; }
32120
32121 fi
32122
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124             CFLAGS="$save_CFLAGS"
32125
32126         fi
32127     fi
32128
32129     if test "$wxUSE_MAC" = 1; then
32130         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32131 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32132         if test "$GCC" = yes; then
32133             { echo "$as_me:$LINENO: result: gcc" >&5
32134 echo "${ECHO_T}gcc" >&6; }
32135             CPPFLAGS_PASCAL="-fpascal-strings"
32136         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32137             { echo "$as_me:$LINENO: result: xlc" >&5
32138 echo "${ECHO_T}xlc" >&6; }
32139             CPPFLAGS_PASCAL="-qmacpstr"
32140         else
32141             { echo "$as_me:$LINENO: result: none" >&5
32142 echo "${ECHO_T}none" >&6; }
32143         fi
32144
32145         if test "x$wxUSE_UNIX" = "xyes"; then
32146             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32147         else
32148                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32149         fi
32150
32151         TOOLKIT=MAC
32152                 GUIDIST=MACX_DIST
32153                         WXBASEPORT="_carbon"
32154     fi
32155
32156     if test "$wxUSE_COCOA" = 1; then
32157         TOOLKIT=COCOA
32158         GUIDIST=COCOA_DIST
32159     fi
32160
32161     if test "$wxUSE_PM" = 1; then
32162         TOOLKIT=PM
32163         GUIDIST=PM_DIST
32164         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32165 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32166 if test "${wx_cv_spbcdata+set}" = set; then
32167   echo $ECHO_N "(cached) $ECHO_C" >&6
32168 else
32169
32170                 cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h.  */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h.  */
32176
32177                         #define INCL_PM
32178                         #include <os2.h>
32179
32180 int
32181 main ()
32182 {
32183
32184                         SPBCDATA test;
32185
32186   ;
32187   return 0;
32188 }
32189 _ACEOF
32190 rm -f conftest.$ac_objext
32191 if { (ac_try="$ac_compile"
32192 case "(($ac_try" in
32193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194   *) ac_try_echo=$ac_try;;
32195 esac
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197   (eval "$ac_compile") 2>conftest.er1
32198   ac_status=$?
32199   grep -v '^ *+' conftest.er1 >conftest.err
32200   rm -f conftest.er1
32201   cat conftest.err >&5
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); } && {
32204          test -z "$ac_c_werror_flag" ||
32205          test ! -s conftest.err
32206        } && test -s conftest.$ac_objext; then
32207   wx_cv_spbcdata=yes
32208 else
32209   echo "$as_me: failed program was:" >&5
32210 sed 's/^/| /' conftest.$ac_ext >&5
32211
32212         wx_cv_spbcdata=no
32213
32214 fi
32215
32216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32217
32218
32219 fi
32220 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32221 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32222
32223         if test $wx_cv_spbcdata = "yes"; then
32224             cat >>confdefs.h <<\_ACEOF
32225 #define HAVE_SPBCDATA 1
32226 _ACEOF
32227
32228         fi
32229     fi
32230
32231         if test "$TOOLKIT" = "PM" ; then
32232         TOOLKIT_DIR="os2"
32233     else
32234         TOOLKIT_DIR=`echo ${TOOLKIT} | tr A-Z a-z`
32235     fi
32236
32237     if test "$wxUSE_UNIVERSAL" = "yes"; then
32238         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32239         WIDGET_SET=univ
32240     fi
32241
32242         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32243     DISTDIR="wx\$(TOOLKIT)"
32244 else
32245     USE_GUI=0
32246
32247             TOOLKIT_DIR="base"
32248
32249         if test "$USE_WIN32" = 1 ; then
32250                         TOOLKIT="MSW"
32251     fi
32252
32253         GUIDIST="BASE_DIST"
32254     DISTDIR="wxBase"
32255 fi
32256
32257
32258
32259 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32260     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32261         wxUSE_UNICODE_UTF8=yes
32262     elif test "$USE_OS2" = 1 ; then
32263                                 wxUSE_UNICODE_UTF8=yes
32264     else
32265         wxUSE_UNICODE_UTF8=no
32266     fi
32267 fi
32268
32269
32270 if test "$wxUSE_GUI" = "yes"; then
32271     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32272
32273 for ac_header in X11/Xlib.h
32274 do
32275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32279   echo $ECHO_N "(cached) $ECHO_C" >&6
32280 else
32281   cat >conftest.$ac_ext <<_ACEOF
32282 /* confdefs.h.  */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h.  */
32287
32288
32289 #include <$ac_header>
32290 _ACEOF
32291 rm -f conftest.$ac_objext
32292 if { (ac_try="$ac_compile"
32293 case "(($ac_try" in
32294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295   *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298   (eval "$ac_compile") 2>conftest.er1
32299   ac_status=$?
32300   grep -v '^ *+' conftest.er1 >conftest.err
32301   rm -f conftest.er1
32302   cat conftest.err >&5
32303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304   (exit $ac_status); } && {
32305          test -z "$ac_c_werror_flag" ||
32306          test ! -s conftest.err
32307        } && test -s conftest.$ac_objext; then
32308   eval "$as_ac_Header=yes"
32309 else
32310   echo "$as_me: failed program was:" >&5
32311 sed 's/^/| /' conftest.$ac_ext >&5
32312
32313         eval "$as_ac_Header=no"
32314 fi
32315
32316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32317 fi
32318 ac_res=`eval echo '${'$as_ac_Header'}'`
32319                { echo "$as_me:$LINENO: result: $ac_res" >&5
32320 echo "${ECHO_T}$ac_res" >&6; }
32321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32322   cat >>confdefs.h <<_ACEOF
32323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32324 _ACEOF
32325
32326 fi
32327
32328 done
32329
32330
32331 for ac_header in X11/XKBlib.h
32332 do
32333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32337   echo $ECHO_N "(cached) $ECHO_C" >&6
32338 else
32339   cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h.  */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h.  */
32345
32346                           #if HAVE_X11_XLIB_H
32347                             #include <X11/Xlib.h>
32348                           #endif
32349
32350
32351 #include <$ac_header>
32352 _ACEOF
32353 rm -f conftest.$ac_objext
32354 if { (ac_try="$ac_compile"
32355 case "(($ac_try" in
32356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357   *) ac_try_echo=$ac_try;;
32358 esac
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360   (eval "$ac_compile") 2>conftest.er1
32361   ac_status=$?
32362   grep -v '^ *+' conftest.er1 >conftest.err
32363   rm -f conftest.er1
32364   cat conftest.err >&5
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); } && {
32367          test -z "$ac_c_werror_flag" ||
32368          test ! -s conftest.err
32369        } && test -s conftest.$ac_objext; then
32370   eval "$as_ac_Header=yes"
32371 else
32372   echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32374
32375         eval "$as_ac_Header=no"
32376 fi
32377
32378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379 fi
32380 ac_res=`eval echo '${'$as_ac_Header'}'`
32381                { echo "$as_me:$LINENO: result: $ac_res" >&5
32382 echo "${ECHO_T}$ac_res" >&6; }
32383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32384   cat >>confdefs.h <<_ACEOF
32385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32386 _ACEOF
32387
32388 fi
32389
32390 done
32391
32392     fi
32393 fi
32394
32395
32396
32397 if test "$wxUSE_DISPLAY" = "yes"; then
32398     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32399         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32400 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32401
32402   ac_find_libraries=
32403   for ac_dir in $SEARCH_LIB;
32404   do
32405     for ac_extension in a so sl dylib dll.a; do
32406       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32407         ac_find_libraries=$ac_dir
32408         break 2
32409       fi
32410     done
32411   done
32412
32413         if test "$ac_find_libraries" != "" ; then
32414
32415     if test "$ac_find_libraries" = "default location"; then
32416     ac_path_to_link=""
32417   else
32418     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32419     result=$?
32420     if test $result = 0; then
32421       ac_path_to_link=""
32422     else
32423       ac_path_to_link=" -L$ac_find_libraries"
32424     fi
32425   fi
32426
32427             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32428                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32429             fi
32430             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32431             { echo "$as_me:$LINENO: result: yes" >&5
32432 echo "${ECHO_T}yes" >&6; }
32433
32434             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32435 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32436
32437   ac_find_libraries=
32438   for ac_dir in $SEARCH_LIB;
32439   do
32440     for ac_extension in a so sl dylib dll.a; do
32441       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32442         ac_find_libraries=$ac_dir
32443         break 2
32444       fi
32445     done
32446   done
32447
32448             if test "$ac_find_libraries" != "" ; then
32449                 { echo "$as_me:$LINENO: result: yes" >&5
32450 echo "${ECHO_T}yes" >&6; }
32451
32452 for ac_header in X11/extensions/xf86vmode.h
32453 do
32454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32458   echo $ECHO_N "(cached) $ECHO_C" >&6
32459 else
32460   cat >conftest.$ac_ext <<_ACEOF
32461 /* confdefs.h.  */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h.  */
32466
32467                                       #if HAVE_X11_XLIB_H
32468                                         #include <X11/Xlib.h>
32469                                       #endif
32470
32471
32472 #include <$ac_header>
32473 _ACEOF
32474 rm -f conftest.$ac_objext
32475 if { (ac_try="$ac_compile"
32476 case "(($ac_try" in
32477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478   *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481   (eval "$ac_compile") 2>conftest.er1
32482   ac_status=$?
32483   grep -v '^ *+' conftest.er1 >conftest.err
32484   rm -f conftest.er1
32485   cat conftest.err >&5
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); } && {
32488          test -z "$ac_c_werror_flag" ||
32489          test ! -s conftest.err
32490        } && test -s conftest.$ac_objext; then
32491   eval "$as_ac_Header=yes"
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496         eval "$as_ac_Header=no"
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 fi
32501 ac_res=`eval echo '${'$as_ac_Header'}'`
32502                { echo "$as_me:$LINENO: result: $ac_res" >&5
32503 echo "${ECHO_T}$ac_res" >&6; }
32504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32505   cat >>confdefs.h <<_ACEOF
32506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32507 _ACEOF
32508
32509                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32510
32511 fi
32512
32513 done
32514
32515             else
32516                 { echo "$as_me:$LINENO: result: no" >&5
32517 echo "${ECHO_T}no" >&6; }
32518             fi
32519
32520         else
32521             { echo "$as_me:$LINENO: result: no" >&5
32522 echo "${ECHO_T}no" >&6; }
32523             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32524 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32525             wxUSE_DISPLAY="no"
32526         fi
32527     elif test "$wxUSE_MSW" = 1; then
32528         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32529 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32530 if test "${ac_cv_header_ddraw_h+set}" = set; then
32531   echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533   cat >conftest.$ac_ext <<_ACEOF
32534 /* confdefs.h.  */
32535 _ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h.  */
32539 #include <windows.h>
32540
32541 #include <ddraw.h>
32542 _ACEOF
32543 rm -f conftest.$ac_objext
32544 if { (ac_try="$ac_compile"
32545 case "(($ac_try" in
32546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547   *) ac_try_echo=$ac_try;;
32548 esac
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550   (eval "$ac_compile") 2>conftest.er1
32551   ac_status=$?
32552   grep -v '^ *+' conftest.er1 >conftest.err
32553   rm -f conftest.er1
32554   cat conftest.err >&5
32555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556   (exit $ac_status); } && {
32557          test -z "$ac_c_werror_flag" ||
32558          test ! -s conftest.err
32559        } && test -s conftest.$ac_objext; then
32560   ac_cv_header_ddraw_h=yes
32561 else
32562   echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.$ac_ext >&5
32564
32565         ac_cv_header_ddraw_h=no
32566 fi
32567
32568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 fi
32570 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32571 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32572
32573
32574     fi
32575 fi
32576
32577 if test "$wxUSE_DETECT_SM" = "yes"; then
32578     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32579         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32580 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32581
32582   ac_find_libraries=
32583   for ac_dir in $SEARCH_LIB;
32584   do
32585     for ac_extension in a so sl dylib dll.a; do
32586       if test -f "$ac_dir/libSM.$ac_extension"; then
32587         ac_find_libraries=$ac_dir
32588         break 2
32589       fi
32590     done
32591   done
32592
32593         if test "$ac_find_libraries" != "" ; then
32594
32595     if test "$ac_find_libraries" = "default location"; then
32596     ac_path_to_link=""
32597   else
32598     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32599     result=$?
32600     if test $result = 0; then
32601       ac_path_to_link=""
32602     else
32603       ac_path_to_link=" -L$ac_find_libraries"
32604     fi
32605   fi
32606
32607             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32608                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32609             fi
32610             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32611             { echo "$as_me:$LINENO: result: yes" >&5
32612 echo "${ECHO_T}yes" >&6; }
32613         else
32614             { echo "$as_me:$LINENO: result: no" >&5
32615 echo "${ECHO_T}no" >&6; }
32616             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32617 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32618             wxUSE_DETECT_SM="no"
32619         fi
32620     else
32621         wxUSE_DETECT_SM="no"
32622     fi
32623 fi
32624
32625
32626
32627 USE_OPENGL=0
32628 if test "$wxUSE_OPENGL" = "yes"; then
32629     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
32630         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32631 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32632         wxUSE_OPENGL="no"
32633     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32634         OPENGL_LIBS="-framework OpenGL -framework AGL"
32635     elif test "$wxUSE_MSW" = 1; then
32636         OPENGL_LIBS="-lopengl32 -lglu32"
32637     else
32638                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32639 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
32640
32641 ac_find_includes=
32642 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
32643   do
32644     if test -f "$ac_dir/GL/gl.h"; then
32645       ac_find_includes=$ac_dir
32646       break
32647     fi
32648   done
32649
32650         if test "$ac_find_includes" != "" ; then
32651             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32652 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32653
32654     if test "x$ac_find_includes" = "x/usr/include"; then
32655     ac_path_to_include=""
32656   else
32657     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32658     result=$?
32659     if test $result = 0; then
32660       ac_path_to_include=""
32661     else
32662       ac_path_to_include=" -I$ac_find_includes"
32663     fi
32664   fi
32665
32666             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32667         else
32668             { echo "$as_me:$LINENO: result: not found" >&5
32669 echo "${ECHO_T}not found" >&6; }
32670         fi
32671
32672         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32673 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
32674 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32675   echo $ECHO_N "(cached) $ECHO_C" >&6
32676 else
32677   cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683
32684
32685 #include <GL/gl.h>
32686 _ACEOF
32687 rm -f conftest.$ac_objext
32688 if { (ac_try="$ac_compile"
32689 case "(($ac_try" in
32690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691   *) ac_try_echo=$ac_try;;
32692 esac
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694   (eval "$ac_compile") 2>conftest.er1
32695   ac_status=$?
32696   grep -v '^ *+' conftest.er1 >conftest.err
32697   rm -f conftest.er1
32698   cat conftest.err >&5
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); } && {
32701          test -z "$ac_c_werror_flag" ||
32702          test ! -s conftest.err
32703        } && test -s conftest.$ac_objext; then
32704   ac_cv_header_GL_gl_h=yes
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709         ac_cv_header_GL_gl_h=no
32710 fi
32711
32712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32713 fi
32714 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32715 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
32716 if test $ac_cv_header_GL_gl_h = yes; then
32717
32718             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32719 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
32720 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32721   echo $ECHO_N "(cached) $ECHO_C" >&6
32722 else
32723   cat >conftest.$ac_ext <<_ACEOF
32724 /* confdefs.h.  */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h.  */
32729
32730
32731 #include <GL/glu.h>
32732 _ACEOF
32733 rm -f conftest.$ac_objext
32734 if { (ac_try="$ac_compile"
32735 case "(($ac_try" in
32736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737   *) ac_try_echo=$ac_try;;
32738 esac
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740   (eval "$ac_compile") 2>conftest.er1
32741   ac_status=$?
32742   grep -v '^ *+' conftest.er1 >conftest.err
32743   rm -f conftest.er1
32744   cat conftest.err >&5
32745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746   (exit $ac_status); } && {
32747          test -z "$ac_c_werror_flag" ||
32748          test ! -s conftest.err
32749        } && test -s conftest.$ac_objext; then
32750   ac_cv_header_GL_glu_h=yes
32751 else
32752   echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32754
32755         ac_cv_header_GL_glu_h=no
32756 fi
32757
32758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32759 fi
32760 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32761 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
32762 if test $ac_cv_header_GL_glu_h = yes; then
32763
32764                 found_gl=0
32765
32766                 { echo "$as_me:$LINENO: checking for -lGL" >&5
32767 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
32768
32769   ac_find_libraries=
32770   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
32771   do
32772     for ac_extension in a so sl dylib dll.a; do
32773       if test -f "$ac_dir/libGL.$ac_extension"; then
32774         ac_find_libraries=$ac_dir
32775         break 2
32776       fi
32777     done
32778   done
32779
32780                 if test "$ac_find_libraries" != "" ; then
32781                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32782 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32783
32784
32785     if test "$ac_find_libraries" = "default location"; then
32786     ac_path_to_link=""
32787   else
32788     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32789     result=$?
32790     if test $result = 0; then
32791       ac_path_to_link=""
32792     else
32793       ac_path_to_link=" -L$ac_find_libraries"
32794     fi
32795   fi
32796
32797                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32798                         LDFLAGS_GL="$ac_path_to_link"
32799                     fi
32800
32801                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
32802 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
32803
32804   ac_find_libraries=
32805   for ac_dir in $SEARCH_LIB;
32806   do
32807     for ac_extension in a so sl dylib dll.a; do
32808       if test -f "$ac_dir/libGLU.$ac_extension"; then
32809         ac_find_libraries=$ac_dir
32810         break 2
32811       fi
32812     done
32813   done
32814
32815                     if test "$ac_find_libraries" != "" ; then
32816
32817     if test "$ac_find_libraries" = "default location"; then
32818     ac_path_to_link=""
32819   else
32820     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32821     result=$?
32822     if test $result = 0; then
32823       ac_path_to_link=""
32824     else
32825       ac_path_to_link=" -L$ac_find_libraries"
32826     fi
32827   fi
32828
32829                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32830                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32831                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32832                         fi
32833
32834                         found_gl=1
32835                         OPENGL_LIBS="-lGL -lGLU"
32836                         { echo "$as_me:$LINENO: result: yes" >&5
32837 echo "${ECHO_T}yes" >&6; }
32838                     else
32839                         { echo "$as_me:$LINENO: result: no" >&5
32840 echo "${ECHO_T}no" >&6; }
32841                     fi
32842                 else
32843                     { echo "$as_me:$LINENO: result: no" >&5
32844 echo "${ECHO_T}no" >&6; }
32845                 fi
32846
32847                 if test "$found_gl" != 1; then
32848                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32849 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
32850
32851   ac_find_libraries=
32852   for ac_dir in $SEARCH_LIB;
32853   do
32854     for ac_extension in a so sl dylib dll.a; do
32855       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32856         ac_find_libraries=$ac_dir
32857         break 2
32858       fi
32859     done
32860   done
32861
32862                     if test "$ac_find_libraries" != "" ; then
32863
32864     if test "$ac_find_libraries" = "default location"; then
32865     ac_path_to_link=""
32866   else
32867     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32868     result=$?
32869     if test $result = 0; then
32870       ac_path_to_link=""
32871     else
32872       ac_path_to_link=" -L$ac_find_libraries"
32873     fi
32874   fi
32875
32876                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32877                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32878                         { echo "$as_me:$LINENO: result: yes" >&5
32879 echo "${ECHO_T}yes" >&6; }
32880                     else
32881                         { echo "$as_me:$LINENO: result: no" >&5
32882 echo "${ECHO_T}no" >&6; }
32883                     fi
32884                 fi
32885
32886 fi
32887
32888
32889
32890 fi
32891
32892
32893
32894         if test "x$OPENGL_LIBS" = "x"; then
32895                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32896 echo "$as_me: error: OpenGL libraries not available" >&2;}
32897    { (exit 1); exit 1; }; }
32898         fi
32899     fi
32900
32901     if test "$wxUSE_OPENGL" = "yes"; then
32902         USE_OPENGL=1
32903         cat >>confdefs.h <<\_ACEOF
32904 #define wxUSE_OPENGL 1
32905 _ACEOF
32906
32907         cat >>confdefs.h <<\_ACEOF
32908 #define wxUSE_GLCANVAS 1
32909 _ACEOF
32910
32911         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32912     fi
32913 fi
32914
32915
32916 if test -n "$TOOLKIT" ; then
32917     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32918 fi
32919
32920
32921
32922 if test "$wxUSE_SHARED" = "yes"; then
32923     case "${host}" in
32924       *-pc-msdosdjgpp )
32925                 wxUSE_SHARED=no
32926         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32927 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32928       ;;
32929     esac
32930 fi
32931
32932 if test "$wxUSE_SHARED" = "yes"; then
32933
32934
32935     case "${host}" in
32936         *-*-cygwin* | *-*-mingw* )
32937                                                                                                 wx_cv_version_script=no
32938             ;;
32939
32940         *)
32941             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32942 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
32943 if test "${wx_cv_version_script+set}" = set; then
32944   echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946
32947                 echo "VER_1 { *; };" >conftest.sym
32948                 echo "int main() { return 0; }" >conftest.cpp
32949
32950                 if { ac_try='
32951                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32952                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } ; then
32958                   if test -s conftest.stderr ; then
32959                       wx_cv_version_script=no
32960                   else
32961                       wx_cv_version_script=yes
32962                   fi
32963                 else
32964                   wx_cv_version_script=no
32965                 fi
32966
32967                                                                                                                                                                                                 if test $wx_cv_version_script = yes
32968                 then
32969                   echo "struct B { virtual ~B() { } }; \
32970                         struct D : public B { }; \
32971                         void F() { D d; }" > conftest.cpp
32972
32973                   if { ac_try='
32974                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32975                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32977   (eval $ac_try) 2>&5
32978   ac_status=$?
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); }; } &&
32981                      { ac_try='
32982                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32983                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985   (eval $ac_try) 2>&5
32986   ac_status=$?
32987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988   (exit $ac_status); }; }
32989                   then
32990                     if { ac_try='
32991                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32992                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32994   (eval $ac_try) 2>&5
32995   ac_status=$?
32996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997   (exit $ac_status); }; }
32998                     then
32999                       wx_cv_version_script=yes
33000                     else
33001                       wx_cv_version_script=no
33002                     fi
33003                   fi
33004                 fi
33005
33006                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33007                 rm -f conftest1.output conftest2.output conftest3.output
33008
33009 fi
33010 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33011 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33012
33013             if test $wx_cv_version_script = yes ; then
33014                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33015             fi
33016             ;;
33017     esac
33018
33019
33020             if test "$wxUSE_VISIBILITY" != "no"; then
33021
33022
33023   if test -n "$GCC"; then
33024     CFLAGS_VISIBILITY="-fvisibility=hidden"
33025     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33026     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33027 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33028     if test "${wx_cv_cc_visibility+set}" = set; then
33029   echo $ECHO_N "(cached) $ECHO_C" >&6
33030 else
33031
33032       wx_save_CXXFLAGS="$CXXFLAGS"
33033       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33034       ac_ext=cpp
33035 ac_cpp='$CXXCPP $CPPFLAGS'
33036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33039
33040       cat >conftest.$ac_ext <<_ACEOF
33041 /* confdefs.h.  */
33042 _ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h.  */
33046
33047          /* we need gcc >= 4.0, older versions with visibility support
33048             didn't have class visibility: */
33049          #if defined(__GNUC__) && __GNUC__ < 4
33050          error this gcc is too old;
33051          #endif
33052
33053          /* visibility only makes sense for ELF shared libs: */
33054          #if !defined(__ELF__) && !defined(__APPLE__)
33055          error this platform has no visibility;
33056          #endif
33057
33058          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33059          extern __attribute__((__visibility__("default"))) int exportedvar;
33060          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33061          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33062          class __attribute__((__visibility__("default"))) Foo {
33063            Foo() {}
33064          };
33065
33066 int
33067 main ()
33068 {
33069
33070   ;
33071   return 0;
33072 }
33073 _ACEOF
33074 rm -f conftest.$ac_objext
33075 if { (ac_try="$ac_compile"
33076 case "(($ac_try" in
33077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078   *) ac_try_echo=$ac_try;;
33079 esac
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081   (eval "$ac_compile") 2>conftest.er1
33082   ac_status=$?
33083   grep -v '^ *+' conftest.er1 >conftest.err
33084   rm -f conftest.er1
33085   cat conftest.err >&5
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); } && {
33088          test -z "$ac_cxx_werror_flag" ||
33089          test ! -s conftest.err
33090        } && test -s conftest.$ac_objext; then
33091   wx_cv_cc_visibility=yes
33092 else
33093   echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33095
33096         wx_cv_cc_visibility=no
33097 fi
33098
33099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33100       ac_ext=c
33101 ac_cpp='$CPP $CPPFLAGS'
33102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33105
33106       CXXFLAGS="$wx_save_CXXFLAGS"
33107 fi
33108
33109     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33110 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33111     if test $wx_cv_cc_visibility = yes; then
33112                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33113 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33114       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33115   echo $ECHO_N "(cached) $ECHO_C" >&6
33116 else
33117
33118         wx_save_CXXFLAGS="$CXXFLAGS"
33119         wx_save_LDFLAGS="$LDFLAGS"
33120         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33121         LDFLAGS="$LDFLAGS -shared -fPIC"
33122         ac_ext=cpp
33123 ac_cpp='$CXXCPP $CPPFLAGS'
33124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33127
33128         cat >conftest.$ac_ext <<_ACEOF
33129 /* confdefs.h.  */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h.  */
33134
33135             #include <string>
33136
33137 int
33138 main ()
33139 {
33140
33141             std::string s("hello");
33142             return s.length();
33143
33144   ;
33145   return 0;
33146 }
33147 _ACEOF
33148 rm -f conftest.$ac_objext conftest$ac_exeext
33149 if { (ac_try="$ac_link"
33150 case "(($ac_try" in
33151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152   *) ac_try_echo=$ac_try;;
33153 esac
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155   (eval "$ac_link") 2>conftest.er1
33156   ac_status=$?
33157   grep -v '^ *+' conftest.er1 >conftest.err
33158   rm -f conftest.er1
33159   cat conftest.err >&5
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); } && {
33162          test -z "$ac_cxx_werror_flag" ||
33163          test ! -s conftest.err
33164        } && test -s conftest$ac_exeext &&
33165        $as_test_x conftest$ac_exeext; then
33166   wx_cv_cc_broken_libstdcxx_visibility=no
33167 else
33168   echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33170
33171         wx_cv_cc_broken_libstdcxx_visibility=yes
33172 fi
33173
33174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33175       conftest$ac_exeext conftest.$ac_ext
33176         ac_ext=c
33177 ac_cpp='$CPP $CPPFLAGS'
33178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33181
33182         CXXFLAGS="$wx_save_CXXFLAGS"
33183         LDFLAGS="$wx_save_LDFLAGS"
33184 fi
33185
33186       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33187 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33188
33189       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33190         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33191 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33192         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33193   echo $ECHO_N "(cached) $ECHO_C" >&6
33194 else
33195
33196           ac_ext=cpp
33197 ac_cpp='$CXXCPP $CPPFLAGS'
33198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33201
33202           cat >conftest.$ac_ext <<_ACEOF
33203 /* confdefs.h.  */
33204 _ACEOF
33205 cat confdefs.h >>conftest.$ac_ext
33206 cat >>conftest.$ac_ext <<_ACEOF
33207 /* end confdefs.h.  */
33208
33209               #pragma GCC visibility push(default)
33210               #include <string>
33211               #pragma GCC visibility pop
33212
33213 int
33214 main ()
33215 {
33216
33217               std::string s("hello");
33218               return s.length();
33219
33220   ;
33221   return 0;
33222 }
33223 _ACEOF
33224 rm -f conftest.$ac_objext conftest$ac_exeext
33225 if { (ac_try="$ac_link"
33226 case "(($ac_try" in
33227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33228   *) ac_try_echo=$ac_try;;
33229 esac
33230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33231   (eval "$ac_link") 2>conftest.er1
33232   ac_status=$?
33233   grep -v '^ *+' conftest.er1 >conftest.err
33234   rm -f conftest.er1
33235   cat conftest.err >&5
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); } && {
33238          test -z "$ac_cxx_werror_flag" ||
33239          test ! -s conftest.err
33240        } && test -s conftest$ac_exeext &&
33241        $as_test_x conftest$ac_exeext; then
33242   wx_cv_cc_visibility_workaround=no
33243 else
33244   echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33246
33247         wx_cv_cc_visibility_workaround=yes
33248 fi
33249
33250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33251       conftest$ac_exeext conftest.$ac_ext
33252           ac_ext=c
33253 ac_cpp='$CPP $CPPFLAGS'
33254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33257
33258
33259 fi
33260
33261         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33262 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33263
33264         if test $wx_cv_cc_visibility_workaround = no; then
33265                     wx_cv_cc_visibility=no
33266         fi
33267       fi
33268     fi
33269
33270     if test $wx_cv_cc_visibility = yes; then
33271       cat >>confdefs.h <<\_ACEOF
33272 #define HAVE_VISIBILITY 1
33273 _ACEOF
33274
33275       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33276         cat >>confdefs.h <<\_ACEOF
33277 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33278 _ACEOF
33279
33280       fi
33281     else
33282       CFLAGS_VISIBILITY=""
33283       CXXFLAGS_VISIBILITY=""
33284     fi
33285
33286
33287   fi
33288
33289     fi
33290
33291         if test "x$SUNCXX" = xyes; then
33292         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33293         WXCONFIG_RPATH="-R\$libdir"
33294     else
33295     case "${host}" in
33296       *-*-linux* | *-*-gnu* )
33297         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33298         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33299         ;;
33300
33301       *-*-solaris2* )
33302
33303                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33304
33305                         saveLdflags="$LDFLAGS"
33306         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33307         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33308 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33309         cat >conftest.$ac_ext <<_ACEOF
33310 /* confdefs.h.  */
33311 _ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h.  */
33315
33316 int
33317 main ()
33318 {
33319
33320   ;
33321   return 0;
33322 }
33323 _ACEOF
33324 rm -f conftest.$ac_objext conftest$ac_exeext
33325 if { (ac_try="$ac_link"
33326 case "(($ac_try" in
33327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328   *) ac_try_echo=$ac_try;;
33329 esac
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331   (eval "$ac_link") 2>conftest.er1
33332   ac_status=$?
33333   grep -v '^ *+' conftest.er1 >conftest.err
33334   rm -f conftest.er1
33335   cat conftest.err >&5
33336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337   (exit $ac_status); } && {
33338          test -z "$ac_c_werror_flag" ||
33339          test ! -s conftest.err
33340        } && test -s conftest$ac_exeext &&
33341        $as_test_x conftest$ac_exeext; then
33342
33343                 { echo "$as_me:$LINENO: result: yes" >&5
33344 echo "${ECHO_T}yes" >&6; }
33345                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33346                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33347
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352
33353                 { echo "$as_me:$LINENO: result: no" >&5
33354 echo "${ECHO_T}no" >&6; }
33355                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33356 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33357                 LDFLAGS="$saveLdflags -Wl,-R,/"
33358                 cat >conftest.$ac_ext <<_ACEOF
33359 /* confdefs.h.  */
33360 _ACEOF
33361 cat confdefs.h >>conftest.$ac_ext
33362 cat >>conftest.$ac_ext <<_ACEOF
33363 /* end confdefs.h.  */
33364
33365 int
33366 main ()
33367 {
33368
33369   ;
33370   return 0;
33371 }
33372 _ACEOF
33373 rm -f conftest.$ac_objext conftest$ac_exeext
33374 if { (ac_try="$ac_link"
33375 case "(($ac_try" in
33376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33377   *) ac_try_echo=$ac_try;;
33378 esac
33379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33380   (eval "$ac_link") 2>conftest.er1
33381   ac_status=$?
33382   grep -v '^ *+' conftest.er1 >conftest.err
33383   rm -f conftest.er1
33384   cat conftest.err >&5
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); } && {
33387          test -z "$ac_c_werror_flag" ||
33388          test ! -s conftest.err
33389        } && test -s conftest$ac_exeext &&
33390        $as_test_x conftest$ac_exeext; then
33391
33392                         { echo "$as_me:$LINENO: result: yes" >&5
33393 echo "${ECHO_T}yes" >&6; }
33394                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33395                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33396
33397 else
33398   echo "$as_me: failed program was:" >&5
33399 sed 's/^/| /' conftest.$ac_ext >&5
33400
33401
33402                         { echo "$as_me:$LINENO: result: no" >&5
33403 echo "${ECHO_T}no" >&6; }
33404
33405 fi
33406
33407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33408       conftest$ac_exeext conftest.$ac_ext
33409
33410 fi
33411
33412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33413       conftest$ac_exeext conftest.$ac_ext
33414         LDFLAGS="$saveLdflags"
33415       ;;
33416
33417       *-*-darwin* )
33418         install_name_tool=`which install_name_tool`
33419         if test "$install_name_tool" -a -x "$install_name_tool"; then
33420             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33421             cat <<EOF >change-install-names
33422 #!/bin/sh
33423 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33424 inst_cmd="install_name_tool "
33425 for i in \${libnames} ; do
33426     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33427 done
33428 \${inst_cmd} \${3}
33429 EOF
33430             chmod +x change-install-names
33431         fi
33432       ;;
33433
33434       *-*-cygwin* | *-*-mingw32* )
33435         ;;
33436
33437       *-*-hpux* )
33438         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33439         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33440         ;;
33441
33442     esac
33443     fi
33444
33445             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33446
33447     if test $wxUSE_RPATH = "no"; then
33448         SAMPLES_RPATH_FLAG=''
33449         SAMPLES_RPATH_POSTLINK=''
33450         WXCONFIG_RPATH=''
33451     fi
33452
33453     SHARED=1
33454
33455 else
33456
33457     config_linkage_component="-static"
33458     SHARED=0
33459
33460 fi
33461
33462
33463 UNICODE=0
33464 lib_unicode_suffix=
33465 WX_CHARTYPE="ansi"
33466 if test "$wxUSE_UNICODE" = "yes"; then
33467     lib_unicode_suffix=u
33468     WX_CHARTYPE="unicode"
33469     UNICODE=1
33470 fi
33471
33472 lib_debug_suffix=
33473 WX_DEBUGTYPE="release"
33474 DEBUG_FLAG=0
33475 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33476     lib_debug_suffix=d
33477     WX_DEBUGTYPE="debug"
33478     DEBUG_FLAG=1
33479 fi
33480
33481 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33482 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33483
33484 DEBUG_INFO=0
33485 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33486     DEBUG_INFO=1
33487 fi
33488
33489 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr a-z A-Z`
33490
33491 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33492
33493 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33494
33495 if test "$cross_compiling" = "yes"; then
33496     HOST_SUFFIX="-$host_alias"
33497     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33498     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33499 fi
33500
33501 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33502 if test "${TOOLKIT_DIR}" = "os2"; then
33503     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33504 else
33505     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33506 fi
33507
33508
33509
33510 if test "$wxUSE_COCOA" = 1; then
33511
33512     ac_ext=c
33513 ac_cpp='$CPP $CPPFLAGS'
33514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33517
33518 ac_ext=m
33519
33520     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33521 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33522     cat >conftest.$ac_ext <<_ACEOF
33523 /* confdefs.h.  */
33524 _ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h.  */
33528 #include <AppKit/NSEvent.h>
33529 #include <CoreFoundation/CoreFoundation.h>
33530
33531 int
33532 main ()
33533 {
33534
33535   ;
33536   return 0;
33537 }
33538 _ACEOF
33539 rm -f conftest.$ac_objext
33540 if { (ac_try="$ac_compile"
33541 case "(($ac_try" in
33542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33543   *) ac_try_echo=$ac_try;;
33544 esac
33545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33546   (eval "$ac_compile") 2>conftest.er1
33547   ac_status=$?
33548   grep -v '^ *+' conftest.er1 >conftest.err
33549   rm -f conftest.er1
33550   cat conftest.err >&5
33551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552   (exit $ac_status); } && {
33553          test -z "$ac_c_werror_flag" ||
33554          test ! -s conftest.err
33555        } && test -s conftest.$ac_objext; then
33556   { echo "$as_me:$LINENO: result: no" >&5
33557 echo "${ECHO_T}no" >&6; }
33558 else
33559   echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33561
33562         { echo "$as_me:$LINENO: result: yes" >&5
33563 echo "${ECHO_T}yes" >&6; }
33564         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33565 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33566         cat >conftest.$ac_ext <<_ACEOF
33567 /* confdefs.h.  */
33568 _ACEOF
33569 cat confdefs.h >>conftest.$ac_ext
33570 cat >>conftest.$ac_ext <<_ACEOF
33571 /* end confdefs.h.  */
33572 #define __Point__ 1
33573 #include <AppKit/NSEvent.h>
33574 #include <CoreFoundation/CoreFoundation.h>
33575
33576 int
33577 main ()
33578 {
33579
33580   ;
33581   return 0;
33582 }
33583 _ACEOF
33584 rm -f conftest.$ac_objext
33585 if { (ac_try="$ac_compile"
33586 case "(($ac_try" in
33587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588   *) ac_try_echo=$ac_try;;
33589 esac
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591   (eval "$ac_compile") 2>conftest.er1
33592   ac_status=$?
33593   grep -v '^ *+' conftest.er1 >conftest.err
33594   rm -f conftest.er1
33595   cat conftest.err >&5
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); } && {
33598          test -z "$ac_c_werror_flag" ||
33599          test ! -s conftest.err
33600        } && test -s conftest.$ac_objext; then
33601   { echo "$as_me:$LINENO: result: yes" >&5
33602 echo "${ECHO_T}yes" >&6; }
33603             cat >>confdefs.h <<\_ACEOF
33604 #define __Point__ 1
33605 _ACEOF
33606
33607
33608 else
33609   echo "$as_me: failed program was:" >&5
33610 sed 's/^/| /' conftest.$ac_ext >&5
33611
33612         { { echo "$as_me:$LINENO: error: no
33613 See \`config.log' for more details." >&5
33614 echo "$as_me: error: no
33615 See \`config.log' for more details." >&2;}
33616    { (exit 1); exit 1; }; }
33617
33618 fi
33619
33620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621
33622 fi
33623
33624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33625     ac_ext=c
33626 ac_cpp='$CPP $CPPFLAGS'
33627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33630
33631 fi
33632
33633
33634 { echo "$as_me:$LINENO: checking for mode_t" >&5
33635 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33636 if test "${ac_cv_type_mode_t+set}" = set; then
33637   echo $ECHO_N "(cached) $ECHO_C" >&6
33638 else
33639   cat >conftest.$ac_ext <<_ACEOF
33640 /* confdefs.h.  */
33641 _ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h.  */
33645 $ac_includes_default
33646 typedef mode_t ac__type_new_;
33647 int
33648 main ()
33649 {
33650 if ((ac__type_new_ *) 0)
33651   return 0;
33652 if (sizeof (ac__type_new_))
33653   return 0;
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext
33659 if { (ac_try="$ac_compile"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_compile") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } && {
33672          test -z "$ac_c_werror_flag" ||
33673          test ! -s conftest.err
33674        } && test -s conftest.$ac_objext; then
33675   ac_cv_type_mode_t=yes
33676 else
33677   echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33679
33680         ac_cv_type_mode_t=no
33681 fi
33682
33683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33684 fi
33685 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33686 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33687 if test $ac_cv_type_mode_t = yes; then
33688   :
33689 else
33690
33691 cat >>confdefs.h <<_ACEOF
33692 #define mode_t int
33693 _ACEOF
33694
33695 fi
33696
33697 { echo "$as_me:$LINENO: checking for off_t" >&5
33698 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33699 if test "${ac_cv_type_off_t+set}" = set; then
33700   echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702   cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h.  */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h.  */
33708 $ac_includes_default
33709 typedef off_t ac__type_new_;
33710 int
33711 main ()
33712 {
33713 if ((ac__type_new_ *) 0)
33714   return 0;
33715 if (sizeof (ac__type_new_))
33716   return 0;
33717   ;
33718   return 0;
33719 }
33720 _ACEOF
33721 rm -f conftest.$ac_objext
33722 if { (ac_try="$ac_compile"
33723 case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_compile") 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } && {
33735          test -z "$ac_c_werror_flag" ||
33736          test ! -s conftest.err
33737        } && test -s conftest.$ac_objext; then
33738   ac_cv_type_off_t=yes
33739 else
33740   echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743         ac_cv_type_off_t=no
33744 fi
33745
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747 fi
33748 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33749 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33750 if test $ac_cv_type_off_t = yes; then
33751   :
33752 else
33753
33754 cat >>confdefs.h <<_ACEOF
33755 #define off_t long int
33756 _ACEOF
33757
33758 fi
33759
33760 { echo "$as_me:$LINENO: checking for pid_t" >&5
33761 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33762 if test "${ac_cv_type_pid_t+set}" = set; then
33763   echo $ECHO_N "(cached) $ECHO_C" >&6
33764 else
33765   cat >conftest.$ac_ext <<_ACEOF
33766 /* confdefs.h.  */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h.  */
33771 $ac_includes_default
33772 typedef pid_t ac__type_new_;
33773 int
33774 main ()
33775 {
33776 if ((ac__type_new_ *) 0)
33777   return 0;
33778 if (sizeof (ac__type_new_))
33779   return 0;
33780   ;
33781   return 0;
33782 }
33783 _ACEOF
33784 rm -f conftest.$ac_objext
33785 if { (ac_try="$ac_compile"
33786 case "(($ac_try" in
33787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788   *) ac_try_echo=$ac_try;;
33789 esac
33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791   (eval "$ac_compile") 2>conftest.er1
33792   ac_status=$?
33793   grep -v '^ *+' conftest.er1 >conftest.err
33794   rm -f conftest.er1
33795   cat conftest.err >&5
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); } && {
33798          test -z "$ac_c_werror_flag" ||
33799          test ! -s conftest.err
33800        } && test -s conftest.$ac_objext; then
33801   ac_cv_type_pid_t=yes
33802 else
33803   echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33805
33806         ac_cv_type_pid_t=no
33807 fi
33808
33809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33810 fi
33811 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33813 if test $ac_cv_type_pid_t = yes; then
33814   :
33815 else
33816
33817 cat >>confdefs.h <<_ACEOF
33818 #define pid_t int
33819 _ACEOF
33820
33821 fi
33822
33823 { echo "$as_me:$LINENO: checking for size_t" >&5
33824 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33825 if test "${ac_cv_type_size_t+set}" = set; then
33826   echo $ECHO_N "(cached) $ECHO_C" >&6
33827 else
33828   cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h.  */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h.  */
33834 $ac_includes_default
33835 typedef size_t ac__type_new_;
33836 int
33837 main ()
33838 {
33839 if ((ac__type_new_ *) 0)
33840   return 0;
33841 if (sizeof (ac__type_new_))
33842   return 0;
33843   ;
33844   return 0;
33845 }
33846 _ACEOF
33847 rm -f conftest.$ac_objext
33848 if { (ac_try="$ac_compile"
33849 case "(($ac_try" in
33850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851   *) ac_try_echo=$ac_try;;
33852 esac
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854   (eval "$ac_compile") 2>conftest.er1
33855   ac_status=$?
33856   grep -v '^ *+' conftest.er1 >conftest.err
33857   rm -f conftest.er1
33858   cat conftest.err >&5
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); } && {
33861          test -z "$ac_c_werror_flag" ||
33862          test ! -s conftest.err
33863        } && test -s conftest.$ac_objext; then
33864   ac_cv_type_size_t=yes
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869         ac_cv_type_size_t=no
33870 fi
33871
33872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33873 fi
33874 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33875 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33876 if test $ac_cv_type_size_t = yes; then
33877   :
33878 else
33879
33880 cat >>confdefs.h <<_ACEOF
33881 #define size_t unsigned int
33882 _ACEOF
33883
33884 fi
33885
33886
33887 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33888 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33889 if test "${ac_cv_type_ssize_t+set}" = set; then
33890   echo $ECHO_N "(cached) $ECHO_C" >&6
33891 else
33892   cat >conftest.$ac_ext <<_ACEOF
33893 /* confdefs.h.  */
33894 _ACEOF
33895 cat confdefs.h >>conftest.$ac_ext
33896 cat >>conftest.$ac_ext <<_ACEOF
33897 /* end confdefs.h.  */
33898 $ac_includes_default
33899 typedef ssize_t ac__type_new_;
33900 int
33901 main ()
33902 {
33903 if ((ac__type_new_ *) 0)
33904   return 0;
33905 if (sizeof (ac__type_new_))
33906   return 0;
33907   ;
33908   return 0;
33909 }
33910 _ACEOF
33911 rm -f conftest.$ac_objext
33912 if { (ac_try="$ac_compile"
33913 case "(($ac_try" in
33914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915   *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918   (eval "$ac_compile") 2>conftest.er1
33919   ac_status=$?
33920   grep -v '^ *+' conftest.er1 >conftest.err
33921   rm -f conftest.er1
33922   cat conftest.err >&5
33923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924   (exit $ac_status); } && {
33925          test -z "$ac_c_werror_flag" ||
33926          test ! -s conftest.err
33927        } && test -s conftest.$ac_objext; then
33928   ac_cv_type_ssize_t=yes
33929 else
33930   echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33932
33933         ac_cv_type_ssize_t=no
33934 fi
33935
33936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33937 fi
33938 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33939 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33940 if test $ac_cv_type_ssize_t = yes; then
33941
33942 cat >>confdefs.h <<_ACEOF
33943 #define HAVE_SSIZE_T 1
33944 _ACEOF
33945
33946
33947 fi
33948
33949
33950 ac_ext=cpp
33951 ac_cpp='$CXXCPP $CPPFLAGS'
33952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33955  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33956 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
33957 if test "${wx_cv_size_t_is_uint+set}" = set; then
33958   echo $ECHO_N "(cached) $ECHO_C" >&6
33959 else
33960
33961                             cat >conftest.$ac_ext <<_ACEOF
33962 /* confdefs.h.  */
33963 _ACEOF
33964 cat confdefs.h >>conftest.$ac_ext
33965 cat >>conftest.$ac_ext <<_ACEOF
33966 /* end confdefs.h.  */
33967 #include <stddef.h>
33968 int
33969 main ()
33970 {
33971
33972             return 0; }
33973
33974             struct Foo { void foo(size_t); void foo(unsigned int); };
33975
33976             int bar() {
33977
33978   ;
33979   return 0;
33980 }
33981 _ACEOF
33982 rm -f conftest.$ac_objext
33983 if { (ac_try="$ac_compile"
33984 case "(($ac_try" in
33985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33986   *) ac_try_echo=$ac_try;;
33987 esac
33988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33989   (eval "$ac_compile") 2>conftest.er1
33990   ac_status=$?
33991   grep -v '^ *+' conftest.er1 >conftest.err
33992   rm -f conftest.er1
33993   cat conftest.err >&5
33994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995   (exit $ac_status); } && {
33996          test -z "$ac_cxx_werror_flag" ||
33997          test ! -s conftest.err
33998        } && test -s conftest.$ac_objext; then
33999   wx_cv_size_t_is_uint=no
34000 else
34001   echo "$as_me: failed program was:" >&5
34002 sed 's/^/| /' conftest.$ac_ext >&5
34003
34004         wx_cv_size_t_is_uint=yes
34005
34006 fi
34007
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009
34010
34011 fi
34012 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34013 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34014
34015 if test "$wx_cv_size_t_is_uint" = "yes"; then
34016     cat >>confdefs.h <<\_ACEOF
34017 #define wxSIZE_T_IS_UINT 1
34018 _ACEOF
34019
34020 else
34021     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34022 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34023 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34024   echo $ECHO_N "(cached) $ECHO_C" >&6
34025 else
34026   cat >conftest.$ac_ext <<_ACEOF
34027 /* confdefs.h.  */
34028 _ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h.  */
34032 #include <stddef.h>
34033 int
34034 main ()
34035 {
34036
34037                 return 0; }
34038
34039                 struct Foo { void foo(size_t); void foo(unsigned long); };
34040
34041                 int bar() {
34042
34043   ;
34044   return 0;
34045 }
34046 _ACEOF
34047 rm -f conftest.$ac_objext
34048 if { (ac_try="$ac_compile"
34049 case "(($ac_try" in
34050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34051   *) ac_try_echo=$ac_try;;
34052 esac
34053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34054   (eval "$ac_compile") 2>conftest.er1
34055   ac_status=$?
34056   grep -v '^ *+' conftest.er1 >conftest.err
34057   rm -f conftest.er1
34058   cat conftest.err >&5
34059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060   (exit $ac_status); } && {
34061          test -z "$ac_cxx_werror_flag" ||
34062          test ! -s conftest.err
34063        } && test -s conftest.$ac_objext; then
34064   wx_cv_size_t_is_ulong=no
34065 else
34066   echo "$as_me: failed program was:" >&5
34067 sed 's/^/| /' conftest.$ac_ext >&5
34068
34069         wx_cv_size_t_is_ulong=yes
34070
34071 fi
34072
34073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34074
34075 fi
34076 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34077 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34078
34079     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34080         cat >>confdefs.h <<\_ACEOF
34081 #define wxSIZE_T_IS_ULONG 1
34082 _ACEOF
34083
34084     fi
34085 fi
34086
34087 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34088 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34089 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34090   echo $ECHO_N "(cached) $ECHO_C" >&6
34091 else
34092   cat >conftest.$ac_ext <<_ACEOF
34093 /* confdefs.h.  */
34094 _ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h.  */
34098 #include <wchar.h>
34099 int
34100 main ()
34101 {
34102
34103             return 0; }
34104
34105             struct Foo { void foo(wchar_t);
34106                          void foo(unsigned short);
34107                          void foo(unsigned int);
34108                          void foo(unsigned long); };
34109
34110             int bar() {
34111
34112   ;
34113   return 0;
34114 }
34115 _ACEOF
34116 rm -f conftest.$ac_objext
34117 if { (ac_try="$ac_compile"
34118 case "(($ac_try" in
34119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34120   *) ac_try_echo=$ac_try;;
34121 esac
34122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34123   (eval "$ac_compile") 2>conftest.er1
34124   ac_status=$?
34125   grep -v '^ *+' conftest.er1 >conftest.err
34126   rm -f conftest.er1
34127   cat conftest.err >&5
34128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129   (exit $ac_status); } && {
34130          test -z "$ac_cxx_werror_flag" ||
34131          test ! -s conftest.err
34132        } && test -s conftest.$ac_objext; then
34133   wx_cv_wchar_t_is_separate_type=yes
34134 else
34135   echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34137
34138         wx_cv_wchar_t_is_separate_type=no
34139
34140 fi
34141
34142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34143
34144 fi
34145 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34146 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34147
34148 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34149     cat >>confdefs.h <<\_ACEOF
34150 #define wxWCHAR_T_IS_REAL_TYPE 1
34151 _ACEOF
34152
34153 else
34154     cat >>confdefs.h <<\_ACEOF
34155 #define wxWCHAR_T_IS_REAL_TYPE 0
34156 _ACEOF
34157
34158 fi
34159
34160 ac_ext=c
34161 ac_cpp='$CPP $CPPFLAGS'
34162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34165
34166
34167 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34168 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34169 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34170   echo $ECHO_N "(cached) $ECHO_C" >&6
34171 else
34172
34173         cat >conftest.$ac_ext <<_ACEOF
34174 /* confdefs.h.  */
34175 _ACEOF
34176 cat confdefs.h >>conftest.$ac_ext
34177 cat >>conftest.$ac_ext <<_ACEOF
34178 /* end confdefs.h.  */
34179 #include <pwd.h>
34180 int
34181 main ()
34182 {
34183
34184                 char *p;
34185                 struct passwd *pw;
34186                 p = pw->pw_gecos;
34187
34188   ;
34189   return 0;
34190 }
34191 _ACEOF
34192 rm -f conftest.$ac_objext
34193 if { (ac_try="$ac_compile"
34194 case "(($ac_try" in
34195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196   *) ac_try_echo=$ac_try;;
34197 esac
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199   (eval "$ac_compile") 2>conftest.er1
34200   ac_status=$?
34201   grep -v '^ *+' conftest.er1 >conftest.err
34202   rm -f conftest.er1
34203   cat conftest.err >&5
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); } && {
34206          test -z "$ac_c_werror_flag" ||
34207          test ! -s conftest.err
34208        } && test -s conftest.$ac_objext; then
34209
34210                 wx_cv_struct_pw_gecos=yes
34211
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216
34217                 wx_cv_struct_pw_gecos=no
34218
34219
34220 fi
34221
34222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34223
34224
34225 fi
34226 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34227 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34228
34229 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34230     cat >>confdefs.h <<\_ACEOF
34231 #define HAVE_PW_GECOS 1
34232 _ACEOF
34233
34234 fi
34235
34236
34237 if test "$wxUSE_WCHAR_T" = "yes"; then
34238     cat >>confdefs.h <<\_ACEOF
34239 #define wxUSE_WCHAR_T 1
34240 _ACEOF
34241
34242
34243         WCSLEN_FOUND=0
34244     WCHAR_LINK=
34245
34246 for ac_func in wcslen
34247 do
34248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34252   echo $ECHO_N "(cached) $ECHO_C" >&6
34253 else
34254   cat >conftest.$ac_ext <<_ACEOF
34255 /* confdefs.h.  */
34256 _ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h.  */
34260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34262 #define $ac_func innocuous_$ac_func
34263
34264 /* System header to define __stub macros and hopefully few prototypes,
34265     which can conflict with char $ac_func (); below.
34266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34267     <limits.h> exists even on freestanding compilers.  */
34268
34269 #ifdef __STDC__
34270 # include <limits.h>
34271 #else
34272 # include <assert.h>
34273 #endif
34274
34275 #undef $ac_func
34276
34277 /* Override any GCC internal prototype to avoid an error.
34278    Use char because int might match the return type of a GCC
34279    builtin and then its argument prototype would still apply.  */
34280 #ifdef __cplusplus
34281 extern "C"
34282 #endif
34283 char $ac_func ();
34284 /* The GNU C library defines this for functions which it implements
34285     to always fail with ENOSYS.  Some functions are actually named
34286     something starting with __ and the normal name is an alias.  */
34287 #if defined __stub_$ac_func || defined __stub___$ac_func
34288 choke me
34289 #endif
34290
34291 int
34292 main ()
34293 {
34294 return $ac_func ();
34295   ;
34296   return 0;
34297 }
34298 _ACEOF
34299 rm -f conftest.$ac_objext conftest$ac_exeext
34300 if { (ac_try="$ac_link"
34301 case "(($ac_try" in
34302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34303   *) ac_try_echo=$ac_try;;
34304 esac
34305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34306   (eval "$ac_link") 2>conftest.er1
34307   ac_status=$?
34308   grep -v '^ *+' conftest.er1 >conftest.err
34309   rm -f conftest.er1
34310   cat conftest.err >&5
34311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312   (exit $ac_status); } && {
34313          test -z "$ac_c_werror_flag" ||
34314          test ! -s conftest.err
34315        } && test -s conftest$ac_exeext &&
34316        $as_test_x conftest$ac_exeext; then
34317   eval "$as_ac_var=yes"
34318 else
34319   echo "$as_me: failed program was:" >&5
34320 sed 's/^/| /' conftest.$ac_ext >&5
34321
34322         eval "$as_ac_var=no"
34323 fi
34324
34325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34326       conftest$ac_exeext conftest.$ac_ext
34327 fi
34328 ac_res=`eval echo '${'$as_ac_var'}'`
34329                { echo "$as_me:$LINENO: result: $ac_res" >&5
34330 echo "${ECHO_T}$ac_res" >&6; }
34331 if test `eval echo '${'$as_ac_var'}'` = yes; then
34332   cat >>confdefs.h <<_ACEOF
34333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34334 _ACEOF
34335  WCSLEN_FOUND=1
34336 fi
34337 done
34338
34339
34340     if test "$WCSLEN_FOUND" = 0; then
34341         if test "$TOOLKIT" = "MSW"; then
34342             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34343 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34344 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   ac_check_lib_save_LIBS=$LIBS
34348 LIBS="-lmsvcrt  $LIBS"
34349 cat >conftest.$ac_ext <<_ACEOF
34350 /* confdefs.h.  */
34351 _ACEOF
34352 cat confdefs.h >>conftest.$ac_ext
34353 cat >>conftest.$ac_ext <<_ACEOF
34354 /* end confdefs.h.  */
34355
34356 /* Override any GCC internal prototype to avoid an error.
34357    Use char because int might match the return type of a GCC
34358    builtin and then its argument prototype would still apply.  */
34359 #ifdef __cplusplus
34360 extern "C"
34361 #endif
34362 char wcslen ();
34363 int
34364 main ()
34365 {
34366 return wcslen ();
34367   ;
34368   return 0;
34369 }
34370 _ACEOF
34371 rm -f conftest.$ac_objext conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375   *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378   (eval "$ac_link") 2>conftest.er1
34379   ac_status=$?
34380   grep -v '^ *+' conftest.er1 >conftest.err
34381   rm -f conftest.er1
34382   cat conftest.err >&5
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); } && {
34385          test -z "$ac_c_werror_flag" ||
34386          test ! -s conftest.err
34387        } && test -s conftest$ac_exeext &&
34388        $as_test_x conftest$ac_exeext; then
34389   ac_cv_lib_msvcrt_wcslen=yes
34390 else
34391   echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34393
34394         ac_cv_lib_msvcrt_wcslen=no
34395 fi
34396
34397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34398       conftest$ac_exeext conftest.$ac_ext
34399 LIBS=$ac_check_lib_save_LIBS
34400 fi
34401 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34402 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34403 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34404   WCHAR_OK=1
34405 fi
34406
34407         else
34408             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34409 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34410 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34411   echo $ECHO_N "(cached) $ECHO_C" >&6
34412 else
34413   ac_check_lib_save_LIBS=$LIBS
34414 LIBS="-lw  $LIBS"
34415 cat >conftest.$ac_ext <<_ACEOF
34416 /* confdefs.h.  */
34417 _ACEOF
34418 cat confdefs.h >>conftest.$ac_ext
34419 cat >>conftest.$ac_ext <<_ACEOF
34420 /* end confdefs.h.  */
34421
34422 /* Override any GCC internal prototype to avoid an error.
34423    Use char because int might match the return type of a GCC
34424    builtin and then its argument prototype would still apply.  */
34425 #ifdef __cplusplus
34426 extern "C"
34427 #endif
34428 char wcslen ();
34429 int
34430 main ()
34431 {
34432 return wcslen ();
34433   ;
34434   return 0;
34435 }
34436 _ACEOF
34437 rm -f conftest.$ac_objext conftest$ac_exeext
34438 if { (ac_try="$ac_link"
34439 case "(($ac_try" in
34440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441   *) ac_try_echo=$ac_try;;
34442 esac
34443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444   (eval "$ac_link") 2>conftest.er1
34445   ac_status=$?
34446   grep -v '^ *+' conftest.er1 >conftest.err
34447   rm -f conftest.er1
34448   cat conftest.err >&5
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); } && {
34451          test -z "$ac_c_werror_flag" ||
34452          test ! -s conftest.err
34453        } && test -s conftest$ac_exeext &&
34454        $as_test_x conftest$ac_exeext; then
34455   ac_cv_lib_w_wcslen=yes
34456 else
34457   echo "$as_me: failed program was:" >&5
34458 sed 's/^/| /' conftest.$ac_ext >&5
34459
34460         ac_cv_lib_w_wcslen=no
34461 fi
34462
34463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34464       conftest$ac_exeext conftest.$ac_ext
34465 LIBS=$ac_check_lib_save_LIBS
34466 fi
34467 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34468 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34469 if test $ac_cv_lib_w_wcslen = yes; then
34470
34471                             WCHAR_LINK=" -lw"
34472                             WCSLEN_FOUND=1
34473
34474 fi
34475
34476         fi
34477     fi
34478
34479     if test "$WCSLEN_FOUND" = 1; then
34480         cat >>confdefs.h <<\_ACEOF
34481 #define HAVE_WCSLEN 1
34482 _ACEOF
34483
34484     fi
34485
34486
34487 for ac_func in wcsdup
34488 do
34489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34493   echo $ECHO_N "(cached) $ECHO_C" >&6
34494 else
34495   cat >conftest.$ac_ext <<_ACEOF
34496 /* confdefs.h.  */
34497 _ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h.  */
34501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34503 #define $ac_func innocuous_$ac_func
34504
34505 /* System header to define __stub macros and hopefully few prototypes,
34506     which can conflict with char $ac_func (); below.
34507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34508     <limits.h> exists even on freestanding compilers.  */
34509
34510 #ifdef __STDC__
34511 # include <limits.h>
34512 #else
34513 # include <assert.h>
34514 #endif
34515
34516 #undef $ac_func
34517
34518 /* Override any GCC internal prototype to avoid an error.
34519    Use char because int might match the return type of a GCC
34520    builtin and then its argument prototype would still apply.  */
34521 #ifdef __cplusplus
34522 extern "C"
34523 #endif
34524 char $ac_func ();
34525 /* The GNU C library defines this for functions which it implements
34526     to always fail with ENOSYS.  Some functions are actually named
34527     something starting with __ and the normal name is an alias.  */
34528 #if defined __stub_$ac_func || defined __stub___$ac_func
34529 choke me
34530 #endif
34531
34532 int
34533 main ()
34534 {
34535 return $ac_func ();
34536   ;
34537   return 0;
34538 }
34539 _ACEOF
34540 rm -f conftest.$ac_objext conftest$ac_exeext
34541 if { (ac_try="$ac_link"
34542 case "(($ac_try" in
34543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34544   *) ac_try_echo=$ac_try;;
34545 esac
34546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34547   (eval "$ac_link") 2>conftest.er1
34548   ac_status=$?
34549   grep -v '^ *+' conftest.er1 >conftest.err
34550   rm -f conftest.er1
34551   cat conftest.err >&5
34552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553   (exit $ac_status); } && {
34554          test -z "$ac_c_werror_flag" ||
34555          test ! -s conftest.err
34556        } && test -s conftest$ac_exeext &&
34557        $as_test_x conftest$ac_exeext; then
34558   eval "$as_ac_var=yes"
34559 else
34560   echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34562
34563         eval "$as_ac_var=no"
34564 fi
34565
34566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34567       conftest$ac_exeext conftest.$ac_ext
34568 fi
34569 ac_res=`eval echo '${'$as_ac_var'}'`
34570                { echo "$as_me:$LINENO: result: $ac_res" >&5
34571 echo "${ECHO_T}$ac_res" >&6; }
34572 if test `eval echo '${'$as_ac_var'}'` = yes; then
34573   cat >>confdefs.h <<_ACEOF
34574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34575 _ACEOF
34576
34577 fi
34578 done
34579
34580
34581                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34582         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34583     fi
34584
34585                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34586 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34587 if test "${ac_cv_type_mbstate_t+set}" = set; then
34588   echo $ECHO_N "(cached) $ECHO_C" >&6
34589 else
34590   cat >conftest.$ac_ext <<_ACEOF
34591 /* confdefs.h.  */
34592 _ACEOF
34593 cat confdefs.h >>conftest.$ac_ext
34594 cat >>conftest.$ac_ext <<_ACEOF
34595 /* end confdefs.h.  */
34596 #include <wchar.h>
34597
34598 typedef mbstate_t ac__type_new_;
34599 int
34600 main ()
34601 {
34602 if ((ac__type_new_ *) 0)
34603   return 0;
34604 if (sizeof (ac__type_new_))
34605   return 0;
34606   ;
34607   return 0;
34608 }
34609 _ACEOF
34610 rm -f conftest.$ac_objext
34611 if { (ac_try="$ac_compile"
34612 case "(($ac_try" in
34613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34614   *) ac_try_echo=$ac_try;;
34615 esac
34616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34617   (eval "$ac_compile") 2>conftest.er1
34618   ac_status=$?
34619   grep -v '^ *+' conftest.er1 >conftest.err
34620   rm -f conftest.er1
34621   cat conftest.err >&5
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } && {
34624          test -z "$ac_c_werror_flag" ||
34625          test ! -s conftest.err
34626        } && test -s conftest.$ac_objext; then
34627   ac_cv_type_mbstate_t=yes
34628 else
34629   echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34631
34632         ac_cv_type_mbstate_t=no
34633 fi
34634
34635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34636 fi
34637 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34638 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
34639 if test $ac_cv_type_mbstate_t = yes; then
34640
34641 cat >>confdefs.h <<_ACEOF
34642 #define HAVE_MBSTATE_T 1
34643 _ACEOF
34644
34645
34646 for ac_func in wcsrtombs
34647 do
34648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34652   echo $ECHO_N "(cached) $ECHO_C" >&6
34653 else
34654   cat >conftest.$ac_ext <<_ACEOF
34655 /* confdefs.h.  */
34656 _ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h.  */
34660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34662 #define $ac_func innocuous_$ac_func
34663
34664 /* System header to define __stub macros and hopefully few prototypes,
34665     which can conflict with char $ac_func (); below.
34666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34667     <limits.h> exists even on freestanding compilers.  */
34668
34669 #ifdef __STDC__
34670 # include <limits.h>
34671 #else
34672 # include <assert.h>
34673 #endif
34674
34675 #undef $ac_func
34676
34677 /* Override any GCC internal prototype to avoid an error.
34678    Use char because int might match the return type of a GCC
34679    builtin and then its argument prototype would still apply.  */
34680 #ifdef __cplusplus
34681 extern "C"
34682 #endif
34683 char $ac_func ();
34684 /* The GNU C library defines this for functions which it implements
34685     to always fail with ENOSYS.  Some functions are actually named
34686     something starting with __ and the normal name is an alias.  */
34687 #if defined __stub_$ac_func || defined __stub___$ac_func
34688 choke me
34689 #endif
34690
34691 int
34692 main ()
34693 {
34694 return $ac_func ();
34695   ;
34696   return 0;
34697 }
34698 _ACEOF
34699 rm -f conftest.$ac_objext conftest$ac_exeext
34700 if { (ac_try="$ac_link"
34701 case "(($ac_try" in
34702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703   *) ac_try_echo=$ac_try;;
34704 esac
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706   (eval "$ac_link") 2>conftest.er1
34707   ac_status=$?
34708   grep -v '^ *+' conftest.er1 >conftest.err
34709   rm -f conftest.er1
34710   cat conftest.err >&5
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); } && {
34713          test -z "$ac_c_werror_flag" ||
34714          test ! -s conftest.err
34715        } && test -s conftest$ac_exeext &&
34716        $as_test_x conftest$ac_exeext; then
34717   eval "$as_ac_var=yes"
34718 else
34719   echo "$as_me: failed program was:" >&5
34720 sed 's/^/| /' conftest.$ac_ext >&5
34721
34722         eval "$as_ac_var=no"
34723 fi
34724
34725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34726       conftest$ac_exeext conftest.$ac_ext
34727 fi
34728 ac_res=`eval echo '${'$as_ac_var'}'`
34729                { echo "$as_me:$LINENO: result: $ac_res" >&5
34730 echo "${ECHO_T}$ac_res" >&6; }
34731 if test `eval echo '${'$as_ac_var'}'` = yes; then
34732   cat >>confdefs.h <<_ACEOF
34733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34734 _ACEOF
34735
34736 fi
34737 done
34738
34739 fi
34740
34741 else
34742     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34743 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34744 fi
34745
34746
34747
34748 for ac_func in snprintf vsnprintf
34749 do
34750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34754   echo $ECHO_N "(cached) $ECHO_C" >&6
34755 else
34756   cat >conftest.$ac_ext <<_ACEOF
34757 /* confdefs.h.  */
34758 _ACEOF
34759 cat confdefs.h >>conftest.$ac_ext
34760 cat >>conftest.$ac_ext <<_ACEOF
34761 /* end confdefs.h.  */
34762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34764 #define $ac_func innocuous_$ac_func
34765
34766 /* System header to define __stub macros and hopefully few prototypes,
34767     which can conflict with char $ac_func (); below.
34768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34769     <limits.h> exists even on freestanding compilers.  */
34770
34771 #ifdef __STDC__
34772 # include <limits.h>
34773 #else
34774 # include <assert.h>
34775 #endif
34776
34777 #undef $ac_func
34778
34779 /* Override any GCC internal prototype to avoid an error.
34780    Use char because int might match the return type of a GCC
34781    builtin and then its argument prototype would still apply.  */
34782 #ifdef __cplusplus
34783 extern "C"
34784 #endif
34785 char $ac_func ();
34786 /* The GNU C library defines this for functions which it implements
34787     to always fail with ENOSYS.  Some functions are actually named
34788     something starting with __ and the normal name is an alias.  */
34789 #if defined __stub_$ac_func || defined __stub___$ac_func
34790 choke me
34791 #endif
34792
34793 int
34794 main ()
34795 {
34796 return $ac_func ();
34797   ;
34798   return 0;
34799 }
34800 _ACEOF
34801 rm -f conftest.$ac_objext conftest$ac_exeext
34802 if { (ac_try="$ac_link"
34803 case "(($ac_try" in
34804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805   *) ac_try_echo=$ac_try;;
34806 esac
34807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34808   (eval "$ac_link") 2>conftest.er1
34809   ac_status=$?
34810   grep -v '^ *+' conftest.er1 >conftest.err
34811   rm -f conftest.er1
34812   cat conftest.err >&5
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); } && {
34815          test -z "$ac_c_werror_flag" ||
34816          test ! -s conftest.err
34817        } && test -s conftest$ac_exeext &&
34818        $as_test_x conftest$ac_exeext; then
34819   eval "$as_ac_var=yes"
34820 else
34821   echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34823
34824         eval "$as_ac_var=no"
34825 fi
34826
34827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34828       conftest$ac_exeext conftest.$ac_ext
34829 fi
34830 ac_res=`eval echo '${'$as_ac_var'}'`
34831                { echo "$as_me:$LINENO: result: $ac_res" >&5
34832 echo "${ECHO_T}$ac_res" >&6; }
34833 if test `eval echo '${'$as_ac_var'}'` = yes; then
34834   cat >>confdefs.h <<_ACEOF
34835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34836 _ACEOF
34837
34838 fi
34839 done
34840
34841
34842 if test "$ac_cv_func_vsnprintf" = "yes"; then
34843         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34844 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
34845 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34846   echo $ECHO_N "(cached) $ECHO_C" >&6
34847 else
34848
34849                                                             cat >conftest.$ac_ext <<_ACEOF
34850 /* confdefs.h.  */
34851 _ACEOF
34852 cat confdefs.h >>conftest.$ac_ext
34853 cat >>conftest.$ac_ext <<_ACEOF
34854 /* end confdefs.h.  */
34855
34856                     #include <stdio.h>
34857                     #include <stdarg.h>
34858                     #ifdef __MSL__
34859                     #if __MSL__ >= 0x6000
34860                     namespace std {}
34861                     using namespace std;
34862                     #endif
34863                     #endif
34864
34865 int
34866 main ()
34867 {
34868
34869                     char *buf;
34870                     va_list ap;
34871                     vsnprintf(buf, 10u, "%s", ap);
34872
34873   ;
34874   return 0;
34875 }
34876 _ACEOF
34877 rm -f conftest.$ac_objext
34878 if { (ac_try="$ac_compile"
34879 case "(($ac_try" in
34880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34881   *) ac_try_echo=$ac_try;;
34882 esac
34883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884   (eval "$ac_compile") 2>conftest.er1
34885   ac_status=$?
34886   grep -v '^ *+' conftest.er1 >conftest.err
34887   rm -f conftest.er1
34888   cat conftest.err >&5
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); } && {
34891          test -z "$ac_c_werror_flag" ||
34892          test ! -s conftest.err
34893        } && test -s conftest.$ac_objext; then
34894   wx_cv_func_vsnprintf_decl=yes
34895 else
34896   echo "$as_me: failed program was:" >&5
34897 sed 's/^/| /' conftest.$ac_ext >&5
34898
34899         wx_cv_func_vsnprintf_decl=no
34900
34901 fi
34902
34903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34904
34905
34906 fi
34907 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34908 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
34909
34910     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34911         cat >>confdefs.h <<\_ACEOF
34912 #define HAVE_VSNPRINTF_DECL 1
34913 _ACEOF
34914
34915
34916                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34917 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
34918 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34919   echo $ECHO_N "(cached) $ECHO_C" >&6
34920 else
34921
34922                 cat >conftest.$ac_ext <<_ACEOF
34923 /* confdefs.h.  */
34924 _ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h.  */
34928
34929                         #include <stdio.h>
34930                         #include <stdarg.h>
34931                         #ifdef __MSL__
34932                         #if __MSL__ >= 0x6000
34933                         namespace std {}
34934                         using namespace std;
34935                         #endif
34936                         #endif
34937
34938 int
34939 main ()
34940 {
34941
34942                         char *buf;
34943                         va_list ap;
34944                         const char *fmt = "%s";
34945                         vsnprintf(buf, 10u, fmt, ap);
34946
34947   ;
34948   return 0;
34949 }
34950 _ACEOF
34951 rm -f conftest.$ac_objext
34952 if { (ac_try="$ac_compile"
34953 case "(($ac_try" in
34954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955   *) ac_try_echo=$ac_try;;
34956 esac
34957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958   (eval "$ac_compile") 2>conftest.er1
34959   ac_status=$?
34960   grep -v '^ *+' conftest.er1 >conftest.err
34961   rm -f conftest.er1
34962   cat conftest.err >&5
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); } && {
34965          test -z "$ac_c_werror_flag" ||
34966          test ! -s conftest.err
34967        } && test -s conftest.$ac_objext; then
34968   wx_cv_func_broken_vsnprintf_decl=no
34969 else
34970   echo "$as_me: failed program was:" >&5
34971 sed 's/^/| /' conftest.$ac_ext >&5
34972
34973         wx_cv_func_broken_vsnprintf_decl=yes
34974
34975 fi
34976
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978
34979
34980 fi
34981 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34982 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
34983
34984         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34985             cat >>confdefs.h <<\_ACEOF
34986 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34987 _ACEOF
34988
34989         fi
34990     fi
34991 fi
34992
34993 if test "$ac_cv_func_snprintf" = "yes"; then
34994     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34995 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
34996 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34997   echo $ECHO_N "(cached) $ECHO_C" >&6
34998 else
34999
35000             cat >conftest.$ac_ext <<_ACEOF
35001 /* confdefs.h.  */
35002 _ACEOF
35003 cat confdefs.h >>conftest.$ac_ext
35004 cat >>conftest.$ac_ext <<_ACEOF
35005 /* end confdefs.h.  */
35006
35007                     #include <stdio.h>
35008                     #include <stdarg.h>
35009                     #ifdef __MSL__
35010                     #if __MSL__ >= 0x6000
35011                     namespace std {}
35012                     using namespace std;
35013                     #endif
35014                     #endif
35015
35016 int
35017 main ()
35018 {
35019
35020                     char *buf;
35021                     snprintf(buf, 10u, "%s", "wx");
35022
35023   ;
35024   return 0;
35025 }
35026 _ACEOF
35027 rm -f conftest.$ac_objext
35028 if { (ac_try="$ac_compile"
35029 case "(($ac_try" in
35030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35031   *) ac_try_echo=$ac_try;;
35032 esac
35033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35034   (eval "$ac_compile") 2>conftest.er1
35035   ac_status=$?
35036   grep -v '^ *+' conftest.er1 >conftest.err
35037   rm -f conftest.er1
35038   cat conftest.err >&5
35039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040   (exit $ac_status); } && {
35041          test -z "$ac_c_werror_flag" ||
35042          test ! -s conftest.err
35043        } && test -s conftest.$ac_objext; then
35044   wx_cv_func_snprintf_decl=yes
35045 else
35046   echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35048
35049         wx_cv_func_snprintf_decl=no
35050
35051 fi
35052
35053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35054
35055
35056 fi
35057 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35058 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35059
35060     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35061         cat >>confdefs.h <<\_ACEOF
35062 #define HAVE_SNPRINTF_DECL 1
35063 _ACEOF
35064
35065     fi
35066
35067     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35068
35069                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35070 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35071 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35072   echo $ECHO_N "(cached) $ECHO_C" >&6
35073 else
35074
35075                 if test "$cross_compiling" = yes; then
35076
35077                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35078 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35079 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35080 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35081                         wx_cv_func_snprintf_pos_params=no
35082
35083
35084 else
35085   cat >conftest.$ac_ext <<_ACEOF
35086 /* confdefs.h.  */
35087 _ACEOF
35088 cat confdefs.h >>conftest.$ac_ext
35089 cat >>conftest.$ac_ext <<_ACEOF
35090 /* end confdefs.h.  */
35091
35092                         #include <stdio.h>
35093
35094                         int main (void)
35095                         {
35096                             char buffer[128];
35097                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35098                             if (strcmp ("2 3 1", buffer) == 0)
35099                                 exit (0);
35100                             exit (1);
35101                         }
35102
35103 _ACEOF
35104 rm -f conftest$ac_exeext
35105 if { (ac_try="$ac_link"
35106 case "(($ac_try" in
35107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108   *) ac_try_echo=$ac_try;;
35109 esac
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111   (eval "$ac_link") 2>&5
35112   ac_status=$?
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35115   { (case "(($ac_try" in
35116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35117   *) ac_try_echo=$ac_try;;
35118 esac
35119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35120   (eval "$ac_try") 2>&5
35121   ac_status=$?
35122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123   (exit $ac_status); }; }; then
35124   wx_cv_func_snprintf_pos_params=no
35125 else
35126   echo "$as_me: program exited with status $ac_status" >&5
35127 echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35129
35130 ( exit $ac_status )
35131 wx_cv_func_snprintf_pos_params=yes
35132 fi
35133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35134 fi
35135
35136
35137
35138
35139 fi
35140 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35141 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35142
35143         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35144             cat >>confdefs.h <<\_ACEOF
35145 #define HAVE_UNIX98_PRINTF 1
35146 _ACEOF
35147
35148         fi
35149     fi
35150 fi
35151
35152 if test "$wxUSE_UNICODE" = yes; then
35153
35154             wchar_headers="#include <stdio.h>
35155 #include <wchar.h>"
35156     case "${host}" in
35157         *-*-solaris2* )
35158
35159 for ac_header in widec.h
35160 do
35161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35165   echo $ECHO_N "(cached) $ECHO_C" >&6
35166 else
35167   cat >conftest.$ac_ext <<_ACEOF
35168 /* confdefs.h.  */
35169 _ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h.  */
35173 $ac_includes_default
35174
35175 #include <$ac_header>
35176 _ACEOF
35177 rm -f conftest.$ac_objext
35178 if { (ac_try="$ac_compile"
35179 case "(($ac_try" in
35180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181   *) ac_try_echo=$ac_try;;
35182 esac
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184   (eval "$ac_compile") 2>conftest.er1
35185   ac_status=$?
35186   grep -v '^ *+' conftest.er1 >conftest.err
35187   rm -f conftest.er1
35188   cat conftest.err >&5
35189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190   (exit $ac_status); } && {
35191          test -z "$ac_c_werror_flag" ||
35192          test ! -s conftest.err
35193        } && test -s conftest.$ac_objext; then
35194   eval "$as_ac_Header=yes"
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199         eval "$as_ac_Header=no"
35200 fi
35201
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203 fi
35204 ac_res=`eval echo '${'$as_ac_Header'}'`
35205                { echo "$as_me:$LINENO: result: $ac_res" >&5
35206 echo "${ECHO_T}$ac_res" >&6; }
35207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35208   cat >>confdefs.h <<_ACEOF
35209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35210 _ACEOF
35211
35212 fi
35213
35214 done
35215
35216             if test "$ac_cv_header_widec_h" = "yes"; then
35217                 wchar_headers="$wchar_headers
35218 #include <widec.h>"
35219             fi
35220     esac
35221
35222
35223   for wx_func in putws fputws wprintf vswprintf
35224   do
35225     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35226 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35227 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35228   echo $ECHO_N "(cached) $ECHO_C" >&6
35229 else
35230
35231         cat >conftest.$ac_ext <<_ACEOF
35232
35233             /* confdefs.h.  */
35234 _ACEOF
35235 cat confdefs.h >>conftest.$ac_ext
35236 cat >>conftest.$ac_ext <<_ACEOF
35237 /* end confdefs.h.  */
35238
35239                 $wchar_headers
35240                 $ac_includes_default
35241
35242 int
35243 main ()
35244 {
35245
35246                 #ifndef $wx_func
35247                   &$wx_func;
35248                 #endif
35249
35250
35251   ;
35252   return 0;
35253 }
35254
35255 _ACEOF
35256 rm -f conftest.$ac_objext conftest$ac_exeext
35257 if { (ac_try="$ac_link"
35258 case "(($ac_try" in
35259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260   *) ac_try_echo=$ac_try;;
35261 esac
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263   (eval "$ac_link") 2>conftest.er1
35264   ac_status=$?
35265   grep -v '^ *+' conftest.er1 >conftest.err
35266   rm -f conftest.er1
35267   cat conftest.err >&5
35268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269   (exit $ac_status); } && {
35270          test -z "$ac_c_werror_flag" ||
35271          test ! -s conftest.err
35272        } && test -s conftest$ac_exeext &&
35273        $as_test_x conftest$ac_exeext; then
35274   eval wx_cv_func_$wx_func=yes
35275 else
35276   echo "$as_me: failed program was:" >&5
35277 sed 's/^/| /' conftest.$ac_ext >&5
35278
35279         eval wx_cv_func_$wx_func=no
35280 fi
35281
35282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35283       conftest$ac_exeext conftest.$ac_ext
35284
35285 fi
35286 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35287                { echo "$as_me:$LINENO: result: $ac_res" >&5
35288 echo "${ECHO_T}$ac_res" >&6; }
35289
35290     if eval test \$wx_cv_func_$wx_func = yes
35291     then
35292       cat >>confdefs.h <<_ACEOF
35293 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35294 _ACEOF
35295
35296
35297     else
35298       :
35299
35300     fi
35301   done
35302
35303
35304                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35305 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35306     cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312 #include <wchar.h>
35313 int
35314 main ()
35315 {
35316 &_vsnwprintf;
35317   ;
35318   return 0;
35319 }
35320 _ACEOF
35321 rm -f conftest.$ac_objext
35322 if { (ac_try="$ac_compile"
35323 case "(($ac_try" in
35324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325   *) ac_try_echo=$ac_try;;
35326 esac
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328   (eval "$ac_compile") 2>conftest.er1
35329   ac_status=$?
35330   grep -v '^ *+' conftest.er1 >conftest.err
35331   rm -f conftest.er1
35332   cat conftest.err >&5
35333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334   (exit $ac_status); } && {
35335          test -z "$ac_c_werror_flag" ||
35336          test ! -s conftest.err
35337        } && test -s conftest.$ac_objext; then
35338   { echo "$as_me:$LINENO: result: yes" >&5
35339 echo "${ECHO_T}yes" >&6; }
35340                     cat >>confdefs.h <<\_ACEOF
35341 #define HAVE__VSNWPRINTF 1
35342 _ACEOF
35343
35344 else
35345   echo "$as_me: failed program was:" >&5
35346 sed 's/^/| /' conftest.$ac_ext >&5
35347
35348         { echo "$as_me:$LINENO: result: no" >&5
35349 echo "${ECHO_T}no" >&6; }
35350 fi
35351
35352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35353 fi
35354
35355 if test "$wxUSE_FILE" = "yes"; then
35356
35357   for wx_func in fsync
35358   do
35359     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35360 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35361 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35362   echo $ECHO_N "(cached) $ECHO_C" >&6
35363 else
35364
35365         cat >conftest.$ac_ext <<_ACEOF
35366
35367             /* confdefs.h.  */
35368 _ACEOF
35369 cat confdefs.h >>conftest.$ac_ext
35370 cat >>conftest.$ac_ext <<_ACEOF
35371 /* end confdefs.h.  */
35372
35373
35374                 $ac_includes_default
35375
35376 int
35377 main ()
35378 {
35379
35380                 #ifndef $wx_func
35381                   &$wx_func;
35382                 #endif
35383
35384
35385   ;
35386   return 0;
35387 }
35388
35389 _ACEOF
35390 rm -f conftest.$ac_objext conftest$ac_exeext
35391 if { (ac_try="$ac_link"
35392 case "(($ac_try" in
35393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35394   *) ac_try_echo=$ac_try;;
35395 esac
35396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35397   (eval "$ac_link") 2>conftest.er1
35398   ac_status=$?
35399   grep -v '^ *+' conftest.er1 >conftest.err
35400   rm -f conftest.er1
35401   cat conftest.err >&5
35402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403   (exit $ac_status); } && {
35404          test -z "$ac_c_werror_flag" ||
35405          test ! -s conftest.err
35406        } && test -s conftest$ac_exeext &&
35407        $as_test_x conftest$ac_exeext; then
35408   eval wx_cv_func_$wx_func=yes
35409 else
35410   echo "$as_me: failed program was:" >&5
35411 sed 's/^/| /' conftest.$ac_ext >&5
35412
35413         eval wx_cv_func_$wx_func=no
35414 fi
35415
35416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35417       conftest$ac_exeext conftest.$ac_ext
35418
35419 fi
35420 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35421                { echo "$as_me:$LINENO: result: $ac_res" >&5
35422 echo "${ECHO_T}$ac_res" >&6; }
35423
35424     if eval test \$wx_cv_func_$wx_func = yes
35425     then
35426       cat >>confdefs.h <<_ACEOF
35427 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35428 _ACEOF
35429
35430
35431     else
35432       :
35433
35434     fi
35435   done
35436
35437 fi
35438
35439 ac_ext=cpp
35440 ac_cpp='$CXXCPP $CPPFLAGS'
35441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35444
35445
35446   for wx_func in round
35447   do
35448     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35449 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35450 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35451   echo $ECHO_N "(cached) $ECHO_C" >&6
35452 else
35453
35454         cat >conftest.$ac_ext <<_ACEOF
35455
35456             /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461
35462                 #include <math.h>
35463                 $ac_includes_default
35464
35465 int
35466 main ()
35467 {
35468
35469                 #ifndef $wx_func
35470                   &$wx_func;
35471                 #endif
35472
35473
35474   ;
35475   return 0;
35476 }
35477
35478 _ACEOF
35479 rm -f conftest.$ac_objext conftest$ac_exeext
35480 if { (ac_try="$ac_link"
35481 case "(($ac_try" in
35482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35483   *) ac_try_echo=$ac_try;;
35484 esac
35485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35486   (eval "$ac_link") 2>conftest.er1
35487   ac_status=$?
35488   grep -v '^ *+' conftest.er1 >conftest.err
35489   rm -f conftest.er1
35490   cat conftest.err >&5
35491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492   (exit $ac_status); } && {
35493          test -z "$ac_cxx_werror_flag" ||
35494          test ! -s conftest.err
35495        } && test -s conftest$ac_exeext &&
35496        $as_test_x conftest$ac_exeext; then
35497   eval wx_cv_func_$wx_func=yes
35498 else
35499   echo "$as_me: failed program was:" >&5
35500 sed 's/^/| /' conftest.$ac_ext >&5
35501
35502         eval wx_cv_func_$wx_func=no
35503 fi
35504
35505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35506       conftest$ac_exeext conftest.$ac_ext
35507
35508 fi
35509 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35510                { echo "$as_me:$LINENO: result: $ac_res" >&5
35511 echo "${ECHO_T}$ac_res" >&6; }
35512
35513     if eval test \$wx_cv_func_$wx_func = yes
35514     then
35515       cat >>confdefs.h <<_ACEOF
35516 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35517 _ACEOF
35518
35519
35520     else
35521       :
35522
35523     fi
35524   done
35525
35526 ac_ext=c
35527 ac_cpp='$CPP $CPPFLAGS'
35528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35531
35532
35533 if test "$TOOLKIT" != "MSW"; then
35534
35535
35536
35537
35538
35539 # Check whether --with-libiconv-prefix was given.
35540 if test "${with_libiconv_prefix+set}" = set; then
35541   withval=$with_libiconv_prefix;
35542     for dir in `echo "$withval" | tr : ' '`; do
35543       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35544       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35545     done
35546
35547 fi
35548
35549
35550   { echo "$as_me:$LINENO: checking for iconv" >&5
35551 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35552 if test "${am_cv_func_iconv+set}" = set; then
35553   echo $ECHO_N "(cached) $ECHO_C" >&6
35554 else
35555
35556     am_cv_func_iconv="no, consider installing GNU libiconv"
35557     am_cv_lib_iconv=no
35558     cat >conftest.$ac_ext <<_ACEOF
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 #include <stdlib.h>
35565 #include <iconv.h>
35566 int
35567 main ()
35568 {
35569 iconv_t cd = iconv_open("","");
35570        iconv(cd,NULL,NULL,NULL,NULL);
35571        iconv_close(cd);
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext conftest$ac_exeext
35577 if { (ac_try="$ac_link"
35578 case "(($ac_try" in
35579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580   *) ac_try_echo=$ac_try;;
35581 esac
35582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35583   (eval "$ac_link") 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } && {
35590          test -z "$ac_c_werror_flag" ||
35591          test ! -s conftest.err
35592        } && test -s conftest$ac_exeext &&
35593        $as_test_x conftest$ac_exeext; then
35594   am_cv_func_iconv=yes
35595 else
35596   echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599
35600 fi
35601
35602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35603       conftest$ac_exeext conftest.$ac_ext
35604     if test "$am_cv_func_iconv" != yes; then
35605       am_save_LIBS="$LIBS"
35606       LIBS="$LIBS -liconv"
35607       cat >conftest.$ac_ext <<_ACEOF
35608 /* confdefs.h.  */
35609 _ACEOF
35610 cat confdefs.h >>conftest.$ac_ext
35611 cat >>conftest.$ac_ext <<_ACEOF
35612 /* end confdefs.h.  */
35613 #include <stdlib.h>
35614 #include <iconv.h>
35615 int
35616 main ()
35617 {
35618 iconv_t cd = iconv_open("","");
35619          iconv(cd,NULL,NULL,NULL,NULL);
35620          iconv_close(cd);
35621   ;
35622   return 0;
35623 }
35624 _ACEOF
35625 rm -f conftest.$ac_objext conftest$ac_exeext
35626 if { (ac_try="$ac_link"
35627 case "(($ac_try" in
35628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35629   *) ac_try_echo=$ac_try;;
35630 esac
35631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35632   (eval "$ac_link") 2>conftest.er1
35633   ac_status=$?
35634   grep -v '^ *+' conftest.er1 >conftest.err
35635   rm -f conftest.er1
35636   cat conftest.err >&5
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); } && {
35639          test -z "$ac_c_werror_flag" ||
35640          test ! -s conftest.err
35641        } && test -s conftest$ac_exeext &&
35642        $as_test_x conftest$ac_exeext; then
35643   am_cv_lib_iconv=yes
35644         am_cv_func_iconv=yes
35645 else
35646   echo "$as_me: failed program was:" >&5
35647 sed 's/^/| /' conftest.$ac_ext >&5
35648
35649
35650 fi
35651
35652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35653       conftest$ac_exeext conftest.$ac_ext
35654       LIBS="$am_save_LIBS"
35655     fi
35656
35657 fi
35658 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35659 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35660   if test "$am_cv_func_iconv" = yes; then
35661
35662 cat >>confdefs.h <<\_ACEOF
35663 #define HAVE_ICONV 1
35664 _ACEOF
35665
35666     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
35667 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
35668 if test "${wx_cv_func_iconv_const+set}" = set; then
35669   echo $ECHO_N "(cached) $ECHO_C" >&6
35670 else
35671   cat >conftest.$ac_ext <<_ACEOF
35672 /* confdefs.h.  */
35673 _ACEOF
35674 cat confdefs.h >>conftest.$ac_ext
35675 cat >>conftest.$ac_ext <<_ACEOF
35676 /* end confdefs.h.  */
35677
35678 #include <stdlib.h>
35679 #include <iconv.h>
35680 extern
35681 #ifdef __cplusplus
35682 "C"
35683 #endif
35684 #if defined(__STDC__) || defined(__cplusplus)
35685 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35686 #else
35687 size_t iconv();
35688 #endif
35689
35690 int
35691 main ()
35692 {
35693
35694   ;
35695   return 0;
35696 }
35697 _ACEOF
35698 rm -f conftest.$ac_objext
35699 if { (ac_try="$ac_compile"
35700 case "(($ac_try" in
35701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35702   *) ac_try_echo=$ac_try;;
35703 esac
35704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35705   (eval "$ac_compile") 2>conftest.er1
35706   ac_status=$?
35707   grep -v '^ *+' conftest.er1 >conftest.err
35708   rm -f conftest.er1
35709   cat conftest.err >&5
35710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711   (exit $ac_status); } && {
35712          test -z "$ac_c_werror_flag" ||
35713          test ! -s conftest.err
35714        } && test -s conftest.$ac_objext; then
35715   wx_cv_func_iconv_const="no"
35716 else
35717   echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35719
35720         wx_cv_func_iconv_const="yes"
35721
35722 fi
35723
35724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35725
35726 fi
35727 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35728 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
35729
35730     iconv_const=
35731     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35732         iconv_const="const"
35733     fi
35734
35735
35736 cat >>confdefs.h <<_ACEOF
35737 #define ICONV_CONST $iconv_const
35738 _ACEOF
35739
35740   fi
35741   LIBICONV=
35742   if test "$am_cv_lib_iconv" = yes; then
35743     LIBICONV="-liconv"
35744   fi
35745
35746
35747 LIBS="$LIBICONV $LIBS"
35748
35749 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35750
35751 for ac_func in sigaction
35752 do
35753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35757   echo $ECHO_N "(cached) $ECHO_C" >&6
35758 else
35759   cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35767 #define $ac_func innocuous_$ac_func
35768
35769 /* System header to define __stub macros and hopefully few prototypes,
35770     which can conflict with char $ac_func (); below.
35771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35772     <limits.h> exists even on freestanding compilers.  */
35773
35774 #ifdef __STDC__
35775 # include <limits.h>
35776 #else
35777 # include <assert.h>
35778 #endif
35779
35780 #undef $ac_func
35781
35782 /* Override any GCC internal prototype to avoid an error.
35783    Use char because int might match the return type of a GCC
35784    builtin and then its argument prototype would still apply.  */
35785 #ifdef __cplusplus
35786 extern "C"
35787 #endif
35788 char $ac_func ();
35789 /* The GNU C library defines this for functions which it implements
35790     to always fail with ENOSYS.  Some functions are actually named
35791     something starting with __ and the normal name is an alias.  */
35792 #if defined __stub_$ac_func || defined __stub___$ac_func
35793 choke me
35794 #endif
35795
35796 int
35797 main ()
35798 {
35799 return $ac_func ();
35800   ;
35801   return 0;
35802 }
35803 _ACEOF
35804 rm -f conftest.$ac_objext conftest$ac_exeext
35805 if { (ac_try="$ac_link"
35806 case "(($ac_try" in
35807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35808   *) ac_try_echo=$ac_try;;
35809 esac
35810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35811   (eval "$ac_link") 2>conftest.er1
35812   ac_status=$?
35813   grep -v '^ *+' conftest.er1 >conftest.err
35814   rm -f conftest.er1
35815   cat conftest.err >&5
35816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817   (exit $ac_status); } && {
35818          test -z "$ac_c_werror_flag" ||
35819          test ! -s conftest.err
35820        } && test -s conftest$ac_exeext &&
35821        $as_test_x conftest$ac_exeext; then
35822   eval "$as_ac_var=yes"
35823 else
35824   echo "$as_me: failed program was:" >&5
35825 sed 's/^/| /' conftest.$ac_ext >&5
35826
35827         eval "$as_ac_var=no"
35828 fi
35829
35830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35831       conftest$ac_exeext conftest.$ac_ext
35832 fi
35833 ac_res=`eval echo '${'$as_ac_var'}'`
35834                { echo "$as_me:$LINENO: result: $ac_res" >&5
35835 echo "${ECHO_T}$ac_res" >&6; }
35836 if test `eval echo '${'$as_ac_var'}'` = yes; then
35837   cat >>confdefs.h <<_ACEOF
35838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35839 _ACEOF
35840
35841 fi
35842 done
35843
35844
35845     if test "$ac_cv_func_sigaction" = "no"; then
35846         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35847 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35848         wxUSE_ON_FATAL_EXCEPTION=no
35849     fi
35850
35851     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35852       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
35853 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
35854 if test "${wx_cv_type_sa_handler+set}" = set; then
35855   echo $ECHO_N "(cached) $ECHO_C" >&6
35856 else
35857
35858                 ac_ext=cpp
35859 ac_cpp='$CXXCPP $CPPFLAGS'
35860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35863
35864         cat >conftest.$ac_ext <<_ACEOF
35865 /* confdefs.h.  */
35866 _ACEOF
35867 cat confdefs.h >>conftest.$ac_ext
35868 cat >>conftest.$ac_ext <<_ACEOF
35869 /* end confdefs.h.  */
35870 #include <signal.h>
35871 int
35872 main ()
35873 {
35874
35875                         extern void testSigHandler(int);
35876
35877                         struct sigaction sa;
35878                         sa.sa_handler = testSigHandler;
35879
35880   ;
35881   return 0;
35882 }
35883 _ACEOF
35884 rm -f conftest.$ac_objext
35885 if { (ac_try="$ac_compile"
35886 case "(($ac_try" in
35887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35888   *) ac_try_echo=$ac_try;;
35889 esac
35890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35891   (eval "$ac_compile") 2>conftest.er1
35892   ac_status=$?
35893   grep -v '^ *+' conftest.er1 >conftest.err
35894   rm -f conftest.er1
35895   cat conftest.err >&5
35896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897   (exit $ac_status); } && {
35898          test -z "$ac_cxx_werror_flag" ||
35899          test ! -s conftest.err
35900        } && test -s conftest.$ac_objext; then
35901
35902                         wx_cv_type_sa_handler=int
35903
35904 else
35905   echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35907
35908
35909                         wx_cv_type_sa_handler=void
35910
35911 fi
35912
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914         ac_ext=c
35915 ac_cpp='$CPP $CPPFLAGS'
35916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35919
35920
35921 fi
35922 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35923 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
35924
35925       cat >>confdefs.h <<_ACEOF
35926 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35927 _ACEOF
35928
35929     fi
35930 fi
35931
35932 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35933     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35934 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
35935 if test "${wx_cv_func_backtrace+set}" = set; then
35936   echo $ECHO_N "(cached) $ECHO_C" >&6
35937 else
35938
35939             ac_ext=cpp
35940 ac_cpp='$CXXCPP $CPPFLAGS'
35941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35944
35945             cat >conftest.$ac_ext <<_ACEOF
35946 /* confdefs.h.  */
35947 _ACEOF
35948 cat confdefs.h >>conftest.$ac_ext
35949 cat >>conftest.$ac_ext <<_ACEOF
35950 /* end confdefs.h.  */
35951 #include <execinfo.h>
35952 int
35953 main ()
35954 {
35955
35956                     void *trace[1];
35957                     char **messages;
35958
35959                     backtrace(trace, 1);
35960                     messages = backtrace_symbols(trace, 1);
35961
35962   ;
35963   return 0;
35964 }
35965 _ACEOF
35966 rm -f conftest.$ac_objext
35967 if { (ac_try="$ac_compile"
35968 case "(($ac_try" in
35969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35970   *) ac_try_echo=$ac_try;;
35971 esac
35972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35973   (eval "$ac_compile") 2>conftest.er1
35974   ac_status=$?
35975   grep -v '^ *+' conftest.er1 >conftest.err
35976   rm -f conftest.er1
35977   cat conftest.err >&5
35978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979   (exit $ac_status); } && {
35980          test -z "$ac_cxx_werror_flag" ||
35981          test ! -s conftest.err
35982        } && test -s conftest.$ac_objext; then
35983   wx_cv_func_backtrace=yes
35984 else
35985   echo "$as_me: failed program was:" >&5
35986 sed 's/^/| /' conftest.$ac_ext >&5
35987
35988         wx_cv_func_backtrace=no
35989
35990 fi
35991
35992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35993             ac_ext=c
35994 ac_cpp='$CPP $CPPFLAGS'
35995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35998
35999
36000
36001 fi
36002 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36003 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36004
36005
36006     if test "$wx_cv_func_backtrace" = "no"; then
36007         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36008 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36009         wxUSE_STACKWALKER=no
36010     else
36011         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36012 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36013 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36014   echo $ECHO_N "(cached) $ECHO_C" >&6
36015 else
36016
36017                 ac_ext=cpp
36018 ac_cpp='$CXXCPP $CPPFLAGS'
36019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36022
36023                 cat >conftest.$ac_ext <<_ACEOF
36024 /* confdefs.h.  */
36025 _ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h.  */
36029 #include <cxxabi.h>
36030 int
36031 main ()
36032 {
36033
36034                         int rc;
36035                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36036
36037   ;
36038   return 0;
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   wx_cv_func_cxa_demangle=yes
36060 else
36061   echo "$as_me: failed program was:" >&5
36062 sed 's/^/| /' conftest.$ac_ext >&5
36063
36064         wx_cv_func_cxa_demangle=no
36065
36066 fi
36067
36068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36069       conftest$ac_exeext conftest.$ac_ext
36070                 ac_ext=c
36071 ac_cpp='$CPP $CPPFLAGS'
36072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36075
36076
36077
36078 fi
36079 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36080 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36081
36082         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36083             cat >>confdefs.h <<\_ACEOF
36084 #define HAVE_CXA_DEMANGLE 1
36085 _ACEOF
36086
36087         fi
36088     fi
36089 fi
36090
36091 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36092     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36093 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36094     wxUSE_STACKWALKER=no
36095 fi
36096
36097
36098
36099
36100 for ac_func in mkstemp mktemp
36101 do
36102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36106   echo $ECHO_N "(cached) $ECHO_C" >&6
36107 else
36108   cat >conftest.$ac_ext <<_ACEOF
36109 /* confdefs.h.  */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h.  */
36114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36116 #define $ac_func innocuous_$ac_func
36117
36118 /* System header to define __stub macros and hopefully few prototypes,
36119     which can conflict with char $ac_func (); below.
36120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36121     <limits.h> exists even on freestanding compilers.  */
36122
36123 #ifdef __STDC__
36124 # include <limits.h>
36125 #else
36126 # include <assert.h>
36127 #endif
36128
36129 #undef $ac_func
36130
36131 /* Override any GCC internal prototype to avoid an error.
36132    Use char because int might match the return type of a GCC
36133    builtin and then its argument prototype would still apply.  */
36134 #ifdef __cplusplus
36135 extern "C"
36136 #endif
36137 char $ac_func ();
36138 /* The GNU C library defines this for functions which it implements
36139     to always fail with ENOSYS.  Some functions are actually named
36140     something starting with __ and the normal name is an alias.  */
36141 #if defined __stub_$ac_func || defined __stub___$ac_func
36142 choke me
36143 #endif
36144
36145 int
36146 main ()
36147 {
36148 return $ac_func ();
36149   ;
36150   return 0;
36151 }
36152 _ACEOF
36153 rm -f conftest.$ac_objext conftest$ac_exeext
36154 if { (ac_try="$ac_link"
36155 case "(($ac_try" in
36156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36157   *) ac_try_echo=$ac_try;;
36158 esac
36159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36160   (eval "$ac_link") 2>conftest.er1
36161   ac_status=$?
36162   grep -v '^ *+' conftest.er1 >conftest.err
36163   rm -f conftest.er1
36164   cat conftest.err >&5
36165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166   (exit $ac_status); } && {
36167          test -z "$ac_c_werror_flag" ||
36168          test ! -s conftest.err
36169        } && test -s conftest$ac_exeext &&
36170        $as_test_x conftest$ac_exeext; then
36171   eval "$as_ac_var=yes"
36172 else
36173   echo "$as_me: failed program was:" >&5
36174 sed 's/^/| /' conftest.$ac_ext >&5
36175
36176         eval "$as_ac_var=no"
36177 fi
36178
36179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36180       conftest$ac_exeext conftest.$ac_ext
36181 fi
36182 ac_res=`eval echo '${'$as_ac_var'}'`
36183                { echo "$as_me:$LINENO: result: $ac_res" >&5
36184 echo "${ECHO_T}$ac_res" >&6; }
36185 if test `eval echo '${'$as_ac_var'}'` = yes; then
36186   cat >>confdefs.h <<_ACEOF
36187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36188 _ACEOF
36189  break
36190 fi
36191 done
36192
36193
36194 { echo "$as_me:$LINENO: checking for statfs" >&5
36195 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36196 if test "${wx_cv_func_statfs+set}" = set; then
36197   echo $ECHO_N "(cached) $ECHO_C" >&6
36198 else
36199   cat >conftest.$ac_ext <<_ACEOF
36200 /* confdefs.h.  */
36201 _ACEOF
36202 cat confdefs.h >>conftest.$ac_ext
36203 cat >>conftest.$ac_ext <<_ACEOF
36204 /* end confdefs.h.  */
36205
36206              #if defined(__BSD__)
36207              #include <sys/param.h>
36208              #include <sys/mount.h>
36209              #else
36210              #include <sys/vfs.h>
36211              #endif
36212
36213 int
36214 main ()
36215 {
36216
36217              long l;
36218              struct statfs fs;
36219              statfs("/", &fs);
36220              l = fs.f_bsize;
36221              l += fs.f_blocks;
36222              l += fs.f_bavail;
36223
36224   ;
36225   return 0;
36226 }
36227 _ACEOF
36228 rm -f conftest.$ac_objext
36229 if { (ac_try="$ac_compile"
36230 case "(($ac_try" in
36231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36232   *) ac_try_echo=$ac_try;;
36233 esac
36234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36235   (eval "$ac_compile") 2>conftest.er1
36236   ac_status=$?
36237   grep -v '^ *+' conftest.er1 >conftest.err
36238   rm -f conftest.er1
36239   cat conftest.err >&5
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); } && {
36242          test -z "$ac_c_werror_flag" ||
36243          test ! -s conftest.err
36244        } && test -s conftest.$ac_objext; then
36245   wx_cv_func_statfs=yes
36246 else
36247   echo "$as_me: failed program was:" >&5
36248 sed 's/^/| /' conftest.$ac_ext >&5
36249
36250         wx_cv_func_statfs=no
36251
36252 fi
36253
36254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36255
36256 fi
36257 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36258 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36259
36260 if test "$wx_cv_func_statfs" = "yes"; then
36261         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36262 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36263 if test "${wx_cv_func_statfs_decl+set}" = set; then
36264   echo $ECHO_N "(cached) $ECHO_C" >&6
36265 else
36266   ac_ext=cpp
36267 ac_cpp='$CXXCPP $CPPFLAGS'
36268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36271
36272         cat >conftest.$ac_ext <<_ACEOF
36273 /* confdefs.h.  */
36274 _ACEOF
36275 cat confdefs.h >>conftest.$ac_ext
36276 cat >>conftest.$ac_ext <<_ACEOF
36277 /* end confdefs.h.  */
36278
36279                  #if defined(__BSD__)
36280                  #include <sys/param.h>
36281                  #include <sys/mount.h>
36282                  #else
36283                  #include <sys/vfs.h>
36284                  #endif
36285
36286 int
36287 main ()
36288 {
36289
36290                 struct statfs fs;
36291                 statfs("", &fs);
36292
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301   *) ac_try_echo=$ac_try;;
36302 esac
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304   (eval "$ac_compile") 2>conftest.er1
36305   ac_status=$?
36306   grep -v '^ *+' conftest.er1 >conftest.err
36307   rm -f conftest.er1
36308   cat conftest.err >&5
36309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310   (exit $ac_status); } && {
36311          test -z "$ac_cxx_werror_flag" ||
36312          test ! -s conftest.err
36313        } && test -s conftest.$ac_objext; then
36314   wx_cv_func_statfs_decl=yes
36315 else
36316   echo "$as_me: failed program was:" >&5
36317 sed 's/^/| /' conftest.$ac_ext >&5
36318
36319         wx_cv_func_statfs_decl=no
36320
36321 fi
36322
36323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36324         ac_ext=c
36325 ac_cpp='$CPP $CPPFLAGS'
36326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36329
36330
36331 fi
36332 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36333 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36334
36335     if test "$wx_cv_func_statfs_decl" = "yes"; then
36336         cat >>confdefs.h <<\_ACEOF
36337 #define HAVE_STATFS_DECL 1
36338 _ACEOF
36339
36340     fi
36341
36342     wx_cv_type_statvfs_t="struct statfs"
36343     cat >>confdefs.h <<\_ACEOF
36344 #define HAVE_STATFS 1
36345 _ACEOF
36346
36347 else
36348     { echo "$as_me:$LINENO: checking for statvfs" >&5
36349 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36350 if test "${wx_cv_func_statvfs+set}" = set; then
36351   echo $ECHO_N "(cached) $ECHO_C" >&6
36352 else
36353   cat >conftest.$ac_ext <<_ACEOF
36354 /* confdefs.h.  */
36355 _ACEOF
36356 cat confdefs.h >>conftest.$ac_ext
36357 cat >>conftest.$ac_ext <<_ACEOF
36358 /* end confdefs.h.  */
36359
36360                 #include <stddef.h>
36361                 #include <sys/statvfs.h>
36362
36363 int
36364 main ()
36365 {
36366
36367                 statvfs("/", NULL);
36368
36369   ;
36370   return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext
36374 if { (ac_try="$ac_compile"
36375 case "(($ac_try" in
36376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377   *) ac_try_echo=$ac_try;;
36378 esac
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380   (eval "$ac_compile") 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } && {
36387          test -z "$ac_c_werror_flag" ||
36388          test ! -s conftest.err
36389        } && test -s conftest.$ac_objext; then
36390   wx_cv_func_statvfs=yes
36391 else
36392   echo "$as_me: failed program was:" >&5
36393 sed 's/^/| /' conftest.$ac_ext >&5
36394
36395         wx_cv_func_statvfs=no
36396
36397 fi
36398
36399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36400
36401 fi
36402 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36403 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36404
36405     if test "$wx_cv_func_statvfs" = "yes"; then
36406                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36407 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36408 if test "${wx_cv_type_statvfs_t+set}" = set; then
36409   echo $ECHO_N "(cached) $ECHO_C" >&6
36410 else
36411   ac_ext=cpp
36412 ac_cpp='$CXXCPP $CPPFLAGS'
36413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36416
36417             cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423
36424                     #include <sys/statvfs.h>
36425
36426 int
36427 main ()
36428 {
36429
36430                     long l;
36431                     statvfs_t fs;
36432                     statvfs("/", &fs);
36433                     l = fs.f_bsize;
36434                     l += fs.f_blocks;
36435                     l += fs.f_bavail;
36436
36437   ;
36438   return 0;
36439 }
36440 _ACEOF
36441 rm -f conftest.$ac_objext
36442 if { (ac_try="$ac_compile"
36443 case "(($ac_try" in
36444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36445   *) ac_try_echo=$ac_try;;
36446 esac
36447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36448   (eval "$ac_compile") 2>conftest.er1
36449   ac_status=$?
36450   grep -v '^ *+' conftest.er1 >conftest.err
36451   rm -f conftest.er1
36452   cat conftest.err >&5
36453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454   (exit $ac_status); } && {
36455          test -z "$ac_cxx_werror_flag" ||
36456          test ! -s conftest.err
36457        } && test -s conftest.$ac_objext; then
36458   wx_cv_type_statvfs_t=statvfs_t
36459 else
36460   echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36462
36463
36464                     cat >conftest.$ac_ext <<_ACEOF
36465 /* confdefs.h.  */
36466 _ACEOF
36467 cat confdefs.h >>conftest.$ac_ext
36468 cat >>conftest.$ac_ext <<_ACEOF
36469 /* end confdefs.h.  */
36470
36471                             #include <sys/statvfs.h>
36472
36473 int
36474 main ()
36475 {
36476
36477                             long l;
36478                             struct statvfs fs;
36479                             statvfs("/", &fs);
36480                             l = fs.f_bsize;
36481                             l += fs.f_blocks;
36482                             l += fs.f_bavail;
36483
36484   ;
36485   return 0;
36486 }
36487 _ACEOF
36488 rm -f conftest.$ac_objext
36489 if { (ac_try="$ac_compile"
36490 case "(($ac_try" in
36491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492   *) ac_try_echo=$ac_try;;
36493 esac
36494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36495   (eval "$ac_compile") 2>conftest.er1
36496   ac_status=$?
36497   grep -v '^ *+' conftest.er1 >conftest.err
36498   rm -f conftest.er1
36499   cat conftest.err >&5
36500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501   (exit $ac_status); } && {
36502          test -z "$ac_cxx_werror_flag" ||
36503          test ! -s conftest.err
36504        } && test -s conftest.$ac_objext; then
36505   wx_cv_type_statvfs_t="struct statvfs"
36506 else
36507   echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36509
36510         wx_cv_type_statvfs_t="unknown"
36511
36512 fi
36513
36514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36515
36516
36517 fi
36518
36519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36520             ac_ext=c
36521 ac_cpp='$CPP $CPPFLAGS'
36522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36525
36526
36527 fi
36528 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36529 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36530
36531         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36532             cat >>confdefs.h <<\_ACEOF
36533 #define HAVE_STATVFS 1
36534 _ACEOF
36535
36536         fi
36537     else
36538                 wx_cv_type_statvfs_t="unknown"
36539     fi
36540 fi
36541
36542 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36543     cat >>confdefs.h <<_ACEOF
36544 #define WX_STATFS_T $wx_cv_type_statvfs_t
36545 _ACEOF
36546
36547 else
36548     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36549 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36550 fi
36551
36552 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36553
36554
36555 for ac_func in fcntl flock
36556 do
36557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36561   echo $ECHO_N "(cached) $ECHO_C" >&6
36562 else
36563   cat >conftest.$ac_ext <<_ACEOF
36564 /* confdefs.h.  */
36565 _ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h.  */
36569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36571 #define $ac_func innocuous_$ac_func
36572
36573 /* System header to define __stub macros and hopefully few prototypes,
36574     which can conflict with char $ac_func (); below.
36575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36576     <limits.h> exists even on freestanding compilers.  */
36577
36578 #ifdef __STDC__
36579 # include <limits.h>
36580 #else
36581 # include <assert.h>
36582 #endif
36583
36584 #undef $ac_func
36585
36586 /* Override any GCC internal prototype to avoid an error.
36587    Use char because int might match the return type of a GCC
36588    builtin and then its argument prototype would still apply.  */
36589 #ifdef __cplusplus
36590 extern "C"
36591 #endif
36592 char $ac_func ();
36593 /* The GNU C library defines this for functions which it implements
36594     to always fail with ENOSYS.  Some functions are actually named
36595     something starting with __ and the normal name is an alias.  */
36596 #if defined __stub_$ac_func || defined __stub___$ac_func
36597 choke me
36598 #endif
36599
36600 int
36601 main ()
36602 {
36603 return $ac_func ();
36604   ;
36605   return 0;
36606 }
36607 _ACEOF
36608 rm -f conftest.$ac_objext conftest$ac_exeext
36609 if { (ac_try="$ac_link"
36610 case "(($ac_try" in
36611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36612   *) ac_try_echo=$ac_try;;
36613 esac
36614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36615   (eval "$ac_link") 2>conftest.er1
36616   ac_status=$?
36617   grep -v '^ *+' conftest.er1 >conftest.err
36618   rm -f conftest.er1
36619   cat conftest.err >&5
36620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621   (exit $ac_status); } && {
36622          test -z "$ac_c_werror_flag" ||
36623          test ! -s conftest.err
36624        } && test -s conftest$ac_exeext &&
36625        $as_test_x conftest$ac_exeext; then
36626   eval "$as_ac_var=yes"
36627 else
36628   echo "$as_me: failed program was:" >&5
36629 sed 's/^/| /' conftest.$ac_ext >&5
36630
36631         eval "$as_ac_var=no"
36632 fi
36633
36634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36635       conftest$ac_exeext conftest.$ac_ext
36636 fi
36637 ac_res=`eval echo '${'$as_ac_var'}'`
36638                { echo "$as_me:$LINENO: result: $ac_res" >&5
36639 echo "${ECHO_T}$ac_res" >&6; }
36640 if test `eval echo '${'$as_ac_var'}'` = yes; then
36641   cat >>confdefs.h <<_ACEOF
36642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36643 _ACEOF
36644  break
36645 fi
36646 done
36647
36648
36649     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36650         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36651 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36652         wxUSE_SNGLINST_CHECKER=no
36653     fi
36654 fi
36655
36656
36657
36658 for ac_func in setenv putenv
36659 do
36660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36664   echo $ECHO_N "(cached) $ECHO_C" >&6
36665 else
36666   cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h.  */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h.  */
36672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36674 #define $ac_func innocuous_$ac_func
36675
36676 /* System header to define __stub macros and hopefully few prototypes,
36677     which can conflict with char $ac_func (); below.
36678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36679     <limits.h> exists even on freestanding compilers.  */
36680
36681 #ifdef __STDC__
36682 # include <limits.h>
36683 #else
36684 # include <assert.h>
36685 #endif
36686
36687 #undef $ac_func
36688
36689 /* Override any GCC internal prototype to avoid an error.
36690    Use char because int might match the return type of a GCC
36691    builtin and then its argument prototype would still apply.  */
36692 #ifdef __cplusplus
36693 extern "C"
36694 #endif
36695 char $ac_func ();
36696 /* The GNU C library defines this for functions which it implements
36697     to always fail with ENOSYS.  Some functions are actually named
36698     something starting with __ and the normal name is an alias.  */
36699 #if defined __stub_$ac_func || defined __stub___$ac_func
36700 choke me
36701 #endif
36702
36703 int
36704 main ()
36705 {
36706 return $ac_func ();
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest.$ac_objext conftest$ac_exeext
36712 if { (ac_try="$ac_link"
36713 case "(($ac_try" in
36714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715   *) ac_try_echo=$ac_try;;
36716 esac
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718   (eval "$ac_link") 2>conftest.er1
36719   ac_status=$?
36720   grep -v '^ *+' conftest.er1 >conftest.err
36721   rm -f conftest.er1
36722   cat conftest.err >&5
36723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } && {
36725          test -z "$ac_c_werror_flag" ||
36726          test ! -s conftest.err
36727        } && test -s conftest$ac_exeext &&
36728        $as_test_x conftest$ac_exeext; then
36729   eval "$as_ac_var=yes"
36730 else
36731   echo "$as_me: failed program was:" >&5
36732 sed 's/^/| /' conftest.$ac_ext >&5
36733
36734         eval "$as_ac_var=no"
36735 fi
36736
36737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36738       conftest$ac_exeext conftest.$ac_ext
36739 fi
36740 ac_res=`eval echo '${'$as_ac_var'}'`
36741                { echo "$as_me:$LINENO: result: $ac_res" >&5
36742 echo "${ECHO_T}$ac_res" >&6; }
36743 if test `eval echo '${'$as_ac_var'}'` = yes; then
36744   cat >>confdefs.h <<_ACEOF
36745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36746 _ACEOF
36747  break
36748 fi
36749 done
36750
36751 if test "$ac_cv_func_setenv" = "yes"; then
36752
36753 for ac_func in unsetenv
36754 do
36755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36759   echo $ECHO_N "(cached) $ECHO_C" >&6
36760 else
36761   cat >conftest.$ac_ext <<_ACEOF
36762 /* confdefs.h.  */
36763 _ACEOF
36764 cat confdefs.h >>conftest.$ac_ext
36765 cat >>conftest.$ac_ext <<_ACEOF
36766 /* end confdefs.h.  */
36767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36769 #define $ac_func innocuous_$ac_func
36770
36771 /* System header to define __stub macros and hopefully few prototypes,
36772     which can conflict with char $ac_func (); below.
36773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36774     <limits.h> exists even on freestanding compilers.  */
36775
36776 #ifdef __STDC__
36777 # include <limits.h>
36778 #else
36779 # include <assert.h>
36780 #endif
36781
36782 #undef $ac_func
36783
36784 /* Override any GCC internal prototype to avoid an error.
36785    Use char because int might match the return type of a GCC
36786    builtin and then its argument prototype would still apply.  */
36787 #ifdef __cplusplus
36788 extern "C"
36789 #endif
36790 char $ac_func ();
36791 /* The GNU C library defines this for functions which it implements
36792     to always fail with ENOSYS.  Some functions are actually named
36793     something starting with __ and the normal name is an alias.  */
36794 #if defined __stub_$ac_func || defined __stub___$ac_func
36795 choke me
36796 #endif
36797
36798 int
36799 main ()
36800 {
36801 return $ac_func ();
36802   ;
36803   return 0;
36804 }
36805 _ACEOF
36806 rm -f conftest.$ac_objext conftest$ac_exeext
36807 if { (ac_try="$ac_link"
36808 case "(($ac_try" in
36809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36810   *) ac_try_echo=$ac_try;;
36811 esac
36812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36813   (eval "$ac_link") 2>conftest.er1
36814   ac_status=$?
36815   grep -v '^ *+' conftest.er1 >conftest.err
36816   rm -f conftest.er1
36817   cat conftest.err >&5
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); } && {
36820          test -z "$ac_c_werror_flag" ||
36821          test ! -s conftest.err
36822        } && test -s conftest$ac_exeext &&
36823        $as_test_x conftest$ac_exeext; then
36824   eval "$as_ac_var=yes"
36825 else
36826   echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36828
36829         eval "$as_ac_var=no"
36830 fi
36831
36832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36833       conftest$ac_exeext conftest.$ac_ext
36834 fi
36835 ac_res=`eval echo '${'$as_ac_var'}'`
36836                { echo "$as_me:$LINENO: result: $ac_res" >&5
36837 echo "${ECHO_T}$ac_res" >&6; }
36838 if test `eval echo '${'$as_ac_var'}'` = yes; then
36839   cat >>confdefs.h <<_ACEOF
36840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36841 _ACEOF
36842
36843 fi
36844 done
36845
36846 fi
36847
36848 HAVE_SOME_SLEEP_FUNC=0
36849 if test "$USE_BEOS" = 1; then
36850             cat >>confdefs.h <<\_ACEOF
36851 #define HAVE_SLEEP 1
36852 _ACEOF
36853
36854     HAVE_SOME_SLEEP_FUNC=1
36855 fi
36856
36857 if test "$USE_DARWIN" = 1; then
36858             cat >>confdefs.h <<\_ACEOF
36859 #define HAVE_USLEEP 1
36860 _ACEOF
36861
36862     HAVE_SOME_SLEEP_FUNC=1
36863 fi
36864
36865 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36866         POSIX4_LINK=
36867
36868 for ac_func in nanosleep
36869 do
36870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36874   echo $ECHO_N "(cached) $ECHO_C" >&6
36875 else
36876   cat >conftest.$ac_ext <<_ACEOF
36877 /* confdefs.h.  */
36878 _ACEOF
36879 cat confdefs.h >>conftest.$ac_ext
36880 cat >>conftest.$ac_ext <<_ACEOF
36881 /* end confdefs.h.  */
36882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36884 #define $ac_func innocuous_$ac_func
36885
36886 /* System header to define __stub macros and hopefully few prototypes,
36887     which can conflict with char $ac_func (); below.
36888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36889     <limits.h> exists even on freestanding compilers.  */
36890
36891 #ifdef __STDC__
36892 # include <limits.h>
36893 #else
36894 # include <assert.h>
36895 #endif
36896
36897 #undef $ac_func
36898
36899 /* Override any GCC internal prototype to avoid an error.
36900    Use char because int might match the return type of a GCC
36901    builtin and then its argument prototype would still apply.  */
36902 #ifdef __cplusplus
36903 extern "C"
36904 #endif
36905 char $ac_func ();
36906 /* The GNU C library defines this for functions which it implements
36907     to always fail with ENOSYS.  Some functions are actually named
36908     something starting with __ and the normal name is an alias.  */
36909 #if defined __stub_$ac_func || defined __stub___$ac_func
36910 choke me
36911 #endif
36912
36913 int
36914 main ()
36915 {
36916 return $ac_func ();
36917   ;
36918   return 0;
36919 }
36920 _ACEOF
36921 rm -f conftest.$ac_objext conftest$ac_exeext
36922 if { (ac_try="$ac_link"
36923 case "(($ac_try" in
36924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36925   *) ac_try_echo=$ac_try;;
36926 esac
36927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36928   (eval "$ac_link") 2>conftest.er1
36929   ac_status=$?
36930   grep -v '^ *+' conftest.er1 >conftest.err
36931   rm -f conftest.er1
36932   cat conftest.err >&5
36933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934   (exit $ac_status); } && {
36935          test -z "$ac_c_werror_flag" ||
36936          test ! -s conftest.err
36937        } && test -s conftest$ac_exeext &&
36938        $as_test_x conftest$ac_exeext; then
36939   eval "$as_ac_var=yes"
36940 else
36941   echo "$as_me: failed program was:" >&5
36942 sed 's/^/| /' conftest.$ac_ext >&5
36943
36944         eval "$as_ac_var=no"
36945 fi
36946
36947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36948       conftest$ac_exeext conftest.$ac_ext
36949 fi
36950 ac_res=`eval echo '${'$as_ac_var'}'`
36951                { echo "$as_me:$LINENO: result: $ac_res" >&5
36952 echo "${ECHO_T}$ac_res" >&6; }
36953 if test `eval echo '${'$as_ac_var'}'` = yes; then
36954   cat >>confdefs.h <<_ACEOF
36955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36956 _ACEOF
36957  cat >>confdefs.h <<\_ACEOF
36958 #define HAVE_NANOSLEEP 1
36959 _ACEOF
36960
36961 else
36962
36963             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36964 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
36965 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36966   echo $ECHO_N "(cached) $ECHO_C" >&6
36967 else
36968   ac_check_lib_save_LIBS=$LIBS
36969 LIBS="-lposix4  $LIBS"
36970 cat >conftest.$ac_ext <<_ACEOF
36971 /* confdefs.h.  */
36972 _ACEOF
36973 cat confdefs.h >>conftest.$ac_ext
36974 cat >>conftest.$ac_ext <<_ACEOF
36975 /* end confdefs.h.  */
36976
36977 /* Override any GCC internal prototype to avoid an error.
36978    Use char because int might match the return type of a GCC
36979    builtin and then its argument prototype would still apply.  */
36980 #ifdef __cplusplus
36981 extern "C"
36982 #endif
36983 char nanosleep ();
36984 int
36985 main ()
36986 {
36987 return nanosleep ();
36988   ;
36989   return 0;
36990 }
36991 _ACEOF
36992 rm -f conftest.$ac_objext conftest$ac_exeext
36993 if { (ac_try="$ac_link"
36994 case "(($ac_try" in
36995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36996   *) ac_try_echo=$ac_try;;
36997 esac
36998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36999   (eval "$ac_link") 2>conftest.er1
37000   ac_status=$?
37001   grep -v '^ *+' conftest.er1 >conftest.err
37002   rm -f conftest.er1
37003   cat conftest.err >&5
37004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005   (exit $ac_status); } && {
37006          test -z "$ac_c_werror_flag" ||
37007          test ! -s conftest.err
37008        } && test -s conftest$ac_exeext &&
37009        $as_test_x conftest$ac_exeext; then
37010   ac_cv_lib_posix4_nanosleep=yes
37011 else
37012   echo "$as_me: failed program was:" >&5
37013 sed 's/^/| /' conftest.$ac_ext >&5
37014
37015         ac_cv_lib_posix4_nanosleep=no
37016 fi
37017
37018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37019       conftest$ac_exeext conftest.$ac_ext
37020 LIBS=$ac_check_lib_save_LIBS
37021 fi
37022 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37023 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37024 if test $ac_cv_lib_posix4_nanosleep = yes; then
37025
37026                     cat >>confdefs.h <<\_ACEOF
37027 #define HAVE_NANOSLEEP 1
37028 _ACEOF
37029
37030                     POSIX4_LINK=" -lposix4"
37031
37032 else
37033
37034
37035   for wx_func in usleep
37036   do
37037     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37038 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37039 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37040   echo $ECHO_N "(cached) $ECHO_C" >&6
37041 else
37042
37043         cat >conftest.$ac_ext <<_ACEOF
37044
37045             /* confdefs.h.  */
37046 _ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h.  */
37050
37051
37052                 $ac_includes_default
37053
37054 int
37055 main ()
37056 {
37057
37058                 #ifndef $wx_func
37059                   &$wx_func;
37060                 #endif
37061
37062
37063   ;
37064   return 0;
37065 }
37066
37067 _ACEOF
37068 rm -f conftest.$ac_objext conftest$ac_exeext
37069 if { (ac_try="$ac_link"
37070 case "(($ac_try" in
37071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072   *) ac_try_echo=$ac_try;;
37073 esac
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075   (eval "$ac_link") 2>conftest.er1
37076   ac_status=$?
37077   grep -v '^ *+' conftest.er1 >conftest.err
37078   rm -f conftest.er1
37079   cat conftest.err >&5
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); } && {
37082          test -z "$ac_c_werror_flag" ||
37083          test ! -s conftest.err
37084        } && test -s conftest$ac_exeext &&
37085        $as_test_x conftest$ac_exeext; then
37086   eval wx_cv_func_$wx_func=yes
37087 else
37088   echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091         eval wx_cv_func_$wx_func=no
37092 fi
37093
37094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37095       conftest$ac_exeext conftest.$ac_ext
37096
37097 fi
37098 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37099                { echo "$as_me:$LINENO: result: $ac_res" >&5
37100 echo "${ECHO_T}$ac_res" >&6; }
37101
37102     if eval test \$wx_cv_func_$wx_func = yes
37103     then
37104       cat >>confdefs.h <<_ACEOF
37105 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37106 _ACEOF
37107
37108
37109     else
37110       :
37111       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37112 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37113
37114     fi
37115   done
37116
37117
37118
37119 fi
37120
37121
37122
37123 fi
37124 done
37125
37126 fi
37127
37128
37129   for wx_func in uname
37130   do
37131     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37132 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37133 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37134   echo $ECHO_N "(cached) $ECHO_C" >&6
37135 else
37136
37137         cat >conftest.$ac_ext <<_ACEOF
37138
37139             /* confdefs.h.  */
37140 _ACEOF
37141 cat confdefs.h >>conftest.$ac_ext
37142 cat >>conftest.$ac_ext <<_ACEOF
37143 /* end confdefs.h.  */
37144
37145                 #include <sys/utsname.h>
37146                 $ac_includes_default
37147
37148 int
37149 main ()
37150 {
37151
37152                 #ifndef $wx_func
37153                   &$wx_func;
37154                 #endif
37155
37156
37157   ;
37158   return 0;
37159 }
37160
37161 _ACEOF
37162 rm -f conftest.$ac_objext conftest$ac_exeext
37163 if { (ac_try="$ac_link"
37164 case "(($ac_try" in
37165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37166   *) ac_try_echo=$ac_try;;
37167 esac
37168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37169   (eval "$ac_link") 2>conftest.er1
37170   ac_status=$?
37171   grep -v '^ *+' conftest.er1 >conftest.err
37172   rm -f conftest.er1
37173   cat conftest.err >&5
37174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175   (exit $ac_status); } && {
37176          test -z "$ac_c_werror_flag" ||
37177          test ! -s conftest.err
37178        } && test -s conftest$ac_exeext &&
37179        $as_test_x conftest$ac_exeext; then
37180   eval wx_cv_func_$wx_func=yes
37181 else
37182   echo "$as_me: failed program was:" >&5
37183 sed 's/^/| /' conftest.$ac_ext >&5
37184
37185         eval wx_cv_func_$wx_func=no
37186 fi
37187
37188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37189       conftest$ac_exeext conftest.$ac_ext
37190
37191 fi
37192 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37193                { echo "$as_me:$LINENO: result: $ac_res" >&5
37194 echo "${ECHO_T}$ac_res" >&6; }
37195
37196     if eval test \$wx_cv_func_$wx_func = yes
37197     then
37198       cat >>confdefs.h <<_ACEOF
37199 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37200 _ACEOF
37201
37202
37203     else
37204       :
37205
37206     fi
37207   done
37208
37209 if test "$wx_cv_func_uname" != yes; then
37210
37211   for wx_func in gethostname
37212   do
37213     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37214 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37215 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37216   echo $ECHO_N "(cached) $ECHO_C" >&6
37217 else
37218
37219         cat >conftest.$ac_ext <<_ACEOF
37220
37221             /* confdefs.h.  */
37222 _ACEOF
37223 cat confdefs.h >>conftest.$ac_ext
37224 cat >>conftest.$ac_ext <<_ACEOF
37225 /* end confdefs.h.  */
37226
37227
37228                 $ac_includes_default
37229
37230 int
37231 main ()
37232 {
37233
37234                 #ifndef $wx_func
37235                   &$wx_func;
37236                 #endif
37237
37238
37239   ;
37240   return 0;
37241 }
37242
37243 _ACEOF
37244 rm -f conftest.$ac_objext conftest$ac_exeext
37245 if { (ac_try="$ac_link"
37246 case "(($ac_try" in
37247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37248   *) ac_try_echo=$ac_try;;
37249 esac
37250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37251   (eval "$ac_link") 2>conftest.er1
37252   ac_status=$?
37253   grep -v '^ *+' conftest.er1 >conftest.err
37254   rm -f conftest.er1
37255   cat conftest.err >&5
37256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257   (exit $ac_status); } && {
37258          test -z "$ac_c_werror_flag" ||
37259          test ! -s conftest.err
37260        } && test -s conftest$ac_exeext &&
37261        $as_test_x conftest$ac_exeext; then
37262   eval wx_cv_func_$wx_func=yes
37263 else
37264   echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37266
37267         eval wx_cv_func_$wx_func=no
37268 fi
37269
37270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37271       conftest$ac_exeext conftest.$ac_ext
37272
37273 fi
37274 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37275                { echo "$as_me:$LINENO: result: $ac_res" >&5
37276 echo "${ECHO_T}$ac_res" >&6; }
37277
37278     if eval test \$wx_cv_func_$wx_func = yes
37279     then
37280       cat >>confdefs.h <<_ACEOF
37281 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37282 _ACEOF
37283
37284
37285     else
37286       :
37287
37288     fi
37289   done
37290
37291 fi
37292
37293
37294   for wx_func in strtok_r
37295   do
37296     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37297 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37298 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37299   echo $ECHO_N "(cached) $ECHO_C" >&6
37300 else
37301
37302         cat >conftest.$ac_ext <<_ACEOF
37303
37304             /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309
37310                 #define _REENTRANT
37311                 $ac_includes_default
37312
37313 int
37314 main ()
37315 {
37316
37317                 #ifndef $wx_func
37318                   &$wx_func;
37319                 #endif
37320
37321
37322   ;
37323   return 0;
37324 }
37325
37326 _ACEOF
37327 rm -f conftest.$ac_objext conftest$ac_exeext
37328 if { (ac_try="$ac_link"
37329 case "(($ac_try" in
37330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37331   *) ac_try_echo=$ac_try;;
37332 esac
37333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37334   (eval "$ac_link") 2>conftest.er1
37335   ac_status=$?
37336   grep -v '^ *+' conftest.er1 >conftest.err
37337   rm -f conftest.er1
37338   cat conftest.err >&5
37339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340   (exit $ac_status); } && {
37341          test -z "$ac_c_werror_flag" ||
37342          test ! -s conftest.err
37343        } && test -s conftest$ac_exeext &&
37344        $as_test_x conftest$ac_exeext; then
37345   eval wx_cv_func_$wx_func=yes
37346 else
37347   echo "$as_me: failed program was:" >&5
37348 sed 's/^/| /' conftest.$ac_ext >&5
37349
37350         eval wx_cv_func_$wx_func=no
37351 fi
37352
37353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37354       conftest$ac_exeext conftest.$ac_ext
37355
37356 fi
37357 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37358                { echo "$as_me:$LINENO: result: $ac_res" >&5
37359 echo "${ECHO_T}$ac_res" >&6; }
37360
37361     if eval test \$wx_cv_func_$wx_func = yes
37362     then
37363       cat >>confdefs.h <<_ACEOF
37364 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37365 _ACEOF
37366
37367
37368     else
37369       :
37370
37371     fi
37372   done
37373
37374
37375 INET_LINK=
37376
37377 for ac_func in inet_addr
37378 do
37379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37383   echo $ECHO_N "(cached) $ECHO_C" >&6
37384 else
37385   cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37393 #define $ac_func innocuous_$ac_func
37394
37395 /* System header to define __stub macros and hopefully few prototypes,
37396     which can conflict with char $ac_func (); below.
37397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37398     <limits.h> exists even on freestanding compilers.  */
37399
37400 #ifdef __STDC__
37401 # include <limits.h>
37402 #else
37403 # include <assert.h>
37404 #endif
37405
37406 #undef $ac_func
37407
37408 /* Override any GCC internal prototype to avoid an error.
37409    Use char because int might match the return type of a GCC
37410    builtin and then its argument prototype would still apply.  */
37411 #ifdef __cplusplus
37412 extern "C"
37413 #endif
37414 char $ac_func ();
37415 /* The GNU C library defines this for functions which it implements
37416     to always fail with ENOSYS.  Some functions are actually named
37417     something starting with __ and the normal name is an alias.  */
37418 #if defined __stub_$ac_func || defined __stub___$ac_func
37419 choke me
37420 #endif
37421
37422 int
37423 main ()
37424 {
37425 return $ac_func ();
37426   ;
37427   return 0;
37428 }
37429 _ACEOF
37430 rm -f conftest.$ac_objext conftest$ac_exeext
37431 if { (ac_try="$ac_link"
37432 case "(($ac_try" in
37433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37434   *) ac_try_echo=$ac_try;;
37435 esac
37436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37437   (eval "$ac_link") 2>conftest.er1
37438   ac_status=$?
37439   grep -v '^ *+' conftest.er1 >conftest.err
37440   rm -f conftest.er1
37441   cat conftest.err >&5
37442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443   (exit $ac_status); } && {
37444          test -z "$ac_c_werror_flag" ||
37445          test ! -s conftest.err
37446        } && test -s conftest$ac_exeext &&
37447        $as_test_x conftest$ac_exeext; then
37448   eval "$as_ac_var=yes"
37449 else
37450   echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37452
37453         eval "$as_ac_var=no"
37454 fi
37455
37456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37457       conftest$ac_exeext conftest.$ac_ext
37458 fi
37459 ac_res=`eval echo '${'$as_ac_var'}'`
37460                { echo "$as_me:$LINENO: result: $ac_res" >&5
37461 echo "${ECHO_T}$ac_res" >&6; }
37462 if test `eval echo '${'$as_ac_var'}'` = yes; then
37463   cat >>confdefs.h <<_ACEOF
37464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37465 _ACEOF
37466  cat >>confdefs.h <<\_ACEOF
37467 #define HAVE_INET_ADDR 1
37468 _ACEOF
37469
37470 else
37471
37472         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37473 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37474 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37475   echo $ECHO_N "(cached) $ECHO_C" >&6
37476 else
37477   ac_check_lib_save_LIBS=$LIBS
37478 LIBS="-lnsl  $LIBS"
37479 cat >conftest.$ac_ext <<_ACEOF
37480 /* confdefs.h.  */
37481 _ACEOF
37482 cat confdefs.h >>conftest.$ac_ext
37483 cat >>conftest.$ac_ext <<_ACEOF
37484 /* end confdefs.h.  */
37485
37486 /* Override any GCC internal prototype to avoid an error.
37487    Use char because int might match the return type of a GCC
37488    builtin and then its argument prototype would still apply.  */
37489 #ifdef __cplusplus
37490 extern "C"
37491 #endif
37492 char inet_addr ();
37493 int
37494 main ()
37495 {
37496 return inet_addr ();
37497   ;
37498   return 0;
37499 }
37500 _ACEOF
37501 rm -f conftest.$ac_objext conftest$ac_exeext
37502 if { (ac_try="$ac_link"
37503 case "(($ac_try" in
37504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37505   *) ac_try_echo=$ac_try;;
37506 esac
37507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37508   (eval "$ac_link") 2>conftest.er1
37509   ac_status=$?
37510   grep -v '^ *+' conftest.er1 >conftest.err
37511   rm -f conftest.er1
37512   cat conftest.err >&5
37513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514   (exit $ac_status); } && {
37515          test -z "$ac_c_werror_flag" ||
37516          test ! -s conftest.err
37517        } && test -s conftest$ac_exeext &&
37518        $as_test_x conftest$ac_exeext; then
37519   ac_cv_lib_nsl_inet_addr=yes
37520 else
37521   echo "$as_me: failed program was:" >&5
37522 sed 's/^/| /' conftest.$ac_ext >&5
37523
37524         ac_cv_lib_nsl_inet_addr=no
37525 fi
37526
37527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37528       conftest$ac_exeext conftest.$ac_ext
37529 LIBS=$ac_check_lib_save_LIBS
37530 fi
37531 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37532 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
37533 if test $ac_cv_lib_nsl_inet_addr = yes; then
37534   INET_LINK="nsl"
37535 else
37536
37537                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37538 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
37539 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37540   echo $ECHO_N "(cached) $ECHO_C" >&6
37541 else
37542   ac_check_lib_save_LIBS=$LIBS
37543 LIBS="-lresolv  $LIBS"
37544 cat >conftest.$ac_ext <<_ACEOF
37545 /* confdefs.h.  */
37546 _ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h.  */
37550
37551 /* Override any GCC internal prototype to avoid an error.
37552    Use char because int might match the return type of a GCC
37553    builtin and then its argument prototype would still apply.  */
37554 #ifdef __cplusplus
37555 extern "C"
37556 #endif
37557 char inet_addr ();
37558 int
37559 main ()
37560 {
37561 return inet_addr ();
37562   ;
37563   return 0;
37564 }
37565 _ACEOF
37566 rm -f conftest.$ac_objext conftest$ac_exeext
37567 if { (ac_try="$ac_link"
37568 case "(($ac_try" in
37569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37570   *) ac_try_echo=$ac_try;;
37571 esac
37572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37573   (eval "$ac_link") 2>conftest.er1
37574   ac_status=$?
37575   grep -v '^ *+' conftest.er1 >conftest.err
37576   rm -f conftest.er1
37577   cat conftest.err >&5
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); } && {
37580          test -z "$ac_c_werror_flag" ||
37581          test ! -s conftest.err
37582        } && test -s conftest$ac_exeext &&
37583        $as_test_x conftest$ac_exeext; then
37584   ac_cv_lib_resolv_inet_addr=yes
37585 else
37586   echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37588
37589         ac_cv_lib_resolv_inet_addr=no
37590 fi
37591
37592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37593       conftest$ac_exeext conftest.$ac_ext
37594 LIBS=$ac_check_lib_save_LIBS
37595 fi
37596 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37597 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
37598 if test $ac_cv_lib_resolv_inet_addr = yes; then
37599   INET_LINK="resolv"
37600 else
37601
37602                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37603 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
37604 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37605   echo $ECHO_N "(cached) $ECHO_C" >&6
37606 else
37607   ac_check_lib_save_LIBS=$LIBS
37608 LIBS="-lsocket  $LIBS"
37609 cat >conftest.$ac_ext <<_ACEOF
37610 /* confdefs.h.  */
37611 _ACEOF
37612 cat confdefs.h >>conftest.$ac_ext
37613 cat >>conftest.$ac_ext <<_ACEOF
37614 /* end confdefs.h.  */
37615
37616 /* Override any GCC internal prototype to avoid an error.
37617    Use char because int might match the return type of a GCC
37618    builtin and then its argument prototype would still apply.  */
37619 #ifdef __cplusplus
37620 extern "C"
37621 #endif
37622 char inet_addr ();
37623 int
37624 main ()
37625 {
37626 return inet_addr ();
37627   ;
37628   return 0;
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   ac_cv_lib_socket_inet_addr=yes
37650 else
37651   echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37653
37654         ac_cv_lib_socket_inet_addr=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 LIBS=$ac_check_lib_save_LIBS
37660 fi
37661 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37662 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
37663 if test $ac_cv_lib_socket_inet_addr = yes; then
37664   INET_LINK="socket"
37665
37666 fi
37667
37668
37669
37670 fi
37671
37672
37673
37674 fi
37675
37676
37677
37678 fi
37679 done
37680
37681
37682
37683 for ac_func in inet_aton
37684 do
37685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37689   echo $ECHO_N "(cached) $ECHO_C" >&6
37690 else
37691   cat >conftest.$ac_ext <<_ACEOF
37692 /* confdefs.h.  */
37693 _ACEOF
37694 cat confdefs.h >>conftest.$ac_ext
37695 cat >>conftest.$ac_ext <<_ACEOF
37696 /* end confdefs.h.  */
37697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37699 #define $ac_func innocuous_$ac_func
37700
37701 /* System header to define __stub macros and hopefully few prototypes,
37702     which can conflict with char $ac_func (); below.
37703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37704     <limits.h> exists even on freestanding compilers.  */
37705
37706 #ifdef __STDC__
37707 # include <limits.h>
37708 #else
37709 # include <assert.h>
37710 #endif
37711
37712 #undef $ac_func
37713
37714 /* Override any GCC internal prototype to avoid an error.
37715    Use char because int might match the return type of a GCC
37716    builtin and then its argument prototype would still apply.  */
37717 #ifdef __cplusplus
37718 extern "C"
37719 #endif
37720 char $ac_func ();
37721 /* The GNU C library defines this for functions which it implements
37722     to always fail with ENOSYS.  Some functions are actually named
37723     something starting with __ and the normal name is an alias.  */
37724 #if defined __stub_$ac_func || defined __stub___$ac_func
37725 choke me
37726 #endif
37727
37728 int
37729 main ()
37730 {
37731 return $ac_func ();
37732   ;
37733   return 0;
37734 }
37735 _ACEOF
37736 rm -f conftest.$ac_objext conftest$ac_exeext
37737 if { (ac_try="$ac_link"
37738 case "(($ac_try" in
37739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37740   *) ac_try_echo=$ac_try;;
37741 esac
37742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37743   (eval "$ac_link") 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } && {
37750          test -z "$ac_c_werror_flag" ||
37751          test ! -s conftest.err
37752        } && test -s conftest$ac_exeext &&
37753        $as_test_x conftest$ac_exeext; then
37754   eval "$as_ac_var=yes"
37755 else
37756   echo "$as_me: failed program was:" >&5
37757 sed 's/^/| /' conftest.$ac_ext >&5
37758
37759         eval "$as_ac_var=no"
37760 fi
37761
37762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37763       conftest$ac_exeext conftest.$ac_ext
37764 fi
37765 ac_res=`eval echo '${'$as_ac_var'}'`
37766                { echo "$as_me:$LINENO: result: $ac_res" >&5
37767 echo "${ECHO_T}$ac_res" >&6; }
37768 if test `eval echo '${'$as_ac_var'}'` = yes; then
37769   cat >>confdefs.h <<_ACEOF
37770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37771 _ACEOF
37772  cat >>confdefs.h <<\_ACEOF
37773 #define HAVE_INET_ATON 1
37774 _ACEOF
37775
37776 else
37777
37778                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37779 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37780 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
37781 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37782   echo $ECHO_N "(cached) $ECHO_C" >&6
37783 else
37784   ac_check_lib_save_LIBS=$LIBS
37785 LIBS="-l$INET_LINK  $LIBS"
37786 cat >conftest.$ac_ext <<_ACEOF
37787 /* confdefs.h.  */
37788 _ACEOF
37789 cat confdefs.h >>conftest.$ac_ext
37790 cat >>conftest.$ac_ext <<_ACEOF
37791 /* end confdefs.h.  */
37792
37793 /* Override any GCC internal prototype to avoid an error.
37794    Use char because int might match the return type of a GCC
37795    builtin and then its argument prototype would still apply.  */
37796 #ifdef __cplusplus
37797 extern "C"
37798 #endif
37799 char inet_aton ();
37800 int
37801 main ()
37802 {
37803 return inet_aton ();
37804   ;
37805   return 0;
37806 }
37807 _ACEOF
37808 rm -f conftest.$ac_objext conftest$ac_exeext
37809 if { (ac_try="$ac_link"
37810 case "(($ac_try" in
37811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37812   *) ac_try_echo=$ac_try;;
37813 esac
37814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37815   (eval "$ac_link") 2>conftest.er1
37816   ac_status=$?
37817   grep -v '^ *+' conftest.er1 >conftest.err
37818   rm -f conftest.er1
37819   cat conftest.err >&5
37820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821   (exit $ac_status); } && {
37822          test -z "$ac_c_werror_flag" ||
37823          test ! -s conftest.err
37824        } && test -s conftest$ac_exeext &&
37825        $as_test_x conftest$ac_exeext; then
37826   eval "$as_ac_Lib=yes"
37827 else
37828   echo "$as_me: failed program was:" >&5
37829 sed 's/^/| /' conftest.$ac_ext >&5
37830
37831         eval "$as_ac_Lib=no"
37832 fi
37833
37834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37835       conftest$ac_exeext conftest.$ac_ext
37836 LIBS=$ac_check_lib_save_LIBS
37837 fi
37838 ac_res=`eval echo '${'$as_ac_Lib'}'`
37839                { echo "$as_me:$LINENO: result: $ac_res" >&5
37840 echo "${ECHO_T}$ac_res" >&6; }
37841 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37842   cat >>confdefs.h <<\_ACEOF
37843 #define HAVE_INET_ATON 1
37844 _ACEOF
37845
37846 fi
37847
37848
37849 fi
37850 done
37851
37852
37853 if test "x$INET_LINK" != "x"; then
37854     cat >>confdefs.h <<\_ACEOF
37855 #define HAVE_INET_ADDR 1
37856 _ACEOF
37857
37858     INET_LINK=" -l$INET_LINK"
37859 fi
37860
37861
37862   for wx_func in fdopen
37863   do
37864     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37865 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37866 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37867   echo $ECHO_N "(cached) $ECHO_C" >&6
37868 else
37869
37870         cat >conftest.$ac_ext <<_ACEOF
37871
37872             /* confdefs.h.  */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h.  */
37877
37878
37879                 $ac_includes_default
37880
37881 int
37882 main ()
37883 {
37884
37885                 #ifndef $wx_func
37886                   &$wx_func;
37887                 #endif
37888
37889
37890   ;
37891   return 0;
37892 }
37893
37894 _ACEOF
37895 rm -f conftest.$ac_objext conftest$ac_exeext
37896 if { (ac_try="$ac_link"
37897 case "(($ac_try" in
37898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37899   *) ac_try_echo=$ac_try;;
37900 esac
37901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37902   (eval "$ac_link") 2>conftest.er1
37903   ac_status=$?
37904   grep -v '^ *+' conftest.er1 >conftest.err
37905   rm -f conftest.er1
37906   cat conftest.err >&5
37907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908   (exit $ac_status); } && {
37909          test -z "$ac_c_werror_flag" ||
37910          test ! -s conftest.err
37911        } && test -s conftest$ac_exeext &&
37912        $as_test_x conftest$ac_exeext; then
37913   eval wx_cv_func_$wx_func=yes
37914 else
37915   echo "$as_me: failed program was:" >&5
37916 sed 's/^/| /' conftest.$ac_ext >&5
37917
37918         eval wx_cv_func_$wx_func=no
37919 fi
37920
37921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37922       conftest$ac_exeext conftest.$ac_ext
37923
37924 fi
37925 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37926                { echo "$as_me:$LINENO: result: $ac_res" >&5
37927 echo "${ECHO_T}$ac_res" >&6; }
37928
37929     if eval test \$wx_cv_func_$wx_func = yes
37930     then
37931       cat >>confdefs.h <<_ACEOF
37932 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37933 _ACEOF
37934
37935
37936     else
37937       :
37938
37939     fi
37940   done
37941
37942
37943 if test "$wxUSE_TARSTREAM" = "yes"; then
37944
37945   for wx_func in sysconf
37946   do
37947     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37948 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37949 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37950   echo $ECHO_N "(cached) $ECHO_C" >&6
37951 else
37952
37953         cat >conftest.$ac_ext <<_ACEOF
37954
37955             /* confdefs.h.  */
37956 _ACEOF
37957 cat confdefs.h >>conftest.$ac_ext
37958 cat >>conftest.$ac_ext <<_ACEOF
37959 /* end confdefs.h.  */
37960
37961
37962                 $ac_includes_default
37963
37964 int
37965 main ()
37966 {
37967
37968                 #ifndef $wx_func
37969                   &$wx_func;
37970                 #endif
37971
37972
37973   ;
37974   return 0;
37975 }
37976
37977 _ACEOF
37978 rm -f conftest.$ac_objext conftest$ac_exeext
37979 if { (ac_try="$ac_link"
37980 case "(($ac_try" in
37981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37982   *) ac_try_echo=$ac_try;;
37983 esac
37984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37985   (eval "$ac_link") 2>conftest.er1
37986   ac_status=$?
37987   grep -v '^ *+' conftest.er1 >conftest.err
37988   rm -f conftest.er1
37989   cat conftest.err >&5
37990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991   (exit $ac_status); } && {
37992          test -z "$ac_c_werror_flag" ||
37993          test ! -s conftest.err
37994        } && test -s conftest$ac_exeext &&
37995        $as_test_x conftest$ac_exeext; then
37996   eval wx_cv_func_$wx_func=yes
37997 else
37998   echo "$as_me: failed program was:" >&5
37999 sed 's/^/| /' conftest.$ac_ext >&5
38000
38001         eval wx_cv_func_$wx_func=no
38002 fi
38003
38004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38005       conftest$ac_exeext conftest.$ac_ext
38006
38007 fi
38008 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38009                { echo "$as_me:$LINENO: result: $ac_res" >&5
38010 echo "${ECHO_T}$ac_res" >&6; }
38011
38012     if eval test \$wx_cv_func_$wx_func = yes
38013     then
38014       cat >>confdefs.h <<_ACEOF
38015 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38016 _ACEOF
38017
38018
38019     else
38020       :
38021
38022     fi
38023   done
38024
38025
38026
38027   for wx_func in getpwuid_r
38028   do
38029     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38030 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38031 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38032   echo $ECHO_N "(cached) $ECHO_C" >&6
38033 else
38034
38035         cat >conftest.$ac_ext <<_ACEOF
38036
38037             /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042
38043
38044                     #define _REENTRANT
38045                     #include <pwd.h>
38046
38047                 $ac_includes_default
38048
38049 int
38050 main ()
38051 {
38052
38053                 #ifndef $wx_func
38054                   &$wx_func;
38055                 #endif
38056
38057                     struct passwd pw, *ppw;
38058                     char buf[1024];
38059                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38060
38061
38062   ;
38063   return 0;
38064 }
38065
38066 _ACEOF
38067 rm -f conftest.$ac_objext conftest$ac_exeext
38068 if { (ac_try="$ac_link"
38069 case "(($ac_try" in
38070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38071   *) ac_try_echo=$ac_try;;
38072 esac
38073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38074   (eval "$ac_link") 2>conftest.er1
38075   ac_status=$?
38076   grep -v '^ *+' conftest.er1 >conftest.err
38077   rm -f conftest.er1
38078   cat conftest.err >&5
38079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080   (exit $ac_status); } && {
38081          test -z "$ac_c_werror_flag" ||
38082          test ! -s conftest.err
38083        } && test -s conftest$ac_exeext &&
38084        $as_test_x conftest$ac_exeext; then
38085   eval wx_cv_func_$wx_func=yes
38086 else
38087   echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38089
38090         eval wx_cv_func_$wx_func=no
38091 fi
38092
38093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38094       conftest$ac_exeext conftest.$ac_ext
38095
38096 fi
38097 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38098                { echo "$as_me:$LINENO: result: $ac_res" >&5
38099 echo "${ECHO_T}$ac_res" >&6; }
38100
38101     if eval test \$wx_cv_func_$wx_func = yes
38102     then
38103       cat >>confdefs.h <<_ACEOF
38104 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38105 _ACEOF
38106
38107
38108     else
38109       :
38110
38111     fi
38112   done
38113
38114
38115
38116   for wx_func in getgrgid_r
38117   do
38118     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38119 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38120 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38121   echo $ECHO_N "(cached) $ECHO_C" >&6
38122 else
38123
38124         cat >conftest.$ac_ext <<_ACEOF
38125
38126             /* confdefs.h.  */
38127 _ACEOF
38128 cat confdefs.h >>conftest.$ac_ext
38129 cat >>conftest.$ac_ext <<_ACEOF
38130 /* end confdefs.h.  */
38131
38132
38133                     #define _REENTRANT
38134                     #include <grp.h>
38135
38136                 $ac_includes_default
38137
38138 int
38139 main ()
38140 {
38141
38142                 #ifndef $wx_func
38143                   &$wx_func;
38144                 #endif
38145
38146                     struct group grp, *pgrp;
38147                     char buf[1024];
38148                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38149
38150
38151   ;
38152   return 0;
38153 }
38154
38155 _ACEOF
38156 rm -f conftest.$ac_objext conftest$ac_exeext
38157 if { (ac_try="$ac_link"
38158 case "(($ac_try" in
38159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38160   *) ac_try_echo=$ac_try;;
38161 esac
38162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38163   (eval "$ac_link") 2>conftest.er1
38164   ac_status=$?
38165   grep -v '^ *+' conftest.er1 >conftest.err
38166   rm -f conftest.er1
38167   cat conftest.err >&5
38168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169   (exit $ac_status); } && {
38170          test -z "$ac_c_werror_flag" ||
38171          test ! -s conftest.err
38172        } && test -s conftest$ac_exeext &&
38173        $as_test_x conftest$ac_exeext; then
38174   eval wx_cv_func_$wx_func=yes
38175 else
38176   echo "$as_me: failed program was:" >&5
38177 sed 's/^/| /' conftest.$ac_ext >&5
38178
38179         eval wx_cv_func_$wx_func=no
38180 fi
38181
38182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38183       conftest$ac_exeext conftest.$ac_ext
38184
38185 fi
38186 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38187                { echo "$as_me:$LINENO: result: $ac_res" >&5
38188 echo "${ECHO_T}$ac_res" >&6; }
38189
38190     if eval test \$wx_cv_func_$wx_func = yes
38191     then
38192       cat >>confdefs.h <<_ACEOF
38193 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38194 _ACEOF
38195
38196
38197     else
38198       :
38199
38200     fi
38201   done
38202
38203 fi
38204
38205 fi
38206
38207
38208
38209 cat >confcache <<\_ACEOF
38210 # This file is a shell script that caches the results of configure
38211 # tests run on this system so they can be shared between configure
38212 # scripts and configure runs, see configure's option --config-cache.
38213 # It is not useful on other systems.  If it contains results you don't
38214 # want to keep, you may remove or edit it.
38215 #
38216 # config.status only pays attention to the cache file if you give it
38217 # the --recheck option to rerun configure.
38218 #
38219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38221 # following values.
38222
38223 _ACEOF
38224
38225 # The following way of writing the cache mishandles newlines in values,
38226 # but we know of no workaround that is simple, portable, and efficient.
38227 # So, we kill variables containing newlines.
38228 # Ultrix sh set writes to stderr and can't be redirected directly,
38229 # and sets the high bit in the cache file unless we assign to the vars.
38230 (
38231   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38232     eval ac_val=\$$ac_var
38233     case $ac_val in #(
38234     *${as_nl}*)
38235       case $ac_var in #(
38236       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38237 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38238       esac
38239       case $ac_var in #(
38240       _ | IFS | as_nl) ;; #(
38241       *) $as_unset $ac_var ;;
38242       esac ;;
38243     esac
38244   done
38245
38246   (set) 2>&1 |
38247     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38248     *${as_nl}ac_space=\ *)
38249       # `set' does not quote correctly, so add quotes (double-quote
38250       # substitution turns \\\\ into \\, and sed turns \\ into \).
38251       sed -n \
38252         "s/'/'\\\\''/g;
38253           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38254       ;; #(
38255     *)
38256       # `set' quotes correctly as required by POSIX, so do not add quotes.
38257       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38258       ;;
38259     esac |
38260     sort
38261 ) |
38262   sed '
38263      /^ac_cv_env_/b end
38264      t clear
38265      :clear
38266      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38267      t end
38268      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38269      :end' >>confcache
38270 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38271   if test -w "$cache_file"; then
38272     test "x$cache_file" != "x/dev/null" &&
38273       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38274 echo "$as_me: updating cache $cache_file" >&6;}
38275     cat confcache >$cache_file
38276   else
38277     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38278 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38279   fi
38280 fi
38281 rm -f confcache
38282
38283
38284 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38285
38286
38287     THREADS_LINK=
38288     THREADS_CFLAGS=
38289
38290     if test "$wxUSE_THREADS" = "yes" ; then
38291         if test "$USE_BEOS" = 1; then
38292             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38293 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38294             wxUSE_THREADS="no"
38295         fi
38296     fi
38297
38298     if test "$wxUSE_THREADS" = "yes" ; then
38299
38300
38301                                 THREAD_OPTS="-pthread"
38302         if test "x$SUNCXX" = xyes; then
38303             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38304         fi
38305
38306         case "${host}" in
38307           *-*-solaris2* | *-*-sunos4* )
38308                 if test "x$GCC" = "xyes"; then
38309                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38310                 fi
38311                 ;;
38312           *-*-freebsd*)
38313                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38314                 ;;
38315           *-*-darwin* | *-*-cygwin* )
38316                                                 THREAD_OPTS=""
38317                 ;;
38318           *-*-aix*)
38319                                 THREAD_OPTS="pthreads"
38320                 ;;
38321           *-hp-hpux* )
38322                 if test "x$GCC" = "xyes"; then
38323                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38324                         THREAD_OPTS=""
38325                 else
38326                                                             THREAD_OPTS="-mt"
38327                 fi
38328                 ;;
38329
38330           *-*-irix* )
38331                                                                 if test "x$GCC" = "xyes"; then
38332                     THREAD_OPTS=""
38333                 fi
38334                 ;;
38335
38336           *-*-*UnixWare*)
38337                                 if test "x$GCC" != "xyes"; then
38338                     THREAD_OPTS="-Ethread"
38339                 fi
38340                 ;;
38341         esac
38342
38343                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38344
38345                 THREADS_OK=no
38346         for flag in $THREAD_OPTS; do
38347             case $flag in
38348                 none)
38349                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38350 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38351                     ;;
38352
38353                 -*)
38354                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38355 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38356                     THREADS_CFLAGS="$flag"
38357                     ;;
38358
38359                 *)
38360                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38361 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38362                     THREADS_LINK="-l$flag"
38363                     ;;
38364               esac
38365
38366               save_LIBS="$LIBS"
38367               save_CFLAGS="$CFLAGS"
38368               LIBS="$THREADS_LINK $LIBS"
38369               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38370
38371               cat >conftest.$ac_ext <<_ACEOF
38372 /* confdefs.h.  */
38373 _ACEOF
38374 cat confdefs.h >>conftest.$ac_ext
38375 cat >>conftest.$ac_ext <<_ACEOF
38376 /* end confdefs.h.  */
38377 #include <pthread.h>
38378 int
38379 main ()
38380 {
38381 pthread_create(0,0,0,0);
38382   ;
38383   return 0;
38384 }
38385 _ACEOF
38386 rm -f conftest.$ac_objext conftest$ac_exeext
38387 if { (ac_try="$ac_link"
38388 case "(($ac_try" in
38389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38390   *) ac_try_echo=$ac_try;;
38391 esac
38392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38393   (eval "$ac_link") 2>conftest.er1
38394   ac_status=$?
38395   grep -v '^ *+' conftest.er1 >conftest.err
38396   rm -f conftest.er1
38397   cat conftest.err >&5
38398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399   (exit $ac_status); } && {
38400          test -z "$ac_c_werror_flag" ||
38401          test ! -s conftest.err
38402        } && test -s conftest$ac_exeext &&
38403        $as_test_x conftest$ac_exeext; then
38404   THREADS_OK=yes
38405 else
38406   echo "$as_me: failed program was:" >&5
38407 sed 's/^/| /' conftest.$ac_ext >&5
38408
38409
38410 fi
38411
38412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38413       conftest$ac_exeext conftest.$ac_ext
38414
38415               LIBS="$save_LIBS"
38416               CFLAGS="$save_CFLAGS"
38417
38418               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38419 echo "${ECHO_T}$THREADS_OK" >&6; }
38420               if test "x$THREADS_OK" = "xyes"; then
38421                       break;
38422               fi
38423
38424               THREADS_LINK=""
38425               THREADS_CFLAGS=""
38426       done
38427
38428       if test "x$THREADS_OK" != "xyes"; then
38429           wxUSE_THREADS=no
38430           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38431 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38432       else
38433                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38434           LIBS="$THREADS_LINK $LIBS"
38435
38436           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38437 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38438           flag=no
38439           case "${host}" in
38440             *-aix*)
38441                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38442                 flag="-D_THREAD_SAFE"
38443                 ;;
38444             *-freebsd*)
38445                 flag="-D_THREAD_SAFE"
38446                 ;;
38447             *-hp-hpux* )
38448                 flag="-D_REENTRANT"
38449                 if test "x$GCC" != "xyes"; then
38450                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38451                 fi
38452                 ;;
38453             *solaris* | alpha*-osf*)
38454                 flag="-D_REENTRANT"
38455                 ;;
38456           esac
38457           { echo "$as_me:$LINENO: result: ${flag}" >&5
38458 echo "${ECHO_T}${flag}" >&6; }
38459           if test "x$flag" != xno; then
38460               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38461           fi
38462
38463                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38464       fi
38465     fi
38466
38467         if test "$wxUSE_THREADS" = "yes" ; then
38468
38469 for ac_func in thr_setconcurrency
38470 do
38471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38475   echo $ECHO_N "(cached) $ECHO_C" >&6
38476 else
38477   cat >conftest.$ac_ext <<_ACEOF
38478 /* confdefs.h.  */
38479 _ACEOF
38480 cat confdefs.h >>conftest.$ac_ext
38481 cat >>conftest.$ac_ext <<_ACEOF
38482 /* end confdefs.h.  */
38483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38485 #define $ac_func innocuous_$ac_func
38486
38487 /* System header to define __stub macros and hopefully few prototypes,
38488     which can conflict with char $ac_func (); below.
38489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38490     <limits.h> exists even on freestanding compilers.  */
38491
38492 #ifdef __STDC__
38493 # include <limits.h>
38494 #else
38495 # include <assert.h>
38496 #endif
38497
38498 #undef $ac_func
38499
38500 /* Override any GCC internal prototype to avoid an error.
38501    Use char because int might match the return type of a GCC
38502    builtin and then its argument prototype would still apply.  */
38503 #ifdef __cplusplus
38504 extern "C"
38505 #endif
38506 char $ac_func ();
38507 /* The GNU C library defines this for functions which it implements
38508     to always fail with ENOSYS.  Some functions are actually named
38509     something starting with __ and the normal name is an alias.  */
38510 #if defined __stub_$ac_func || defined __stub___$ac_func
38511 choke me
38512 #endif
38513
38514 int
38515 main ()
38516 {
38517 return $ac_func ();
38518   ;
38519   return 0;
38520 }
38521 _ACEOF
38522 rm -f conftest.$ac_objext conftest$ac_exeext
38523 if { (ac_try="$ac_link"
38524 case "(($ac_try" in
38525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38526   *) ac_try_echo=$ac_try;;
38527 esac
38528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38529   (eval "$ac_link") 2>conftest.er1
38530   ac_status=$?
38531   grep -v '^ *+' conftest.er1 >conftest.err
38532   rm -f conftest.er1
38533   cat conftest.err >&5
38534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535   (exit $ac_status); } && {
38536          test -z "$ac_c_werror_flag" ||
38537          test ! -s conftest.err
38538        } && test -s conftest$ac_exeext &&
38539        $as_test_x conftest$ac_exeext; then
38540   eval "$as_ac_var=yes"
38541 else
38542   echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38544
38545         eval "$as_ac_var=no"
38546 fi
38547
38548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38549       conftest$ac_exeext conftest.$ac_ext
38550 fi
38551 ac_res=`eval echo '${'$as_ac_var'}'`
38552                { echo "$as_me:$LINENO: result: $ac_res" >&5
38553 echo "${ECHO_T}$ac_res" >&6; }
38554 if test `eval echo '${'$as_ac_var'}'` = yes; then
38555   cat >>confdefs.h <<_ACEOF
38556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38557 _ACEOF
38558
38559 fi
38560 done
38561
38562
38563                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38564 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
38565 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38566   echo $ECHO_N "(cached) $ECHO_C" >&6
38567 else
38568
38569                                 ac_ext=cpp
38570 ac_cpp='$CXXCPP $CPPFLAGS'
38571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38574
38575         cat >conftest.$ac_ext <<_ACEOF
38576 /* confdefs.h.  */
38577 _ACEOF
38578 cat confdefs.h >>conftest.$ac_ext
38579 cat >>conftest.$ac_ext <<_ACEOF
38580 /* end confdefs.h.  */
38581 #include <pthread.h>
38582                void ThreadCleanupFunc(void *p);
38583
38584 int
38585 main ()
38586 {
38587
38588                 void *p;
38589                 pthread_cleanup_push(ThreadCleanupFunc, p);
38590                 pthread_cleanup_pop(0);
38591
38592   ;
38593   return 0;
38594 }
38595 _ACEOF
38596 rm -f conftest.$ac_objext
38597 if { (ac_try="$ac_compile"
38598 case "(($ac_try" in
38599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38600   *) ac_try_echo=$ac_try;;
38601 esac
38602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38603   (eval "$ac_compile") 2>conftest.er1
38604   ac_status=$?
38605   grep -v '^ *+' conftest.er1 >conftest.err
38606   rm -f conftest.er1
38607   cat conftest.err >&5
38608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609   (exit $ac_status); } && {
38610          test -z "$ac_cxx_werror_flag" ||
38611          test ! -s conftest.err
38612        } && test -s conftest.$ac_objext; then
38613
38614                wx_cv_func_pthread_cleanup=yes
38615
38616 else
38617   echo "$as_me: failed program was:" >&5
38618 sed 's/^/| /' conftest.$ac_ext >&5
38619
38620
38621                wx_cv_func_pthread_cleanup=no
38622
38623
38624 fi
38625
38626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38627         ac_ext=c
38628 ac_cpp='$CPP $CPPFLAGS'
38629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38632
38633
38634 fi
38635 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38636 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
38637       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38638         cat >>confdefs.h <<\_ACEOF
38639 #define wxHAVE_PTHREAD_CLEANUP 1
38640 _ACEOF
38641
38642       fi
38643
38644
38645 for ac_header in sched.h
38646 do
38647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38651   echo $ECHO_N "(cached) $ECHO_C" >&6
38652 else
38653   cat >conftest.$ac_ext <<_ACEOF
38654 /* confdefs.h.  */
38655 _ACEOF
38656 cat confdefs.h >>conftest.$ac_ext
38657 cat >>conftest.$ac_ext <<_ACEOF
38658 /* end confdefs.h.  */
38659 $ac_includes_default
38660
38661 #include <$ac_header>
38662 _ACEOF
38663 rm -f conftest.$ac_objext
38664 if { (ac_try="$ac_compile"
38665 case "(($ac_try" in
38666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38667   *) ac_try_echo=$ac_try;;
38668 esac
38669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38670   (eval "$ac_compile") 2>conftest.er1
38671   ac_status=$?
38672   grep -v '^ *+' conftest.er1 >conftest.err
38673   rm -f conftest.er1
38674   cat conftest.err >&5
38675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676   (exit $ac_status); } && {
38677          test -z "$ac_c_werror_flag" ||
38678          test ! -s conftest.err
38679        } && test -s conftest.$ac_objext; then
38680   eval "$as_ac_Header=yes"
38681 else
38682   echo "$as_me: failed program was:" >&5
38683 sed 's/^/| /' conftest.$ac_ext >&5
38684
38685         eval "$as_ac_Header=no"
38686 fi
38687
38688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38689 fi
38690 ac_res=`eval echo '${'$as_ac_Header'}'`
38691                { echo "$as_me:$LINENO: result: $ac_res" >&5
38692 echo "${ECHO_T}$ac_res" >&6; }
38693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38694   cat >>confdefs.h <<_ACEOF
38695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38696 _ACEOF
38697
38698 fi
38699
38700 done
38701
38702       if test "$ac_cv_header_sched_h" = "yes"; then
38703           { echo "$as_me:$LINENO: checking for sched_yield" >&5
38704 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
38705 if test "${ac_cv_func_sched_yield+set}" = set; then
38706   echo $ECHO_N "(cached) $ECHO_C" >&6
38707 else
38708   cat >conftest.$ac_ext <<_ACEOF
38709 /* confdefs.h.  */
38710 _ACEOF
38711 cat confdefs.h >>conftest.$ac_ext
38712 cat >>conftest.$ac_ext <<_ACEOF
38713 /* end confdefs.h.  */
38714 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38716 #define sched_yield innocuous_sched_yield
38717
38718 /* System header to define __stub macros and hopefully few prototypes,
38719     which can conflict with char sched_yield (); below.
38720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38721     <limits.h> exists even on freestanding compilers.  */
38722
38723 #ifdef __STDC__
38724 # include <limits.h>
38725 #else
38726 # include <assert.h>
38727 #endif
38728
38729 #undef sched_yield
38730
38731 /* Override any GCC internal prototype to avoid an error.
38732    Use char because int might match the return type of a GCC
38733    builtin and then its argument prototype would still apply.  */
38734 #ifdef __cplusplus
38735 extern "C"
38736 #endif
38737 char sched_yield ();
38738 /* The GNU C library defines this for functions which it implements
38739     to always fail with ENOSYS.  Some functions are actually named
38740     something starting with __ and the normal name is an alias.  */
38741 #if defined __stub_sched_yield || defined __stub___sched_yield
38742 choke me
38743 #endif
38744
38745 int
38746 main ()
38747 {
38748 return sched_yield ();
38749   ;
38750   return 0;
38751 }
38752 _ACEOF
38753 rm -f conftest.$ac_objext conftest$ac_exeext
38754 if { (ac_try="$ac_link"
38755 case "(($ac_try" in
38756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38757   *) ac_try_echo=$ac_try;;
38758 esac
38759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38760   (eval "$ac_link") 2>conftest.er1
38761   ac_status=$?
38762   grep -v '^ *+' conftest.er1 >conftest.err
38763   rm -f conftest.er1
38764   cat conftest.err >&5
38765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766   (exit $ac_status); } && {
38767          test -z "$ac_c_werror_flag" ||
38768          test ! -s conftest.err
38769        } && test -s conftest$ac_exeext &&
38770        $as_test_x conftest$ac_exeext; then
38771   ac_cv_func_sched_yield=yes
38772 else
38773   echo "$as_me: failed program was:" >&5
38774 sed 's/^/| /' conftest.$ac_ext >&5
38775
38776         ac_cv_func_sched_yield=no
38777 fi
38778
38779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38780       conftest$ac_exeext conftest.$ac_ext
38781 fi
38782 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38783 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
38784 if test $ac_cv_func_sched_yield = yes; then
38785   cat >>confdefs.h <<\_ACEOF
38786 #define HAVE_SCHED_YIELD 1
38787 _ACEOF
38788
38789 else
38790
38791                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38792 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
38793 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38794   echo $ECHO_N "(cached) $ECHO_C" >&6
38795 else
38796   ac_check_lib_save_LIBS=$LIBS
38797 LIBS="-lposix4  $LIBS"
38798 cat >conftest.$ac_ext <<_ACEOF
38799 /* confdefs.h.  */
38800 _ACEOF
38801 cat confdefs.h >>conftest.$ac_ext
38802 cat >>conftest.$ac_ext <<_ACEOF
38803 /* end confdefs.h.  */
38804
38805 /* Override any GCC internal prototype to avoid an error.
38806    Use char because int might match the return type of a GCC
38807    builtin and then its argument prototype would still apply.  */
38808 #ifdef __cplusplus
38809 extern "C"
38810 #endif
38811 char sched_yield ();
38812 int
38813 main ()
38814 {
38815 return sched_yield ();
38816   ;
38817   return 0;
38818 }
38819 _ACEOF
38820 rm -f conftest.$ac_objext conftest$ac_exeext
38821 if { (ac_try="$ac_link"
38822 case "(($ac_try" in
38823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38824   *) ac_try_echo=$ac_try;;
38825 esac
38826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38827   (eval "$ac_link") 2>conftest.er1
38828   ac_status=$?
38829   grep -v '^ *+' conftest.er1 >conftest.err
38830   rm -f conftest.er1
38831   cat conftest.err >&5
38832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833   (exit $ac_status); } && {
38834          test -z "$ac_c_werror_flag" ||
38835          test ! -s conftest.err
38836        } && test -s conftest$ac_exeext &&
38837        $as_test_x conftest$ac_exeext; then
38838   ac_cv_lib_posix4_sched_yield=yes
38839 else
38840   echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38842
38843         ac_cv_lib_posix4_sched_yield=no
38844 fi
38845
38846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38847       conftest$ac_exeext conftest.$ac_ext
38848 LIBS=$ac_check_lib_save_LIBS
38849 fi
38850 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38851 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
38852 if test $ac_cv_lib_posix4_sched_yield = yes; then
38853   cat >>confdefs.h <<\_ACEOF
38854 #define HAVE_SCHED_YIELD 1
38855 _ACEOF
38856  POSIX4_LINK=" -lposix4"
38857 else
38858   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38859 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38860
38861 fi
38862
38863
38864
38865 fi
38866
38867       fi
38868
38869                                           HAVE_PRIOR_FUNCS=0
38870       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38871 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
38872 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38873   echo $ECHO_N "(cached) $ECHO_C" >&6
38874 else
38875   cat >conftest.$ac_ext <<_ACEOF
38876 /* confdefs.h.  */
38877 _ACEOF
38878 cat confdefs.h >>conftest.$ac_ext
38879 cat >>conftest.$ac_ext <<_ACEOF
38880 /* end confdefs.h.  */
38881 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38883 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38884
38885 /* System header to define __stub macros and hopefully few prototypes,
38886     which can conflict with char pthread_attr_getschedpolicy (); below.
38887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38888     <limits.h> exists even on freestanding compilers.  */
38889
38890 #ifdef __STDC__
38891 # include <limits.h>
38892 #else
38893 # include <assert.h>
38894 #endif
38895
38896 #undef pthread_attr_getschedpolicy
38897
38898 /* Override any GCC internal prototype to avoid an error.
38899    Use char because int might match the return type of a GCC
38900    builtin and then its argument prototype would still apply.  */
38901 #ifdef __cplusplus
38902 extern "C"
38903 #endif
38904 char pthread_attr_getschedpolicy ();
38905 /* The GNU C library defines this for functions which it implements
38906     to always fail with ENOSYS.  Some functions are actually named
38907     something starting with __ and the normal name is an alias.  */
38908 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
38909 choke me
38910 #endif
38911
38912 int
38913 main ()
38914 {
38915 return pthread_attr_getschedpolicy ();
38916   ;
38917   return 0;
38918 }
38919 _ACEOF
38920 rm -f conftest.$ac_objext conftest$ac_exeext
38921 if { (ac_try="$ac_link"
38922 case "(($ac_try" in
38923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38924   *) ac_try_echo=$ac_try;;
38925 esac
38926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38927   (eval "$ac_link") 2>conftest.er1
38928   ac_status=$?
38929   grep -v '^ *+' conftest.er1 >conftest.err
38930   rm -f conftest.er1
38931   cat conftest.err >&5
38932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933   (exit $ac_status); } && {
38934          test -z "$ac_c_werror_flag" ||
38935          test ! -s conftest.err
38936        } && test -s conftest$ac_exeext &&
38937        $as_test_x conftest$ac_exeext; then
38938   ac_cv_func_pthread_attr_getschedpolicy=yes
38939 else
38940   echo "$as_me: failed program was:" >&5
38941 sed 's/^/| /' conftest.$ac_ext >&5
38942
38943         ac_cv_func_pthread_attr_getschedpolicy=no
38944 fi
38945
38946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38947       conftest$ac_exeext conftest.$ac_ext
38948 fi
38949 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38950 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
38951 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38952   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38953 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
38954 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38955   echo $ECHO_N "(cached) $ECHO_C" >&6
38956 else
38957   cat >conftest.$ac_ext <<_ACEOF
38958 /* confdefs.h.  */
38959 _ACEOF
38960 cat confdefs.h >>conftest.$ac_ext
38961 cat >>conftest.$ac_ext <<_ACEOF
38962 /* end confdefs.h.  */
38963 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38965 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38966
38967 /* System header to define __stub macros and hopefully few prototypes,
38968     which can conflict with char pthread_attr_setschedparam (); below.
38969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38970     <limits.h> exists even on freestanding compilers.  */
38971
38972 #ifdef __STDC__
38973 # include <limits.h>
38974 #else
38975 # include <assert.h>
38976 #endif
38977
38978 #undef pthread_attr_setschedparam
38979
38980 /* Override any GCC internal prototype to avoid an error.
38981    Use char because int might match the return type of a GCC
38982    builtin and then its argument prototype would still apply.  */
38983 #ifdef __cplusplus
38984 extern "C"
38985 #endif
38986 char pthread_attr_setschedparam ();
38987 /* The GNU C library defines this for functions which it implements
38988     to always fail with ENOSYS.  Some functions are actually named
38989     something starting with __ and the normal name is an alias.  */
38990 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
38991 choke me
38992 #endif
38993
38994 int
38995 main ()
38996 {
38997 return pthread_attr_setschedparam ();
38998   ;
38999   return 0;
39000 }
39001 _ACEOF
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006   *) ac_try_echo=$ac_try;;
39007 esac
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009   (eval "$ac_link") 2>conftest.er1
39010   ac_status=$?
39011   grep -v '^ *+' conftest.er1 >conftest.err
39012   rm -f conftest.er1
39013   cat conftest.err >&5
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); } && {
39016          test -z "$ac_c_werror_flag" ||
39017          test ! -s conftest.err
39018        } && test -s conftest$ac_exeext &&
39019        $as_test_x conftest$ac_exeext; then
39020   ac_cv_func_pthread_attr_setschedparam=yes
39021 else
39022   echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39024
39025         ac_cv_func_pthread_attr_setschedparam=no
39026 fi
39027
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029       conftest$ac_exeext conftest.$ac_ext
39030 fi
39031 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39032 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39033 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39034   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39035 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39036 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39037   echo $ECHO_N "(cached) $ECHO_C" >&6
39038 else
39039   cat >conftest.$ac_ext <<_ACEOF
39040 /* confdefs.h.  */
39041 _ACEOF
39042 cat confdefs.h >>conftest.$ac_ext
39043 cat >>conftest.$ac_ext <<_ACEOF
39044 /* end confdefs.h.  */
39045 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39047 #define sched_get_priority_max innocuous_sched_get_priority_max
39048
39049 /* System header to define __stub macros and hopefully few prototypes,
39050     which can conflict with char sched_get_priority_max (); below.
39051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39052     <limits.h> exists even on freestanding compilers.  */
39053
39054 #ifdef __STDC__
39055 # include <limits.h>
39056 #else
39057 # include <assert.h>
39058 #endif
39059
39060 #undef sched_get_priority_max
39061
39062 /* Override any GCC internal prototype to avoid an error.
39063    Use char because int might match the return type of a GCC
39064    builtin and then its argument prototype would still apply.  */
39065 #ifdef __cplusplus
39066 extern "C"
39067 #endif
39068 char sched_get_priority_max ();
39069 /* The GNU C library defines this for functions which it implements
39070     to always fail with ENOSYS.  Some functions are actually named
39071     something starting with __ and the normal name is an alias.  */
39072 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39073 choke me
39074 #endif
39075
39076 int
39077 main ()
39078 {
39079 return sched_get_priority_max ();
39080   ;
39081   return 0;
39082 }
39083 _ACEOF
39084 rm -f conftest.$ac_objext conftest$ac_exeext
39085 if { (ac_try="$ac_link"
39086 case "(($ac_try" in
39087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39088   *) ac_try_echo=$ac_try;;
39089 esac
39090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39091   (eval "$ac_link") 2>conftest.er1
39092   ac_status=$?
39093   grep -v '^ *+' conftest.er1 >conftest.err
39094   rm -f conftest.er1
39095   cat conftest.err >&5
39096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097   (exit $ac_status); } && {
39098          test -z "$ac_c_werror_flag" ||
39099          test ! -s conftest.err
39100        } && test -s conftest$ac_exeext &&
39101        $as_test_x conftest$ac_exeext; then
39102   ac_cv_func_sched_get_priority_max=yes
39103 else
39104   echo "$as_me: failed program was:" >&5
39105 sed 's/^/| /' conftest.$ac_ext >&5
39106
39107         ac_cv_func_sched_get_priority_max=no
39108 fi
39109
39110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39111       conftest$ac_exeext conftest.$ac_ext
39112 fi
39113 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39114 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39115 if test $ac_cv_func_sched_get_priority_max = yes; then
39116   HAVE_PRIOR_FUNCS=1
39117 else
39118   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39119 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39120 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39121   echo $ECHO_N "(cached) $ECHO_C" >&6
39122 else
39123   ac_check_lib_save_LIBS=$LIBS
39124 LIBS="-lposix4  $LIBS"
39125 cat >conftest.$ac_ext <<_ACEOF
39126 /* confdefs.h.  */
39127 _ACEOF
39128 cat confdefs.h >>conftest.$ac_ext
39129 cat >>conftest.$ac_ext <<_ACEOF
39130 /* end confdefs.h.  */
39131
39132 /* Override any GCC internal prototype to avoid an error.
39133    Use char because int might match the return type of a GCC
39134    builtin and then its argument prototype would still apply.  */
39135 #ifdef __cplusplus
39136 extern "C"
39137 #endif
39138 char sched_get_priority_max ();
39139 int
39140 main ()
39141 {
39142 return sched_get_priority_max ();
39143   ;
39144   return 0;
39145 }
39146 _ACEOF
39147 rm -f conftest.$ac_objext conftest$ac_exeext
39148 if { (ac_try="$ac_link"
39149 case "(($ac_try" in
39150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39151   *) ac_try_echo=$ac_try;;
39152 esac
39153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39154   (eval "$ac_link") 2>conftest.er1
39155   ac_status=$?
39156   grep -v '^ *+' conftest.er1 >conftest.err
39157   rm -f conftest.er1
39158   cat conftest.err >&5
39159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39160   (exit $ac_status); } && {
39161          test -z "$ac_c_werror_flag" ||
39162          test ! -s conftest.err
39163        } && test -s conftest$ac_exeext &&
39164        $as_test_x conftest$ac_exeext; then
39165   ac_cv_lib_posix4_sched_get_priority_max=yes
39166 else
39167   echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39169
39170         ac_cv_lib_posix4_sched_get_priority_max=no
39171 fi
39172
39173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39174       conftest$ac_exeext conftest.$ac_ext
39175 LIBS=$ac_check_lib_save_LIBS
39176 fi
39177 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39178 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39179 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39180
39181                                 HAVE_PRIOR_FUNCS=1
39182                                 POSIX4_LINK=" -lposix4"
39183
39184 fi
39185
39186
39187 fi
39188
39189
39190 fi
39191
39192
39193 fi
39194
39195
39196       if test "$HAVE_PRIOR_FUNCS" = 1; then
39197         cat >>confdefs.h <<\_ACEOF
39198 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39199 _ACEOF
39200
39201       else
39202         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39203 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39204       fi
39205
39206       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39207 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39208 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39209   echo $ECHO_N "(cached) $ECHO_C" >&6
39210 else
39211   cat >conftest.$ac_ext <<_ACEOF
39212 /* confdefs.h.  */
39213 _ACEOF
39214 cat confdefs.h >>conftest.$ac_ext
39215 cat >>conftest.$ac_ext <<_ACEOF
39216 /* end confdefs.h.  */
39217 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39219 #define pthread_cancel innocuous_pthread_cancel
39220
39221 /* System header to define __stub macros and hopefully few prototypes,
39222     which can conflict with char pthread_cancel (); below.
39223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39224     <limits.h> exists even on freestanding compilers.  */
39225
39226 #ifdef __STDC__
39227 # include <limits.h>
39228 #else
39229 # include <assert.h>
39230 #endif
39231
39232 #undef pthread_cancel
39233
39234 /* Override any GCC internal prototype to avoid an error.
39235    Use char because int might match the return type of a GCC
39236    builtin and then its argument prototype would still apply.  */
39237 #ifdef __cplusplus
39238 extern "C"
39239 #endif
39240 char pthread_cancel ();
39241 /* The GNU C library defines this for functions which it implements
39242     to always fail with ENOSYS.  Some functions are actually named
39243     something starting with __ and the normal name is an alias.  */
39244 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39245 choke me
39246 #endif
39247
39248 int
39249 main ()
39250 {
39251 return pthread_cancel ();
39252   ;
39253   return 0;
39254 }
39255 _ACEOF
39256 rm -f conftest.$ac_objext conftest$ac_exeext
39257 if { (ac_try="$ac_link"
39258 case "(($ac_try" in
39259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39260   *) ac_try_echo=$ac_try;;
39261 esac
39262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39263   (eval "$ac_link") 2>conftest.er1
39264   ac_status=$?
39265   grep -v '^ *+' conftest.er1 >conftest.err
39266   rm -f conftest.er1
39267   cat conftest.err >&5
39268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269   (exit $ac_status); } && {
39270          test -z "$ac_c_werror_flag" ||
39271          test ! -s conftest.err
39272        } && test -s conftest$ac_exeext &&
39273        $as_test_x conftest$ac_exeext; then
39274   ac_cv_func_pthread_cancel=yes
39275 else
39276   echo "$as_me: failed program was:" >&5
39277 sed 's/^/| /' conftest.$ac_ext >&5
39278
39279         ac_cv_func_pthread_cancel=no
39280 fi
39281
39282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39283       conftest$ac_exeext conftest.$ac_ext
39284 fi
39285 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39286 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39287 if test $ac_cv_func_pthread_cancel = yes; then
39288   cat >>confdefs.h <<\_ACEOF
39289 #define HAVE_PTHREAD_CANCEL 1
39290 _ACEOF
39291
39292 else
39293   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39294 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39295 fi
39296
39297
39298       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39299 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39300 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39301   echo $ECHO_N "(cached) $ECHO_C" >&6
39302 else
39303   cat >conftest.$ac_ext <<_ACEOF
39304 /* confdefs.h.  */
39305 _ACEOF
39306 cat confdefs.h >>conftest.$ac_ext
39307 cat >>conftest.$ac_ext <<_ACEOF
39308 /* end confdefs.h.  */
39309 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39311 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39312
39313 /* System header to define __stub macros and hopefully few prototypes,
39314     which can conflict with char pthread_mutex_timedlock (); below.
39315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39316     <limits.h> exists even on freestanding compilers.  */
39317
39318 #ifdef __STDC__
39319 # include <limits.h>
39320 #else
39321 # include <assert.h>
39322 #endif
39323
39324 #undef pthread_mutex_timedlock
39325
39326 /* Override any GCC internal prototype to avoid an error.
39327    Use char because int might match the return type of a GCC
39328    builtin and then its argument prototype would still apply.  */
39329 #ifdef __cplusplus
39330 extern "C"
39331 #endif
39332 char pthread_mutex_timedlock ();
39333 /* The GNU C library defines this for functions which it implements
39334     to always fail with ENOSYS.  Some functions are actually named
39335     something starting with __ and the normal name is an alias.  */
39336 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39337 choke me
39338 #endif
39339
39340 int
39341 main ()
39342 {
39343 return pthread_mutex_timedlock ();
39344   ;
39345   return 0;
39346 }
39347 _ACEOF
39348 rm -f conftest.$ac_objext conftest$ac_exeext
39349 if { (ac_try="$ac_link"
39350 case "(($ac_try" in
39351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39352   *) ac_try_echo=$ac_try;;
39353 esac
39354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39355   (eval "$ac_link") 2>conftest.er1
39356   ac_status=$?
39357   grep -v '^ *+' conftest.er1 >conftest.err
39358   rm -f conftest.er1
39359   cat conftest.err >&5
39360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361   (exit $ac_status); } && {
39362          test -z "$ac_c_werror_flag" ||
39363          test ! -s conftest.err
39364        } && test -s conftest$ac_exeext &&
39365        $as_test_x conftest$ac_exeext; then
39366   ac_cv_func_pthread_mutex_timedlock=yes
39367 else
39368   echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371         ac_cv_func_pthread_mutex_timedlock=no
39372 fi
39373
39374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39375       conftest$ac_exeext conftest.$ac_ext
39376 fi
39377 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39378 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39379 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39380   cat >>confdefs.h <<\_ACEOF
39381 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39382 _ACEOF
39383
39384 else
39385   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39386 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39387 fi
39388
39389
39390       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39391 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39392 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39393   echo $ECHO_N "(cached) $ECHO_C" >&6
39394 else
39395   cat >conftest.$ac_ext <<_ACEOF
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39403 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39404
39405 /* System header to define __stub macros and hopefully few prototypes,
39406     which can conflict with char pthread_attr_setstacksize (); below.
39407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39408     <limits.h> exists even on freestanding compilers.  */
39409
39410 #ifdef __STDC__
39411 # include <limits.h>
39412 #else
39413 # include <assert.h>
39414 #endif
39415
39416 #undef pthread_attr_setstacksize
39417
39418 /* Override any GCC internal prototype to avoid an error.
39419    Use char because int might match the return type of a GCC
39420    builtin and then its argument prototype would still apply.  */
39421 #ifdef __cplusplus
39422 extern "C"
39423 #endif
39424 char pthread_attr_setstacksize ();
39425 /* The GNU C library defines this for functions which it implements
39426     to always fail with ENOSYS.  Some functions are actually named
39427     something starting with __ and the normal name is an alias.  */
39428 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39429 choke me
39430 #endif
39431
39432 int
39433 main ()
39434 {
39435 return pthread_attr_setstacksize ();
39436   ;
39437   return 0;
39438 }
39439 _ACEOF
39440 rm -f conftest.$ac_objext conftest$ac_exeext
39441 if { (ac_try="$ac_link"
39442 case "(($ac_try" in
39443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39444   *) ac_try_echo=$ac_try;;
39445 esac
39446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39447   (eval "$ac_link") 2>conftest.er1
39448   ac_status=$?
39449   grep -v '^ *+' conftest.er1 >conftest.err
39450   rm -f conftest.er1
39451   cat conftest.err >&5
39452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); } && {
39454          test -z "$ac_c_werror_flag" ||
39455          test ! -s conftest.err
39456        } && test -s conftest$ac_exeext &&
39457        $as_test_x conftest$ac_exeext; then
39458   ac_cv_func_pthread_attr_setstacksize=yes
39459 else
39460   echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39462
39463         ac_cv_func_pthread_attr_setstacksize=no
39464 fi
39465
39466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39467       conftest$ac_exeext conftest.$ac_ext
39468 fi
39469 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39470 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39471 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39472   cat >>confdefs.h <<\_ACEOF
39473 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39474 _ACEOF
39475
39476 fi
39477
39478
39479
39480       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39481 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39482 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39483   echo $ECHO_N "(cached) $ECHO_C" >&6
39484 else
39485
39486         cat >conftest.$ac_ext <<_ACEOF
39487 /* confdefs.h.  */
39488 _ACEOF
39489 cat confdefs.h >>conftest.$ac_ext
39490 cat >>conftest.$ac_ext <<_ACEOF
39491 /* end confdefs.h.  */
39492 #include <pthread.h>
39493 int
39494 main ()
39495 {
39496
39497                pthread_mutexattr_t attr;
39498                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39499
39500   ;
39501   return 0;
39502 }
39503 _ACEOF
39504 rm -f conftest.$ac_objext
39505 if { (ac_try="$ac_compile"
39506 case "(($ac_try" in
39507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508   *) ac_try_echo=$ac_try;;
39509 esac
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511   (eval "$ac_compile") 2>conftest.er1
39512   ac_status=$?
39513   grep -v '^ *+' conftest.er1 >conftest.err
39514   rm -f conftest.er1
39515   cat conftest.err >&5
39516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517   (exit $ac_status); } && {
39518          test -z "$ac_c_werror_flag" ||
39519          test ! -s conftest.err
39520        } && test -s conftest.$ac_objext; then
39521   wx_cv_type_pthread_mutexattr_t=yes
39522 else
39523   echo "$as_me: failed program was:" >&5
39524 sed 's/^/| /' conftest.$ac_ext >&5
39525
39526         wx_cv_type_pthread_mutexattr_t=no
39527
39528 fi
39529
39530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39531
39532 fi
39533 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39534 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
39535
39536       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39537         cat >>confdefs.h <<\_ACEOF
39538 #define HAVE_PTHREAD_MUTEXATTR_T 1
39539 _ACEOF
39540
39541
39542                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39543 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
39544 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547
39548                        cat >conftest.$ac_ext <<_ACEOF
39549 /* confdefs.h.  */
39550 _ACEOF
39551 cat confdefs.h >>conftest.$ac_ext
39552 cat >>conftest.$ac_ext <<_ACEOF
39553 /* end confdefs.h.  */
39554 #include <pthread.h>
39555 int
39556 main ()
39557 {
39558
39559                                pthread_mutexattr_t attr;
39560                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39561
39562   ;
39563   return 0;
39564 }
39565 _ACEOF
39566 rm -f conftest.$ac_objext
39567 if { (ac_try="$ac_compile"
39568 case "(($ac_try" in
39569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39570   *) ac_try_echo=$ac_try;;
39571 esac
39572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39573   (eval "$ac_compile") 2>conftest.er1
39574   ac_status=$?
39575   grep -v '^ *+' conftest.er1 >conftest.err
39576   rm -f conftest.er1
39577   cat conftest.err >&5
39578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579   (exit $ac_status); } && {
39580          test -z "$ac_c_werror_flag" ||
39581          test ! -s conftest.err
39582        } && test -s conftest.$ac_objext; then
39583   wx_cv_func_pthread_mutexattr_settype_decl=yes
39584 else
39585   echo "$as_me: failed program was:" >&5
39586 sed 's/^/| /' conftest.$ac_ext >&5
39587
39588         wx_cv_func_pthread_mutexattr_settype_decl=no
39589
39590 fi
39591
39592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39593
39594 fi
39595 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39596 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
39597         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39598             cat >>confdefs.h <<\_ACEOF
39599 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39600 _ACEOF
39601
39602         fi
39603       else
39604                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39605 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
39606 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39607   echo $ECHO_N "(cached) $ECHO_C" >&6
39608 else
39609
39610             cat >conftest.$ac_ext <<_ACEOF
39611 /* confdefs.h.  */
39612 _ACEOF
39613 cat confdefs.h >>conftest.$ac_ext
39614 cat >>conftest.$ac_ext <<_ACEOF
39615 /* end confdefs.h.  */
39616 #include <pthread.h>
39617 int
39618 main ()
39619 {
39620
39621                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39622
39623   ;
39624   return 0;
39625 }
39626 _ACEOF
39627 rm -f conftest.$ac_objext
39628 if { (ac_try="$ac_compile"
39629 case "(($ac_try" in
39630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39631   *) ac_try_echo=$ac_try;;
39632 esac
39633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39634   (eval "$ac_compile") 2>conftest.er1
39635   ac_status=$?
39636   grep -v '^ *+' conftest.er1 >conftest.err
39637   rm -f conftest.er1
39638   cat conftest.err >&5
39639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640   (exit $ac_status); } && {
39641          test -z "$ac_c_werror_flag" ||
39642          test ! -s conftest.err
39643        } && test -s conftest.$ac_objext; then
39644
39645                     wx_cv_type_pthread_rec_mutex_init=yes
39646
39647 else
39648   echo "$as_me: failed program was:" >&5
39649 sed 's/^/| /' conftest.$ac_ext >&5
39650
39651
39652                     wx_cv_type_pthread_rec_mutex_init=no
39653
39654
39655 fi
39656
39657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39658
39659 fi
39660 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39661 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
39662         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39663           cat >>confdefs.h <<\_ACEOF
39664 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39665 _ACEOF
39666
39667         else
39668                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39669 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39670         fi
39671       fi
39672     fi
39673
39674 else
39675     if test "$wxUSE_THREADS" = "yes" ; then
39676       case "${host}" in
39677         *-*-mingw32* )
39678                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39679 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
39680 if test "${wx_cv_cflags_mthread+set}" = set; then
39681   echo $ECHO_N "(cached) $ECHO_C" >&6
39682 else
39683
39684                     CFLAGS_OLD="$CFLAGS"
39685                     CFLAGS="-mthreads $CFLAGS"
39686                     cat >conftest.$ac_ext <<_ACEOF
39687 /* confdefs.h.  */
39688 _ACEOF
39689 cat confdefs.h >>conftest.$ac_ext
39690 cat >>conftest.$ac_ext <<_ACEOF
39691 /* end confdefs.h.  */
39692
39693 int
39694 main ()
39695 {
39696
39697   ;
39698   return 0;
39699 }
39700 _ACEOF
39701 rm -f conftest.$ac_objext
39702 if { (ac_try="$ac_compile"
39703 case "(($ac_try" in
39704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39705   *) ac_try_echo=$ac_try;;
39706 esac
39707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39708   (eval "$ac_compile") 2>conftest.er1
39709   ac_status=$?
39710   grep -v '^ *+' conftest.er1 >conftest.err
39711   rm -f conftest.er1
39712   cat conftest.err >&5
39713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714   (exit $ac_status); } && {
39715          test -z "$ac_c_werror_flag" ||
39716          test ! -s conftest.err
39717        } && test -s conftest.$ac_objext; then
39718   wx_cv_cflags_mthread=yes
39719 else
39720   echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39722
39723         wx_cv_cflags_mthread=no
39724
39725 fi
39726
39727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39728
39729
39730 fi
39731 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39732 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
39733
39734             if test "$wx_cv_cflags_mthread" = "yes"; then
39735                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
39736                 LDFLAGS="$LDFLAGS -mthreads"
39737             else
39738                                 CFLAGS="$CFLAGS_OLD"
39739             fi
39740         ;;
39741         *-pc-os2*emx )
39742             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39743             LDFLAGS="$LDFLAGS -Zmt"
39744         ;;
39745       esac
39746     fi
39747 fi
39748
39749 { echo "$as_me:$LINENO: checking for localtime_r" >&5
39750 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
39751 if test "${ac_cv_func_localtime_r+set}" = set; then
39752   echo $ECHO_N "(cached) $ECHO_C" >&6
39753 else
39754   cat >conftest.$ac_ext <<_ACEOF
39755 /* confdefs.h.  */
39756 _ACEOF
39757 cat confdefs.h >>conftest.$ac_ext
39758 cat >>conftest.$ac_ext <<_ACEOF
39759 /* end confdefs.h.  */
39760 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39762 #define localtime_r innocuous_localtime_r
39763
39764 /* System header to define __stub macros and hopefully few prototypes,
39765     which can conflict with char localtime_r (); below.
39766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39767     <limits.h> exists even on freestanding compilers.  */
39768
39769 #ifdef __STDC__
39770 # include <limits.h>
39771 #else
39772 # include <assert.h>
39773 #endif
39774
39775 #undef localtime_r
39776
39777 /* Override any GCC internal prototype to avoid an error.
39778    Use char because int might match the return type of a GCC
39779    builtin and then its argument prototype would still apply.  */
39780 #ifdef __cplusplus
39781 extern "C"
39782 #endif
39783 char localtime_r ();
39784 /* The GNU C library defines this for functions which it implements
39785     to always fail with ENOSYS.  Some functions are actually named
39786     something starting with __ and the normal name is an alias.  */
39787 #if defined __stub_localtime_r || defined __stub___localtime_r
39788 choke me
39789 #endif
39790
39791 int
39792 main ()
39793 {
39794 return localtime_r ();
39795   ;
39796   return 0;
39797 }
39798 _ACEOF
39799 rm -f conftest.$ac_objext conftest$ac_exeext
39800 if { (ac_try="$ac_link"
39801 case "(($ac_try" in
39802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803   *) ac_try_echo=$ac_try;;
39804 esac
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806   (eval "$ac_link") 2>conftest.er1
39807   ac_status=$?
39808   grep -v '^ *+' conftest.er1 >conftest.err
39809   rm -f conftest.er1
39810   cat conftest.err >&5
39811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812   (exit $ac_status); } && {
39813          test -z "$ac_c_werror_flag" ||
39814          test ! -s conftest.err
39815        } && test -s conftest$ac_exeext &&
39816        $as_test_x conftest$ac_exeext; then
39817   ac_cv_func_localtime_r=yes
39818 else
39819   echo "$as_me: failed program was:" >&5
39820 sed 's/^/| /' conftest.$ac_ext >&5
39821
39822         ac_cv_func_localtime_r=no
39823 fi
39824
39825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39826       conftest$ac_exeext conftest.$ac_ext
39827 fi
39828 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39829 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
39830 if test $ac_cv_func_localtime_r = yes; then
39831    cat >>confdefs.h <<\_ACEOF
39832 #define HAVE_LOCALTIME_R 1
39833 _ACEOF
39834
39835 fi
39836
39837 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
39838 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
39839 if test "${ac_cv_func_gmtime_r+set}" = set; then
39840   echo $ECHO_N "(cached) $ECHO_C" >&6
39841 else
39842   cat >conftest.$ac_ext <<_ACEOF
39843 /* confdefs.h.  */
39844 _ACEOF
39845 cat confdefs.h >>conftest.$ac_ext
39846 cat >>conftest.$ac_ext <<_ACEOF
39847 /* end confdefs.h.  */
39848 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39850 #define gmtime_r innocuous_gmtime_r
39851
39852 /* System header to define __stub macros and hopefully few prototypes,
39853     which can conflict with char gmtime_r (); below.
39854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39855     <limits.h> exists even on freestanding compilers.  */
39856
39857 #ifdef __STDC__
39858 # include <limits.h>
39859 #else
39860 # include <assert.h>
39861 #endif
39862
39863 #undef gmtime_r
39864
39865 /* Override any GCC internal prototype to avoid an error.
39866    Use char because int might match the return type of a GCC
39867    builtin and then its argument prototype would still apply.  */
39868 #ifdef __cplusplus
39869 extern "C"
39870 #endif
39871 char gmtime_r ();
39872 /* The GNU C library defines this for functions which it implements
39873     to always fail with ENOSYS.  Some functions are actually named
39874     something starting with __ and the normal name is an alias.  */
39875 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39876 choke me
39877 #endif
39878
39879 int
39880 main ()
39881 {
39882 return gmtime_r ();
39883   ;
39884   return 0;
39885 }
39886 _ACEOF
39887 rm -f conftest.$ac_objext conftest$ac_exeext
39888 if { (ac_try="$ac_link"
39889 case "(($ac_try" in
39890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39891   *) ac_try_echo=$ac_try;;
39892 esac
39893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39894   (eval "$ac_link") 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } && {
39901          test -z "$ac_c_werror_flag" ||
39902          test ! -s conftest.err
39903        } && test -s conftest$ac_exeext &&
39904        $as_test_x conftest$ac_exeext; then
39905   ac_cv_func_gmtime_r=yes
39906 else
39907   echo "$as_me: failed program was:" >&5
39908 sed 's/^/| /' conftest.$ac_ext >&5
39909
39910         ac_cv_func_gmtime_r=no
39911 fi
39912
39913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39914       conftest$ac_exeext conftest.$ac_ext
39915 fi
39916 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39917 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
39918 if test $ac_cv_func_gmtime_r = yes; then
39919    cat >>confdefs.h <<\_ACEOF
39920 #define HAVE_GMTIME_R 1
39921 _ACEOF
39922
39923 fi
39924
39925
39926
39927
39928     ac_ext=c
39929 ac_cpp='$CPP $CPPFLAGS'
39930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39933
39934     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39935 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
39936
39937     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39938   echo $ECHO_N "(cached) $ECHO_C" >&6
39939 else
39940
39941
39942 ################################################################
39943
39944 ac_cv_func_which_gethostbyname_r=unknown
39945
39946 #
39947 # ONE ARGUMENT (sanity check)
39948 #
39949
39950 # This should fail, as there is no variant of gethostbyname_r() that takes
39951 # a single argument. If it actually compiles, then we can assume that
39952 # netdb.h is not declaring the function, and the compiler is thereby
39953 # assuming an implicit prototype. In which case, we're out of luck.
39954 #
39955 cat >conftest.$ac_ext <<_ACEOF
39956 /* confdefs.h.  */
39957 _ACEOF
39958 cat confdefs.h >>conftest.$ac_ext
39959 cat >>conftest.$ac_ext <<_ACEOF
39960 /* end confdefs.h.  */
39961 #include <netdb.h>
39962 int
39963 main ()
39964 {
39965
39966             char *name = "www.gnu.org";
39967             (void)gethostbyname_r(name) /* ; */
39968
39969   ;
39970   return 0;
39971 }
39972 _ACEOF
39973 rm -f conftest.$ac_objext
39974 if { (ac_try="$ac_compile"
39975 case "(($ac_try" in
39976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39977   *) ac_try_echo=$ac_try;;
39978 esac
39979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39980   (eval "$ac_compile") 2>conftest.er1
39981   ac_status=$?
39982   grep -v '^ *+' conftest.er1 >conftest.err
39983   rm -f conftest.er1
39984   cat conftest.err >&5
39985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986   (exit $ac_status); } && {
39987          test -z "$ac_c_werror_flag" ||
39988          test ! -s conftest.err
39989        } && test -s conftest.$ac_objext; then
39990   ac_cv_func_which_gethostbyname_r=no
39991 else
39992   echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39994
39995
39996 fi
39997
39998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39999
40000 #
40001 # SIX ARGUMENTS
40002 # (e.g. Linux)
40003 #
40004
40005 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40006
40007 cat >conftest.$ac_ext <<_ACEOF
40008 /* confdefs.h.  */
40009 _ACEOF
40010 cat confdefs.h >>conftest.$ac_ext
40011 cat >>conftest.$ac_ext <<_ACEOF
40012 /* end confdefs.h.  */
40013 #include <netdb.h>
40014 int
40015 main ()
40016 {
40017
40018             char *name = "www.gnu.org";
40019             struct hostent ret, *retp;
40020             char buf[1024];
40021             int buflen = 1024;
40022             int my_h_errno;
40023             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40024
40025   ;
40026   return 0;
40027 }
40028 _ACEOF
40029 rm -f conftest.$ac_objext
40030 if { (ac_try="$ac_compile"
40031 case "(($ac_try" in
40032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033   *) ac_try_echo=$ac_try;;
40034 esac
40035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40036   (eval "$ac_compile") 2>conftest.er1
40037   ac_status=$?
40038   grep -v '^ *+' conftest.er1 >conftest.err
40039   rm -f conftest.er1
40040   cat conftest.err >&5
40041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042   (exit $ac_status); } && {
40043          test -z "$ac_c_werror_flag" ||
40044          test ! -s conftest.err
40045        } && test -s conftest.$ac_objext; then
40046   ac_cv_func_which_gethostbyname_r=six
40047 else
40048   echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40050
40051
40052 fi
40053
40054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40055
40056 fi
40057
40058 #
40059 # FIVE ARGUMENTS
40060 # (e.g. Solaris)
40061 #
40062
40063 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40064
40065 cat >conftest.$ac_ext <<_ACEOF
40066 /* confdefs.h.  */
40067 _ACEOF
40068 cat confdefs.h >>conftest.$ac_ext
40069 cat >>conftest.$ac_ext <<_ACEOF
40070 /* end confdefs.h.  */
40071 #include <netdb.h>
40072 int
40073 main ()
40074 {
40075
40076             char *name = "www.gnu.org";
40077             struct hostent ret;
40078             char buf[1024];
40079             int buflen = 1024;
40080             int my_h_errno;
40081             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40082
40083   ;
40084   return 0;
40085 }
40086 _ACEOF
40087 rm -f conftest.$ac_objext
40088 if { (ac_try="$ac_compile"
40089 case "(($ac_try" in
40090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40091   *) ac_try_echo=$ac_try;;
40092 esac
40093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40094   (eval "$ac_compile") 2>conftest.er1
40095   ac_status=$?
40096   grep -v '^ *+' conftest.er1 >conftest.err
40097   rm -f conftest.er1
40098   cat conftest.err >&5
40099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100   (exit $ac_status); } && {
40101          test -z "$ac_c_werror_flag" ||
40102          test ! -s conftest.err
40103        } && test -s conftest.$ac_objext; then
40104   ac_cv_func_which_gethostbyname_r=five
40105 else
40106   echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40108
40109
40110 fi
40111
40112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40113
40114 fi
40115
40116 #
40117 # THREE ARGUMENTS
40118 # (e.g. AIX, HP-UX, Tru64)
40119 #
40120
40121 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40122
40123 cat >conftest.$ac_ext <<_ACEOF
40124 /* confdefs.h.  */
40125 _ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h.  */
40129 #include <netdb.h>
40130 int
40131 main ()
40132 {
40133
40134             char *name = "www.gnu.org";
40135             struct hostent ret;
40136             struct hostent_data data;
40137             (void)gethostbyname_r(name, &ret, &data) /* ; */
40138
40139   ;
40140   return 0;
40141 }
40142 _ACEOF
40143 rm -f conftest.$ac_objext
40144 if { (ac_try="$ac_compile"
40145 case "(($ac_try" in
40146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40147   *) ac_try_echo=$ac_try;;
40148 esac
40149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40150   (eval "$ac_compile") 2>conftest.er1
40151   ac_status=$?
40152   grep -v '^ *+' conftest.er1 >conftest.err
40153   rm -f conftest.er1
40154   cat conftest.err >&5
40155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156   (exit $ac_status); } && {
40157          test -z "$ac_c_werror_flag" ||
40158          test ! -s conftest.err
40159        } && test -s conftest.$ac_objext; then
40160   ac_cv_func_which_gethostbyname_r=three
40161 else
40162   echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165
40166 fi
40167
40168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40169
40170 fi
40171
40172 ################################################################
40173
40174
40175 fi
40176
40177 case "$ac_cv_func_which_gethostbyname_r" in
40178     three)
40179     { echo "$as_me:$LINENO: result: three" >&5
40180 echo "${ECHO_T}three" >&6; }
40181     cat >>confdefs.h <<\_ACEOF
40182 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40183 _ACEOF
40184
40185     ;;
40186
40187     five)
40188     { echo "$as_me:$LINENO: result: five" >&5
40189 echo "${ECHO_T}five" >&6; }
40190     cat >>confdefs.h <<\_ACEOF
40191 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40192 _ACEOF
40193
40194     ;;
40195
40196     six)
40197     { echo "$as_me:$LINENO: result: six" >&5
40198 echo "${ECHO_T}six" >&6; }
40199     cat >>confdefs.h <<\_ACEOF
40200 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40201 _ACEOF
40202
40203     ;;
40204
40205     no)
40206     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40207 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40208     ;;
40209
40210     unknown)
40211     { echo "$as_me:$LINENO: result: can't tell" >&5
40212 echo "${ECHO_T}can't tell" >&6; }
40213     ;;
40214
40215     *)
40216     { { echo "$as_me:$LINENO: error: internal error" >&5
40217 echo "$as_me: error: internal error" >&2;}
40218    { (exit 1); exit 1; }; }
40219     ;;
40220 esac
40221
40222 ac_ext=c
40223 ac_cpp='$CPP $CPPFLAGS'
40224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40227
40228
40229
40230       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40231               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40232           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40233 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40234 if test "${ac_cv_func_gethostbyname+set}" = set; then
40235   echo $ECHO_N "(cached) $ECHO_C" >&6
40236 else
40237   cat >conftest.$ac_ext <<_ACEOF
40238 /* confdefs.h.  */
40239 _ACEOF
40240 cat confdefs.h >>conftest.$ac_ext
40241 cat >>conftest.$ac_ext <<_ACEOF
40242 /* end confdefs.h.  */
40243 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40245 #define gethostbyname innocuous_gethostbyname
40246
40247 /* System header to define __stub macros and hopefully few prototypes,
40248     which can conflict with char gethostbyname (); below.
40249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40250     <limits.h> exists even on freestanding compilers.  */
40251
40252 #ifdef __STDC__
40253 # include <limits.h>
40254 #else
40255 # include <assert.h>
40256 #endif
40257
40258 #undef gethostbyname
40259
40260 /* Override any GCC internal prototype to avoid an error.
40261    Use char because int might match the return type of a GCC
40262    builtin and then its argument prototype would still apply.  */
40263 #ifdef __cplusplus
40264 extern "C"
40265 #endif
40266 char gethostbyname ();
40267 /* The GNU C library defines this for functions which it implements
40268     to always fail with ENOSYS.  Some functions are actually named
40269     something starting with __ and the normal name is an alias.  */
40270 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40271 choke me
40272 #endif
40273
40274 int
40275 main ()
40276 {
40277 return gethostbyname ();
40278   ;
40279   return 0;
40280 }
40281 _ACEOF
40282 rm -f conftest.$ac_objext conftest$ac_exeext
40283 if { (ac_try="$ac_link"
40284 case "(($ac_try" in
40285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40286   *) ac_try_echo=$ac_try;;
40287 esac
40288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40289   (eval "$ac_link") 2>conftest.er1
40290   ac_status=$?
40291   grep -v '^ *+' conftest.er1 >conftest.err
40292   rm -f conftest.er1
40293   cat conftest.err >&5
40294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295   (exit $ac_status); } && {
40296          test -z "$ac_c_werror_flag" ||
40297          test ! -s conftest.err
40298        } && test -s conftest$ac_exeext &&
40299        $as_test_x conftest$ac_exeext; then
40300   ac_cv_func_gethostbyname=yes
40301 else
40302   echo "$as_me: failed program was:" >&5
40303 sed 's/^/| /' conftest.$ac_ext >&5
40304
40305         ac_cv_func_gethostbyname=no
40306 fi
40307
40308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40309       conftest$ac_exeext conftest.$ac_ext
40310 fi
40311 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40312 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40313 if test $ac_cv_func_gethostbyname = yes; then
40314    cat >>confdefs.h <<\_ACEOF
40315 #define HAVE_GETHOSTBYNAME 1
40316 _ACEOF
40317
40318 fi
40319
40320       fi
40321
40322 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40323 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40324 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40325   echo $ECHO_N "(cached) $ECHO_C" >&6
40326 else
40327
40328                 ac_ext=cpp
40329 ac_cpp='$CXXCPP $CPPFLAGS'
40330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40333
40334
40335         cat >conftest.$ac_ext <<_ACEOF
40336 /* confdefs.h.  */
40337 _ACEOF
40338 cat confdefs.h >>conftest.$ac_ext
40339 cat >>conftest.$ac_ext <<_ACEOF
40340 /* end confdefs.h.  */
40341 #include <netdb.h>
40342 int
40343 main ()
40344 {
40345
40346                 char *name;
40347                 char *proto;
40348                 struct servent *se, *res;
40349                 char buffer[2048];
40350                 int buflen = 2048;
40351                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40352
40353   ;
40354   return 0;
40355 }
40356 _ACEOF
40357 rm -f conftest.$ac_objext
40358 if { (ac_try="$ac_compile"
40359 case "(($ac_try" in
40360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40361   *) ac_try_echo=$ac_try;;
40362 esac
40363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40364   (eval "$ac_compile") 2>conftest.er1
40365   ac_status=$?
40366   grep -v '^ *+' conftest.er1 >conftest.err
40367   rm -f conftest.er1
40368   cat conftest.err >&5
40369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370   (exit $ac_status); } && {
40371          test -z "$ac_cxx_werror_flag" ||
40372          test ! -s conftest.err
40373        } && test -s conftest.$ac_objext; then
40374   ac_cv_func_which_getservbyname_r=six
40375 else
40376   echo "$as_me: failed program was:" >&5
40377 sed 's/^/| /' conftest.$ac_ext >&5
40378
40379
40380                 cat >conftest.$ac_ext <<_ACEOF
40381 /* confdefs.h.  */
40382 _ACEOF
40383 cat confdefs.h >>conftest.$ac_ext
40384 cat >>conftest.$ac_ext <<_ACEOF
40385 /* end confdefs.h.  */
40386 #include <netdb.h>
40387 int
40388 main ()
40389 {
40390
40391                         char *name;
40392                         char *proto;
40393                         struct servent *se;
40394                         char buffer[2048];
40395                         int buflen = 2048;
40396                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40397
40398   ;
40399   return 0;
40400 }
40401 _ACEOF
40402 rm -f conftest.$ac_objext
40403 if { (ac_try="$ac_compile"
40404 case "(($ac_try" in
40405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40406   *) ac_try_echo=$ac_try;;
40407 esac
40408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40409   (eval "$ac_compile") 2>conftest.er1
40410   ac_status=$?
40411   grep -v '^ *+' conftest.er1 >conftest.err
40412   rm -f conftest.er1
40413   cat conftest.err >&5
40414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415   (exit $ac_status); } && {
40416          test -z "$ac_cxx_werror_flag" ||
40417          test ! -s conftest.err
40418        } && test -s conftest.$ac_objext; then
40419   ac_cv_func_which_getservbyname_r=five
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424
40425                         cat >conftest.$ac_ext <<_ACEOF
40426 /* confdefs.h.  */
40427 _ACEOF
40428 cat confdefs.h >>conftest.$ac_ext
40429 cat >>conftest.$ac_ext <<_ACEOF
40430 /* end confdefs.h.  */
40431 #include <netdb.h>
40432 int
40433 main ()
40434 {
40435
40436                                 char *name;
40437                                 char *proto;
40438                                 struct servent *se;
40439                                 struct servent_data data;
40440                                 (void) getservbyname_r(name, proto, se, &data);
40441
40442   ;
40443   return 0;
40444 }
40445 _ACEOF
40446 rm -f conftest.$ac_objext
40447 if { (ac_try="$ac_compile"
40448 case "(($ac_try" in
40449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40450   *) ac_try_echo=$ac_try;;
40451 esac
40452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40453   (eval "$ac_compile") 2>conftest.er1
40454   ac_status=$?
40455   grep -v '^ *+' conftest.er1 >conftest.err
40456   rm -f conftest.er1
40457   cat conftest.err >&5
40458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40459   (exit $ac_status); } && {
40460          test -z "$ac_cxx_werror_flag" ||
40461          test ! -s conftest.err
40462        } && test -s conftest.$ac_objext; then
40463   ac_cv_func_which_getservbyname_r=four
40464 else
40465   echo "$as_me: failed program was:" >&5
40466 sed 's/^/| /' conftest.$ac_ext >&5
40467
40468         ac_cv_func_which_getservbyname_r=no
40469
40470 fi
40471
40472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40473
40474
40475 fi
40476
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40478
40479
40480 fi
40481
40482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40483         ac_ext=c
40484 ac_cpp='$CPP $CPPFLAGS'
40485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40488
40489
40490
40491 fi
40492 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40493 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40494
40495 if test $ac_cv_func_which_getservbyname_r = six; then
40496   cat >>confdefs.h <<\_ACEOF
40497 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40498 _ACEOF
40499
40500 elif test $ac_cv_func_which_getservbyname_r = five; then
40501   cat >>confdefs.h <<\_ACEOF
40502 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40503 _ACEOF
40504
40505 elif test $ac_cv_func_which_getservbyname_r = four; then
40506   cat >>confdefs.h <<\_ACEOF
40507 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40508 _ACEOF
40509
40510 fi
40511
40512
40513       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40514               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40515
40516 for ac_func in getservbyname
40517 do
40518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40522   echo $ECHO_N "(cached) $ECHO_C" >&6
40523 else
40524   cat >conftest.$ac_ext <<_ACEOF
40525 /* confdefs.h.  */
40526 _ACEOF
40527 cat confdefs.h >>conftest.$ac_ext
40528 cat >>conftest.$ac_ext <<_ACEOF
40529 /* end confdefs.h.  */
40530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40532 #define $ac_func innocuous_$ac_func
40533
40534 /* System header to define __stub macros and hopefully few prototypes,
40535     which can conflict with char $ac_func (); below.
40536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40537     <limits.h> exists even on freestanding compilers.  */
40538
40539 #ifdef __STDC__
40540 # include <limits.h>
40541 #else
40542 # include <assert.h>
40543 #endif
40544
40545 #undef $ac_func
40546
40547 /* Override any GCC internal prototype to avoid an error.
40548    Use char because int might match the return type of a GCC
40549    builtin and then its argument prototype would still apply.  */
40550 #ifdef __cplusplus
40551 extern "C"
40552 #endif
40553 char $ac_func ();
40554 /* The GNU C library defines this for functions which it implements
40555     to always fail with ENOSYS.  Some functions are actually named
40556     something starting with __ and the normal name is an alias.  */
40557 #if defined __stub_$ac_func || defined __stub___$ac_func
40558 choke me
40559 #endif
40560
40561 int
40562 main ()
40563 {
40564 return $ac_func ();
40565   ;
40566   return 0;
40567 }
40568 _ACEOF
40569 rm -f conftest.$ac_objext conftest$ac_exeext
40570 if { (ac_try="$ac_link"
40571 case "(($ac_try" in
40572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40573   *) ac_try_echo=$ac_try;;
40574 esac
40575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40576   (eval "$ac_link") 2>conftest.er1
40577   ac_status=$?
40578   grep -v '^ *+' conftest.er1 >conftest.err
40579   rm -f conftest.er1
40580   cat conftest.err >&5
40581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40582   (exit $ac_status); } && {
40583          test -z "$ac_c_werror_flag" ||
40584          test ! -s conftest.err
40585        } && test -s conftest$ac_exeext &&
40586        $as_test_x conftest$ac_exeext; then
40587   eval "$as_ac_var=yes"
40588 else
40589   echo "$as_me: failed program was:" >&5
40590 sed 's/^/| /' conftest.$ac_ext >&5
40591
40592         eval "$as_ac_var=no"
40593 fi
40594
40595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40596       conftest$ac_exeext conftest.$ac_ext
40597 fi
40598 ac_res=`eval echo '${'$as_ac_var'}'`
40599                { echo "$as_me:$LINENO: result: $ac_res" >&5
40600 echo "${ECHO_T}$ac_res" >&6; }
40601 if test `eval echo '${'$as_ac_var'}'` = yes; then
40602   cat >>confdefs.h <<_ACEOF
40603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40604 _ACEOF
40605   cat >>confdefs.h <<\_ACEOF
40606 #define HAVE_GETSERVBYNAME 1
40607 _ACEOF
40608
40609 fi
40610 done
40611
40612       fi
40613
40614 if test "$wxUSE_THREADS" = "yes"; then
40615   cat >>confdefs.h <<\_ACEOF
40616 #define wxUSE_THREADS 1
40617 _ACEOF
40618
40619
40620   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40621 else
40622       if test "$wx_cv_func_strtok_r" = "yes"; then
40623     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40624 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
40625     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40626         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40627         { echo "$as_me:$LINENO: result: yes" >&5
40628 echo "${ECHO_T}yes" >&6; }
40629     else
40630         { echo "$as_me:$LINENO: result: no" >&5
40631 echo "${ECHO_T}no" >&6; }
40632     fi
40633   fi
40634 fi
40635
40636 if test "$WXGTK2" = 1 ; then
40637   cat >>confdefs.h <<_ACEOF
40638 #define __WXGTK20__ $WXGTK2
40639 _ACEOF
40640
40641   WXGTK12=1
40642 fi
40643
40644 if test "$WXGTK12" = 1 ; then
40645   cat >>confdefs.h <<_ACEOF
40646 #define __WXGTK12__ $WXGTK12
40647 _ACEOF
40648
40649 fi
40650
40651 if test "$WXGTK127" = 1 ; then
40652   cat >>confdefs.h <<_ACEOF
40653 #define __WXGTK127__ $WXGTK127
40654 _ACEOF
40655
40656 fi
40657
40658 if test "$WXGPE" = 1 ; then
40659   cat >>confdefs.h <<_ACEOF
40660 #define __WXGPE__ $WXGPE
40661 _ACEOF
40662
40663 fi
40664
40665 DEBUG_CFLAGS=
40666 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40667     DEBUG_CFLAGS="-g"
40668     wxUSE_OPTIMISE=no
40669 fi
40670
40671 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40672     wxUSE_DEBUG_INFO=yes
40673     if test "$GCC" = yes; then
40674         DEBUG_CFLAGS="-ggdb"
40675     fi
40676 fi
40677
40678 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40679     cat >>confdefs.h <<\_ACEOF
40680 #define WXDEBUG 1
40681 _ACEOF
40682
40683     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40684 else
40685     if test "$wxUSE_GTK" = 1 ; then
40686         if test "x$wxGTK_VERSION" = "x1" ; then
40687             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40688         fi
40689     fi
40690 fi
40691
40692 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40693     cat >>confdefs.h <<\_ACEOF
40694 #define wxUSE_MEMORY_TRACING 1
40695 _ACEOF
40696
40697     cat >>confdefs.h <<\_ACEOF
40698 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40699 _ACEOF
40700
40701     cat >>confdefs.h <<\_ACEOF
40702 #define wxUSE_DEBUG_NEW_ALWAYS 1
40703 _ACEOF
40704
40705     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40706 fi
40707
40708 if test "$wxUSE_DMALLOC" = "yes" ; then
40709     DMALLOC_LIBS="-ldmallocthcxx"
40710 fi
40711
40712 PROFILE_FLAGS=
40713 if test "$wxUSE_PROFILE" = "yes" ; then
40714     PROFILE_FLAGS=" -pg"
40715 fi
40716
40717 if test "$GCC" = "yes" ; then
40718     if test "$wxUSE_NO_RTTI" = "yes" ; then
40719         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40720     fi
40721     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40722         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40723     fi
40724     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40725         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40726     fi
40727
40728                                                 case "${host}" in
40729       powerpc*-*-aix* )
40730         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40731         ;;
40732       *-hppa* )
40733         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40734         ;;
40735     esac
40736 fi
40737
40738 OPTIMISE_CFLAGS=
40739 if test "$wxUSE_OPTIMISE" = "no" ; then
40740     if test "$GCC" = yes ; then
40741                         OPTIMISE_CFLAGS="-O0"
40742     fi
40743 else
40744     if test "$GCC" = yes ; then
40745         case "${host}" in
40746             *-pc-os2_emx | *-pc-os2-emx )
40747                                                 OPTIMISE_CFLAGS="-O2"
40748             ;;
40749             *)
40750                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40751             ;;
40752         esac
40753     else
40754         OPTIMISE_CFLAGS="-O"
40755     fi
40756 fi
40757
40758
40759 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
40760     cat >>confdefs.h <<\_ACEOF
40761 #define WXWIN_COMPATIBILITY_2_6 1
40762 _ACEOF
40763
40764
40765     WXWIN_COMPATIBILITY_2_8="yes"
40766 fi
40767
40768 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
40769     cat >>confdefs.h <<\_ACEOF
40770 #define WXWIN_COMPATIBILITY_2_8 1
40771 _ACEOF
40772
40773 fi
40774
40775
40776 if test "$wxUSE_GUI" = "yes"; then
40777     cat >>confdefs.h <<\_ACEOF
40778 #define wxUSE_GUI 1
40779 _ACEOF
40780
40781
40782                                             fi
40783
40784
40785 if test "$wxUSE_UNIX" = "yes"; then
40786   cat >>confdefs.h <<\_ACEOF
40787 #define wxUSE_UNIX 1
40788 _ACEOF
40789
40790 fi
40791
40792
40793 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40794
40795     HAVE_DL_FUNCS=0
40796     HAVE_SHL_FUNCS=0
40797     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40798         if test "$USE_DARWIN" = 1; then
40799                         HAVE_DL_FUNCS=1
40800         elif test "$USE_DOS" = 1; then
40801             HAVE_DL_FUNCS=0
40802         else
40803
40804 for ac_func in dlopen
40805 do
40806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40810   echo $ECHO_N "(cached) $ECHO_C" >&6
40811 else
40812   cat >conftest.$ac_ext <<_ACEOF
40813 /* confdefs.h.  */
40814 _ACEOF
40815 cat confdefs.h >>conftest.$ac_ext
40816 cat >>conftest.$ac_ext <<_ACEOF
40817 /* end confdefs.h.  */
40818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40820 #define $ac_func innocuous_$ac_func
40821
40822 /* System header to define __stub macros and hopefully few prototypes,
40823     which can conflict with char $ac_func (); below.
40824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40825     <limits.h> exists even on freestanding compilers.  */
40826
40827 #ifdef __STDC__
40828 # include <limits.h>
40829 #else
40830 # include <assert.h>
40831 #endif
40832
40833 #undef $ac_func
40834
40835 /* Override any GCC internal prototype to avoid an error.
40836    Use char because int might match the return type of a GCC
40837    builtin and then its argument prototype would still apply.  */
40838 #ifdef __cplusplus
40839 extern "C"
40840 #endif
40841 char $ac_func ();
40842 /* The GNU C library defines this for functions which it implements
40843     to always fail with ENOSYS.  Some functions are actually named
40844     something starting with __ and the normal name is an alias.  */
40845 #if defined __stub_$ac_func || defined __stub___$ac_func
40846 choke me
40847 #endif
40848
40849 int
40850 main ()
40851 {
40852 return $ac_func ();
40853   ;
40854   return 0;
40855 }
40856 _ACEOF
40857 rm -f conftest.$ac_objext conftest$ac_exeext
40858 if { (ac_try="$ac_link"
40859 case "(($ac_try" in
40860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40861   *) ac_try_echo=$ac_try;;
40862 esac
40863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40864   (eval "$ac_link") 2>conftest.er1
40865   ac_status=$?
40866   grep -v '^ *+' conftest.er1 >conftest.err
40867   rm -f conftest.er1
40868   cat conftest.err >&5
40869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870   (exit $ac_status); } && {
40871          test -z "$ac_c_werror_flag" ||
40872          test ! -s conftest.err
40873        } && test -s conftest$ac_exeext &&
40874        $as_test_x conftest$ac_exeext; then
40875   eval "$as_ac_var=yes"
40876 else
40877   echo "$as_me: failed program was:" >&5
40878 sed 's/^/| /' conftest.$ac_ext >&5
40879
40880         eval "$as_ac_var=no"
40881 fi
40882
40883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40884       conftest$ac_exeext conftest.$ac_ext
40885 fi
40886 ac_res=`eval echo '${'$as_ac_var'}'`
40887                { echo "$as_me:$LINENO: result: $ac_res" >&5
40888 echo "${ECHO_T}$ac_res" >&6; }
40889 if test `eval echo '${'$as_ac_var'}'` = yes; then
40890   cat >>confdefs.h <<_ACEOF
40891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40892 _ACEOF
40893
40894                 cat >>confdefs.h <<\_ACEOF
40895 #define HAVE_DLOPEN 1
40896 _ACEOF
40897
40898                 HAVE_DL_FUNCS=1
40899
40900 else
40901
40902                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
40904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40905   echo $ECHO_N "(cached) $ECHO_C" >&6
40906 else
40907   ac_check_lib_save_LIBS=$LIBS
40908 LIBS="-ldl  $LIBS"
40909 cat >conftest.$ac_ext <<_ACEOF
40910 /* confdefs.h.  */
40911 _ACEOF
40912 cat confdefs.h >>conftest.$ac_ext
40913 cat >>conftest.$ac_ext <<_ACEOF
40914 /* end confdefs.h.  */
40915
40916 /* Override any GCC internal prototype to avoid an error.
40917    Use char because int might match the return type of a GCC
40918    builtin and then its argument prototype would still apply.  */
40919 #ifdef __cplusplus
40920 extern "C"
40921 #endif
40922 char dlopen ();
40923 int
40924 main ()
40925 {
40926 return dlopen ();
40927   ;
40928   return 0;
40929 }
40930 _ACEOF
40931 rm -f conftest.$ac_objext conftest$ac_exeext
40932 if { (ac_try="$ac_link"
40933 case "(($ac_try" in
40934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40935   *) ac_try_echo=$ac_try;;
40936 esac
40937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40938   (eval "$ac_link") 2>conftest.er1
40939   ac_status=$?
40940   grep -v '^ *+' conftest.er1 >conftest.err
40941   rm -f conftest.er1
40942   cat conftest.err >&5
40943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944   (exit $ac_status); } && {
40945          test -z "$ac_c_werror_flag" ||
40946          test ! -s conftest.err
40947        } && test -s conftest$ac_exeext &&
40948        $as_test_x conftest$ac_exeext; then
40949   ac_cv_lib_dl_dlopen=yes
40950 else
40951   echo "$as_me: failed program was:" >&5
40952 sed 's/^/| /' conftest.$ac_ext >&5
40953
40954         ac_cv_lib_dl_dlopen=no
40955 fi
40956
40957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40958       conftest$ac_exeext conftest.$ac_ext
40959 LIBS=$ac_check_lib_save_LIBS
40960 fi
40961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40962 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
40963 if test $ac_cv_lib_dl_dlopen = yes; then
40964
40965                                 cat >>confdefs.h <<\_ACEOF
40966 #define HAVE_DLOPEN 1
40967 _ACEOF
40968
40969                                 HAVE_DL_FUNCS=1
40970                                 DL_LINK=" -ldl$DL_LINK"
40971
40972 else
40973
40974
40975 for ac_func in shl_load
40976 do
40977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40981   echo $ECHO_N "(cached) $ECHO_C" >&6
40982 else
40983   cat >conftest.$ac_ext <<_ACEOF
40984 /* confdefs.h.  */
40985 _ACEOF
40986 cat confdefs.h >>conftest.$ac_ext
40987 cat >>conftest.$ac_ext <<_ACEOF
40988 /* end confdefs.h.  */
40989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40991 #define $ac_func innocuous_$ac_func
40992
40993 /* System header to define __stub macros and hopefully few prototypes,
40994     which can conflict with char $ac_func (); below.
40995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40996     <limits.h> exists even on freestanding compilers.  */
40997
40998 #ifdef __STDC__
40999 # include <limits.h>
41000 #else
41001 # include <assert.h>
41002 #endif
41003
41004 #undef $ac_func
41005
41006 /* Override any GCC internal prototype to avoid an error.
41007    Use char because int might match the return type of a GCC
41008    builtin and then its argument prototype would still apply.  */
41009 #ifdef __cplusplus
41010 extern "C"
41011 #endif
41012 char $ac_func ();
41013 /* The GNU C library defines this for functions which it implements
41014     to always fail with ENOSYS.  Some functions are actually named
41015     something starting with __ and the normal name is an alias.  */
41016 #if defined __stub_$ac_func || defined __stub___$ac_func
41017 choke me
41018 #endif
41019
41020 int
41021 main ()
41022 {
41023 return $ac_func ();
41024   ;
41025   return 0;
41026 }
41027 _ACEOF
41028 rm -f conftest.$ac_objext conftest$ac_exeext
41029 if { (ac_try="$ac_link"
41030 case "(($ac_try" in
41031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41032   *) ac_try_echo=$ac_try;;
41033 esac
41034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41035   (eval "$ac_link") 2>conftest.er1
41036   ac_status=$?
41037   grep -v '^ *+' conftest.er1 >conftest.err
41038   rm -f conftest.er1
41039   cat conftest.err >&5
41040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041   (exit $ac_status); } && {
41042          test -z "$ac_c_werror_flag" ||
41043          test ! -s conftest.err
41044        } && test -s conftest$ac_exeext &&
41045        $as_test_x conftest$ac_exeext; then
41046   eval "$as_ac_var=yes"
41047 else
41048   echo "$as_me: failed program was:" >&5
41049 sed 's/^/| /' conftest.$ac_ext >&5
41050
41051         eval "$as_ac_var=no"
41052 fi
41053
41054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41055       conftest$ac_exeext conftest.$ac_ext
41056 fi
41057 ac_res=`eval echo '${'$as_ac_var'}'`
41058                { echo "$as_me:$LINENO: result: $ac_res" >&5
41059 echo "${ECHO_T}$ac_res" >&6; }
41060 if test `eval echo '${'$as_ac_var'}'` = yes; then
41061   cat >>confdefs.h <<_ACEOF
41062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41063 _ACEOF
41064
41065                                                 cat >>confdefs.h <<\_ACEOF
41066 #define HAVE_SHL_LOAD 1
41067 _ACEOF
41068
41069                                                 HAVE_SHL_FUNCS=1
41070
41071 else
41072
41073                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41074 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41075 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41076   echo $ECHO_N "(cached) $ECHO_C" >&6
41077 else
41078   ac_check_lib_save_LIBS=$LIBS
41079 LIBS="-lshl_load  $LIBS"
41080 cat >conftest.$ac_ext <<_ACEOF
41081 /* confdefs.h.  */
41082 _ACEOF
41083 cat confdefs.h >>conftest.$ac_ext
41084 cat >>conftest.$ac_ext <<_ACEOF
41085 /* end confdefs.h.  */
41086
41087 /* Override any GCC internal prototype to avoid an error.
41088    Use char because int might match the return type of a GCC
41089    builtin and then its argument prototype would still apply.  */
41090 #ifdef __cplusplus
41091 extern "C"
41092 #endif
41093 char dld ();
41094 int
41095 main ()
41096 {
41097 return dld ();
41098   ;
41099   return 0;
41100 }
41101 _ACEOF
41102 rm -f conftest.$ac_objext conftest$ac_exeext
41103 if { (ac_try="$ac_link"
41104 case "(($ac_try" in
41105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41106   *) ac_try_echo=$ac_try;;
41107 esac
41108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41109   (eval "$ac_link") 2>conftest.er1
41110   ac_status=$?
41111   grep -v '^ *+' conftest.er1 >conftest.err
41112   rm -f conftest.er1
41113   cat conftest.err >&5
41114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115   (exit $ac_status); } && {
41116          test -z "$ac_c_werror_flag" ||
41117          test ! -s conftest.err
41118        } && test -s conftest$ac_exeext &&
41119        $as_test_x conftest$ac_exeext; then
41120   ac_cv_lib_shl_load_dld=yes
41121 else
41122   echo "$as_me: failed program was:" >&5
41123 sed 's/^/| /' conftest.$ac_ext >&5
41124
41125         ac_cv_lib_shl_load_dld=no
41126 fi
41127
41128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41129       conftest$ac_exeext conftest.$ac_ext
41130 LIBS=$ac_check_lib_save_LIBS
41131 fi
41132 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41133 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41134 if test $ac_cv_lib_shl_load_dld = yes; then
41135
41136                                                                 HAVE_SHL_FUNCS=1
41137                                                                 DL_LINK=" -ldld$DL_LINK"
41138
41139 fi
41140
41141
41142 fi
41143 done
41144
41145
41146 fi
41147
41148
41149 fi
41150 done
41151
41152
41153                 if test "$HAVE_DL_FUNCS" = 1; then
41154
41155 for ac_func in dlerror
41156 do
41157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41161   echo $ECHO_N "(cached) $ECHO_C" >&6
41162 else
41163   cat >conftest.$ac_ext <<_ACEOF
41164 /* confdefs.h.  */
41165 _ACEOF
41166 cat confdefs.h >>conftest.$ac_ext
41167 cat >>conftest.$ac_ext <<_ACEOF
41168 /* end confdefs.h.  */
41169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41171 #define $ac_func innocuous_$ac_func
41172
41173 /* System header to define __stub macros and hopefully few prototypes,
41174     which can conflict with char $ac_func (); below.
41175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41176     <limits.h> exists even on freestanding compilers.  */
41177
41178 #ifdef __STDC__
41179 # include <limits.h>
41180 #else
41181 # include <assert.h>
41182 #endif
41183
41184 #undef $ac_func
41185
41186 /* Override any GCC internal prototype to avoid an error.
41187    Use char because int might match the return type of a GCC
41188    builtin and then its argument prototype would still apply.  */
41189 #ifdef __cplusplus
41190 extern "C"
41191 #endif
41192 char $ac_func ();
41193 /* The GNU C library defines this for functions which it implements
41194     to always fail with ENOSYS.  Some functions are actually named
41195     something starting with __ and the normal name is an alias.  */
41196 #if defined __stub_$ac_func || defined __stub___$ac_func
41197 choke me
41198 #endif
41199
41200 int
41201 main ()
41202 {
41203 return $ac_func ();
41204   ;
41205   return 0;
41206 }
41207 _ACEOF
41208 rm -f conftest.$ac_objext conftest$ac_exeext
41209 if { (ac_try="$ac_link"
41210 case "(($ac_try" in
41211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41212   *) ac_try_echo=$ac_try;;
41213 esac
41214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41215   (eval "$ac_link") 2>conftest.er1
41216   ac_status=$?
41217   grep -v '^ *+' conftest.er1 >conftest.err
41218   rm -f conftest.er1
41219   cat conftest.err >&5
41220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221   (exit $ac_status); } && {
41222          test -z "$ac_c_werror_flag" ||
41223          test ! -s conftest.err
41224        } && test -s conftest$ac_exeext &&
41225        $as_test_x conftest$ac_exeext; then
41226   eval "$as_ac_var=yes"
41227 else
41228   echo "$as_me: failed program was:" >&5
41229 sed 's/^/| /' conftest.$ac_ext >&5
41230
41231         eval "$as_ac_var=no"
41232 fi
41233
41234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41235       conftest$ac_exeext conftest.$ac_ext
41236 fi
41237 ac_res=`eval echo '${'$as_ac_var'}'`
41238                { echo "$as_me:$LINENO: result: $ac_res" >&5
41239 echo "${ECHO_T}$ac_res" >&6; }
41240 if test `eval echo '${'$as_ac_var'}'` = yes; then
41241   cat >>confdefs.h <<_ACEOF
41242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41243 _ACEOF
41244  cat >>confdefs.h <<\_ACEOF
41245 #define HAVE_DLERROR 1
41246 _ACEOF
41247
41248 else
41249
41250                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41251 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41252 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41253   echo $ECHO_N "(cached) $ECHO_C" >&6
41254 else
41255   ac_check_lib_save_LIBS=$LIBS
41256 LIBS="-ldl  $LIBS"
41257 cat >conftest.$ac_ext <<_ACEOF
41258 /* confdefs.h.  */
41259 _ACEOF
41260 cat confdefs.h >>conftest.$ac_ext
41261 cat >>conftest.$ac_ext <<_ACEOF
41262 /* end confdefs.h.  */
41263
41264 /* Override any GCC internal prototype to avoid an error.
41265    Use char because int might match the return type of a GCC
41266    builtin and then its argument prototype would still apply.  */
41267 #ifdef __cplusplus
41268 extern "C"
41269 #endif
41270 char dlerror ();
41271 int
41272 main ()
41273 {
41274 return dlerror ();
41275   ;
41276   return 0;
41277 }
41278 _ACEOF
41279 rm -f conftest.$ac_objext conftest$ac_exeext
41280 if { (ac_try="$ac_link"
41281 case "(($ac_try" in
41282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41283   *) ac_try_echo=$ac_try;;
41284 esac
41285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41286   (eval "$ac_link") 2>conftest.er1
41287   ac_status=$?
41288   grep -v '^ *+' conftest.er1 >conftest.err
41289   rm -f conftest.er1
41290   cat conftest.err >&5
41291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292   (exit $ac_status); } && {
41293          test -z "$ac_c_werror_flag" ||
41294          test ! -s conftest.err
41295        } && test -s conftest$ac_exeext &&
41296        $as_test_x conftest$ac_exeext; then
41297   ac_cv_lib_dl_dlerror=yes
41298 else
41299   echo "$as_me: failed program was:" >&5
41300 sed 's/^/| /' conftest.$ac_ext >&5
41301
41302         ac_cv_lib_dl_dlerror=no
41303 fi
41304
41305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41306       conftest$ac_exeext conftest.$ac_ext
41307 LIBS=$ac_check_lib_save_LIBS
41308 fi
41309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41310 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41311 if test $ac_cv_lib_dl_dlerror = yes; then
41312   cat >>confdefs.h <<\_ACEOF
41313 #define HAVE_DLERROR 1
41314 _ACEOF
41315
41316 fi
41317
41318
41319
41320 fi
41321 done
41322
41323         fi
41324         fi
41325
41326         if test "$HAVE_DL_FUNCS" = 0; then
41327             if test "$HAVE_SHL_FUNCS" = 0; then
41328               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41329                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41330 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41331                   wxUSE_DYNAMIC_LOADER=no
41332                   wxUSE_DYNLIB_CLASS=no
41333               else
41334                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41335 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41336               fi
41337             fi
41338         fi
41339     fi
41340 fi
41341
41342 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41343     cat >>confdefs.h <<\_ACEOF
41344 #define wxUSE_DYNAMIC_LOADER 1
41345 _ACEOF
41346
41347 fi
41348 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41349     cat >>confdefs.h <<\_ACEOF
41350 #define wxUSE_DYNLIB_CLASS 1
41351 _ACEOF
41352
41353 fi
41354
41355
41356
41357 if test "$wxUSE_PLUGINS" = "yes" ; then
41358     if test "$wxUSE_SHARED" = "no" ; then
41359         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41360 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41361         wxUSE_PLUGINS=no
41362     fi
41363     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41364         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41365 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41366         wxUSE_PLUGINS=no
41367     fi
41368     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41369         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41370 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41371         wxUSE_PLUGINS=no
41372     fi
41373     if test "$wxUSE_PLUGINS" = "yes" ; then
41374         cat >>confdefs.h <<\_ACEOF
41375 #define wxUSE_PLUGINS 1
41376 _ACEOF
41377
41378     fi
41379 fi
41380
41381
41382 if test "$wxUSE_STL" = "yes"; then
41383   cat >>confdefs.h <<\_ACEOF
41384 #define wxUSE_STL 1
41385 _ACEOF
41386
41387 fi
41388
41389 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41390   cat >>confdefs.h <<\_ACEOF
41391 #define wxUSE_EXTENDED_RTTI 1
41392 _ACEOF
41393
41394 fi
41395
41396 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41397   cat >>confdefs.h <<\_ACEOF
41398 #define wxUSE_APPLE_IEEE 1
41399 _ACEOF
41400
41401 fi
41402
41403 if test "$wxUSE_TIMER" = "yes"; then
41404   cat >>confdefs.h <<\_ACEOF
41405 #define wxUSE_TIMER 1
41406 _ACEOF
41407
41408 fi
41409
41410 if test "$USE_UNIX" = 1 ; then
41411         if test "$wxUSE_MGL" != 1; then
41412                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41413 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41414 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41415   echo $ECHO_N "(cached) $ECHO_C" >&6
41416 else
41417
41418             cat >conftest.$ac_ext <<_ACEOF
41419 /* confdefs.h.  */
41420 _ACEOF
41421 cat confdefs.h >>conftest.$ac_ext
41422 cat >>conftest.$ac_ext <<_ACEOF
41423 /* end confdefs.h.  */
41424
41425                     #include <sys/ioctl.h>
41426                     #include <sys/soundcard.h>
41427
41428 int
41429 main ()
41430 {
41431
41432                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41433
41434   ;
41435   return 0;
41436 }
41437 _ACEOF
41438 rm -f conftest.$ac_objext conftest$ac_exeext
41439 if { (ac_try="$ac_link"
41440 case "(($ac_try" in
41441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442   *) ac_try_echo=$ac_try;;
41443 esac
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445   (eval "$ac_link") 2>conftest.er1
41446   ac_status=$?
41447   grep -v '^ *+' conftest.er1 >conftest.err
41448   rm -f conftest.er1
41449   cat conftest.err >&5
41450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451   (exit $ac_status); } && {
41452          test -z "$ac_c_werror_flag" ||
41453          test ! -s conftest.err
41454        } && test -s conftest$ac_exeext &&
41455        $as_test_x conftest$ac_exeext; then
41456   ac_cv_header_sys_soundcard=yes
41457 else
41458   echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41460
41461
41462                     saveLibs="$LIBS"
41463                     LIBS="$saveLibs -lossaudio"
41464                     cat >conftest.$ac_ext <<_ACEOF
41465 /* confdefs.h.  */
41466 _ACEOF
41467 cat confdefs.h >>conftest.$ac_ext
41468 cat >>conftest.$ac_ext <<_ACEOF
41469 /* end confdefs.h.  */
41470
41471                             #include <sys/ioctl.h>
41472                             #include <sys/soundcard.h>
41473
41474 int
41475 main ()
41476 {
41477
41478                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41479
41480   ;
41481   return 0;
41482 }
41483 _ACEOF
41484 rm -f conftest.$ac_objext conftest$ac_exeext
41485 if { (ac_try="$ac_link"
41486 case "(($ac_try" in
41487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41488   *) ac_try_echo=$ac_try;;
41489 esac
41490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41491   (eval "$ac_link") 2>conftest.er1
41492   ac_status=$?
41493   grep -v '^ *+' conftest.er1 >conftest.err
41494   rm -f conftest.er1
41495   cat conftest.err >&5
41496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497   (exit $ac_status); } && {
41498          test -z "$ac_c_werror_flag" ||
41499          test ! -s conftest.err
41500        } && test -s conftest$ac_exeext &&
41501        $as_test_x conftest$ac_exeext; then
41502   ac_cv_header_sys_soundcard=yes
41503 else
41504   echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41506
41507
41508                             LIBS="$saveLibs"
41509                             ac_cv_header_sys_soundcard=no
41510
41511
41512 fi
41513
41514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41515       conftest$ac_exeext conftest.$ac_ext
41516
41517
41518 fi
41519
41520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41521       conftest$ac_exeext conftest.$ac_ext
41522
41523 fi
41524 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41525 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41526     fi
41527
41528     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41529         cat >>confdefs.h <<\_ACEOF
41530 #define HAVE_SYS_SOUNDCARD_H 1
41531 _ACEOF
41532
41533     fi
41534 fi
41535
41536 WITH_PLUGIN_SDL=0
41537 if test "$wxUSE_SOUND" = "yes"; then
41538   if test "$USE_UNIX" = 1 ; then
41539     if test "$wxUSE_LIBSDL" != "no"; then
41540
41541 # Check whether --with-sdl-prefix was given.
41542 if test "${with_sdl_prefix+set}" = set; then
41543   withval=$with_sdl_prefix; sdl_prefix="$withval"
41544 else
41545   sdl_prefix=""
41546 fi
41547
41548
41549 # Check whether --with-sdl-exec-prefix was given.
41550 if test "${with_sdl_exec_prefix+set}" = set; then
41551   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41552 else
41553   sdl_exec_prefix=""
41554 fi
41555
41556 # Check whether --enable-sdltest was given.
41557 if test "${enable_sdltest+set}" = set; then
41558   enableval=$enable_sdltest;
41559 else
41560   enable_sdltest=yes
41561 fi
41562
41563
41564   if test x$sdl_exec_prefix != x ; then
41565     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41566     if test x${SDL_CONFIG+set} != xset ; then
41567       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41568     fi
41569   fi
41570   if test x$sdl_prefix != x ; then
41571     sdl_args="$sdl_args --prefix=$sdl_prefix"
41572     if test x${SDL_CONFIG+set} != xset ; then
41573       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41574     fi
41575   fi
41576
41577   if test "x$prefix" != xNONE; then
41578     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41579   fi
41580   # Extract the first word of "sdl-config", so it can be a program name with args.
41581 set dummy sdl-config; ac_word=$2
41582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41584 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41585   echo $ECHO_N "(cached) $ECHO_C" >&6
41586 else
41587   case $SDL_CONFIG in
41588   [\\/]* | ?:[\\/]*)
41589   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41590   ;;
41591   *)
41592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41593 for as_dir in $PATH
41594 do
41595   IFS=$as_save_IFS
41596   test -z "$as_dir" && as_dir=.
41597   for ac_exec_ext in '' $ac_executable_extensions; do
41598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41599     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41601     break 2
41602   fi
41603 done
41604 done
41605 IFS=$as_save_IFS
41606
41607   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41608   ;;
41609 esac
41610 fi
41611 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41612 if test -n "$SDL_CONFIG"; then
41613   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41614 echo "${ECHO_T}$SDL_CONFIG" >&6; }
41615 else
41616   { echo "$as_me:$LINENO: result: no" >&5
41617 echo "${ECHO_T}no" >&6; }
41618 fi
41619
41620
41621   min_sdl_version=1.2.0
41622   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41623 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
41624   no_sdl=""
41625   if test "$SDL_CONFIG" = "no" ; then
41626     no_sdl=yes
41627   else
41628     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41629     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41630
41631     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41632            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41633     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41634            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41635     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41636            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41637     if test "x$enable_sdltest" = "xyes" ; then
41638       ac_save_CFLAGS="$CFLAGS"
41639       ac_save_CXXFLAGS="$CXXFLAGS"
41640       ac_save_LIBS="$LIBS"
41641       CFLAGS="$CFLAGS $SDL_CFLAGS"
41642       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41643       LIBS="$LIBS $SDL_LIBS"
41644       rm -f conf.sdltest
41645       if test "$cross_compiling" = yes; then
41646   echo $ac_n "cross compiling; assumed OK... $ac_c"
41647 else
41648   cat >conftest.$ac_ext <<_ACEOF
41649 /* confdefs.h.  */
41650 _ACEOF
41651 cat confdefs.h >>conftest.$ac_ext
41652 cat >>conftest.$ac_ext <<_ACEOF
41653 /* end confdefs.h.  */
41654
41655 #include <stdio.h>
41656 #include <stdlib.h>
41657 #include <string.h>
41658 #include "SDL.h"
41659
41660 char*
41661 my_strdup (char *str)
41662 {
41663   char *new_str;
41664
41665   if (str)
41666     {
41667       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41668       strcpy (new_str, str);
41669     }
41670   else
41671     new_str = NULL;
41672
41673   return new_str;
41674 }
41675
41676 int main (int argc, char *argv[])
41677 {
41678   int major, minor, micro;
41679   char *tmp_version;
41680
41681   /* This hangs on some systems (?)
41682   system ("touch conf.sdltest");
41683   */
41684   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41685
41686   /* HP/UX 9 (%@#!) writes to sscanf strings */
41687   tmp_version = my_strdup("$min_sdl_version");
41688   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41689      printf("%s, bad version string\n", "$min_sdl_version");
41690      exit(1);
41691    }
41692
41693    if (($sdl_major_version > major) ||
41694       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41695       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41696     {
41697       return 0;
41698     }
41699   else
41700     {
41701       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41702       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41703       printf("*** best to upgrade to the required version.\n");
41704       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41705       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41706       printf("*** config.cache before re-running configure\n");
41707       return 1;
41708     }
41709 }
41710
41711
41712 _ACEOF
41713 rm -f conftest$ac_exeext
41714 if { (ac_try="$ac_link"
41715 case "(($ac_try" in
41716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41717   *) ac_try_echo=$ac_try;;
41718 esac
41719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41720   (eval "$ac_link") 2>&5
41721   ac_status=$?
41722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41724   { (case "(($ac_try" in
41725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41726   *) ac_try_echo=$ac_try;;
41727 esac
41728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41729   (eval "$ac_try") 2>&5
41730   ac_status=$?
41731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732   (exit $ac_status); }; }; then
41733   :
41734 else
41735   echo "$as_me: program exited with status $ac_status" >&5
41736 echo "$as_me: failed program was:" >&5
41737 sed 's/^/| /' conftest.$ac_ext >&5
41738
41739 ( exit $ac_status )
41740 no_sdl=yes
41741 fi
41742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41743 fi
41744
41745
41746        CFLAGS="$ac_save_CFLAGS"
41747        CXXFLAGS="$ac_save_CXXFLAGS"
41748        LIBS="$ac_save_LIBS"
41749      fi
41750   fi
41751   if test "x$no_sdl" = x ; then
41752      { echo "$as_me:$LINENO: result: yes" >&5
41753 echo "${ECHO_T}yes" >&6; }
41754
41755                     EXTRALIBS_SDL="$SDL_LIBS"
41756                     CFLAGS="$SDL_CFLAGS $CFLAGS"
41757                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41758                     cat >>confdefs.h <<\_ACEOF
41759 #define wxUSE_LIBSDL 1
41760 _ACEOF
41761
41762
41763   else
41764      { echo "$as_me:$LINENO: result: no" >&5
41765 echo "${ECHO_T}no" >&6; }
41766      if test "$SDL_CONFIG" = "no" ; then
41767        echo "*** The sdl-config script installed by SDL could not be found"
41768        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41769        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41770        echo "*** full path to sdl-config."
41771      else
41772        if test -f conf.sdltest ; then
41773         :
41774        else
41775           echo "*** Could not run SDL test program, checking why..."
41776           CFLAGS="$CFLAGS $SDL_CFLAGS"
41777           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41778           LIBS="$LIBS $SDL_LIBS"
41779           cat >conftest.$ac_ext <<_ACEOF
41780 /* confdefs.h.  */
41781 _ACEOF
41782 cat confdefs.h >>conftest.$ac_ext
41783 cat >>conftest.$ac_ext <<_ACEOF
41784 /* end confdefs.h.  */
41785
41786 #include <stdio.h>
41787 #include "SDL.h"
41788
41789 int main(int argc, char *argv[])
41790 { return 0; }
41791 #undef  main
41792 #define main K_and_R_C_main
41793
41794 int
41795 main ()
41796 {
41797  return 0;
41798   ;
41799   return 0;
41800 }
41801 _ACEOF
41802 rm -f conftest.$ac_objext conftest$ac_exeext
41803 if { (ac_try="$ac_link"
41804 case "(($ac_try" in
41805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41806   *) ac_try_echo=$ac_try;;
41807 esac
41808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41809   (eval "$ac_link") 2>conftest.er1
41810   ac_status=$?
41811   grep -v '^ *+' conftest.er1 >conftest.err
41812   rm -f conftest.er1
41813   cat conftest.err >&5
41814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815   (exit $ac_status); } && {
41816          test -z "$ac_c_werror_flag" ||
41817          test ! -s conftest.err
41818        } && test -s conftest$ac_exeext &&
41819        $as_test_x conftest$ac_exeext; then
41820    echo "*** The test program compiled, but did not run. This usually means"
41821           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41822           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41823           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41824           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41825           echo "*** is required on your system"
41826           echo "***"
41827           echo "*** If you have an old version installed, it is best to remove it, although"
41828           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41829 else
41830   echo "$as_me: failed program was:" >&5
41831 sed 's/^/| /' conftest.$ac_ext >&5
41832
41833          echo "*** The test program failed to compile or link. See the file config.log for the"
41834           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41835           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41836           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41837 fi
41838
41839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41840       conftest$ac_exeext conftest.$ac_ext
41841           CFLAGS="$ac_save_CFLAGS"
41842           CXXFLAGS="$ac_save_CXXFLAGS"
41843           LIBS="$ac_save_LIBS"
41844        fi
41845      fi
41846      SDL_CFLAGS=""
41847      SDL_LIBS=""
41848      wxUSE_LIBSDL="no"
41849   fi
41850
41851
41852   rm -f conf.sdltest
41853
41854       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41855         WITH_PLUGIN_SDL=1
41856       fi
41857     fi
41858   else
41859         if test "$wxUSE_MGL" = 1; then
41860         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
41861 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
41862         wxUSE_SOUND="no"
41863     fi
41864   fi
41865 fi
41866
41867 if test "$wxUSE_SOUND" = "yes"; then
41868   cat >>confdefs.h <<\_ACEOF
41869 #define wxUSE_SOUND 1
41870 _ACEOF
41871
41872   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41873 fi
41874
41875 if test "$WXGTK2" = 1; then
41876
41877
41878 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41879         if test -n "$ac_tool_prefix"; then
41880   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41881 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41884 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41885   echo $ECHO_N "(cached) $ECHO_C" >&6
41886 else
41887   case $PKG_CONFIG in
41888   [\\/]* | ?:[\\/]*)
41889   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41890   ;;
41891   *)
41892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41893 for as_dir in $PATH
41894 do
41895   IFS=$as_save_IFS
41896   test -z "$as_dir" && as_dir=.
41897   for ac_exec_ext in '' $ac_executable_extensions; do
41898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41899     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41901     break 2
41902   fi
41903 done
41904 done
41905 IFS=$as_save_IFS
41906
41907   ;;
41908 esac
41909 fi
41910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41911 if test -n "$PKG_CONFIG"; then
41912   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41913 echo "${ECHO_T}$PKG_CONFIG" >&6; }
41914 else
41915   { echo "$as_me:$LINENO: result: no" >&5
41916 echo "${ECHO_T}no" >&6; }
41917 fi
41918
41919
41920 fi
41921 if test -z "$ac_cv_path_PKG_CONFIG"; then
41922   ac_pt_PKG_CONFIG=$PKG_CONFIG
41923   # Extract the first word of "pkg-config", so it can be a program name with args.
41924 set dummy pkg-config; ac_word=$2
41925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41927 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
41928   echo $ECHO_N "(cached) $ECHO_C" >&6
41929 else
41930   case $ac_pt_PKG_CONFIG in
41931   [\\/]* | ?:[\\/]*)
41932   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
41933   ;;
41934   *)
41935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41936 for as_dir in $PATH
41937 do
41938   IFS=$as_save_IFS
41939   test -z "$as_dir" && as_dir=.
41940   for ac_exec_ext in '' $ac_executable_extensions; do
41941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41942     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41944     break 2
41945   fi
41946 done
41947 done
41948 IFS=$as_save_IFS
41949
41950   ;;
41951 esac
41952 fi
41953 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
41954 if test -n "$ac_pt_PKG_CONFIG"; then
41955   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
41956 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
41957 else
41958   { echo "$as_me:$LINENO: result: no" >&5
41959 echo "${ECHO_T}no" >&6; }
41960 fi
41961
41962   if test "x$ac_pt_PKG_CONFIG" = x; then
41963     PKG_CONFIG=""
41964   else
41965     case $cross_compiling:$ac_tool_warned in
41966 yes:)
41967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
41968 whose name does not start with the host triplet.  If you think this
41969 configuration is useful to you, please write to autoconf@gnu.org." >&5
41970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
41971 whose name does not start with the host triplet.  If you think this
41972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
41973 ac_tool_warned=yes ;;
41974 esac
41975     PKG_CONFIG=$ac_pt_PKG_CONFIG
41976   fi
41977 else
41978   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
41979 fi
41980
41981 fi
41982 if test -n "$PKG_CONFIG"; then
41983         _pkg_min_version=0.9.0
41984         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
41985 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
41986         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
41987                 { echo "$as_me:$LINENO: result: yes" >&5
41988 echo "${ECHO_T}yes" >&6; }
41989         else
41990                 { echo "$as_me:$LINENO: result: no" >&5
41991 echo "${ECHO_T}no" >&6; }
41992                 PKG_CONFIG=""
41993         fi
41994
41995 fi
41996
41997     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41998
41999         if test "$wxUSE_GTKPRINT" = "yes" ; then
42000
42001
42002 pkg_failed=no
42003 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42004 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42005
42006 if test -n "$PKG_CONFIG"; then
42007     if test -n "$GTKPRINT_CFLAGS"; then
42008         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42009     else
42010         if test -n "$PKG_CONFIG" && \
42011     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42012   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42013   ac_status=$?
42014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015   (exit $ac_status); }; then
42016   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42017 else
42018   pkg_failed=yes
42019 fi
42020     fi
42021 else
42022         pkg_failed=untried
42023 fi
42024 if test -n "$PKG_CONFIG"; then
42025     if test -n "$GTKPRINT_LIBS"; then
42026         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42027     else
42028         if test -n "$PKG_CONFIG" && \
42029     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42030   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42031   ac_status=$?
42032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033   (exit $ac_status); }; then
42034   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42035 else
42036   pkg_failed=yes
42037 fi
42038     fi
42039 else
42040         pkg_failed=untried
42041 fi
42042
42043
42044
42045 if test $pkg_failed = yes; then
42046
42047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42048         _pkg_short_errors_supported=yes
42049 else
42050         _pkg_short_errors_supported=no
42051 fi
42052         if test $_pkg_short_errors_supported = yes; then
42053                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42054         else
42055                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42056         fi
42057         # Put the nasty error message in config.log where it belongs
42058         echo "$GTKPRINT_PKG_ERRORS" >&5
42059
42060
42061                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42062 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42063                         wxUSE_GTKPRINT="no"
42064
42065
42066 elif test $pkg_failed = untried; then
42067
42068                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42069 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42070                         wxUSE_GTKPRINT="no"
42071
42072
42073 else
42074         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42075         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42076         { echo "$as_me:$LINENO: result: yes" >&5
42077 echo "${ECHO_T}yes" >&6; }
42078
42079                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42080                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42081                         cat >>confdefs.h <<\_ACEOF
42082 #define wxUSE_GTKPRINT 1
42083 _ACEOF
42084
42085
42086 fi
42087         fi
42088
42089         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42090
42091
42092 pkg_failed=no
42093 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42094 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42095
42096 if test -n "$PKG_CONFIG"; then
42097     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42098         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42099     else
42100         if test -n "$PKG_CONFIG" && \
42101     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42102   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42103   ac_status=$?
42104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); }; then
42106   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42107 else
42108   pkg_failed=yes
42109 fi
42110     fi
42111 else
42112         pkg_failed=untried
42113 fi
42114 if test -n "$PKG_CONFIG"; then
42115     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42116         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42117     else
42118         if test -n "$PKG_CONFIG" && \
42119     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42120   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42121   ac_status=$?
42122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42123   (exit $ac_status); }; then
42124   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42125 else
42126   pkg_failed=yes
42127 fi
42128     fi
42129 else
42130         pkg_failed=untried
42131 fi
42132
42133
42134
42135 if test $pkg_failed = yes; then
42136
42137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42138         _pkg_short_errors_supported=yes
42139 else
42140         _pkg_short_errors_supported=no
42141 fi
42142         if test $_pkg_short_errors_supported = yes; then
42143                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42144         else
42145                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42146         fi
42147         # Put the nasty error message in config.log where it belongs
42148         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42149
42150
42151                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42152 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42153                         wxUSE_LIBGNOMEPRINT="no"
42154
42155
42156 elif test $pkg_failed = untried; then
42157
42158                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42159 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42160                         wxUSE_LIBGNOMEPRINT="no"
42161
42162
42163 else
42164         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42165         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42166         { echo "$as_me:$LINENO: result: yes" >&5
42167 echo "${ECHO_T}yes" >&6; }
42168
42169                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42170                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42171                         cat >>confdefs.h <<\_ACEOF
42172 #define wxUSE_LIBGNOMEPRINT 1
42173 _ACEOF
42174
42175
42176 fi
42177         fi
42178     fi
42179
42180     if test "$wxUSE_MIMETYPE" = "yes" ; then
42181         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42182
42183
42184 pkg_failed=no
42185 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42186 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42187
42188 if test -n "$PKG_CONFIG"; then
42189     if test -n "$GNOMEVFS_CFLAGS"; then
42190         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42191     else
42192         if test -n "$PKG_CONFIG" && \
42193     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42194   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42195   ac_status=$?
42196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197   (exit $ac_status); }; then
42198   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42199 else
42200   pkg_failed=yes
42201 fi
42202     fi
42203 else
42204         pkg_failed=untried
42205 fi
42206 if test -n "$PKG_CONFIG"; then
42207     if test -n "$GNOMEVFS_LIBS"; then
42208         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42209     else
42210         if test -n "$PKG_CONFIG" && \
42211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42212   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42213   ac_status=$?
42214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215   (exit $ac_status); }; then
42216   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42217 else
42218   pkg_failed=yes
42219 fi
42220     fi
42221 else
42222         pkg_failed=untried
42223 fi
42224
42225
42226
42227 if test $pkg_failed = yes; then
42228
42229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42230         _pkg_short_errors_supported=yes
42231 else
42232         _pkg_short_errors_supported=no
42233 fi
42234         if test $_pkg_short_errors_supported = yes; then
42235                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42236         else
42237                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42238         fi
42239         # Put the nasty error message in config.log where it belongs
42240         echo "$GNOMEVFS_PKG_ERRORS" >&5
42241
42242
42243                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42244 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42245                         wxUSE_LIBGNOMEVFS="no"
42246
42247
42248 elif test $pkg_failed = untried; then
42249
42250                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42251 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42252                         wxUSE_LIBGNOMEVFS="no"
42253
42254
42255 else
42256         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42257         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42258         { echo "$as_me:$LINENO: result: yes" >&5
42259 echo "${ECHO_T}yes" >&6; }
42260
42261                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42262                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42263                         cat >>confdefs.h <<\_ACEOF
42264 #define wxUSE_LIBGNOMEVFS 1
42265 _ACEOF
42266
42267
42268 fi
42269         fi
42270     fi
42271
42272     if test "$wxUSE_LIBHILDON" = "yes" ; then
42273
42274 pkg_failed=no
42275 { echo "$as_me:$LINENO: checking for HILDON" >&5
42276 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42277
42278 if test -n "$PKG_CONFIG"; then
42279     if test -n "$HILDON_CFLAGS"; then
42280         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42281     else
42282         if test -n "$PKG_CONFIG" && \
42283     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42284   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42285   ac_status=$?
42286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42287   (exit $ac_status); }; then
42288   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42289 else
42290   pkg_failed=yes
42291 fi
42292     fi
42293 else
42294         pkg_failed=untried
42295 fi
42296 if test -n "$PKG_CONFIG"; then
42297     if test -n "$HILDON_LIBS"; then
42298         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42299     else
42300         if test -n "$PKG_CONFIG" && \
42301     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42302   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42303   ac_status=$?
42304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305   (exit $ac_status); }; then
42306   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42307 else
42308   pkg_failed=yes
42309 fi
42310     fi
42311 else
42312         pkg_failed=untried
42313 fi
42314
42315
42316
42317 if test $pkg_failed = yes; then
42318
42319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42320         _pkg_short_errors_supported=yes
42321 else
42322         _pkg_short_errors_supported=no
42323 fi
42324         if test $_pkg_short_errors_supported = yes; then
42325                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42326         else
42327                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42328         fi
42329         # Put the nasty error message in config.log where it belongs
42330         echo "$HILDON_PKG_ERRORS" >&5
42331
42332
42333                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42334 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42335                         wxUSE_LIBHILDON="no"
42336
42337
42338 elif test $pkg_failed = untried; then
42339
42340                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42341 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42342                         wxUSE_LIBHILDON="no"
42343
42344
42345 else
42346         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42347         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42348         { echo "$as_me:$LINENO: result: yes" >&5
42349 echo "${ECHO_T}yes" >&6; }
42350
42351                 EXTRALIBS_HILDON="$HILDON_LIBS"
42352                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42353                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42354                 cat >>confdefs.h <<\_ACEOF
42355 #define wxUSE_LIBHILDON 1
42356 _ACEOF
42357
42358
42359 fi
42360     fi
42361 fi
42362
42363 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42364   cat >>confdefs.h <<\_ACEOF
42365 #define wxUSE_CMDLINE_PARSER 1
42366 _ACEOF
42367
42368 fi
42369
42370 if test "$wxUSE_STOPWATCH" = "yes"; then
42371   cat >>confdefs.h <<\_ACEOF
42372 #define wxUSE_STOPWATCH 1
42373 _ACEOF
42374
42375 fi
42376
42377 if test "$wxUSE_DATETIME" = "yes"; then
42378   cat >>confdefs.h <<\_ACEOF
42379 #define wxUSE_DATETIME 1
42380 _ACEOF
42381
42382 fi
42383
42384 if test "$wxUSE_FILE" = "yes"; then
42385   cat >>confdefs.h <<\_ACEOF
42386 #define wxUSE_FILE 1
42387 _ACEOF
42388
42389 fi
42390
42391 if test "$wxUSE_FFILE" = "yes"; then
42392   cat >>confdefs.h <<\_ACEOF
42393 #define wxUSE_FFILE 1
42394 _ACEOF
42395
42396 fi
42397
42398 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42399   if test "$wxUSE_STREAMS" != yes; then
42400     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42401 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42402     wxUSE_ARCHIVE_STREAMS=no
42403   else
42404     cat >>confdefs.h <<\_ACEOF
42405 #define wxUSE_ARCHIVE_STREAMS 1
42406 _ACEOF
42407
42408   fi
42409 fi
42410
42411 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42412   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42413     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42414 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42415   elif test "$wxUSE_ZLIB" = "no"; then
42416     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42417 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42418   else
42419     cat >>confdefs.h <<\_ACEOF
42420 #define wxUSE_ZIPSTREAM 1
42421 _ACEOF
42422
42423   fi
42424 fi
42425
42426 if test "$wxUSE_TARSTREAM" = "yes"; then
42427   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42428     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42429 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42430   else
42431     cat >>confdefs.h <<\_ACEOF
42432 #define wxUSE_TARSTREAM 1
42433 _ACEOF
42434
42435   fi
42436 fi
42437
42438 if test "$wxUSE_FILESYSTEM" = "yes"; then
42439   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42440     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42441 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42442     wxUSE_FILESYSTEM=no
42443   else
42444     cat >>confdefs.h <<\_ACEOF
42445 #define wxUSE_FILESYSTEM 1
42446 _ACEOF
42447
42448   fi
42449 fi
42450
42451 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42452   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42453     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42454 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42455   else
42456     cat >>confdefs.h <<\_ACEOF
42457 #define wxUSE_FS_ARCHIVE 1
42458 _ACEOF
42459
42460   fi
42461 fi
42462
42463 if test "$wxUSE_FS_ZIP" = "yes"; then
42464   if test "$wxUSE_FS_ARCHIVE" != yes; then
42465     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42466 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42467   else
42468     cat >>confdefs.h <<\_ACEOF
42469 #define wxUSE_FS_ZIP 1
42470 _ACEOF
42471
42472   fi
42473 fi
42474
42475 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42476   if test "$USE_UNIX" != 1; then
42477     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42478 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42479     wxUSE_ON_FATAL_EXCEPTION=no
42480   else
42481     cat >>confdefs.h <<\_ACEOF
42482 #define wxUSE_ON_FATAL_EXCEPTION 1
42483 _ACEOF
42484
42485   fi
42486 fi
42487
42488 if test "$wxUSE_STACKWALKER" = "yes"; then
42489     cat >>confdefs.h <<\_ACEOF
42490 #define wxUSE_STACKWALKER 1
42491 _ACEOF
42492
42493 fi
42494
42495 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42496     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
42497         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42498 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42499         wxUSE_DEBUGREPORT=no
42500     else
42501         cat >>confdefs.h <<\_ACEOF
42502 #define wxUSE_DEBUGREPORT 1
42503 _ACEOF
42504
42505         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42506             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42507         fi
42508     fi
42509 fi
42510
42511 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42512   cat >>confdefs.h <<\_ACEOF
42513 #define wxUSE_SNGLINST_CHECKER 1
42514 _ACEOF
42515
42516 fi
42517
42518 if test "$wxUSE_BUSYINFO" = "yes"; then
42519   cat >>confdefs.h <<\_ACEOF
42520 #define wxUSE_BUSYINFO 1
42521 _ACEOF
42522
42523 fi
42524
42525 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42526   cat >>confdefs.h <<\_ACEOF
42527 #define wxUSE_STD_IOSTREAM 1
42528 _ACEOF
42529
42530 fi
42531
42532 if test "$wxUSE_STD_STRING" = "yes"; then
42533   cat >>confdefs.h <<\_ACEOF
42534 #define wxUSE_STD_STRING 1
42535 _ACEOF
42536
42537 fi
42538
42539 if test "$wxUSE_STDPATHS" = "yes"; then
42540   cat >>confdefs.h <<\_ACEOF
42541 #define wxUSE_STDPATHS 1
42542 _ACEOF
42543
42544 fi
42545
42546 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42547     cat >>confdefs.h <<\_ACEOF
42548 #define wxUSE_TEXTBUFFER 1
42549 _ACEOF
42550
42551 fi
42552
42553 if test "$wxUSE_TEXTFILE" = "yes"; then
42554   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42555     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42556 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42557   else
42558     cat >>confdefs.h <<\_ACEOF
42559 #define wxUSE_TEXTFILE 1
42560 _ACEOF
42561
42562   fi
42563 fi
42564
42565 if test "$wxUSE_CONFIG" = "yes" ; then
42566   if test "$wxUSE_TEXTFILE" != "yes"; then
42567     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42568 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42569   else
42570     cat >>confdefs.h <<\_ACEOF
42571 #define wxUSE_CONFIG 1
42572 _ACEOF
42573
42574     cat >>confdefs.h <<\_ACEOF
42575 #define wxUSE_CONFIG_NATIVE 1
42576 _ACEOF
42577
42578     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42579   fi
42580 fi
42581
42582 if test "$wxUSE_INTL" = "yes" ; then
42583   if test "$wxUSE_FILE" != "yes"; then
42584     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42585 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42586   else
42587     cat >>confdefs.h <<\_ACEOF
42588 #define wxUSE_INTL 1
42589 _ACEOF
42590
42591     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42592     GUIDIST="$GUIDIST INTL_DIST"
42593   fi
42594 fi
42595
42596 if test "$wxUSE_LOG" = "yes"; then
42597   cat >>confdefs.h <<\_ACEOF
42598 #define wxUSE_LOG 1
42599 _ACEOF
42600
42601
42602     if test "$wxUSE_LOGGUI" = "yes"; then
42603       cat >>confdefs.h <<\_ACEOF
42604 #define wxUSE_LOGGUI 1
42605 _ACEOF
42606
42607     fi
42608
42609     if test "$wxUSE_LOGWINDOW" = "yes"; then
42610       cat >>confdefs.h <<\_ACEOF
42611 #define wxUSE_LOGWINDOW 1
42612 _ACEOF
42613
42614     fi
42615
42616     if test "$wxUSE_LOGDIALOG" = "yes"; then
42617       cat >>confdefs.h <<\_ACEOF
42618 #define wxUSE_LOG_DIALOG 1
42619 _ACEOF
42620
42621     fi
42622
42623         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42624 fi
42625
42626 if test "$wxUSE_LONGLONG" = "yes"; then
42627   cat >>confdefs.h <<\_ACEOF
42628 #define wxUSE_LONGLONG 1
42629 _ACEOF
42630
42631 fi
42632
42633 if test "$wxUSE_GEOMETRY" = "yes"; then
42634   cat >>confdefs.h <<\_ACEOF
42635 #define wxUSE_GEOMETRY 1
42636 _ACEOF
42637
42638 fi
42639
42640 if test "$wxUSE_BASE64" = "yes"; then
42641   cat >>confdefs.h <<\_ACEOF
42642 #define wxUSE_BASE64 1
42643 _ACEOF
42644
42645 fi
42646
42647 if test "$wxUSE_STREAMS" = "yes" ; then
42648   cat >>confdefs.h <<\_ACEOF
42649 #define wxUSE_STREAMS 1
42650 _ACEOF
42651
42652 fi
42653
42654 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42655   cat >>confdefs.h <<\_ACEOF
42656 #define wxUSE_PRINTF_POS_PARAMS 1
42657 _ACEOF
42658
42659 fi
42660
42661 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
42662   cat >>confdefs.h <<\_ACEOF
42663 #define wxUSE_OBJC_UNIQUIFYING 1
42664 _ACEOF
42665
42666 fi
42667
42668
42669 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
42670     cat >>confdefs.h <<\_ACEOF
42671 #define wxUSE_CONSOLE_EVENTLOOP 1
42672 _ACEOF
42673
42674
42675     if test "$wxUSE_UNIX" = "yes"; then
42676         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
42677             cat >>confdefs.h <<\_ACEOF
42678 #define wxUSE_SELECT_DISPATCHER 1
42679 _ACEOF
42680
42681         fi
42682
42683         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
42684
42685 for ac_header in sys/epoll.h
42686 do
42687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42691   echo $ECHO_N "(cached) $ECHO_C" >&6
42692 else
42693   cat >conftest.$ac_ext <<_ACEOF
42694 /* confdefs.h.  */
42695 _ACEOF
42696 cat confdefs.h >>conftest.$ac_ext
42697 cat >>conftest.$ac_ext <<_ACEOF
42698 /* end confdefs.h.  */
42699 $ac_includes_default
42700
42701 #include <$ac_header>
42702 _ACEOF
42703 rm -f conftest.$ac_objext
42704 if { (ac_try="$ac_compile"
42705 case "(($ac_try" in
42706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42707   *) ac_try_echo=$ac_try;;
42708 esac
42709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42710   (eval "$ac_compile") 2>conftest.er1
42711   ac_status=$?
42712   grep -v '^ *+' conftest.er1 >conftest.err
42713   rm -f conftest.er1
42714   cat conftest.err >&5
42715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716   (exit $ac_status); } && {
42717          test -z "$ac_c_werror_flag" ||
42718          test ! -s conftest.err
42719        } && test -s conftest.$ac_objext; then
42720   eval "$as_ac_Header=yes"
42721 else
42722   echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42724
42725         eval "$as_ac_Header=no"
42726 fi
42727
42728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42729 fi
42730 ac_res=`eval echo '${'$as_ac_Header'}'`
42731                { echo "$as_me:$LINENO: result: $ac_res" >&5
42732 echo "${ECHO_T}$ac_res" >&6; }
42733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42734   cat >>confdefs.h <<_ACEOF
42735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42736 _ACEOF
42737
42738 fi
42739
42740 done
42741
42742             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
42743                 cat >>confdefs.h <<\_ACEOF
42744 #define wxUSE_EPOLL_DISPATCHER 1
42745 _ACEOF
42746
42747             else
42748                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
42749 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
42750             fi
42751         fi
42752     fi
42753 fi
42754
42755
42756
42757
42758 for ac_func in gettimeofday ftime
42759 do
42760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42764   echo $ECHO_N "(cached) $ECHO_C" >&6
42765 else
42766   cat >conftest.$ac_ext <<_ACEOF
42767 /* confdefs.h.  */
42768 _ACEOF
42769 cat confdefs.h >>conftest.$ac_ext
42770 cat >>conftest.$ac_ext <<_ACEOF
42771 /* end confdefs.h.  */
42772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42774 #define $ac_func innocuous_$ac_func
42775
42776 /* System header to define __stub macros and hopefully few prototypes,
42777     which can conflict with char $ac_func (); below.
42778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42779     <limits.h> exists even on freestanding compilers.  */
42780
42781 #ifdef __STDC__
42782 # include <limits.h>
42783 #else
42784 # include <assert.h>
42785 #endif
42786
42787 #undef $ac_func
42788
42789 /* Override any GCC internal prototype to avoid an error.
42790    Use char because int might match the return type of a GCC
42791    builtin and then its argument prototype would still apply.  */
42792 #ifdef __cplusplus
42793 extern "C"
42794 #endif
42795 char $ac_func ();
42796 /* The GNU C library defines this for functions which it implements
42797     to always fail with ENOSYS.  Some functions are actually named
42798     something starting with __ and the normal name is an alias.  */
42799 #if defined __stub_$ac_func || defined __stub___$ac_func
42800 choke me
42801 #endif
42802
42803 int
42804 main ()
42805 {
42806 return $ac_func ();
42807   ;
42808   return 0;
42809 }
42810 _ACEOF
42811 rm -f conftest.$ac_objext conftest$ac_exeext
42812 if { (ac_try="$ac_link"
42813 case "(($ac_try" in
42814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42815   *) ac_try_echo=$ac_try;;
42816 esac
42817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42818   (eval "$ac_link") 2>conftest.er1
42819   ac_status=$?
42820   grep -v '^ *+' conftest.er1 >conftest.err
42821   rm -f conftest.er1
42822   cat conftest.err >&5
42823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824   (exit $ac_status); } && {
42825          test -z "$ac_c_werror_flag" ||
42826          test ! -s conftest.err
42827        } && test -s conftest$ac_exeext &&
42828        $as_test_x conftest$ac_exeext; then
42829   eval "$as_ac_var=yes"
42830 else
42831   echo "$as_me: failed program was:" >&5
42832 sed 's/^/| /' conftest.$ac_ext >&5
42833
42834         eval "$as_ac_var=no"
42835 fi
42836
42837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42838       conftest$ac_exeext conftest.$ac_ext
42839 fi
42840 ac_res=`eval echo '${'$as_ac_var'}'`
42841                { echo "$as_me:$LINENO: result: $ac_res" >&5
42842 echo "${ECHO_T}$ac_res" >&6; }
42843 if test `eval echo '${'$as_ac_var'}'` = yes; then
42844   cat >>confdefs.h <<_ACEOF
42845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42846 _ACEOF
42847  break
42848 fi
42849 done
42850
42851
42852 if test "$ac_cv_func_gettimeofday" = "yes"; then
42853     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42854 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
42855 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42856   echo $ECHO_N "(cached) $ECHO_C" >&6
42857 else
42858
42859                 cat >conftest.$ac_ext <<_ACEOF
42860 /* confdefs.h.  */
42861 _ACEOF
42862 cat confdefs.h >>conftest.$ac_ext
42863 cat >>conftest.$ac_ext <<_ACEOF
42864 /* end confdefs.h.  */
42865
42866                 #include <sys/time.h>
42867                 #include <unistd.h>
42868
42869 int
42870 main ()
42871 {
42872
42873                 struct timeval tv;
42874                 gettimeofday(&tv, NULL);
42875
42876   ;
42877   return 0;
42878 }
42879 _ACEOF
42880 rm -f conftest.$ac_objext
42881 if { (ac_try="$ac_compile"
42882 case "(($ac_try" in
42883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42884   *) ac_try_echo=$ac_try;;
42885 esac
42886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42887   (eval "$ac_compile") 2>conftest.er1
42888   ac_status=$?
42889   grep -v '^ *+' conftest.er1 >conftest.err
42890   rm -f conftest.er1
42891   cat conftest.err >&5
42892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893   (exit $ac_status); } && {
42894          test -z "$ac_c_werror_flag" ||
42895          test ! -s conftest.err
42896        } && test -s conftest.$ac_objext; then
42897   wx_cv_func_gettimeofday_has_2_args=yes
42898 else
42899   echo "$as_me: failed program was:" >&5
42900 sed 's/^/| /' conftest.$ac_ext >&5
42901
42902         cat >conftest.$ac_ext <<_ACEOF
42903 /* confdefs.h.  */
42904 _ACEOF
42905 cat confdefs.h >>conftest.$ac_ext
42906 cat >>conftest.$ac_ext <<_ACEOF
42907 /* end confdefs.h.  */
42908
42909                     #include <sys/time.h>
42910                     #include <unistd.h>
42911
42912 int
42913 main ()
42914 {
42915
42916                     struct timeval tv;
42917                     gettimeofday(&tv);
42918
42919   ;
42920   return 0;
42921 }
42922 _ACEOF
42923 rm -f conftest.$ac_objext
42924 if { (ac_try="$ac_compile"
42925 case "(($ac_try" in
42926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927   *) ac_try_echo=$ac_try;;
42928 esac
42929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42930   (eval "$ac_compile") 2>conftest.er1
42931   ac_status=$?
42932   grep -v '^ *+' conftest.er1 >conftest.err
42933   rm -f conftest.er1
42934   cat conftest.err >&5
42935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936   (exit $ac_status); } && {
42937          test -z "$ac_c_werror_flag" ||
42938          test ! -s conftest.err
42939        } && test -s conftest.$ac_objext; then
42940   wx_cv_func_gettimeofday_has_2_args=no
42941 else
42942   echo "$as_me: failed program was:" >&5
42943 sed 's/^/| /' conftest.$ac_ext >&5
42944
42945
42946                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42947 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42948                     wx_cv_func_gettimeofday_has_2_args=unknown
42949
42950
42951 fi
42952
42953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42954
42955 fi
42956
42957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42958
42959 fi
42960 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42961 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
42962
42963     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42964         cat >>confdefs.h <<\_ACEOF
42965 #define WX_GETTIMEOFDAY_NO_TZ 1
42966 _ACEOF
42967
42968     fi
42969 fi
42970
42971 if test "$wxUSE_DATETIME" = "yes"; then
42972         { echo "$as_me:$LINENO: checking for strptime" >&5
42973 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
42974 if test "${ac_cv_func_strptime+set}" = set; then
42975   echo $ECHO_N "(cached) $ECHO_C" >&6
42976 else
42977   cat >conftest.$ac_ext <<_ACEOF
42978 /* confdefs.h.  */
42979 _ACEOF
42980 cat confdefs.h >>conftest.$ac_ext
42981 cat >>conftest.$ac_ext <<_ACEOF
42982 /* end confdefs.h.  */
42983 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
42984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42985 #define strptime innocuous_strptime
42986
42987 /* System header to define __stub macros and hopefully few prototypes,
42988     which can conflict with char strptime (); below.
42989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42990     <limits.h> exists even on freestanding compilers.  */
42991
42992 #ifdef __STDC__
42993 # include <limits.h>
42994 #else
42995 # include <assert.h>
42996 #endif
42997
42998 #undef strptime
42999
43000 /* Override any GCC internal prototype to avoid an error.
43001    Use char because int might match the return type of a GCC
43002    builtin and then its argument prototype would still apply.  */
43003 #ifdef __cplusplus
43004 extern "C"
43005 #endif
43006 char strptime ();
43007 /* The GNU C library defines this for functions which it implements
43008     to always fail with ENOSYS.  Some functions are actually named
43009     something starting with __ and the normal name is an alias.  */
43010 #if defined __stub_strptime || defined __stub___strptime
43011 choke me
43012 #endif
43013
43014 int
43015 main ()
43016 {
43017 return strptime ();
43018   ;
43019   return 0;
43020 }
43021 _ACEOF
43022 rm -f conftest.$ac_objext conftest$ac_exeext
43023 if { (ac_try="$ac_link"
43024 case "(($ac_try" in
43025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43026   *) ac_try_echo=$ac_try;;
43027 esac
43028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43029   (eval "$ac_link") 2>conftest.er1
43030   ac_status=$?
43031   grep -v '^ *+' conftest.er1 >conftest.err
43032   rm -f conftest.er1
43033   cat conftest.err >&5
43034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43035   (exit $ac_status); } && {
43036          test -z "$ac_c_werror_flag" ||
43037          test ! -s conftest.err
43038        } && test -s conftest$ac_exeext &&
43039        $as_test_x conftest$ac_exeext; then
43040   ac_cv_func_strptime=yes
43041 else
43042   echo "$as_me: failed program was:" >&5
43043 sed 's/^/| /' conftest.$ac_ext >&5
43044
43045         ac_cv_func_strptime=no
43046 fi
43047
43048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43049       conftest$ac_exeext conftest.$ac_ext
43050 fi
43051 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43052 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43053
43054     if test "$ac_cv_func_strptime" = "yes"; then
43055         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43056 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43057 if test "${wx_cv_func_strptime_decl+set}" = set; then
43058   echo $ECHO_N "(cached) $ECHO_C" >&6
43059 else
43060
43061                 ac_ext=cpp
43062 ac_cpp='$CXXCPP $CPPFLAGS'
43063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43066
43067                 cat >conftest.$ac_ext <<_ACEOF
43068 /* confdefs.h.  */
43069 _ACEOF
43070 cat confdefs.h >>conftest.$ac_ext
43071 cat >>conftest.$ac_ext <<_ACEOF
43072 /* end confdefs.h.  */
43073
43074                         #include <time.h>
43075
43076 int
43077 main ()
43078 {
43079
43080                         struct tm t;
43081                         strptime("foo", "bar", &t);
43082
43083   ;
43084   return 0;
43085 }
43086 _ACEOF
43087 rm -f conftest.$ac_objext
43088 if { (ac_try="$ac_compile"
43089 case "(($ac_try" in
43090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43091   *) ac_try_echo=$ac_try;;
43092 esac
43093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43094   (eval "$ac_compile") 2>conftest.er1
43095   ac_status=$?
43096   grep -v '^ *+' conftest.er1 >conftest.err
43097   rm -f conftest.er1
43098   cat conftest.err >&5
43099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100   (exit $ac_status); } && {
43101          test -z "$ac_cxx_werror_flag" ||
43102          test ! -s conftest.err
43103        } && test -s conftest.$ac_objext; then
43104   wx_cv_func_strptime_decl=yes
43105 else
43106   echo "$as_me: failed program was:" >&5
43107 sed 's/^/| /' conftest.$ac_ext >&5
43108
43109         wx_cv_func_strptime_decl=no
43110
43111 fi
43112
43113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43114                 ac_ext=c
43115 ac_cpp='$CPP $CPPFLAGS'
43116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43119
43120
43121
43122 fi
43123 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43124 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43125     fi
43126     if test "$wx_cv_func_strptime_decl" = "yes"; then
43127         cat >>confdefs.h <<\_ACEOF
43128 #define HAVE_STRPTIME_DECL 1
43129 _ACEOF
43130
43131     else
43132         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43133     fi
43134     if test "$ac_cv_func_strptime" = "yes"; then
43135                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43136 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43137 if test "${wx_cv_func_strptime_ok+set}" = set; then
43138   echo $ECHO_N "(cached) $ECHO_C" >&6
43139 else
43140   if test "$cross_compiling" = yes; then
43141                   wx_cv_func_strptime_ok=no
43142
43143 else
43144   cat >conftest.$ac_ext <<_ACEOF
43145
43146                     #include <stdlib.h>
43147                     #include <time.h>
43148                     #include "confdefs.h"
43149
43150                     $wx_strptime_decl
43151
43152                     int main()
43153                     {
43154                         struct tm t;
43155                         return !!strptime("", "%x", &t);
43156                     }
43157
43158 _ACEOF
43159 rm -f conftest$ac_exeext
43160 if { (ac_try="$ac_link"
43161 case "(($ac_try" in
43162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43163   *) ac_try_echo=$ac_try;;
43164 esac
43165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43166   (eval "$ac_link") 2>&5
43167   ac_status=$?
43168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43170   { (case "(($ac_try" in
43171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43172   *) ac_try_echo=$ac_try;;
43173 esac
43174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43175   (eval "$ac_try") 2>&5
43176   ac_status=$?
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); }; }; then
43179   wx_cv_func_strptime_ok=yes
43180 else
43181   echo "$as_me: program exited with status $ac_status" >&5
43182 echo "$as_me: failed program was:" >&5
43183 sed 's/^/| /' conftest.$ac_ext >&5
43184
43185 ( exit $ac_status )
43186 wx_cv_func_strptime_ok=no
43187 fi
43188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43189 fi
43190
43191
43192
43193 fi
43194 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43195 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43196
43197         if test "$wx_cv_func_strptime_ok" = "yes"; then
43198             cat >>confdefs.h <<\_ACEOF
43199 #define HAVE_STRPTIME 1
43200 _ACEOF
43201
43202         fi
43203     fi
43204
43205             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43206 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43207 if test "${wx_cv_var_timezone+set}" = set; then
43208   echo $ECHO_N "(cached) $ECHO_C" >&6
43209 else
43210
43211                         ac_ext=cpp
43212 ac_cpp='$CXXCPP $CPPFLAGS'
43213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43216
43217                         cat >conftest.$ac_ext <<_ACEOF
43218 /* confdefs.h.  */
43219 _ACEOF
43220 cat confdefs.h >>conftest.$ac_ext
43221 cat >>conftest.$ac_ext <<_ACEOF
43222 /* end confdefs.h.  */
43223
43224                                 #include <time.h>
43225
43226 int
43227 main ()
43228 {
43229
43230                                 int tz;
43231                                 tz = timezone;
43232
43233   ;
43234   return 0;
43235 }
43236 _ACEOF
43237 rm -f conftest.$ac_objext
43238 if { (ac_try="$ac_compile"
43239 case "(($ac_try" in
43240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43241   *) ac_try_echo=$ac_try;;
43242 esac
43243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43244   (eval "$ac_compile") 2>conftest.er1
43245   ac_status=$?
43246   grep -v '^ *+' conftest.er1 >conftest.err
43247   rm -f conftest.er1
43248   cat conftest.err >&5
43249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43250   (exit $ac_status); } && {
43251          test -z "$ac_cxx_werror_flag" ||
43252          test ! -s conftest.err
43253        } && test -s conftest.$ac_objext; then
43254
43255                                 wx_cv_var_timezone=timezone
43256
43257 else
43258   echo "$as_me: failed program was:" >&5
43259 sed 's/^/| /' conftest.$ac_ext >&5
43260
43261
43262                                 cat >conftest.$ac_ext <<_ACEOF
43263 /* confdefs.h.  */
43264 _ACEOF
43265 cat confdefs.h >>conftest.$ac_ext
43266 cat >>conftest.$ac_ext <<_ACEOF
43267 /* end confdefs.h.  */
43268
43269                                         #include <time.h>
43270
43271 int
43272 main ()
43273 {
43274
43275                                         int tz;
43276                                         tz = _timezone;
43277
43278   ;
43279   return 0;
43280 }
43281 _ACEOF
43282 rm -f conftest.$ac_objext
43283 if { (ac_try="$ac_compile"
43284 case "(($ac_try" in
43285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43286   *) ac_try_echo=$ac_try;;
43287 esac
43288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43289   (eval "$ac_compile") 2>conftest.er1
43290   ac_status=$?
43291   grep -v '^ *+' conftest.er1 >conftest.err
43292   rm -f conftest.er1
43293   cat conftest.err >&5
43294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295   (exit $ac_status); } && {
43296          test -z "$ac_cxx_werror_flag" ||
43297          test ! -s conftest.err
43298        } && test -s conftest.$ac_objext; then
43299
43300                                         wx_cv_var_timezone=_timezone
43301
43302 else
43303   echo "$as_me: failed program was:" >&5
43304 sed 's/^/| /' conftest.$ac_ext >&5
43305
43306
43307                                         cat >conftest.$ac_ext <<_ACEOF
43308 /* confdefs.h.  */
43309 _ACEOF
43310 cat confdefs.h >>conftest.$ac_ext
43311 cat >>conftest.$ac_ext <<_ACEOF
43312 /* end confdefs.h.  */
43313
43314                                                 #include <time.h>
43315
43316 int
43317 main ()
43318 {
43319
43320                                                 int tz;
43321                                                 tz = __timezone;
43322
43323   ;
43324   return 0;
43325 }
43326 _ACEOF
43327 rm -f conftest.$ac_objext
43328 if { (ac_try="$ac_compile"
43329 case "(($ac_try" in
43330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43331   *) ac_try_echo=$ac_try;;
43332 esac
43333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43334   (eval "$ac_compile") 2>conftest.er1
43335   ac_status=$?
43336   grep -v '^ *+' conftest.er1 >conftest.err
43337   rm -f conftest.er1
43338   cat conftest.err >&5
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); } && {
43341          test -z "$ac_cxx_werror_flag" ||
43342          test ! -s conftest.err
43343        } && test -s conftest.$ac_objext; then
43344
43345                                                 wx_cv_var_timezone=__timezone
43346
43347 else
43348   echo "$as_me: failed program was:" >&5
43349 sed 's/^/| /' conftest.$ac_ext >&5
43350
43351
43352                                                 if test "$USE_DOS" = 0 ; then
43353                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43354 echo "$as_me: WARNING: no timezone variable" >&2;}
43355                                                 fi
43356
43357
43358 fi
43359
43360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43361
43362
43363 fi
43364
43365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43366
43367
43368 fi
43369
43370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43371                         ac_ext=c
43372 ac_cpp='$CPP $CPPFLAGS'
43373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43376
43377
43378
43379 fi
43380 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43381 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43382
43383         if test "x$wx_cv_var_timezone" != x ; then
43384         cat >>confdefs.h <<_ACEOF
43385 #define WX_TIMEZONE $wx_cv_var_timezone
43386 _ACEOF
43387
43388     fi
43389
43390
43391 for ac_func in localtime
43392 do
43393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43397   echo $ECHO_N "(cached) $ECHO_C" >&6
43398 else
43399   cat >conftest.$ac_ext <<_ACEOF
43400 /* confdefs.h.  */
43401 _ACEOF
43402 cat confdefs.h >>conftest.$ac_ext
43403 cat >>conftest.$ac_ext <<_ACEOF
43404 /* end confdefs.h.  */
43405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43407 #define $ac_func innocuous_$ac_func
43408
43409 /* System header to define __stub macros and hopefully few prototypes,
43410     which can conflict with char $ac_func (); below.
43411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43412     <limits.h> exists even on freestanding compilers.  */
43413
43414 #ifdef __STDC__
43415 # include <limits.h>
43416 #else
43417 # include <assert.h>
43418 #endif
43419
43420 #undef $ac_func
43421
43422 /* Override any GCC internal prototype to avoid an error.
43423    Use char because int might match the return type of a GCC
43424    builtin and then its argument prototype would still apply.  */
43425 #ifdef __cplusplus
43426 extern "C"
43427 #endif
43428 char $ac_func ();
43429 /* The GNU C library defines this for functions which it implements
43430     to always fail with ENOSYS.  Some functions are actually named
43431     something starting with __ and the normal name is an alias.  */
43432 #if defined __stub_$ac_func || defined __stub___$ac_func
43433 choke me
43434 #endif
43435
43436 int
43437 main ()
43438 {
43439 return $ac_func ();
43440   ;
43441   return 0;
43442 }
43443 _ACEOF
43444 rm -f conftest.$ac_objext conftest$ac_exeext
43445 if { (ac_try="$ac_link"
43446 case "(($ac_try" in
43447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43448   *) ac_try_echo=$ac_try;;
43449 esac
43450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43451   (eval "$ac_link") 2>conftest.er1
43452   ac_status=$?
43453   grep -v '^ *+' conftest.er1 >conftest.err
43454   rm -f conftest.er1
43455   cat conftest.err >&5
43456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43457   (exit $ac_status); } && {
43458          test -z "$ac_c_werror_flag" ||
43459          test ! -s conftest.err
43460        } && test -s conftest$ac_exeext &&
43461        $as_test_x conftest$ac_exeext; then
43462   eval "$as_ac_var=yes"
43463 else
43464   echo "$as_me: failed program was:" >&5
43465 sed 's/^/| /' conftest.$ac_ext >&5
43466
43467         eval "$as_ac_var=no"
43468 fi
43469
43470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43471       conftest$ac_exeext conftest.$ac_ext
43472 fi
43473 ac_res=`eval echo '${'$as_ac_var'}'`
43474                { echo "$as_me:$LINENO: result: $ac_res" >&5
43475 echo "${ECHO_T}$ac_res" >&6; }
43476 if test `eval echo '${'$as_ac_var'}'` = yes; then
43477   cat >>confdefs.h <<_ACEOF
43478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43479 _ACEOF
43480
43481 fi
43482 done
43483
43484
43485     if test "$ac_cv_func_localtime" = "yes"; then
43486         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43487 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
43488 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43489   echo $ECHO_N "(cached) $ECHO_C" >&6
43490 else
43491
43492             cat >conftest.$ac_ext <<_ACEOF
43493 /* confdefs.h.  */
43494 _ACEOF
43495 cat confdefs.h >>conftest.$ac_ext
43496 cat >>conftest.$ac_ext <<_ACEOF
43497 /* end confdefs.h.  */
43498
43499                     #include <time.h>
43500
43501 int
43502 main ()
43503 {
43504
43505                     struct tm tm;
43506                     tm.tm_gmtoff++;
43507
43508   ;
43509   return 0;
43510 }
43511 _ACEOF
43512 rm -f conftest.$ac_objext
43513 if { (ac_try="$ac_compile"
43514 case "(($ac_try" in
43515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43516   *) ac_try_echo=$ac_try;;
43517 esac
43518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43519   (eval "$ac_compile") 2>conftest.er1
43520   ac_status=$?
43521   grep -v '^ *+' conftest.er1 >conftest.err
43522   rm -f conftest.er1
43523   cat conftest.err >&5
43524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525   (exit $ac_status); } && {
43526          test -z "$ac_c_werror_flag" ||
43527          test ! -s conftest.err
43528        } && test -s conftest.$ac_objext; then
43529
43530                     wx_cv_struct_tm_has_gmtoff=yes
43531
43532 else
43533   echo "$as_me: failed program was:" >&5
43534 sed 's/^/| /' conftest.$ac_ext >&5
43535
43536         wx_cv_struct_tm_has_gmtoff=no
43537
43538 fi
43539
43540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43541
43542 fi
43543 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43544 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
43545     fi
43546
43547     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43548         cat >>confdefs.h <<\_ACEOF
43549 #define WX_GMTOFF_IN_TM 1
43550 _ACEOF
43551
43552     fi
43553
43554     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43555 fi
43556
43557
43558 if test "$wxUSE_SOCKETS" = "yes"; then
43559     if test "$wxUSE_MGL" = 1; then
43560         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43561 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43562         wxUSE_SOCKETS="no"
43563     fi
43564 fi
43565
43566 if test "$wxUSE_SOCKETS" = "yes"; then
43567         if test "$TOOLKIT" != "MSW"; then
43568                 { echo "$as_me:$LINENO: checking for socket" >&5
43569 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
43570 if test "${ac_cv_func_socket+set}" = set; then
43571   echo $ECHO_N "(cached) $ECHO_C" >&6
43572 else
43573   cat >conftest.$ac_ext <<_ACEOF
43574 /* confdefs.h.  */
43575 _ACEOF
43576 cat confdefs.h >>conftest.$ac_ext
43577 cat >>conftest.$ac_ext <<_ACEOF
43578 /* end confdefs.h.  */
43579 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43581 #define socket innocuous_socket
43582
43583 /* System header to define __stub macros and hopefully few prototypes,
43584     which can conflict with char socket (); below.
43585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43586     <limits.h> exists even on freestanding compilers.  */
43587
43588 #ifdef __STDC__
43589 # include <limits.h>
43590 #else
43591 # include <assert.h>
43592 #endif
43593
43594 #undef socket
43595
43596 /* Override any GCC internal prototype to avoid an error.
43597    Use char because int might match the return type of a GCC
43598    builtin and then its argument prototype would still apply.  */
43599 #ifdef __cplusplus
43600 extern "C"
43601 #endif
43602 char socket ();
43603 /* The GNU C library defines this for functions which it implements
43604     to always fail with ENOSYS.  Some functions are actually named
43605     something starting with __ and the normal name is an alias.  */
43606 #if defined __stub_socket || defined __stub___socket
43607 choke me
43608 #endif
43609
43610 int
43611 main ()
43612 {
43613 return socket ();
43614   ;
43615   return 0;
43616 }
43617 _ACEOF
43618 rm -f conftest.$ac_objext conftest$ac_exeext
43619 if { (ac_try="$ac_link"
43620 case "(($ac_try" in
43621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43622   *) ac_try_echo=$ac_try;;
43623 esac
43624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43625   (eval "$ac_link") 2>conftest.er1
43626   ac_status=$?
43627   grep -v '^ *+' conftest.er1 >conftest.err
43628   rm -f conftest.er1
43629   cat conftest.err >&5
43630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631   (exit $ac_status); } && {
43632          test -z "$ac_c_werror_flag" ||
43633          test ! -s conftest.err
43634        } && test -s conftest$ac_exeext &&
43635        $as_test_x conftest$ac_exeext; then
43636   ac_cv_func_socket=yes
43637 else
43638   echo "$as_me: failed program was:" >&5
43639 sed 's/^/| /' conftest.$ac_ext >&5
43640
43641         ac_cv_func_socket=no
43642 fi
43643
43644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43645       conftest$ac_exeext conftest.$ac_ext
43646 fi
43647 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43648 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
43649 if test $ac_cv_func_socket = yes; then
43650   :
43651 else
43652
43653                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43654 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
43655 if test "${ac_cv_lib_socket_socket+set}" = set; then
43656   echo $ECHO_N "(cached) $ECHO_C" >&6
43657 else
43658   ac_check_lib_save_LIBS=$LIBS
43659 LIBS="-lsocket  $LIBS"
43660 cat >conftest.$ac_ext <<_ACEOF
43661 /* confdefs.h.  */
43662 _ACEOF
43663 cat confdefs.h >>conftest.$ac_ext
43664 cat >>conftest.$ac_ext <<_ACEOF
43665 /* end confdefs.h.  */
43666
43667 /* Override any GCC internal prototype to avoid an error.
43668    Use char because int might match the return type of a GCC
43669    builtin and then its argument prototype would still apply.  */
43670 #ifdef __cplusplus
43671 extern "C"
43672 #endif
43673 char socket ();
43674 int
43675 main ()
43676 {
43677 return socket ();
43678   ;
43679   return 0;
43680 }
43681 _ACEOF
43682 rm -f conftest.$ac_objext conftest$ac_exeext
43683 if { (ac_try="$ac_link"
43684 case "(($ac_try" in
43685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43686   *) ac_try_echo=$ac_try;;
43687 esac
43688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43689   (eval "$ac_link") 2>conftest.er1
43690   ac_status=$?
43691   grep -v '^ *+' conftest.er1 >conftest.err
43692   rm -f conftest.er1
43693   cat conftest.err >&5
43694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43695   (exit $ac_status); } && {
43696          test -z "$ac_c_werror_flag" ||
43697          test ! -s conftest.err
43698        } && test -s conftest$ac_exeext &&
43699        $as_test_x conftest$ac_exeext; then
43700   ac_cv_lib_socket_socket=yes
43701 else
43702   echo "$as_me: failed program was:" >&5
43703 sed 's/^/| /' conftest.$ac_ext >&5
43704
43705         ac_cv_lib_socket_socket=no
43706 fi
43707
43708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43709       conftest$ac_exeext conftest.$ac_ext
43710 LIBS=$ac_check_lib_save_LIBS
43711 fi
43712 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43713 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
43714 if test $ac_cv_lib_socket_socket = yes; then
43715   if test "$INET_LINK" != " -lsocket"; then
43716                         INET_LINK="$INET_LINK -lsocket"
43717                     fi
43718 else
43719
43720                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43721 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43722                         wxUSE_SOCKETS=no
43723
43724
43725 fi
43726
43727
43728
43729 fi
43730
43731     fi
43732 fi
43733
43734 if test "$wxUSE_SOCKETS" = "yes" ; then
43735                 if test "$TOOLKIT" != "MSW"; then
43736                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43737 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
43738 if test "${wx_cv_type_getsockname3+set}" = set; then
43739   echo $ECHO_N "(cached) $ECHO_C" >&6
43740 else
43741
43742                 ac_ext=cpp
43743 ac_cpp='$CXXCPP $CPPFLAGS'
43744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43747
43748                 cat >conftest.$ac_ext <<_ACEOF
43749 /* confdefs.h.  */
43750 _ACEOF
43751 cat confdefs.h >>conftest.$ac_ext
43752 cat >>conftest.$ac_ext <<_ACEOF
43753 /* end confdefs.h.  */
43754
43755                         #include <sys/types.h>
43756                         #include <sys/socket.h>
43757
43758 int
43759 main ()
43760 {
43761
43762                         socklen_t len;
43763                         getsockname(0, 0, &len);
43764
43765   ;
43766   return 0;
43767 }
43768 _ACEOF
43769 rm -f conftest.$ac_objext
43770 if { (ac_try="$ac_compile"
43771 case "(($ac_try" in
43772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43773   *) ac_try_echo=$ac_try;;
43774 esac
43775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43776   (eval "$ac_compile") 2>conftest.er1
43777   ac_status=$?
43778   grep -v '^ *+' conftest.er1 >conftest.err
43779   rm -f conftest.er1
43780   cat conftest.err >&5
43781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); } && {
43783          test -z "$ac_cxx_werror_flag" ||
43784          test ! -s conftest.err
43785        } && test -s conftest.$ac_objext; then
43786   wx_cv_type_getsockname3=socklen_t
43787 else
43788   echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43790
43791
43792                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
43793                         if test "$GCC" = yes ; then
43794                             CFLAGS="-Werror $CFLAGS"
43795                         fi
43796
43797                         cat >conftest.$ac_ext <<_ACEOF
43798 /* confdefs.h.  */
43799 _ACEOF
43800 cat confdefs.h >>conftest.$ac_ext
43801 cat >>conftest.$ac_ext <<_ACEOF
43802 /* end confdefs.h.  */
43803
43804                                 #include <sys/types.h>
43805                                 #include <sys/socket.h>
43806
43807 int
43808 main ()
43809 {
43810
43811                                 size_t len;
43812                                 getsockname(0, 0, &len);
43813
43814   ;
43815   return 0;
43816 }
43817 _ACEOF
43818 rm -f conftest.$ac_objext
43819 if { (ac_try="$ac_compile"
43820 case "(($ac_try" in
43821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43822   *) ac_try_echo=$ac_try;;
43823 esac
43824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43825   (eval "$ac_compile") 2>conftest.er1
43826   ac_status=$?
43827   grep -v '^ *+' conftest.er1 >conftest.err
43828   rm -f conftest.er1
43829   cat conftest.err >&5
43830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831   (exit $ac_status); } && {
43832          test -z "$ac_cxx_werror_flag" ||
43833          test ! -s conftest.err
43834        } && test -s conftest.$ac_objext; then
43835   wx_cv_type_getsockname3=size_t
43836 else
43837   echo "$as_me: failed program was:" >&5
43838 sed 's/^/| /' conftest.$ac_ext >&5
43839
43840         cat >conftest.$ac_ext <<_ACEOF
43841 /* confdefs.h.  */
43842 _ACEOF
43843 cat confdefs.h >>conftest.$ac_ext
43844 cat >>conftest.$ac_ext <<_ACEOF
43845 /* end confdefs.h.  */
43846
43847                                     #include <sys/types.h>
43848                                     #include <sys/socket.h>
43849
43850 int
43851 main ()
43852 {
43853
43854                                     int len;
43855                                     getsockname(0, 0, &len);
43856
43857   ;
43858   return 0;
43859 }
43860 _ACEOF
43861 rm -f conftest.$ac_objext
43862 if { (ac_try="$ac_compile"
43863 case "(($ac_try" in
43864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43865   *) ac_try_echo=$ac_try;;
43866 esac
43867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43868   (eval "$ac_compile") 2>conftest.er1
43869   ac_status=$?
43870   grep -v '^ *+' conftest.er1 >conftest.err
43871   rm -f conftest.er1
43872   cat conftest.err >&5
43873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43874   (exit $ac_status); } && {
43875          test -z "$ac_cxx_werror_flag" ||
43876          test ! -s conftest.err
43877        } && test -s conftest.$ac_objext; then
43878   wx_cv_type_getsockname3=int
43879 else
43880   echo "$as_me: failed program was:" >&5
43881 sed 's/^/| /' conftest.$ac_ext >&5
43882
43883         wx_cv_type_getsockname3=unknown
43884
43885 fi
43886
43887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43888
43889 fi
43890
43891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43892
43893                         CFLAGS="$CFLAGS_OLD"
43894
43895
43896 fi
43897
43898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43899                 ac_ext=c
43900 ac_cpp='$CPP $CPPFLAGS'
43901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43904
43905
43906 fi
43907 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43908 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
43909
43910         if test "$wx_cv_type_getsockname3" = "unknown"; then
43911             wxUSE_SOCKETS=no
43912             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43913 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43914         else
43915             cat >>confdefs.h <<_ACEOF
43916 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43917 _ACEOF
43918
43919         fi
43920                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43921 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
43922 if test "${wx_cv_type_getsockopt5+set}" = set; then
43923   echo $ECHO_N "(cached) $ECHO_C" >&6
43924 else
43925
43926                                                                                                 ac_ext=cpp
43927 ac_cpp='$CXXCPP $CPPFLAGS'
43928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43931
43932                 cat >conftest.$ac_ext <<_ACEOF
43933 /* confdefs.h.  */
43934 _ACEOF
43935 cat confdefs.h >>conftest.$ac_ext
43936 cat >>conftest.$ac_ext <<_ACEOF
43937 /* end confdefs.h.  */
43938
43939                         #include <sys/types.h>
43940                         #include <sys/socket.h>
43941
43942 int
43943 main ()
43944 {
43945
43946                         socklen_t len;
43947                         getsockopt(0, 0, 0, 0, &len);
43948
43949   ;
43950   return 0;
43951 }
43952 _ACEOF
43953 rm -f conftest.$ac_objext
43954 if { (ac_try="$ac_compile"
43955 case "(($ac_try" in
43956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43957   *) ac_try_echo=$ac_try;;
43958 esac
43959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43960   (eval "$ac_compile") 2>conftest.er1
43961   ac_status=$?
43962   grep -v '^ *+' conftest.er1 >conftest.err
43963   rm -f conftest.er1
43964   cat conftest.err >&5
43965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43966   (exit $ac_status); } && {
43967          test -z "$ac_cxx_werror_flag" ||
43968          test ! -s conftest.err
43969        } && test -s conftest.$ac_objext; then
43970   wx_cv_type_getsockopt5=socklen_t
43971 else
43972   echo "$as_me: failed program was:" >&5
43973 sed 's/^/| /' conftest.$ac_ext >&5
43974
43975
43976                         cat >conftest.$ac_ext <<_ACEOF
43977 /* confdefs.h.  */
43978 _ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h.  */
43982
43983                                 #include <sys/types.h>
43984                                 #include <sys/socket.h>
43985
43986 int
43987 main ()
43988 {
43989
43990                                 size_t len;
43991                                 getsockopt(0, 0, 0, 0, &len);
43992
43993   ;
43994   return 0;
43995 }
43996 _ACEOF
43997 rm -f conftest.$ac_objext
43998 if { (ac_try="$ac_compile"
43999 case "(($ac_try" in
44000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44001   *) ac_try_echo=$ac_try;;
44002 esac
44003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44004   (eval "$ac_compile") 2>conftest.er1
44005   ac_status=$?
44006   grep -v '^ *+' conftest.er1 >conftest.err
44007   rm -f conftest.er1
44008   cat conftest.err >&5
44009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010   (exit $ac_status); } && {
44011          test -z "$ac_cxx_werror_flag" ||
44012          test ! -s conftest.err
44013        } && test -s conftest.$ac_objext; then
44014   wx_cv_type_getsockopt5=size_t
44015 else
44016   echo "$as_me: failed program was:" >&5
44017 sed 's/^/| /' conftest.$ac_ext >&5
44018
44019         cat >conftest.$ac_ext <<_ACEOF
44020 /* confdefs.h.  */
44021 _ACEOF
44022 cat confdefs.h >>conftest.$ac_ext
44023 cat >>conftest.$ac_ext <<_ACEOF
44024 /* end confdefs.h.  */
44025
44026                                     #include <sys/types.h>
44027                                     #include <sys/socket.h>
44028
44029 int
44030 main ()
44031 {
44032
44033                                     int len;
44034                                     getsockopt(0, 0, 0, 0, &len);
44035
44036   ;
44037   return 0;
44038 }
44039 _ACEOF
44040 rm -f conftest.$ac_objext
44041 if { (ac_try="$ac_compile"
44042 case "(($ac_try" in
44043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44044   *) ac_try_echo=$ac_try;;
44045 esac
44046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44047   (eval "$ac_compile") 2>conftest.er1
44048   ac_status=$?
44049   grep -v '^ *+' conftest.er1 >conftest.err
44050   rm -f conftest.er1
44051   cat conftest.err >&5
44052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44053   (exit $ac_status); } && {
44054          test -z "$ac_cxx_werror_flag" ||
44055          test ! -s conftest.err
44056        } && test -s conftest.$ac_objext; then
44057   wx_cv_type_getsockopt5=int
44058 else
44059   echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44061
44062         wx_cv_type_getsockopt5=unknown
44063
44064 fi
44065
44066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44067
44068 fi
44069
44070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44071
44072
44073 fi
44074
44075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44076                 ac_ext=c
44077 ac_cpp='$CPP $CPPFLAGS'
44078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44081
44082
44083 fi
44084 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44085 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44086
44087         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44088             wxUSE_SOCKETS=no
44089             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44090 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44091         else
44092             cat >>confdefs.h <<_ACEOF
44093 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44094 _ACEOF
44095
44096         fi
44097     fi
44098 fi
44099
44100 if test "$wxUSE_SOCKETS" = "yes" ; then
44101     if test "$wxUSE_IPV6" = "yes"; then
44102         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44103 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44104 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44105   echo $ECHO_N "(cached) $ECHO_C" >&6
44106 else
44107
44108                 cat >conftest.$ac_ext <<_ACEOF
44109 /* confdefs.h.  */
44110 _ACEOF
44111 cat confdefs.h >>conftest.$ac_ext
44112 cat >>conftest.$ac_ext <<_ACEOF
44113 /* end confdefs.h.  */
44114
44115                         #include <sys/types.h>
44116                         #include <sys/socket.h>
44117                         #include <netinet/in.h>
44118
44119 int
44120 main ()
44121 {
44122
44123                         struct sockaddr_in6 sa6;
44124
44125   ;
44126   return 0;
44127 }
44128 _ACEOF
44129 rm -f conftest.$ac_objext
44130 if { (ac_try="$ac_compile"
44131 case "(($ac_try" in
44132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44133   *) ac_try_echo=$ac_try;;
44134 esac
44135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44136   (eval "$ac_compile") 2>conftest.er1
44137   ac_status=$?
44138   grep -v '^ *+' conftest.er1 >conftest.err
44139   rm -f conftest.er1
44140   cat conftest.err >&5
44141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142   (exit $ac_status); } && {
44143          test -z "$ac_c_werror_flag" ||
44144          test ! -s conftest.err
44145        } && test -s conftest.$ac_objext; then
44146   wx_cv_type_sockaddr_in6=yes
44147 else
44148   echo "$as_me: failed program was:" >&5
44149 sed 's/^/| /' conftest.$ac_ext >&5
44150
44151         wx_cv_type_sockaddr_in6=no
44152
44153 fi
44154
44155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44156
44157
44158 fi
44159 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44160 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44161
44162         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44163             cat >>confdefs.h <<\_ACEOF
44164 #define wxUSE_IPV6 1
44165 _ACEOF
44166
44167         else
44168             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44169 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44170         fi
44171     fi
44172
44173     cat >>confdefs.h <<\_ACEOF
44174 #define wxUSE_SOCKETS 1
44175 _ACEOF
44176
44177     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44178 fi
44179
44180 if test "$wxUSE_PROTOCOL" = "yes"; then
44181     if test "$wxUSE_SOCKETS" != "yes"; then
44182         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44183 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44184         wxUSE_PROTOCOL=no
44185     fi
44186 fi
44187
44188 if test "$wxUSE_PROTOCOL" = "yes"; then
44189     cat >>confdefs.h <<\_ACEOF
44190 #define wxUSE_PROTOCOL 1
44191 _ACEOF
44192
44193
44194     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44195         cat >>confdefs.h <<\_ACEOF
44196 #define wxUSE_PROTOCOL_HTTP 1
44197 _ACEOF
44198
44199     fi
44200     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44201         cat >>confdefs.h <<\_ACEOF
44202 #define wxUSE_PROTOCOL_FTP 1
44203 _ACEOF
44204
44205     fi
44206     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44207         cat >>confdefs.h <<\_ACEOF
44208 #define wxUSE_PROTOCOL_FILE 1
44209 _ACEOF
44210
44211     fi
44212 else
44213     if test "$wxUSE_FS_INET" = "yes"; then
44214         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44215 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44216         wxUSE_FS_INET="no"
44217     fi
44218 fi
44219
44220 if test "$wxUSE_URL" = "yes"; then
44221     if test "$wxUSE_PROTOCOL" != "yes"; then
44222         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44223 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44224         wxUSE_URL=no
44225     fi
44226     if test "$wxUSE_URL" = "yes"; then
44227         cat >>confdefs.h <<\_ACEOF
44228 #define wxUSE_URL 1
44229 _ACEOF
44230
44231     fi
44232 fi
44233
44234 if test "$wxUSE_VARIANT" = "yes"; then
44235     cat >>confdefs.h <<\_ACEOF
44236 #define wxUSE_VARIANT 1
44237 _ACEOF
44238
44239 fi
44240
44241 if test "$wxUSE_FS_INET" = "yes"; then
44242   cat >>confdefs.h <<\_ACEOF
44243 #define wxUSE_FS_INET 1
44244 _ACEOF
44245
44246 fi
44247
44248
44249 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44250     wxUSE_JOYSTICK=no
44251
44252         if test "$TOOLKIT" = "MSW"; then
44253         wxUSE_JOYSTICK=yes
44254
44255         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44256         if test "$USE_DARWIN" = 1; then
44257                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44258 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44259             ac_ext=cpp
44260 ac_cpp='$CXXCPP $CPPFLAGS'
44261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44264
44265             cat >conftest.$ac_ext <<_ACEOF
44266 /* confdefs.h.  */
44267 _ACEOF
44268 cat confdefs.h >>conftest.$ac_ext
44269 cat >>conftest.$ac_ext <<_ACEOF
44270 /* end confdefs.h.  */
44271  #include <IOKit/hid/IOHIDLib.h>
44272 int
44273 main ()
44274 {
44275  IOHIDQueueInterface *qi = NULL;
44276                               IOHIDCallbackFunction cb = NULL;
44277                               qi->setEventCallout(NULL, cb, NULL, NULL);
44278   ;
44279   return 0;
44280 }
44281 _ACEOF
44282 rm -f conftest.$ac_objext
44283 if { (ac_try="$ac_compile"
44284 case "(($ac_try" in
44285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44286   *) ac_try_echo=$ac_try;;
44287 esac
44288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44289   (eval "$ac_compile") 2>conftest.er1
44290   ac_status=$?
44291   grep -v '^ *+' conftest.er1 >conftest.err
44292   rm -f conftest.er1
44293   cat conftest.err >&5
44294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44295   (exit $ac_status); } && {
44296          test -z "$ac_cxx_werror_flag" ||
44297          test ! -s conftest.err
44298        } && test -s conftest.$ac_objext; then
44299    wxUSE_JOYSTICK=yes
44300
44301 else
44302   echo "$as_me: failed program was:" >&5
44303 sed 's/^/| /' conftest.$ac_ext >&5
44304
44305
44306 fi
44307
44308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44309             ac_ext=c
44310 ac_cpp='$CPP $CPPFLAGS'
44311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44314
44315             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44316 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44317         fi
44318
44319         else
44320                 if test "$wxUSE_MGL" != 1; then
44321
44322 for ac_header in linux/joystick.h
44323 do
44324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44328   echo $ECHO_N "(cached) $ECHO_C" >&6
44329 else
44330   cat >conftest.$ac_ext <<_ACEOF
44331 /* confdefs.h.  */
44332 _ACEOF
44333 cat confdefs.h >>conftest.$ac_ext
44334 cat >>conftest.$ac_ext <<_ACEOF
44335 /* end confdefs.h.  */
44336 $ac_includes_default
44337
44338 #include <$ac_header>
44339 _ACEOF
44340 rm -f conftest.$ac_objext
44341 if { (ac_try="$ac_compile"
44342 case "(($ac_try" in
44343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44344   *) ac_try_echo=$ac_try;;
44345 esac
44346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44347   (eval "$ac_compile") 2>conftest.er1
44348   ac_status=$?
44349   grep -v '^ *+' conftest.er1 >conftest.err
44350   rm -f conftest.er1
44351   cat conftest.err >&5
44352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44353   (exit $ac_status); } && {
44354          test -z "$ac_c_werror_flag" ||
44355          test ! -s conftest.err
44356        } && test -s conftest.$ac_objext; then
44357   eval "$as_ac_Header=yes"
44358 else
44359   echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44361
44362         eval "$as_ac_Header=no"
44363 fi
44364
44365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44366 fi
44367 ac_res=`eval echo '${'$as_ac_Header'}'`
44368                { echo "$as_me:$LINENO: result: $ac_res" >&5
44369 echo "${ECHO_T}$ac_res" >&6; }
44370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44371   cat >>confdefs.h <<_ACEOF
44372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44373 _ACEOF
44374  wxUSE_JOYSTICK=yes
44375 fi
44376
44377 done
44378
44379         fi
44380     fi
44381
44382     if test "$wxUSE_JOYSTICK" = "yes"; then
44383         cat >>confdefs.h <<\_ACEOF
44384 #define wxUSE_JOYSTICK 1
44385 _ACEOF
44386
44387         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44388     else
44389         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44390 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44391     fi
44392 fi
44393
44394
44395
44396 if test "$wxUSE_FONTENUM" = "yes" ; then
44397   cat >>confdefs.h <<\_ACEOF
44398 #define wxUSE_FONTENUM 1
44399 _ACEOF
44400
44401 fi
44402
44403 if test "$wxUSE_FONTMAP" = "yes" ; then
44404   cat >>confdefs.h <<\_ACEOF
44405 #define wxUSE_FONTMAP 1
44406 _ACEOF
44407
44408 fi
44409
44410 if test "$wxUSE_UNICODE" = "yes" ; then
44411   cat >>confdefs.h <<\_ACEOF
44412 #define wxUSE_UNICODE 1
44413 _ACEOF
44414
44415
44416   if test "$USE_WIN32" != 1; then
44417       wxUSE_UNICODE_MSLU=no
44418   fi
44419
44420   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44421         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44422 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44423 if test "${ac_cv_lib_unicows_main+set}" = set; then
44424   echo $ECHO_N "(cached) $ECHO_C" >&6
44425 else
44426   ac_check_lib_save_LIBS=$LIBS
44427 LIBS="-lunicows  $LIBS"
44428 cat >conftest.$ac_ext <<_ACEOF
44429 /* confdefs.h.  */
44430 _ACEOF
44431 cat confdefs.h >>conftest.$ac_ext
44432 cat >>conftest.$ac_ext <<_ACEOF
44433 /* end confdefs.h.  */
44434
44435
44436 int
44437 main ()
44438 {
44439 return main ();
44440   ;
44441   return 0;
44442 }
44443 _ACEOF
44444 rm -f conftest.$ac_objext conftest$ac_exeext
44445 if { (ac_try="$ac_link"
44446 case "(($ac_try" in
44447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44448   *) ac_try_echo=$ac_try;;
44449 esac
44450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44451   (eval "$ac_link") 2>conftest.er1
44452   ac_status=$?
44453   grep -v '^ *+' conftest.er1 >conftest.err
44454   rm -f conftest.er1
44455   cat conftest.err >&5
44456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44457   (exit $ac_status); } && {
44458          test -z "$ac_c_werror_flag" ||
44459          test ! -s conftest.err
44460        } && test -s conftest$ac_exeext &&
44461        $as_test_x conftest$ac_exeext; then
44462   ac_cv_lib_unicows_main=yes
44463 else
44464   echo "$as_me: failed program was:" >&5
44465 sed 's/^/| /' conftest.$ac_ext >&5
44466
44467         ac_cv_lib_unicows_main=no
44468 fi
44469
44470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44471       conftest$ac_exeext conftest.$ac_ext
44472 LIBS=$ac_check_lib_save_LIBS
44473 fi
44474 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44475 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
44476 if test $ac_cv_lib_unicows_main = yes; then
44477
44478                 cat >>confdefs.h <<\_ACEOF
44479 #define wxUSE_UNICODE_MSLU 1
44480 _ACEOF
44481
44482
44483 else
44484
44485                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44486                              Applications will only run on Windows NT/2000/XP!" >&5
44487 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44488                              Applications will only run on Windows NT/2000/XP!" >&2;}
44489                 wxUSE_UNICODE_MSLU=no
44490
44491 fi
44492
44493     fi
44494 fi
44495
44496 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
44497     cat >>confdefs.h <<\_ACEOF
44498 #define wxUSE_UNICODE_UTF8 1
44499 _ACEOF
44500
44501
44502     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
44503         cat >>confdefs.h <<\_ACEOF
44504 #define wxUSE_UTF8_LOCALE_ONLY 1
44505 _ACEOF
44506
44507     fi
44508 fi
44509
44510
44511 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44512     cat >>confdefs.h <<\_ACEOF
44513 #define wxUSE_CONSTRAINTS 1
44514 _ACEOF
44515
44516     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44517 fi
44518
44519 if test "$wxUSE_MDI" = "yes"; then
44520     cat >>confdefs.h <<\_ACEOF
44521 #define wxUSE_MDI 1
44522 _ACEOF
44523
44524
44525     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44526         cat >>confdefs.h <<\_ACEOF
44527 #define wxUSE_MDI_ARCHITECTURE 1
44528 _ACEOF
44529
44530         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44531     fi
44532 fi
44533
44534 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44535     cat >>confdefs.h <<\_ACEOF
44536 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44537 _ACEOF
44538
44539     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44540     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44541         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44542     fi
44543 fi
44544
44545 if test "$wxUSE_HELP" = "yes"; then
44546     cat >>confdefs.h <<\_ACEOF
44547 #define wxUSE_HELP 1
44548 _ACEOF
44549
44550     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44551
44552     if test "$wxUSE_MSW" = 1; then
44553       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44554         cat >>confdefs.h <<\_ACEOF
44555 #define wxUSE_MS_HTML_HELP 1
44556 _ACEOF
44557
44558       fi
44559     fi
44560
44561     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44562       if test "$wxUSE_HTML" = "yes"; then
44563         cat >>confdefs.h <<\_ACEOF
44564 #define wxUSE_WXHTML_HELP 1
44565 _ACEOF
44566
44567       else
44568         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44569 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44570         wxUSE_WXHTML_HELP=no
44571       fi
44572     fi
44573 fi
44574
44575 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44576     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44577         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44578 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44579     else
44580         cat >>confdefs.h <<\_ACEOF
44581 #define wxUSE_PRINTING_ARCHITECTURE 1
44582 _ACEOF
44583
44584     fi
44585     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44586 fi
44587
44588 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44589   cat >>confdefs.h <<\_ACEOF
44590 #define wxUSE_POSTSCRIPT 1
44591 _ACEOF
44592
44593 fi
44594
44595 cat >>confdefs.h <<\_ACEOF
44596 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44597 _ACEOF
44598
44599
44600 if test "$wxUSE_SVG" = "yes"; then
44601     cat >>confdefs.h <<\_ACEOF
44602 #define wxUSE_SVG 1
44603 _ACEOF
44604
44605 fi
44606
44607
44608 if test "$wxUSE_METAFILE" = "yes"; then
44609     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44610         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44611 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44612         wxUSE_METAFILE=no
44613     fi
44614 fi
44615
44616
44617 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44618                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44619                           -o "$wxUSE_OLE"     = "yes" \
44620                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44621     { echo "$as_me:$LINENO: checking for ole2.h" >&5
44622 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
44623 if test "${ac_cv_header_ole2_h+set}" = set; then
44624   echo $ECHO_N "(cached) $ECHO_C" >&6
44625 else
44626   cat >conftest.$ac_ext <<_ACEOF
44627 /* confdefs.h.  */
44628 _ACEOF
44629 cat confdefs.h >>conftest.$ac_ext
44630 cat >>conftest.$ac_ext <<_ACEOF
44631 /* end confdefs.h.  */
44632
44633
44634 #include <ole2.h>
44635 _ACEOF
44636 rm -f conftest.$ac_objext
44637 if { (ac_try="$ac_compile"
44638 case "(($ac_try" in
44639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44640   *) ac_try_echo=$ac_try;;
44641 esac
44642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44643   (eval "$ac_compile") 2>conftest.er1
44644   ac_status=$?
44645   grep -v '^ *+' conftest.er1 >conftest.err
44646   rm -f conftest.er1
44647   cat conftest.err >&5
44648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649   (exit $ac_status); } && {
44650          test -z "$ac_c_werror_flag" ||
44651          test ! -s conftest.err
44652        } && test -s conftest.$ac_objext; then
44653   ac_cv_header_ole2_h=yes
44654 else
44655   echo "$as_me: failed program was:" >&5
44656 sed 's/^/| /' conftest.$ac_ext >&5
44657
44658         ac_cv_header_ole2_h=no
44659 fi
44660
44661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44662 fi
44663 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
44664 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
44665
44666
44667
44668     if test "$ac_cv_header_ole2_h" = "yes" ; then
44669         if test "$GCC" = yes ; then
44670             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44671 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
44672             cat >conftest.$ac_ext <<_ACEOF
44673 /* confdefs.h.  */
44674 _ACEOF
44675 cat confdefs.h >>conftest.$ac_ext
44676 cat >>conftest.$ac_ext <<_ACEOF
44677 /* end confdefs.h.  */
44678 #include <windows.h>
44679                             #include <ole2.h>
44680 int
44681 main ()
44682 {
44683
44684   ;
44685   return 0;
44686 }
44687 _ACEOF
44688 rm -f conftest.$ac_objext
44689 if { (ac_try="$ac_compile"
44690 case "(($ac_try" in
44691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44692   *) ac_try_echo=$ac_try;;
44693 esac
44694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44695   (eval "$ac_compile") 2>conftest.er1
44696   ac_status=$?
44697   grep -v '^ *+' conftest.er1 >conftest.err
44698   rm -f conftest.er1
44699   cat conftest.err >&5
44700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701   (exit $ac_status); } && {
44702          test -z "$ac_c_werror_flag" ||
44703          test ! -s conftest.err
44704        } && test -s conftest.$ac_objext; then
44705   { echo "$as_me:$LINENO: result: no" >&5
44706 echo "${ECHO_T}no" >&6; }
44707 else
44708   echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44710
44711         { echo "$as_me:$LINENO: result: yes" >&5
44712 echo "${ECHO_T}yes" >&6; }
44713                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44714 fi
44715
44716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44717             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44718             if test "$wxUSE_OLE" = "yes" ; then
44719                 cat >>confdefs.h <<\_ACEOF
44720 #define wxUSE_OLE 1
44721 _ACEOF
44722
44723                 cat >>confdefs.h <<\_ACEOF
44724 #define wxUSE_OLE_AUTOMATION 1
44725 _ACEOF
44726
44727                 cat >>confdefs.h <<\_ACEOF
44728 #define wxUSE_ACTIVEX 1
44729 _ACEOF
44730
44731                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44732             fi
44733         fi
44734
44735                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44736             cat >>confdefs.h <<\_ACEOF
44737 #define wxUSE_DATAOBJ 1
44738 _ACEOF
44739
44740         fi
44741     else
44742         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44743 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44744
44745         wxUSE_CLIPBOARD=no
44746         wxUSE_DRAG_AND_DROP=no
44747         wxUSE_DATAOBJ=no
44748         wxUSE_OLE=no
44749     fi
44750
44751     if test "$wxUSE_METAFILE" = "yes"; then
44752         cat >>confdefs.h <<\_ACEOF
44753 #define wxUSE_METAFILE 1
44754 _ACEOF
44755
44756
44757                 cat >>confdefs.h <<\_ACEOF
44758 #define wxUSE_ENH_METAFILE 1
44759 _ACEOF
44760
44761     fi
44762 fi
44763
44764 if test "$wxUSE_IPC" = "yes"; then
44765     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44766         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44767 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44768         wxUSE_IPC=no
44769     fi
44770
44771     if test "$wxUSE_IPC" = "yes"; then
44772         cat >>confdefs.h <<\_ACEOF
44773 #define wxUSE_IPC 1
44774 _ACEOF
44775
44776         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44777     fi
44778 fi
44779
44780 if test "$wxUSE_DATAOBJ" = "yes"; then
44781     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44782         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
44783 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
44784         wxUSE_DATAOBJ=no
44785     else
44786         cat >>confdefs.h <<\_ACEOF
44787 #define wxUSE_DATAOBJ 1
44788 _ACEOF
44789
44790     fi
44791 else
44792     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44793 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44794     wxUSE_CLIPBOARD=no
44795     wxUSE_DRAG_AND_DROP=no
44796 fi
44797
44798 if test "$wxUSE_CLIPBOARD" = "yes"; then
44799     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44800         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
44801 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
44802         wxUSE_CLIPBOARD=no
44803     fi
44804
44805     if test "$wxUSE_CLIPBOARD" = "yes"; then
44806         cat >>confdefs.h <<\_ACEOF
44807 #define wxUSE_CLIPBOARD 1
44808 _ACEOF
44809
44810     fi
44811 fi
44812
44813 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44814     if test "$wxUSE_GTK" = 1; then
44815         if test "$WXGTK12" != 1; then
44816             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44817 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44818             wxUSE_DRAG_AND_DROP=no
44819         fi
44820     fi
44821
44822     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
44823             "$wxUSE_DFB" = 1; then
44824         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
44825 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
44826         wxUSE_DRAG_AND_DROP=no
44827     fi
44828
44829     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44830         cat >>confdefs.h <<\_ACEOF
44831 #define wxUSE_DRAG_AND_DROP 1
44832 _ACEOF
44833
44834     fi
44835
44836 fi
44837
44838 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44839     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44840 fi
44841
44842 if test "$wxUSE_SPLINES" = "yes" ; then
44843   cat >>confdefs.h <<\_ACEOF
44844 #define wxUSE_SPLINES 1
44845 _ACEOF
44846
44847 fi
44848
44849 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44850   cat >>confdefs.h <<\_ACEOF
44851 #define wxUSE_MOUSEWHEEL 1
44852 _ACEOF
44853
44854 fi
44855
44856
44857 USES_CONTROLS=0
44858 if test "$wxUSE_CONTROLS" = "yes"; then
44859   USES_CONTROLS=1
44860 fi
44861
44862 if test "$wxUSE_ACCEL" = "yes"; then
44863   cat >>confdefs.h <<\_ACEOF
44864 #define wxUSE_ACCEL 1
44865 _ACEOF
44866
44867   USES_CONTROLS=1
44868 fi
44869
44870 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
44871   cat >>confdefs.h <<\_ACEOF
44872 #define wxUSE_ANIMATIONCTRL 1
44873 _ACEOF
44874
44875   USES_CONTROLS=1
44876   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
44877 fi
44878
44879 if test "$wxUSE_BUTTON" = "yes"; then
44880   cat >>confdefs.h <<\_ACEOF
44881 #define wxUSE_BUTTON 1
44882 _ACEOF
44883
44884   USES_CONTROLS=1
44885 fi
44886
44887 if test "$wxUSE_BMPBUTTON" = "yes"; then
44888   cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_BMPBUTTON 1
44890 _ACEOF
44891
44892   USES_CONTROLS=1
44893 fi
44894
44895 if test "$wxUSE_CALCTRL" = "yes"; then
44896   cat >>confdefs.h <<\_ACEOF
44897 #define wxUSE_CALENDARCTRL 1
44898 _ACEOF
44899
44900   USES_CONTROLS=1
44901   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44902 fi
44903
44904 if test "$wxUSE_CARET" = "yes"; then
44905   cat >>confdefs.h <<\_ACEOF
44906 #define wxUSE_CARET 1
44907 _ACEOF
44908
44909   USES_CONTROLS=1
44910   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44911 fi
44912
44913 if test "$wxUSE_COLLPANE" = "yes"; then
44914     cat >>confdefs.h <<\_ACEOF
44915 #define wxUSE_COLLPANE 1
44916 _ACEOF
44917
44918     USES_CONTROLS=1
44919     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
44920 fi
44921
44922 if test "$wxUSE_COMBOBOX" = "yes"; then
44923   cat >>confdefs.h <<\_ACEOF
44924 #define wxUSE_COMBOBOX 1
44925 _ACEOF
44926
44927   USES_CONTROLS=1
44928 fi
44929
44930 if test "$wxUSE_COMBOCTRL" = "yes"; then
44931   cat >>confdefs.h <<\_ACEOF
44932 #define wxUSE_COMBOCTRL 1
44933 _ACEOF
44934
44935   USES_CONTROLS=1
44936 fi
44937
44938 if test "$wxUSE_CHOICE" = "yes"; then
44939   cat >>confdefs.h <<\_ACEOF
44940 #define wxUSE_CHOICE 1
44941 _ACEOF
44942
44943   USES_CONTROLS=1
44944 fi
44945
44946 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44947     cat >>confdefs.h <<\_ACEOF
44948 #define wxUSE_CHOICEBOOK 1
44949 _ACEOF
44950
44951     USES_CONTROLS=1
44952 fi
44953
44954 if test "$wxUSE_CHECKBOX" = "yes"; then
44955   cat >>confdefs.h <<\_ACEOF
44956 #define wxUSE_CHECKBOX 1
44957 _ACEOF
44958
44959   USES_CONTROLS=1
44960 fi
44961
44962 if test "$wxUSE_CHECKLST" = "yes"; then
44963   cat >>confdefs.h <<\_ACEOF
44964 #define wxUSE_CHECKLISTBOX 1
44965 _ACEOF
44966
44967   USES_CONTROLS=1
44968 fi
44969
44970 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44971   cat >>confdefs.h <<\_ACEOF
44972 #define wxUSE_COLOURPICKERCTRL 1
44973 _ACEOF
44974
44975   USES_CONTROLS=1
44976 fi
44977
44978 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44979   cat >>confdefs.h <<\_ACEOF
44980 #define wxUSE_DATEPICKCTRL 1
44981 _ACEOF
44982
44983   USES_CONTROLS=1
44984 fi
44985
44986 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44987   cat >>confdefs.h <<\_ACEOF
44988 #define wxUSE_DIRPICKERCTRL 1
44989 _ACEOF
44990
44991   USES_CONTROLS=1
44992 fi
44993
44994 if test "$wxUSE_FILECTRL" = "yes"; then
44995   cat >>confdefs.h <<\_ACEOF
44996 #define wxUSE_FILECTRL 1
44997 _ACEOF
44998
44999   USES_CONTROLS=1
45000 fi
45001
45002 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45003   cat >>confdefs.h <<\_ACEOF
45004 #define wxUSE_FILEPICKERCTRL 1
45005 _ACEOF
45006
45007   USES_CONTROLS=1
45008 fi
45009
45010 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45011   cat >>confdefs.h <<\_ACEOF
45012 #define wxUSE_FONTPICKERCTRL 1
45013 _ACEOF
45014
45015   USES_CONTROLS=1
45016 fi
45017
45018 if test "$wxUSE_DISPLAY" = "yes"; then
45019     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45020         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45021 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45022         wxUSE_DISPLAY=no
45023     else
45024         cat >>confdefs.h <<\_ACEOF
45025 #define wxUSE_DISPLAY 1
45026 _ACEOF
45027
45028         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45029     fi
45030 fi
45031
45032 if test "$wxUSE_DETECT_SM" = "yes"; then
45033     cat >>confdefs.h <<\_ACEOF
45034 #define wxUSE_DETECT_SM 1
45035 _ACEOF
45036
45037 fi
45038
45039 if test "$wxUSE_GAUGE" = "yes"; then
45040   cat >>confdefs.h <<\_ACEOF
45041 #define wxUSE_GAUGE 1
45042 _ACEOF
45043
45044   USES_CONTROLS=1
45045 fi
45046
45047 if test "$wxUSE_GRID" = "yes"; then
45048   cat >>confdefs.h <<\_ACEOF
45049 #define wxUSE_GRID 1
45050 _ACEOF
45051
45052   USES_CONTROLS=1
45053   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45054 fi
45055
45056 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45057   cat >>confdefs.h <<\_ACEOF
45058 #define wxUSE_HYPERLINKCTRL 1
45059 _ACEOF
45060
45061   USES_CONTROLS=1
45062 fi
45063
45064 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45065   cat >>confdefs.h <<\_ACEOF
45066 #define wxUSE_BITMAPCOMBOBOX 1
45067 _ACEOF
45068
45069   USES_CONTROLS=1
45070 fi
45071
45072 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45073   cat >>confdefs.h <<\_ACEOF
45074 #define wxUSE_DATAVIEWCTRL 1
45075 _ACEOF
45076
45077   USES_CONTROLS=1
45078   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45079 fi
45080
45081 if test "$wxUSE_IMAGLIST" = "yes"; then
45082     cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_IMAGLIST 1
45084 _ACEOF
45085
45086 fi
45087
45088 if test "$wxUSE_LISTBOOK" = "yes"; then
45089     cat >>confdefs.h <<\_ACEOF
45090 #define wxUSE_LISTBOOK 1
45091 _ACEOF
45092
45093     USES_CONTROLS=1
45094 fi
45095
45096 if test "$wxUSE_LISTBOX" = "yes"; then
45097     cat >>confdefs.h <<\_ACEOF
45098 #define wxUSE_LISTBOX 1
45099 _ACEOF
45100
45101     USES_CONTROLS=1
45102 fi
45103
45104 if test "$wxUSE_LISTCTRL" = "yes"; then
45105     if test "$wxUSE_IMAGLIST" = "yes"; then
45106         cat >>confdefs.h <<\_ACEOF
45107 #define wxUSE_LISTCTRL 1
45108 _ACEOF
45109
45110         USES_CONTROLS=1
45111         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45112     else
45113         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45114 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45115     fi
45116 fi
45117
45118 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45119     cat >>confdefs.h <<\_ACEOF
45120 #define wxUSE_EDITABLELISTBOX 1
45121 _ACEOF
45122
45123     USES_CONTROLS=1
45124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45125 fi
45126
45127 if test "$wxUSE_NOTEBOOK" = "yes"; then
45128     cat >>confdefs.h <<\_ACEOF
45129 #define wxUSE_NOTEBOOK 1
45130 _ACEOF
45131
45132     USES_CONTROLS=1
45133     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45134 fi
45135
45136 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45137   cat >>confdefs.h <<\_ACEOF
45138 #define wxUSE_ODCOMBOBOX 1
45139 _ACEOF
45140
45141   USES_CONTROLS=1
45142   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45143 fi
45144
45145 if test "$wxUSE_RADIOBOX" = "yes"; then
45146     cat >>confdefs.h <<\_ACEOF
45147 #define wxUSE_RADIOBOX 1
45148 _ACEOF
45149
45150     USES_CONTROLS=1
45151 fi
45152
45153 if test "$wxUSE_RADIOBTN" = "yes"; then
45154     cat >>confdefs.h <<\_ACEOF
45155 #define wxUSE_RADIOBTN 1
45156 _ACEOF
45157
45158     USES_CONTROLS=1
45159 fi
45160
45161 if test "$wxUSE_SASH" = "yes"; then
45162     cat >>confdefs.h <<\_ACEOF
45163 #define wxUSE_SASH 1
45164 _ACEOF
45165
45166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45167 fi
45168
45169 if test "$wxUSE_SCROLLBAR" = "yes"; then
45170     cat >>confdefs.h <<\_ACEOF
45171 #define wxUSE_SCROLLBAR 1
45172 _ACEOF
45173
45174     USES_CONTROLS=1
45175     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45176 fi
45177
45178 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45179     cat >>confdefs.h <<\_ACEOF
45180 #define wxUSE_SEARCHCTRL 1
45181 _ACEOF
45182
45183     USES_CONTROLS=1
45184 fi
45185
45186 if test "$wxUSE_SLIDER" = "yes"; then
45187     cat >>confdefs.h <<\_ACEOF
45188 #define wxUSE_SLIDER 1
45189 _ACEOF
45190
45191     USES_CONTROLS=1
45192 fi
45193
45194 if test "$wxUSE_SPINBTN" = "yes"; then
45195     cat >>confdefs.h <<\_ACEOF
45196 #define wxUSE_SPINBTN 1
45197 _ACEOF
45198
45199     USES_CONTROLS=1
45200 fi
45201
45202 if test "$wxUSE_SPINCTRL" = "yes"; then
45203     cat >>confdefs.h <<\_ACEOF
45204 #define wxUSE_SPINCTRL 1
45205 _ACEOF
45206
45207     USES_CONTROLS=1
45208 fi
45209
45210 if test "$wxUSE_SPLITTER" = "yes"; then
45211     cat >>confdefs.h <<\_ACEOF
45212 #define wxUSE_SPLITTER 1
45213 _ACEOF
45214
45215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45216 fi
45217
45218 if test "$wxUSE_STATBMP" = "yes"; then
45219     cat >>confdefs.h <<\_ACEOF
45220 #define wxUSE_STATBMP 1
45221 _ACEOF
45222
45223     USES_CONTROLS=1
45224 fi
45225
45226 if test "$wxUSE_STATBOX" = "yes"; then
45227     cat >>confdefs.h <<\_ACEOF
45228 #define wxUSE_STATBOX 1
45229 _ACEOF
45230
45231     USES_CONTROLS=1
45232 fi
45233
45234 if test "$wxUSE_STATTEXT" = "yes"; then
45235     cat >>confdefs.h <<\_ACEOF
45236 #define wxUSE_STATTEXT 1
45237 _ACEOF
45238
45239     USES_CONTROLS=1
45240 fi
45241
45242 if test "$wxUSE_STATLINE" = "yes"; then
45243     cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_STATLINE 1
45245 _ACEOF
45246
45247     USES_CONTROLS=1
45248 fi
45249
45250 if test "$wxUSE_STATUSBAR" = "yes"; then
45251         cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_NATIVE_STATUSBAR 1
45253 _ACEOF
45254
45255     cat >>confdefs.h <<\_ACEOF
45256 #define wxUSE_STATUSBAR 1
45257 _ACEOF
45258
45259     USES_CONTROLS=1
45260
45261     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45262 fi
45263
45264 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45265     cat >>confdefs.h <<\_ACEOF
45266 #define wxUSE_TAB_DIALOG 1
45267 _ACEOF
45268
45269 fi
45270
45271 if test "$wxUSE_TEXTCTRL" = "yes"; then
45272     cat >>confdefs.h <<\_ACEOF
45273 #define wxUSE_TEXTCTRL 1
45274 _ACEOF
45275
45276     USES_CONTROLS=1
45277     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45278 fi
45279
45280 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45281     if test "$wxUSE_COCOA" = 1 ; then
45282         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45283 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45284         wxUSE_TOGGLEBTN=no
45285     fi
45286
45287     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45288         cat >>confdefs.h <<\_ACEOF
45289 #define wxUSE_TOGGLEBTN 1
45290 _ACEOF
45291
45292         USES_CONTROLS=1
45293     fi
45294 fi
45295
45296 if test "$wxUSE_TOOLBAR" = "yes"; then
45297     cat >>confdefs.h <<\_ACEOF
45298 #define wxUSE_TOOLBAR 1
45299 _ACEOF
45300
45301     USES_CONTROLS=1
45302
45303     if test "$wxUSE_UNIVERSAL" = "yes"; then
45304         wxUSE_TOOLBAR_NATIVE="no"
45305     else
45306         wxUSE_TOOLBAR_NATIVE="yes"
45307         cat >>confdefs.h <<\_ACEOF
45308 #define wxUSE_TOOLBAR_NATIVE 1
45309 _ACEOF
45310
45311     fi
45312
45313     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45314 fi
45315
45316 if test "$wxUSE_TOOLTIPS" = "yes"; then
45317     if test "$wxUSE_MOTIF" = 1; then
45318         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45319 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45320     else
45321         if test "$wxUSE_UNIVERSAL" = "yes"; then
45322             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45323 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45324         else
45325             cat >>confdefs.h <<\_ACEOF
45326 #define wxUSE_TOOLTIPS 1
45327 _ACEOF
45328
45329         fi
45330     fi
45331 fi
45332
45333 if test "$wxUSE_TREEBOOK" = "yes"; then
45334     cat >>confdefs.h <<\_ACEOF
45335 #define wxUSE_TREEBOOK 1
45336 _ACEOF
45337
45338     USES_CONTROLS=1
45339 fi
45340
45341 if test "$wxUSE_TOOLBOOK" = "yes"; then
45342     cat >>confdefs.h <<\_ACEOF
45343 #define wxUSE_TOOLBOOK 1
45344 _ACEOF
45345
45346     USES_CONTROLS=1
45347 fi
45348
45349 if test "$wxUSE_TREECTRL" = "yes"; then
45350     if test "$wxUSE_IMAGLIST" = "yes"; then
45351         cat >>confdefs.h <<\_ACEOF
45352 #define wxUSE_TREECTRL 1
45353 _ACEOF
45354
45355         USES_CONTROLS=1
45356         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45357     else
45358         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45359 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45360     fi
45361 fi
45362
45363 if test "$wxUSE_POPUPWIN" = "yes"; then
45364     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45365         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45366 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45367     else
45368         if test "$wxUSE_PM" = 1; then
45369             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45370 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45371         else
45372             cat >>confdefs.h <<\_ACEOF
45373 #define wxUSE_POPUPWIN 1
45374 _ACEOF
45375
45376             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45377
45378             USES_CONTROLS=1
45379         fi
45380     fi
45381 fi
45382
45383 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45384     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45385         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45386 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45387     else
45388         cat >>confdefs.h <<\_ACEOF
45389 #define wxUSE_DIALUP_MANAGER 1
45390 _ACEOF
45391
45392         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45393     fi
45394 fi
45395
45396 if test "$wxUSE_TIPWINDOW" = "yes"; then
45397     if test "$wxUSE_PM" = 1; then
45398         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45399 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45400     else
45401         cat >>confdefs.h <<\_ACEOF
45402 #define wxUSE_TIPWINDOW 1
45403 _ACEOF
45404
45405     fi
45406 fi
45407
45408 if test "$USES_CONTROLS" = 1; then
45409     cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_CONTROLS 1
45411 _ACEOF
45412
45413 fi
45414
45415
45416 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45417     cat >>confdefs.h <<\_ACEOF
45418 #define wxUSE_ACCESSIBILITY 1
45419 _ACEOF
45420
45421     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45422 fi
45423
45424 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45425     cat >>confdefs.h <<\_ACEOF
45426 #define wxUSE_DRAGIMAGE 1
45427 _ACEOF
45428
45429     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45430 fi
45431
45432 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45433     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45434         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45435 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45436     else
45437         cat >>confdefs.h <<\_ACEOF
45438 #define wxUSE_EXCEPTIONS 1
45439 _ACEOF
45440
45441         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45442     fi
45443 fi
45444
45445 USE_HTML=0
45446 if test "$wxUSE_HTML" = "yes"; then
45447     cat >>confdefs.h <<\_ACEOF
45448 #define wxUSE_HTML 1
45449 _ACEOF
45450
45451     USE_HTML=1
45452     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45453     if test "$wxUSE_MAC" = 1; then
45454         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45455     fi
45456 fi
45457 if test "$wxUSE_WEBKIT" = "yes"; then
45458     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45459         old_CPPFLAGS="$CPPFLAGS"
45460         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45461         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45462 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
45463 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45464   echo $ECHO_N "(cached) $ECHO_C" >&6
45465 else
45466   cat >conftest.$ac_ext <<_ACEOF
45467 /* confdefs.h.  */
45468 _ACEOF
45469 cat confdefs.h >>conftest.$ac_ext
45470 cat >>conftest.$ac_ext <<_ACEOF
45471 /* end confdefs.h.  */
45472
45473                            #include <Carbon/Carbon.h>
45474                            #include <WebKit/WebKit.h>
45475
45476
45477 #include <WebKit/HIWebView.h>
45478 _ACEOF
45479 rm -f conftest.$ac_objext
45480 if { (ac_try="$ac_compile"
45481 case "(($ac_try" in
45482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45483   *) ac_try_echo=$ac_try;;
45484 esac
45485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45486   (eval "$ac_compile") 2>conftest.er1
45487   ac_status=$?
45488   grep -v '^ *+' conftest.er1 >conftest.err
45489   rm -f conftest.er1
45490   cat conftest.err >&5
45491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45492   (exit $ac_status); } && {
45493          test -z "$ac_c_werror_flag" ||
45494          test ! -s conftest.err
45495        } && test -s conftest.$ac_objext; then
45496   ac_cv_header_WebKit_HIWebView_h=yes
45497 else
45498   echo "$as_me: failed program was:" >&5
45499 sed 's/^/| /' conftest.$ac_ext >&5
45500
45501         ac_cv_header_WebKit_HIWebView_h=no
45502 fi
45503
45504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45505 fi
45506 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45507 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
45508 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45509
45510                            cat >>confdefs.h <<\_ACEOF
45511 #define wxUSE_WEBKIT 1
45512 _ACEOF
45513
45514                            WEBKIT_LINK="-framework WebKit"
45515
45516 else
45517
45518                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45519 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45520                            wxUSE_WEBKIT=no
45521
45522 fi
45523
45524
45525         CPPFLAGS="$old_CPPFLAGS"
45526     elif test "$wxUSE_COCOA" = 1; then
45527         cat >>confdefs.h <<\_ACEOF
45528 #define wxUSE_WEBKIT 1
45529 _ACEOF
45530
45531     else
45532         wxUSE_WEBKIT=no
45533     fi
45534 fi
45535
45536 USE_XRC=0
45537 if test "$wxUSE_XRC" = "yes"; then
45538     if test "$wxUSE_XML" != "yes"; then
45539         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45540 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45541         wxUSE_XRC=no
45542     else
45543         cat >>confdefs.h <<\_ACEOF
45544 #define wxUSE_XRC 1
45545 _ACEOF
45546
45547         USE_XRC=1
45548         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45549     fi
45550 fi
45551
45552 USE_AUI=0
45553 if test "$wxUSE_AUI" = "yes"; then
45554    cat >>confdefs.h <<\_ACEOF
45555 #define wxUSE_AUI 1
45556 _ACEOF
45557
45558    USE_AUI=1
45559    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45560 fi
45561
45562 USE_STC=0
45563 if test "$wxUSE_STC" = "yes"; then
45564    cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_STC 1
45566 _ACEOF
45567
45568    USE_STC=1
45569    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
45570 fi
45571
45572 if test "$wxUSE_MENUS" = "yes"; then
45573     cat >>confdefs.h <<\_ACEOF
45574 #define wxUSE_MENUS 1
45575 _ACEOF
45576
45577     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45578 fi
45579
45580 if test "$wxUSE_METAFILE" = "yes"; then
45581     cat >>confdefs.h <<\_ACEOF
45582 #define wxUSE_METAFILE 1
45583 _ACEOF
45584
45585 fi
45586
45587 if test "$wxUSE_MIMETYPE" = "yes"; then
45588     cat >>confdefs.h <<\_ACEOF
45589 #define wxUSE_MIMETYPE 1
45590 _ACEOF
45591
45592 fi
45593
45594 if test "$wxUSE_MINIFRAME" = "yes"; then
45595     cat >>confdefs.h <<\_ACEOF
45596 #define wxUSE_MINIFRAME 1
45597 _ACEOF
45598
45599 fi
45600
45601 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45602     cat >>confdefs.h <<\_ACEOF
45603 #define wxUSE_SYSTEM_OPTIONS 1
45604 _ACEOF
45605
45606 fi
45607
45608 if test "$wxUSE_TASKBARICON" = "yes"; then
45609     cat >>confdefs.h <<\_ACEOF
45610 #define wxUSE_TASKBARICON 1
45611 _ACEOF
45612
45613     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45614 fi
45615
45616
45617 if test "$wxUSE_VALIDATORS" = "yes"; then
45618     cat >>confdefs.h <<\_ACEOF
45619 #define wxUSE_VALIDATORS 1
45620 _ACEOF
45621
45622     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45623 fi
45624
45625 if test "$wxUSE_PALETTE" = "yes" ; then
45626     if test "$wxUSE_DFB" = 1; then
45627         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
45628 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
45629         wxUSE_PALETTE=no
45630     else
45631         cat >>confdefs.h <<\_ACEOF
45632 #define wxUSE_PALETTE 1
45633 _ACEOF
45634
45635     fi
45636 fi
45637
45638 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45639     LIBS=" -lunicows $LIBS"
45640 fi
45641
45642 USE_RICHTEXT=0
45643 if test "$wxUSE_RICHTEXT" = "yes"; then
45644     cat >>confdefs.h <<\_ACEOF
45645 #define wxUSE_RICHTEXT 1
45646 _ACEOF
45647
45648     USE_RICHTEXT=1
45649     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45650 fi
45651
45652
45653 if test "$wxUSE_IMAGE" = "yes" ; then
45654     cat >>confdefs.h <<\_ACEOF
45655 #define wxUSE_IMAGE 1
45656 _ACEOF
45657
45658
45659     if test "$wxUSE_GIF" = "yes" ; then
45660       cat >>confdefs.h <<\_ACEOF
45661 #define wxUSE_GIF 1
45662 _ACEOF
45663
45664     fi
45665
45666     if test "$wxUSE_PCX" = "yes" ; then
45667       cat >>confdefs.h <<\_ACEOF
45668 #define wxUSE_PCX 1
45669 _ACEOF
45670
45671     fi
45672
45673     if test "$wxUSE_TGA" = "yes" ; then
45674       cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_TGA 1
45676 _ACEOF
45677
45678     fi
45679
45680     if test "$wxUSE_IFF" = "yes" ; then
45681       cat >>confdefs.h <<\_ACEOF
45682 #define wxUSE_IFF 1
45683 _ACEOF
45684
45685     fi
45686
45687     if test "$wxUSE_PNM" = "yes" ; then
45688       cat >>confdefs.h <<\_ACEOF
45689 #define wxUSE_PNM 1
45690 _ACEOF
45691
45692     fi
45693
45694     if test "$wxUSE_XPM" = "yes" ; then
45695       cat >>confdefs.h <<\_ACEOF
45696 #define wxUSE_XPM 1
45697 _ACEOF
45698
45699     fi
45700
45701     if test "$wxUSE_ICO_CUR" = "yes" ; then
45702       cat >>confdefs.h <<\_ACEOF
45703 #define wxUSE_ICO_CUR 1
45704 _ACEOF
45705
45706     fi
45707 fi
45708
45709
45710 if test "$wxUSE_ABOUTDLG" = "yes"; then
45711     cat >>confdefs.h <<\_ACEOF
45712 #define wxUSE_ABOUTDLG 1
45713 _ACEOF
45714
45715 fi
45716
45717 if test "$wxUSE_CHOICEDLG" = "yes"; then
45718     cat >>confdefs.h <<\_ACEOF
45719 #define wxUSE_CHOICEDLG 1
45720 _ACEOF
45721
45722 fi
45723
45724 if test "$wxUSE_COLOURDLG" = "yes"; then
45725     cat >>confdefs.h <<\_ACEOF
45726 #define wxUSE_COLOURDLG 1
45727 _ACEOF
45728
45729 fi
45730
45731 if test "$wxUSE_FILEDLG" = "yes"; then
45732     cat >>confdefs.h <<\_ACEOF
45733 #define wxUSE_FILEDLG 1
45734 _ACEOF
45735
45736 fi
45737
45738 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45739     cat >>confdefs.h <<\_ACEOF
45740 #define wxUSE_FINDREPLDLG 1
45741 _ACEOF
45742
45743 fi
45744
45745 if test "$wxUSE_FONTDLG" = "yes"; then
45746     cat >>confdefs.h <<\_ACEOF
45747 #define wxUSE_FONTDLG 1
45748 _ACEOF
45749
45750 fi
45751
45752 if test "$wxUSE_DIRDLG" = "yes"; then
45753     if test "$wxUSE_TREECTRL" != "yes"; then
45754         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45755 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45756     else
45757         cat >>confdefs.h <<\_ACEOF
45758 #define wxUSE_DIRDLG 1
45759 _ACEOF
45760
45761     fi
45762 fi
45763
45764 if test "$wxUSE_MSGDLG" = "yes"; then
45765     cat >>confdefs.h <<\_ACEOF
45766 #define wxUSE_MSGDLG 1
45767 _ACEOF
45768
45769 fi
45770
45771 if test "$wxUSE_NUMBERDLG" = "yes"; then
45772     cat >>confdefs.h <<\_ACEOF
45773 #define wxUSE_NUMBERDLG 1
45774 _ACEOF
45775
45776 fi
45777
45778 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45779     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45780        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45781 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45782     else
45783         cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_PROGRESSDLG 1
45785 _ACEOF
45786
45787     fi
45788 fi
45789
45790 if test "$wxUSE_SPLASH" = "yes"; then
45791     cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_SPLASH 1
45793 _ACEOF
45794
45795     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45796 fi
45797
45798 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45799     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45800        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45801 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45802     else
45803         cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_STARTUP_TIPS 1
45805 _ACEOF
45806
45807     fi
45808 fi
45809
45810 if test "$wxUSE_TEXTDLG" = "yes"; then
45811     cat >>confdefs.h <<\_ACEOF
45812 #define wxUSE_TEXTDLG 1
45813 _ACEOF
45814
45815 fi
45816
45817 if test "$wxUSE_WIZARDDLG" = "yes"; then
45818     cat >>confdefs.h <<\_ACEOF
45819 #define wxUSE_WIZARDDLG 1
45820 _ACEOF
45821
45822     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45823 fi
45824
45825
45826 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
45827     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
45828         cat >>confdefs.h <<\_ACEOF
45829 #define wxUSE_OWNER_DRAWN 1
45830 _ACEOF
45831
45832     fi
45833 fi
45834
45835
45836 if test "$wxUSE_MSW" = 1 ; then
45837
45838     if test "$wxUSE_DC_CACHEING" = "yes"; then
45839         cat >>confdefs.h <<\_ACEOF
45840 #define wxUSE_DC_CACHEING 1
45841 _ACEOF
45842
45843     fi
45844
45845     if test "$wxUSE_DIB" = "yes"; then
45846         cat >>confdefs.h <<\_ACEOF
45847 #define wxUSE_WXDIB 1
45848 _ACEOF
45849
45850     fi
45851
45852     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
45853         cat >>confdefs.h <<\_ACEOF
45854 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
45855 _ACEOF
45856
45857     fi
45858
45859     if test "$wxUSE_UXTHEME" = "yes"; then
45860         cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_UXTHEME 1
45862 _ACEOF
45863
45864     fi
45865
45866 fi
45867
45868
45869 if test "$USE_WIN32" = 1 ; then
45870     if test "$wxUSE_INICONF" = "yes"; then
45871         cat >>confdefs.h <<\_ACEOF
45872 #define wxUSE_INICONF 1
45873 _ACEOF
45874
45875     fi
45876
45877     if test "$wxUSE_REGKEY" = "yes"; then
45878         cat >>confdefs.h <<\_ACEOF
45879 #define wxUSE_REGKEY 1
45880 _ACEOF
45881
45882     fi
45883 fi
45884
45885
45886 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45887    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
45888       cat >>confdefs.h <<\_ACEOF
45889 #define wxUSE_GRAPHICS_CONTEXT 1
45890 _ACEOF
45891
45892    elif test "$wxUSE_GTK" != 1; then
45893             cat >>confdefs.h <<\_ACEOF
45894 #define wxUSE_GRAPHICS_CONTEXT 1
45895 _ACEOF
45896
45897    else
45898
45899 pkg_failed=no
45900 { echo "$as_me:$LINENO: checking for CAIRO" >&5
45901 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
45902
45903 if test -n "$PKG_CONFIG"; then
45904     if test -n "$CAIRO_CFLAGS"; then
45905         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
45906     else
45907         if test -n "$PKG_CONFIG" && \
45908     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45909   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45910   ac_status=$?
45911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45912   (exit $ac_status); }; then
45913   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
45914 else
45915   pkg_failed=yes
45916 fi
45917     fi
45918 else
45919         pkg_failed=untried
45920 fi
45921 if test -n "$PKG_CONFIG"; then
45922     if test -n "$CAIRO_LIBS"; then
45923         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
45924     else
45925         if test -n "$PKG_CONFIG" && \
45926     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45927   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45928   ac_status=$?
45929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930   (exit $ac_status); }; then
45931   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
45932 else
45933   pkg_failed=yes
45934 fi
45935     fi
45936 else
45937         pkg_failed=untried
45938 fi
45939
45940
45941
45942 if test $pkg_failed = yes; then
45943
45944 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45945         _pkg_short_errors_supported=yes
45946 else
45947         _pkg_short_errors_supported=no
45948 fi
45949         if test $_pkg_short_errors_supported = yes; then
45950                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
45951         else
45952                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
45953         fi
45954         # Put the nasty error message in config.log where it belongs
45955         echo "$CAIRO_PKG_ERRORS" >&5
45956
45957         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
45958 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
45959
45960 elif test $pkg_failed = untried; then
45961         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
45962 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
45963
45964 else
45965         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
45966         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
45967         { echo "$as_me:$LINENO: result: yes" >&5
45968 echo "${ECHO_T}yes" >&6; }
45969         cat >>confdefs.h <<\_ACEOF
45970 #define wxUSE_GRAPHICS_CONTEXT 1
45971 _ACEOF
45972
45973 fi
45974    fi
45975 fi
45976
45977
45978 USE_MEDIA=0
45979
45980 if test "$wxUSE_MEDIACTRL" = "yes"; then
45981     USE_MEDIA=1
45982
45983                 if test "$wxUSE_GTK" = 1; then
45984         wxUSE_GSTREAMER="no"
45985
45986                                                                 GST_VERSION_MAJOR=0
45987         GST_VERSION_MINOR=10
45988         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45989
45990         if test "$wxUSE_GSTREAMER8" = "no"; then
45991
45992 pkg_failed=no
45993 { echo "$as_me:$LINENO: checking for GST" >&5
45994 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
45995
45996 if test -n "$PKG_CONFIG"; then
45997     if test -n "$GST_CFLAGS"; then
45998         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45999     else
46000         if test -n "$PKG_CONFIG" && \
46001     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46002   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46003   ac_status=$?
46004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46005   (exit $ac_status); }; then
46006   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46007 else
46008   pkg_failed=yes
46009 fi
46010     fi
46011 else
46012         pkg_failed=untried
46013 fi
46014 if test -n "$PKG_CONFIG"; then
46015     if test -n "$GST_LIBS"; then
46016         pkg_cv_GST_LIBS="$GST_LIBS"
46017     else
46018         if test -n "$PKG_CONFIG" && \
46019     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46020   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46021   ac_status=$?
46022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46023   (exit $ac_status); }; then
46024   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46025 else
46026   pkg_failed=yes
46027 fi
46028     fi
46029 else
46030         pkg_failed=untried
46031 fi
46032
46033
46034
46035 if test $pkg_failed = yes; then
46036
46037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46038         _pkg_short_errors_supported=yes
46039 else
46040         _pkg_short_errors_supported=no
46041 fi
46042         if test $_pkg_short_errors_supported = yes; then
46043                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46044         else
46045                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46046         fi
46047         # Put the nasty error message in config.log where it belongs
46048         echo "$GST_PKG_ERRORS" >&5
46049
46050
46051                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46052 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46053                     GST_VERSION_MINOR=8
46054
46055
46056 elif test $pkg_failed = untried; then
46057
46058                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46059 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46060                     GST_VERSION_MINOR=8
46061
46062
46063 else
46064         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46065         GST_LIBS=$pkg_cv_GST_LIBS
46066         { echo "$as_me:$LINENO: result: yes" >&5
46067 echo "${ECHO_T}yes" >&6; }
46068
46069                     wxUSE_GSTREAMER="yes"
46070                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46071
46072 fi
46073         else
46074                         GST_VERSION_MINOR=8
46075         fi
46076
46077         if test $GST_VERSION_MINOR = "8"; then
46078             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46079
46080 pkg_failed=no
46081 { echo "$as_me:$LINENO: checking for GST" >&5
46082 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46083
46084 if test -n "$PKG_CONFIG"; then
46085     if test -n "$GST_CFLAGS"; then
46086         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46087     else
46088         if test -n "$PKG_CONFIG" && \
46089     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46090   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46091   ac_status=$?
46092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46093   (exit $ac_status); }; then
46094   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46095 else
46096   pkg_failed=yes
46097 fi
46098     fi
46099 else
46100         pkg_failed=untried
46101 fi
46102 if test -n "$PKG_CONFIG"; then
46103     if test -n "$GST_LIBS"; then
46104         pkg_cv_GST_LIBS="$GST_LIBS"
46105     else
46106         if test -n "$PKG_CONFIG" && \
46107     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46108   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46109   ac_status=$?
46110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46111   (exit $ac_status); }; then
46112   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46113 else
46114   pkg_failed=yes
46115 fi
46116     fi
46117 else
46118         pkg_failed=untried
46119 fi
46120
46121
46122
46123 if test $pkg_failed = yes; then
46124
46125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46126         _pkg_short_errors_supported=yes
46127 else
46128         _pkg_short_errors_supported=no
46129 fi
46130         if test $_pkg_short_errors_supported = yes; then
46131                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46132         else
46133                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46134         fi
46135         # Put the nasty error message in config.log where it belongs
46136         echo "$GST_PKG_ERRORS" >&5
46137
46138
46139                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46140 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46141
46142 elif test $pkg_failed = untried; then
46143
46144                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46145 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46146
46147 else
46148         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46149         GST_LIBS=$pkg_cv_GST_LIBS
46150         { echo "$as_me:$LINENO: result: yes" >&5
46151 echo "${ECHO_T}yes" >&6; }
46152         wxUSE_GSTREAMER="yes"
46153 fi
46154         fi
46155
46156
46157         if test "$wxUSE_GSTREAMER" = "yes"; then
46158             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46159             EXTRALIBS_MEDIA="$GST_LIBS"
46160
46161             cat >>confdefs.h <<\_ACEOF
46162 #define wxUSE_GSTREAMER 1
46163 _ACEOF
46164
46165         else
46166             USE_MEDIA=0
46167         fi
46168     fi
46169
46170     if test $USE_MEDIA = 1; then
46171         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46172         cat >>confdefs.h <<\_ACEOF
46173 #define wxUSE_MEDIACTRL 1
46174 _ACEOF
46175
46176     fi
46177 fi
46178
46179
46180 if test "$cross_compiling" = "yes"; then
46181         OSINFO="\"$host\""
46182 else
46183         OSINFO=`uname -s -r -m`
46184     OSINFO="\"$OSINFO\""
46185 fi
46186
46187 cat >>confdefs.h <<_ACEOF
46188 #define WXWIN_OS_DESCRIPTION $OSINFO
46189 _ACEOF
46190
46191
46192
46193 if test "x$prefix" != "xNONE"; then
46194     wxPREFIX=$prefix
46195 else
46196     wxPREFIX=$ac_default_prefix
46197 fi
46198
46199 cat >>confdefs.h <<_ACEOF
46200 #define wxINSTALL_PREFIX "$wxPREFIX"
46201 _ACEOF
46202
46203
46204
46205
46206 STD_BASE_LIBS="base"
46207 STD_GUI_LIBS=""
46208 BUILT_WX_LIBS="base"
46209 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46210
46211 if test "$wxUSE_SOCKETS" = "yes" ; then
46212     STD_BASE_LIBS="net $STD_BASE_LIBS"
46213     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46214 fi
46215 if test "$wxUSE_XML" = "yes" ; then
46216     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46217     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46218 fi
46219
46220 if test "$wxUSE_GUI" = "yes"; then
46221     STD_GUI_LIBS="adv core"
46222     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46223
46224     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46225         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46226         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46227     fi
46228     if test "$wxUSE_HTML" = "yes" ; then
46229         STD_GUI_LIBS="html $STD_GUI_LIBS"
46230         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46231     fi
46232     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46233         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46234     fi
46235     if test "$wxUSE_OPENGL" = "yes" ; then
46236         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46237     fi
46238     if test "$wxUSE_AUI" = "yes" ; then
46239         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46240     fi
46241     if test "$wxUSE_STC" = "yes" ; then
46242         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46243     fi
46244     if test "$wxUSE_XRC" = "yes" ; then
46245         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46246         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46247     fi
46248 fi
46249
46250
46251
46252
46253
46254
46255
46256
46257 if test "$wxUSE_MAC" = 1 ; then
46258     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46259         if test "$USE_DARWIN" = 1; then
46260             LDFLAGS="$LDFLAGS -framework QuickTime"
46261         else
46262             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46263         fi
46264     fi
46265     if test "$USE_DARWIN" = 1; then
46266         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46267     else
46268         LDFLAGS="$LDFLAGS -lCarbonLib"
46269     fi
46270 fi
46271 if test "$wxUSE_COCOA" = 1 ; then
46272     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46273     if test "$wxUSE_MEDIACTRL" = "yes"; then
46274         LDFLAGS="$LDFLAGS -framework QuickTime"
46275     fi
46276 fi
46277 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46278     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46279 fi
46280
46281 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46282
46283 if test "$wxUSE_GUI" = "yes"; then
46284
46285
46286         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46287                      erase event exec font image minimal mobile \
46288                      mobile/wxedit mobile/styles render \
46289                      shaped svg taborder vscroll widgets"
46290
46291     if test "$wxUSE_MONOLITHIC" != "yes"; then
46292         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46293     fi
46294     if test "$TOOLKIT" = "MSW"; then
46295         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46296         if test "$wxUSE_UNIVERSAL" != "yes"; then
46297             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46298         fi
46299     fi
46300     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46301         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46302     fi
46303 else
46304     SAMPLES_SUBDIRS="console"
46305 fi
46306
46307
46308 if test "x$INTELCC" = "xyes" ; then
46309                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46310 elif test "$GCC" = yes ; then
46311     CWARNINGS="-Wall -Wundef"
46312 fi
46313
46314 if test "x$INTELCXX" = "xyes" ; then
46315                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46316 elif test "$GXX" = yes ; then
46317         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46318 fi
46319
46320
46321 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46322 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46323
46324
46325 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46326  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46327  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46328  $CPPFLAGS `
46329
46330 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46331 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46332 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46333
46334 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46335
46336
46337 if test "x$MWCC" = "xyes"; then
46338
46339             CC="$CC -cwd source -I-"
46340     CXX="$CXX -cwd source -I-"
46341 fi
46342
46343
46344 LIBS=`echo $LIBS`
46345 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46346 EXTRALIBS_XML="$EXPAT_LINK"
46347 EXTRALIBS_HTML="$MSPACK_LINK"
46348 EXTRALIBS_MEDIA="$GST_LIBS"
46349 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46350 if test "$wxUSE_GUI" = "yes"; then
46351     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46352 fi
46353 if test "$wxUSE_OPENGL" = "yes"; then
46354     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46355 fi
46356
46357 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46358
46359 WXCONFIG_LIBS="$LIBS"
46360
46361 if test "$wxUSE_REGEX" = "builtin" ; then
46362     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46363 fi
46364 if test "$wxUSE_EXPAT" = "builtin" ; then
46365     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46366 fi
46367 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46368     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46369 fi
46370 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46371     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46372 fi
46373 if test "$wxUSE_LIBPNG" = "builtin" ; then
46374     wxconfig_3rdparty="png $wxconfig_3rdparty"
46375 fi
46376 if test "$wxUSE_ZLIB" = "builtin" ; then
46377     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46378 fi
46379
46380 for i in $wxconfig_3rdparty ; do
46381     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46382 done
46383
46384
46385 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46386     WXUNIV=1
46387
46388     case "$wxUNIV_THEMES" in
46389         ''|all)
46390             cat >>confdefs.h <<\_ACEOF
46391 #define wxUSE_ALL_THEMES 1
46392 _ACEOF
46393
46394             ;;
46395
46396         *)
46397             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46398                 cat >>confdefs.h <<_ACEOF
46399 #define wxUSE_THEME_$t 1
46400 _ACEOF
46401
46402             done
46403     esac
46404 else
46405     WXUNIV=0
46406 fi
46407
46408
46409
46410
46411
46412
46413
46414
46415 if test $wxUSE_MONOLITHIC = "yes" ; then
46416     MONOLITHIC=1
46417 else
46418     MONOLITHIC=0
46419 fi
46420
46421 if test $wxUSE_PLUGINS = "yes" ; then
46422     USE_PLUGINS=1
46423 else
46424     USE_PLUGINS=0
46425 fi
46426
46427 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46428     USE_QA=1
46429 else
46430     USE_QA=0
46431 fi
46432
46433 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46434     OFFICIAL_BUILD=1
46435 else
46436     OFFICIAL_BUILD=0
46437 fi
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr A-Z a-z`
46466
46467
46468
46469
46470
46471
46472
46473
46474 case "$TOOLKIT" in
46475     GTK)
46476         TOOLKIT_DESC="GTK+"
46477         if test "$WXGTK2" = 1; then
46478             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46479             if test "$wxUSE_GTKPRINT" = "yes" ; then
46480                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
46481             fi
46482             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46483                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46484             fi
46485             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46486                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46487             fi
46488             if test "$wxUSE_LIBHILDON" = "yes"; then
46489                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46490             fi
46491
46492             if test "$TOOLKIT_EXTRA" != ""; then
46493                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46494             fi
46495         fi
46496         ;;
46497
46498     ?*)
46499         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46500         ;;
46501
46502     *)
46503         TOOLKIT_DESC="base only"
46504         ;;
46505 esac
46506
46507 if test "$wxUSE_WINE" = "yes"; then
46508     BAKEFILE_FORCE_PLATFORM=win32
46509 fi
46510
46511 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
46512 then
46513     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
46514 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
46515 if test "${wx_cv_gcc_pch_bug+set}" = set; then
46516   echo $ECHO_N "(cached) $ECHO_C" >&6
46517 else
46518
46519             echo '#include <stdio.h>
46520                   const wchar_t test_var[] = L"awidetest";' > conftest.h
46521
46522             echo '#include "conftest.h"
46523                   int main()
46524                   {
46525                      printf("%ls", test_var);
46526                      return 0;
46527                   }' > conftest.cpp
46528
46529             wx_cv_gcc_pch_bug="pch not supported"
46530
46531             if $CXX conftest.h >/dev/null 2>&1
46532             then
46533                 wx_cv_gcc_pch_bug=
46534
46535                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
46536                 then
46537                     if tr -dc a-z < conftest$PROGRAM_EXT |
46538                         grep awidetest >/dev/null
46539                     then
46540                         wx_cv_gcc_pch_bug=no
46541                     else
46542                         wx_cv_gcc_pch_bug=yes
46543                     fi
46544                 fi
46545             fi
46546
46547             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
46548
46549 fi
46550 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
46551 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
46552
46553     if test "$wx_cv_gcc_pch_bug" = yes; then
46554                         bk_use_pch=no
46555     fi
46556 fi
46557
46558
46559
46560
46561     if test "x$BAKEFILE_HOST" = "x"; then
46562                if test "x${host}" = "x" ; then
46563                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46564 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46565    { (exit 1); exit 1; }; }
46566                fi
46567
46568         BAKEFILE_HOST="${host}"
46569     fi
46570
46571     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46572
46573     if test -n "$ac_tool_prefix"; then
46574   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46578 if test "${ac_cv_prog_RANLIB+set}" = set; then
46579   echo $ECHO_N "(cached) $ECHO_C" >&6
46580 else
46581   if test -n "$RANLIB"; then
46582   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46583 else
46584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46585 for as_dir in $PATH
46586 do
46587   IFS=$as_save_IFS
46588   test -z "$as_dir" && as_dir=.
46589   for ac_exec_ext in '' $ac_executable_extensions; do
46590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46591     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46593     break 2
46594   fi
46595 done
46596 done
46597 IFS=$as_save_IFS
46598
46599 fi
46600 fi
46601 RANLIB=$ac_cv_prog_RANLIB
46602 if test -n "$RANLIB"; then
46603   { echo "$as_me:$LINENO: result: $RANLIB" >&5
46604 echo "${ECHO_T}$RANLIB" >&6; }
46605 else
46606   { echo "$as_me:$LINENO: result: no" >&5
46607 echo "${ECHO_T}no" >&6; }
46608 fi
46609
46610
46611 fi
46612 if test -z "$ac_cv_prog_RANLIB"; then
46613   ac_ct_RANLIB=$RANLIB
46614   # Extract the first word of "ranlib", so it can be a program name with args.
46615 set dummy ranlib; ac_word=$2
46616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46619   echo $ECHO_N "(cached) $ECHO_C" >&6
46620 else
46621   if test -n "$ac_ct_RANLIB"; then
46622   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46623 else
46624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46625 for as_dir in $PATH
46626 do
46627   IFS=$as_save_IFS
46628   test -z "$as_dir" && as_dir=.
46629   for ac_exec_ext in '' $ac_executable_extensions; do
46630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46631     ac_cv_prog_ac_ct_RANLIB="ranlib"
46632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46633     break 2
46634   fi
46635 done
46636 done
46637 IFS=$as_save_IFS
46638
46639 fi
46640 fi
46641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46642 if test -n "$ac_ct_RANLIB"; then
46643   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46644 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
46645 else
46646   { echo "$as_me:$LINENO: result: no" >&5
46647 echo "${ECHO_T}no" >&6; }
46648 fi
46649
46650   if test "x$ac_ct_RANLIB" = x; then
46651     RANLIB=":"
46652   else
46653     case $cross_compiling:$ac_tool_warned in
46654 yes:)
46655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46656 whose name does not start with the host triplet.  If you think this
46657 configuration is useful to you, please write to autoconf@gnu.org." >&5
46658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46659 whose name does not start with the host triplet.  If you think this
46660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46661 ac_tool_warned=yes ;;
46662 esac
46663     RANLIB=$ac_ct_RANLIB
46664   fi
46665 else
46666   RANLIB="$ac_cv_prog_RANLIB"
46667 fi
46668
46669     # Find a good install program.  We prefer a C program (faster),
46670 # so one script is as good as another.  But avoid the broken or
46671 # incompatible versions:
46672 # SysV /etc/install, /usr/sbin/install
46673 # SunOS /usr/etc/install
46674 # IRIX /sbin/install
46675 # AIX /bin/install
46676 # AmigaOS /C/install, which installs bootblocks on floppy discs
46677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46680 # OS/2's system install, which has a completely different semantic
46681 # ./install, which can be erroneously created by make from ./install.sh.
46682 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
46684 if test -z "$INSTALL"; then
46685 if test "${ac_cv_path_install+set}" = set; then
46686   echo $ECHO_N "(cached) $ECHO_C" >&6
46687 else
46688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46689 for as_dir in $PATH
46690 do
46691   IFS=$as_save_IFS
46692   test -z "$as_dir" && as_dir=.
46693   # Account for people who put trailing slashes in PATH elements.
46694 case $as_dir/ in
46695   ./ | .// | /cC/* | \
46696   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46697   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46698   /usr/ucb/* ) ;;
46699   *)
46700     # OSF1 and SCO ODT 3.0 have their own names for install.
46701     # Don't use installbsd from OSF since it installs stuff as root
46702     # by default.
46703     for ac_prog in ginstall scoinst install; do
46704       for ac_exec_ext in '' $ac_executable_extensions; do
46705         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
46706           if test $ac_prog = install &&
46707             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46708             # AIX install.  It has an incompatible calling convention.
46709             :
46710           elif test $ac_prog = install &&
46711             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46712             # program-specific install script used by HP pwplus--don't use.
46713             :
46714           else
46715             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46716             break 3
46717           fi
46718         fi
46719       done
46720     done
46721     ;;
46722 esac
46723 done
46724 IFS=$as_save_IFS
46725
46726
46727 fi
46728   if test "${ac_cv_path_install+set}" = set; then
46729     INSTALL=$ac_cv_path_install
46730   else
46731     # As a last resort, use the slow shell script.  Don't cache a
46732     # value for INSTALL within a source directory, because that will
46733     # break other packages using the cache if that directory is
46734     # removed, or if the value is a relative name.
46735     INSTALL=$ac_install_sh
46736   fi
46737 fi
46738 { echo "$as_me:$LINENO: result: $INSTALL" >&5
46739 echo "${ECHO_T}$INSTALL" >&6; }
46740
46741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46742 # It thinks the first close brace ends the variable substitution.
46743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46744
46745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46746
46747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46748
46749     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
46750 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
46751 LN_S=$as_ln_s
46752 if test "$LN_S" = "ln -s"; then
46753   { echo "$as_me:$LINENO: result: yes" >&5
46754 echo "${ECHO_T}yes" >&6; }
46755 else
46756   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46757 echo "${ECHO_T}no, using $LN_S" >&6; }
46758 fi
46759
46760
46761     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
46763 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
46764 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
46765   echo $ECHO_N "(cached) $ECHO_C" >&6
46766 else
46767   cat >conftest.make <<\_ACEOF
46768 SHELL = /bin/sh
46769 all:
46770         @echo '@@@%%%=$(MAKE)=@@@%%%'
46771 _ACEOF
46772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46773 case `${MAKE-make} -f conftest.make 2>/dev/null` in
46774   *@@@%%%=?*=@@@%%%*)
46775     eval ac_cv_prog_make_${ac_make}_set=yes;;
46776   *)
46777     eval ac_cv_prog_make_${ac_make}_set=no;;
46778 esac
46779 rm -f conftest.make
46780 fi
46781 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
46782   { echo "$as_me:$LINENO: result: yes" >&5
46783 echo "${ECHO_T}yes" >&6; }
46784   SET_MAKE=
46785 else
46786   { echo "$as_me:$LINENO: result: no" >&5
46787 echo "${ECHO_T}no" >&6; }
46788   SET_MAKE="MAKE=${MAKE-make}"
46789 fi
46790
46791
46792
46793     if test "x$SUNCXX" = "xyes"; then
46794                                 AR=$CXX
46795         AROPTIONS="-xar -o"
46796
46797     elif test "x$SGICC" = "xyes"; then
46798                 AR=$CXX
46799         AROPTIONS="-ar -o"
46800
46801     else
46802         if test -n "$ac_tool_prefix"; then
46803   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46804 set dummy ${ac_tool_prefix}ar; ac_word=$2
46805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46807 if test "${ac_cv_prog_AR+set}" = set; then
46808   echo $ECHO_N "(cached) $ECHO_C" >&6
46809 else
46810   if test -n "$AR"; then
46811   ac_cv_prog_AR="$AR" # Let the user override the test.
46812 else
46813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46814 for as_dir in $PATH
46815 do
46816   IFS=$as_save_IFS
46817   test -z "$as_dir" && as_dir=.
46818   for ac_exec_ext in '' $ac_executable_extensions; do
46819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46820     ac_cv_prog_AR="${ac_tool_prefix}ar"
46821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46822     break 2
46823   fi
46824 done
46825 done
46826 IFS=$as_save_IFS
46827
46828 fi
46829 fi
46830 AR=$ac_cv_prog_AR
46831 if test -n "$AR"; then
46832   { echo "$as_me:$LINENO: result: $AR" >&5
46833 echo "${ECHO_T}$AR" >&6; }
46834 else
46835   { echo "$as_me:$LINENO: result: no" >&5
46836 echo "${ECHO_T}no" >&6; }
46837 fi
46838
46839
46840 fi
46841 if test -z "$ac_cv_prog_AR"; then
46842   ac_ct_AR=$AR
46843   # Extract the first word of "ar", so it can be a program name with args.
46844 set dummy ar; ac_word=$2
46845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46847 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46848   echo $ECHO_N "(cached) $ECHO_C" >&6
46849 else
46850   if test -n "$ac_ct_AR"; then
46851   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46852 else
46853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46854 for as_dir in $PATH
46855 do
46856   IFS=$as_save_IFS
46857   test -z "$as_dir" && as_dir=.
46858   for ac_exec_ext in '' $ac_executable_extensions; do
46859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46860     ac_cv_prog_ac_ct_AR="ar"
46861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46862     break 2
46863   fi
46864 done
46865 done
46866 IFS=$as_save_IFS
46867
46868 fi
46869 fi
46870 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46871 if test -n "$ac_ct_AR"; then
46872   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46873 echo "${ECHO_T}$ac_ct_AR" >&6; }
46874 else
46875   { echo "$as_me:$LINENO: result: no" >&5
46876 echo "${ECHO_T}no" >&6; }
46877 fi
46878
46879   if test "x$ac_ct_AR" = x; then
46880     AR="ar"
46881   else
46882     case $cross_compiling:$ac_tool_warned in
46883 yes:)
46884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46885 whose name does not start with the host triplet.  If you think this
46886 configuration is useful to you, please write to autoconf@gnu.org." >&5
46887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46888 whose name does not start with the host triplet.  If you think this
46889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46890 ac_tool_warned=yes ;;
46891 esac
46892     AR=$ac_ct_AR
46893   fi
46894 else
46895   AR="$ac_cv_prog_AR"
46896 fi
46897
46898         AROPTIONS=rcu
46899     fi
46900
46901
46902     if test -n "$ac_tool_prefix"; then
46903   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46904 set dummy ${ac_tool_prefix}strip; ac_word=$2
46905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46907 if test "${ac_cv_prog_STRIP+set}" = set; then
46908   echo $ECHO_N "(cached) $ECHO_C" >&6
46909 else
46910   if test -n "$STRIP"; then
46911   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46912 else
46913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46914 for as_dir in $PATH
46915 do
46916   IFS=$as_save_IFS
46917   test -z "$as_dir" && as_dir=.
46918   for ac_exec_ext in '' $ac_executable_extensions; do
46919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46920     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46922     break 2
46923   fi
46924 done
46925 done
46926 IFS=$as_save_IFS
46927
46928 fi
46929 fi
46930 STRIP=$ac_cv_prog_STRIP
46931 if test -n "$STRIP"; then
46932   { echo "$as_me:$LINENO: result: $STRIP" >&5
46933 echo "${ECHO_T}$STRIP" >&6; }
46934 else
46935   { echo "$as_me:$LINENO: result: no" >&5
46936 echo "${ECHO_T}no" >&6; }
46937 fi
46938
46939
46940 fi
46941 if test -z "$ac_cv_prog_STRIP"; then
46942   ac_ct_STRIP=$STRIP
46943   # Extract the first word of "strip", so it can be a program name with args.
46944 set dummy strip; ac_word=$2
46945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46948   echo $ECHO_N "(cached) $ECHO_C" >&6
46949 else
46950   if test -n "$ac_ct_STRIP"; then
46951   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46952 else
46953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46954 for as_dir in $PATH
46955 do
46956   IFS=$as_save_IFS
46957   test -z "$as_dir" && as_dir=.
46958   for ac_exec_ext in '' $ac_executable_extensions; do
46959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46960     ac_cv_prog_ac_ct_STRIP="strip"
46961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46962     break 2
46963   fi
46964 done
46965 done
46966 IFS=$as_save_IFS
46967
46968 fi
46969 fi
46970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46971 if test -n "$ac_ct_STRIP"; then
46972   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46973 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
46974 else
46975   { echo "$as_me:$LINENO: result: no" >&5
46976 echo "${ECHO_T}no" >&6; }
46977 fi
46978
46979   if test "x$ac_ct_STRIP" = x; then
46980     STRIP=":"
46981   else
46982     case $cross_compiling:$ac_tool_warned in
46983 yes:)
46984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46985 whose name does not start with the host triplet.  If you think this
46986 configuration is useful to you, please write to autoconf@gnu.org." >&5
46987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46988 whose name does not start with the host triplet.  If you think this
46989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46990 ac_tool_warned=yes ;;
46991 esac
46992     STRIP=$ac_ct_STRIP
46993   fi
46994 else
46995   STRIP="$ac_cv_prog_STRIP"
46996 fi
46997
46998     if test -n "$ac_tool_prefix"; then
46999   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47000 set dummy ${ac_tool_prefix}nm; ac_word=$2
47001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47003 if test "${ac_cv_prog_NM+set}" = set; then
47004   echo $ECHO_N "(cached) $ECHO_C" >&6
47005 else
47006   if test -n "$NM"; then
47007   ac_cv_prog_NM="$NM" # Let the user override the test.
47008 else
47009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47010 for as_dir in $PATH
47011 do
47012   IFS=$as_save_IFS
47013   test -z "$as_dir" && as_dir=.
47014   for ac_exec_ext in '' $ac_executable_extensions; do
47015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47016     ac_cv_prog_NM="${ac_tool_prefix}nm"
47017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47018     break 2
47019   fi
47020 done
47021 done
47022 IFS=$as_save_IFS
47023
47024 fi
47025 fi
47026 NM=$ac_cv_prog_NM
47027 if test -n "$NM"; then
47028   { echo "$as_me:$LINENO: result: $NM" >&5
47029 echo "${ECHO_T}$NM" >&6; }
47030 else
47031   { echo "$as_me:$LINENO: result: no" >&5
47032 echo "${ECHO_T}no" >&6; }
47033 fi
47034
47035
47036 fi
47037 if test -z "$ac_cv_prog_NM"; then
47038   ac_ct_NM=$NM
47039   # Extract the first word of "nm", so it can be a program name with args.
47040 set dummy nm; ac_word=$2
47041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47043 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47044   echo $ECHO_N "(cached) $ECHO_C" >&6
47045 else
47046   if test -n "$ac_ct_NM"; then
47047   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47048 else
47049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47050 for as_dir in $PATH
47051 do
47052   IFS=$as_save_IFS
47053   test -z "$as_dir" && as_dir=.
47054   for ac_exec_ext in '' $ac_executable_extensions; do
47055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47056     ac_cv_prog_ac_ct_NM="nm"
47057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47058     break 2
47059   fi
47060 done
47061 done
47062 IFS=$as_save_IFS
47063
47064 fi
47065 fi
47066 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47067 if test -n "$ac_ct_NM"; then
47068   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47069 echo "${ECHO_T}$ac_ct_NM" >&6; }
47070 else
47071   { echo "$as_me:$LINENO: result: no" >&5
47072 echo "${ECHO_T}no" >&6; }
47073 fi
47074
47075   if test "x$ac_ct_NM" = x; then
47076     NM=":"
47077   else
47078     case $cross_compiling:$ac_tool_warned in
47079 yes:)
47080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47081 whose name does not start with the host triplet.  If you think this
47082 configuration is useful to you, please write to autoconf@gnu.org." >&5
47083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47084 whose name does not start with the host triplet.  If you think this
47085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47086 ac_tool_warned=yes ;;
47087 esac
47088     NM=$ac_ct_NM
47089   fi
47090 else
47091   NM="$ac_cv_prog_NM"
47092 fi
47093
47094
47095     case ${BAKEFILE_HOST} in
47096         *-hp-hpux* )
47097                                     INSTALL_DIR="mkdir -p"
47098             ;;
47099         * )
47100                                     INSTALL_DIR='$(INSTALL) -d'
47101             ;;
47102     esac
47103
47104
47105     LDFLAGS_GUI=
47106     case ${BAKEFILE_HOST} in
47107         *-*-cygwin* | *-*-mingw32* )
47108         LDFLAGS_GUI="-mwindows"
47109     esac
47110
47111
47112     fi
47113
47114         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47115 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47116 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47117   echo $ECHO_N "(cached) $ECHO_C" >&6
47118 else
47119
47120         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47121                 egrep -s GNU > /dev/null); then
47122             bakefile_cv_prog_makeisgnu="yes"
47123         else
47124             bakefile_cv_prog_makeisgnu="no"
47125         fi
47126
47127 fi
47128 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47129 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47130
47131     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47132         IF_GNU_MAKE=""
47133     else
47134         IF_GNU_MAKE="#"
47135     fi
47136
47137
47138
47139     PLATFORM_UNIX=0
47140     PLATFORM_WIN32=0
47141     PLATFORM_MSDOS=0
47142     PLATFORM_MAC=0
47143     PLATFORM_MACOS=0
47144     PLATFORM_MACOSX=0
47145     PLATFORM_OS2=0
47146     PLATFORM_BEOS=0
47147
47148     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47149         case "${BAKEFILE_HOST}" in
47150             *-*-mingw32* )
47151                 PLATFORM_WIN32=1
47152             ;;
47153             *-pc-msdosdjgpp )
47154                 PLATFORM_MSDOS=1
47155             ;;
47156             *-pc-os2_emx | *-pc-os2-emx )
47157                 PLATFORM_OS2=1
47158             ;;
47159             *-*-darwin* )
47160                 PLATFORM_MAC=1
47161                 PLATFORM_MACOSX=1
47162             ;;
47163             *-*-beos* )
47164                 PLATFORM_BEOS=1
47165             ;;
47166             powerpc-apple-macos* )
47167                 PLATFORM_MAC=1
47168                 PLATFORM_MACOS=1
47169             ;;
47170             * )
47171                 PLATFORM_UNIX=1
47172             ;;
47173         esac
47174     else
47175         case "$BAKEFILE_FORCE_PLATFORM" in
47176             win32 )
47177                 PLATFORM_WIN32=1
47178             ;;
47179             msdos )
47180                 PLATFORM_MSDOS=1
47181             ;;
47182             os2 )
47183                 PLATFORM_OS2=1
47184             ;;
47185             darwin )
47186                 PLATFORM_MAC=1
47187                 PLATFORM_MACOSX=1
47188             ;;
47189             unix )
47190                 PLATFORM_UNIX=1
47191             ;;
47192             beos )
47193                 PLATFORM_BEOS=1
47194             ;;
47195             * )
47196                                             ;;
47197         esac
47198     fi
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208
47209
47210     # Check whether --enable-omf was given.
47211 if test "${enable_omf+set}" = set; then
47212   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47213 fi
47214
47215
47216     case "${BAKEFILE_HOST}" in
47217       *-*-darwin* )
47218                         if test "x$GCC" = "xyes"; then
47219             CFLAGS="$CFLAGS -fno-common"
47220             CXXFLAGS="$CXXFLAGS -fno-common"
47221         fi
47222         if test "x$XLCC" = "xyes"; then
47223             CFLAGS="$CFLAGS -qnocommon"
47224             CXXFLAGS="$CXXFLAGS -qnocommon"
47225         fi
47226         ;;
47227
47228       *-pc-os2_emx | *-pc-os2-emx )
47229         if test "x$bk_os2_use_omf" = "xyes" ; then
47230             AR=emxomfar
47231             RANLIB=:
47232             LDFLAGS="-Zomf $LDFLAGS"
47233             CFLAGS="-Zomf $CFLAGS"
47234             CXXFLAGS="-Zomf $CXXFLAGS"
47235             OS2_LIBEXT="lib"
47236         else
47237             OS2_LIBEXT="a"
47238         fi
47239         ;;
47240
47241       i*86-*-beos* )
47242         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47243         ;;
47244     esac
47245
47246
47247     SO_SUFFIX="so"
47248     SO_SUFFIX_MODULE="so"
47249     EXEEXT=""
47250     LIBPREFIX="lib"
47251     LIBEXT=".a"
47252     DLLPREFIX="lib"
47253     DLLPREFIX_MODULE=""
47254     DLLIMP_SUFFIX=""
47255     dlldir="$libdir"
47256
47257     case "${BAKEFILE_HOST}" in
47258         *-hp-hpux* )
47259             SO_SUFFIX="sl"
47260             SO_SUFFIX_MODULE="sl"
47261         ;;
47262         *-*-aix* )
47263                                                                         SO_SUFFIX="a"
47264             SO_SUFFIX_MODULE="a"
47265         ;;
47266         *-*-cygwin* )
47267             SO_SUFFIX="dll"
47268             SO_SUFFIX_MODULE="dll"
47269             DLLIMP_SUFFIX="dll.a"
47270             EXEEXT=".exe"
47271             DLLPREFIX="cyg"
47272             dlldir="$bindir"
47273         ;;
47274         *-*-mingw32* )
47275             SO_SUFFIX="dll"
47276             SO_SUFFIX_MODULE="dll"
47277             DLLIMP_SUFFIX="dll.a"
47278             EXEEXT=".exe"
47279             DLLPREFIX=""
47280             dlldir="$bindir"
47281         ;;
47282         *-pc-msdosdjgpp )
47283             EXEEXT=".exe"
47284             DLLPREFIX=""
47285             dlldir="$bindir"
47286         ;;
47287         *-pc-os2_emx | *-pc-os2-emx )
47288             SO_SUFFIX="dll"
47289             SO_SUFFIX_MODULE="dll"
47290             DLLIMP_SUFFIX=$OS2_LIBEXT
47291             EXEEXT=".exe"
47292             DLLPREFIX=""
47293             LIBPREFIX=""
47294             LIBEXT=".$OS2_LIBEXT"
47295             dlldir="$bindir"
47296         ;;
47297         *-*-darwin* )
47298             SO_SUFFIX="dylib"
47299             SO_SUFFIX_MODULE="bundle"
47300         ;;
47301     esac
47302
47303     if test "x$DLLIMP_SUFFIX" = "x" ; then
47304         DLLIMP_SUFFIX="$SO_SUFFIX"
47305     fi
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318         PIC_FLAG=""
47319     if test "x$GCC" = "xyes"; then
47320                 PIC_FLAG="-fPIC"
47321     fi
47322
47323         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47324     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47325     WINDOWS_IMPLIB=0
47326
47327     case "${BAKEFILE_HOST}" in
47328       *-hp-hpux* )
47329                 if test "x$GCC" != "xyes"; then
47330                         LDFLAGS="$LDFLAGS -L/usr/lib"
47331
47332             SHARED_LD_CC="${CC} -b -o"
47333             SHARED_LD_CXX="${CXX} -b -o"
47334             PIC_FLAG="+Z"
47335         fi
47336       ;;
47337
47338       *-*-linux* )
47339         if test "$INTELCC" = "yes"; then
47340             PIC_FLAG="-KPIC"
47341         elif test "x$SUNCXX" = "xyes"; then
47342             SHARED_LD_CC="${CC} -G -o"
47343             SHARED_LD_CXX="${CXX} -G -o"
47344             PIC_FLAG="-KPIC"
47345         fi
47346       ;;
47347
47348       *-*-solaris2* )
47349         if test "x$SUNCXX" = xyes ; then
47350             SHARED_LD_CC="${CC} -G -o"
47351             SHARED_LD_CXX="${CXX} -G -o"
47352             PIC_FLAG="-KPIC"
47353         fi
47354       ;;
47355
47356       *-*-darwin* )
47357
47358 D='$'
47359 cat <<EOF >shared-ld-sh
47360 #!/bin/sh
47361 #-----------------------------------------------------------------------------
47362 #-- Name:        distrib/mac/shared-ld-sh
47363 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47364 #-- Author:      Gilles Depeyrot
47365 #-- Copyright:   (c) 2002 Gilles Depeyrot
47366 #-- Licence:     any use permitted
47367 #-----------------------------------------------------------------------------
47368
47369 verbose=0
47370 args=""
47371 objects=""
47372 linking_flag="-dynamiclib"
47373 ldargs="-r -keep_private_externs -nostdlib"
47374
47375 while test ${D}# -gt 0; do
47376     case ${D}1 in
47377
47378        -v)
47379         verbose=1
47380         ;;
47381
47382        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47383         # collect these options and values
47384         args="${D}{args} ${D}1 ${D}2"
47385         shift
47386         ;;
47387
47388        -s|-Wl,*)
47389         # collect these load args
47390         ldargs="${D}{ldargs} ${D}1"
47391         ;;
47392
47393        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47394         # collect these options
47395         args="${D}{args} ${D}1"
47396         ;;
47397
47398        -dynamiclib|-bundle)
47399         linking_flag="${D}1"
47400         ;;
47401
47402        -*)
47403         echo "shared-ld: unhandled option '${D}1'"
47404         exit 1
47405         ;;
47406
47407         *.o | *.a | *.dylib)
47408         # collect object files
47409         objects="${D}{objects} ${D}1"
47410         ;;
47411
47412         *)
47413         echo "shared-ld: unhandled argument '${D}1'"
47414         exit 1
47415         ;;
47416
47417     esac
47418     shift
47419 done
47420
47421 status=0
47422
47423 #
47424 # Link one module containing all the others
47425 #
47426 if test ${D}{verbose} = 1; then
47427     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47428 fi
47429 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47430 status=${D}?
47431
47432 #
47433 # Link the shared library from the single module created, but only if the
47434 # previous command didn't fail:
47435 #
47436 if test ${D}{status} = 0; then
47437     if test ${D}{verbose} = 1; then
47438         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47439     fi
47440     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47441     status=${D}?
47442 fi
47443
47444 #
47445 # Remove intermediate module
47446 #
47447 rm -f master.${D}${D}.o
47448
47449 exit ${D}status
47450 EOF
47451
47452         chmod +x shared-ld-sh
47453
47454         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47455         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47456
47457
47458                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47459 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
47460 if test "${bakefile_cv_gcc31+set}" = set; then
47461   echo $ECHO_N "(cached) $ECHO_C" >&6
47462 else
47463
47464            cat >conftest.$ac_ext <<_ACEOF
47465 /* confdefs.h.  */
47466 _ACEOF
47467 cat confdefs.h >>conftest.$ac_ext
47468 cat >>conftest.$ac_ext <<_ACEOF
47469 /* end confdefs.h.  */
47470
47471 int
47472 main ()
47473 {
47474
47475                    #if (__GNUC__ < 3) || \
47476                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47477                        This is old gcc
47478                    #endif
47479
47480   ;
47481   return 0;
47482 }
47483 _ACEOF
47484 rm -f conftest.$ac_objext
47485 if { (ac_try="$ac_compile"
47486 case "(($ac_try" in
47487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47488   *) ac_try_echo=$ac_try;;
47489 esac
47490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47491   (eval "$ac_compile") 2>conftest.er1
47492   ac_status=$?
47493   grep -v '^ *+' conftest.er1 >conftest.err
47494   rm -f conftest.er1
47495   cat conftest.err >&5
47496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47497   (exit $ac_status); } && {
47498          test -z "$ac_c_werror_flag" ||
47499          test ! -s conftest.err
47500        } && test -s conftest.$ac_objext; then
47501
47502                    bakefile_cv_gcc31=yes
47503
47504 else
47505   echo "$as_me: failed program was:" >&5
47506 sed 's/^/| /' conftest.$ac_ext >&5
47507
47508
47509                    bakefile_cv_gcc31=no
47510
47511
47512 fi
47513
47514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47515
47516 fi
47517 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47518 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
47519         if test "$bakefile_cv_gcc31" = "no"; then
47520                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47521             SHARED_LD_CXX="$SHARED_LD_CC"
47522         else
47523                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47524             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47525         fi
47526
47527         if test "x$GCC" == "xyes"; then
47528             PIC_FLAG="-dynamic -fPIC"
47529         fi
47530         if test "x$XLCC" = "xyes"; then
47531             PIC_FLAG="-dynamic -DPIC"
47532         fi
47533       ;;
47534
47535       *-*-aix* )
47536         if test "x$GCC" = "xyes"; then
47537                                                             PIC_FLAG=""
47538
47539                                                                                     case "${BAKEFILE_HOST}" in
47540                 *-*-aix5* )
47541                     LD_EXPFULL="-Wl,-bexpfull"
47542                     ;;
47543             esac
47544
47545             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47546             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47547         else
47548                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47549 set dummy makeC++SharedLib; ac_word=$2
47550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47552 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47553   echo $ECHO_N "(cached) $ECHO_C" >&6
47554 else
47555   if test -n "$AIX_CXX_LD"; then
47556   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47557 else
47558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47559 for as_dir in $PATH
47560 do
47561   IFS=$as_save_IFS
47562   test -z "$as_dir" && as_dir=.
47563   for ac_exec_ext in '' $ac_executable_extensions; do
47564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47565     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47567     break 2
47568   fi
47569 done
47570 done
47571 IFS=$as_save_IFS
47572
47573   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47574 fi
47575 fi
47576 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47577 if test -n "$AIX_CXX_LD"; then
47578   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47579 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
47580 else
47581   { echo "$as_me:$LINENO: result: no" >&5
47582 echo "${ECHO_T}no" >&6; }
47583 fi
47584
47585
47586             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47587             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47588         fi
47589       ;;
47590
47591       *-*-beos* )
47592                         SHARED_LD_CC="${LD} -nostart -o"
47593         SHARED_LD_CXX="${LD} -nostart -o"
47594       ;;
47595
47596       *-*-irix* )
47597                 if test "x$GCC" != "xyes"; then
47598             PIC_FLAG="-KPIC"
47599         fi
47600       ;;
47601
47602       *-*-cygwin* | *-*-mingw32* )
47603         PIC_FLAG=""
47604         SHARED_LD_CC="\$(CC) -shared -o"
47605         SHARED_LD_CXX="\$(CXX) -shared -o"
47606         WINDOWS_IMPLIB=1
47607       ;;
47608
47609       *-pc-os2_emx | *-pc-os2-emx )
47610         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47611         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47612         PIC_FLAG=""
47613
47614 D='$'
47615 cat <<EOF >dllar.sh
47616 #!/bin/sh
47617 #
47618 # dllar - a tool to build both a .dll and an .a file
47619 # from a set of object (.o) files for EMX/OS2.
47620 #
47621 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47622 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47623 #
47624 #  This script will accept a set of files on the command line.
47625 #  All the public symbols from the .o files will be exported into
47626 #  a .DEF file, then linker will be run (through gcc) against them to
47627 #  build a shared library consisting of all given .o files. All libraries
47628 #  (.a) will be first decompressed into component .o files then act as
47629 #  described above. You can optionally give a description (-d "description")
47630 #  which will be put into .DLL. To see the list of accepted options (as well
47631 #  as command-line format) simply run this program without options. The .DLL
47632 #  is built to be imported by name (there is no guarantee that new versions
47633 #  of the library you build will have same ordinals for same symbols).
47634 #
47635 #  dllar is free software; you can redistribute it and/or modify
47636 #  it under the terms of the GNU General Public License as published by
47637 #  the Free Software Foundation; either version 2, or (at your option)
47638 #  any later version.
47639 #
47640 #  dllar is distributed in the hope that it will be useful,
47641 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47642 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47643 #  GNU General Public License for more details.
47644 #
47645 #  You should have received a copy of the GNU General Public License
47646 #  along with dllar; see the file COPYING.  If not, write to the Free
47647 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47648 #  02111-1307, USA.
47649
47650 # To successfuly run this program you will need:
47651 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47652 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47653 #  - gcc
47654 #    (used to build the .dll)
47655 #  - emxexp
47656 #    (used to create .def file from .o files)
47657 #  - emximp
47658 #    (used to create .a file from .def file)
47659 #  - GNU text utilites (cat, sort, uniq)
47660 #    used to process emxexp output
47661 #  - GNU file utilities (mv, rm)
47662 #  - GNU sed
47663 #  - lxlite (optional, see flag below)
47664 #    (used for general .dll cleanup)
47665 #
47666
47667 flag_USE_LXLITE=1;
47668
47669 #
47670 # helper functions
47671 # basnam, variant of basename, which does _not_ remove the path, _iff_
47672 #                              second argument (suffix to remove) is given
47673 basnam(){
47674     case ${D}# in
47675     1)
47676         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47677         ;;
47678     2)
47679         echo ${D}1 | sed 's/'${D}2'${D}//'
47680         ;;
47681     *)
47682         echo "error in basnam ${D}*"
47683         exit 8
47684         ;;
47685     esac
47686 }
47687
47688 # Cleanup temporary files and output
47689 CleanUp() {
47690     cd ${D}curDir
47691     for i in ${D}inputFiles ; do
47692         case ${D}i in
47693         *!)
47694             rm -rf \`basnam ${D}i !\`
47695             ;;
47696         *)
47697             ;;
47698         esac
47699     done
47700
47701     # Kill result in case of failure as there is just to many stupid make/nmake
47702     # things out there which doesn't do this.
47703     if [ ${D}# -eq 0 ]; then
47704         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47705     fi
47706 }
47707
47708 # Print usage and exit script with rc=1.
47709 PrintHelp() {
47710  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47711  echo '       [-name-mangler-script script.sh]'
47712  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47713  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47714  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47715  echo '       [*.o] [*.a]'
47716  echo '*> "output_file" should have no extension.'
47717  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47718  echo '   The import library name is derived from this and is set to "name".a,'
47719  echo '   unless overridden by -import'
47720  echo '*> "importlib_name" should have no extension.'
47721  echo '   If it has the .o, or .a extension, it is automatically removed.'
47722  echo '   This name is used as the import library name and may be longer and'
47723  echo '   more descriptive than the DLL name which has to follow the old '
47724  echo '   8.3 convention of FAT.'
47725  echo '*> "script.sh may be given to override the output_file name by a'
47726  echo '   different name. It is mainly useful if the regular make process'
47727  echo '   of some package does not take into account OS/2 restriction of'
47728  echo '   DLL name lengths. It takes the importlib name as input and is'
47729  echo '   supposed to procude a shorter name as output. The script should'
47730  echo '   expect to get importlib_name without extension and should produce'
47731  echo '   a (max.) 8 letter name without extension.'
47732  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47733  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47734  echo '   These flags will be put at the start of GCC command line.'
47735  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47736  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47737  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47738  echo '   If the last character of a symbol is "*", all symbols beginning'
47739  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47740  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47741  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47742  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47743  echo '   C runtime DLLs.'
47744  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47745  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47746  echo '   unchanged to GCC at the end of command line.'
47747  echo '*> If you create a DLL from a library and you do not specify -o,'
47748  echo '   the basename for DLL and import library will be set to library name,'
47749  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47750  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47751  echo '   library will be renamed into gcc_s.a.'
47752  echo '--------'
47753  echo 'Example:'
47754  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47755  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47756  CleanUp
47757  exit 1
47758 }
47759
47760 # Execute a command.
47761 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47762 # @Uses    Whatever CleanUp() uses.
47763 doCommand() {
47764     echo "${D}*"
47765     eval ${D}*
47766     rcCmd=${D}?
47767
47768     if [ ${D}rcCmd -ne 0 ]; then
47769         echo "command failed, exit code="${D}rcCmd
47770         CleanUp
47771         exit ${D}rcCmd
47772     fi
47773 }
47774
47775 # main routine
47776 # setup globals
47777 cmdLine=${D}*
47778 outFile=""
47779 outimpFile=""
47780 inputFiles=""
47781 renameScript=""
47782 description=""
47783 CC=gcc.exe
47784 CFLAGS="-s -Zcrtdll"
47785 EXTRA_CFLAGS=""
47786 EXPORT_BY_ORDINALS=0
47787 exclude_symbols=""
47788 library_flags=""
47789 curDir=\`pwd\`
47790 curDirS=curDir
47791 case ${D}curDirS in
47792 */)
47793   ;;
47794 *)
47795   curDirS=${D}{curDirS}"/"
47796   ;;
47797 esac
47798 # Parse commandline
47799 libsToLink=0
47800 omfLinking=0
47801 while [ ${D}1 ]; do
47802     case ${D}1 in
47803     -ord*)
47804         EXPORT_BY_ORDINALS=1;
47805         ;;
47806     -o*)
47807         shift
47808         outFile=${D}1
47809         ;;
47810     -i*)
47811         shift
47812         outimpFile=${D}1
47813         ;;
47814     -name-mangler-script)
47815         shift
47816         renameScript=${D}1
47817         ;;
47818     -d*)
47819         shift
47820         description=${D}1
47821         ;;
47822     -f*)
47823         shift
47824         CFLAGS=${D}1
47825         ;;
47826     -c*)
47827         shift
47828         CC=${D}1
47829         ;;
47830     -h*)
47831         PrintHelp
47832         ;;
47833     -ex*)
47834         shift
47835         exclude_symbols=${D}{exclude_symbols}${D}1" "
47836         ;;
47837     -libf*)
47838         shift
47839         library_flags=${D}{library_flags}${D}1" "
47840         ;;
47841     -nocrt*)
47842         CFLAGS="-s"
47843         ;;
47844     -nolxl*)
47845         flag_USE_LXLITE=0
47846         ;;
47847     -* | /*)
47848         case ${D}1 in
47849         -L* | -l*)
47850             libsToLink=1
47851             ;;
47852         -Zomf)
47853             omfLinking=1
47854             ;;
47855         *)
47856             ;;
47857         esac
47858         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47859         ;;
47860     *.dll)
47861         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47862         if [ ${D}omfLinking -eq 1 ]; then
47863             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47864         else
47865             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47866         fi
47867         ;;
47868     *)
47869         found=0;
47870         if [ ${D}libsToLink -ne 0 ]; then
47871             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47872         else
47873             for file in ${D}1 ; do
47874                 if [ -f ${D}file ]; then
47875                     inputFiles="${D}{inputFiles} ${D}file"
47876                     found=1
47877                 fi
47878             done
47879             if [ ${D}found -eq 0 ]; then
47880                 echo "ERROR: No file(s) found: "${D}1
47881                 exit 8
47882             fi
47883         fi
47884       ;;
47885     esac
47886     shift
47887 done # iterate cmdline words
47888
47889 #
47890 if [ -z "${D}inputFiles" ]; then
47891     echo "dllar: no input files"
47892     PrintHelp
47893 fi
47894
47895 # Now extract all .o files from .a files
47896 newInputFiles=""
47897 for file in ${D}inputFiles ; do
47898     case ${D}file in
47899     *.a | *.lib)
47900         case ${D}file in
47901         *.a)
47902             suffix=".a"
47903             AR="ar"
47904             ;;
47905         *.lib)
47906             suffix=".lib"
47907             AR="emxomfar"
47908             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47909             ;;
47910         *)
47911             ;;
47912         esac
47913         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47914         mkdir ${D}dirname
47915         if [ ${D}? -ne 0 ]; then
47916             echo "Failed to create subdirectory ./${D}dirname"
47917             CleanUp
47918             exit 8;
47919         fi
47920         # Append '!' to indicate archive
47921         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47922         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47923         cd ${D}curDir
47924         found=0;
47925         for subfile in ${D}dirname/*.o* ; do
47926             if [ -f ${D}subfile ]; then
47927                 found=1
47928                 if [ -s ${D}subfile ]; then
47929                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47930                     newInputFiles="${D}newInputFiles ${D}subfile"
47931                 fi
47932             fi
47933         done
47934         if [ ${D}found -eq 0 ]; then
47935             echo "WARNING: there are no files in archive \\'${D}file\\'"
47936         fi
47937         ;;
47938     *)
47939         newInputFiles="${D}{newInputFiles} ${D}file"
47940         ;;
47941     esac
47942 done
47943 inputFiles="${D}newInputFiles"
47944
47945 # Output filename(s).
47946 do_backup=0;
47947 if [ -z ${D}outFile ]; then
47948     do_backup=1;
47949     set outFile ${D}inputFiles; outFile=${D}2
47950 fi
47951
47952 # If it is an archive, remove the '!' and the '_%' suffixes
47953 case ${D}outFile in
47954 *_%!)
47955     outFile=\`basnam ${D}outFile _%!\`
47956     ;;
47957 *)
47958     ;;
47959 esac
47960 case ${D}outFile in
47961 *.dll)
47962     outFile=\`basnam ${D}outFile .dll\`
47963     ;;
47964 *.DLL)
47965     outFile=\`basnam ${D}outFile .DLL\`
47966     ;;
47967 *.o)
47968     outFile=\`basnam ${D}outFile .o\`
47969     ;;
47970 *.obj)
47971     outFile=\`basnam ${D}outFile .obj\`
47972     ;;
47973 *.a)
47974     outFile=\`basnam ${D}outFile .a\`
47975     ;;
47976 *.lib)
47977     outFile=\`basnam ${D}outFile .lib\`
47978     ;;
47979 *)
47980     ;;
47981 esac
47982 case ${D}outimpFile in
47983 *.a)
47984     outimpFile=\`basnam ${D}outimpFile .a\`
47985     ;;
47986 *.lib)
47987     outimpFile=\`basnam ${D}outimpFile .lib\`
47988     ;;
47989 *)
47990     ;;
47991 esac
47992 if [ -z ${D}outimpFile ]; then
47993     outimpFile=${D}outFile
47994 fi
47995 defFile="${D}{outFile}.def"
47996 arcFile="${D}{outimpFile}.a"
47997 arcFile2="${D}{outimpFile}.lib"
47998
47999 #create ${D}dllFile as something matching 8.3 restrictions,
48000 if [ -z ${D}renameScript ] ; then
48001     dllFile="${D}outFile"
48002 else
48003     dllFile=\`${D}renameScript ${D}outimpFile\`
48004 fi
48005
48006 if [ ${D}do_backup -ne 0 ] ; then
48007     if [ -f ${D}arcFile ] ; then
48008         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48009     fi
48010     if [ -f ${D}arcFile2 ] ; then
48011         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48012     fi
48013 fi
48014
48015 # Extract public symbols from all the object files.
48016 tmpdefFile=${D}{defFile}_%
48017 rm -f ${D}tmpdefFile
48018 for file in ${D}inputFiles ; do
48019     case ${D}file in
48020     *!)
48021         ;;
48022     *)
48023         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48024         ;;
48025     esac
48026 done
48027
48028 # Create the def file.
48029 rm -f ${D}defFile
48030 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48031 dllFile="${D}{dllFile}.dll"
48032 if [ ! -z ${D}description ]; then
48033     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48034 fi
48035 echo "EXPORTS" >> ${D}defFile
48036
48037 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48038 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48039
48040 # Checks if the export is ok or not.
48041 for word in ${D}exclude_symbols; do
48042     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48043     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48044 done
48045
48046
48047 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48048     sed "=" < ${D}tmpdefFile | \\
48049     sed '
48050       N
48051       : loop
48052       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48053       t loop
48054     ' > ${D}{tmpdefFile}%
48055     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48056 else
48057     rm -f ${D}{tmpdefFile}%
48058 fi
48059 cat ${D}tmpdefFile >> ${D}defFile
48060 rm -f ${D}tmpdefFile
48061
48062 # Do linking, create implib, and apply lxlite.
48063 gccCmdl="";
48064 for file in ${D}inputFiles ; do
48065     case ${D}file in
48066     *!)
48067         ;;
48068     *)
48069         gccCmdl="${D}gccCmdl ${D}file"
48070         ;;
48071     esac
48072 done
48073 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48074 touch "${D}{outFile}.dll"
48075
48076 doCommand "emximp -o ${D}arcFile ${D}defFile"
48077 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48078     add_flags="";
48079     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48080         add_flags="-ynd"
48081     fi
48082     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48083 fi
48084 doCommand "emxomf -s -l ${D}arcFile"
48085
48086 # Successful exit.
48087 CleanUp 1
48088 exit 0
48089 EOF
48090
48091         chmod +x dllar.sh
48092       ;;
48093
48094       powerpc-apple-macos* | \
48095       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48096       *-*-mirbsd* | \
48097       *-*-sunos4* | \
48098       *-*-osf* | \
48099       *-*-dgux5* | \
48100       *-*-sysv5* | \
48101       *-pc-msdosdjgpp )
48102               ;;
48103
48104       *)
48105         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48106 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48107    { (exit 1); exit 1; }; }
48108     esac
48109
48110     if test "x$PIC_FLAG" != "x" ; then
48111         PIC_FLAG="$PIC_FLAG -DPIC"
48112     fi
48113
48114     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48115         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48116     fi
48117     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48118         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48119     fi
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129     USE_SOVERSION=0
48130     USE_SOVERLINUX=0
48131     USE_SOVERSOLARIS=0
48132     USE_SOVERCYGWIN=0
48133     USE_SOSYMLINKS=0
48134     USE_MACVERSION=0
48135     SONAME_FLAG=
48136
48137     case "${BAKEFILE_HOST}" in
48138       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48139         if test "x$SUNCXX" = "xyes"; then
48140             SONAME_FLAG="-h "
48141         else
48142             SONAME_FLAG="-Wl,-soname,"
48143         fi
48144         USE_SOVERSION=1
48145         USE_SOVERLINUX=1
48146         USE_SOSYMLINKS=1
48147       ;;
48148
48149       *-*-solaris2* )
48150         SONAME_FLAG="-h "
48151         USE_SOVERSION=1
48152         USE_SOVERSOLARIS=1
48153         USE_SOSYMLINKS=1
48154       ;;
48155
48156       *-*-darwin* )
48157         USE_MACVERSION=1
48158         USE_SOVERSION=1
48159         USE_SOSYMLINKS=1
48160       ;;
48161
48162       *-*-cygwin* )
48163         USE_SOVERSION=1
48164         USE_SOVERCYGWIN=1
48165       ;;
48166     esac
48167
48168
48169
48170
48171
48172
48173
48174
48175
48176
48177     # Check whether --enable-dependency-tracking was given.
48178 if test "${enable_dependency_tracking+set}" = set; then
48179   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48180 fi
48181
48182
48183     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48184 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48185
48186     BK_DEPS=""
48187     if test "x$bk_use_trackdeps" = "xno" ; then
48188         DEPS_TRACKING=0
48189         { echo "$as_me:$LINENO: result: disabled" >&5
48190 echo "${ECHO_T}disabled" >&6; }
48191     else
48192         DEPS_TRACKING=1
48193
48194         if test "x$GCC" = "xyes"; then
48195             DEPSMODE=gcc
48196             case "${BAKEFILE_HOST}" in
48197                 *-*-darwin* )
48198                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48199                 ;;
48200                 * )
48201                     DEPSFLAG="-MMD"
48202                 ;;
48203             esac
48204             { echo "$as_me:$LINENO: result: gcc" >&5
48205 echo "${ECHO_T}gcc" >&6; }
48206         elif test "x$MWCC" = "xyes"; then
48207             DEPSMODE=mwcc
48208             DEPSFLAG="-MM"
48209             { echo "$as_me:$LINENO: result: mwcc" >&5
48210 echo "${ECHO_T}mwcc" >&6; }
48211         elif test "x$SUNCC" = "xyes"; then
48212             DEPSMODE=unixcc
48213             DEPSFLAG="-xM1"
48214             { echo "$as_me:$LINENO: result: Sun cc" >&5
48215 echo "${ECHO_T}Sun cc" >&6; }
48216         elif test "x$SGICC" = "xyes"; then
48217             DEPSMODE=unixcc
48218             DEPSFLAG="-M"
48219             { echo "$as_me:$LINENO: result: SGI cc" >&5
48220 echo "${ECHO_T}SGI cc" >&6; }
48221         elif test "x$HPCC" = "xyes"; then
48222             DEPSMODE=unixcc
48223             DEPSFLAG="+make"
48224             { echo "$as_me:$LINENO: result: HP cc" >&5
48225 echo "${ECHO_T}HP cc" >&6; }
48226         elif test "x$COMPAQCC" = "xyes"; then
48227             DEPSMODE=gcc
48228             DEPSFLAG="-MD"
48229             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48230 echo "${ECHO_T}Compaq cc" >&6; }
48231         else
48232             DEPS_TRACKING=0
48233             { echo "$as_me:$LINENO: result: none" >&5
48234 echo "${ECHO_T}none" >&6; }
48235         fi
48236
48237         if test $DEPS_TRACKING = 1 ; then
48238
48239 D='$'
48240 cat <<EOF >bk-deps
48241 #!/bin/sh
48242
48243 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48244 # script. It is used to track C/C++ files dependencies in portable way.
48245 #
48246 # Permission is given to use this file in any way.
48247
48248 DEPSMODE=${DEPSMODE}
48249 DEPSDIR=.deps
48250 DEPSFLAG="${DEPSFLAG}"
48251
48252 mkdir -p ${D}DEPSDIR
48253
48254 if test ${D}DEPSMODE = gcc ; then
48255     ${D}* ${D}{DEPSFLAG}
48256     status=${D}?
48257     if test ${D}{status} != 0 ; then
48258         exit ${D}{status}
48259     fi
48260     # move created file to the location we want it in:
48261     while test ${D}# -gt 0; do
48262         case "${D}1" in
48263             -o )
48264                 shift
48265                 objfile=${D}1
48266             ;;
48267             -* )
48268             ;;
48269             * )
48270                 srcfile=${D}1
48271             ;;
48272         esac
48273         shift
48274     done
48275     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48276     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48277     if test -f ${D}depfile ; then
48278         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48279         rm -f ${D}depfile
48280     else
48281         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48282         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48283         if test ! -f ${D}depfile ; then
48284             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48285             depfile="${D}objfile.d"
48286         fi
48287         if test -f ${D}depfile ; then
48288             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48289             rm -f ${D}depfile
48290         fi
48291     fi
48292     exit 0
48293 elif test ${D}DEPSMODE = mwcc ; then
48294     ${D}* || exit ${D}?
48295     # Run mwcc again with -MM and redirect into the dep file we want
48296     # NOTE: We can't use shift here because we need ${D}* to be valid
48297     prevarg=
48298     for arg in ${D}* ; do
48299         if test "${D}prevarg" = "-o"; then
48300             objfile=${D}arg
48301         else
48302             case "${D}arg" in
48303                 -* )
48304                 ;;
48305                 * )
48306                     srcfile=${D}arg
48307                 ;;
48308             esac
48309         fi
48310         prevarg="${D}arg"
48311     done
48312     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48313     exit 0
48314 elif test ${D}DEPSMODE = unixcc; then
48315     ${D}* || exit ${D}?
48316     # Run compiler again with deps flag and redirect into the dep file.
48317     # It doesn't work if the '-o FILE' option is used, but without it the
48318     # dependency file will contain the wrong name for the object. So it is
48319     # removed from the command line, and the dep file is fixed with sed.
48320     cmd=""
48321     while test ${D}# -gt 0; do
48322         case "${D}1" in
48323             -o )
48324                 shift
48325                 objfile=${D}1
48326             ;;
48327             * )
48328                 eval arg${D}#=\\${D}1
48329                 cmd="${D}cmd \\${D}arg${D}#"
48330             ;;
48331         esac
48332         shift
48333     done
48334     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48335     exit 0
48336 else
48337     ${D}*
48338     exit ${D}?
48339 fi
48340 EOF
48341
48342             chmod +x bk-deps
48343                                     BK_DEPS="`pwd`/bk-deps"
48344         fi
48345     fi
48346
48347
48348
48349
48350
48351     case ${BAKEFILE_HOST} in
48352         *-*-cygwin* | *-*-mingw32* )
48353                         if test -n "$ac_tool_prefix"; then
48354   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48355 set dummy ${ac_tool_prefix}windres; ac_word=$2
48356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48358 if test "${ac_cv_prog_WINDRES+set}" = set; then
48359   echo $ECHO_N "(cached) $ECHO_C" >&6
48360 else
48361   if test -n "$WINDRES"; then
48362   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48363 else
48364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48365 for as_dir in $PATH
48366 do
48367   IFS=$as_save_IFS
48368   test -z "$as_dir" && as_dir=.
48369   for ac_exec_ext in '' $ac_executable_extensions; do
48370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48371     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48373     break 2
48374   fi
48375 done
48376 done
48377 IFS=$as_save_IFS
48378
48379 fi
48380 fi
48381 WINDRES=$ac_cv_prog_WINDRES
48382 if test -n "$WINDRES"; then
48383   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48384 echo "${ECHO_T}$WINDRES" >&6; }
48385 else
48386   { echo "$as_me:$LINENO: result: no" >&5
48387 echo "${ECHO_T}no" >&6; }
48388 fi
48389
48390
48391 fi
48392 if test -z "$ac_cv_prog_WINDRES"; then
48393   ac_ct_WINDRES=$WINDRES
48394   # Extract the first word of "windres", so it can be a program name with args.
48395 set dummy windres; ac_word=$2
48396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48398 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48399   echo $ECHO_N "(cached) $ECHO_C" >&6
48400 else
48401   if test -n "$ac_ct_WINDRES"; then
48402   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48403 else
48404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48405 for as_dir in $PATH
48406 do
48407   IFS=$as_save_IFS
48408   test -z "$as_dir" && as_dir=.
48409   for ac_exec_ext in '' $ac_executable_extensions; do
48410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48411     ac_cv_prog_ac_ct_WINDRES="windres"
48412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48413     break 2
48414   fi
48415 done
48416 done
48417 IFS=$as_save_IFS
48418
48419 fi
48420 fi
48421 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48422 if test -n "$ac_ct_WINDRES"; then
48423   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48424 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
48425 else
48426   { echo "$as_me:$LINENO: result: no" >&5
48427 echo "${ECHO_T}no" >&6; }
48428 fi
48429
48430   if test "x$ac_ct_WINDRES" = x; then
48431     WINDRES=""
48432   else
48433     case $cross_compiling:$ac_tool_warned in
48434 yes:)
48435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48436 whose name does not start with the host triplet.  If you think this
48437 configuration is useful to you, please write to autoconf@gnu.org." >&5
48438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48439 whose name does not start with the host triplet.  If you think this
48440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48441 ac_tool_warned=yes ;;
48442 esac
48443     WINDRES=$ac_ct_WINDRES
48444   fi
48445 else
48446   WINDRES="$ac_cv_prog_WINDRES"
48447 fi
48448
48449          ;;
48450
48451       *-*-darwin* | powerpc-apple-macos* )
48452             # Extract the first word of "Rez", so it can be a program name with args.
48453 set dummy Rez; ac_word=$2
48454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48456 if test "${ac_cv_prog_REZ+set}" = set; then
48457   echo $ECHO_N "(cached) $ECHO_C" >&6
48458 else
48459   if test -n "$REZ"; then
48460   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48461 else
48462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48463 for as_dir in $PATH
48464 do
48465   IFS=$as_save_IFS
48466   test -z "$as_dir" && as_dir=.
48467   for ac_exec_ext in '' $ac_executable_extensions; do
48468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48469     ac_cv_prog_REZ="Rez"
48470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48471     break 2
48472   fi
48473 done
48474 done
48475 IFS=$as_save_IFS
48476
48477   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48478 fi
48479 fi
48480 REZ=$ac_cv_prog_REZ
48481 if test -n "$REZ"; then
48482   { echo "$as_me:$LINENO: result: $REZ" >&5
48483 echo "${ECHO_T}$REZ" >&6; }
48484 else
48485   { echo "$as_me:$LINENO: result: no" >&5
48486 echo "${ECHO_T}no" >&6; }
48487 fi
48488
48489
48490             # Extract the first word of "SetFile", so it can be a program name with args.
48491 set dummy SetFile; ac_word=$2
48492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48494 if test "${ac_cv_prog_SETFILE+set}" = set; then
48495   echo $ECHO_N "(cached) $ECHO_C" >&6
48496 else
48497   if test -n "$SETFILE"; then
48498   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48499 else
48500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48501 for as_dir in $PATH
48502 do
48503   IFS=$as_save_IFS
48504   test -z "$as_dir" && as_dir=.
48505   for ac_exec_ext in '' $ac_executable_extensions; do
48506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48507     ac_cv_prog_SETFILE="SetFile"
48508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48509     break 2
48510   fi
48511 done
48512 done
48513 IFS=$as_save_IFS
48514
48515   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48516 fi
48517 fi
48518 SETFILE=$ac_cv_prog_SETFILE
48519 if test -n "$SETFILE"; then
48520   { echo "$as_me:$LINENO: result: $SETFILE" >&5
48521 echo "${ECHO_T}$SETFILE" >&6; }
48522 else
48523   { echo "$as_me:$LINENO: result: no" >&5
48524 echo "${ECHO_T}no" >&6; }
48525 fi
48526
48527
48528         ;;
48529     esac
48530
48531
48532
48533
48534
48535
48536     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
48537
48538
48539 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
48540
48541
48542
48543     # Check whether --enable-precomp-headers was given.
48544 if test "${enable_precomp_headers+set}" = set; then
48545   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
48546 fi
48547
48548
48549     GCC_PCH=0
48550     ICC_PCH=0
48551     USE_PCH=0
48552     BK_MAKE_PCH=""
48553
48554     case ${BAKEFILE_HOST} in
48555         *-*-cygwin* )
48556                                                 bk_use_pch="no"
48557             ;;
48558     esac
48559
48560     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48561         if test "x$GCC" = "xyes"; then
48562                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48563 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
48564             cat >conftest.$ac_ext <<_ACEOF
48565 /* confdefs.h.  */
48566 _ACEOF
48567 cat confdefs.h >>conftest.$ac_ext
48568 cat >>conftest.$ac_ext <<_ACEOF
48569 /* end confdefs.h.  */
48570
48571 int
48572 main ()
48573 {
48574
48575                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48576                         There is no PCH support
48577                     #endif
48578                     #if (__GNUC__ < 3)
48579                         There is no PCH support
48580                     #endif
48581                     #if (__GNUC__ == 3) && \
48582                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48583                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48584                        ( defined(__INTEL_COMPILER) )
48585                         There is no PCH support
48586                     #endif
48587
48588   ;
48589   return 0;
48590 }
48591 _ACEOF
48592 rm -f conftest.$ac_objext
48593 if { (ac_try="$ac_compile"
48594 case "(($ac_try" in
48595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48596   *) ac_try_echo=$ac_try;;
48597 esac
48598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48599   (eval "$ac_compile") 2>conftest.er1
48600   ac_status=$?
48601   grep -v '^ *+' conftest.er1 >conftest.err
48602   rm -f conftest.er1
48603   cat conftest.err >&5
48604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48605   (exit $ac_status); } && {
48606          test -z "$ac_c_werror_flag" ||
48607          test ! -s conftest.err
48608        } && test -s conftest.$ac_objext; then
48609
48610                     { echo "$as_me:$LINENO: result: yes" >&5
48611 echo "${ECHO_T}yes" >&6; }
48612                     GCC_PCH=1
48613
48614 else
48615   echo "$as_me: failed program was:" >&5
48616 sed 's/^/| /' conftest.$ac_ext >&5
48617
48618
48619                     cat >conftest.$ac_ext <<_ACEOF
48620 /* confdefs.h.  */
48621 _ACEOF
48622 cat confdefs.h >>conftest.$ac_ext
48623 cat >>conftest.$ac_ext <<_ACEOF
48624 /* end confdefs.h.  */
48625
48626 int
48627 main ()
48628 {
48629
48630                             #if !defined(__INTEL_COMPILER) || \
48631                                 (__INTEL_COMPILER < 800)
48632                                 There is no PCH support
48633                             #endif
48634
48635   ;
48636   return 0;
48637 }
48638 _ACEOF
48639 rm -f conftest.$ac_objext
48640 if { (ac_try="$ac_compile"
48641 case "(($ac_try" in
48642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48643   *) ac_try_echo=$ac_try;;
48644 esac
48645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48646   (eval "$ac_compile") 2>conftest.er1
48647   ac_status=$?
48648   grep -v '^ *+' conftest.er1 >conftest.err
48649   rm -f conftest.er1
48650   cat conftest.err >&5
48651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48652   (exit $ac_status); } && {
48653          test -z "$ac_c_werror_flag" ||
48654          test ! -s conftest.err
48655        } && test -s conftest.$ac_objext; then
48656
48657                             { echo "$as_me:$LINENO: result: yes" >&5
48658 echo "${ECHO_T}yes" >&6; }
48659                             ICC_PCH=1
48660
48661 else
48662   echo "$as_me: failed program was:" >&5
48663 sed 's/^/| /' conftest.$ac_ext >&5
48664
48665
48666                             { echo "$as_me:$LINENO: result: no" >&5
48667 echo "${ECHO_T}no" >&6; }
48668
48669 fi
48670
48671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48672
48673 fi
48674
48675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48676             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48677                 USE_PCH=1
48678
48679 D='$'
48680 cat <<EOF >bk-make-pch
48681 #!/bin/sh
48682
48683 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48684 # script. It is used to generated precompiled headers.
48685 #
48686 # Permission is given to use this file in any way.
48687
48688 outfile="${D}{1}"
48689 header="${D}{2}"
48690 shift
48691 shift
48692
48693 compiler=""
48694 headerfile=""
48695
48696 while test ${D}{#} -gt 0; do
48697     add_to_cmdline=1
48698     case "${D}{1}" in
48699         -I* )
48700             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48701             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48702                 headerfile="${D}{incdir}/${D}{header}"
48703             fi
48704         ;;
48705         -use-pch|-use_pch )
48706             shift
48707             add_to_cmdline=0
48708         ;;
48709     esac
48710     if test ${D}add_to_cmdline = 1 ; then
48711         compiler="${D}{compiler} ${D}{1}"
48712     fi
48713     shift
48714 done
48715
48716 if test "x${D}{headerfile}" = "x" ; then
48717     echo "error: can't find header ${D}{header} in include paths" >&2
48718 else
48719     if test -f ${D}{outfile} ; then
48720         rm -f ${D}{outfile}
48721     else
48722         mkdir -p \`dirname ${D}{outfile}\`
48723     fi
48724     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48725     mkdir -p .deps
48726     if test "x${GCC_PCH}" = "x1" ; then
48727         # can do this because gcc is >= 3.4:
48728         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48729     elif test "x${ICC_PCH}" = "x1" ; then
48730         filename=pch_gen-${D}${D}
48731         file=${D}{filename}.c
48732         dfile=${D}{filename}.d
48733         cat > ${D}file <<EOT
48734 #include "${D}header"
48735 EOT
48736         # using -MF icc complains about differing command lines in creation/use
48737         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48738           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48739           rm -f ${D}file ${D}dfile ${D}{filename}.o
48740     fi
48741     exit ${D}{?}
48742 fi
48743 EOF
48744
48745                 chmod +x bk-make-pch
48746                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
48747             fi
48748         fi
48749     fi
48750
48751
48752
48753
48754
48755     COND_BUILD_DEBUG="#"
48756     if test "x$BUILD" = "xdebug" ; then
48757         COND_BUILD_DEBUG=""
48758     fi
48759
48760     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48761     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48762         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48763     fi
48764
48765     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48766     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48767         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48768     fi
48769
48770     COND_BUILD_DEBUG_UNICODE_0="#"
48771     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48772         COND_BUILD_DEBUG_UNICODE_0=""
48773     fi
48774
48775     COND_BUILD_DEBUG_UNICODE_1="#"
48776     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48777         COND_BUILD_DEBUG_UNICODE_1=""
48778     fi
48779
48780     COND_BUILD_RELEASE="#"
48781     if test "x$BUILD" = "xrelease" ; then
48782         COND_BUILD_RELEASE=""
48783     fi
48784
48785     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48786     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48787         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48788     fi
48789
48790     COND_BUILD_RELEASE_UNICODE_0="#"
48791     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48792         COND_BUILD_RELEASE_UNICODE_0=""
48793     fi
48794
48795     COND_BUILD_RELEASE_UNICODE_1="#"
48796     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48797         COND_BUILD_RELEASE_UNICODE_1=""
48798     fi
48799
48800     COND_DEBUG_FLAG_1="#"
48801     if test "x$DEBUG_FLAG" = "x1" ; then
48802         COND_DEBUG_FLAG_1=""
48803     fi
48804
48805     COND_DEBUG_INFO_0="#"
48806     if test "x$DEBUG_INFO" = "x0" ; then
48807         COND_DEBUG_INFO_0=""
48808     fi
48809
48810     COND_DEBUG_INFO_1="#"
48811     if test "x$DEBUG_INFO" = "x1" ; then
48812         COND_DEBUG_INFO_1=""
48813     fi
48814
48815     COND_DEPS_TRACKING_0="#"
48816     if test "x$DEPS_TRACKING" = "x0" ; then
48817         COND_DEPS_TRACKING_0=""
48818     fi
48819
48820     COND_DEPS_TRACKING_1="#"
48821     if test "x$DEPS_TRACKING" = "x1" ; then
48822         COND_DEPS_TRACKING_1=""
48823     fi
48824
48825     COND_GCC_PCH_1="#"
48826     if test "x$GCC_PCH" = "x1" ; then
48827         COND_GCC_PCH_1=""
48828     fi
48829
48830     COND_ICC_PCH_1="#"
48831     if test "x$ICC_PCH" = "x1" ; then
48832         COND_ICC_PCH_1=""
48833     fi
48834
48835     COND_MONOLITHIC_0="#"
48836     if test "x$MONOLITHIC" = "x0" ; then
48837         COND_MONOLITHIC_0=""
48838     fi
48839
48840     COND_MONOLITHIC_0_SHARED_0="#"
48841     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48842         COND_MONOLITHIC_0_SHARED_0=""
48843     fi
48844
48845     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48846     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48847         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48848     fi
48849
48850     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48851     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48852         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48853     fi
48854
48855     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48856     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48857         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48858     fi
48859
48860     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48861     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48862         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48863     fi
48864
48865     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48866     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48867         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48868     fi
48869
48870     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48871     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48872         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48873     fi
48874
48875     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
48876     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
48877         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
48878     fi
48879
48880     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48881     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48882         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48883     fi
48884
48885     COND_MONOLITHIC_0_SHARED_1="#"
48886     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48887         COND_MONOLITHIC_0_SHARED_1=""
48888     fi
48889
48890     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48891     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48892         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48893     fi
48894
48895     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48896     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48897         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48898     fi
48899
48900     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48901     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48902         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48903     fi
48904
48905     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48906     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48907         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48908     fi
48909
48910     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48911     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48912         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48913     fi
48914
48915     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48916     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48917         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48918     fi
48919
48920     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
48921     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
48922         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
48923     fi
48924
48925     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48926     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48927         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48928     fi
48929
48930     COND_MONOLITHIC_0_USE_AUI_1="#"
48931     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
48932         COND_MONOLITHIC_0_USE_AUI_1=""
48933     fi
48934
48935     COND_MONOLITHIC_0_USE_GUI_1="#"
48936     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
48937         COND_MONOLITHIC_0_USE_GUI_1=""
48938     fi
48939
48940     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
48941     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48942         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
48943     fi
48944
48945     COND_MONOLITHIC_0_USE_HTML_1="#"
48946     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
48947         COND_MONOLITHIC_0_USE_HTML_1=""
48948     fi
48949
48950     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48951     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48952         COND_MONOLITHIC_0_USE_MEDIA_1=""
48953     fi
48954
48955     COND_MONOLITHIC_0_USE_QA_1="#"
48956     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
48957         COND_MONOLITHIC_0_USE_QA_1=""
48958     fi
48959
48960     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
48961     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48962         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
48963     fi
48964
48965     COND_MONOLITHIC_0_USE_STC_1="#"
48966     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
48967         COND_MONOLITHIC_0_USE_STC_1=""
48968     fi
48969
48970     COND_MONOLITHIC_0_USE_XRC_1="#"
48971     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
48972         COND_MONOLITHIC_0_USE_XRC_1=""
48973     fi
48974
48975     COND_MONOLITHIC_1="#"
48976     if test "x$MONOLITHIC" = "x1" ; then
48977         COND_MONOLITHIC_1=""
48978     fi
48979
48980     COND_MONOLITHIC_1_SHARED_0="#"
48981     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48982         COND_MONOLITHIC_1_SHARED_0=""
48983     fi
48984
48985     COND_MONOLITHIC_1_SHARED_1="#"
48986     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48987         COND_MONOLITHIC_1_SHARED_1=""
48988     fi
48989
48990     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48991     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48992         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48993     fi
48994
48995     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48996     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48997         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48998     fi
48999
49000     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49001     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49002         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49003     fi
49004
49005     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49006     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49007         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49008     fi
49009
49010     COND_PLATFORM_MACOSX_1="#"
49011     if test "x$PLATFORM_MACOSX" = "x1" ; then
49012         COND_PLATFORM_MACOSX_1=""
49013     fi
49014
49015     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49016     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49017         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49018     fi
49019
49020     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49021     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49022         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49023     fi
49024
49025     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49026     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49027         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49028     fi
49029
49030     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49031     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49032         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49033     fi
49034
49035     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49036     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49037         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49038     fi
49039
49040     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49041     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49042         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49043     fi
49044
49045     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49046     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49047         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49048     fi
49049
49050     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49051     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49052         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49053     fi
49054
49055     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49056     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49057         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49058     fi
49059
49060     COND_PLATFORM_MACOS_1="#"
49061     if test "x$PLATFORM_MACOS" = "x1" ; then
49062         COND_PLATFORM_MACOS_1=""
49063     fi
49064
49065     COND_PLATFORM_MAC_1="#"
49066     if test "x$PLATFORM_MAC" = "x1" ; then
49067         COND_PLATFORM_MAC_1=""
49068     fi
49069
49070     COND_PLATFORM_MSDOS_1="#"
49071     if test "x$PLATFORM_MSDOS" = "x1" ; then
49072         COND_PLATFORM_MSDOS_1=""
49073     fi
49074
49075     COND_PLATFORM_OS2_1="#"
49076     if test "x$PLATFORM_OS2" = "x1" ; then
49077         COND_PLATFORM_OS2_1=""
49078     fi
49079
49080     COND_PLATFORM_UNIX_0="#"
49081     if test "x$PLATFORM_UNIX" = "x0" ; then
49082         COND_PLATFORM_UNIX_0=""
49083     fi
49084
49085     COND_PLATFORM_UNIX_1="#"
49086     if test "x$PLATFORM_UNIX" = "x1" ; then
49087         COND_PLATFORM_UNIX_1=""
49088     fi
49089
49090     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49091     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49092         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49093     fi
49094
49095     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49096     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49097         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49098     fi
49099
49100     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49101     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49102         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49103     fi
49104
49105     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49106     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49107         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49108     fi
49109
49110     COND_PLATFORM_WIN32_0="#"
49111     if test "x$PLATFORM_WIN32" = "x0" ; then
49112         COND_PLATFORM_WIN32_0=""
49113     fi
49114
49115     COND_PLATFORM_WIN32_1="#"
49116     if test "x$PLATFORM_WIN32" = "x1" ; then
49117         COND_PLATFORM_WIN32_1=""
49118     fi
49119
49120     COND_SHARED_0="#"
49121     if test "x$SHARED" = "x0" ; then
49122         COND_SHARED_0=""
49123     fi
49124
49125     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49126     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49127         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49128     fi
49129
49130     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49131     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49132         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49133     fi
49134
49135     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49136     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49137         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49138     fi
49139
49140     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49141     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49142         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49143     fi
49144
49145     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49146     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49147         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49148     fi
49149
49150     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49151     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49152         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49153     fi
49154
49155     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49156     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49157         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49158     fi
49159
49160     COND_SHARED_0_USE_STC_1="#"
49161     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49162         COND_SHARED_0_USE_STC_1=""
49163     fi
49164
49165     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49166     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49167         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49168     fi
49169
49170     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49171     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49172         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49173     fi
49174
49175     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49176     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49177         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49178     fi
49179
49180     COND_SHARED_1="#"
49181     if test "x$SHARED" = "x1" ; then
49182         COND_SHARED_1=""
49183     fi
49184
49185     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49186     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49187         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49188     fi
49189
49190     COND_TOOLKIT_="#"
49191     if test "x$TOOLKIT" = "x" ; then
49192         COND_TOOLKIT_=""
49193     fi
49194
49195     COND_TOOLKIT_COCOA="#"
49196     if test "x$TOOLKIT" = "xCOCOA" ; then
49197         COND_TOOLKIT_COCOA=""
49198     fi
49199
49200     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49201     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49202         COND_TOOLKIT_COCOA_USE_GUI_1=""
49203     fi
49204
49205     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49206     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49207         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49208     fi
49209
49210     COND_TOOLKIT_DFB="#"
49211     if test "x$TOOLKIT" = "xDFB" ; then
49212         COND_TOOLKIT_DFB=""
49213     fi
49214
49215     COND_TOOLKIT_DFB_USE_GUI_1="#"
49216     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49217         COND_TOOLKIT_DFB_USE_GUI_1=""
49218     fi
49219
49220     COND_TOOLKIT_GTK="#"
49221     if test "x$TOOLKIT" = "xGTK" ; then
49222         COND_TOOLKIT_GTK=""
49223     fi
49224
49225     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49226     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49227         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49228     fi
49229
49230     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49231     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49232         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49233     fi
49234
49235     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49236     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49237         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49238     fi
49239
49240     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49241     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49242         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49243     fi
49244
49245     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
49246     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
49247         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
49248     fi
49249
49250     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49251     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49252         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49253     fi
49254
49255     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49256     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49257         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49258     fi
49259
49260     COND_TOOLKIT_GTK_USE_GUI_1="#"
49261     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49262         COND_TOOLKIT_GTK_USE_GUI_1=""
49263     fi
49264
49265     COND_TOOLKIT_MAC="#"
49266     if test "x$TOOLKIT" = "xMAC" ; then
49267         COND_TOOLKIT_MAC=""
49268     fi
49269
49270     COND_TOOLKIT_MAC_USE_GUI_1="#"
49271     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49272         COND_TOOLKIT_MAC_USE_GUI_1=""
49273     fi
49274
49275     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49276     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49277         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49278     fi
49279
49280     COND_TOOLKIT_MGL="#"
49281     if test "x$TOOLKIT" = "xMGL" ; then
49282         COND_TOOLKIT_MGL=""
49283     fi
49284
49285     COND_TOOLKIT_MGL_USE_GUI_1="#"
49286     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49287         COND_TOOLKIT_MGL_USE_GUI_1=""
49288     fi
49289
49290     COND_TOOLKIT_MOTIF="#"
49291     if test "x$TOOLKIT" = "xMOTIF" ; then
49292         COND_TOOLKIT_MOTIF=""
49293     fi
49294
49295     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49296     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49297         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49298     fi
49299
49300     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49301     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49302         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49303     fi
49304
49305     COND_TOOLKIT_MSW="#"
49306     if test "x$TOOLKIT" = "xMSW" ; then
49307         COND_TOOLKIT_MSW=""
49308     fi
49309
49310     COND_TOOLKIT_MSW_USE_GUI_1="#"
49311     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49312         COND_TOOLKIT_MSW_USE_GUI_1=""
49313     fi
49314
49315     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49316     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49317         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49318     fi
49319
49320     COND_TOOLKIT_MSW_WXUNIV_0="#"
49321     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49322         COND_TOOLKIT_MSW_WXUNIV_0=""
49323     fi
49324
49325     COND_TOOLKIT_PM="#"
49326     if test "x$TOOLKIT" = "xPM" ; then
49327         COND_TOOLKIT_PM=""
49328     fi
49329
49330     COND_TOOLKIT_PM_USE_GUI_1="#"
49331     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49332         COND_TOOLKIT_PM_USE_GUI_1=""
49333     fi
49334
49335     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49336     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49337         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49338     fi
49339
49340     COND_TOOLKIT_WINCE="#"
49341     if test "x$TOOLKIT" = "xWINCE" ; then
49342         COND_TOOLKIT_WINCE=""
49343     fi
49344
49345     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49346     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49347         COND_TOOLKIT_WINCE_USE_GUI_1=""
49348     fi
49349
49350     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49351     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49352         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49353     fi
49354
49355     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49356     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49357         COND_TOOLKIT_WINCE_WXUNIV_0=""
49358     fi
49359
49360     COND_TOOLKIT_X11="#"
49361     if test "x$TOOLKIT" = "xX11" ; then
49362         COND_TOOLKIT_X11=""
49363     fi
49364
49365     COND_TOOLKIT_X11_USE_GUI_1="#"
49366     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49367         COND_TOOLKIT_X11_USE_GUI_1=""
49368     fi
49369
49370     COND_UNICODE_1="#"
49371     if test "x$UNICODE" = "x1" ; then
49372         COND_UNICODE_1=""
49373     fi
49374
49375     COND_USE_EXCEPTIONS_0="#"
49376     if test "x$USE_EXCEPTIONS" = "x0" ; then
49377         COND_USE_EXCEPTIONS_0=""
49378     fi
49379
49380     COND_USE_EXCEPTIONS_1="#"
49381     if test "x$USE_EXCEPTIONS" = "x1" ; then
49382         COND_USE_EXCEPTIONS_1=""
49383     fi
49384
49385     COND_USE_GUI_0="#"
49386     if test "x$USE_GUI" = "x0" ; then
49387         COND_USE_GUI_0=""
49388     fi
49389
49390     COND_USE_GUI_1="#"
49391     if test "x$USE_GUI" = "x1" ; then
49392         COND_USE_GUI_1=""
49393     fi
49394
49395     COND_USE_GUI_1_USE_OPENGL_1="#"
49396     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49397         COND_USE_GUI_1_USE_OPENGL_1=""
49398     fi
49399
49400     COND_USE_GUI_1_WXUNIV_0="#"
49401     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49402         COND_USE_GUI_1_WXUNIV_0=""
49403     fi
49404
49405     COND_USE_GUI_1_WXUNIV_1="#"
49406     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49407         COND_USE_GUI_1_WXUNIV_1=""
49408     fi
49409
49410     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49411     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49412         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49413     fi
49414
49415     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49416     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49417         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49418     fi
49419
49420     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49421     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49422         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49423     fi
49424
49425     COND_USE_PCH_1="#"
49426     if test "x$USE_PCH" = "x1" ; then
49427         COND_USE_PCH_1=""
49428     fi
49429
49430     COND_USE_PLUGINS_0="#"
49431     if test "x$USE_PLUGINS" = "x0" ; then
49432         COND_USE_PLUGINS_0=""
49433     fi
49434
49435     COND_USE_RTTI_0="#"
49436     if test "x$USE_RTTI" = "x0" ; then
49437         COND_USE_RTTI_0=""
49438     fi
49439
49440     COND_USE_RTTI_1="#"
49441     if test "x$USE_RTTI" = "x1" ; then
49442         COND_USE_RTTI_1=""
49443     fi
49444
49445     COND_USE_SOSYMLINKS_1="#"
49446     if test "x$USE_SOSYMLINKS" = "x1" ; then
49447         COND_USE_SOSYMLINKS_1=""
49448     fi
49449
49450     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49451     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49452         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49453     fi
49454
49455     COND_USE_SOVERLINUX_1="#"
49456     if test "x$USE_SOVERLINUX" = "x1" ; then
49457         COND_USE_SOVERLINUX_1=""
49458     fi
49459
49460     COND_USE_SOVERSION_0="#"
49461     if test "x$USE_SOVERSION" = "x0" ; then
49462         COND_USE_SOVERSION_0=""
49463     fi
49464
49465     COND_USE_SOVERSOLARIS_1="#"
49466     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49467         COND_USE_SOVERSOLARIS_1=""
49468     fi
49469
49470     COND_USE_STC_1="#"
49471     if test "x$USE_STC" = "x1" ; then
49472         COND_USE_STC_1=""
49473     fi
49474
49475     COND_USE_THREADS_0="#"
49476     if test "x$USE_THREADS" = "x0" ; then
49477         COND_USE_THREADS_0=""
49478     fi
49479
49480     COND_USE_THREADS_1="#"
49481     if test "x$USE_THREADS" = "x1" ; then
49482         COND_USE_THREADS_1=""
49483     fi
49484
49485     COND_USE_XRC_1="#"
49486     if test "x$USE_XRC" = "x1" ; then
49487         COND_USE_XRC_1=""
49488     fi
49489
49490     COND_WINDOWS_IMPLIB_1="#"
49491     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49492         COND_WINDOWS_IMPLIB_1=""
49493     fi
49494
49495     COND_WITH_PLUGIN_SDL_1="#"
49496     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49497         COND_WITH_PLUGIN_SDL_1=""
49498     fi
49499
49500     COND_WXUNIV_0="#"
49501     if test "x$WXUNIV" = "x0" ; then
49502         COND_WXUNIV_0=""
49503     fi
49504
49505     COND_WXUNIV_1="#"
49506     if test "x$WXUNIV" = "x1" ; then
49507         COND_WXUNIV_1=""
49508     fi
49509
49510     COND_WXUSE_EXPAT_BUILTIN="#"
49511     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49512         COND_WXUSE_EXPAT_BUILTIN=""
49513     fi
49514
49515     COND_WXUSE_LIBJPEG_BUILTIN="#"
49516     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49517         COND_WXUSE_LIBJPEG_BUILTIN=""
49518     fi
49519
49520     COND_WXUSE_LIBPNG_BUILTIN="#"
49521     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49522         COND_WXUSE_LIBPNG_BUILTIN=""
49523     fi
49524
49525     COND_WXUSE_LIBTIFF_BUILTIN="#"
49526     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49527         COND_WXUSE_LIBTIFF_BUILTIN=""
49528     fi
49529
49530     COND_WXUSE_REGEX_BUILTIN="#"
49531     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49532         COND_WXUSE_REGEX_BUILTIN=""
49533     fi
49534
49535     COND_WXUSE_ZLIB_BUILTIN="#"
49536     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49537         COND_WXUSE_ZLIB_BUILTIN=""
49538     fi
49539
49540
49541
49542     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49543         { { 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
49544 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;}
49545    { (exit 1); exit 1; }; }
49546     fi
49547
49548     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49549         { { 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
49550 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;}
49551    { (exit 1); exit 1; }; }
49552     fi
49553
49554
49555 case ${INSTALL} in
49556   /* ) # Absolute
49557      ;;
49558   ?:* ) # Drive letter, considered as absolute.
49559      ;;
49560   *)
49561      INSTALL=`pwd`/${INSTALL} ;;
49562 esac
49563
49564 if test "$wxUSE_GUI" = "yes"; then
49565
49566 if test "$wxUSE_MSW" = 1 ; then
49567     if test "x$WINDRES" = "x"; then
49568         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
49569 echo "$as_me: error: Required windres program not found" >&2;}
49570    { (exit 1); exit 1; }; }
49571     fi
49572
49573     RESCOMP="$WINDRES"
49574 fi
49575
49576 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
49577             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
49578     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
49579
49580         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
49581
49582     # Extract the first word of "DeRez", so it can be a program name with args.
49583 set dummy DeRez; ac_word=$2
49584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49586 if test "${ac_cv_prog_DEREZ+set}" = set; then
49587   echo $ECHO_N "(cached) $ECHO_C" >&6
49588 else
49589   if test -n "$DEREZ"; then
49590   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
49591 else
49592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49593 for as_dir in $PATH
49594 do
49595   IFS=$as_save_IFS
49596   test -z "$as_dir" && as_dir=.
49597   for ac_exec_ext in '' $ac_executable_extensions; do
49598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49599     ac_cv_prog_DEREZ="DeRez"
49600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49601     break 2
49602   fi
49603 done
49604 done
49605 IFS=$as_save_IFS
49606
49607   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
49608 fi
49609 fi
49610 DEREZ=$ac_cv_prog_DEREZ
49611 if test -n "$DEREZ"; then
49612   { echo "$as_me:$LINENO: result: $DEREZ" >&5
49613 echo "${ECHO_T}$DEREZ" >&6; }
49614 else
49615   { echo "$as_me:$LINENO: result: no" >&5
49616 echo "${ECHO_T}no" >&6; }
49617 fi
49618
49619
49620
49621     MACSETFILE="\$(SETFILE)"
49622
49623             if test "$wxUSE_MAC" = 1; then
49624         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
49625         RESCOMP="$REZ"
49626         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
49627     else
49628         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
49629         RESCOMP="cat /dev/null \| $REZ"
49630         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
49631     fi
49632
49633 else
49634         MACSETFILE="@true"
49635
49636     if test "$wxUSE_PM" = 1; then
49637         RESCOMP="emxbind"
49638         WXCONFIG_RESFLAGS="-ep"
49639
49640                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
49641     else
49642         POSTLINK_COMMAND="@true"
49643     fi
49644 fi
49645
49646 fi
49647
49648
49649 if test $GCC_PCH = 1
49650 then
49651     if test "$wx_cv_gcc_pch_bug" = yes; then
49652         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
49653 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
49654         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
49655 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
49656         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
49657 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
49658     fi
49659
49660     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49661 fi
49662
49663
49664 if test "$wxUSE_MAC" = 1 ; then
49665     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49666         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49667         mv temp bk-deps
49668         chmod +x bk-deps
49669     fi
49670 fi
49671
49672 if test "$wxUSE_SHARED" = "yes"; then
49673                 case "${host}" in
49674       *-pc-os2_emx | *-pc-os2-emx )
49675         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49676         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49677         cp -p ${srcdir}/src/os2/dllnames.sh .
49678         cp -p ${srcdir}/src/os2/dllar.sh .
49679       ;;
49680     esac
49681 fi
49682 if test "$wxUSE_OMF" = "yes"; then
49683     case "${host}" in
49684       *-pc-os2_emx | *-pc-os2-emx )
49685         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49686         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49687         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49688       ;;
49689     esac
49690 fi
49691
49692 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49693
49694
49695 case "${host}" in
49696     *-*-solaris2* )
49697                         if test "$GCC" = yes; then
49698             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
49699             LIBS=`echo $LIBS | sed 's/-mt//'`
49700             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
49701         fi
49702         ;;
49703
49704     *-*-linux* )
49705                         if test "x$SUNCXX" = xyes; then
49706             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
49707             LIBS=`echo $LIBS | sed 's/-pthread//'`
49708             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
49709         fi
49710         ;;
49711 esac
49712
49713 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
49714 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
49715
49716 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49778 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49779 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49781   echo $ECHO_N "(cached) $ECHO_C" >&6
49782 else
49783   cat >conftest.make <<\_ACEOF
49784 SHELL = /bin/sh
49785 all:
49786         @echo '@@@%%%=$(MAKE)=@@@%%%'
49787 _ACEOF
49788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49790   *@@@%%%=?*=@@@%%%*)
49791     eval ac_cv_prog_make_${ac_make}_set=yes;;
49792   *)
49793     eval ac_cv_prog_make_${ac_make}_set=no;;
49794 esac
49795 rm -f conftest.make
49796 fi
49797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49798   { echo "$as_me:$LINENO: result: yes" >&5
49799 echo "${ECHO_T}yes" >&6; }
49800   SET_MAKE=
49801 else
49802   { echo "$as_me:$LINENO: result: no" >&5
49803 echo "${ECHO_T}no" >&6; }
49804   SET_MAKE="MAKE=${MAKE-make}"
49805 fi
49806
49807
49808
49809 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49810
49811
49812 if test "$USE_WIN32" = 1; then
49813     ac_config_commands="$ac_config_commands
49814             rcdefs.h
49815         "
49816
49817 fi
49818
49819 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49820
49821
49822 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49823
49824
49825 if test "$wx_cv_version_script" = "yes"; then
49826     ac_config_files="$ac_config_files version-script"
49827
49828 fi
49829 ac_config_files="$ac_config_files Makefile"
49830
49831
49832 ac_config_commands="$ac_config_commands wx-config"
49833
49834
49835
49836 if test "$wxWITH_SUBDIRS" != "no"; then
49837 if test "$wxUSE_GUI" = "yes"; then
49838     SUBDIRS="samples demos utils"
49839 else
49840             SUBDIRS="samples utils"
49841 fi
49842
49843
49844
49845 # Check whether --with-cppunit-prefix was given.
49846 if test "${with_cppunit_prefix+set}" = set; then
49847   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
49848 else
49849   cppunit_config_prefix=""
49850 fi
49851
49852
49853 # Check whether --with-cppunit-exec-prefix was given.
49854 if test "${with_cppunit_exec_prefix+set}" = set; then
49855   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
49856 else
49857   cppunit_config_exec_prefix=""
49858 fi
49859
49860
49861   if test x$cppunit_config_exec_prefix != x ; then
49862      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49863      if test x${CPPUNIT_CONFIG+set} != xset ; then
49864         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49865      fi
49866   fi
49867   if test x$cppunit_config_prefix != x ; then
49868      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49869      if test x${CPPUNIT_CONFIG+set} != xset ; then
49870         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49871      fi
49872   fi
49873
49874   # Extract the first word of "cppunit-config", so it can be a program name with args.
49875 set dummy cppunit-config; ac_word=$2
49876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49878 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49879   echo $ECHO_N "(cached) $ECHO_C" >&6
49880 else
49881   case $CPPUNIT_CONFIG in
49882   [\\/]* | ?:[\\/]*)
49883   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49884   ;;
49885   *)
49886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49887 for as_dir in $PATH
49888 do
49889   IFS=$as_save_IFS
49890   test -z "$as_dir" && as_dir=.
49891   for ac_exec_ext in '' $ac_executable_extensions; do
49892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49893     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49895     break 2
49896   fi
49897 done
49898 done
49899 IFS=$as_save_IFS
49900
49901   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49902   ;;
49903 esac
49904 fi
49905 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49906 if test -n "$CPPUNIT_CONFIG"; then
49907   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49908 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
49909 else
49910   { echo "$as_me:$LINENO: result: no" >&5
49911 echo "${ECHO_T}no" >&6; }
49912 fi
49913
49914
49915   cppunit_version_min=1.8.0
49916
49917   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49918 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
49919   no_cppunit=""
49920   if test "$CPPUNIT_CONFIG" = "no" ; then
49921     { echo "$as_me:$LINENO: result: no" >&5
49922 echo "${ECHO_T}no" >&6; }
49923     no_cppunit=yes
49924   else
49925     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49926     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49927     cppunit_version=`$CPPUNIT_CONFIG --version`
49928
49929     cppunit_major_version=`echo $cppunit_version | \
49930            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49931     cppunit_minor_version=`echo $cppunit_version | \
49932            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49933     cppunit_micro_version=`echo $cppunit_version | \
49934            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49935
49936     cppunit_major_min=`echo $cppunit_version_min | \
49937            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49938     cppunit_minor_min=`echo $cppunit_version_min | \
49939            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49940     cppunit_micro_min=`echo $cppunit_version_min | \
49941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49942
49943     cppunit_version_proper=`expr \
49944         $cppunit_major_version \> $cppunit_major_min \| \
49945         $cppunit_major_version \= $cppunit_major_min \& \
49946         $cppunit_minor_version \> $cppunit_minor_min \| \
49947         $cppunit_major_version \= $cppunit_major_min \& \
49948         $cppunit_minor_version \= $cppunit_minor_min \& \
49949         $cppunit_micro_version \>= $cppunit_micro_min `
49950
49951     if test "$cppunit_version_proper" = "1" ; then
49952       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49953 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
49954     else
49955       { echo "$as_me:$LINENO: result: no" >&5
49956 echo "${ECHO_T}no" >&6; }
49957       no_cppunit=yes
49958     fi
49959   fi
49960
49961   if test "x$no_cppunit" = x ; then
49962      SUBDIRS="$SUBDIRS tests"
49963   else
49964      CPPUNIT_CFLAGS=""
49965      CPPUNIT_LIBS=""
49966      :
49967   fi
49968
49969
49970
49971
49972
49973 for subdir in $SUBDIRS; do
49974     if test -d ${srcdir}/${subdir} ; then
49975         if test "$wxUSE_GUI" = "yes"; then
49976             if test ${subdir} = "samples"; then
49977                                                 makefiles="samples/Makefile.in $makefiles"
49978                 for sample in $SAMPLES_SUBDIRS; do
49979                     if test -d $srcdir/samples/$sample; then
49980                         makefiles="samples/$sample/Makefile.in $makefiles"
49981                     fi
49982                 done
49983             else
49984                                                                 disabled_var=DISABLED_`echo $subdir | tr a-z A-Z`
49985                 eval "disabled=\$$disabled_var"
49986                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49987                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
49988             fi
49989         else
49990                                                 if test ${subdir} = "samples"; then
49991                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49992             elif test ${subdir} = "utils"; then
49993                 makefiles=""
49994                 for util in HelpGen tex2rtf ; do
49995                     if test -d $srcdir/utils/$util ; then
49996                         makefiles="utils/$util/Makefile.in \
49997                                    utils/$util/src/Makefile.in \
49998                                    $makefiles"
49999                     fi
50000                 done
50001             else
50002                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50003             fi
50004         fi
50005
50006         for mkin in $makefiles ; do
50007             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50008             ac_config_files="$ac_config_files $mk"
50009
50010         done
50011     fi
50012 done
50013 fi
50014 cat >confcache <<\_ACEOF
50015 # This file is a shell script that caches the results of configure
50016 # tests run on this system so they can be shared between configure
50017 # scripts and configure runs, see configure's option --config-cache.
50018 # It is not useful on other systems.  If it contains results you don't
50019 # want to keep, you may remove or edit it.
50020 #
50021 # config.status only pays attention to the cache file if you give it
50022 # the --recheck option to rerun configure.
50023 #
50024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50026 # following values.
50027
50028 _ACEOF
50029
50030 # The following way of writing the cache mishandles newlines in values,
50031 # but we know of no workaround that is simple, portable, and efficient.
50032 # So, we kill variables containing newlines.
50033 # Ultrix sh set writes to stderr and can't be redirected directly,
50034 # and sets the high bit in the cache file unless we assign to the vars.
50035 (
50036   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50037     eval ac_val=\$$ac_var
50038     case $ac_val in #(
50039     *${as_nl}*)
50040       case $ac_var in #(
50041       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50042 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50043       esac
50044       case $ac_var in #(
50045       _ | IFS | as_nl) ;; #(
50046       *) $as_unset $ac_var ;;
50047       esac ;;
50048     esac
50049   done
50050
50051   (set) 2>&1 |
50052     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50053     *${as_nl}ac_space=\ *)
50054       # `set' does not quote correctly, so add quotes (double-quote
50055       # substitution turns \\\\ into \\, and sed turns \\ into \).
50056       sed -n \
50057         "s/'/'\\\\''/g;
50058           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50059       ;; #(
50060     *)
50061       # `set' quotes correctly as required by POSIX, so do not add quotes.
50062       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50063       ;;
50064     esac |
50065     sort
50066 ) |
50067   sed '
50068      /^ac_cv_env_/b end
50069      t clear
50070      :clear
50071      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50072      t end
50073      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50074      :end' >>confcache
50075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50076   if test -w "$cache_file"; then
50077     test "x$cache_file" != "x/dev/null" &&
50078       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50079 echo "$as_me: updating cache $cache_file" >&6;}
50080     cat confcache >$cache_file
50081   else
50082     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50083 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50084   fi
50085 fi
50086 rm -f confcache
50087
50088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50089 # Let make expand exec_prefix.
50090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50091
50092 DEFS=-DHAVE_CONFIG_H
50093
50094 ac_libobjs=
50095 ac_ltlibobjs=
50096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50097   # 1. Remove the extension, and $U if already installed.
50098   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50099   ac_i=`echo "$ac_i" | sed "$ac_script"`
50100   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50101   #    will be set to the directory where LIBOBJS objects are built.
50102   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50103   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50104 done
50105 LIBOBJS=$ac_libobjs
50106
50107 LTLIBOBJS=$ac_ltlibobjs
50108
50109
50110
50111 : ${CONFIG_STATUS=./config.status}
50112 ac_clean_files_save=$ac_clean_files
50113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50114 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50115 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50116 cat >$CONFIG_STATUS <<_ACEOF
50117 #! $SHELL
50118 # Generated by $as_me.
50119 # Run this file to recreate the current configuration.
50120 # Compiler output produced by configure, useful for debugging
50121 # configure, is in config.log if it exists.
50122
50123 debug=false
50124 ac_cs_recheck=false
50125 ac_cs_silent=false
50126 SHELL=\${CONFIG_SHELL-$SHELL}
50127 _ACEOF
50128
50129 cat >>$CONFIG_STATUS <<\_ACEOF
50130 ## --------------------- ##
50131 ## M4sh Initialization.  ##
50132 ## --------------------- ##
50133
50134 # Be more Bourne compatible
50135 DUALCASE=1; export DUALCASE # for MKS sh
50136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50137   emulate sh
50138   NULLCMD=:
50139   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50140   # is contrary to our usage.  Disable this feature.
50141   alias -g '${1+"$@"}'='"$@"'
50142   setopt NO_GLOB_SUBST
50143 else
50144   case `(set -o) 2>/dev/null` in
50145   *posix*) set -o posix ;;
50146 esac
50147
50148 fi
50149
50150
50151
50152
50153 # PATH needs CR
50154 # Avoid depending upon Character Ranges.
50155 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50156 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50157 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50158 as_cr_digits='0123456789'
50159 as_cr_alnum=$as_cr_Letters$as_cr_digits
50160
50161 # The user is always right.
50162 if test "${PATH_SEPARATOR+set}" != set; then
50163   echo "#! /bin/sh" >conf$$.sh
50164   echo  "exit 0"   >>conf$$.sh
50165   chmod +x conf$$.sh
50166   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50167     PATH_SEPARATOR=';'
50168   else
50169     PATH_SEPARATOR=:
50170   fi
50171   rm -f conf$$.sh
50172 fi
50173
50174 # Support unset when possible.
50175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50176   as_unset=unset
50177 else
50178   as_unset=false
50179 fi
50180
50181
50182 # IFS
50183 # We need space, tab and new line, in precisely that order.  Quoting is
50184 # there to prevent editors from complaining about space-tab.
50185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50186 # splitting by setting IFS to empty value.)
50187 as_nl='
50188 '
50189 IFS=" ""        $as_nl"
50190
50191 # Find who we are.  Look in the path if we contain no directory separator.
50192 case $0 in
50193   *[\\/]* ) as_myself=$0 ;;
50194   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50195 for as_dir in $PATH
50196 do
50197   IFS=$as_save_IFS
50198   test -z "$as_dir" && as_dir=.
50199   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50200 done
50201 IFS=$as_save_IFS
50202
50203      ;;
50204 esac
50205 # We did not find ourselves, most probably we were run as `sh COMMAND'
50206 # in which case we are not to be found in the path.
50207 if test "x$as_myself" = x; then
50208   as_myself=$0
50209 fi
50210 if test ! -f "$as_myself"; then
50211   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50212   { (exit 1); exit 1; }
50213 fi
50214
50215 # Work around bugs in pre-3.0 UWIN ksh.
50216 for as_var in ENV MAIL MAILPATH
50217 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50218 done
50219 PS1='$ '
50220 PS2='> '
50221 PS4='+ '
50222
50223 # NLS nuisances.
50224 for as_var in \
50225   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50226   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50227   LC_TELEPHONE LC_TIME
50228 do
50229   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50230     eval $as_var=C; export $as_var
50231   else
50232     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50233   fi
50234 done
50235
50236 # Required to use basename.
50237 if expr a : '\(a\)' >/dev/null 2>&1 &&
50238    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50239   as_expr=expr
50240 else
50241   as_expr=false
50242 fi
50243
50244 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50245   as_basename=basename
50246 else
50247   as_basename=false
50248 fi
50249
50250
50251 # Name of the executable.
50252 as_me=`$as_basename -- "$0" ||
50253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50254          X"$0" : 'X\(//\)$' \| \
50255          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50256 echo X/"$0" |
50257     sed '/^.*\/\([^/][^/]*\)\/*$/{
50258             s//\1/
50259             q
50260           }
50261           /^X\/\(\/\/\)$/{
50262             s//\1/
50263             q
50264           }
50265           /^X\/\(\/\).*/{
50266             s//\1/
50267             q
50268           }
50269           s/.*/./; q'`
50270
50271 # CDPATH.
50272 $as_unset CDPATH
50273
50274
50275
50276   as_lineno_1=$LINENO
50277   as_lineno_2=$LINENO
50278   test "x$as_lineno_1" != "x$as_lineno_2" &&
50279   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50280
50281   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50282   # uniformly replaced by the line number.  The first 'sed' inserts a
50283   # line-number line after each line using $LINENO; the second 'sed'
50284   # does the real work.  The second script uses 'N' to pair each
50285   # line-number line with the line containing $LINENO, and appends
50286   # trailing '-' during substitution so that $LINENO is not a special
50287   # case at line end.
50288   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50289   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50290   # E. McMahon (1931-1989) for sed's syntax.  :-)
50291   sed -n '
50292     p
50293     /[$]LINENO/=
50294   ' <$as_myself |
50295     sed '
50296       s/[$]LINENO.*/&-/
50297       t lineno
50298       b
50299       :lineno
50300       N
50301       :loop
50302       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50303       t loop
50304       s/-\n.*//
50305     ' >$as_me.lineno &&
50306   chmod +x "$as_me.lineno" ||
50307     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50308    { (exit 1); exit 1; }; }
50309
50310   # Don't try to exec as it changes $[0], causing all sort of problems
50311   # (the dirname of $[0] is not the place where we might find the
50312   # original and so on.  Autoconf is especially sensitive to this).
50313   . "./$as_me.lineno"
50314   # Exit status is that of the last command.
50315   exit
50316 }
50317
50318
50319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50320   as_dirname=dirname
50321 else
50322   as_dirname=false
50323 fi
50324
50325 ECHO_C= ECHO_N= ECHO_T=
50326 case `echo -n x` in
50327 -n*)
50328   case `echo 'x\c'` in
50329   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50330   *)   ECHO_C='\c';;
50331   esac;;
50332 *)
50333   ECHO_N='-n';;
50334 esac
50335
50336 if expr a : '\(a\)' >/dev/null 2>&1 &&
50337    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50338   as_expr=expr
50339 else
50340   as_expr=false
50341 fi
50342
50343 rm -f conf$$ conf$$.exe conf$$.file
50344 if test -d conf$$.dir; then
50345   rm -f conf$$.dir/conf$$.file
50346 else
50347   rm -f conf$$.dir
50348   mkdir conf$$.dir
50349 fi
50350 echo >conf$$.file
50351 if ln -s conf$$.file conf$$ 2>/dev/null; then
50352   as_ln_s='ln -s'
50353   # ... but there are two gotchas:
50354   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50355   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50356   # In both cases, we have to default to `cp -p'.
50357   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50358     as_ln_s='cp -p'
50359 elif ln conf$$.file conf$$ 2>/dev/null; then
50360   as_ln_s=ln
50361 else
50362   as_ln_s='cp -p'
50363 fi
50364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50365 rmdir conf$$.dir 2>/dev/null
50366
50367 if mkdir -p . 2>/dev/null; then
50368   as_mkdir_p=:
50369 else
50370   test -d ./-p && rmdir ./-p
50371   as_mkdir_p=false
50372 fi
50373
50374 if test -x / >/dev/null 2>&1; then
50375   as_test_x='test -x'
50376 else
50377   if ls -dL / >/dev/null 2>&1; then
50378     as_ls_L_option=L
50379   else
50380     as_ls_L_option=
50381   fi
50382   as_test_x='
50383     eval sh -c '\''
50384       if test -d "$1"; then
50385         test -d "$1/.";
50386       else
50387         case $1 in
50388         -*)set "./$1";;
50389         esac;
50390         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50391         ???[sx]*):;;*)false;;esac;fi
50392     '\'' sh
50393   '
50394 fi
50395 as_executable_p=$as_test_x
50396
50397 # Sed expression to map a string onto a valid CPP name.
50398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50399
50400 # Sed expression to map a string onto a valid variable name.
50401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50402
50403
50404 exec 6>&1
50405
50406 # Save the log message, to keep $[0] and so on meaningful, and to
50407 # report actual input values of CONFIG_FILES etc. instead of their
50408 # values after options handling.
50409 ac_log="
50410 This file was extended by wxWidgets $as_me 2.9.0, which was
50411 generated by GNU Autoconf 2.61.  Invocation command line was
50412
50413   CONFIG_FILES    = $CONFIG_FILES
50414   CONFIG_HEADERS  = $CONFIG_HEADERS
50415   CONFIG_LINKS    = $CONFIG_LINKS
50416   CONFIG_COMMANDS = $CONFIG_COMMANDS
50417   $ $0 $@
50418
50419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50420 "
50421
50422 _ACEOF
50423
50424 cat >>$CONFIG_STATUS <<_ACEOF
50425 # Files that config.status was made for.
50426 config_files="$ac_config_files"
50427 config_headers="$ac_config_headers"
50428 config_commands="$ac_config_commands"
50429
50430 _ACEOF
50431
50432 cat >>$CONFIG_STATUS <<\_ACEOF
50433 ac_cs_usage="\
50434 \`$as_me' instantiates files from templates according to the
50435 current configuration.
50436
50437 Usage: $0 [OPTIONS] [FILE]...
50438
50439   -h, --help       print this help, then exit
50440   -V, --version    print version number and configuration settings, then exit
50441   -q, --quiet      do not print progress messages
50442   -d, --debug      don't remove temporary files
50443       --recheck    update $as_me by reconfiguring in the same conditions
50444   --file=FILE[:TEMPLATE]
50445                    instantiate the configuration file FILE
50446   --header=FILE[:TEMPLATE]
50447                    instantiate the configuration header FILE
50448
50449 Configuration files:
50450 $config_files
50451
50452 Configuration headers:
50453 $config_headers
50454
50455 Configuration commands:
50456 $config_commands
50457
50458 Report bugs to <bug-autoconf@gnu.org>."
50459
50460 _ACEOF
50461 cat >>$CONFIG_STATUS <<_ACEOF
50462 ac_cs_version="\\
50463 wxWidgets config.status 2.9.0
50464 configured by $0, generated by GNU Autoconf 2.61,
50465   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50466
50467 Copyright (C) 2006 Free Software Foundation, Inc.
50468 This config.status script is free software; the Free Software Foundation
50469 gives unlimited permission to copy, distribute and modify it."
50470
50471 ac_pwd='$ac_pwd'
50472 srcdir='$srcdir'
50473 INSTALL='$INSTALL'
50474 _ACEOF
50475
50476 cat >>$CONFIG_STATUS <<\_ACEOF
50477 # If no file are specified by the user, then we need to provide default
50478 # value.  By we need to know if files were specified by the user.
50479 ac_need_defaults=:
50480 while test $# != 0
50481 do
50482   case $1 in
50483   --*=*)
50484     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50485     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50486     ac_shift=:
50487     ;;
50488   *)
50489     ac_option=$1
50490     ac_optarg=$2
50491     ac_shift=shift
50492     ;;
50493   esac
50494
50495   case $ac_option in
50496   # Handling of the options.
50497   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50498     ac_cs_recheck=: ;;
50499   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50500     echo "$ac_cs_version"; exit ;;
50501   --debug | --debu | --deb | --de | --d | -d )
50502     debug=: ;;
50503   --file | --fil | --fi | --f )
50504     $ac_shift
50505     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50506     ac_need_defaults=false;;
50507   --header | --heade | --head | --hea )
50508     $ac_shift
50509     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50510     ac_need_defaults=false;;
50511   --he | --h)
50512     # Conflict between --help and --header
50513     { echo "$as_me: error: ambiguous option: $1
50514 Try \`$0 --help' for more information." >&2
50515    { (exit 1); exit 1; }; };;
50516   --help | --hel | -h )
50517     echo "$ac_cs_usage"; exit ;;
50518   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50519   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50520     ac_cs_silent=: ;;
50521
50522   # This is an error.
50523   -*) { echo "$as_me: error: unrecognized option: $1
50524 Try \`$0 --help' for more information." >&2
50525    { (exit 1); exit 1; }; } ;;
50526
50527   *) ac_config_targets="$ac_config_targets $1"
50528      ac_need_defaults=false ;;
50529
50530   esac
50531   shift
50532 done
50533
50534 ac_configure_extra_args=
50535
50536 if $ac_cs_silent; then
50537   exec 6>/dev/null
50538   ac_configure_extra_args="$ac_configure_extra_args --silent"
50539 fi
50540
50541 _ACEOF
50542 cat >>$CONFIG_STATUS <<_ACEOF
50543 if \$ac_cs_recheck; then
50544   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50545   CONFIG_SHELL=$SHELL
50546   export CONFIG_SHELL
50547   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50548 fi
50549
50550 _ACEOF
50551 cat >>$CONFIG_STATUS <<\_ACEOF
50552 exec 5>>config.log
50553 {
50554   echo
50555   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50556 ## Running $as_me. ##
50557 _ASBOX
50558   echo "$ac_log"
50559 } >&5
50560
50561 _ACEOF
50562 cat >>$CONFIG_STATUS <<_ACEOF
50563 #
50564 # INIT-COMMANDS
50565 #
50566
50567             CPP="$CPP"
50568             infile="$srcdir/include/wx/msw/genrcdefs.h"
50569             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50570
50571
50572  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50573  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50574  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50575                      LN_S="${LN_S}"
50576
50577
50578 _ACEOF
50579
50580 cat >>$CONFIG_STATUS <<\_ACEOF
50581
50582 # Handling of arguments.
50583 for ac_config_target in $ac_config_targets
50584 do
50585   case $ac_config_target in
50586     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50587     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50588     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50589     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50590     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
50591     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50592     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50593     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
50594
50595   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50596 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50597    { (exit 1); exit 1; }; };;
50598   esac
50599 done
50600
50601
50602 # If the user did not use the arguments to specify the items to instantiate,
50603 # then the envvar interface is used.  Set only those that are not.
50604 # We use the long form for the default assignment because of an extremely
50605 # bizarre bug on SunOS 4.1.3.
50606 if $ac_need_defaults; then
50607   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50608   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50609   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50610 fi
50611
50612 # Have a temporary directory for convenience.  Make it in the build tree
50613 # simply because there is no reason against having it here, and in addition,
50614 # creating and moving files from /tmp can sometimes cause problems.
50615 # Hook for its removal unless debugging.
50616 # Note that there is a small window in which the directory will not be cleaned:
50617 # after its creation but before its name has been assigned to `$tmp'.
50618 $debug ||
50619 {
50620   tmp=
50621   trap 'exit_status=$?
50622   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50623 ' 0
50624   trap '{ (exit 1); exit 1; }' 1 2 13 15
50625 }
50626 # Create a (secure) tmp directory for tmp files.
50627
50628 {
50629   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50630   test -n "$tmp" && test -d "$tmp"
50631 }  ||
50632 {
50633   tmp=./conf$$-$RANDOM
50634   (umask 077 && mkdir "$tmp")
50635 } ||
50636 {
50637    echo "$me: cannot create a temporary directory in ." >&2
50638    { (exit 1); exit 1; }
50639 }
50640
50641 #
50642 # Set up the sed scripts for CONFIG_FILES section.
50643 #
50644
50645 # No need to generate the scripts if there are no CONFIG_FILES.
50646 # This happens for instance when ./config.status config.h
50647 if test -n "$CONFIG_FILES"; then
50648
50649 _ACEOF
50650
50651
50652
50653 ac_delim='%!_!# '
50654 for ac_last_try in false false false false false :; do
50655   cat >conf$$subs.sed <<_ACEOF
50656 SHELL!$SHELL$ac_delim
50657 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50658 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50659 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50660 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50661 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50662 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50663 exec_prefix!$exec_prefix$ac_delim
50664 prefix!$prefix$ac_delim
50665 program_transform_name!$program_transform_name$ac_delim
50666 bindir!$bindir$ac_delim
50667 sbindir!$sbindir$ac_delim
50668 libexecdir!$libexecdir$ac_delim
50669 datarootdir!$datarootdir$ac_delim
50670 datadir!$datadir$ac_delim
50671 sysconfdir!$sysconfdir$ac_delim
50672 sharedstatedir!$sharedstatedir$ac_delim
50673 localstatedir!$localstatedir$ac_delim
50674 includedir!$includedir$ac_delim
50675 oldincludedir!$oldincludedir$ac_delim
50676 docdir!$docdir$ac_delim
50677 infodir!$infodir$ac_delim
50678 htmldir!$htmldir$ac_delim
50679 dvidir!$dvidir$ac_delim
50680 pdfdir!$pdfdir$ac_delim
50681 psdir!$psdir$ac_delim
50682 libdir!$libdir$ac_delim
50683 localedir!$localedir$ac_delim
50684 mandir!$mandir$ac_delim
50685 DEFS!$DEFS$ac_delim
50686 ECHO_C!$ECHO_C$ac_delim
50687 ECHO_N!$ECHO_N$ac_delim
50688 ECHO_T!$ECHO_T$ac_delim
50689 LIBS!$LIBS$ac_delim
50690 build_alias!$build_alias$ac_delim
50691 host_alias!$host_alias$ac_delim
50692 target_alias!$target_alias$ac_delim
50693 build!$build$ac_delim
50694 build_cpu!$build_cpu$ac_delim
50695 build_vendor!$build_vendor$ac_delim
50696 build_os!$build_os$ac_delim
50697 host!$host$ac_delim
50698 host_cpu!$host_cpu$ac_delim
50699 host_vendor!$host_vendor$ac_delim
50700 host_os!$host_os$ac_delim
50701 target!$target$ac_delim
50702 target_cpu!$target_cpu$ac_delim
50703 target_vendor!$target_vendor$ac_delim
50704 target_os!$target_os$ac_delim
50705 wx_top_builddir!$wx_top_builddir$ac_delim
50706 CC!$CC$ac_delim
50707 CFLAGS!$CFLAGS$ac_delim
50708 LDFLAGS!$LDFLAGS$ac_delim
50709 CPPFLAGS!$CPPFLAGS$ac_delim
50710 ac_ct_CC!$ac_ct_CC$ac_delim
50711 EXEEXT!$EXEEXT$ac_delim
50712 OBJEXT!$OBJEXT$ac_delim
50713 CPP!$CPP$ac_delim
50714 GREP!$GREP$ac_delim
50715 EGREP!$EGREP$ac_delim
50716 CXX!$CXX$ac_delim
50717 CXXFLAGS!$CXXFLAGS$ac_delim
50718 ac_ct_CXX!$ac_ct_CXX$ac_delim
50719 AR!$AR$ac_delim
50720 subdirs!$subdirs$ac_delim
50721 PKG_CONFIG!$PKG_CONFIG$ac_delim
50722 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
50723 GTK_LIBS!$GTK_LIBS$ac_delim
50724 GTK_CONFIG!$GTK_CONFIG$ac_delim
50725 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
50726 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
50727 XMKMF!$XMKMF$ac_delim
50728 X_CFLAGS!$X_CFLAGS$ac_delim
50729 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
50730 X_LIBS!$X_LIBS$ac_delim
50731 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
50732 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
50733 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
50734 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
50735 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
50736 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
50737 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
50738 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
50739 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
50740 LIBICONV!$LIBICONV$ac_delim
50741 SDL_CONFIG!$SDL_CONFIG$ac_delim
50742 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
50743 SDL_LIBS!$SDL_LIBS$ac_delim
50744 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
50745 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
50746 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
50747 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
50748 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
50749 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
50750 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
50751 HILDON_LIBS!$HILDON_LIBS$ac_delim
50752 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
50753 _ACEOF
50754
50755   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50756     break
50757   elif $ac_last_try; then
50758     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50759 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50760    { (exit 1); exit 1; }; }
50761   else
50762     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50763   fi
50764 done
50765
50766 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50767 if test -n "$ac_eof"; then
50768   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50769   ac_eof=`expr $ac_eof + 1`
50770 fi
50771
50772 cat >>$CONFIG_STATUS <<_ACEOF
50773 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50775 _ACEOF
50776 sed '
50777 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50778 s/^/s,@/; s/!/@,|#_!!_#|/
50779 :n
50780 t n
50781 s/'"$ac_delim"'$/,g/; t
50782 s/$/\\/; p
50783 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50784 ' >>$CONFIG_STATUS <conf$$subs.sed
50785 rm -f conf$$subs.sed
50786 cat >>$CONFIG_STATUS <<_ACEOF
50787 CEOF$ac_eof
50788 _ACEOF
50789
50790
50791 ac_delim='%!_!# '
50792 for ac_last_try in false false false false false :; do
50793   cat >conf$$subs.sed <<_ACEOF
50794 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
50795 GST_CFLAGS!$GST_CFLAGS$ac_delim
50796 GST_LIBS!$GST_LIBS$ac_delim
50797 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
50798 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
50799 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
50800 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
50801 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
50802 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
50803 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
50804 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
50805 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
50806 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
50807 VENDOR!$VENDOR$ac_delim
50808 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
50809 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
50810 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
50811 WXUNIV!$WXUNIV$ac_delim
50812 MONOLITHIC!$MONOLITHIC$ac_delim
50813 USE_PLUGINS!$USE_PLUGINS$ac_delim
50814 CXXWARNINGS!$CXXWARNINGS$ac_delim
50815 EXTRALIBS!$EXTRALIBS$ac_delim
50816 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
50817 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
50818 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
50819 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
50820 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
50821 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
50822 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
50823 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
50824 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
50825 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
50826 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
50827 UNICODE!$UNICODE$ac_delim
50828 BUILD!$BUILD$ac_delim
50829 DEBUG_INFO!$DEBUG_INFO$ac_delim
50830 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
50831 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
50832 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
50833 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
50834 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
50835 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
50836 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
50837 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
50838 RANLIB!$RANLIB$ac_delim
50839 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50840 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50841 INSTALL_DATA!$INSTALL_DATA$ac_delim
50842 LN_S!$LN_S$ac_delim
50843 SET_MAKE!$SET_MAKE$ac_delim
50844 MAKE_SET!$MAKE_SET$ac_delim
50845 AROPTIONS!$AROPTIONS$ac_delim
50846 STRIP!$STRIP$ac_delim
50847 NM!$NM$ac_delim
50848 INSTALL_DIR!$INSTALL_DIR$ac_delim
50849 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
50850 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
50851 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
50852 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
50853 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
50854 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
50855 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
50856 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
50857 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
50858 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
50859 SO_SUFFIX!$SO_SUFFIX$ac_delim
50860 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
50861 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
50862 LIBPREFIX!$LIBPREFIX$ac_delim
50863 LIBEXT!$LIBEXT$ac_delim
50864 DLLPREFIX!$DLLPREFIX$ac_delim
50865 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
50866 dlldir!$dlldir$ac_delim
50867 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
50868 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
50869 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
50870 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
50871 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
50872 PIC_FLAG!$PIC_FLAG$ac_delim
50873 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
50874 USE_SOVERSION!$USE_SOVERSION$ac_delim
50875 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
50876 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
50877 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
50878 USE_MACVERSION!$USE_MACVERSION$ac_delim
50879 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
50880 SONAME_FLAG!$SONAME_FLAG$ac_delim
50881 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
50882 BK_DEPS!$BK_DEPS$ac_delim
50883 WINDRES!$WINDRES$ac_delim
50884 REZ!$REZ$ac_delim
50885 SETFILE!$SETFILE$ac_delim
50886 GCC_PCH!$GCC_PCH$ac_delim
50887 ICC_PCH!$ICC_PCH$ac_delim
50888 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
50889 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
50890 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
50891 _ACEOF
50892
50893   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50894     break
50895   elif $ac_last_try; then
50896     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50897 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50898    { (exit 1); exit 1; }; }
50899   else
50900     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50901   fi
50902 done
50903
50904 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50905 if test -n "$ac_eof"; then
50906   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50907   ac_eof=`expr $ac_eof + 1`
50908 fi
50909
50910 cat >>$CONFIG_STATUS <<_ACEOF
50911 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50913 _ACEOF
50914 sed '
50915 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50916 s/^/s,@/; s/!/@,|#_!!_#|/
50917 :n
50918 t n
50919 s/'"$ac_delim"'$/,g/; t
50920 s/$/\\/; p
50921 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50922 ' >>$CONFIG_STATUS <conf$$subs.sed
50923 rm -f conf$$subs.sed
50924 cat >>$CONFIG_STATUS <<_ACEOF
50925 CEOF$ac_eof
50926 _ACEOF
50927
50928
50929 ac_delim='%!_!# '
50930 for ac_last_try in false false false false false :; do
50931   cat >conf$$subs.sed <<_ACEOF
50932 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
50933 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
50934 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
50935 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
50936 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
50937 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
50938 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
50939 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
50940 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
50941 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
50942 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
50943 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
50944 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
50945 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
50946 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
50947 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
50948 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
50949 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
50950 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
50951 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
50952 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
50953 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
50954 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
50955 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
50956 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
50957 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
50958 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
50959 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
50960 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
50961 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
50962 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
50963 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
50964 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
50965 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
50966 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
50967 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
50968 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
50969 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
50970 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
50971 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
50972 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
50973 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
50974 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
50975 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
50976 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
50977 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
50978 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
50979 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
50980 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
50981 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
50982 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
50983 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
50984 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
50985 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
50986 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
50987 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
50988 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
50989 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
50990 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
50991 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
50992 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
50993 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
50994 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
50995 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
50996 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
50997 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
50998 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
50999 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51000 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51001 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51002 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51003 COND_SHARED_0!$COND_SHARED_0$ac_delim
51004 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51005 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51006 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51007 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51008 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51009 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51010 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51011 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51012 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51013 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51014 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51015 COND_SHARED_1!$COND_SHARED_1$ac_delim
51016 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51017 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51018 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51019 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51020 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51021 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51022 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51023 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51024 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51025 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51026 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51027 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51028 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51029 _ACEOF
51030
51031   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51032     break
51033   elif $ac_last_try; then
51034     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51035 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51036    { (exit 1); exit 1; }; }
51037   else
51038     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51039   fi
51040 done
51041
51042 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51043 if test -n "$ac_eof"; then
51044   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51045   ac_eof=`expr $ac_eof + 1`
51046 fi
51047
51048 cat >>$CONFIG_STATUS <<_ACEOF
51049 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51051 _ACEOF
51052 sed '
51053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51054 s/^/s,@/; s/!/@,|#_!!_#|/
51055 :n
51056 t n
51057 s/'"$ac_delim"'$/,g/; t
51058 s/$/\\/; p
51059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51060 ' >>$CONFIG_STATUS <conf$$subs.sed
51061 rm -f conf$$subs.sed
51062 cat >>$CONFIG_STATUS <<_ACEOF
51063 CEOF$ac_eof
51064 _ACEOF
51065
51066
51067 ac_delim='%!_!# '
51068 for ac_last_try in false false false false false :; do
51069   cat >conf$$subs.sed <<_ACEOF
51070 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51071 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51072 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51073 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51074 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
51075 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
51076 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51077 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51078 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51079 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51080 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51081 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51082 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51083 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51084 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51085 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51086 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51087 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51088 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51089 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51090 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51091 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51092 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51093 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51094 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51095 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51096 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51097 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51098 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51099 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51100 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51101 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51102 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51103 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51104 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51105 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51106 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51107 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51108 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51109 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51110 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51111 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51112 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51113 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51114 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51115 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51116 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51117 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51118 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51119 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51120 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51121 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51122 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51123 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51124 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51125 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51126 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51127 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51128 DEREZ!$DEREZ$ac_delim
51129 SHARED!$SHARED$ac_delim
51130 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51131 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51132 USE_GUI!$USE_GUI$ac_delim
51133 AFMINSTALL!$AFMINSTALL$ac_delim
51134 WIN32INSTALL!$WIN32INSTALL$ac_delim
51135 TOOLKIT!$TOOLKIT$ac_delim
51136 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51137 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51138 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51139 cross_compiling!$cross_compiling$ac_delim
51140 WIDGET_SET!$WIDGET_SET$ac_delim
51141 WX_RELEASE!$WX_RELEASE$ac_delim
51142 WX_VERSION!$WX_VERSION$ac_delim
51143 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51144 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51145 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51146 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51147 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51148 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51149 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51150 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51151 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51152 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51153 GUIDIST!$GUIDIST$ac_delim
51154 DISTDIR!$DISTDIR$ac_delim
51155 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51156 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
51157 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
51158 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
51159 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
51160 RESCOMP!$RESCOMP$ac_delim
51161 RESFLAGS!$RESFLAGS$ac_delim
51162 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
51163 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
51164 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
51165 LIBWXMACRES!$LIBWXMACRES$ac_delim
51166 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
51167 _ACEOF
51168
51169   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51170     break
51171   elif $ac_last_try; then
51172     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51174    { (exit 1); exit 1; }; }
51175   else
51176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51177   fi
51178 done
51179
51180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51181 if test -n "$ac_eof"; then
51182   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51183   ac_eof=`expr $ac_eof + 1`
51184 fi
51185
51186 cat >>$CONFIG_STATUS <<_ACEOF
51187 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51189 _ACEOF
51190 sed '
51191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51192 s/^/s,@/; s/!/@,|#_!!_#|/
51193 :n
51194 t n
51195 s/'"$ac_delim"'$/,g/; t
51196 s/$/\\/; p
51197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51198 ' >>$CONFIG_STATUS <conf$$subs.sed
51199 rm -f conf$$subs.sed
51200 cat >>$CONFIG_STATUS <<_ACEOF
51201 CEOF$ac_eof
51202 _ACEOF
51203
51204
51205 ac_delim='%!_!# '
51206 for ac_last_try in false false false false false :; do
51207   cat >conf$$subs.sed <<_ACEOF
51208 MACSETFILE!$MACSETFILE$ac_delim
51209 GCC!$GCC$ac_delim
51210 DLLTOOL!$DLLTOOL$ac_delim
51211 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
51212 LIBOBJS!$LIBOBJS$ac_delim
51213 LTLIBOBJS!$LTLIBOBJS$ac_delim
51214 _ACEOF
51215
51216   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
51217     break
51218   elif $ac_last_try; then
51219     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51220 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51221    { (exit 1); exit 1; }; }
51222   else
51223     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51224   fi
51225 done
51226
51227 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51228 if test -n "$ac_eof"; then
51229   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51230   ac_eof=`expr $ac_eof + 1`
51231 fi
51232
51233 cat >>$CONFIG_STATUS <<_ACEOF
51234 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51236 _ACEOF
51237 sed '
51238 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51239 s/^/s,@/; s/!/@,|#_!!_#|/
51240 :n
51241 t n
51242 s/'"$ac_delim"'$/,g/; t
51243 s/$/\\/; p
51244 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51245 ' >>$CONFIG_STATUS <conf$$subs.sed
51246 rm -f conf$$subs.sed
51247 cat >>$CONFIG_STATUS <<_ACEOF
51248 :end
51249 s/|#_!!_#|//g
51250 CEOF$ac_eof
51251 _ACEOF
51252
51253
51254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51256 # trailing colons and then remove the whole line if VPATH becomes empty
51257 # (actually we leave an empty line to preserve line numbers).
51258 if test "x$srcdir" = x.; then
51259   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51260 s/:*\$(srcdir):*/:/
51261 s/:*\${srcdir}:*/:/
51262 s/:*@srcdir@:*/:/
51263 s/^\([^=]*=[     ]*\):*/\1/
51264 s/:*$//
51265 s/^[^=]*=[       ]*$//
51266 }'
51267 fi
51268
51269 cat >>$CONFIG_STATUS <<\_ACEOF
51270 fi # test -n "$CONFIG_FILES"
51271
51272
51273 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51274 do
51275   case $ac_tag in
51276   :[FHLC]) ac_mode=$ac_tag; continue;;
51277   esac
51278   case $ac_mode$ac_tag in
51279   :[FHL]*:*);;
51280   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51281 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51282    { (exit 1); exit 1; }; };;
51283   :[FH]-) ac_tag=-:-;;
51284   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51285   esac
51286   ac_save_IFS=$IFS
51287   IFS=:
51288   set x $ac_tag
51289   IFS=$ac_save_IFS
51290   shift
51291   ac_file=$1
51292   shift
51293
51294   case $ac_mode in
51295   :L) ac_source=$1;;
51296   :[FH])
51297     ac_file_inputs=
51298     for ac_f
51299     do
51300       case $ac_f in
51301       -) ac_f="$tmp/stdin";;
51302       *) # Look for the file first in the build tree, then in the source tree
51303          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51304          # because $ac_f cannot contain `:'.
51305          test -f "$ac_f" ||
51306            case $ac_f in
51307            [\\/$]*) false;;
51308            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51309            esac ||
51310            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51311 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51312    { (exit 1); exit 1; }; };;
51313       esac
51314       ac_file_inputs="$ac_file_inputs $ac_f"
51315     done
51316
51317     # Let's still pretend it is `configure' which instantiates (i.e., don't
51318     # use $as_me), people would be surprised to read:
51319     #    /* config.h.  Generated by config.status.  */
51320     configure_input="Generated from "`IFS=:
51321           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51322     if test x"$ac_file" != x-; then
51323       configure_input="$ac_file.  $configure_input"
51324       { echo "$as_me:$LINENO: creating $ac_file" >&5
51325 echo "$as_me: creating $ac_file" >&6;}
51326     fi
51327
51328     case $ac_tag in
51329     *:-:* | *:-) cat >"$tmp/stdin";;
51330     esac
51331     ;;
51332   esac
51333
51334   ac_dir=`$as_dirname -- "$ac_file" ||
51335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51336          X"$ac_file" : 'X\(//\)[^/]' \| \
51337          X"$ac_file" : 'X\(//\)$' \| \
51338          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51339 echo X"$ac_file" |
51340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51341             s//\1/
51342             q
51343           }
51344           /^X\(\/\/\)[^/].*/{
51345             s//\1/
51346             q
51347           }
51348           /^X\(\/\/\)$/{
51349             s//\1/
51350             q
51351           }
51352           /^X\(\/\).*/{
51353             s//\1/
51354             q
51355           }
51356           s/.*/./; q'`
51357   { as_dir="$ac_dir"
51358   case $as_dir in #(
51359   -*) as_dir=./$as_dir;;
51360   esac
51361   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51362     as_dirs=
51363     while :; do
51364       case $as_dir in #(
51365       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51366       *) as_qdir=$as_dir;;
51367       esac
51368       as_dirs="'$as_qdir' $as_dirs"
51369       as_dir=`$as_dirname -- "$as_dir" ||
51370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51371          X"$as_dir" : 'X\(//\)[^/]' \| \
51372          X"$as_dir" : 'X\(//\)$' \| \
51373          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51374 echo X"$as_dir" |
51375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51376             s//\1/
51377             q
51378           }
51379           /^X\(\/\/\)[^/].*/{
51380             s//\1/
51381             q
51382           }
51383           /^X\(\/\/\)$/{
51384             s//\1/
51385             q
51386           }
51387           /^X\(\/\).*/{
51388             s//\1/
51389             q
51390           }
51391           s/.*/./; q'`
51392       test -d "$as_dir" && break
51393     done
51394     test -z "$as_dirs" || eval "mkdir $as_dirs"
51395   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51396 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51397    { (exit 1); exit 1; }; }; }
51398   ac_builddir=.
51399
51400 case "$ac_dir" in
51401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51402 *)
51403   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51404   # A ".." for each directory in $ac_dir_suffix.
51405   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51406   case $ac_top_builddir_sub in
51407   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51408   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51409   esac ;;
51410 esac
51411 ac_abs_top_builddir=$ac_pwd
51412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51413 # for backward compatibility:
51414 ac_top_builddir=$ac_top_build_prefix
51415
51416 case $srcdir in
51417   .)  # We are building in place.
51418     ac_srcdir=.
51419     ac_top_srcdir=$ac_top_builddir_sub
51420     ac_abs_top_srcdir=$ac_pwd ;;
51421   [\\/]* | ?:[\\/]* )  # Absolute name.
51422     ac_srcdir=$srcdir$ac_dir_suffix;
51423     ac_top_srcdir=$srcdir
51424     ac_abs_top_srcdir=$srcdir ;;
51425   *) # Relative name.
51426     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51427     ac_top_srcdir=$ac_top_build_prefix$srcdir
51428     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51429 esac
51430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51431
51432
51433   case $ac_mode in
51434   :F)
51435   #
51436   # CONFIG_FILE
51437   #
51438
51439   case $INSTALL in
51440   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51441   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51442   esac
51443 _ACEOF
51444
51445 cat >>$CONFIG_STATUS <<\_ACEOF
51446 # If the template does not know about datarootdir, expand it.
51447 # FIXME: This hack should be removed a few years after 2.60.
51448 ac_datarootdir_hack=; ac_datarootdir_seen=
51449
51450 case `sed -n '/datarootdir/ {
51451   p
51452   q
51453 }
51454 /@datadir@/p
51455 /@docdir@/p
51456 /@infodir@/p
51457 /@localedir@/p
51458 /@mandir@/p
51459 ' $ac_file_inputs` in
51460 *datarootdir*) ac_datarootdir_seen=yes;;
51461 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51462   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51463 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51464 _ACEOF
51465 cat >>$CONFIG_STATUS <<_ACEOF
51466   ac_datarootdir_hack='
51467   s&@datadir@&$datadir&g
51468   s&@docdir@&$docdir&g
51469   s&@infodir@&$infodir&g
51470   s&@localedir@&$localedir&g
51471   s&@mandir@&$mandir&g
51472     s&\\\${datarootdir}&$datarootdir&g' ;;
51473 esac
51474 _ACEOF
51475
51476 # Neutralize VPATH when `$srcdir' = `.'.
51477 # Shell code in configure.ac might set extrasub.
51478 # FIXME: do we really want to maintain this feature?
51479 cat >>$CONFIG_STATUS <<_ACEOF
51480   sed "$ac_vpsub
51481 $extrasub
51482 _ACEOF
51483 cat >>$CONFIG_STATUS <<\_ACEOF
51484 :t
51485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51486 s&@configure_input@&$configure_input&;t t
51487 s&@top_builddir@&$ac_top_builddir_sub&;t t
51488 s&@srcdir@&$ac_srcdir&;t t
51489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51490 s&@top_srcdir@&$ac_top_srcdir&;t t
51491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51492 s&@builddir@&$ac_builddir&;t t
51493 s&@abs_builddir@&$ac_abs_builddir&;t t
51494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51495 s&@INSTALL@&$ac_INSTALL&;t t
51496 $ac_datarootdir_hack
51497 " $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
51498
51499 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51500   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51501   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51502   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51503 which seems to be undefined.  Please make sure it is defined." >&5
51504 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51505 which seems to be undefined.  Please make sure it is defined." >&2;}
51506
51507   rm -f "$tmp/stdin"
51508   case $ac_file in
51509   -) cat "$tmp/out"; rm -f "$tmp/out";;
51510   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51511   esac
51512  ;;
51513   :H)
51514   #
51515   # CONFIG_HEADER
51516   #
51517 _ACEOF
51518
51519 # Transform confdefs.h into a sed script `conftest.defines', that
51520 # substitutes the proper values into config.h.in to produce config.h.
51521 rm -f conftest.defines conftest.tail
51522 # First, append a space to every undef/define line, to ease matching.
51523 echo 's/$/ /' >conftest.defines
51524 # Then, protect against being on the right side of a sed subst, or in
51525 # an unquoted here document, in config.status.  If some macros were
51526 # called several times there might be several #defines for the same
51527 # symbol, which is useless.  But do not sort them, since the last
51528 # AC_DEFINE must be honored.
51529 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51530 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51531 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51532 # PARAMS is the parameter list in the macro definition--in most cases, it's
51533 # just an empty string.
51534 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
51535 ac_dB='\\)[      (].*,\\1define\\2'
51536 ac_dC=' '
51537 ac_dD=' ,'
51538
51539 uniq confdefs.h |
51540   sed -n '
51541         t rset
51542         :rset
51543         s/^[     ]*#[    ]*define[       ][      ]*//
51544         t ok
51545         d
51546         :ok
51547         s/[\\&,]/\\&/g
51548         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51549         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51550   ' >>conftest.defines
51551
51552 # Remove the space that was appended to ease matching.
51553 # Then replace #undef with comments.  This is necessary, for
51554 # example, in the case of _POSIX_SOURCE, which is predefined and required
51555 # on some systems where configure will not decide to define it.
51556 # (The regexp can be short, since the line contains either #define or #undef.)
51557 echo 's/ $//
51558 s,^[     #]*u.*,/* & */,' >>conftest.defines
51559
51560 # Break up conftest.defines:
51561 ac_max_sed_lines=50
51562
51563 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51564 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51565 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51566 # et cetera.
51567 ac_in='$ac_file_inputs'
51568 ac_out='"$tmp/out1"'
51569 ac_nxt='"$tmp/out2"'
51570
51571 while :
51572 do
51573   # Write a here document:
51574     cat >>$CONFIG_STATUS <<_ACEOF
51575     # First, check the format of the line:
51576     cat >"\$tmp/defines.sed" <<\\CEOF
51577 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
51578 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
51579 b
51580 :def
51581 _ACEOF
51582   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51583   echo 'CEOF
51584     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51585   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51586   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51587   grep . conftest.tail >/dev/null || break
51588   rm -f conftest.defines
51589   mv conftest.tail conftest.defines
51590 done
51591 rm -f conftest.defines conftest.tail
51592
51593 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51594 cat >>$CONFIG_STATUS <<\_ACEOF
51595   if test x"$ac_file" != x-; then
51596     echo "/* $configure_input  */" >"$tmp/config.h"
51597     cat "$ac_result" >>"$tmp/config.h"
51598     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51599       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51600 echo "$as_me: $ac_file is unchanged" >&6;}
51601     else
51602       rm -f $ac_file
51603       mv "$tmp/config.h" $ac_file
51604     fi
51605   else
51606     echo "/* $configure_input  */"
51607     cat "$ac_result"
51608   fi
51609   rm -f "$tmp/out12"
51610  ;;
51611
51612   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
51613 echo "$as_me: executing $ac_file commands" >&6;}
51614  ;;
51615   esac
51616
51617
51618   case $ac_file$ac_mode in
51619     "rcdefs.h":C)
51620             mkdir -p $outdir &&
51621             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51622          ;;
51623     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51624     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51625     "wx-config":C)  rm -f wx-config
51626                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51627                     ;;
51628
51629   esac
51630 done # for ac_tag
51631
51632
51633 { (exit 0); exit 0; }
51634 _ACEOF
51635 chmod +x $CONFIG_STATUS
51636 ac_clean_files=$ac_clean_files_save
51637
51638
51639 # configure is writing to config.log, and then calls config.status.
51640 # config.status does its own redirection, appending to config.log.
51641 # Unfortunately, on DOS this fails, as config.log is still kept open
51642 # by configure, so config.status won't be able to write to it; its
51643 # output is simply discarded.  So we exec the FD to /dev/null,
51644 # effectively closing config.log, so it can be properly (re)opened and
51645 # appended to by config.status.  When coming back to configure, we
51646 # need to make the FD available again.
51647 if test "$no_create" != yes; then
51648   ac_cs_success=:
51649   ac_config_status_args=
51650   test "$silent" = yes &&
51651     ac_config_status_args="$ac_config_status_args --quiet"
51652   exec 5>/dev/null
51653   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51654   exec 5>>config.log
51655   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51656   # would make configure fail if this is the last instruction.
51657   $ac_cs_success || { (exit 1); exit 1; }
51658 fi
51659
51660 #
51661 # CONFIG_SUBDIRS section.
51662 #
51663 if test "$no_recursion" != yes; then
51664
51665   # Remove --cache-file and --srcdir arguments so they do not pile up.
51666   ac_sub_configure_args=
51667   ac_prev=
51668   eval "set x $ac_configure_args"
51669   shift
51670   for ac_arg
51671   do
51672     if test -n "$ac_prev"; then
51673       ac_prev=
51674       continue
51675     fi
51676     case $ac_arg in
51677     -cache-file | --cache-file | --cache-fil | --cache-fi \
51678     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51679       ac_prev=cache_file ;;
51680     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51681     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51682     | --c=*)
51683       ;;
51684     --config-cache | -C)
51685       ;;
51686     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51687       ac_prev=srcdir ;;
51688     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51689       ;;
51690     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51691       ac_prev=prefix ;;
51692     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51693       ;;
51694     *)
51695       case $ac_arg in
51696       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51697       esac
51698       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
51699     esac
51700   done
51701
51702   # Always prepend --prefix to ensure using the same prefix
51703   # in subdir configurations.
51704   ac_arg="--prefix=$prefix"
51705   case $ac_arg in
51706   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51707   esac
51708   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
51709
51710   # Pass --silent
51711   if test "$silent" = yes; then
51712     ac_sub_configure_args="--silent $ac_sub_configure_args"
51713   fi
51714
51715   ac_popdir=`pwd`
51716   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51717
51718     # Do not complain, so a configure script can configure whichever
51719     # parts of a large source tree are present.
51720     test -d "$srcdir/$ac_dir" || continue
51721
51722     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
51723     echo "$as_me:$LINENO: $ac_msg" >&5
51724     echo "$ac_msg" >&6
51725     { as_dir="$ac_dir"
51726   case $as_dir in #(
51727   -*) as_dir=./$as_dir;;
51728   esac
51729   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51730     as_dirs=
51731     while :; do
51732       case $as_dir in #(
51733       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51734       *) as_qdir=$as_dir;;
51735       esac
51736       as_dirs="'$as_qdir' $as_dirs"
51737       as_dir=`$as_dirname -- "$as_dir" ||
51738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51739          X"$as_dir" : 'X\(//\)[^/]' \| \
51740          X"$as_dir" : 'X\(//\)$' \| \
51741          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51742 echo X"$as_dir" |
51743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51744             s//\1/
51745             q
51746           }
51747           /^X\(\/\/\)[^/].*/{
51748             s//\1/
51749             q
51750           }
51751           /^X\(\/\/\)$/{
51752             s//\1/
51753             q
51754           }
51755           /^X\(\/\).*/{
51756             s//\1/
51757             q
51758           }
51759           s/.*/./; q'`
51760       test -d "$as_dir" && break
51761     done
51762     test -z "$as_dirs" || eval "mkdir $as_dirs"
51763   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51764 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51765    { (exit 1); exit 1; }; }; }
51766     ac_builddir=.
51767
51768 case "$ac_dir" in
51769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51770 *)
51771   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51772   # A ".." for each directory in $ac_dir_suffix.
51773   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51774   case $ac_top_builddir_sub in
51775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51777   esac ;;
51778 esac
51779 ac_abs_top_builddir=$ac_pwd
51780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51781 # for backward compatibility:
51782 ac_top_builddir=$ac_top_build_prefix
51783
51784 case $srcdir in
51785   .)  # We are building in place.
51786     ac_srcdir=.
51787     ac_top_srcdir=$ac_top_builddir_sub
51788     ac_abs_top_srcdir=$ac_pwd ;;
51789   [\\/]* | ?:[\\/]* )  # Absolute name.
51790     ac_srcdir=$srcdir$ac_dir_suffix;
51791     ac_top_srcdir=$srcdir
51792     ac_abs_top_srcdir=$srcdir ;;
51793   *) # Relative name.
51794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51795     ac_top_srcdir=$ac_top_build_prefix$srcdir
51796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51797 esac
51798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51799
51800
51801     cd "$ac_dir"
51802
51803     # Check for guested configure; otherwise get Cygnus style configure.
51804     if test -f "$ac_srcdir/configure.gnu"; then
51805       ac_sub_configure=$ac_srcdir/configure.gnu
51806     elif test -f "$ac_srcdir/configure"; then
51807       ac_sub_configure=$ac_srcdir/configure
51808     elif test -f "$ac_srcdir/configure.in"; then
51809       # This should be Cygnus configure.
51810       ac_sub_configure=$ac_aux_dir/configure
51811     else
51812       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51813 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51814       ac_sub_configure=
51815     fi
51816
51817     # The recursion is here.
51818     if test -n "$ac_sub_configure"; then
51819       # Make the cache file name correct relative to the subdirectory.
51820       case $cache_file in
51821       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51822       *) # Relative name.
51823         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
51824       esac
51825
51826       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51827 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51828       # The eval makes quoting arguments work.
51829       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
51830            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
51831         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51832 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51833    { (exit 1); exit 1; }; }
51834     fi
51835
51836     cd "$ac_popdir"
51837   done
51838 fi
51839
51840
51841 echo
51842 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
51843 echo ""
51844 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
51845 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
51846
51847 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
51848 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
51849 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
51850 if test "$wxUSE_UNICODE" = "yes"; then
51851     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
51852         echo " (using UTF-8)"
51853     else
51854         echo " (using wchar_t)"
51855     fi
51856 else
51857     echo
51858 fi
51859
51860 echo "  What level of wxWidgets compatibility should be enabled?"
51861 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
51862 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
51863
51864 echo "  Which libraries should wxWidgets use?"
51865 echo "                                       STL                ${wxUSE_STL}"
51866 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
51867 echo "                                       png                ${wxUSE_LIBPNG-none}"
51868 echo "                                       regex              ${wxUSE_REGEX}"
51869 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
51870 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51871 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
51872 fi
51873 echo "                                       zlib               ${wxUSE_ZLIB}"
51874 echo "                                       expat              ${wxUSE_EXPAT}"
51875 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
51876 echo "                                       sdl                ${wxUSE_LIBSDL}"
51877
51878 echo ""
51879